mirror_ubuntu-kernels/drivers/gpu/drm/i915/selftests
Maarten Lankhorst 6945c53bc7 drm/i915: Add locking to i915_gem_evict_vm(), v3.
i915_gem_evict_vm will need to be able to evict objects that are
locked by the current ctx. By testing if the current context already
locked the object, we can do this correctly. This allows us to
evict the entire vm even if we already hold some objects' locks.

Previously, this was spread over several commits, but it makes
more sense to commit the changes to i915_gem_evict_vm separately
from the changes to i915_gem_evict_something() and
i915_gem_evict_for_node().

Changes since v1:
- Handle evicting dead objects better.
Changes since v2:
- Use for_i915_gem_ww in igt_evict_vm. (Thomas)

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
[mlankhorst: Fix up doc warning.]
Link: https://patchwork.freedesktop.org/patch/msgid/20220117075604.131477-1-maarten.lankhorst@linux.intel.com
2022-01-18 12:00:30 +01:00
..
i915_active.c drm/i915/selftests: Use to_gt() helper 2021-12-17 21:51:00 -08:00
i915_buddy.c drm/i915/selftests: fix smatch warning in igt_check_blocks 2021-07-07 09:52:52 +01:00
i915_gem_evict.c drm/i915: Add locking to i915_gem_evict_vm(), v3. 2022-01-18 12:00:30 +01:00
i915_gem_gtt.c drm/i915: Use the vma resource as argument for gtt binding / unbinding 2022-01-11 10:53:14 +01:00
i915_gem.c drm/i915/selftests: Use to_gt() helper for GGTT accesses 2022-01-05 10:45:58 -08:00
i915_live_selftests.h drm/i915/guc: Add basic GuC multi-lrc selftest 2021-10-15 10:45:50 -07:00
i915_mock_selftests.h drm/i915/gem: Don't allow changing the VM on running contexts (v4) 2021-07-08 19:49:02 +02:00
i915_perf_selftests.h drm/i915/gem: Zap the i915_gem_object_blt code 2021-06-17 14:23:15 +01:00
i915_perf.c drm/i915/selftests: Use to_gt() helper 2021-12-17 21:51:00 -08:00
i915_random.c
i915_random.h
i915_request.c drm/i915/selftests: Use to_gt() helper for GGTT accesses 2022-01-05 10:45:58 -08:00
i915_selftest.c drm/i915/selftests: Use to_gt() helper 2021-12-17 21:51:00 -08:00
i915_sw_fence.c drm/i915: Drop stealing of bits from i915_sw_fence function pointer 2021-11-30 17:52:15 -08:00
i915_syncmap.c
i915_vma.c drm/i915: Remove unused i915->ggtt 2022-01-05 10:49:02 -08:00
igt_atomic.c
igt_atomic.h
igt_flush_test.c drm/i915/selftests: Use to_gt() helper 2021-12-17 21:51:00 -08:00
igt_flush_test.h
igt_live_test.c drm/i915/selftests: Use to_gt() helper 2021-12-17 21:51:00 -08:00
igt_live_test.h
igt_mmap.c drm/i915: Use ttm mmap handling for ttm bo's. 2021-06-11 10:53:25 +02:00
igt_mmap.h drm/i915: Use ttm mmap handling for ttm bo's. 2021-06-11 10:53:25 +02:00
igt_reset.c drm/i915/selftests: Use clear_and_wake_up_bit() for the per-engine reset bitlocks 2021-11-10 09:04:30 +01:00
igt_reset.h
igt_spinner.c Cross-subsystem Changes: 2021-06-10 13:45:11 +10:00
igt_spinner.h drm/i915: Add igt_spinner_pin() to allow for ww locking around spinner. 2021-03-24 17:27:21 +01:00
intel_memory_region.c drm/i915/selftests: Use to_gt() helper 2021-12-17 21:51:00 -08:00
intel_scheduler_helpers.c drm/i915/selftests: Add initial GuC selftest for scrubbing lost G2H 2021-09-13 11:30:38 -07:00
intel_scheduler_helpers.h drm/i915/selftests: Add initial GuC selftest for scrubbing lost G2H 2021-09-13 11:30:38 -07:00
intel_uncore.c drm/i915/selftests: Use to_gt() helper 2021-12-17 21:51:00 -08:00
lib_sw_fence.c drm/i915: Drop stealing of bits from i915_sw_fence function pointer 2021-11-30 17:52:15 -08:00
lib_sw_fence.h
librapl.c drm/i915/selftests: Only query RAPL for integrated power measurements 2021-04-20 10:49:05 +01:00
librapl.h drm/i915/selftests: Only query RAPL for integrated power measurements 2021-04-20 10:49:05 +01:00
mock_drm.h
mock_gem_device.c drm/i915: Remove unused i915->ggtt 2022-01-05 10:49:02 -08:00
mock_gem_device.h
mock_gtt.c drm/i915: Use the vma resource as argument for gtt binding / unbinding 2022-01-11 10:53:14 +01:00
mock_gtt.h drm/i915: Remove unused i915->ggtt 2022-01-05 10:49:02 -08:00
mock_region.c drm/i915/ttm: Drop region reference counting 2021-11-25 09:36:16 +01:00
mock_region.h
mock_request.c
mock_request.h
mock_uncore.c drm/i915/selftests: Use to_gt() helper 2021-12-17 21:51:00 -08:00
mock_uncore.h
scatterlist.c