Commit caa08c58 authored by Isabel Zhang's avatar Isabel Zhang Committed by Alex Deucher

drm/amd/display: Add stay count and bstatus to HDCP log

[Why]
So the values of stay count and bstatus can be easily viewed during
debugging.

[How]
Add stay count and bstatus values to be outputted in HDCP log
Signed-off-by: default avatarIsabel Zhang <isabel.zhang@amd.com>
Reviewed-by: default avatarWenjing Liu <Wenjing.Liu@amd.com>
Acked-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e1ab4a91
...@@ -37,10 +37,11 @@ ...@@ -37,10 +37,11 @@
/* default logs */ /* default logs */
#define HDCP_ERROR_TRACE(hdcp, status) \ #define HDCP_ERROR_TRACE(hdcp, status) \
HDCP_LOG_ERR(hdcp, \ HDCP_LOG_ERR(hdcp, \
"[Link %d] WARNING %s IN STATE %s", \ "[Link %d] WARNING %s IN STATE %s STAY COUNT %d", \
hdcp->config.index, \ hdcp->config.index, \
mod_hdcp_status_to_str(status), \ mod_hdcp_status_to_str(status), \
mod_hdcp_state_id_to_str(hdcp->state.id)) mod_hdcp_state_id_to_str(hdcp->state.id), \
hdcp->state.stay_count)
#define HDCP_HDCP1_ENABLED_TRACE(hdcp, displayIndex) \ #define HDCP_HDCP1_ENABLED_TRACE(hdcp, displayIndex) \
HDCP_LOG_VER(hdcp, \ HDCP_LOG_VER(hdcp, \
"[Link %d] HDCP 1.4 enabled on display %d", \ "[Link %d] HDCP 1.4 enabled on display %d", \
...@@ -111,6 +112,9 @@ ...@@ -111,6 +112,9 @@
sizeof(hdcp->auth.msg.hdcp1.bksv)); \ sizeof(hdcp->auth.msg.hdcp1.bksv)); \
HDCP_DDC_READ_TRACE(hdcp, "BCAPS", &hdcp->auth.msg.hdcp1.bcaps, \ HDCP_DDC_READ_TRACE(hdcp, "BCAPS", &hdcp->auth.msg.hdcp1.bcaps, \
sizeof(hdcp->auth.msg.hdcp1.bcaps)); \ sizeof(hdcp->auth.msg.hdcp1.bcaps)); \
HDCP_DDC_READ_TRACE(hdcp, "BSTATUS", \
(uint8_t *)&hdcp->auth.msg.hdcp1.bstatus, \
sizeof(hdcp->auth.msg.hdcp1.bstatus)); \
HDCP_DDC_WRITE_TRACE(hdcp, "AN", hdcp->auth.msg.hdcp1.an, \ HDCP_DDC_WRITE_TRACE(hdcp, "AN", hdcp->auth.msg.hdcp1.an, \
sizeof(hdcp->auth.msg.hdcp1.an)); \ sizeof(hdcp->auth.msg.hdcp1.an)); \
HDCP_DDC_WRITE_TRACE(hdcp, "AKSV", hdcp->auth.msg.hdcp1.aksv, \ HDCP_DDC_WRITE_TRACE(hdcp, "AKSV", hdcp->auth.msg.hdcp1.aksv, \
......
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