AMD Bus Lock Trap Support Merged For Linux 6.13

Written by Michael Larabel in AMD on 22 November 2024 at 09:00 AM EST. Add A Comment
AMD
Going back to early in the year AMD Linux engineers began preparing support for a new Bus Lock Trap feature with Zen 5 CPUs. With the in-development Linux 6.13 kernel that support is being merged.

Years after Intel Linux engineers worked out the split lock detection and bus lock detection for the Linux kernel and their processors to warn or kill on offending applications given the negative performance impact those locks can have on overall system performance, AMD Zen 5 systems running Linux 6.13+ will be able to leverage Bus Lock Trap.

AMD EPYC 9005 CPU next to a lock


The AMD Bus Lock Trap support with modern Ryzen/EPYC Zen 5 processors is now wired up with Linux 6.13. The Linux kernel code builds off the foundation laid out by Intel engineers. The AMD Bus Lock Trap feature will raise a #DB exception on occurrence of a bus lock when outside of the kernel (ring zero). Knowing about bus/split locks with either a warning or killing the app can be important for overall system performance health.

AMD Bus Lock Trap documentation


The work had been queued ahead of Linux 6.12 but the tip/tip.git's x86/splitlock branch ultimately wasn't sent in for the prior merge window. This week though the code was submitted and since merged for Linux 6.13.

With Linux 6.13 the split lock detection and bus lock detection is also now behind a "CONFIG_X86_BUS_LOCK_DETECT" Kconfig build time switch for those wishing to toggle the support. More details on the functionality can be found via the kernel documentation.
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