Commit 84ef3a72 authored by Chris Wilson's avatar Chris Wilson

drm/i915: Show engine state when hangcheck detects a stall

Knowing the state of the engine when hangcheck thinks it is stalling is
useful for both debugging hangcheck itself and the potential cause of an
unwanted stall.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: default avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171214122613.26134-1-chris@chris-wilson.co.uk
parent fe66e928
...@@ -349,13 +349,18 @@ static void hangcheck_accumulate_sample(struct intel_engine_cs *engine, ...@@ -349,13 +349,18 @@ static void hangcheck_accumulate_sample(struct intel_engine_cs *engine,
case ENGINE_ACTIVE_HEAD: case ENGINE_ACTIVE_HEAD:
case ENGINE_ACTIVE_SUBUNITS: case ENGINE_ACTIVE_SUBUNITS:
/* Seqno stuck with still active engine gets leeway, /*
* Seqno stuck with still active engine gets leeway,
* in hopes that it is just a long shader. * in hopes that it is just a long shader.
*/ */
timeout = I915_SEQNO_DEAD_TIMEOUT; timeout = I915_SEQNO_DEAD_TIMEOUT;
break; break;
case ENGINE_DEAD: case ENGINE_DEAD:
if (drm_debug & DRM_UT_DRIVER) {
struct drm_printer p = drm_debug_printer("hangcheck");
intel_engine_dump(engine, &p, "%s", engine->name);
}
break; break;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment