Re: TPM driver breaks S3 suspend

From: Jason Gunthorpe
Date: Thu Dec 21 2017 - 11:17:41 EST


On Thu, Dec 21, 2017 at 10:19:09AM +0000, Alexander.Steffen@xxxxxxxxxxxx wrote:

> The correct solution should be something like tpm2_auto_startup
> (execute selftests, if they fail because of the missing startup
> command, execute that and retry the selftests). Interestingly,
> tpm1_auto_startup (same purpose as tpm2_auto_startup, but for TPM
> 1.2 instead) does not use the same sequence, the startup-retry part
> is missing. Is there any reason this is done differently for TPM
> 1.2?

No TPM 1.2 has needed the retry loop so far.. don't see any problem
with adding it if the spec supports it.

Jason