diff options
author | Ilya Smirnov <ismirno@us.ibm.com> | 2018-12-06 15:22:10 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2019-01-18 16:44:58 -0600 |
commit | 868b68df85eb7aeed7eba3392303fa3be854e2a6 (patch) | |
tree | ea6ef1afe17ebc0c39baa4ad0e926be77f36e501 /src/usr/i2c | |
parent | 6a5388bbc8b066a9547e1e1268e8c3a7e9f33291 (diff) | |
download | talos-hostboot-868b68df85eb7aeed7eba3392303fa3be854e2a6.tar.gz talos-hostboot-868b68df85eb7aeed7eba3392303fa3be854e2a6.zip |
Secureboot: Add New TPM Commands For Nodecomm
This commit adds four new TPM commands, and APIs thereto,
for enhanced secure multinode communication protocol. The
TPM commands are the base for the new protocol and will be
used as part of it.
Change-Id: I080ff87cd6001b5d2e13ae350a379cbc2c92bfcf
RTC: 202364
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/69725
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/i2c')
-rwxr-xr-x | src/usr/i2c/tpmdd.C | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/usr/i2c/tpmdd.C b/src/usr/i2c/tpmdd.C index 0894653b3..11b14aa80 100755 --- a/src/usr/i2c/tpmdd.C +++ b/src/usr/i2c/tpmdd.C @@ -2262,8 +2262,9 @@ errlHndl_t tpmPollForDataAvail( const tpm_info_t & i_tpmInfo) tpm_sts_reg_t stsReg; errlHndl_t err = NULL; - // Operation TIMEOUT_A defined by TCG spec for data available - for (size_t delay = 0; delay < TPMDD::TPM_TIMEOUT_A; delay += 10) + // Use the longer timeout B here since some of the TPM commands may take + // more than timeout A to complete + for (size_t delay = 0; delay < TPMDD::TPM_TIMEOUT_B; delay += 10) { err = tpmReadSTSRegValid(i_tpmInfo, stsReg); |