From 122405c9034b624dd6771d578ef2467aa96cc145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corvin=20K=C3=B6hne?= Date: Thu, 12 Jan 2023 09:59:28 +0100 Subject: [PATCH] x86: ignore stepping for APL30 errata The issue is present in all apollolake cpus and it doesn't look like there'll be a fix in the future. See https://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/pentium-celeron-n-series-j-series-datasheet-spec-update.pdf MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D37621 --- sys/x86/x86/cpu_machdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/x86/x86/cpu_machdep.c b/sys/x86/x86/cpu_machdep.c index 7127ca99999..e2b997016ab 100644 --- a/sys/x86/x86/cpu_machdep.c +++ b/sys/x86/x86/cpu_machdep.c @@ -823,7 +823,7 @@ cpu_idle_tun(void *unused __unused) } if (cpu_vendor_id == CPU_VENDOR_INTEL && - (cpu_id == 0x506c9 || cpu_id == 0x506ca)) { + CPUID_TO_FAMILY(cpu_id) == 0x6 && CPUID_TO_MODEL(cpu_id) == 0x5c) { /* * Apollo Lake errata APL31 (public errata APL30). * Stores to the armed address range may not trigger