summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
diff options
context:
space:
mode:
authorRex Zhu <Rex.Zhu@amd.com>2018-01-05 19:02:48 +0800
committerAlex Deucher <alexander.deucher@amd.com>2018-02-19 14:17:53 -0500
commitdd70949d9054faf1fb037950b7b17a4b1a5b9669 (patch)
treeb939d802a1fc472a6b0079ceb1a5a458468d98f7 /drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
parent6390258a2f1390e19dece30bb5231e73ce8a7dd0 (diff)
downloadlinux-dd70949d9054faf1fb037950b7b17a4b1a5b9669.tar.gz
linux-dd70949d9054faf1fb037950b7b17a4b1a5b9669.tar.bz2
linux-dd70949d9054faf1fb037950b7b17a4b1a5b9669.zip
drm/amd/pp: Store stable Pstate clocks
User can use to calculate profiling ratios when set UMD Pstate. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c')
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
index e574af1d408b..f68dd084efae 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
@@ -1189,6 +1189,8 @@ static int cz_phm_unforce_dpm_levels(struct pp_hwmgr *hwmgr)
cz_hwmgr->sclk_dpm.soft_min_clk = table->entries[0].clk;
cz_hwmgr->sclk_dpm.hard_min_clk = table->entries[0].clk;
+ hwmgr->pstate_sclk = table->entries[0].clk;
+ hwmgr->pstate_mclk = 0;
level = cz_get_max_sclk_level(hwmgr) - 1;