All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Fix VLV analog output shivers
@ 2013-06-11 20:08 ville.syrjala
  2013-06-11 21:06 ` Daniel Vetter
  0 siblings, 1 reply; 5+ messages in thread
From: ville.syrjala @ 2013-06-11 20:08 UTC (permalink / raw)
  To: intel-gfx

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

The current PLL settings produce a rather unstable picture when
I hook up a VLV to my HP ZR24w display via a VGA cable. Switching
the PLL to hybrid mode makes the picture a lot more stable. No
idea if this is truly wise though...

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 drivers/gpu/drm/i915/intel_display.c | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 29f2c0d..8c30a4c 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -4412,8 +4412,14 @@ static void vlv_update_pll(struct intel_crtc *crtc)
 		vlv_dpio_write(dev_priv, DPIO_LFP_COEFF(pipe),
 				 0x00d0000f);
 
-	if (intel_pipe_has_type(&crtc->base, INTEL_OUTPUT_EDP) ||
-	    intel_pipe_has_type(&crtc->base, INTEL_OUTPUT_DISPLAYPORT)) {
+	if (intel_pipe_has_type(&crtc->base, INTEL_OUTPUT_ANALOG)) {
+		/* XXX this gives a less shivery picture */
+		if (!pipe)
+			vlv_dpio_write(dev_priv, DPIO_REFSFR(pipe), 0x08f70000);
+		else
+			vlv_dpio_write(dev_priv, DPIO_REFSFR(pipe), 0x08f40000);
+	} else if (intel_pipe_has_type(&crtc->base, INTEL_OUTPUT_EDP) ||
+		   intel_pipe_has_type(&crtc->base, INTEL_OUTPUT_DISPLAYPORT)) {
 		/* Use SSC source */
 		if (!pipe)
 			vlv_dpio_write(dev_priv, DPIO_REFSFR(pipe),
@@ -4421,7 +4427,7 @@ static void vlv_update_pll(struct intel_crtc *crtc)
 		else
 			vlv_dpio_write(dev_priv, DPIO_REFSFR(pipe),
 					 0x0df70000);
-	} else { /* HDMI or VGA */
+	} else { /* HDMI */
 		/* Use bend source */
 		if (!pipe)
 			vlv_dpio_write(dev_priv, DPIO_REFSFR(pipe),
-- 
1.8.1.5

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-06-12  8:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-11 20:08 [PATCH] drm/i915: Fix VLV analog output shivers ville.syrjala
2013-06-11 21:06 ` Daniel Vetter
2013-06-11 23:18   ` Jesse Barnes
2013-06-12  8:14     ` Ville Syrjälä
2013-06-12  8:17       ` Daniel Vetter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.