aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_display.c
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2013-03-06 18:03:12 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-03-17 16:26:04 -0400
commita18c4c3d8fd5c0abe955b85a41f50798f321618f (patch)
treef35711d91d8258ef830601176877e860bed2dd84 /drivers/gpu/drm/i915/intel_display.c
parent2831d8427cace563767cb802de05db28c4c6f894 (diff)
drm/i915: capture the correct cursor registers on IVB
This solves some "unclaimed register" messages when there's a GPU hang on Haswell. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Reviewed-by: Ben Widawsky <ben@bwidawsk.net> [danvet: Add missing IS_VLV check as spotted by Ville Syrjälä.] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 502cb28a46c9..1dc6c18f3970 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -9334,9 +9334,15 @@ intel_display_capture_error_state(struct drm_device *dev)
9334 for_each_pipe(i) { 9334 for_each_pipe(i) {
9335 cpu_transcoder = intel_pipe_to_cpu_transcoder(dev_priv, i); 9335 cpu_transcoder = intel_pipe_to_cpu_transcoder(dev_priv, i);
9336 9336
9337 error->cursor[i].control = I915_READ(CURCNTR(i)); 9337 if (INTEL_INFO(dev)->gen <= 6 || IS_VALLEYVIEW(dev)) {
9338 error->cursor[i].position = I915_READ(CURPOS(i)); 9338 error->cursor[i].control = I915_READ(CURCNTR(i));
9339 error->cursor[i].base = I915_READ(CURBASE(i)); 9339 error->cursor[i].position = I915_READ(CURPOS(i));
9340 error->cursor[i].base = I915_READ(CURBASE(i));
9341 } else {
9342 error->cursor[i].control = I915_READ(CURCNTR_IVB(i));
9343 error->cursor[i].position = I915_READ(CURPOS_IVB(i));
9344 error->cursor[i].base = I915_READ(CURBASE_IVB(i));
9345 }
9340 9346
9341 error->plane[i].control = I915_READ(DSPCNTR(i)); 9347 error->plane[i].control = I915_READ(DSPCNTR(i));
9342 error->plane[i].stride = I915_READ(DSPSTRIDE(i)); 9348 error->plane[i].stride = I915_READ(DSPSTRIDE(i));