From: Nicholas Kazlauskas <[email protected]>

[Why]
To know if DMCUB is idle at the time of the debug data being collected.

[How]
Extend the logging to include the field.

It's already captured as part of each ASIC's get_diagnostic_data.

Reviewed-by: Dillon Varone <[email protected]>
Signed-off-by: Nicholas Kazlauskas <[email protected]>
Signed-off-by: Matthew Stewart <[email protected]>
---
 drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c 
b/drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
index 602655dd1323..2dc6ae6b5bea 100644
--- a/drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
+++ b/drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
@@ -999,6 +999,7 @@ void dc_dmub_srv_log_diagnostic_data(struct dc_dmub_srv 
*dc_dmub_srv)
        DC_LOG_DEBUG("    is_traceport_en    : %d", 
dc_dmub_srv->dmub->debug.is_traceport_en);
        DC_LOG_DEBUG("    is_cw0_en          : %d", 
dc_dmub_srv->dmub->debug.is_cw0_enabled);
        DC_LOG_DEBUG("    is_cw6_en          : %d", 
dc_dmub_srv->dmub->debug.is_cw6_enabled);
+       DC_LOG_DEBUG("    is_pwait           : %d", 
dc_dmub_srv->dmub->debug.is_pwait);
 }
 
 static bool dc_dmub_should_update_cursor_data(struct pipe_ctx *pipe_ctx)
-- 
2.52.0

Reply via email to