OpenCloudOS-Kernel/drivers/gpu/drm/i915/gem/selftests
Matthew Auld 8ee262ba79 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: cf3e3e86d7 ("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
(cherry picked from commit 903e038727)
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
2022-01-10 13:55:07 +00:00
..
huge_gem_object.c drm/i915: Update object placement flags to be mutable 2021-06-24 18:50:56 +01:00
huge_gem_object.h drm/i915/selftests: Make headers self-contained 2020-01-03 13:33:36 +00:00
huge_pages.c drm/i915/gem: Use to_gt() helper 2021-12-17 21:50:32 -08:00
i915_gem_client_blt.c drm/i915/gem: Use to_gt() helper 2021-12-17 21:50:32 -08:00
i915_gem_coherency.c drm/i915/gem: replace IS_GEN and friends with GRAPHICS_VER 2021-06-05 15:09:43 -07:00
i915_gem_context.c drm/i915: Ensure gem_contexts selftests work with unbind changes, v2. 2021-12-20 16:33:30 +01:00
i915_gem_dmabuf.c drm/i915/selftests: Fix inconsistent IS_ERR and PTR_ERR 2021-10-25 08:55:53 +01:00
i915_gem_migrate.c drm/i915/gem: Use to_gt() helper 2021-12-17 21:50:32 -08:00
i915_gem_mman.c drm/i915/ttm: add unmap_virtual callback 2022-01-10 13:55:07 +00:00
i915_gem_object.c drm/i915/selftests: Prepare object tests for obj->mm.lock removal. 2021-03-24 17:41:35 +01:00
i915_gem_phys.c drm/i915: Update object placement flags to be mutable 2021-06-24 18:50:56 +01:00
igt_gem_utils.c drm/i915/gem: replace IS_GEN and friends with GRAPHICS_VER 2021-06-05 15:09:43 -07:00
igt_gem_utils.h drm/i915/selftests: Teach igt_gpu_fill_dw() to take intel_context 2019-08-24 09:10:08 +01:00
mock_context.c drm/i915/pxp: interfaces for using protected objects 2021-10-04 13:11:00 -04:00
mock_context.h drm/i915/selftests: Take a VM in kernel_context() 2021-07-08 19:49:18 +02:00
mock_dmabuf.c drm-misc-next for 5.11: 2020-11-04 11:49:10 +10:00
mock_dmabuf.h drm/i915: change to_mock() to an inline function 2019-11-08 09:12:34 +00:00
mock_gem_object.h drm/i915/selftests: Make headers self-contained 2020-01-03 13:33:36 +00:00