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. Intel Pentium G3258 On Linux
  2. SilverStone Precision PS10
  3. ASRock Z97 Extreme6
  4. Nouveau Re-Clocking Is Way Faster, Shows Much Progress For Open-Source NVIDIA
Latest Linux Articles
  1. KVM Benchmarks On Ubuntu 14.10
  2. X.Org Server 1.16 Officially Released With Terrific Features
  3. Ubuntu With Linux 3.16 Smashes OS X 10.9.4 On The MacBook Air
  4. Preview: Benchmarking CentOS 7.0 & Scientific Linux 7.0
Latest Linux News
  1. The Linux Kernel Bang-Bang Thermal Governor Is Banging
  2. NVIDIA Releases K1-Powered Shield Tablet & Controller
  3. Xen Project Announces Mirage OS 2.0
  4. Canonical Community Team Changes Announced For Ubuntu
  5. Raspberry Pi B+ ARM Debian Benchmarks
  6. Mozilla Unleashes Firefox 31 Web Browser
  7. GCC 5.0 Is Expected Next Year
  8. PHP5's Successor Might Be PHP7
  9. AMD "Hawaii" Open-Source GPU Acceleration Still Not Working Right
  10. AMDKFD Driver Still Evolving For Open-Source HSA On Linux
Latest Forum Discussions
  1. AMD "Hawaii" Open-Source GPU Acceleration Still Not Working Right
  2. Next-Gen OpenGL To Be Announced Next Month
  3. Ubuntu With Linux 3.16 Smashes OS X 10.9.4 On The MacBook Air
  4. Updated and Optimized Ubuntu Free Graphics Drivers
  5. AMD Publishes Open-Source Linux HSA Kernel Driver
  6. KDE Plasma 5 Officially Released
  7. Vote For GOG To Make Galaxy Open Source
  8. TSC Problem on Gigabyte GA-X79-UP4 (rev 1.1)