Commit 898076ed authored by Jani Nikula's avatar Jani Nikula Committed by Daniel Vetter

drm/i915: debug print all of the DPCD we have

At some point the DPCD size was increased, but the debug print not. While
at it, switch to using hex dump.
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Reviewed-by: default avatarMika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 4d8d71b5
...@@ -2279,6 +2279,7 @@ intel_dp_detect(struct drm_connector *connector, bool force) ...@@ -2279,6 +2279,7 @@ intel_dp_detect(struct drm_connector *connector, bool force)
struct drm_device *dev = intel_dp->base.base.dev; struct drm_device *dev = intel_dp->base.base.dev;
enum drm_connector_status status; enum drm_connector_status status;
struct edid *edid = NULL; struct edid *edid = NULL;
char dpcd_hex_dump[sizeof(intel_dp->dpcd) * 3];
intel_dp->has_audio = false; intel_dp->has_audio = false;
...@@ -2287,10 +2288,9 @@ intel_dp_detect(struct drm_connector *connector, bool force) ...@@ -2287,10 +2288,9 @@ intel_dp_detect(struct drm_connector *connector, bool force)
else else
status = g4x_dp_detect(intel_dp); status = g4x_dp_detect(intel_dp);
DRM_DEBUG_KMS("DPCD: %02hx%02hx%02hx%02hx%02hx%02hx%02hx%02hx\n", hex_dump_to_buffer(intel_dp->dpcd, sizeof(intel_dp->dpcd),
intel_dp->dpcd[0], intel_dp->dpcd[1], intel_dp->dpcd[2], 32, 1, dpcd_hex_dump, sizeof(dpcd_hex_dump), false);
intel_dp->dpcd[3], intel_dp->dpcd[4], intel_dp->dpcd[5], DRM_DEBUG_KMS("DPCD: %s\n", dpcd_hex_dump);
intel_dp->dpcd[6], intel_dp->dpcd[7]);
if (status != connector_status_connected) if (status != connector_status_connected)
return status; return status;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment