drm/i915: load the LUT before pipe enable on ILK+
Subsystems (2)
PATCH 1/1 drm/i915: load the LUT before pipe enable on ILK+
Per the specs and to address
https://bugs.freedesktop.org/show_bug.cgi?id=36888.
--- drivers/gpu/drm/i915/intel_display.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/intel_display.c +6 -2
@@ -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);
Signature · 1 line
1.7.1
Quoted 23 lines · On Wed, 15 Jun 2011 23:32:33 +0200 Jesse Barnes <[email protected]>…
Per the specs and to address
https://bugs.freedesktop.org/show_bug.cgi?id=36888.Signed-off-by Jesse Barnes <[email protected]>--- drivers/gpu/drm/i915/intel_display.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/intel_display.c +6
-0@@ -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);
drivers/gpu/drm/i915/intel_display.c static void ironlake_crtc_enable(struct drm_crtc *crtc) · line 2716
Quoted 10 lines
drivers/gpu/drm/i915/intel_display.c +0
-2intel_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);
Keith, please pull this one in for 3.1. Hardware will wedge if we try to access the palette after pipe enable but before FDI or eDP training completes, so we may as well just do it right before pipe enable.
Thanks,
Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center
Quoted 3 lines · Jesse Barnes
Keith, please pull this one in for 3.1. Hardware will wedge if we try to access the palette after pipe enable but before FDI or eDP training completes, so we may as well just do it right before pipe enable.
I've stuck this on drm-intel-fixes, which is on top of 3.0 at this point.
Signature · 1 line
[email protected]
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx