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/radeon_asic.h | |
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/radeon_asic.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_asic.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_asic.h b/drivers/gpu/drm/radeon/radeon_asic.h index 8a1278629994..5c40a3dfaca2 100644 --- a/drivers/gpu/drm/radeon/radeon_asic.h +++ b/drivers/gpu/drm/radeon/radeon_asic.h | |||
@@ -127,12 +127,11 @@ void r100_enable_bm(struct radeon_device *rdev); | |||
127 | void r100_set_common_regs(struct radeon_device *rdev); | 127 | void r100_set_common_regs(struct radeon_device *rdev); |
128 | void r100_bm_disable(struct radeon_device *rdev); | 128 | void r100_bm_disable(struct radeon_device *rdev); |
129 | extern bool r100_gui_idle(struct radeon_device *rdev); | 129 | extern bool r100_gui_idle(struct radeon_device *rdev); |
130 | extern void r100_set_power_state(struct radeon_device *rdev, bool static_switch); | ||
131 | extern void r100_get_power_state(struct radeon_device *rdev, | ||
132 | enum radeon_pm_action action); | ||
133 | extern void r100_pm_misc(struct radeon_device *rdev); | 130 | extern void r100_pm_misc(struct radeon_device *rdev); |
134 | extern void r100_pm_prepare(struct radeon_device *rdev); | 131 | extern void r100_pm_prepare(struct radeon_device *rdev); |
135 | extern void r100_pm_finish(struct radeon_device *rdev); | 132 | extern void r100_pm_finish(struct radeon_device *rdev); |
133 | extern void r100_pm_init_profile(struct radeon_device *rdev); | ||
134 | extern void r100_pm_get_dynpm_state(struct radeon_device *rdev); | ||
136 | 135 | ||
137 | /* | 136 | /* |
138 | * r200,rv250,rs300,rv280 | 137 | * r200,rv250,rs300,rv280 |
@@ -170,6 +169,7 @@ extern int r420_init(struct radeon_device *rdev); | |||
170 | extern void r420_fini(struct radeon_device *rdev); | 169 | extern void r420_fini(struct radeon_device *rdev); |
171 | extern int r420_suspend(struct radeon_device *rdev); | 170 | extern int r420_suspend(struct radeon_device *rdev); |
172 | extern int r420_resume(struct radeon_device *rdev); | 171 | extern int r420_resume(struct radeon_device *rdev); |
172 | extern void r420_pm_init_profile(struct radeon_device *rdev); | ||
173 | 173 | ||
174 | /* | 174 | /* |
175 | * rs400,rs480 | 175 | * rs400,rs480 |
@@ -281,10 +281,10 @@ void r600_hpd_set_polarity(struct radeon_device *rdev, | |||
281 | enum radeon_hpd_id hpd); | 281 | enum radeon_hpd_id hpd); |
282 | extern void r600_ioctl_wait_idle(struct radeon_device *rdev, struct radeon_bo *bo); | 282 | extern void r600_ioctl_wait_idle(struct radeon_device *rdev, struct radeon_bo *bo); |
283 | extern bool r600_gui_idle(struct radeon_device *rdev); | 283 | extern bool r600_gui_idle(struct radeon_device *rdev); |
284 | extern void r600_set_power_state(struct radeon_device *rdev, bool static_switch); | ||
285 | extern void r600_get_power_state(struct radeon_device *rdev, | ||
286 | enum radeon_pm_action action); | ||
287 | extern void r600_pm_misc(struct radeon_device *rdev); | 284 | extern void r600_pm_misc(struct radeon_device *rdev); |
285 | extern void r600_pm_init_profile(struct radeon_device *rdev); | ||
286 | extern void rs780_pm_init_profile(struct radeon_device *rdev); | ||
287 | extern void r600_pm_get_dynpm_state(struct radeon_device *rdev); | ||
288 | 288 | ||
289 | /* | 289 | /* |
290 | * rv770,rv730,rv710,rv740 | 290 | * rv770,rv730,rv710,rv740 |