]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg: Add PCD PcdCpuApTargetCstate
authorJeff Fan <jeff.fan@intel.com>
Fri, 18 Dec 2015 03:23:53 +0000 (03:23 +0000)
committervanjeff <vanjeff@Edk2>
Fri, 18 Dec 2015 03:23:53 +0000 (03:23 +0000)
This new PCD is used to specify the AP C-state value by MWAIT instruction.

More deeper C-state means more longer latency time when APs exiting from MWAIT
state. Platforms need to balance the performance and power saving to find the
proper C-state for APs.

Also, some processor may not ready for the deepest C-state at the beginning.
Platform also could choose the proper chance to place AP into the deeper C-state
by set this PCD before hand-off to OS.

Contributed-under: TianoCore Contribution Agreement 1.0
Cc: Feng Tian <feng.tian@intel.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19342 6f19259b-4bc3-4df7-8a09-765794883524

UefiCpuPkg/UefiCpuPkg.dec
UefiCpuPkg/UefiCpuPkg.uni

index 0d42918427ea5f1c4ba51a87bd33c4bda3f327a9..472b38acbc1eb9687cad96c0b4e4dfb3fc508f50 100644 (file)
   # @Prompt The AP wait loop state.\r
   # @ValidRange  0x80000001 | 1 - 3\r
   gUefiCpuPkgTokenSpaceGuid.PcdCpuApLoopMode|1|UINT8|0x60008006\r
+  ## Specifies the AP target C-state for Mwait during POST phase.\r
+  #  The default value 0 means C1 state.\r
+  #  The value is defined as below.<BR><BR>\r
+  # @Prompt The specified AP target C-state for Mwait.\r
+  gUefiCpuPkgTokenSpaceGuid.PcdCpuApTargetCstate|0|UINT8|0x00000007\r
 \r
 [PcdsDynamic, PcdsDynamicEx]\r
   ## Contains the pointer to a CPU S3 data buffer of structure ACPI_CPU_DATA.\r
index 2c74a92e06bb7715eac4628420be123aa9b54a74..13f0e41aeb03321c448a3d414ce2e46b726a913a 100644 (file)
 \r
 #string STR_gUefiCpuPkgTokenSpaceGuid_PcdCpuApLoopMode_HELP  #language en-US "Specifies the AP wait loop state during POST phase."\r
 \r
+#string STR_gUefiCpuPkgTokenSpaceGuid_PcdCpuApTargetCstate_PROMPT  #language en-US "The specified AP target C-state for Mwait"\r
+\r
+#string STR_gUefiCpuPkgTokenSpaceGuid_PcdCpuApTargetCstate_HELP  #language en-US "Specifies the AP target C-state for Mwait during POST phase."\r
+\r