drm/amd/display: Improve the log precision
authorEthan Bitnun <Ethan.Bitnun@amd.com>
Mon, 12 Feb 2024 23:02:33 +0000 (18:02 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Apr 2024 01:26:53 +0000 (21:26 -0400)
The previous assumption that there will be an optimize_bandwidth call
following every prepare_bandwidth call was incorrect and caused small
inaccuracies in logging, as some info was only updated in later prepare
calls.

Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Ethan Bitnun <Ethan.Bitnun@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@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/clk_mgr/dcn32/dcn32_clk_mgr.c

index 358a83b1114b3fa79040a7f6e64a6c4f830c124b..7eecb3403f74cf2381ff5a09445cdb6abfbf2cbb 100644 (file)
@@ -830,7 +830,7 @@ static void dcn32_update_clocks(struct clk_mgr *clk_mgr_base,
                dmcu->funcs->set_psr_wait_loop(dmcu,
                                clk_mgr_base->clks.dispclk_khz / 1000 / 7);
 
-       if (dc->config.enable_auto_dpm_test_logs && safe_to_lower) {
+       if (dc->config.enable_auto_dpm_test_logs) {
            dcn32_auto_dpm_test_log(new_clocks, clk_mgr, context);
        }
 }