Linux Fixes Issue Where Applying AMD Zen1/Zen2 Microcode Updates Could Slow Boot Times

Written by Michael Larabel in AMD on 1 December 2024 at 06:13 AM EST. 21 Comments
AMD
Submitted today for the Linux kernel ahead of the Linux 6.13-rc1 release as part of the "x86/urgent" material is a fix for aging Zen 1 and Zen 2 processors where for the past year and a half they could potentially find very slow boot times.

Last month a Nokia engineer reported varying delays in the Linux boot process on more than ten older AMD EPYC servers. On affected systems, the initramfs would take unexpectedly long to unpack. The impact could be quite extreme:
"Most boots see no impact, on some boots the time is increased by a few to tens of seconds, and in extreme cases even by several minutes (!)."

This slowdown of boot times by tens of seconds or several minutes was bisected to a Linux kernel change made in June 2023 around the CPU microcode update handling.

AMD Ryzen Zen 2 packages


The issue was ultimately tracked down to a problem with aging AMD Zen 1 and Zen 2 processors. Those processors require that the patch buffer mapping be flushed from the TLB after applying the CPU microcode update at boot time. So the Linux kernel behavior on AMD CPU microcode updating has been updated for those aging Ryzen/EPYC systems to flush the patch buffer in order to avoid these "unncesessary and unnatural delays happen in the boot process."

That AMD CPU microcode updating fix was submitted this morning as part of the x86/urgent pull ahead of the Linux 6.13-rc1 kernel expected later today. In turn this fix should also get back-ported to existing stable kernel series too.
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