]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gem: Drop false !i915_vma_is_closed assertion
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 7 Dec 2020 19:38:05 +0000 (19:38 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 8 Dec 2020 14:01:51 +0000 (14:01 +0000)
commitbf3af89134ba5b1429dddbf7bc0bb50a26108b07
tree40ce2e679bee5651cdbb067a40e0ce1d67bfc2ec
parented666f16fd4185d7113cfbecd8482ce3efcd976b
drm/i915/gem: Drop false !i915_vma_is_closed assertion

Closed vma are protected by the GT wakeref held as we lookup the vma, so
we know that the vma will not be freed as we process it for the execbuf.
Instead we expect to catch the closed status of the context, and simply
allow the close-race on an individual vma to be washed away.

Longer term, the GT wakeref protection will be removed by explicit
vma.kref tracking.

Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/2245
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201207193824.18114-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c