drm/i915/gt: Cancel submitted requests upon context reset
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 30 Dec 2020 22:00:28 +0000 (22:00 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 31 Dec 2020 09:13:24 +0000 (09:13 +0000)
commit7904e0819d5f7e71413873ac62b79c164d619f58
tree152b03b6ea979181a9d9d32f8eeead28ff58524f
parentcecb2af42cb0ebbd5758cad222b39c2363cde682
drm/i915/gt: Cancel submitted requests upon context reset

Since we process schedule-in of a context after submitting the request,
if we decide to reset the context at that time, we also have to cancel
the requets we have marked for submission.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201230220028.17089-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
drivers/gpu/drm/i915/i915_request.c