Re: [BUG] Nuvoton NCPT650 TPM 2.0 mode not working

From: Mimi Zohar
Date: Sun Nov 11 2018 - 16:47:41 EST


> Very strange... When I pull the power cord, then replug and boot, I get these
> dmesg messages:
> [ 0.000000] efi: ACPI
> 2.0=0x9ea78000 ACPI=0x9ea78000 SMBIOS=0x9f5e5000 SMBIOS
> 3.0=0x9f5e4000 MPS=0xfca00 ESRT=0x9c06e918 MEMATTR=0x99cb9018 TPMEventLog=0x
> 98d0c018
> [ 0.001794] ACPI: TPM2 0x000000009EAB1F70 000034 (v03 LENOVO TC-
> S06 00001260 AMI 00000000)
> [ 3.096587] tpm_tis MSFT0101:00: 2.0 TPM (device-id 0xFE, rev-id 2)
> [ 3.105684] tpm tpm0: A TPM error (2314) occurred attempting the self test
>
> After a reboot I get those "ima: ..." message again. Pulling the plug seems to
> reset anything (the TPM).
>
> The PTT TPM 2.0 shows exactly the same behaviour.

On a cold boot, it takes longer to initialize the TPM. ÂThe TPM is
returning TPM2_RC_TESTING (0x090A == 2314), meaning that it has not
yet finished the initialization.

Nayna's post a patch, which should address the TPM2_RC_TESTING error
message.

https://lore.kernel.org/linux-integrity/20180515071712.9331-1-nayna@li
nux.vnet.ibm.com/

thanks,

Mimi