From: Evan Quan <[email protected]>

Powerplay uses 10KHz units.

Signed-off-by: Evan Quan <[email protected]>
Reviewed-by: Rex Zhu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
---
 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c | 3 +++
 1 file changed, 3 insertions(+)

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;
 }
 
-- 
2.13.6

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to