]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/ttm: add unmap_virtual callback
authorMatthew Auld <matthew.auld@intel.com>
Thu, 6 Jan 2022 17:49:09 +0000 (17:49 +0000)
committerMatthew Auld <matthew.auld@intel.com>
Mon, 10 Jan 2022 11:01:44 +0000 (11:01 +0000)
commit9875ef4f1fb20039ab84b32236db9b5ddaea02c7
tree8eb28f1723f166385b7baae6b08f0dcfb51401f7
parent36feaac4674948e890056b34e19b7df72eed7f4e
drm/i915/ttm: add unmap_virtual callback

Ensure we call ttm_bo_unmap_virtual when releasing the pages.
Importantly this should now handle the ttm swapping case, and all other
places that already call into i915_ttm_move_notify().

v2: fix up the selftest

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-3-matthew.auld@intel.com
drivers/gpu/drm/i915/gem/i915_gem_mman.c
drivers/gpu/drm/i915/gem/i915_gem_object_types.h
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c