v2:
(1) Per Michael Kinney's suggestion, update GetApLoopMode() not to check CPUID
on MONITOR/MWAIT support if PcdCpuApLoopMode is not set to ApMwaitLoop.
(2) Add PcdCpuApTargetCstate to specify the C-state for APs instead of the max
C-state.
v1:
Support 3 AP loop modes:
A: Place AP in the Hlt-Loop state.
B: Place AP in the Mwait-Loop state.
C: Place AP in the Run-Loop state.
Jeff Fan (7):
UefiCpuPkg: Add PCD PcdCpuApLoopMode
UefiCpuPkg: Add PCD PcdCpuApTargetCstate
UefiCpuPkg/CpuMpPei: Add GetApLoopMode() to get AP loop mode
UefiCpuPkg/CpuMpPei: Prepare for monitor buffer
UefiCpuPkg/CpuMpPei: Place APs in proper loop mode after AP execution
UefiCpuPkg/CpuMpPei: Wake up APs by proper method
UefiCpuPkg/CpuMpPei: Remove un-used AsmCliHltLoop()
UefiCpuPkg/CpuMpPei/CpuMpPei.c | 264 +++++++++++++++++++++++++++-------
UefiCpuPkg/CpuMpPei/CpuMpPei.h | 26 ++--
UefiCpuPkg/CpuMpPei/CpuMpPei.inf | 3 +
UefiCpuPkg/CpuMpPei/Ia32/MpFuncs.asm | 6 -
UefiCpuPkg/CpuMpPei/Ia32/MpFuncs.nasm | 6 -
UefiCpuPkg/CpuMpPei/PeiMpServices.c | 6 +-
UefiCpuPkg/CpuMpPei/X64/MpFuncs.asm | 6 -
UefiCpuPkg/CpuMpPei/X64/MpFuncs.nasm | 6 -
UefiCpuPkg/Include/Register/Cpuid.h | 2 +
UefiCpuPkg/UefiCpuPkg.dec | 13 ++
UefiCpuPkg/UefiCpuPkg.uni | Bin 22498 -> 23534 bytes
11 files changed, 244 insertions(+), 94 deletions(-)
--
1.9.5.msysgit.0
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel