Linux Decides To Disable RNG On All AMD fTPMs

Written by Michael Larabel in AMD on 7 August 2023 at 05:04 PM EDT. 41 Comments
AMD
As a follow-up to the first-on-Phoronix article last month that highlighted Linus Torvalds' frustrated views on the AMD fTPM random number generator continuing to cause problems for users even with updated firmware/BIOS, as of today the Linux kernel has gone ahead and blanket disabled RNG use for all current AMD fTPMs.

AMD Linux engineer Mario Limonciello authored the patch that was merged today to disable the RNG for all AMD fTPMs. Mario summed up in that commit:
tpm: Disable RNG for all AMD fTPMs

The TPM RNG functionality is not necessary for entropy when the CPU already supports the RDRAND instruction. The TPM RNG functionality was previously disabled on a subset of AMD fTPM series, but reports continue to show problems on some systems causing stutter root caused to TPM RNG functionality.

Expand disabling TPM RNG use for all AMD fTPMs whether they have versions that claim to have fixed or not.

This patch was merged to mainline today for the Linux 6.5 kernel while the patch is also marked for back-porting to the Linux 6.1 and newer stable kernels where this AMD fTPM RNG use is present. Thus over the next few days this change in behavior for modern AMD Ryzen systems will be rolling out in the next set of stable kernel point releases.

Disabline AMD fTPM RNG patch


Hopefully this will lay to rest the various AMD stutter issues that continue to be reported by Linux users on recent kernel versions.
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