summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/ni_dpm.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-06-26 00:22:06 -0400
committerAlex Deucher <alexander.deucher@amd.com>2013-06-27 19:16:14 -0400
commit4cb3a02f88e58a60c4ec28c2ffbed739d1db6aad (patch)
tree296e383a0cf9f907778e5038c1ff4518266ed05b /drivers/gpu/drm/radeon/ni_dpm.c
parentdbc341602444d7c0cdd1a75d7057a4a16c96fb3d (diff)
downloadlinux-4cb3a02f88e58a60c4ec28c2ffbed739d1db6aad.tar.bz2
drm/radeon/dpm/btc: restructure code
Needed to properly handle dynamic state adjustment. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/ni_dpm.c')
-rw-r--r--drivers/gpu/drm/radeon/ni_dpm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/ni_dpm.c b/drivers/gpu/drm/radeon/ni_dpm.c
index 5483ab33a2cd..4f8912cc3004 100644
--- a/drivers/gpu/drm/radeon/ni_dpm.c
+++ b/drivers/gpu/drm/radeon/ni_dpm.c
@@ -3642,6 +3642,7 @@ int ni_power_control_set_level(struct radeon_device *rdev)
int ni_dpm_set_power_state(struct radeon_device *rdev)
{
struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev);
+ struct radeon_ps *new_ps = rdev->pm.dpm.requested_ps;
int ret;
ni_apply_state_adjust_rules(rdev);
@@ -3651,7 +3652,7 @@ int ni_dpm_set_power_state(struct radeon_device *rdev)
ni_enable_smc_cac(rdev, false);
rv770_halt_smc(rdev);
if (eg_pi->smu_uvd_hs)
- btc_notify_uvd_to_smc(rdev);
+ btc_notify_uvd_to_smc(rdev, new_ps);
ni_upload_sw_state(rdev);
if (eg_pi->dynamic_ac_timing)
ni_upload_mc_reg_table(rdev);