From: Chris Wilson Date: Tue, 31 Mar 2020 09:14:57 +0000 (+0100) Subject: drm/i915/execlists: Pause CS flow before reset X-Git-Tag: v5.10.7~1861^2~24^2~514 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=917155557238826b830011b67f110017b1f8ffad;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Mika Kuoppala Link: https://patchwork.freedesktop.org/patch/msgid/20200331091459.29179-2-chris@chris-wilson.co.uk --- diff --git a/drivers/gpu/drm/i915/gt/intel_lrc.c b/drivers/gpu/drm/i915/gt/intel_lrc.c index 93931ae..3479cda 100644 --- a/drivers/gpu/drm/i915/gt/intel_lrc.c +++ b/drivers/gpu/drm/i915/gt/intel_lrc.c @@ -3683,6 +3683,7 @@ static void execlists_reset_prepare(struct intel_engine_cs *engine) * * FIXME: Wa for more modern gens needs to be validated */ + ring_set_paused(engine, 1); intel_engine_stop_cs(engine); }