Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] drm/i915: Avoid lock inversion when pinning to GGTT
@ 2025-10-08 16:12 Janusz Krzysztofik
  2025-10-08 16:12 ` [PATCH 1/3] " Janusz Krzysztofik
                   ` (5 more replies)
  0 siblings, 6 replies; 16+ messages in thread
From: Janusz Krzysztofik @ 2025-10-08 16:12 UTC (permalink / raw)
  To: intel-gfx
  Cc: dri-devel, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, Thomas Hellström, Maarten Lankhorst,
	Krzysztof Niemiec, Sebastian Brzezinka, Janusz Krzysztofik

On completion of i915_vma_pin_ww(), a synchronous variant of
dma_fence_work_commit() is called.  When pinning a VMA to GGTT address
space on a Cherry View family processor, or on a Broxton generation SoC
with VTD enabled, i.e., when stop_machine() is then called from
intel_ggtt_bind_vma(), that can potentially lead to lock inversion among
reservation_ww and cpu_hotplug locks.

Call asynchronous variant of dma_fence_work_commit() in that case.  With
that in place, adjust two selftest affected by that change.

Janusz Krzysztofik (3):
  drm/i915: Avoid lock inversion when pinning to GGTT
  drm/i915: Wait longer for threads in migrate selftest on CHV/BXT+VTD
  drm/i915: Wait for page_sizes_gtt in gtt selftest on CHV/BXT+VTD

 drivers/gpu/drm/i915/gt/selftest_migrate.c    |  3 ++-
 drivers/gpu/drm/i915/i915_vma.c               | 10 ++++++++--
 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c |  4 ++++
 3 files changed, 14 insertions(+), 3 deletions(-)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2025-10-14  8:33 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-08 16:12 [PATCH 0/3] drm/i915: Avoid lock inversion when pinning to GGTT Janusz Krzysztofik
2025-10-08 16:12 ` [PATCH 1/3] " Janusz Krzysztofik
2025-10-10  9:17   ` Sebastian Brzezinka
2025-10-14  6:51   ` Krzysztof Karas
2025-10-08 16:12 ` [PATCH 2/3] drm/i915: Wait longer for threads in migrate selftest on CHV/BXT+VTD Janusz Krzysztofik
2025-10-10  9:20   ` Sebastian Brzezinka
2025-10-14  7:12   ` Krzysztof Karas
2025-10-14  8:33     ` Janusz Krzysztofik
2025-10-08 16:12 ` [PATCH 3/3] drm/i915: Wait for page_sizes_gtt in gtt " Janusz Krzysztofik
2025-10-10  9:22   ` Sebastian Brzezinka
2025-10-14  7:45   ` Krzysztof Karas
2025-10-08 17:11 ` ✓ i915.CI.BAT: success for drm/i915: Avoid lock inversion when pinning to GGTT Patchwork
2025-10-09  8:02 ` ✗ i915.CI.Full: failure " Patchwork
2025-10-09 13:44   ` Janusz Krzysztofik
2025-10-10  9:14     ` Ravali, JupallyX
2025-10-10  9:09 ` ✓ i915.CI.Full: success " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox