drm/amd/display: Added debug prints for zstate_support and StutterPeriod
authorNatanel Roizenman <natanel.roizenman@amd.com>
Wed, 6 Mar 2024 01:26:54 +0000 (20:26 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 22 Mar 2024 19:47:50 +0000 (15:47 -0400)
Added debug prints for zstate_support and StutterPeriod in
dcn35_decide_zstate_support for testing.

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Natanel Roizenman <natanel.roizenman@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c

index 4d7bcda8ef72db7132529f8023920ddcf6b7af29..9ac3bc6643c3a844d0d7107732d5f3253ce12463 100644 (file)
@@ -577,6 +577,7 @@ void dcn35_decide_zstate_support(struct dc *dc, struct dc_state *context)
 {
        enum dcn_zstate_support_state support = DCN_ZSTATE_SUPPORT_DISALLOW;
        unsigned int i, plane_count = 0;
+       DC_LOGGER_INIT(dc->ctx->logger);
 
        for (i = 0; i < dc->res_pool->pipe_count; i++) {
                if (context->res_ctx.pipe_ctx[i].plane_state)
@@ -608,5 +609,8 @@ void dcn35_decide_zstate_support(struct dc *dc, struct dc_state *context)
 
        }
 
+       DC_LOG_SMU("zstate_support: %d, StutterPeriod: %d\n", support,
+                  (int)context->bw_ctx.dml.vba.StutterPeriod);
+
        context->bw_ctx.bw.dcn.clk.zstate_support = support;
 }