1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

A New Patch For Radeon DRM Power Savings

AMD

Published on 21 November 2009 09:35 AM EST
Written by Michael Larabel in AMD
35 Comments

While OpenGL acceleration and GPU-assisted video playback are often most viewed as the areas that are severely lacking for the open-source Linux graphics drivers in comparison to what the binary-only ATI/NVIDIA drivers offer, another area that has not yet caught up to speed with the binary competition is power management. For years (going back to 2005) AMD has implemented PowerPlay support in their fglrx driver for dynamically clocking the GPU and memory clocks along with adjusting the voltages accordingly, based upon the user's input and then later generations of PowerPlay are more dynamic in nature. NVIDIA also supports their PowerMizer technology on Linux for dynamically clocking their GPUs/memory and voltages based upon the graphics processor's load.

When it comes to the open-source ATI power management efforts, Red Hat's Matthew Garrett has been working on dynamic down-clocking through AtomBIOS, dynamic clocks support was added to the ATI driver for R500+ GPUs to support dynamic clock-gating and static power management, force low power mode options, and various other techniques are being worked on to conserve power like frame-buffer compression, shutting down PLLs, LVDS re-clocking, and more.

In September of this year there was then a set of patches that were published to introduce reading clock values, storing power management states, setting new power states, and reading min/max clock values for the ATI kernel mode-setting driver. This work was done by Rafał Miłecki. This initial work didn't do too much beyond laying the foundation for KMS power management support in the ATI stack, but it would automatically down-clock the GPU if the connected display was signaled off via DPMS. This morning though Rafał has published a new ATI power management patch for its DRM.

This newest patch adds dynamic engine re-clocking based upon the GPU's work load. His patch calculates the number of commands not yet processed by the GPU and uses that to judge the GPU's load. If all commands are processed, the GPU is then down-clocked with a 200ms delay, but if there are unprocessed commands, the GPU will re-up its clocks. Rafał's initial tests have yielded that this works for keeping the GPUs clocked lower (and thus conserving power) when just within KDE or glxgears, but when firing up a game like OpenArena the engine will re-clock itself to its performance state. No major performance drops were noted with this dynamic clocking patch.

This patch, however, is not 100% ideal yet as it does not deal with changing the frequency of the memory (waiting for IRQ support on that as it's important to not re-clock the memory when it's busy), voltages aren't being changed between states (it's on his TODO list for "later"), and there are also a few horizontal black lines that appear on the screen when the GPU engine is being re-clocked. This patch could also be more aggressive in determining its load and other factors.

However, for those interested in playing with this preliminary patch, it can be found on the dri-devel mailing list.

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux Hardware Reviews
  1. AMD Launches New FX CPUs, Cuts Prices On Existing Processors
  2. Preview: AMD's FX-9590 Eight-Core At Up To 5.0GHz On Linux
  3. Intel Launches The Core i7 5960X, Mighty Powerful Haswell-E CPUs
  4. AMD Radeon R9 290: Gallium3D vs. Catalyst Drivers
Latest Linux Articles
  1. Ondemand vs. Performance CPU Governing For AMD FX CPUs On Linux 3.17
  2. How Intel Graphics On Linux Compare To Open-Source AMD/NVIDIA Drivers
  3. The Fastest NVIDIA GPUs For Open-Source Nouveau With Steam Linux Gaming
  4. Testing For The Latest Linux Kernel Power Regression
Latest Linux News
  1. Borderlands 2 Is Coming To Linux
  2. The Witcher 2 Ups The Performance More & Works Around Catalyst Bug
  3. Running Gallium3D's LLVMpipe On The Eight-Core 5GHz CPU
  4. Trying Intel OpenCL On Linux For Video Encoding
  5. GSoC 2014 Yielded Some Improvements For Mesa/X.Org This Year
  6. webOS Lives On As LuneOS With New Release
  7. Marek Lands Radeon Gallium3D HyperZ Improvements
  8. Mozilla Firefox 32 Surfaces With HTML5, Developer Changes
  9. Nouveau X.Org Driver Released With DRI3+Present, Maxwell, GLAMOR
  10. Microsoft & AMD Release C++ AMP Compiler With Linux Support
Latest Forum Discussions
  1. Lennart Poettering Talks Up His New Linux Vision That Involves Btrfs
  2. nv and xorg.conf under Debian PPC
  3. AMD graphics doesn't work with AMD Catalyst drivers
  4. Best Radeon for a Power Mac G5?
  5. The dangers of Linux kernel development
  6. Updated and Optimized Ubuntu Free Graphics Drivers
  7. AMD Releases UVD Video Decode Support For R600 GPUs
  8. SSD seems slow