summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDillon Varone <dillon.varone@amd.com>2024-06-01 00:09:48 +0200
committerAlex Deucher <alexander.deucher@amd.com>2024-06-14 22:18:26 +0200
commitea9b3dbc71d91e135181274487d6fcba1ba4d9e7 (patch)
tree2110874564a86066562ba21830747aedb9c71d80
parentdrm/amd/display: Avoid overflow from uint32_t to uint8_t (diff)
downloadlinux-ea9b3dbc71d91e135181274487d6fcba1ba4d9e7.tar.xz
linux-ea9b3dbc71d91e135181274487d6fcba1ba4d9e7.zip
drm/amd/display: Update idle hardmins if uclk or fclk requirement changed
[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>
-rw-r--r--drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c
index 28769deaad37..cd1c30fa783a 100644
--- a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c
+++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c
@@ -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;