[Intel-gfx] [PATCH 1/2] drm/i915: Add gen to the gpu hang ecode

Chris Wilson chris at chris-wilson.co.uk
Thu Nov 6 12:06:30 CET 2014


On Thu, Nov 06, 2014 at 01:03:46PM +0200, Mika Kuoppala wrote:
> for the Brothers in Triage
> 
> Signed-off-by: Mika Kuoppala <mika.kuoppala at intel.com>
> ---
>  drivers/gpu/drm/i915/i915_gpu_error.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_gpu_error.c b/drivers/gpu/drm/i915/i915_gpu_error.c
> index d17360b..89a2f3d 100644
> --- a/drivers/gpu/drm/i915/i915_gpu_error.c
> +++ b/drivers/gpu/drm/i915/i915_gpu_error.c
> @@ -1242,7 +1242,8 @@ static void i915_error_capture_msg(struct drm_device *dev,
>  	ecode = i915_error_generate_code(dev_priv, error, &ring_id);
>  
>  	len = scnprintf(error->error_msg, sizeof(error->error_msg),
> -			"GPU HANG: ecode %d:0x%08x", ring_id, ecode);
> +			"GPU HANG: ecode %d:%d:0x%08x",
> +			INTEL_INFO(dev)->gen, ring_id, ecode);

Well, can I have gen.subgen? Oh, if only we tracked it thus.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list