diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2012-11-29 20:34:06 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-06-27 19:15:52 -0400 |
commit | a8dbaeff3d63957b174ce154f3a52d2292d0ab87 (patch) | |
tree | 7337144c25b4b5e7fc9cb4cf3b842029adddeefd /drivers/gpu/drm/radeon/trinity_dpm.c | |
parent | 7cf36de9eb584e7d0b4956b1c17d46a083bb30c4 (diff) | |
download | op-kernel-dev-a8dbaeff3d63957b174ce154f3a52d2292d0ab87.zip op-kernel-dev-a8dbaeff3d63957b174ce154f3a52d2292d0ab87.tar.gz |
drm/radeon/dpm: fixup dynamic state adjust for TN
Use a dedicated copy of the current power state since
we may have to adjust it on the fly.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/trinity_dpm.c')
-rw-r--r-- | drivers/gpu/drm/radeon/trinity_dpm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/trinity_dpm.c b/drivers/gpu/drm/radeon/trinity_dpm.c index 1b3822f..0c1b50a6 100644 --- a/drivers/gpu/drm/radeon/trinity_dpm.c +++ b/drivers/gpu/drm/radeon/trinity_dpm.c @@ -1379,6 +1379,11 @@ static void trinity_apply_state_adjust_rules(struct radeon_device *rdev) bool force_high; u32 num_active_displays = rdev->pm.dpm.new_active_crtc_count; + /* point to the hw copy since this function will modify the ps */ + pi->hw_ps = *ps; + rdev->pm.dpm.hw_ps.ps_priv = &pi->hw_ps; + ps = &pi->hw_ps; + if (rps->class & ATOM_PPLIB_CLASSIFICATION_THERMAL) return trinity_patch_thermal_state(rdev, ps, current_ps); |