]> 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)
commit5a00b9378d08db2a014844aa5cf33ce33b0d0118
tree35c7bd9bb6f6b5196bc74e6bf80a085137c84dbf
parent61e0b99e538d4927ff19da078b3d589c18204d6f
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