drm/i915/gt: Check the virtual still matches upon locking
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 4 Jan 2021 11:51:43 +0000 (11:51 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 Jan 2021 09:18:05 +0000 (09:18 +0000)
commit0e58de9fc939e7552808f267bffde0b31feaf08a
tree8e97cdb386f1a4ec5616f7d4ec0a719880258009
parent0a7d355ec6043bc28929844e74ac2b0046409ebc
drm/i915/gt: Check the virtual still matches upon locking

If another sibling is able to claim the virtual request, by the time we
inspect the request under the lock it may no longer match the local
engine.

Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/2877
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210104115145.24460-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_execlists_submission.c