Commit cde38949 authored by Pratik Vishwakarma's avatar Pratik Vishwakarma Committed by Alex Deucher
Browse files

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: default avatarPratik Vishwakarma <Pratik.Vishwakarma@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 33ed922d
Loading
Loading
Loading
Loading
+5 −10
Original line number Diff line number Diff line
@@ -1026,26 +1026,21 @@ static int smu_v15_0_0_set_soft_freq_limited_range(struct smu_context *smu,
	switch (clk_type) {
	case SMU_GFXCLK:
	case SMU_SCLK:
		msg_set_min = SMU_MSG_SetHardMinGfxClk;
		msg_set_min = SMU_MSG_SetSoftMinGfxclk;
		msg_set_max = SMU_MSG_SetSoftMaxGfxClk;
		break;
	case SMU_FCLK:
		msg_set_min = SMU_MSG_SetHardMinFclkByFreq;
		msg_set_min = SMU_MSG_SetSoftMinFclk;
		msg_set_max = SMU_MSG_SetSoftMaxFclkByFreq;
		break;
	case SMU_SOCCLK:
		msg_set_min = SMU_MSG_SetHardMinSocclkByFreq;
		msg_set_min = SMU_MSG_SetSoftMinSocclkByFreq;
		msg_set_max = SMU_MSG_SetSoftMaxSocclkByFreq;
		break;
	case SMU_VCLK:
	case SMU_DCLK:
		msg_set_min = SMU_MSG_SetHardMinVcn0;
		msg_set_max = SMU_MSG_SetSoftMaxVcn0;
		break;
	case SMU_VCLK1:
	case SMU_DCLK1:
		msg_set_min = SMU_MSG_SetHardMinVcn1;
		msg_set_max = SMU_MSG_SetSoftMaxVcn1;
		msg_set_min = SMU_MSG_SetSoftMinVcn;
		msg_set_max = SMU_MSG_SetSoftMaxVcn;
		break;
	default:
		return -EINVAL;