drm/i915: mask transcoder select bits before setting them on LVDS
Subsystems (2)
PATCH 1/1 drm/i915: mask transcoder select bits before setting them on LVDS
The transcoder port may changed from mode set to mode set, so make sure to mask out the selection bits before setting the right ones or we'll get black screens when going from transcoder B to A.
--- drivers/gpu/drm/i915/intel_display.c | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/intel_display.c +8 -5
@@ -5808,12 +5808,15 @@ static int ironlake_crtc_mode_set(struct drm_crtc *crtc,if (is_lvds) { temp =I915_READ (PCH_LVDS ); temp |=LVDS_PORT_EN |LVDS_A0A2_CLKA_POWER_UP ; -if (HAS_PCH_CPT (dev)) +if (HAS_PCH_CPT (dev)) { + temp &= ~PORT_TRANS_SEL_MASK ; temp |=PORT_TRANS_SEL_CPT (pipe); -else if (pipe ==1 ) - temp |=LVDS_PIPEB_SELECT ; -else - temp &= ~LVDS_PIPEB_SELECT ; + }else { +if (pipe ==1 ) + temp |=LVDS_PIPEB_SELECT ; +else + temp &= ~LVDS_PIPEB_SELECT ; + }/* set the corresponsding LVDS_BORDER bit */ temp |= dev_priv->lvds_border_bits;
Signature · 1 line
1.7.1
Quoted 3 lines · Jesse Barnes
The transcoder port may changed from mode set to mode set, so make sure to mask out the selection bits before setting the right ones or we'll get black screens when going from transcoder B to A.
Merged:
a190d70..7885d20 drm-intel-fixes -> drm-intel-fixes
Signature · 1 line
[email protected]
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Hi Greg,
Quoted 10 lines · Keith Packard
Quoted 3 lines · Jesse Barnes
The transcoder port may changed from mode set to mode set, so make sure to mask out the selection bits before setting the right ones or we'll get black screens when going from transcoder B to A.
Reviewed-by Keith Packard <[email protected]>Merged:
a190d70..7885d20 drm-intel-fixes -> drm-intel-fixes
Please queue
7885d2052bd9 drm/i915: mask transcoder select bits before setting them on LVDS, 2012-01-12
for inclusion in the 3.2.y tree. Bisects[1] to v3.2-rc1~135^2~2^2~17 ("drm/i915: add PLL sharing support to handle 3 pipes") so 3.1.y and earlier are not affected. Fixed between v3.3-rc1 and -rc2 so 3.3.y is not affected, either.
Jakob (cc-ed) confirmed[2] that the patch helps.
The author acked it for inclusion in stable[3].
Thanks,
Jonathan
[1] http://lists.freedesktop.org/archives/intel-gfx/2012-January/014316.html
[2] http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=65;bug=660394
[3] http://thread.gmane.org/gmane.linux.ubuntu.bugs.general/3173872/focus=3189969
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 3 lines · Greg KH
Argh, it just missed the cutoff for the next 3.2-stable release, sorry, this will have to wait for the next one, the build machines are already underway at the moment with the tests...
No problem. As long as it enters the tree soonish, I'm happy. :)