drm/i915: Fix SKL sprite disable double buffer register update
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 19 Mar 2015 15:57:14 +0000 (17:57 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 20 Mar 2015 10:48:23 +0000 (11:48 +0100)
Write the PLANE_SURF register instead of PLANE_CTL to arm the double
buffer regisrter update.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_sprite.c

index a4c9c66d7e79ccf08257dac334790529fc442dd8..0f00209bb220b149e7efec6ecd87d043718e0dde 100644 (file)
@@ -301,8 +301,8 @@ skl_disable_plane(struct drm_plane *drm_plane, struct drm_crtc *crtc)
        I915_WRITE(PLANE_CTL(pipe, plane), 0);
 
        /* Activate double buffered register update */
-       I915_WRITE(PLANE_CTL(pipe, plane), 0);
-       POSTING_READ(PLANE_CTL(pipe, plane));
+       I915_WRITE(PLANE_SURF(pipe, plane), 0);
+       POSTING_READ(PLANE_SURF(pipe, plane));
 
        intel_update_sprite_watermarks(drm_plane, crtc, 0, 0, 0, false, false);
 }