arch/x86/smbios.c: Fix Upgrade processor information in SMBIOS

The current SMBIOS for coreboot is missing processor info for Alder Lake and Raptor Lake SoC, specifically, voltage, max speed,
and upgrade (socket type). This patch implements upgrade function.
Refer to SMBIOS spec sheet for documentation on cpu socket values:
https://web.archive.org/web/20221012222420/https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.6.0.pdf

BUG=NONE
BRANCH=firmware-brya-14505.B
TEST=Boot and verified that SMBIOS processor upgrade value is correct.

Signed-off-by: Zhixing Ma <zhixing.ma@intel.com>
Change-Id: I5796d31fa2d31b17afa5eddde0799b0f68d69909
Reviewed-on: https://review.coreboot.org/c/coreboot/+/68024
Reviewed-by: Jérémy Compostella <jeremy.compostella@intel.com>
Reviewed-by: Bora Guvendik <bora.guvendik@intel.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
Zhixing Ma 2022-09-30 14:22:41 -07:00 committed by Felix Held
parent 854c897eb8
commit 42bb7df28c
1 changed files with 2 additions and 0 deletions

View File

@ -388,6 +388,8 @@ static int get_socket_type(void)
return 0x15;
if (CONFIG(XEON_SP_COMMON_BASE))
return 0x36;
if (CONFIG(SOC_INTEL_ALDERLAKE))
return 0x40;
return 0x02; /* Unknown */
}