diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2013-09-13 22:07:03 +0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-09-16 04:27:52 +0400 |
commit | 1cd8b21aa22c4fe8835abe614da5fa989c66dca9 (patch) | |
tree | 3244aadc48b955547d5f3df5a3d35367dff3f01e /drivers/gpu/drm/radeon/si_dpm.c | |
parent | d592fca9407d065f0754ba29790c66ecbc0366ad (diff) | |
download | linux-1cd8b21aa22c4fe8835abe614da5fa989c66dca9.tar.xz |
drm/radeon/dpm: rework auto performance level enable
Calling force_performance_level() from set_power_state()
doesn't work on some asics because the current power
state pointer has not been properly updated at that point.
Move the calls to force_performance_level() out of the
asic specific set_power_state() functions and into
the main power state sequence.
Fixes dpm resume on SI.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/si_dpm.c')
-rw-r--r-- | drivers/gpu/drm/radeon/si_dpm.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/radeon/si_dpm.c b/drivers/gpu/drm/radeon/si_dpm.c index 5be9b4e72350..cfe5d4d28915 100644 --- a/drivers/gpu/drm/radeon/si_dpm.c +++ b/drivers/gpu/drm/radeon/si_dpm.c @@ -6075,12 +6075,6 @@ int si_dpm_set_power_state(struct radeon_device *rdev) return ret; } - ret = si_dpm_force_performance_level(rdev, RADEON_DPM_FORCED_LEVEL_AUTO); - if (ret) { - DRM_ERROR("si_dpm_force_performance_level failed\n"); - return ret; - } - si_update_cg(rdev, (RADEON_CG_BLOCK_GFX | RADEON_CG_BLOCK_MC | RADEON_CG_BLOCK_SDMA | |