diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-12-30 22:00:28 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-12-31 09:13:24 +0000 |
commit | 7904e0819d5f7e71413873ac62b79c164d619f58 (patch) | |
tree | 152b03b6ea979181a9d9d32f8eeead28ff58524f /drivers/gpu/drm/i915/i915_request.c | |
parent | drm/i915/gt: Taint the reset mutex with the shrinker (diff) | |
download | linux-dev-7904e0819d5f7e71413873ac62b79c164d619f58.tar.xz linux-dev-7904e0819d5f7e71413873ac62b79c164d619f58.zip |
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
Diffstat (limited to 'drivers/gpu/drm/i915/i915_request.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_request.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_request.c b/drivers/gpu/drm/i915/i915_request.c index 6578faf6eed8..ad3b6a4f424f 100644 --- a/drivers/gpu/drm/i915/i915_request.c +++ b/drivers/gpu/drm/i915/i915_request.c @@ -490,6 +490,8 @@ void __i915_request_skip(struct i915_request *rq) if (rq->infix == rq->postfix) return; + RQ_TRACE(rq, "error: %d\n", rq->fence.error); + /* * As this request likely depends on state from the lost * context, clear out all the user operations leaving the |