summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/PiSmmCpuDxeSmm/CpuService.c
diff options
context:
space:
mode:
authorWu, Jiaxin <jiaxin.wu@intel.com>2023-11-15 19:15:51 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-12-08 13:25:11 +0000
commitad0b1cc144b56fcbd8d369eaff6eaf5f3020efe7 (patch)
treefbec8835f8a3d8b03470c85d2d7b8f6cf39469cb /UefiCpuPkg/PiSmmCpuDxeSmm/CpuService.c
parentfe2abc9b74b9b869e29f0ebc6dfaa54001b53e9b (diff)
downloadedk2-ad0b1cc144b56fcbd8d369eaff6eaf5f3020efe7.tar.gz
edk2-ad0b1cc144b56fcbd8d369eaff6eaf5f3020efe7.tar.bz2
edk2-ad0b1cc144b56fcbd8d369eaff6eaf5f3020efe7.zip
UefiCpuPkg/BaseXApicLib: Fix CPUID_V2_EXTENDED_TOPOLOGY detection
This patch is to complete 170d4ce8, sync the change to BaseXApicLib. Checking the max cpuid leaf is not enough to figure whenever CPUID_V2_EXTENDED_TOPOLOGY is supported. Intel SDM says: Software must detect the presence of CPUID leaf 1FH by verifying (a) the highest leaf index supported by CPUID is >= 1FH, and (b) CPUID.1FH:EBX[15:0] reports a non-zero value. The same is true for CPUID leaf 0BH. This patch adds the EBX check to GetProcessorLocation2ByApicId(). The patch also fixes the existing check in GetProcessorLocationByApicId() to be in line with the spec by looking at bits 15:0. The comments are updated with a quote from the Intel SDM. Cc: Laszlo Ersek <lersek@redhat.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Star Zeng <star.zeng@intel.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com> Message-Id: <20231115111553.6592-2-jiaxin.wu@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Ray Ni <ray.ni@intel.com>
Diffstat (limited to 'UefiCpuPkg/PiSmmCpuDxeSmm/CpuService.c')
0 files changed, 0 insertions, 0 deletions