]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon/kms/pm: rework power management
authorAlex Deucher <alexdeucher@gmail.com>
Sat, 24 Apr 2010 18:50:23 +0000 (14:50 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 18 May 2010 08:21:14 +0000 (18:21 +1000)
commit5c0c26bff31abbb851e7a4317746505e6135346d
tree7129cac19de9c9f5e008669f832ad2e09a3932d1
parent03c7842d0fa9e8bb56b4e13737d68f5d0692c239
drm/radeon/kms/pm: rework power management

Add two new sysfs attributes:
- dynpm
- power_state

Echoing 0/1 to dynpm disables/enables dynamic power management.
The driver scales the sclk dynamically based on the number of
queued fences.  dynpm only scales sclk dynamically in single head
mode.

Echoing x.y to power_state selects a static power state (x) and clock
mode (y).  This allows you to statically select a power state and clock
mode.  Selecting a static clock mode will disable dynpm.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_asic.h
drivers/gpu/drm/radeon/radeon_pm.c