How To Use AMDGPU PowerPlay On The Linux 4.5 Kernel
Written by Michael Larabel in Radeon on 23 December 2015 at 08:09 AM EST. 2 Comments
RADEON --
While Linux 4.5 brings support for PowerPlay in the AMDGPU DRM driver to allow the modern discrete Radeon graphics cards to run much faster thanks to re-clocking, this major feature isn't being enabled by default for Linux 4.5.

AMDGPU PowerPlay for graphics cards like Tonga and Fiji isn't enabled by default with the code in DRM-Next for Linux 4.5. There are basically two steps needed to ensure there is working AMDGPU PowerPlay support on 4.5.


First off, the Linux 4.5 kernel needs to be configured with the CONFIG_DRM_AMD_POWERPLAY Kconfig option. By default, this AMDGPU PowerPlay switch defaults to disabled. Hopefully the Ubuntu mainline kernel packages and other distributions quick to switch over to Linux 4.5 for development will go ahead and enable this config switch, since that alone isn't enough to get PowerPlay working. If your distribution/kernel doesn't, you'll need to rebuild it.


If you are on a Linux 4.5+ kernel that has CONFIG_DRM_AMD_POWERPLAY enabled, there is one more step. You need to set the module parameter for amdgpu.powerplay=1. Add that to your GRUB's kernel command-line so that PowerPlay will be enabled.


If both that Kconfig switch and kernel module parameter aren't set, the power management support for dGPUs on the AMDGPU kernel won't be enabled. Hopefully by Linux 4.6 or so we'll see the support enabled by default. Per this commit Alex Deucher explains, "disable powerplay by default initially. Hopefully we can enable this by default once we get more upstream feedback on stability, etc."

Later today I have out some fresh AMDGPU results on the R9 285 and R9 Fury with this code that will be merged into Linux 4.5 and paired with Mesa 11.2-devel + LLVM 3.8 SVN.
Related News
About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.

Popular News This Week