All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/i915: Restore lost DPLL register write on gen2-4
@ 2015-10-07 19:08 ville.syrjala
  2015-10-07 19:08 ` [PATCH 2/2] drm/i915: Enable DPLL VGA mode before P1/P2 divider write ville.syrjala
  2015-10-08  8:17   ` Daniel Vetter
  0 siblings, 2 replies; 14+ messages in thread
From: ville.syrjala @ 2015-10-07 19:08 UTC (permalink / raw)
  To: intel-gfx; +Cc: stable, Nick Bowler

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

We accidentally lost the initial DPLL register write in
1c4e02746147 drm/i915: Fix DVO 2x clock enable on 830M

The "three times for luck" hack probably saved us from a total
disaster. But anyway, bring the initial write back so that the
code actually makes some sense.

Cc: stable@vger.kernel.org
Cc: Nick Bowler <nbowler@draconx.ca>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 drivers/gpu/drm/i915/intel_display.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 147e700..f4fdff9 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -1743,6 +1743,8 @@ static void i9xx_enable_pll(struct intel_crtc *crtc)
 			   I915_READ(DPLL(!crtc->pipe)) | DPLL_DVO_2X_MODE);
 	}
 
+	I915_WRITE(reg, dpll);
+
 	/* Wait for the clocks to stabilize. */
 	POSTING_READ(reg);
 	udelay(150);
-- 
2.4.9

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

end of thread, other threads:[~2015-10-13 14:05 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-07 19:08 [PATCH 1/2] drm/i915: Restore lost DPLL register write on gen2-4 ville.syrjala
2015-10-07 19:08 ` [PATCH 2/2] drm/i915: Enable DPLL VGA mode before P1/P2 divider write ville.syrjala
2015-10-08  8:19   ` Daniel Vetter
2015-10-08  8:47     ` Chris Wilson
2015-10-08  8:17 ` [Intel-gfx] [PATCH 1/2] drm/i915: Restore lost DPLL register write on gen2-4 Daniel Vetter
2015-10-08  8:17   ` Daniel Vetter
2015-10-08  8:18   ` Ville Syrjälä
2015-10-08  8:18     ` Ville Syrjälä
2015-10-13 13:10     ` Jani Nikula
2015-10-13 13:10       ` [Intel-gfx] " Jani Nikula
2015-10-13 13:56       ` Daniel Vetter
2015-10-13 13:56         ` [Intel-gfx] " Daniel Vetter
2015-10-13 14:07         ` Jani Nikula
2015-10-13 14:07           ` [Intel-gfx] " Jani Nikula

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.