]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
drm/amd/pp: Change pstate_clk frequency unit to 10KHz on Rv
authorRex Zhu <Rex.Zhu@amd.com>
Fri, 20 Apr 2018 04:57:10 +0000 (12:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:43:46 +0000 (13:43 -0500)
to keep consistent with other asics

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c

index 7712eb62539a75ddfd40d1df904799cecdd7d549..ef09073c88d95abc278534caf301b364715a4039 100644 (file)
@@ -479,8 +479,8 @@ static int smu10_hwmgr_backend_init(struct pp_hwmgr *hwmgr)
 
        hwmgr->platform_descriptor.minimumClocksReductionPercentage = 50;
 
-       hwmgr->pstate_sclk = SMU10_UMD_PSTATE_GFXCLK;
-       hwmgr->pstate_mclk = SMU10_UMD_PSTATE_FCLK;
+       hwmgr->pstate_sclk = SMU10_UMD_PSTATE_GFXCLK * 100;
+       hwmgr->pstate_mclk = SMU10_UMD_PSTATE_FCLK * 100;
 
        return result;
 }