From 6041699ab3fe367f120e90938af4d3919b98b399 Mon Sep 17 00:00:00 2001 From: David Hendricks Date: Sat, 28 Jan 2023 15:35:37 -0800 Subject: [PATCH] arch/x86/smbios.c: Update Xeon-SP socket types Now that we support >1 Xeon-SP, XEON_SP_COMMON_BASE no longer reflects the socket type. This uses SOC_INTEL_* Kconfig variables and returns the correct socket type for Cooper Lake-SP. Signed-off-by: David Hendricks Change-Id: I142de5f040f3b76e352f27c00fe9e50787df5712 Reviewed-on: https://review.coreboot.org/c/coreboot/+/72498 Tested-by: build bot (Jenkins) Reviewed-by: Jonathan Zhang Reviewed-by: Arthur Heymans --- src/arch/x86/smbios.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c index 7cdf4271bc..6475f98755 100644 --- a/src/arch/x86/smbios.c +++ b/src/arch/x86/smbios.c @@ -406,10 +406,12 @@ static int get_socket_type(void) return PROCESSOR_UPGRADE_SOCKET_MPGA604; if (CONFIG(CPU_INTEL_SOCKET_LGA775)) return PROCESSOR_UPGRADE_SOCKET_LGA775; - if (CONFIG(XEON_SP_COMMON_BASE)) - return PROCESSOR_UPGRADE_SOCKET_LGA3647_1; if (CONFIG(SOC_INTEL_ALDERLAKE)) return PROCESSOR_UPGRADE_SOCKET_LGA1700; + if (CONFIG(SOC_INTEL_SKYLAKE_SP)) + return PROCESSOR_UPGRADE_SOCKET_LGA3647_1; + if (CONFIG(SOC_INTEL_COOPERLAKE_SP)) + return PROCESSOR_UPGRADE_SOCKET_LGA4189; return PROCESSOR_UPGRADE_UNKNOWN; }