AMD Posts 11th Iteration Of P-State Preferred Core Patches For Linux

Written by Michael Larabel in AMD on 30 November 2023 at 01:28 PM EST. 18 Comments
AMD
For the past number of months AMD has been actively working on enabling AMD P-State Preferred Core functionality for Linux so that their modern processors can communicate "preferred" cores to the Linux kernel scheduler for making better decisions around task placement and ultimately ensuring best performance of Ryzen and EPYC processors running on Linux. This week they are up to their 11th take on these kernel patches.

As with the AMD P-State CPU frequency scaling driver, P-State Preferred Core functionality also depends upon ACPI CPPC information from the platform for making wiser decisions to maximize performance and power efficiency.
Earlier implementations of amd-pstate preferred core only support a static core ranking and targeted performance. Now it has the ability to dynamically change the preferred core based on the workload and platform conditions and accounting for thermals and aging.

Amd-pstate driver utilizes the functions and data structures provided by the ITMT architecture to enable the scheduler to favor scheduling on cores which can be get a higher frequency with lower voltage. We call it amd-pstate preferred core.
...
Amd-pstate driver will provide an initial core ordering at boot time. It relies on the CPPC interface to communicate the core ranking to the operating system and scheduler to make sure that OS is choosing the cores with highest performance firstly for scheduling the process. When amd-pstate driver receives a message with the highest performance change, it will update the core ranking.

With AMD P-State Preferred Core already supported on Windows, hopefully the Linux support will get merged soon and work its way into H1'2024 Linux distributions. The new v11 patches this week have just minor changes over the prior revision.

Ryzen 5000 and 7000 series CPUs


Here's to hoping the work could be ironed out in time for the upcoming Linux 6.8 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