OSDN Git Service

drm/i915/execlists: Pause CS flow before reset
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 31 Mar 2020 09:14:57 +0000 (10:14 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 31 Mar 2020 20:42:12 +0000 (21:42 +0100)
commit917155557238826b830011b67f110017b1f8ffad
treebcf8ac24085fd6503771e39f34b11fe9e1f1a438
parent71a6688e81d992d244bc56e6061441ec16b4b2e1
drm/i915/execlists: Pause CS flow before reset

Since we may be attempting to reset an active engine, we try to freeze
it in place before resetting -- to be on the safe side. We can go one
step further if we are using the CS flow semaphore to prevent the
context switching into the next.

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/20200331091459.29179-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c