]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
drm/i915: Implement plane-disabled assertion for PCH too
authorAdam Jackson <ajax@redhat.com>
Fri, 7 Oct 2011 18:38:42 +0000 (14:38 -0400)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 17 Jan 2012 11:52:11 +0000 (12:52 +0100)
Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c

index 5fa1476cbfc6cfe93b74a7fe34eb3134d78e5945..d775f954c1b6b02421bdb0070b2b26cb6030a75b 100644 (file)
@@ -970,8 +970,14 @@ static void assert_planes_disabled(struct drm_i915_private *dev_priv,
        int cur_pipe;
 
        /* Planes are fixed to pipes on ILK+ */
-       if (HAS_PCH_SPLIT(dev_priv->dev))
+       if (HAS_PCH_SPLIT(dev_priv->dev)) {
+               reg = DSPCNTR(pipe);
+               val = I915_READ(reg);
+               WARN((val & DISPLAY_PLANE_ENABLE),
+                    "plane %c assertion failure, should be disabled but not\n",
+                    plane_name(pipe));
                return;
+       }
 
        /* Need to check both planes against the pipe */
        for (i = 0; i < 2; i++) {