[Intel-gfx] [PATCH 31/37] drm/i915: enable PCH earlier

Eugeni Dodonov eugeni.dodonov at intel.com
Thu Mar 22 02:10:06 CET 2012


The modesetting sequence for PCH-related connections mentions that the
order of plane/pipe enablement could happen either before of after PCH
enablement.

With LPT, however, we need to enable some things earlier to be able to
talk to PCH. So let's do it a bit in advance.

Signed-off-by: Eugeni Dodonov <eugeni.dodonov at intel.com>
---
 drivers/gpu/drm/i915/intel_display.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index f7dbcab..b1ad10a 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -3140,12 +3140,12 @@ static void ironlake_crtc_enable(struct drm_crtc *crtc)
 	 */
 	intel_crtc_load_lut(crtc);
 
-	intel_enable_pipe(dev_priv, pipe, is_pch_port);
-	intel_enable_plane(dev_priv, plane, pipe);
-
 	if (is_pch_port)
 		ironlake_pch_enable(crtc);
 
+	intel_enable_pipe(dev_priv, pipe, is_pch_port);
+	intel_enable_plane(dev_priv, plane, pipe);
+
 	mutex_lock(&dev->struct_mutex);
 	intel_update_fbc(dev);
 	mutex_unlock(&dev->struct_mutex);
-- 
1.7.9.2




More information about the Intel-gfx mailing list