drm/i915: Fix debugfs PDP register dump
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 31 Mar 2014 15:17:16 +0000 (18:17 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 3 Apr 2014 09:26:07 +0000 (11:26 +0200)
Iterate over all the PDP registers instead of just printing PDP0 four
times in gen8 PPGTT debugfs info.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c

index 8d1845505169307ef38ba27ec777d54df88f7187..a76faef95981951bdfe861fc7992a06197867a3f 100644 (file)
@@ -1830,8 +1830,7 @@ static void gen8_ppgtt_info(struct seq_file *m, struct drm_device *dev)
                        u64 pdp = I915_READ(ring->mmio_base + offset + 4);
                        pdp <<= 32;
                        pdp |= I915_READ(ring->mmio_base + offset);
-                       for (i = 0; i < 4; i++)
-                               seq_printf(m, "\tPDP%d 0x%016llx\n", i, pdp);
+                       seq_printf(m, "\tPDP%d 0x%016llx\n", i, pdp);
                }
        }
 }