diff options
author | Eric Dong <eric.dong@intel.com> | 2018-06-27 16:42:51 +0800 |
---|---|---|
committer | Eric Dong <eric.dong@intel.com> | 2018-07-19 13:06:49 +0800 |
commit | 58942277bcbf41abda5f6e3a1c89d571105d5983 (patch) | |
tree | b062713fd02c90e99bdedba15f98d305a881fe91 /BaseTools/Source/Python/GenFds/ComponentStatement.py | |
parent | f63a3e286765f47b79a73d56f8d687c4f3733979 (diff) | |
download | edk2-58942277bcbf41abda5f6e3a1c89d571105d5983.tar.gz edk2-58942277bcbf41abda5f6e3a1c89d571105d5983.tar.bz2 edk2-58942277bcbf41abda5f6e3a1c89d571105d5983.zip |
UefiCpuPkg/MpInitLib: Fix S3 resume hang issue.
When resume from S3 and CPU loop mode is MWait mode,
if driver calls APs to do task at EndOfPei point, the
APs can't been wake up and bios hang at that point.
The root cause is PiSmmCpuDxeSmm driver wakes up APs
with HLT mode during S3 resume phase to do SMM relocation.
After this task, PiSmmCpuDxeSmm driver not restore APs
context which make CpuMpPei driver saved wake up buffer
not works.
The solution for this issue is let CpuMpPei driver hook
S3SmmInitDone ppi notification. In this notify function,
it check whether Cpu Loop mode is not HLT mode. If yes,
CpuMpPei driver will set a flag to force BSP use INIT-SIPI
-SIPI command to wake up the APs.
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/GenFds/ComponentStatement.py')
0 files changed, 0 insertions, 0 deletions