drm/i915: Cancel context if it hangs after it is closed
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 11 Nov 2019 11:43:23 +0000 (11:43 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 11 Nov 2019 11:46:40 +0000 (11:46 +0000)
commite8887bb3eb6f55401e0d0f9ee5739e5baca4a58c
tree35c7bd9bb6f6b5196bc74e6bf80a085137c84dbf
parentdfd9c1b4eab124c16c3b59362c3640983bf79949
drm/i915: Cancel context if it hangs after it is closed

If we detect a hang in a closed context, just flush all of its requests
and cancel any remaining execution along the context. Note that after
closing the context, the last reference to the context may be dropped,
leaving it only valid under RCU.

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/20191111114323.5833-5-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_reset.c