Yuanhao, Can you please mention that the new behavior follows the Intel SDM and include the SDM content in commit message?
> -----Original Message----- > From: [email protected] <[email protected]> On Behalf Of Yuanhao Xie > Sent: Wednesday, July 19, 2023 3:45 PM > To: [email protected] > Cc: Dong, Guo <[email protected]>; Ni, Ray <[email protected]>; Rhodes, Sean > <[email protected]>; Lu, James <[email protected]>; Guo, Gua > <[email protected]>; Xie, Yuanhao <[email protected]> > Subject: [edk2-devel] [PATCH 4/4] UefiCpuPkg:Wake up APs after power-up or > RESET through SIPI. > > After a power-up or RESET, since all APs are already in the > "wait-for-SIPI state", the BSP can broadcast just a single Startup IPI > to the APs to wake them up and initialize them. > > Cc: Guo Dong <[email protected]> > Cc: Ray Ni <[email protected]> > Cc: Sean Rhodes <[email protected]> > Cc: James Lu <[email protected]> > Cc: Gua Guo <[email protected]> > Signed-off-by: Yuanhao Xie <[email protected]> > --- > UefiCpuPkg/Library/MpInitLib/MpLib.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.c > b/UefiCpuPkg/Library/MpInitLib/MpLib.c > index 737e03ffc5..ce94937e30 100644 > --- a/UefiCpuPkg/Library/MpInitLib/MpLib.c > +++ b/UefiCpuPkg/Library/MpInitLib/MpLib.c > @@ -1294,7 +1294,14 @@ WakeUpAP ( > if (CpuMpData->SevSnpIsEnabled && (CpuMpData->InitFlag != > ApInitConfig)) > { > SevSnpCreateAP (CpuMpData, -1); > } else { > - SendInitSipiSipiAllExcludingSelf ((UINT32)ExchangeInfo->BufferStart); > + if ((CpuMpData->InitFlag == ApInitConfig) && FixedPcdGetBool > (PcdFirstTimeWakeUpAPsBySipi)) { > + // > + // SIPI can be used for the first time wake up after reset to > reduce boot > time. > + // > + SendStartupIpiAllExcludingSelf ((UINT32)ExchangeInfo->BufferStart); > + } else { > + SendInitSipiSipiAllExcludingSelf > ((UINT32)ExchangeInfo->BufferStart); > + } > } > } > > -- > 2.36.1.windows.1 > > > > > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107044): https://edk2.groups.io/g/devel/message/107044 Mute This Topic: https://groups.io/mt/100231364/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/leave/9847357/21656/1706620634/xyzzy [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
