Module Name: src Committed By: msaitoh Date: Wed Apr 27 08:45:22 UTC 2016
Modified Files: src/sys/arch/x86/x86: procfs_machdep.c Log Message: Take some changes from the Linux's latest x86/include/asm/cpufeatures.h. - Add ptsc, avx512dq, avx512bw and avx512vl - Remove some Linux mappings. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/sys/arch/x86/x86/procfs_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/x86/x86/procfs_machdep.c diff -u src/sys/arch/x86/x86/procfs_machdep.c:1.11 src/sys/arch/x86/x86/procfs_machdep.c:1.12 --- src/sys/arch/x86/x86/procfs_machdep.c:1.11 Fri Feb 12 05:32:47 2016 +++ src/sys/arch/x86/x86/procfs_machdep.c Wed Apr 27 08:45:22 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: procfs_machdep.c,v 1.11 2016/02/12 05:32:47 msaitoh Exp $ */ +/* $NetBSD: procfs_machdep.c,v 1.12 2016/04/27 08:45:22 msaitoh Exp $ */ /* * Copyright (c) 2001 Wasabi Systems, Inc. @@ -42,7 +42,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: procfs_machdep.c,v 1.11 2016/02/12 05:32:47 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: procfs_machdep.c,v 1.12 2016/04/27 08:45:22 msaitoh Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -105,12 +105,13 @@ static const char * const x86_features[] "3dnowprefetch", "osvw", "ibs", "xop", "skinit", "wdt", NULL, "lwp", "fma4", "tce", NULL, "nodeid_msr", NULL, "tbm", "topoext", "perfctr_core", - "perfctr_nb", NULL, "bpext", NULL, "perfctr_l2", "mwaitx", NULL, NULL}, + "perfctr_nb", NULL, "bpext", "ptsc", + "perfctr_l2", "mwaitx", NULL, NULL}, { /* (7) Linux mapping */ - "ida", "arat", "cpb", "ebp", NULL, "pln", "pts", "dtherm", - "hw_pstate", "proc_feedback", "hwp", "hwp_notify", "hwp_act_window", - "hwp_epp", "hwp_pkg_req", "intel_pt", + NULL, NULL, "cpb", "ebp", NULL, "pln", "pts", "dtherm", + "hw_pstate", "proc_feedback", NULL, NULL, + NULL, NULL, NULL, "intel_pt", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL}, @@ -125,10 +126,10 @@ static const char * const x86_features[] { /* (9) Intel-defined: 00000007 ebx */ "fsgsbase", "tsc_adjust", NULL, "bmi1", "hle", "avx2", NULL, "smep", "bmi2", "erms", "invpcid", "rtm", "cqm", NULL, "mpx", NULL, - "avx512f", NULL, "rdseed", "adx", + "avx512f", "avx512dq", "rdseed", "adx", "smap", NULL, "pcommit", "clflushopt", "clwb", NULL, "avx512pf", "avx512er", - "avx512cd", "sha_ni", NULL, NULL}, + "avx512cd", "sha_ni", "avx512bw", "avx512vl"}, { /* (10) 0000000d eax */ "xsaveopt", "xsavec", "xgetbv1", "xsaves", NULL, NULL, NULL, NULL,