[Intel-gfx] [PATCH 2/2] drm/i915/execlists: Refind the active request before resetting
Chris Wilson
chris at chris-wilson.co.uk
Tue Aug 14 13:58:11 UTC 2018
When resetting the context image after a GPU reset, it is vital that we
do inspect the context image that was active at the time of the hang.
Even a 'pardoned' context may still have some residual corruption (e.g.
the STOP_RING bit) from issuing the GPU reset that we need to fixup
before continuing.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala at linux.intel.com>
---
drivers/gpu/drm/i915/intel_lrc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c
index 37fe842de639..de0cde3a19f6 100644
--- a/drivers/gpu/drm/i915/intel_lrc.c
+++ b/drivers/gpu/drm/i915/intel_lrc.c
@@ -1918,6 +1918,8 @@ static void execlists_reset(struct intel_engine_cs *engine,
spin_unlock_irqrestore(&engine->timeline.lock, flags);
+ /* Only adjust the actual context image clobbered by the reset */
+ request = i915_gem_find_active_request(engine);
if (!request)
return;
--
2.18.0
More information about the Intel-gfx
mailing list