Skip to contentSkip to conversation

drm/i915: debug log DPCD downstream ports if available

PATCH New Jani Nikula 1 participant 1 message May 7, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: debug log DPCD downstream ports if available

Should prove helpful in debugging some DP branch devices.

---
 drivers/gpu/drm/i915/intel_dp.c |    5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/i915/intel_dp.c +5 -0
index a293523..af16d5b 100644
@@ -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;
 }
 
Signature · 1 line
1.7.9.5