aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c
diff options
context:
space:
mode:
authorEvan Quan <evan.quan@amd.com>2018-05-09 10:57:53 +0800
committerAlex Deucher <alexander.deucher@amd.com>2018-05-17 08:54:22 -0500
commit73aa1b9af5947f103913124f93ca19e6f3af1c1b (patch)
treef97850345e6d21b0ed3b7ef573aec3a27ef124f2 /drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c
parentdrm/amdgpu/gfx9: Update golden setting for gfx9_0. (diff)
downloadlinux-dev-73aa1b9af5947f103913124f93ca19e6f3af1c1b.tar.xz
linux-dev-73aa1b9af5947f103913124f93ca19e6f3af1c1b.zip
drm/amd/powerplay: new framework to honour DAL clock limits
This is needed for vega12 and vega20 which do not support legacy powerstate. With this new framework, the DAL clocks limits can also be honored on these asics. Signed-off-by: Evan Quan <evan.quan@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c')
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c b/drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c
index 308bff2b5d1d..2a2955c17d78 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c
@@ -265,6 +265,13 @@ int psm_adjust_power_state_dynamic(struct pp_hwmgr *hwmgr, bool skip,
if (skip)
return 0;
+ if (!hwmgr->ps)
+ /*
+ * for vega12/vega20 which does not support power state manager
+ * DAL clock limits should also be honoured
+ */
+ phm_apply_clock_adjust_rules(hwmgr);
+
phm_display_configuration_changed(hwmgr);
if (hwmgr->ps)