From 42bb7df28c772072c0239405857795da50b1731e Mon Sep 17 00:00:00 2001 From: Zhixing Ma Date: Fri, 30 Sep 2022 14:22:41 -0700 Subject: [PATCH] arch/x86/smbios.c: Fix Upgrade processor information in SMBIOS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Change-Id: I5796d31fa2d31b17afa5eddde0799b0f68d69909 Reviewed-on: https://review.coreboot.org/c/coreboot/+/68024 Reviewed-by: Jérémy Compostella Reviewed-by: Bora Guvendik Tested-by: build bot (Jenkins) Reviewed-by: Elyes Haouas --- src/arch/x86/smbios.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c index 2a2a6af07c..24b18f2988 100644 --- a/src/arch/x86/smbios.c +++ b/src/arch/x86/smbios.c @@ -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 */ }