drm/i915/gt: Add selftests for TLB invalidation
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 30 Jan 2023 16:50:58 +0000 (17:50 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Wed, 1 Feb 2023 16:17:41 +0000 (16:17 +0000)
commit73a6c676542ac18d2556be80260bf554f1cef4ae
tree5db3e06ca75e1df2c71d52326f6fd7bf1a7e41b2
parent003e11ed2ef4af01b808f0f193eaa5a32f32383b
drm/i915/gt: Add selftests for TLB invalidation

Check that we invalidate the TLB cache, the updated physical addresses
are immediately visible to the HW, and there is no retention of the old
physical address for concurrent HW access.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
[ahajda: adjust to upstream driver, v2+]
Signed-off-by: Andrzej Hajda <andrzej.hajda@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
[tursulin: Small indentation fix.]
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230130165058.1647414-1-andrzej.hajda@intel.com
drivers/gpu/drm/i915/gt/intel_gpu_commands.h
drivers/gpu/drm/i915/gt/intel_gt.c
drivers/gpu/drm/i915/gt/selftest_tlb.c [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/i915_live_selftests.h