Skip to content

drm/radeon/kms: update pm code

Alex Deucher dri-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9drm/radeon/kms: enable misc pm power state features on r5xx, rs6xxdrivers/gpu/drm/radeon/rs600.c drivers/gpu/drm/radeon/rs600d.h+12 -40 replies
2/9drm/radeon/kms: enable misc pm power state features on r1xx-r4xxdrivers/gpu/drm/radeon/r100.c+0 -20 replies
3/9drm/radeon/kms: re-enable gui idle interrupts on r6xx+drivers/gpu/drm/radeon/radeon_pm.c+13 -110 replies
4/9radeon: Split out ring locking and allocationdrivers/gpu/drm/radeon/radeon.h drivers/gpu/drm/radeon/radeon_ring.c+23 -60 replies
5/9radeon: Use fences to gate entry to reclocking on <r600drivers/gpu/drm/radeon/radeon_pm.c+8 -00 replies
6/9drm/radeon/kms: fix lock ordering in ring, ib handlingdrivers/gpu/drm/radeon/radeon_ring.c+22 -170 replies
7/9drm/radeon/kms/pm: add support for no display power statesdrivers/gpu/drm/radeon/atombios_crtc.c drivers/gpu/drm/radeon/r100.c drivers/gpu/drm/radeon/r600.c +5 more+94 -400 replies
8/9drm/radeon/kms/pm: rework power managementdrivers/gpu/drm/radeon/Kconfig drivers/gpu/drm/radeon/evergreen.c drivers/gpu/drm/radeon/r100.c +16 more+790 -5190 replies
9/9drm/radeon/kms/pm: make pm spam debug onlydrivers/gpu/drm/radeon/r100.c drivers/gpu/drm/radeon/r600.c drivers/gpu/drm/radeon/radeon_pm.c +1 more+24 -240 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] drm/radeon/kms: update pm code

This set of patches applies on top of the code in drm-radeon-testing.

I've been testing this code pretty hard this week and it's been solid. In addition to some fixes on top of what's in d-r-t, it also reworks the pm code to support two basic methods:

1. "dynpm"
2. "profile"

You can select the methods via sysfs. Echo "dynpm" or "profile" to /sys/class/drm/card-0/device/power_method.

The "dynpm" method dynamically changes the clocks based on the number of pending fences, so performance is ramped up when running GPU intensive apps, and ramped down when the GPU is idle. The reclocking is attemped during vertical blanking periods, but due to the timing of the reclocking functions, doesn't not always complete in the blanking period, which can lead to flicker in the display. Due to this, dynpm only works when a single head is active.

The "profile" method exposes 4 profiles that can be selected from:
1. "default"
2. "auto"
3. "low"
4. "high"
Select the profile by echoing the selected profile to /sys/class/drm/card-0/device/power_profile.

"default" uses the default clocks and does not change the power state. This is the default behavior.
"auto" selects between low and high power states based on the whether the system is on battery power or not. Even lower power states are selected when the monitors are in the dpms off state.
"low" forces the gpu to be in the low power state all the time. Even lower power states are selected when the monitors are in the dpms off state. "high" forces the gpu to be in the high power state all the time. Even lower power states are selected when the monitors are in the dpms off state.

The "profile" method is not as agressive as "dynpm," but is currently much more stable and flicker free and works with multiple heads active.

The default power management method is "profile" using the "default" profile. The default should eventaully be changed to "profile" "auto".

For upstream, we may want to squash some of these. I'm open to suggestions. Everthing that's been added since drm-linus?

Alex