Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Pratik Vishwakarma and committed by
Alex Deucher
cde38949 33ed922d

+5 -10
+5 -10
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_0_ppt.c
··· 1026 1026 switch (clk_type) { 1027 1027 case SMU_GFXCLK: 1028 1028 case SMU_SCLK: 1029 - msg_set_min = SMU_MSG_SetHardMinGfxClk; 1029 + msg_set_min = SMU_MSG_SetSoftMinGfxclk; 1030 1030 msg_set_max = SMU_MSG_SetSoftMaxGfxClk; 1031 1031 break; 1032 1032 case SMU_FCLK: 1033 - msg_set_min = SMU_MSG_SetHardMinFclkByFreq; 1033 + msg_set_min = SMU_MSG_SetSoftMinFclk; 1034 1034 msg_set_max = SMU_MSG_SetSoftMaxFclkByFreq; 1035 1035 break; 1036 1036 case SMU_SOCCLK: 1037 - msg_set_min = SMU_MSG_SetHardMinSocclkByFreq; 1037 + msg_set_min = SMU_MSG_SetSoftMinSocclkByFreq; 1038 1038 msg_set_max = SMU_MSG_SetSoftMaxSocclkByFreq; 1039 1039 break; 1040 1040 case SMU_VCLK: 1041 1041 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; 1049 1044 break; 1050 1045 default: 1051 1046 return -EINVAL;