]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd/display: Only log during optimize_bandwidth call
authorEthan Bitnun <etbitnun@amd.com>
Wed, 7 Feb 2024 23:06:59 +0000 (18:06 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Feb 2024 15:24:37 +0000 (10:24 -0500)
Prevent logs during a prepare_bandwidth call to ensure log accuracy.

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Acked-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Ethan Bitnun <etbitnun@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 ee5e7512a7eebb331a0b1ae190ffe31d645bde30..668f05c8654ef0f3d7e9d5989e76f802aa23247b 100644 (file)
@@ -815,7 +815,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) {
+       if (dc->config.enable_auto_dpm_test_logs && safe_to_lower) {
            dcn32_auto_dpm_test_log(new_clocks, clk_mgr, context);
        }
 }