public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [Patch V3 0/5] Eliminate the second INIT-SIPI-SIPI sequence
@ 2023-06-26  5:57 Yuanhao Xie
  2023-06-26  5:57 ` [Patch V3 1/5] UefiCpuPkg: Refactor the logic for placing APs in HltLoop Yuanhao Xie
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Yuanhao Xie @ 2023-06-26  5:57 UTC (permalink / raw)
  To: devel

To speed up MP initialization, this set of patches replaces the 
time-consuming init-sipi-sipi process in the DXE phase. Instead, 
a start-up signal is used to wake up the APs and switch context
 from the PEI phase to the DXE phase. This optimization is 
 effective when both PEI and DXE operate in the same bit mode. 

The current HOB characterized by mCpuInitMpLibHobGuid has 
two purposes:
  Acting as a global variable for the PEI phase.
  Transferring information from the PEI phase to the DXE phase.
This series of patches creates a new HOB specifically designed 
to transfer only the minimal necessary information 
(MpHandoff structure) from the PEI phase to the DXE phase.

YuanhaoXie (5):
  UefiCpuPkg: Refactor the logic for placing APs in HltLoop.
  UefiCpuPkg: Refactor the logic for placing APs in Mwait/Runloop.
  UefiCpuPkg: Create MpHandOff.
  UefiCpuPkg: ApWakeupFunction directly use CpuMpData.
  UefiCpuPkg: Eliminate the second INIT-SIPI-SIPI sequence.

 UefiCpuPkg/Library/MpInitLib/Ia32/MpFuncs.nasm |   4 ++--
 UefiCpuPkg/Library/MpInitLib/MpLib.c           | 360 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------------------------------------------------
 UefiCpuPkg/Library/MpInitLib/MpLib.h           |  75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 UefiCpuPkg/Library/MpInitLib/PeiMpLib.c        |  32 +++++++++++++++++++++++++++++++-
 UefiCpuPkg/Library/MpInitLib/X64/MpFuncs.nasm  |   3 +--
 5 files changed, 404 insertions(+), 70 deletions(-)

-- 
2.36.1.windows.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-06-28  9:11 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-26  5:57 [Patch V3 0/5] Eliminate the second INIT-SIPI-SIPI sequence Yuanhao Xie
2023-06-26  5:57 ` [Patch V3 1/5] UefiCpuPkg: Refactor the logic for placing APs in HltLoop Yuanhao Xie
2023-06-26  9:10   ` Ni, Ray
2023-06-26  5:57 ` [Patch V3 2/5] UefiCpuPkg: Refactor the logic for placing APs in Mwait/Runloop Yuanhao Xie
2023-06-26  9:10   ` Ni, Ray
2023-06-26  5:57 ` [Patch V3 3/5] UefiCpuPkg: Create MpHandOff Yuanhao Xie
2023-06-26  9:28   ` Ni, Ray
2023-06-28  8:57     ` Yuanhao Xie
2023-06-26  5:57 ` [Patch V3 4/5] UefiCpuPkg: ApWakeupFunction directly use CpuMpData Yuanhao Xie
2023-06-26  9:36   ` Ni, Ray
2023-06-26  5:57 ` [Patch V3 5/5] UefiCpuPkg: Eliminate the second INIT-SIPI-SIPI sequence Yuanhao Xie
2023-06-27  5:51   ` Ni, Ray
2023-06-28  8:52     ` Yuanhao Xie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox