]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit28372e5592309aead266ec394a3e5b7e53e3db15
tree35c7bd9bb6f6b5196bc74e6bf80a085137c84dbf
parent0152d775b8a8df230be340eebaf12143f6e4013a
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