From: Evan Quan Date: Fri, 11 May 2018 08:10:51 +0000 (+0800) Subject: drm/amd/powerplay: conv the vega20 pstate sclk/mclk into necessary 10KHz unit X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bc9b8c45b86ff24c34ad7e6a320ad11507ca9f63;p=openwrt%2Fstaging%2Fblogic.git drm/amd/powerplay: conv the vega20 pstate sclk/mclk into necessary 10KHz unit Powerplay uses 10KHz units. Signed-off-by: Evan Quan Reviewed-by: Rex Zhu Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c index 5b0c65405dd1..182f25ccc61b 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c @@ -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; }