From: Chris Wilson Date: Wed, 2 May 2018 22:03:13 +0000 (+0100) Subject: drm/i915: Mark the hangcheck as idle when unparking the engines X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e21b141376f9;p=openwrt%2Fstaging%2Fblogic.git drm/i915: Mark the hangcheck as idle when unparking the engines As we unpark the engines and are about to begin a new cycle of activity, mark the current status of the hangceck as idle so that we avoid carrying over a stale timestamp/action into the next cycle. Signed-off-by: Chris Wilson Cc: Mika Kuoppala Reviewed-by: Joonas Lahtinen Link: https://patchwork.freedesktop.org/patch/msgid/20180502220313.6459-2-chris@chris-wilson.co.uk --- diff --git a/drivers/gpu/drm/i915/intel_engine_cs.c b/drivers/gpu/drm/i915/intel_engine_cs.c index a90769b9954e..70325e0824e3 100644 --- a/drivers/gpu/drm/i915/intel_engine_cs.c +++ b/drivers/gpu/drm/i915/intel_engine_cs.c @@ -1073,6 +1073,8 @@ void intel_engines_unpark(struct drm_i915_private *i915) for_each_engine(engine, i915, id) { if (engine->unpark) engine->unpark(engine); + + intel_engine_init_hangcheck(engine); } }