drm/amd/powerplay: correct fine grained dpm force level setting
Subsystems (2)
PATCH 1/1 drm/amd/powerplay: correct fine grained dpm force level setting
For fine grained dpm, there is only two levels supported. However to reflect correctly the current clock frequency, there is an intermediate level faked. Thus on forcing level setting, we need to treat level 2 correctly as level 1.
--- drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +6 -0
@@ -823,6 +823,12 @@ static int navi10_force_clk_levels(struct smu_context *smu,case SMU_UCLK :case SMU_DCEFCLK :case SMU_FCLK : +/* There is only 2 levels for fine grained DPM */ +if (navi10_is_support_fine_grained_dpm (smu, clk_type)) { + soft_max_level = (soft_max_level >=1 ?1 :0 ); + soft_min_level = (soft_min_level >=1 ?1 :0 ); + } + ret =smu_get_dpm_freq_by_index (smu, clk_type, soft_min_level, &min_freq);if (ret)return size;
Signature · 6 lines
2.24.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): [email protected]
Wang, Kevin(Yang)
Reviewed-by________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Evan Quan <[email protected]>
Sent: Thursday, November 14, 2019 5:07 PM
To: [email protected] <[email protected]>
Cc: Quan, Evan <[email protected]>
Subject: [PATCH] drm/amd/powerplay: correct fine grained dpm force level setting
For fine grained dpm, there is only two levels supported. However to reflect correctly the current clock frequency, there is an intermediate level faked. Thus on forcing level setting, we need to treat level 2 correctly as level 1.
--- drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +6 -0
@@ -823,6 +823,12 @@ static int navi10_force_clk_levels(struct smu_context *smu,case SMU_UCLK :case SMU_DCEFCLK :case SMU_FCLK : +/* There is only 2 levels for fine grained DPM */ +if (navi10_is_support_fine_grained_dpm (smu, clk_type)) { + soft_max_level = (soft_max_level >=1 ?1 :0 ); + soft_min_level = (soft_min_level >=1 ?1 :0 ); + } + ret =smu_get_dpm_freq_by_index (smu, clk_type, soft_min_level, &min_freq);if (ret)return size;
--
2.24.0
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx