AMD Per-Core Energy Counter Support Slated For Linux 6.14
- Reference: 0001509576
- News link: https://www.phoronix.com/news/AMD-Per-Core-Energy-Linux-6.14
- Source link:
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 [2]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.
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 [3]tip/tip.git's perf/core branch .
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 [4]the AMDXDNA driver ready for inclusion in supporting the Ryzen AI NPU on the mainline Linux kernel.
[1] https://www.phoronix.com/news/Linux-6.13-rc1-Released
[2] https://lore.kernel.org/all/20241115060805.447565-1-Dhananjay.Ugwekar@amd.com/
[3] https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/log/?h=perf/core
[4] https://www.phoronix.com/news/AMDXDNA-DRM-Misc-Next
Mitch