From 038a58c3a6dcebae31dd0a52a9da25ab11fafe76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= Date: Tue, 18 Aug 2015 17:14:44 +0300 Subject: [PATCH] debug sink state on long hpd --- drivers/gpu/drm/i915/intel_dp.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index b905c19..02effad 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c @@ -4998,6 +4998,8 @@ intel_dp_hpd_pulse(struct intel_digital_port *intel_dig_port, bool long_hpd) intel_display_power_get(dev_priv, power_domain); if (long_hpd) { + u8 buf = 0; + /* indicate that we need to restart link training */ intel_dp->train_set_valid = false; @@ -5015,9 +5017,16 @@ intel_dp_hpd_pulse(struct intel_digital_port *intel_dig_port, bool long_hpd) intel_dp_probe_oui(intel_dp); + ret = drm_dp_dpcd_readb(&intel_dp->aux, DP_SET_POWER, &buf); + if (ret == 1) + DRM_DEBUG_KMS("DP sink power %x\n", buf); + + ret = drm_dp_dpcd_readb(&intel_dp->aux, DP_TRAINING_PATTERN_SET, &buf); + if (ret == 1) + DRM_DEBUG_KMS("DP sink training pattern %x\n", buf); + if (!intel_dp_probe_mst(intel_dp)) goto mst_fail; - } else { if (intel_dp->is_mst) { if (intel_dp_check_mst_status(intel_dp) == -EINVAL) -- 2.4.6