aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_dp.c
diff options
context:
space:
mode:
authorPatrik Jakobsson <patrik.r.jakobsson@gmail.com>2014-03-03 18:42:44 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-05 15:30:38 -0500
commitb3064154dfd37deb386b1e459c54e1ca2460b3d5 (patch)
tree37e4e57d9126dcd5f313f9174892d94956ab57d9 /drivers/gpu/drm/i915/intel_dp.c
parentd615a16622745d8e4c1104d5ca46c058ef576b7a (diff)
drm/i915: Don't just say it, actually force edp vdd
This patch fixes the blank screen bug introduced in 3.14-rc1 on the MacBook Air 6,2. The comments state that we need to force edp vdd so lets put it back. The regression was introduced by the following commit: commit dff392dbd258381a6c3164f38420593f2d291e3b Author: Paulo Zanoni <paulo.r.zanoni@intel.com> Date: Fri Dec 6 17:32:41 2013 -0200 drm/i915: don't touch the VDD when disabling the panel v2: Wrap intel_disable_dp() with _vdd_on and _vdd_off Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74628 Cc: Paulo Zanoni <paulo.r.zanoni@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com> Acked-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dp.c')
-rw-r--r--drivers/gpu/drm/i915/intel_dp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 1ac4b11765c7..10154ec77b98 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -1326,7 +1326,8 @@ void intel_edp_panel_off(struct intel_dp *intel_dp)
1326 pp = ironlake_get_pp_control(intel_dp); 1326 pp = ironlake_get_pp_control(intel_dp);
1327 /* We need to switch off panel power _and_ force vdd, for otherwise some 1327 /* We need to switch off panel power _and_ force vdd, for otherwise some
1328 * panels get very unhappy and cease to work. */ 1328 * panels get very unhappy and cease to work. */
1329 pp &= ~(POWER_TARGET_ON | PANEL_POWER_RESET | EDP_BLC_ENABLE); 1329 pp &= ~(POWER_TARGET_ON | PANEL_POWER_RESET | EDP_FORCE_VDD |
1330 EDP_BLC_ENABLE);
1330 1331
1331 pp_ctrl_reg = _pp_ctrl_reg(intel_dp); 1332 pp_ctrl_reg = _pp_ctrl_reg(intel_dp);
1332 1333
@@ -1861,9 +1862,11 @@ static void intel_disable_dp(struct intel_encoder *encoder)
1861 1862
1862 /* Make sure the panel is off before trying to change the mode. But also 1863 /* Make sure the panel is off before trying to change the mode. But also
1863 * ensure that we have vdd while we switch off the panel. */ 1864 * ensure that we have vdd while we switch off the panel. */
1865 edp_panel_vdd_on(intel_dp);
1864 intel_edp_backlight_off(intel_dp); 1866 intel_edp_backlight_off(intel_dp);
1865 intel_dp_sink_dpms(intel_dp, DRM_MODE_DPMS_OFF); 1867 intel_dp_sink_dpms(intel_dp, DRM_MODE_DPMS_OFF);
1866 intel_edp_panel_off(intel_dp); 1868 intel_edp_panel_off(intel_dp);
1869 edp_panel_vdd_off(intel_dp, true);
1867 1870
1868 /* cpu edp my only be disable _after_ the cpu pipe/plane is disabled. */ 1871 /* cpu edp my only be disable _after_ the cpu pipe/plane is disabled. */
1869 if (!(port == PORT_A || IS_VALLEYVIEW(dev))) 1872 if (!(port == PORT_A || IS_VALLEYVIEW(dev)))