]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drm/i915: Only print out the actual number of fences for i915_error_state
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 12 May 2011 21:17:12 +0000 (22:17 +0100)
committerKeith Packard <keithp@keithp.com>
Sat, 4 Jun 2011 17:40:52 +0000 (10:40 -0700)
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/i915_debugfs.c

index 51c2257b11e6d7cfb990b6a667b8fa00e59dd92e..4d46441cbe2d830de73ffacdb5821dbdd11f6340 100644 (file)
@@ -776,7 +776,7 @@ static int i915_error_state(struct seq_file *m, void *unused)
        seq_printf(m, "  INSTPM: 0x%08x\n", error->instpm);
        seq_printf(m, "  seqno: 0x%08x\n", error->seqno);
 
-       for (i = 0; i < 16; i++)
+       for (i = 0; i < dev_priv->num_fence_regs; i++)
                seq_printf(m, "  fence[%d] = %08llx\n", i, error->fence[i]);
 
        if (error->active_bo)