]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
drm/i915: load the LUT before pipe enable on ILK+
authorJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 15 Jun 2011 21:32:33 +0000 (23:32 +0200)
committerKeith Packard <keithp@keithp.com>
Fri, 22 Jul 2011 20:37:00 +0000 (13:37 -0700)
Per the specs and to address
https://bugs.freedesktop.org/show_bug.cgi?id=36888.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: stable@kernel.org
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/intel_display.c

index 0f1c799afea1be623f38cd019ca9fbfe42d37516..5609c065aaf4a92206a34277b2fe2a78f23096c2 100644 (file)
@@ -2699,14 +2699,18 @@ static void ironlake_crtc_enable(struct drm_crtc *crtc)
                I915_WRITE(PF_WIN_SZ(pipe), dev_priv->pch_pf_size);
        }
 
+       /*
+        * On ILK+ LUT must be loaded before the pipe is running but with
+        * clocks enabled
+        */
+       intel_crtc_load_lut(crtc);
+
        intel_enable_pipe(dev_priv, pipe, is_pch_port);
        intel_enable_plane(dev_priv, plane, pipe);
 
        if (is_pch_port)
                ironlake_pch_enable(crtc);
 
-       intel_crtc_load_lut(crtc);
-
        mutex_lock(&dev->struct_mutex);
        intel_update_fbc(dev);
        mutex_unlock(&dev->struct_mutex);