Re: [REGRESSION] suspend to ram fails in 6.2-rc1 due to tpm errors
From: James Bottomley
Date: Wed Dec 28 2022 - 18:07:59 EST
On Wed, 2022-12-28 at 21:22 +0100, Vlastimil Babka wrote:
> Ugh, while the problem [1] was fixed in 6.1, it's now happening again
> on the T460 with 6.2-rc1. Except I didn't see any oops message or
> "tpm_try_transmit" error this time. The first indication of a problem
> is this during a resume from suspend to ram:
>
> tpm tpm0: A TPM error (28) occurred continue selftest
>
> and then periodically
>
> tpm tpm0: A TPM error (28) occurred attempting get random
That's a TPM 1.2 error which means the TPM failed the selftest. The
original problem was reported against TPM 2.0 because of a missing
try_get_ops(). The tpm 1.2 command path was never changed to require
this (and in fact hasn't changed for ages, TPM 1.2 being a bit
obsolete). So this looks like a new problem with TPM 1.2 and
suspend/resume, likely in the BIOS of your system.
James