From ffd75c29365f1493dc0ef9abdd797653dfb56be6 Mon Sep 17 00:00:00 2001 From: Fred Reitberger Date: Thu, 23 Jun 2022 11:25:16 -0400 Subject: soc/amd/common/block/noncar/cpu: Provide correct smbios processor family Return the correct processor family code for smbios per System Management BIOS (SMBIOS) Reference Specification DSP0134 revision 3.5.0. BUG=b:234409052 TEST=Boot chausie to chromeos and verify "dmidecode -t processor" outputs the correct processor family. Signed-off-by: Fred Reitberger Change-Id: I617ce3e23f4b28a197034756d285339595d3b53b Reviewed-on: https://review.coreboot.org/c/coreboot/+/65364 Reviewed-by: Felix Held Reviewed-by: Raul Rangel Tested-by: build bot (Jenkins) --- src/soc/amd/common/block/cpu/noncar/cpu.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/soc/amd/common/block/cpu/noncar') diff --git a/src/soc/amd/common/block/cpu/noncar/cpu.c b/src/soc/amd/common/block/cpu/noncar/cpu.c index b635cad750..56d4eb0384 100644 --- a/src/soc/amd/common/block/cpu/noncar/cpu.c +++ b/src/soc/amd/common/block/cpu/noncar/cpu.c @@ -5,6 +5,7 @@ #include #include #include +#include #include int get_cpu_count(void) @@ -12,6 +13,11 @@ int get_cpu_count(void) return 1 + (cpuid_ecx(0x80000008) & 0xff); } +unsigned int smbios_processor_family(struct cpuid_result res) +{ + return 0x6b; /* Zen */ +} + unsigned int get_threads_per_core(void) { return 1 + ((cpuid_ebx(CPUID_EBX_CORE_ID) & CPUID_EBX_THREADS_MASK) -- cgit v1.2.3