[Intel-gfx] [PATCH] drm/i915: debug log DPCD downstream ports if available

Jani Nikula jani.nikula at intel.com
Tue May 7 15:04:39 CEST 2013


Should prove helpful in debugging some DP branch devices.

Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
 drivers/gpu/drm/i915/intel_dp.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index a293523..af16d5b 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -2280,6 +2280,11 @@ intel_dp_get_dpcd(struct intel_dp *intel_dp)
 					   DP_MAX_DOWNSTREAM_PORTS) == 0)
 		return false; /* downstream port status fetch failed */
 
+	hex_dump_to_buffer(intel_dp->downstream_ports,
+			   sizeof(intel_dp->downstream_ports),
+			   32, 1, dpcd_hex_dump, sizeof(dpcd_hex_dump), false);
+	DRM_DEBUG_KMS("DPCD Downstream Ports: %s\n", dpcd_hex_dump);
+
 	return true;
 }
 
-- 
1.7.9.5




More information about the Intel-gfx mailing list