[Skiboot] [PATCH] hdata/tpmrel: detect tpm not present by looking up the stinfo->status
stewart at linux.ibm.com
Tue Apr 24 13:31:26 AEST 2018
Claudio Carvalho <cclaudio at linux.vnet.ibm.com> writes:
> Skiboot detects if tpm is present by checking if a secureboot_tpm_info
> entry exists. However, if a tpm is not present, hostboot also creates a
> secureboot_tpm_info entry. In this case, hostboot creates an empty
> entry, but setting the field tpm_status to TPM_NOT_PRESENT.
> This detects if tpm is not present by looking up the stinfo->status.
> This fixes the "TPMREL: TPM node not found for chip_id=0 (HB bug)"
> issue, reproduced when skiboot is running on a system that has no tpm.
> Signed-off-by: Claudio Carvalho <cclaudio at linux.vnet.ibm.com>
> Tested-by: Pridhiviraj Paidipeddi <ppaidipe at linux.vnet.ibm.com>
> hdata/tpmrel.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
Thanks, merged to master as of 4ca5fac2c3b3571bc8ac9b1c28d0cf4ee3efaaeb
OPAL Architect, IBM.
More information about the Skiboot