aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_ringbuffer.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-04-09 04:19:44 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-05-05 03:08:40 -0400
commit48e48a0b8c1d2ceb87ad2b256a7219e9c1b998d6 (patch)
treeb3b074348e4132863664dec29f00ee454c9bb2ee /drivers/gpu/drm/i915/intel_ringbuffer.c
parent074c6adaf4e7d1423d373bd5d1afc20b683cb4d0 (diff)
drm/i915: Include a little more information about why ring init fails
If we include the expected values for the failing ring register checks, it makes it marginally easier to see which is the culprit. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Oscar Mateo <oscar.mateo@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.c')
-rw-r--r--drivers/gpu/drm/i915/intel_ringbuffer.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
index 7d99e84f76a3..8a2bd5a7ea9f 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.c
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
@@ -523,12 +523,11 @@ static int init_ring_common(struct intel_ring_buffer *ring)
523 I915_READ_START(ring) == i915_gem_obj_ggtt_offset(obj) && 523 I915_READ_START(ring) == i915_gem_obj_ggtt_offset(obj) &&
524 (I915_READ_HEAD(ring) & HEAD_ADDR) == 0, 50)) { 524 (I915_READ_HEAD(ring) & HEAD_ADDR) == 0, 50)) {
525 DRM_ERROR("%s initialization failed " 525 DRM_ERROR("%s initialization failed "
526 "ctl %08x head %08x tail %08x start %08x\n", 526 "ctl %08x (valid? %d) head %08x tail %08x start %08x [expected %08lx]\n",
527 ring->name, 527 ring->name,
528 I915_READ_CTL(ring), 528 I915_READ_CTL(ring), I915_READ_CTL(ring) & RING_VALID,
529 I915_READ_HEAD(ring), 529 I915_READ_HEAD(ring), I915_READ_TAIL(ring),
530 I915_READ_TAIL(ring), 530 I915_READ_START(ring), (unsigned long)i915_gem_obj_ggtt_offset(obj));
531 I915_READ_START(ring));
532 ret = -EIO; 531 ret = -EIO;
533 goto out; 532 goto out;
534 } 533 }