]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Ignore repeated attempts to suspend request flow across reset
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 4 Dec 2020 15:12:31 +0000 (15:12 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 4 Dec 2020 15:41:31 +0000 (15:41 +0000)
commitda08d5f4ae599368cd796c437fe18acb295448d7
treed33b6515f03a2e8a90c12368f594caded5b5a988
parent9a4394d4de885c080f84db018b813d89e4328afc
drm/i915/gt: Ignore repeated attempts to suspend request flow across reset

Before reseting the engine, we suspend the execution of the guilty
request, so that we can continue execution with a new context while we
slowly compress the captured error state for the guilty context. However,
if the reset fails, we will promptly attempt to reset the same request
again, and discover the ongoing capture. Ignore the second attempt to
suspend and capture the same request.

Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/1168
Fixes: 62568e9409a1 ("drm/i915/gt: Allow temporary suspension of inflight requests")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: <stable@vger.kernel.org> # v5.7+
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201204151234.19729-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c