[Intel-gfx] [PATCH 3/3] Add a more debug registers to ringbuffer_info

Carl Worth cworth at cworth.org
Fri Mar 20 19:54:27 CET 2009


From: Ben Gamari <bgamari at gmail.com>

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 3a2cd34..32d1b79 100644
--- a/drivers/gpu/drm/i915/i915_gem_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_gem_debugfs.c
@@ -325,6 +325,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 b769027..7161ac0 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.2




More information about the Intel-gfx mailing list