[edk2] [PATCH v4 04/19] UefiCpuPkg: CpuDxe: Wait for APs to enter idle loop

2015-10-19 Thread Michael Kinney
Address a race condition in first call to StartupAllAPs() with SingleThread set to TRUE in the MP initialization. If the APs have not entered their idle loop before StartupAllAPs() is called, then some of the APs will be in an unexpected state, and StartupAllAPs() will hang. This is the hang

Re: [edk2] [PATCH v4 04/19] UefiCpuPkg: CpuDxe: Wait for APs to enter idle loop

2015-10-19 Thread Laszlo Ersek
comments below On 10/19/15 09:44, Michael Kinney wrote: > Address a race condition in first call to StartupAllAPs() with > SingleThread set to TRUE in the MP initialization. If the APs > have not entered their idle loop before StartupAllAPs() is called, > then some of the APs will be in an

Re: [edk2] [PATCH v4 04/19] UefiCpuPkg: CpuDxe: Wait for APs to enter idle loop

2015-10-19 Thread Kinney, Michael D
Laszlo, I have updated the commit message and I have updated source to use gBS->Stall() to be consistent with the rest of this module. I will come back to this module in the future and look into using the performance counter functions in the TimerLib and CpuPause(), so this module can