CVS commit: [netbsd-10] src/usr.sbin/cpuctl/arch
Module Name:src Committed By: martin Date: Sat Jul 29 10:07:59 UTC 2023 Modified Files: src/usr.sbin/cpuctl/arch [netbsd-10]: i386.c Log Message: Pull up the following revisions, via patch, requested by msaitoh in ticket #251: usr.sbin/cpuctl/arch/i386.c 1.137-1.139 - CPU model 0x5a is not Atom E3500 but Atom Z3500. - Add Alder Lake-N. To generate a diff of this commit: cvs rdiff -u -r1.133.2.2 -r1.133.2.3 src/usr.sbin/cpuctl/arch/i386.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.sbin/cpuctl/arch/i386.c diff -u src/usr.sbin/cpuctl/arch/i386.c:1.133.2.2 src/usr.sbin/cpuctl/arch/i386.c:1.133.2.3 --- src/usr.sbin/cpuctl/arch/i386.c:1.133.2.2 Wed Jun 21 19:02:18 2023 +++ src/usr.sbin/cpuctl/arch/i386.c Sat Jul 29 10:07:59 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: i386.c,v 1.133.2.2 2023/06/21 19:02:18 martin Exp $ */ +/* $NetBSD: i386.c,v 1.133.2.3 2023/07/29 10:07:59 martin Exp $ */ /*- * Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc. @@ -57,7 +57,7 @@ #include #ifndef lint -__RCSID("$NetBSD: i386.c,v 1.133.2.2 2023/06/21 19:02:18 martin Exp $"); +__RCSID("$NetBSD: i386.c,v 1.133.2.3 2023/07/29 10:07:59 martin Exp $"); #endif /* not lint */ #include @@ -335,7 +335,7 @@ const struct cpu_cpuid_nameclass i386_cp [0x55] = "Xeon Scalable (Skylake, Cascade Lake, Copper Lake)", [0x56] = "Xeon D-1500 (Broadwell)", [0x57] = "Xeon Phi [357]200 (Knights Landing)", -[0x5a] = "Atom E3500", +[0x5a] = "Atom Z3500", [0x5c] = "Atom (Goldmont)", [0x5d] = "Atom X3-C3000 (Silvermont)", [0x5e] = "6th gen Core, Xeon E3-1[25]00 v5 (Skylake)", @@ -361,8 +361,9 @@ const struct cpu_cpuid_nameclass i386_cp [0xa6] = "10th gen Core (Comet Lake)", [0xa7] = "11th gen Core (Rocket Lake)", [0xa8] = "11th gen Core (Rocket Lake)", -[0xba] = "13th gen Core (Raptor Lake)", [0xb7] = "13th gen Core (Raptor Lake)", +[0xba] = "13th gen Core (Raptor Lake)", +[0xbe] = "Core i3-N3xx N[12]xx Nxx Atom x7xxxE (Alder Lake-N)", [0xbf] = "13th gen Core (Raptor Lake)", }, "Pentium Pro, II or III", /* Default */
CVS commit: [netbsd-10] src/usr.sbin/cpuctl/arch
Module Name:src Committed By: martin Date: Sat Jul 29 10:07:59 UTC 2023 Modified Files: src/usr.sbin/cpuctl/arch [netbsd-10]: i386.c Log Message: Pull up the following revisions, via patch, requested by msaitoh in ticket #251: usr.sbin/cpuctl/arch/i386.c 1.137-1.139 - CPU model 0x5a is not Atom E3500 but Atom Z3500. - Add Alder Lake-N. To generate a diff of this commit: cvs rdiff -u -r1.133.2.2 -r1.133.2.3 src/usr.sbin/cpuctl/arch/i386.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-10] src/usr.sbin/cpuctl/arch
Module Name:src Committed By: martin Date: Mon Jan 23 12:54:14 UTC 2023 Modified Files: src/usr.sbin/cpuctl/arch [netbsd-10]: i386.c Log Message: Pull up following revision(s) (requested by msaitoh in ticket #57): usr.sbin/cpuctl/arch/i386.c: revision 1.134 usr.sbin/cpuctl/arch/i386.c: revision 1.135 Print cpuid 7 sub-leaf 1 %ebx, %edx and sub-leaf 2 %edx. Add Raptor Lake and Sapphire Rapids. To generate a diff of this commit: cvs rdiff -u -r1.133 -r1.133.2.1 src/usr.sbin/cpuctl/arch/i386.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-10] src/usr.sbin/cpuctl/arch
Module Name:src Committed By: martin Date: Mon Jan 23 12:54:14 UTC 2023 Modified Files: src/usr.sbin/cpuctl/arch [netbsd-10]: i386.c Log Message: Pull up following revision(s) (requested by msaitoh in ticket #57): usr.sbin/cpuctl/arch/i386.c: revision 1.134 usr.sbin/cpuctl/arch/i386.c: revision 1.135 Print cpuid 7 sub-leaf 1 %ebx, %edx and sub-leaf 2 %edx. Add Raptor Lake and Sapphire Rapids. To generate a diff of this commit: cvs rdiff -u -r1.133 -r1.133.2.1 src/usr.sbin/cpuctl/arch/i386.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.sbin/cpuctl/arch/i386.c diff -u src/usr.sbin/cpuctl/arch/i386.c:1.133 src/usr.sbin/cpuctl/arch/i386.c:1.133.2.1 --- src/usr.sbin/cpuctl/arch/i386.c:1.133 Thu Nov 17 15:21:31 2022 +++ src/usr.sbin/cpuctl/arch/i386.c Mon Jan 23 12:54:14 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: i386.c,v 1.133 2022/11/17 15:21:31 msaitoh Exp $ */ +/* $NetBSD: i386.c,v 1.133.2.1 2023/01/23 12:54:14 martin Exp $ */ /*- * Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc. @@ -57,7 +57,7 @@ #include #ifndef lint -__RCSID("$NetBSD: i386.c,v 1.133 2022/11/17 15:21:31 msaitoh Exp $"); +__RCSID("$NetBSD: i386.c,v 1.133.2.1 2023/01/23 12:54:14 martin Exp $"); #endif /* not lint */ #include @@ -351,7 +351,7 @@ const struct cpu_cpuid_nameclass i386_cp [0x8c] = "11th gen Core (Tiger Lake)", [0x8d] = "11th gen Core (Tiger Lake)", [0x8e] = "7th or 8th gen Core (Kaby Lake, Coffee Lake) or Xeon E (Coffee Lake)", -[0x8f] = "future Xeon (Sapphire Rapids)", +[0x8f] = "4th gen Xeon Scalable (Sapphire Rapids)", [0x96] = "Atom x6000E (Elkhart Lake)", [0x97] = "12th gen Core (Alder Lake)", [0x9a] = "12th gen Core (Alder Lake)", @@ -361,7 +361,9 @@ const struct cpu_cpuid_nameclass i386_cp [0xa6] = "10th gen Core (Comet Lake)", [0xa7] = "11th gen Core (Rocket Lake)", [0xa8] = "11th gen Core (Rocket Lake)", -[0xbf] = "12th gen Core (Alder Lake)", +[0xba] = "13th gen Core (Raptor Lake)", +[0xb7] = "13th gen Core (Raptor Lake)", +[0xbf] = "13th gen Core (Raptor Lake)", }, "Pentium Pro, II or III", /* Default */ NULL, @@ -2210,13 +2212,25 @@ identifycpu(int fd, const char *cpuname) if ((ci->ci_max_cpuid >= 7) && ((cpu_vendor == CPUVENDOR_INTEL) || (cpu_vendor == CPUVENDOR_AMD))) { + unsigned int maxsubleaf; + x86_cpuid(7, descs); + maxsubleaf = descs[0]; aprint_verbose("%s: SEF highest subleaf %08x\n", - cpuname, descs[0]); - if (descs[0] >= 1) { + cpuname, maxsubleaf); + if (maxsubleaf >= 1) { x86_cpuid2(7, 1, descs); print_bits(cpuname, "SEF-subleaf1-eax", CPUID_SEF1_FLAGS_A, descs[0]); + print_bits(cpuname, "SEF-subleaf1-ebx", + CPUID_SEF1_FLAGS_B, descs[1]); + print_bits(cpuname, "SEF-subleaf1-edx", + CPUID_SEF1_FLAGS_D, descs[3]); + } + if (maxsubleaf >= 2) { + x86_cpuid2(7, 2, descs); + print_bits(cpuname, "SEF-subleaf2-edx", + CPUID_SEF2_FLAGS_D, descs[3]); } }