diff options
author | Andrey Petrov <anpetrov@fb.com> | 2019-11-15 13:19:08 -0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-11-26 11:45:31 +0000 |
commit | 515ef38db40cc44592770c00be8e4980bbaccc69 (patch) | |
tree | 41d462dcf759f60f4d21803115eca3d5205c8d48 /src/soc | |
parent | 2ed6848ea3530beb234a3b9d5c843a54688d1d3c (diff) |
arch/x86: SMBIOS: Improve core count reporting
Current code uses CPUID leaf 0x1, EBX bits 16:23 to determine number for
"core count". However, it turns out this number has little to do with
real number of cores. According to SDM vol 2A, it stays for "maximum
number of addressable IDs for logical processors in this physical
package". This does not seem to take into account fusing of giving
processor.
The new code determines 'core count' by dividing thread-level cpus by
reported logical cores. This seems to be the only way to arrive
to number of cores as it is reported in official CPU datasheet.
TEST=tested on OCP monolake
Change-Id: Id4ba9e3079f92ffe38f9104ffcfafe62582dd259
Signed-off-by: Andrey Petrov <anpetrov@fb.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36941
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Diffstat (limited to 'src/soc')
0 files changed, 0 insertions, 0 deletions