From 9b2d995bdbef8fd5df5d04ed80f7fb96382e968a Mon Sep 17 00:00:00 2001 From: Jincheng Li Date: Fri, 15 Sep 2023 14:39:29 +0800 Subject: lib/smbios: Create SMBIOS type 4 entry One smbios type 4 should be provided for each CPU instance. Create SMBIOS type 4 entry according to socket number, with a default value of 1. TEST=Boot on intel/archercity CRB No changes in boot log and 'dmidecode' result under centos Change-Id: Ia47fb7c458f9e89ae63ca64c0d6678b55c9d9d37 Signed-off-by: Jincheng Li Reviewed-on: https://review.coreboot.org/c/coreboot/+/83331 Reviewed-by: Lean Sheng Tan Tested-by: build bot (Jenkins) --- src/include/smbios.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include') diff --git a/src/include/smbios.h b/src/include/smbios.h index 8ef37d8c84..b5b9e7a83f 100644 --- a/src/include/smbios.h +++ b/src/include/smbios.h @@ -74,6 +74,8 @@ void smbios_cpu_get_core_counts(u16 *core_count, u16 *thread_count); unsigned int smbios_cpu_get_max_speed_mhz(void); unsigned int smbios_cpu_get_current_speed_mhz(void); unsigned int smbios_cpu_get_voltage(void); +unsigned int smbios_get_max_sockets(void); +unsigned int smbios_soc_get_max_sockets(void); const char *smbios_mainboard_manufacturer(void); const char *smbios_mainboard_product_name(void); -- cgit v1.2.3