Commit dfd9c1b4 authored by Chris Wilson's avatar Chris Wilson

drm/i915: Show guilty context name on GPU reset

We mention that we are resetting the GPU, and dump the device state for
post mortem debugging. However, while that dump contains the active
processes and the one flagged as causing the error, we do not always
include that information in dmesg. Include the name of the guilty
process in dmesg for reference.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: default avatarMika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191111114323.5833-4-chris@chris-wilson.co.uk
parent 267c0126
...@@ -87,6 +87,10 @@ static bool context_mark_guilty(struct i915_gem_context *ctx) ...@@ -87,6 +87,10 @@ static bool context_mark_guilty(struct i915_gem_context *ctx)
if (!i915_gem_context_is_bannable(ctx)) if (!i915_gem_context_is_bannable(ctx))
return false; return false;
dev_notice(ctx->i915->drm.dev,
"%s context reset due to GPU hang\n",
ctx->name);
/* Record the timestamp for the last N hangs */ /* Record the timestamp for the last N hangs */
prev_hang = ctx->hang_timestamp[0]; prev_hang = ctx->hang_timestamp[0];
for (i = 0; i < ARRAY_SIZE(ctx->hang_timestamp) - 1; i++) for (i = 0; i < ARRAY_SIZE(ctx->hang_timestamp) - 1; i++)
......
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