]> 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)
committerMatthew Auld <matthew.auld@intel.com>
Mon, 10 Jan 2022 11:01:42 +0000 (11:01 +0000)
commit36feaac4674948e890056b34e19b7df72eed7f4e
tree43d99abf1c36bfdbe615a739b59d2c46085cd63a
parent2826d0c35053383b5fba59563b13e30e208c5ad4
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
drivers/gpu/drm/i915/gem/i915_gem_ttm.c