From dde1cfd83207405d91469a2a6023616edc79dcfd Mon Sep 17 00:00:00 2001 From: Mika Kahola Date: Mon, 14 Dec 2015 13:29:55 +0200 Subject: [PATCH v2 2/2] drm/i915: Disable DP fast link training when resuming Disable DisplayPort fast link training feature when resuming back from the suspend state. This fixes a reported screen flickering issue reported in Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91393 Signed-off-by: Mika Kahola --- drivers/gpu/drm/i915/intel_display.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 7dd7200..256e625 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -15733,6 +15733,7 @@ void intel_display_resume(struct drm_device *dev) struct intel_connector *conn; struct intel_plane *plane; struct drm_crtc *crtc; + struct intel_dp *intel_dp; int ret; if (!state) @@ -15762,6 +15763,13 @@ void intel_display_resume(struct drm_device *dev) } for_each_intel_connector(dev, conn) { + if (conn->base.connector_type == DRM_MODE_CONNECTOR_eDP || + conn->base.connector_type == DRM_MODE_CONNECTOR_DisplayPort) { + intel_dp = enc_to_intel_dp(&conn->encoder->base); + intel_dp->train_set_valid = false; + DRM_DEBUG_KMS("DP fast link training disabled\n"); + } + ret = PTR_ERR_OR_ZERO(drm_atomic_get_connector_state(state, &conn->base)); if (ret) goto err; -- 1.9.1