]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/i915: Add gen to the gpu hang ecode
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Thu, 6 Nov 2014 11:03:46 +0000 (13:03 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 7 Nov 2014 17:42:22 +0000 (18:42 +0100)
for the Brothers in Triage

Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gpu_error.c

index d17360bc1cd1e6f774d368ebea50edea869efae9..89a2f3dbf9569e9242461858a965c40a43d0c745 100644 (file)
@@ -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);
 
        if (ring_id != -1 && error->ring[ring_id].pid != -1)
                len += scnprintf(error->error_msg + len,