]> Git Repo - linux.git/commitdiff
drm/i915/gt: Only ignore already reset requests
authorChris Wilson <[email protected]>
Fri, 7 Feb 2020 16:16:02 +0000 (16:16 +0000)
committerChris Wilson <[email protected]>
Fri, 7 Feb 2020 20:52:41 +0000 (20:52 +0000)
If a request is being re-run after an innocent reset, it is marked as
-EAGAIN. So only skip an engine reset if the request is marked as -EIO.

Testcase: igt/gem_ctx_exec/basic-nohangcheck
Signed-off-by: Chris Wilson <[email protected]>
Reviewed-by: Mika Kuoppala <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/gem/i915_gem_context.c
drivers/gpu/drm/i915/gt/intel_reset.c

index 52a749691a8d84b9d144765c37f584652773f523..cfaf5bbdbcab7808928692b301182214b48385bc 100644 (file)
@@ -419,7 +419,7 @@ static struct intel_engine_cs *__active_engine(struct i915_request *rq)
        }
 
        engine = NULL;
-       if (i915_request_is_active(rq) && !rq->fence.error)
+       if (i915_request_is_active(rq) && rq->fence.error != -EIO)
                engine = rq->engine;
 
        spin_unlock_irq(&locked->active.lock);
index a8317e046f81d3cba400eab604f85d8d61f99ee8..aef6ab58d7d99a58c90e677a75935282a50e1854 100644 (file)
@@ -1182,7 +1182,7 @@ static void intel_gt_reset_global(struct intel_gt *gt,
 
        kobject_uevent_env(kobj, KOBJ_CHANGE, error_event);
 
-       drm_dbg(&gt->i915->drm, "resetting chip\n");
+       drm_dbg(&gt->i915->drm, "resetting chip, engines=%x\n", engine_mask);
        kobject_uevent_env(kobj, KOBJ_CHANGE, reset_event);
 
        /* Use a watchdog to ensure that our reset completes */
This page took 0.066359 seconds and 4 git commands to generate.