UefiCpuPkg: CpuDxe: Use PCD for AP detection timeout
authorMichael Kinney <michael.d.kinney@intel.com>
Mon, 19 Oct 2015 19:08:11 +0000 (19:08 +0000)
committermdkinney <mdkinney@Edk2>
Mon, 19 Oct 2015 19:08:11 +0000 (19:08 +0000)
Use PcdCpuApInitTimeOutInMicroSeconds instead of hardcoded 100ms for
the time to wait for all APs to respond to first INIT SIPI SIPI
wake request.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Cc: Jeff Fan <jeff.fan@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18630 6f19259b-4bc3-4df7-8a09-765794883524

UefiCpuPkg/CpuDxe/ApStartup.c
UefiCpuPkg/CpuDxe/CpuDxe.inf

index 38a9c0e..78fb26f 100644 (file)
@@ -452,9 +452,9 @@ StartApsStackless (
 {\r
   SendInitSipiSipiAllExcludingSelf ((UINT32)(UINTN)(VOID*) StartupCode);\r
   //\r
-  // Wait 100 milliseconds for APs to arrive at the ApEntryPoint routine\r
+  // Wait for APs to arrive at the ApEntryPoint routine\r
   //\r
-  MicroSecondDelay (100 * 1000);\r
+  MicroSecondDelay (PcdGet32 (PcdCpuApInitTimeOutInMicroSeconds));\r
 \r
   return EFI_SUCCESS;\r
 }\r
index a251922..9db5303 100644 (file)
@@ -84,8 +84,9 @@
   gEfiSecPlatformInformationPpiGuid             ## UNDEFINED # HOB\r
 \r
 [Pcd]\r
-  gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber   ## CONSUMES\r
-  gUefiCpuPkgTokenSpaceGuid.PcdCpuApStackSize                 ## CONSUMES\r
+  gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber    ## CONSUMES\r
+  gUefiCpuPkgTokenSpaceGuid.PcdCpuApStackSize                  ## CONSUMES\r
+  gUefiCpuPkgTokenSpaceGuid.PcdCpuApInitTimeOutInMicroSeconds  ## CONSUMES\r
 \r
 [Depex]\r
   TRUE\r