drm/amd/powerplay: conv the vega20 pstate sclk/mclk into necessary 10KHz unit
authorEvan Quan <evan.quan@amd.com>
Fri, 11 May 2018 08:10:51 +0000 (16:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:10:30 +0000 (11:10 -0500)
Powerplay uses 10KHz units.

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

index 5b0c65405dd121954ceceb11d9324731e444e1e3..182f25ccc61bfd5cdf6894c20598d1372ad4fda8 100644 (file)
@@ -862,6 +862,9 @@ static int vega20_populate_umdpstate_clocks(
                hwmgr->pstate_mclk = mem_table->dpm_levels[VEGA20_UMD_PSTATE_MCLK_LEVEL].value;
        }
 
+       hwmgr->pstate_sclk = hwmgr->pstate_sclk * 100;
+       hwmgr->pstate_mclk = hwmgr->pstate_mclk * 100;
+
        return 0;
 }