From 5897922644dff38677375434f1841b5312d9c876 Mon Sep 17 00:00:00 2001 From: Manasi Navare Date: Tue, 13 Jun 2017 19:20:56 -0700 Subject: [PATCH] drm/i915/dp: Test patch for AUX CH timeouts debug Signed-off-by: Manasi Navare --- drivers/gpu/drm/i915/intel_ddi.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index db80938..badd9a1 100644 --- a/drivers/gpu/drm/i915/intel_ddi.c +++ b/drivers/gpu/drm/i915/intel_ddi.c @@ -2002,6 +2002,8 @@ static void intel_ddi_pre_enable_dp(struct intel_encoder *encoder, bool link_mst) { struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); + struct intel_connector *intel_connector = intel_dp->attached_connector; + struct drm_connector *connector = &intel_connector->base; struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); enum port port = intel_ddi_get_encoder_port(encoder); struct intel_digital_port *dig_port = enc_to_dig_port(&encoder->base); @@ -2019,6 +2021,15 @@ static void intel_ddi_pre_enable_dp(struct intel_encoder *encoder, intel_prepare_dp_ddi_buffers(encoder); intel_ddi_init_dp_buf_reg(encoder); + /* Manasi Try powering on the panel here again */ + if (encoder->type == INTEL_OUTPUT_EDP) { + /* Also check the connector status for eDP*/ + DRM_DEBUG_KMS("Manasi Debug [CONNECTOR:%d:%s] status %s \n", + connector->base.id, + connector->name, + drm_get_connector_status_name(connector->status)); + intel_edp_panel_on(intel_dp); + } intel_dp_sink_dpms(intel_dp, DRM_MODE_DPMS_ON); intel_dp_start_link_train(intel_dp); if (port != PORT_A || INTEL_GEN(dev_priv) >= 9) -- 2.1.4