[edk2-devel] [Patch V2 0/6] Eliminate the second INIT-SIPI-SIPI sequence

Yuanhao Xie posted 6 patches 10 months, 1 week ago
Failed in applying to current master (apply log)
There is a newer version of this series
UefiCpuPkg/Library/MpInitLib/Ia32/MpFuncs.nasm |   4 ++--
UefiCpuPkg/Library/MpInitLib/MpLib.c           | 374 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------------
UefiCpuPkg/Library/MpInitLib/MpLib.h           |  71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
UefiCpuPkg/Library/MpInitLib/PeiMpLib.c        |  54 +++++++++++++++++++++++++++++++++++++++++++++++++++++-
UefiCpuPkg/Library/MpInitLib/X64/MpFuncs.nasm  |   3 +--
5 files changed, 433 insertions(+), 73 deletions(-)
[edk2-devel] [Patch V2 0/6] Eliminate the second INIT-SIPI-SIPI sequence
Posted by Yuanhao Xie 10 months, 1 week ago
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 (6):
  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: Enhance MpHandOff Handling.

 UefiCpuPkg/Library/MpInitLib/Ia32/MpFuncs.nasm |   4 ++--
 UefiCpuPkg/Library/MpInitLib/MpLib.c           | 374 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------------
 UefiCpuPkg/Library/MpInitLib/MpLib.h           |  71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 UefiCpuPkg/Library/MpInitLib/PeiMpLib.c        |  54 +++++++++++++++++++++++++++++++++++++++++++++++++++++-
 UefiCpuPkg/Library/MpInitLib/X64/MpFuncs.nasm  |   3 +--
 5 files changed, 433 insertions(+), 73 deletions(-)

-- 
2.36.1.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#106322): https://edk2.groups.io/g/devel/message/106322
Mute This Topic: https://groups.io/mt/99769823/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-