Skip to content
Commit 8f7f35e5 authored by Jarkko Sakkinen's avatar Jarkko Sakkinen
Browse files

tpm: Enable hwrng only for Pluton on AMD CPUs



The vendor check introduced by commit 554b841d ("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: stable@vger.kernel.org
Fixes: 554b841d ("tpm: Disable RNG for all AMD fTPMs")
Reported-by: default avatarTodd Brandt <todd.e.brandt@intel.com>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217804


Reported-by: default avatarPatrick Steinhardt <ps@pks.im>
Reported-by: default avatarRaymond Jay Golo <rjgolo@gmail.com>
Reported-by: default avatarRonan Pigott <ronan@rjp.ie>
Reviewed-by: default avatarJerry Snitselaar <jsnitsel@redhat.com>
Signed-off-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
parent 9c377852
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment