News: 0001477446

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

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

([Radeon] 3 Hours Ago Lower Power Use)


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.

For months there have been [1]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 [2]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.



[1] https://gitlab.freedesktop.org/drm/amd/-/issues/3195

[2] https://lore.kernel.org/amd-gfx/20240710205907.190580-1-boyuan.zhang@amd.com/T/#m9d2dac3d657e6317cc2b9ebd591a9cd132768480



Artim

Mitch

cen1

V1tol

avis

Artim

Mitch

Artim

timrichardson

I loved her with a love thirsty and desperate. I felt that we two might commit
some act so atrocious that the world, seeing us, would find it irresistible.
-- Gene Wolfe, "The Shadow of the Torturer"