Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/57306 )
Change subject: arch/x86: Check unsupported CPU type while writing to SMBIOS table 7 ......................................................................
arch/x86: Check unsupported CPU type while writing to SMBIOS table 7
Don't attempt to fill the SMBIOS table if the CPU doesn't support deterministic cache CPUID.
Change-Id: Id65dc963e235f7080370a32cf69bcc4bee94d28f Signed-off-by: Subrata Banik subrata.banik@intel.com --- M src/arch/x86/smbios.c 1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/06/57306/1
diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c index 0af149e..71b6a22 100644 --- a/src/arch/x86/smbios.c +++ b/src/arch/x86/smbios.c @@ -765,7 +765,8 @@ if (!cpu_have_cpuid()) return len;
- if (cpu_check_deterministic_cache_cpuid_supported() == CPUID_TYPE_INVALID) { + enum cpu_type dcache_cpuid = cpu_check_deterministic_cache_cpuid_supported(); + if (dcache_cpuid == CPUID_TYPE_INVALID || dcache_cpuid == CPUID_COMMAND_UNSUPPORTED) { printk(BIOS_DEBUG, "SMBIOS: Unknown CPU\n"); return len; }