diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-07-08 12:47:14 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-07-08 12:47:14 -0400 |
commit | 686cbe9e5d88ad639bbe26d963e7d5dafa1c1c28 (patch) | |
tree | bb9fe7c29717fad3ff3dac63364b63dd86b740ac | |
parent | e3b22a65348ab54261a98b6bc90ecf8977ff8ebf (diff) |
tools arch x86: Sync asm/cpufeatures.h with the with the kernel
To pick up the changes in:
6dbbf5ec9e1e ("x86/cpufeatures: Enumerate user wait instructions")
b302e4b176d0 ("x86/cpufeatures: Enumerate the new AVX512 BFLOAT16 instructions")
acec0ce081de ("x86/cpufeatures: Combine word 11 and 12 into a new scattered features word")
cbb99c0f5887 ("x86/cpufeatures: Add FDP_EXCPTN_ONLY and ZERO_FCS_FDS")
That don't affect anything in tools/.
This silences this perf build warning:
Warning: Kernel ABI header at 'tools/arch/x86/include/asm/cpufeatures.h' differs from latest version at 'arch/x86/include/asm/cpufeatures.h'
diff -u tools/arch/x86/include/asm/cpufeatures.h arch/x86/include/asm/cpufeatures.h
Cc: Aaron Lewis <aaronlewis@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/n/tip-y60wnyg2fuxi0hx7icruo9po@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/arch/x86/include/asm/cpufeatures.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/tools/arch/x86/include/asm/cpufeatures.h b/tools/arch/x86/include/asm/cpufeatures.h index 75f27ee2c263..998c2cc08363 100644 --- a/tools/arch/x86/include/asm/cpufeatures.h +++ b/tools/arch/x86/include/asm/cpufeatures.h | |||
@@ -239,12 +239,14 @@ | |||
239 | #define X86_FEATURE_BMI1 ( 9*32+ 3) /* 1st group bit manipulation extensions */ | 239 | #define X86_FEATURE_BMI1 ( 9*32+ 3) /* 1st group bit manipulation extensions */ |
240 | #define X86_FEATURE_HLE ( 9*32+ 4) /* Hardware Lock Elision */ | 240 | #define X86_FEATURE_HLE ( 9*32+ 4) /* Hardware Lock Elision */ |
241 | #define X86_FEATURE_AVX2 ( 9*32+ 5) /* AVX2 instructions */ | 241 | #define X86_FEATURE_AVX2 ( 9*32+ 5) /* AVX2 instructions */ |
242 | #define X86_FEATURE_FDP_EXCPTN_ONLY ( 9*32+ 6) /* "" FPU data pointer updated only on x87 exceptions */ | ||
242 | #define X86_FEATURE_SMEP ( 9*32+ 7) /* Supervisor Mode Execution Protection */ | 243 | #define X86_FEATURE_SMEP ( 9*32+ 7) /* Supervisor Mode Execution Protection */ |
243 | #define X86_FEATURE_BMI2 ( 9*32+ 8) /* 2nd group bit manipulation extensions */ | 244 | #define X86_FEATURE_BMI2 ( 9*32+ 8) /* 2nd group bit manipulation extensions */ |
244 | #define X86_FEATURE_ERMS ( 9*32+ 9) /* Enhanced REP MOVSB/STOSB instructions */ | 245 | #define X86_FEATURE_ERMS ( 9*32+ 9) /* Enhanced REP MOVSB/STOSB instructions */ |
245 | #define X86_FEATURE_INVPCID ( 9*32+10) /* Invalidate Processor Context ID */ | 246 | #define X86_FEATURE_INVPCID ( 9*32+10) /* Invalidate Processor Context ID */ |
246 | #define X86_FEATURE_RTM ( 9*32+11) /* Restricted Transactional Memory */ | 247 | #define X86_FEATURE_RTM ( 9*32+11) /* Restricted Transactional Memory */ |
247 | #define X86_FEATURE_CQM ( 9*32+12) /* Cache QoS Monitoring */ | 248 | #define X86_FEATURE_CQM ( 9*32+12) /* Cache QoS Monitoring */ |
249 | #define X86_FEATURE_ZERO_FCS_FDS ( 9*32+13) /* "" Zero out FPU CS and FPU DS */ | ||
248 | #define X86_FEATURE_MPX ( 9*32+14) /* Memory Protection Extension */ | 250 | #define X86_FEATURE_MPX ( 9*32+14) /* Memory Protection Extension */ |
249 | #define X86_FEATURE_RDT_A ( 9*32+15) /* Resource Director Technology Allocation */ | 251 | #define X86_FEATURE_RDT_A ( 9*32+15) /* Resource Director Technology Allocation */ |
250 | #define X86_FEATURE_AVX512F ( 9*32+16) /* AVX-512 Foundation */ | 252 | #define X86_FEATURE_AVX512F ( 9*32+16) /* AVX-512 Foundation */ |
@@ -269,13 +271,19 @@ | |||
269 | #define X86_FEATURE_XGETBV1 (10*32+ 2) /* XGETBV with ECX = 1 instruction */ | 271 | #define X86_FEATURE_XGETBV1 (10*32+ 2) /* XGETBV with ECX = 1 instruction */ |
270 | #define X86_FEATURE_XSAVES (10*32+ 3) /* XSAVES/XRSTORS instructions */ | 272 | #define X86_FEATURE_XSAVES (10*32+ 3) /* XSAVES/XRSTORS instructions */ |
271 | 273 | ||
272 | /* Intel-defined CPU QoS Sub-leaf, CPUID level 0x0000000F:0 (EDX), word 11 */ | 274 | /* |
273 | #define X86_FEATURE_CQM_LLC (11*32+ 1) /* LLC QoS if 1 */ | 275 | * Extended auxiliary flags: Linux defined - for features scattered in various |
276 | * CPUID levels like 0xf, etc. | ||
277 | * | ||
278 | * Reuse free bits when adding new feature flags! | ||
279 | */ | ||
280 | #define X86_FEATURE_CQM_LLC (11*32+ 0) /* LLC QoS if 1 */ | ||
281 | #define X86_FEATURE_CQM_OCCUP_LLC (11*32+ 1) /* LLC occupancy monitoring */ | ||
282 | #define X86_FEATURE_CQM_MBM_TOTAL (11*32+ 2) /* LLC Total MBM monitoring */ | ||
283 | #define X86_FEATURE_CQM_MBM_LOCAL (11*32+ 3) /* LLC Local MBM monitoring */ | ||
274 | 284 | ||
275 | /* Intel-defined CPU QoS Sub-leaf, CPUID level 0x0000000F:1 (EDX), word 12 */ | 285 | /* Intel-defined CPU features, CPUID level 0x00000007:1 (EAX), word 12 */ |
276 | #define X86_FEATURE_CQM_OCCUP_LLC (12*32+ 0) /* LLC occupancy monitoring */ | 286 | #define X86_FEATURE_AVX512_BF16 (12*32+ 5) /* AVX512 BFLOAT16 instructions */ |
277 | #define X86_FEATURE_CQM_MBM_TOTAL (12*32+ 1) /* LLC Total MBM monitoring */ | ||
278 | #define X86_FEATURE_CQM_MBM_LOCAL (12*32+ 2) /* LLC Local MBM monitoring */ | ||
279 | 287 | ||
280 | /* AMD-defined CPU features, CPUID level 0x80000008 (EBX), word 13 */ | 288 | /* AMD-defined CPU features, CPUID level 0x80000008 (EBX), word 13 */ |
281 | #define X86_FEATURE_CLZERO (13*32+ 0) /* CLZERO instruction */ | 289 | #define X86_FEATURE_CLZERO (13*32+ 0) /* CLZERO instruction */ |
@@ -322,6 +330,7 @@ | |||
322 | #define X86_FEATURE_UMIP (16*32+ 2) /* User Mode Instruction Protection */ | 330 | #define X86_FEATURE_UMIP (16*32+ 2) /* User Mode Instruction Protection */ |
323 | #define X86_FEATURE_PKU (16*32+ 3) /* Protection Keys for Userspace */ | 331 | #define X86_FEATURE_PKU (16*32+ 3) /* Protection Keys for Userspace */ |
324 | #define X86_FEATURE_OSPKE (16*32+ 4) /* OS Protection Keys Enable */ | 332 | #define X86_FEATURE_OSPKE (16*32+ 4) /* OS Protection Keys Enable */ |
333 | #define X86_FEATURE_WAITPKG (16*32+ 5) /* UMONITOR/UMWAIT/TPAUSE Instructions */ | ||
325 | #define X86_FEATURE_AVX512_VBMI2 (16*32+ 6) /* Additional AVX512 Vector Bit Manipulation Instructions */ | 334 | #define X86_FEATURE_AVX512_VBMI2 (16*32+ 6) /* Additional AVX512 Vector Bit Manipulation Instructions */ |
326 | #define X86_FEATURE_GFNI (16*32+ 8) /* Galois Field New Instructions */ | 335 | #define X86_FEATURE_GFNI (16*32+ 8) /* Galois Field New Instructions */ |
327 | #define X86_FEATURE_VAES (16*32+ 9) /* Vector AES */ | 336 | #define X86_FEATURE_VAES (16*32+ 9) /* Vector AES */ |