diff mbox

[RFC,03/30] drm/i915: wait for idle DDI_BUF_CTL after disabling it

Message ID 1346191621-12996-4-git-send-email-przanoni@gmail.com (mailing list archive)
State RFC
Headers show

Commit Message

Paulo Zanoni Aug. 28, 2012, 10:06 p.m. UTC
From: Paulo Zanoni <paulo.r.zanoni@intel.com>

Missing from intel_ddi_dpms.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
---
 drivers/gpu/drm/i915/intel_ddi.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
index b8b7670..4fd22ae 100644
--- a/drivers/gpu/drm/i915/intel_ddi.c
+++ b/drivers/gpu/drm/i915/intel_ddi.c
@@ -787,6 +787,9 @@  void intel_ddi_dpms(struct drm_encoder *encoder, int mode)
 	 */
 	I915_WRITE(DDI_BUF_CTL(port),
 			temp);
+
+	if (mode != DRM_MODE_DPMS_ON && (temp & DDI_BUF_CTL_ENABLE))
+		intel_wait_ddi_buf_idle(dev_priv, port);
 }
 
 static void intel_ddi_disable_pipe(struct drm_i915_private *dev_priv,