Skip to content

Commit

Permalink
AmpereAltraPkg: Fix TPM PCR changes after reboot
Browse files Browse the repository at this point in the history
Currently, TPM PCR changes because of corruption of PreUefi event log.

With current observation, after DxeIpl decoded FVMAIN section, PreUefi
events log are read correctly. This patch changes flash layout in order
that PeiCore executes PEI Guided Section Extraction PPI before
executing Tcg2Pei module.

Signed-off-by: Tinh Nguyen <[email protected]>
  • Loading branch information
tinhnampere committed May 24, 2022
1 parent 9d5203b commit 69b212c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Platform/Ampere/JadePkg/Jade.fdf
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,6 @@ APRIORI PEI {
INF MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
INF Silicon/Ampere/AmpereAltraPkg/Drivers/PcieInitPei/PcieInitPei.inf

!if $(TPM2_ENABLE) == TRUE
INF MdeModulePkg/Universal/ResetSystemPei/ResetSystemPei.inf
INF Silicon/Ampere/AmpereAltraPkg/Drivers/Tcg2Pei/Tcg2Pei.inf
!endif

#
# Print platform information before passing control into the Driver Execution Environment (DXE) phase
#
Expand All @@ -184,6 +179,11 @@ APRIORI PEI {
}
}

!if $(TPM2_ENABLE) == TRUE
INF MdeModulePkg/Universal/ResetSystemPei/ResetSystemPei.inf
INF Silicon/Ampere/AmpereAltraPkg/Drivers/Tcg2Pei/Tcg2Pei.inf
!endif

[FV.FvMain]
FvAlignment = 16
ERASE_POLARITY = 1
Expand Down

0 comments on commit 69b212c

Please sign in to comment.