Yuanhao,
Can you please mention that the new behavior follows the Intel SDM and
include the SDM content in commit message?

> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Yuanhao Xie
> Sent: Wednesday, July 19, 2023 3:45 PM
> To: devel@edk2.groups.io
> Cc: Dong, Guo <guo.d...@intel.com>; Ni, Ray <ray...@intel.com>; Rhodes, Sean
> <sean@starlabs.systems>; Lu, James <james...@intel.com>; Guo, Gua
> <gua....@intel.com>; Xie, Yuanhao <yuanhao....@intel.com>
> 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 <guo.d...@intel.com>
> Cc: Ray Ni <ray...@intel.com>
> Cc: Sean Rhodes <sean@starlabs.systems>
> Cc: James Lu <james...@intel.com>
> Cc: Gua Guo <gua....@intel.com>
> Signed-off-by: Yuanhao Xie <yuanhao....@intel.com>
> ---
>  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: devel+ow...@edk2.groups.io
Unsubscribe: 
https://edk2.groups.io/g/devel/leave/9847357/21656/1706620634/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to