]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/ttm: only fault WILLNEED objects
authorMatthew Auld <matthew.auld@intel.com>
Thu, 6 Jan 2022 17:49:08 +0000 (17:49 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 10 Jan 2022 13:55:02 +0000 (13:55 +0000)
commit865d2fda3172472c7b1795c8317be7c9ff62c015
tree27834ed48a9cd73fe375f5b9f93a45a8923b456b
parent9b5afe24c0ab893419225cd01cae3cc6b9448f53
drm/i915/ttm: only fault WILLNEED objects

Don't attempt to fault and re-populate purged objects. By some fluke
this passes the dontneed-after-mmap IGT, but for the wrong reasons.

Fixes: 3d0262ac67ed ("drm/i915: Use ttm mmap handling for ttm bo's.")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220106174910.280616-2-matthew.auld@intel.com
(cherry picked from commit f3cb4a2de5410147b53e53416a3af0ffe26b5f4e)
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/gem/i915_gem_ttm.c