Skip to content

Commit cde3894

Browse files
amd-pvishwakalexdeucher
authored andcommitted
drm/amd/smu: Fix User mode stable P-states SMU15
SMU 15_0_0 exports only soft limits for CLKs Use correct messages Signed-off-by: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 33ed922 commit cde3894

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_0_ppt.c

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,26 +1026,21 @@ static int smu_v15_0_0_set_soft_freq_limited_range(struct smu_context *smu,
10261026
switch (clk_type) {
10271027
case SMU_GFXCLK:
10281028
case SMU_SCLK:
1029-
msg_set_min = SMU_MSG_SetHardMinGfxClk;
1029+
msg_set_min = SMU_MSG_SetSoftMinGfxclk;
10301030
msg_set_max = SMU_MSG_SetSoftMaxGfxClk;
10311031
break;
10321032
case SMU_FCLK:
1033-
msg_set_min = SMU_MSG_SetHardMinFclkByFreq;
1033+
msg_set_min = SMU_MSG_SetSoftMinFclk;
10341034
msg_set_max = SMU_MSG_SetSoftMaxFclkByFreq;
10351035
break;
10361036
case SMU_SOCCLK:
1037-
msg_set_min = SMU_MSG_SetHardMinSocclkByFreq;
1037+
msg_set_min = SMU_MSG_SetSoftMinSocclkByFreq;
10381038
msg_set_max = SMU_MSG_SetSoftMaxSocclkByFreq;
10391039
break;
10401040
case SMU_VCLK:
10411041
case SMU_DCLK:
1042-
msg_set_min = SMU_MSG_SetHardMinVcn0;
1043-
msg_set_max = SMU_MSG_SetSoftMaxVcn0;
1044-
break;
1045-
case SMU_VCLK1:
1046-
case SMU_DCLK1:
1047-
msg_set_min = SMU_MSG_SetHardMinVcn1;
1048-
msg_set_max = SMU_MSG_SetSoftMaxVcn1;
1042+
msg_set_min = SMU_MSG_SetSoftMinVcn;
1043+
msg_set_max = SMU_MSG_SetSoftMaxVcn;
10491044
break;
10501045
default:
10511046
return -EINVAL;

0 commit comments

Comments
 (0)