mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
The vendor check introduced by commit554b841d47("tpm: Disable RNG for all AMD fTPMs") doesn't work properly on a number of Intel fTPMs. On the reported systems the TPM doesn't reply at bootup and returns back the command code. This makes the TPM fail probe on Lenovo Legion Y540 laptop. Since only Microsoft Pluton is the only known combination of AMD CPU and fTPM from other vendor, disable hwrng otherwise. In order to make sysadmin aware of this, print also info message to the klog. Cc: [email protected] Fixes:554b841d47("tpm: Disable RNG for all AMD fTPMs") Reported-by: Todd Brandt <[email protected]> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217804 Reported-by: Patrick Steinhardt <[email protected]> Reported-by: Raymond Jay Golo <[email protected]> Reported-by: Ronan Pigott <[email protected]> Reviewed-by: Jerry Snitselaar <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>