[Intel-gfx] [PATCH 5/5] Add a more debug registers to ringbuffer_info
Ben Gamari
bgamari at gmail.com
Sat Feb 14 04:16:31 CET 2009
Add INSTDONE and IPEIR to ringbuffer_info output
---
drivers/gpu/drm/i915/i915_gem_debugfs.c | 2 ++
drivers/gpu/drm/i915/i915_reg.h | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_gem_debugfs.c b/drivers/gpu/drm/i915/i915_gem_debugfs.c
index 7954ad6..9a63bdc 100644
--- a/drivers/gpu/drm/i915/i915_gem_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_gem_debugfs.c
@@ -234,6 +234,8 @@ static int i915_ringbuffer_info(struct seq_file *m, void *data)
seq_printf(m, "RingMask : %08x\n", mask);
seq_printf(m, "RingSize : %08lx\n", dev_priv->ring.Size);
seq_printf(m, "Acthd : %08x\n", I915_READ(IS_I965G(dev) ? ACTHD_I965 : ACTHD));
+ seq_printf(m, "IPEIR : %08x\n", I915_READ(IPEIR));
+ seq_printf(m, "InstDone : %08x\n", I915_READ(INSTDONE));
return 0;
}
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
index 9d6539a..62df944 100644
--- a/drivers/gpu/drm/i915/i915_reg.h
+++ b/drivers/gpu/drm/i915/i915_reg.h
@@ -226,6 +226,8 @@
#define HWS_ADDRESS_MASK 0xfffff000
#define HWS_START_ADDRESS_SHIFT 4
#define IPEIR 0x02088
+#define IPEHR 0x0208C
+#define INSTDONE 0x02090
#define NOPID 0x02094
#define HWSTAM 0x02098
#define SCPD0 0x0209c /* 915+ only */
--
1.6.1.3
More information about the Intel-gfx
mailing list