]> Gentwo Git Trees - linux/.git/commit
drm/i915: Wait for page_sizes_gtt in gtt selftest on CHV/BXT+VTD
authorJanusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
Thu, 23 Oct 2025 08:25:21 +0000 (10:25 +0200)
committerAndi Shyti <andi.shyti@linux.intel.com>
Fri, 31 Oct 2025 09:50:35 +0000 (10:50 +0100)
commitd4550f58c7d97febe53220e371a035c945c52066
treeb22f57127088533c9ddddabb4f4d75153ce4402d
parent86ef67db1a04d2002e691c350fbc937fb36df95d
drm/i915: Wait for page_sizes_gtt in gtt selftest on CHV/BXT+VTD

VMA pinning to GGTT is now commited asynchronously in CHV / BXT+VDT
environments to avoid lock inversion among reservation_ww and cpu_hotplug
locks, the latter acquired from stop_machine().  Then,
vma->resource->page_sizes_gtt the test uses as shift count may still be
not populated (equal 0) after i915_vma_pin() returns.  Wait for VMA bind
completion in those cases to avoid shift-out-of-bounds kernel warnings and
the test case failing with -EBADSLT.

v2: Explain why VMA pinning is commited asynchronously on CHV/BXT+VTD
    (Krzysztof),
  - use more precise wording in commit description.

Signed-off-by: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
Reviewed-by: Sebastian Brzezinka <sebastian.brzezinka@intel.com>
Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com>
Acked-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://lore.kernel.org/r/20251023082925.351307-8-janusz.krzysztofik@linux.intel.com
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c