audk/SecurityPkg/Library/Tpm2DeviceLibDTpm
Qi Zhang 6f4e10d6db SecurityPkg: Add retry mechanism for tpm command
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3980

As per TCG PC Client Device Driver Design Principle document,
if tpm commands fails due to timeout condition, then it should
have retry mechanism (3 retry attempts).
Existing implementation of PtpCrbTpmCommand does not have retry
mechanism if it fails with EFI_TIMEOUT.

See TCG PC Client Device Driver Design Principles for TPM 2.0
https://trustedcomputinggroup.org/wp-content/uploads/TCG_PCClient_Device_Driver_Design_Principles_TPM2p0_v1p1_r4_211104_final.pdf
Vision 1.1, Revision 0.04
Section 7.2.1

Signed-off-by: Qi Zhang <qi1.zhang@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Tested-by: Swapnil Patil <S.Keshavrao.Patil@dell.com>
2022-07-31 16:34:01 +00:00
..
Tpm2DeviceLibDTpm.c SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tpm2DeviceLibDTpm.h SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tpm2DeviceLibDTpm.inf SecurityPkg: Tpm2DeviceLibDTpm: Introduce StandaloneMm instance 2021-02-01 10:03:35 -08:00
Tpm2DeviceLibDTpm.uni SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
Tpm2DeviceLibDTpmBase.c SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tpm2DeviceLibDTpmStandaloneMm.c SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tpm2DeviceLibDTpmStandaloneMm.inf SecurityPkg: Tpm2DeviceLibDTpm: Introduce StandaloneMm instance 2021-02-01 10:03:35 -08:00
Tpm2InstanceLibDTpm.c SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tpm2InstanceLibDTpm.inf SecurityPkg: Tpm2DeviceLibDTpm: Introduce StandaloneMm instance 2021-02-01 10:03:35 -08:00
Tpm2InstanceLibDTpm.uni SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
Tpm2Ptp.c SecurityPkg: Add retry mechanism for tpm command 2022-07-31 16:34:01 +00:00
Tpm2Tis.c SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00