diff mbox

drm/i915: debug log DPCD downstream ports if available

Message ID 1367931879-18585-1-git-send-email-jani.nikula@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jani Nikula May 7, 2013, 1:04 p.m. UTC
Should prove helpful in debugging some DP branch devices.

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

Patch

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;
 }