drm/amd/display: Update idle hardmins if uclk or fclk requirement changed
authorDillon Varone <dillon.varone@amd.com>
Fri, 31 May 2024 22:09:48 +0000 (18:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jun 2024 20:18:26 +0000 (16:18 -0400)
[WHY&HOW]
Update the idle hardmin with SMU if either clock changed.

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Acked-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Signed-off-by: Dillon Varone <dillon.varone@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/dcn401/dcn401_clk_mgr.c

index 28769deaad37307901a59332d15be4a5a960c18b..cd1c30fa783a1815953c47fe73a57185cf043a41 100644 (file)
@@ -940,7 +940,7 @@ static unsigned int dcn401_build_update_bandwidth_clocks_sequence(
        }
 
        /* CLK_MGR401_UPDATE_IDLE_HARDMINS */
-       if (update_idle_uclk && is_idle_dpm_enabled) {
+       if ((update_idle_uclk || update_idle_fclk) && is_idle_dpm_enabled) {
                block_sequence[num_steps].params.update_idle_hardmin_params.uclk_mhz = idle_uclk_mhz;
                block_sequence[num_steps].params.update_idle_hardmin_params.fclk_mhz = idle_fclk_mhz;
                block_sequence[num_steps].func = CLK_MGR401_UPDATE_IDLE_HARDMINS;