summaryrefslogtreecommitdiff
path: root/src/soc/amd/common/block/cpu/noncar
diff options
context:
space:
mode:
authorFred Reitberger <reitbergerfred@gmail.com>2022-06-23 11:25:16 -0400
committerFelix Held <felix-coreboot@felixheld.de>2022-06-24 16:28:01 +0000
commitffd75c29365f1493dc0ef9abdd797653dfb56be6 (patch)
tree29418f264477d1565fbf8ff18b6ff8d131005cf6 /src/soc/amd/common/block/cpu/noncar
parente910fba5aa0ee51bbecd5965cca85dea98920977 (diff)
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 <reitbergerfred@gmail.com> Change-Id: I617ce3e23f4b28a197034756d285339595d3b53b Reviewed-on: https://review.coreboot.org/c/coreboot/+/65364 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/common/block/cpu/noncar')
-rw-r--r--src/soc/amd/common/block/cpu/noncar/cpu.c6
1 files changed, 6 insertions, 0 deletions
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 <cpu/cpu.h>
#include <cpu/x86/msr.h>
#include <cpu/amd/msr.h>
+#include <smbios.h>
#include <soc/iomap.h>
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)