diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-05-07 15:10:16 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-05-18 04:21:52 -0400 |
commit | ce8f53709bf440100cb9d31b1303291551cf517f (patch) | |
tree | 6785882522ae04486ae900b5c8dbc700dadad2f3 /drivers/gpu/drm/radeon/evergreen.c | |
parent | d7311171c4cc8d6231427f7ac5056b939a184b80 (diff) |
drm/radeon/kms/pm: rework power management
- Separate dynpm and profile based power management methods. You can select the pm method
by echoing the selected method ("dynpm" or "profile") to power_method in sysfs.
- Expose basic 4 profile in profile method
"default" - default clocks
"auto" - select between low and high based on ac/dc state
"low" - DC, low power mode
"high" - AC, performance mode
The current base profile is "default", but it should switched to "auto" once we've tested
on more systems. Switching the state is a matter of echoing the requested profile to
power_profile in sysfs. The lowest power states are selected automatically when dpms turns
the monitors off in all states but default.
- Remove dynamic fence-based reclocking for the moment. We can revisit this later once we
have basic pm in.
- Move pm init/fini to modesetting path. pm is tightly coupled with display state. Make sure
display side is initialized before pm.
- Add pm suspend/resume functions to make sure pm state is properly reinitialized on resume.
- Remove dynpm module option. It's now selectable via sysfs.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/evergreen.c')
-rw-r--r-- | drivers/gpu/drm/radeon/evergreen.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index 8d86d0568d97..8c8e4d3cbaa3 100644 --- a/drivers/gpu/drm/radeon/evergreen.c +++ b/drivers/gpu/drm/radeon/evergreen.c | |||
@@ -2115,8 +2115,6 @@ int evergreen_init(struct radeon_device *rdev) | |||
2115 | r = radeon_clocks_init(rdev); | 2115 | r = radeon_clocks_init(rdev); |
2116 | if (r) | 2116 | if (r) |
2117 | return r; | 2117 | return r; |
2118 | /* Initialize power management */ | ||
2119 | radeon_pm_init(rdev); | ||
2120 | /* Fence driver */ | 2118 | /* Fence driver */ |
2121 | r = radeon_fence_driver_init(rdev); | 2119 | r = radeon_fence_driver_init(rdev); |
2122 | if (r) | 2120 | if (r) |
@@ -2178,7 +2176,6 @@ int evergreen_init(struct radeon_device *rdev) | |||
2178 | 2176 | ||
2179 | void evergreen_fini(struct radeon_device *rdev) | 2177 | void evergreen_fini(struct radeon_device *rdev) |
2180 | { | 2178 | { |
2181 | radeon_pm_fini(rdev); | ||
2182 | /*r600_blit_fini(rdev);*/ | 2179 | /*r600_blit_fini(rdev);*/ |
2183 | r700_cp_fini(rdev); | 2180 | r700_cp_fini(rdev); |
2184 | r600_wb_fini(rdev); | 2181 | r600_wb_fini(rdev); |