diff options
| author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-06-15 17:32:33 -0400 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2011-07-22 16:37:00 -0400 |
| commit | 9c54c0dd948d715ccfd79e97d852f80eeb53254a (patch) | |
| tree | 49f18f67a736684bfee4b6c7f38175cee7e27632 | |
| parent | f3234706a77bd6e1592ae71fb3268e04cb030dba (diff) | |
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.
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: stable@kernel.org
Signed-off-by: Keith Packard <keithp@keithp.com>
| -rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 0f1c799afea1..5609c065aaf4 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
| @@ -2699,14 +2699,18 @@ static void ironlake_crtc_enable(struct drm_crtc *crtc) | |||
| 2699 | I915_WRITE(PF_WIN_SZ(pipe), dev_priv->pch_pf_size); | 2699 | I915_WRITE(PF_WIN_SZ(pipe), dev_priv->pch_pf_size); |
| 2700 | } | 2700 | } |
| 2701 | 2701 | ||
| 2702 | /* | ||
| 2703 | * On ILK+ LUT must be loaded before the pipe is running but with | ||
| 2704 | * clocks enabled | ||
| 2705 | */ | ||
| 2706 | intel_crtc_load_lut(crtc); | ||
| 2707 | |||
| 2702 | intel_enable_pipe(dev_priv, pipe, is_pch_port); | 2708 | intel_enable_pipe(dev_priv, pipe, is_pch_port); |
| 2703 | intel_enable_plane(dev_priv, plane, pipe); | 2709 | intel_enable_plane(dev_priv, plane, pipe); |
| 2704 | 2710 | ||
| 2705 | if (is_pch_port) | 2711 | if (is_pch_port) |
| 2706 | ironlake_pch_enable(crtc); | 2712 | ironlake_pch_enable(crtc); |
| 2707 | 2713 | ||
| 2708 | intel_crtc_load_lut(crtc); | ||
| 2709 | |||
| 2710 | mutex_lock(&dev->struct_mutex); | 2714 | mutex_lock(&dev->struct_mutex); |
| 2711 | intel_update_fbc(dev); | 2715 | intel_update_fbc(dev); |
| 2712 | mutex_unlock(&dev->struct_mutex); | 2716 | mutex_unlock(&dev->struct_mutex); |
