[Intel-gfx] [PATCH] drm/i915/selftests: add some vma_sync

Chris Wilson chris at chris-wilson.co.uk
Mon Mar 23 11:50:00 UTC 2020


Quoting Matthew Auld (2020-03-23 11:38:09)
> The subtest shrink_boom was added as a regression test for some missing
> refcounting on the paging structures, however since the binding is
> potentially async, setting the vm->fault_attr might apply to the purge
> vma, and not the intended explode vma. Also it looks like it might also
> be possible to hit some weird shrinker deadlock where the unbinding of
> one vma allocates memory by flushing and waiting for its
> still-pending-bind operation while holding vm->mutex, which will always
> lands back in the shrinker since we set vm->fault_attr for the selftest.
> 
> References: https://gitlab.freedesktop.org/drm/intel/issues/1493

Ah, you picked the wrong deadlock -- that's the gtt eviction recursion.
:(
-Chris


More information about the Intel-gfx mailing list