Testing The AMD Heterogeneous Core Topology Linux Patches On Ryzen AI 300 Series

Written by Michael Larabel in AMD on 31 July 2024 at 03:15 PM EDT. 21 Comments
AMD
Now that I am through with my testing of the initial Ryzen AI 9 HX 370 and Ryzen AI 9 365 Linux performance benchmarking and support exploration, I've begun diving in to other areas of the Linux support/performance for these Zen 5 "Strix Point" SoCs. The area for a quick look today is with the yet-to-be-merged AMD Heterogeneous Core Topology patches.

As I wrote about back in May, AMD Linux engineers have posted patches for Heterogeneous Core Topology for the AMD P-State driver to help with processors that boast a mix of core types like Zen 5 and Zen 5C. Those patches were updated in June but as of writing have yet to be merged to the mainline Linux kernel. They weren't submitted for the recent Linux 6.11 merge window and thus as short of flagging it as a "fix", the earliest we'll now see that code merged is for the Linux 6.12 kernel cycle that will end out the year.

With the current Linux kernel, indeed on the AMD Ryzen 9 365 there was no differentiation between the Zen 5 and Zen 5C cores on the Ryzen AI 9 365 (and HX 370). Both the same max frequency and highest performance state (ACPI CPPC value) were uniformally reported across all processor cores... Even though the Ryzen AI 9 365 has four Zen 5 cores and six Zen 5C cores that max out at different frequencies.

P-State Strix Point on current Linux Git


When taking the AMD heterogeneous core topology patches from June and making some slight adjustments so that they would apply cleanly against Linux 6.11 Git, that kernel build then indeed switched over to reporting different capabilities between the Zen 5 and Zen 5C cores:

P-State Strix Point patched for heterogeneous core topology


With the yet to be merged patches, the amd_pstate_highest_perf values were differentiated: 196 for the Zen 5 cores and the lower priority 132 on the Zen 5C cores. The maximum clock frequencies were also now properly reported: 5.09GHz for the Zen 5 cores and 3.4GHz for the Zen 5C cores.

So now they are properly differentiated, but at least in my initial testing of several dozen benchmarks and also monitoring the CPU/SoC power use, there wasn't much of a resulting performance difference. In the end it was just a 1~2% spread that may be easily eaten by noise / system heat in laptop form factor. So for the single-threaded workloads at least, Linux is seeming still getting lucky enough placing the tasks on the Zen 5 cores. We'll see if more optimizations come for the AMD heterogeneous core type handling on Linux or if it's already just "good enough", but that's where things are at today.
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