git: 122405c9034b - main - x86: ignore stepping for APL30 errata

From: Corvin Köhne <corvink_at_FreeBSD.org>
Date: Thu, 12 Jan 2023 09:11:21 UTC
The branch main has been updated by corvink:

URL: https://cgit.FreeBSD.org/src/commit/?id=122405c9034b624dd6771d578ef2467aa96cc145

commit 122405c9034b624dd6771d578ef2467aa96cc145
Author:     Corvin Köhne <corvink@FreeBSD.org>
AuthorDate: 2023-01-12 08:59:28 +0000
Commit:     Corvin Köhne <corvink@FreeBSD.org>
CommitDate: 2023-01-12 09:08:17 +0000

    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 7127ca99999e..e2b997016ab1 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