Re: [edk2] UefiCpuPkg/MpInitLib: Fix S3 resume hang issue.

2018-07-19 Thread Dong, Eric
Hi Laszlo, > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > Laszlo Ersek > Sent: Thursday, July 19, 2018 7:57 PM > To: Dong, Eric ; edk2-devel@lists.01.org > Cc: Ni, Ruiyu > Subject: Re: [edk2] UefiCpuPkg/MpInitLib: Fix

Re: [edk2] UefiCpuPkg/MpInitLib: Fix S3 resume hang issue.

2018-07-19 Thread Laszlo Ersek
Hi, On 07/18/18 07:10, Eric Dong wrote: > 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 pha

Re: [edk2] UefiCpuPkg/MpInitLib: Fix S3 resume hang issue.

2018-07-18 Thread Ni, Ruiyu
Reviewed-by: Ruiyu Ni Thanks/Ray > -Original Message- > From: Dong, Eric > Sent: Wednesday, July 18, 2018 1:10 PM > To: edk2-devel@lists.01.org > Cc: Laszlo Ersek ; Ni, Ruiyu > Subject: UefiCpuPkg/MpInitLib: Fix S3 resume hang issue. > > When resume from S3 and CPU loop mode is MWait m

[edk2] UefiCpuPkg/MpInitLib: Fix S3 resume hang issue.

2018-07-17 Thread Eric Dong
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, PiSmmCpuDx