[PATCH 2/2] enable VGA mode before P1/P2 write

From: Ville SyrjÃlÃ
Date: Wed Oct 07 2015 - 11:27:33 EST


---
drivers/gpu/drm/i915/intel_display.c | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index f4fdff9..036550f 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -1743,6 +1743,12 @@ static void i9xx_enable_pll(struct intel_crtc *crtc)
I915_READ(DPLL(!crtc->pipe)) | DPLL_DVO_2X_MODE);
}

+ /*
+ * Apparently we need to have VGA mode enabled
+ * prior to writing P1/P2, otherwise they won't take.
+ */
+ I915_WRITE(reg, 0);
+
I915_WRITE(reg, dpll);

/* Wait for the clocks to stabilize. */
--
2.4.9


--R3G7APHDIzY6R/pk--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/