drm/i915/ttm: only fault WILLNEED objects
authorMatthew Auld <matthew.auld@intel.com>
Thu, 6 Jan 2022 17:49:08 +0000 (17:49 +0000)
committerMatthew Auld <matthew.auld@intel.com>
Mon, 10 Jan 2022 11:01:42 +0000 (11:01 +0000)
commitf3cb4a2de5410147b53e53416a3af0ffe26b5f4e
tree43d99abf1c36bfdbe615a739b59d2c46085cd63a
parent658a0c632625e1db51837ff754fe18a6a7f2ccf8
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: cf3e3e86d779 ("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
drivers/gpu/drm/i915/gem/i915_gem_ttm.c