AMD Per-Core Energy Counter Support Slated For Linux 6.14

Written by Michael Larabel in AMD on 2 December 2024 at 10:00 AM EST. 2 Comments
AMD
While the Linux 6.13 merge window just closed yesterday in landing all of the new features and functionality for that first kernel version of 2025, already for the Linux 6.14 kernel cycle to follow a feature was queued up early this morning in a TIP branch: AMD per-core energy counter support.

The past few months AMD Linux engineers have been working on per-core energy counter support under the Linux Runtime Average Power Limiting (RAPL) infrastructure. After going through the v7 patches, they are now ready for the mainline Linux kernel once Linux 6.14 rolls around with its merge window in late January / early February.

AMD Ryzen and EPYC CPUs


The AMD per-core energy counter patch series explains:
"Currently the energy-cores event in the power PMU aggregates energy consumption data at a package level. On the other hand the core energy RAPL counter in AMD CPUs has a core scope (which means the energy consumption is recorded separately for each core). Earlier efforts to add the core event in the power PMU had failed [1], due to the difference in the scope of these two events. Hence, there is a need for a new core scope PMU.

This patchset adds a new "power_core" PMU alongside the existing "power" PMU, which will be responsible for collecting the new "energy-core" event.

Tested the package level and core level PMU counters with workloads pinned to different CPUs."

As of this morning, the patches were picked up by the tip/tip.git's perf/core branch.

AMD core energy patches queued


With the patches now queued as part of the TIP branch and with two months to go until the Linux 6.14 cycle, it looks like the per-core energy counter support is ready to roll with that next kernel cycle. Linux 6.14 is also going to be exciting for AMD customers with the AMDXDNA driver ready for inclusion in supporting the Ryzen AI NPU on the mainline Linux kernel.
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