AMD Has A Crucial Linux Optimization Coming To Lower Power Use During Video Playback

Written by Michael Larabel in Radeon on 11 July 2024 at 03:01 PM EDT. 77 Comments
RADEON
There have been ongoing reports from a variety of users and systems around high power use during GPU-accelerated video playback with current-generation AMD Ryzen "Phoenix" laptops. Fortunately, an optimization is coming to benefit Phoenix and forthcoming Strix Point laptops with noticeably lower power consumption during video playback.

AMD engineers have finally been able to root-cause the issue and have provided a fix that enables Dynamic Power Gating during VCN video playback for these latest AMD Ryzen laptop SoCs.

AMD Ryzen laptop


For months there have been bug reports around higher SoC power use under Linux during video playback in particular. In that bug report, prominent AMDGPU Linux maintainer Alex Deucher describes this dynamic power gating functionality as:
"VCN already supports powergating, the patches referenced above just enable it more aggressively (i.e., firmware controlled rather than driver controlled). Firmware can turn it off dynamically between commands while the driver waits for all the currently queued commands to finish before turning it off.

GFX supports both powergating and gfxoff (where the power rail is turned off). Both are already dynamically controlled by firmware. However, for video playback, ideally you would not use GFX at all and just let it stay off.

Firmware also dynamically adjusts the clocks and voltages for both VCN and GFX while they are on based on load."

The patches are now out for review/testing. There are also Git branches available of the VCN dynamic power gating for Linux 6.9 and 6.10 kernels to facilitate in easier testing. Here's to hoping the VCN dynamic power gating will squeeze in as a fix before Linux 6.10 final or make it in early during the Linux 6.11 merge window.
Related News
About The Author
Michael Larabel

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, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week