[Intel-gfx] [PATCH] aide

Chris Wilson chris at chris-wilson.co.uk
Mon Apr 7 14:21:16 CEST 2014


---
 drivers/gpu/drm/i915/intel_ringbuffer.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
index 3316ec190d9c..1fefba56e073 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.c
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
@@ -477,6 +477,13 @@ static int init_ring_common(struct intel_ring_buffer *ring)
 
 	gen6_gt_force_wake_get(dev_priv, FORCEWAKE_ALL);
 
+	printk(KERN_ERR "Ring %s before initialisation: %08x %08x %08x %08x\n",
+	       ring->name,
+	       I915_READ_CTL(ring),
+	       I915_READ_HEAD(ring),
+	       I915_READ_TAIL(ring),
+	       I915_READ_START(ring));
+
 	if (!stop_ring(ring)) {
 		/* G45 ring initialization often fails to reset head to zero */
 		DRM_DEBUG_KMS("%s head not reset to zero "
@@ -540,6 +547,12 @@ static int init_ring_common(struct intel_ring_buffer *ring)
 	memset(&ring->hangcheck, 0, sizeof(ring->hangcheck));
 
 out:
+	printk(KERN_ERR "Ring %s after initialisation: %08x %08x %08x %08x\n",
+	       ring->name,
+	       I915_READ_CTL(ring),
+	       I915_READ_HEAD(ring),
+	       I915_READ_TAIL(ring),
+	       I915_READ_START(ring));
 	gen6_gt_force_wake_put(dev_priv, FORCEWAKE_ALL);
 
 	return ret;
-- 
1.9.1




More information about the Intel-gfx mailing list