]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/powerplay: fix pre-check condition for setting clock range
authorPrike Liang <Prike.Liang@amd.com>
Mon, 2 Mar 2020 01:36:15 +0000 (09:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Mar 2020 05:32:05 +0000 (00:32 -0500)
commitffbed184d209bb44504fd2cd460db70176765818
treef25abead31eb965f1f8f19f4d80511e63e65d38f
parent8a43cf88b7d66e44140a5a48a2ff861c9c416ab0
drm/amd/powerplay: fix pre-check condition for setting clock range

This fix will handle some MP1 FW issue like as mclk dpm table in renoir has a reverse
dpm clock layout and a zero frequency dpm level as following case.

cat pp_dpm_mclk
0: 1200Mhz
1: 1200Mhz
2: 800Mhz
3: 0Mhz

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
drivers/gpu/drm/amd/powerplay/smu_v12_0.c