Thread (22 messages) 22 messages, 6 authors, 2023-09-11

Re: [PATCH v3] tpm: Enable hwrng only for Pluton on AMD CPUs

From: "Jarkko Sakkinen" <jarkko@kernel.org>
Date: 2023-08-27 18:13:05
Also in: lkml, stable

On Wed Aug 23, 2023 at 9:58 PM EEST, Mario Limonciello wrote:
On 8/23/2023 12:40, Jarkko Sakkinen wrote:
quoted
On Wed Aug 23, 2023 at 11:23 AM EEST, Paul Menzel wrote:
quoted
Dear Jarkko,


Thank you for your patch.


Am 23.08.23 um 01:15 schrieb Jarkko Sakkinen:
quoted
The vendor check introduced by commit 554b841d4703 ("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.

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: 554b841d4703 ("tpm: Disable RNG for all AMD fTPMs")
Reported-by: Todd Brandt <redacted>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217804
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Mario’s patch also had the three reporters below listed:

Reported-by: Patrick Steinhardt <redacted>
Reported-by: Ronan Pigott <redacted>
Reported-by: Raymond Jay Golo <redacted>
The problem here is that checkpatch throws three warnings:

WARNING: Reported-by: should be immediately followed by Closes: with a URL to the report
#19:
Reported-by: Patrick Steinhardt <redacted>
Reported-by: Ronan Pigott <redacted>

WARNING: Reported-by: should be immediately followed by Closes: with a URL to the report
#20:
Reported-by: Ronan Pigott <redacted>
Reported-by: Raymond Jay Golo <redacted>

WARNING: Reported-by: should be immediately followed by Closes: with a URL to the report
#21:
Reported-by: Raymond Jay Golo <redacted>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
FWIW I observed the same checkpatch warning when I submitted my version 
of the patch.  I figured it's better to ignore the warning and attribute 
everyone who reported the issue affected them.
OK so:

1. checkpatch.pl is part of the kernel process.
2. Bugzilla is not part of the kernel process.

Why emphasis on 1?

BR, Jarkko
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help