OSDN Git Service

drm/i915/gt: Cancel banned contexts after GT reset
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 4 Mar 2020 16:51:13 +0000 (16:51 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 4 Mar 2020 20:28:02 +0000 (20:28 +0000)
commitbe90e344836a3ad6ddd66f0f060a3f5d8c553d69
tree24d70dcbb11dbd81a701e19d7cb6ce11fa3b1ae5
parent8f1e57409079b091b01562b1d444256380facee8
drm/i915/gt: Cancel banned contexts after GT reset

As we started marking the ce->gem_context as NULL on closure, we can no
longer use that to carry closure information. Instead, we can look at
whether the context was killed on closure instead.

Fixes: 130a95e9098e ("drm/i915/gem: Consolidate ctx->engines[] release")
Closes: https://gitlab.freedesktop.org/drm/intel/issues/1379
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/20200304165113.2449213-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_reset.c