From 868b68df85eb7aeed7eba3392303fa3be854e2a6 Mon Sep 17 00:00:00 2001 From: Ilya Smirnov Date: Thu, 6 Dec 2018 15:22:10 -0600 Subject: 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 Reviewed-by: Michael Baiocchi Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: FSP CI Jenkins Tested-by: Jenkins OP HW Reviewed-by: Daniel M. Crowell --- src/usr/i2c/tpmdd.C | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/usr/i2c') 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); -- cgit v1.2.1