Skip to content

Commit a24c57d

Browse files
icklerodrigovivi
authored andcommitted
drm/i915/gt: Cancel a hung context if already closed
Use the restored ability to check if a context is closed to decide whether or not to immediately ban the context from further execution after a hang. Fixes: be90e34 ("drm/i915/gt: Cancel banned contexts after GT reset") Signed-off-by: Chris Wilson <[email protected]> Cc: Mika Kuoppala <[email protected]> Cc: Tvrtko Ursulin <[email protected]> Reviewed-by: Tvrtko Ursulin <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit 8e37d69) Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent 2e46a2a commit a24c57d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/gpu/drm/i915/gt/intel_reset.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ static bool mark_guilty(struct i915_request *rq)
8888
bool banned;
8989
int i;
9090

91+
if (intel_context_is_closed(rq->context)) {
92+
intel_context_set_banned(rq->context);
93+
return true;
94+
}
95+
9196
rcu_read_lock();
9297
ctx = rcu_dereference(rq->context->gem_context);
9398
if (ctx && !kref_get_unless_zero(&ctx->ref))

0 commit comments

Comments
 (0)