All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm: dpcd: Print more useful information during error
@ 2020-04-09 19:52 ` Aurabindo Pillai
  0 siblings, 0 replies; 6+ messages in thread
From: Aurabindo Pillai @ 2020-04-09 19:52 UTC (permalink / raw)
  To: maarten.lankhorst, mripard, airlied, daniel; +Cc: dri-devel, linux-kernel

When DPCD access errors occur, knowing the register and request
associated with the error helps debugging, so print the
details in the debug message.

Signed-off-by: Aurabindo Pillai <mail@aurabindo.in>
---
 drivers/gpu/drm/drm_dp_helper.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c
index a5364b519..545606aac 100644
--- a/drivers/gpu/drm/drm_dp_helper.c
+++ b/drivers/gpu/drm/drm_dp_helper.c
@@ -257,7 +257,9 @@ static int drm_dp_dpcd_access(struct drm_dp_aux *aux, u8 request,
 			err = ret;
 	}
 
-	DRM_DEBUG_KMS("Too many retries, giving up. First error: %d\n", err);
+	DRM_DEBUG_KMS("dpcd: Too many retries, giving up. First error: %d\t"
+		      "address: %x\trequest: %x\t size:%zu\n",
+		      err, msg.address, msg.request, msg.size);
 	ret = err;
 
 unlock:
-- 
2.26.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-04-16  7:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-09 19:52 [PATCH] drm: dpcd: Print more useful information during error Aurabindo Pillai
2020-04-09 19:52 ` Aurabindo Pillai
2020-04-14 11:03 ` Jani Nikula
2020-04-14 11:03   ` Jani Nikula
2020-04-16  1:44   ` Aurabindo Pillai
2020-04-16  1:44     ` Aurabindo Pillai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.