summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib
diff options
context:
space:
mode:
authorLiqi Qi <liqiqi@microsoft.com>2025-12-09 02:30:00 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-12-11 05:29:14 +0300
commitba8296810c6c0f411f158955574c8ae8ffe283f0 (patch)
tree83643ac6c0ea66a4bff3488c6073d047ebf811cc /MdeModulePkg/Library/PiDxeS3BootScriptLib
parent02c88f25f3626aa85545d73b8183e9e39e089ced (diff)
downloadedk2-ba8296810c6c0f411f158955574c8ae8ffe283f0.tar.xz
SecurityPkg: Fix Tcg2SubmitCommand in TPM field upgrade scenario
There's a bug that after the device was forced shut down during the tpm firmware update process, then the TPM will stay in field upgrade mode and refuse to work properly. This will block TPM startup and cause the device to bootloop. Now in the TCG_DXE_DATA struct we don’t have a flag to indicate the current TPM mode, and we will simply treat the upper Scenario with this DEVICE_ERROR and set the TPMPresentFlag to FALSE. Later in Tcg2SubmitCommand we will just return DEVICE_ERROR and skip the actual TPM recovery. We should have an extra flag that check for the TPM response code and if it's TPM_RC_UPGRADE, we knew the device is in field upgrade mode and should continue the workflow. We should only return EFI_DEVICE_ERROR when both TPMPresentFlag and TpmUpdateFlag are false. The field upgrade is part of TCG spec, and the capsule update/recovery is part of UEFI spec. Make this PR to bring in the fix for this corner case. Signed-off-by: Liqi Qi <liqiqi@microsoft.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib')
0 files changed, 0 insertions, 0 deletions