diff options
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r-- | arch/x86/include/asm/cpufeature.h | 10 | ||||
-rw-r--r-- | arch/x86/include/asm/processor.h | 3 |
2 files changed, 12 insertions, 1 deletions
diff --git a/arch/x86/include/asm/cpufeature.h b/arch/x86/include/asm/cpufeature.h index 854c04b3c9c2..7ee9b94d9921 100644 --- a/arch/x86/include/asm/cpufeature.h +++ b/arch/x86/include/asm/cpufeature.h | |||
@@ -12,7 +12,7 @@ | |||
12 | #include <asm/disabled-features.h> | 12 | #include <asm/disabled-features.h> |
13 | #endif | 13 | #endif |
14 | 14 | ||
15 | #define NCAPINTS 11 /* N 32-bit words worth of info */ | 15 | #define NCAPINTS 13 /* N 32-bit words worth of info */ |
16 | #define NBUGINTS 1 /* N 32-bit bug flags */ | 16 | #define NBUGINTS 1 /* N 32-bit bug flags */ |
17 | 17 | ||
18 | /* | 18 | /* |
@@ -195,6 +195,7 @@ | |||
195 | #define X86_FEATURE_HWP_ACT_WINDOW ( 7*32+ 12) /* Intel HWP_ACT_WINDOW */ | 195 | #define X86_FEATURE_HWP_ACT_WINDOW ( 7*32+ 12) /* Intel HWP_ACT_WINDOW */ |
196 | #define X86_FEATURE_HWP_EPP ( 7*32+13) /* Intel HWP_EPP */ | 196 | #define X86_FEATURE_HWP_EPP ( 7*32+13) /* Intel HWP_EPP */ |
197 | #define X86_FEATURE_HWP_PKG_REQ ( 7*32+14) /* Intel HWP_PKG_REQ */ | 197 | #define X86_FEATURE_HWP_PKG_REQ ( 7*32+14) /* Intel HWP_PKG_REQ */ |
198 | #define X86_FEATURE_INTEL_PT ( 7*32+15) /* Intel Processor Trace */ | ||
198 | 199 | ||
199 | /* Virtualization flags: Linux defined, word 8 */ | 200 | /* Virtualization flags: Linux defined, word 8 */ |
200 | #define X86_FEATURE_TPR_SHADOW ( 8*32+ 0) /* Intel TPR Shadow */ | 201 | #define X86_FEATURE_TPR_SHADOW ( 8*32+ 0) /* Intel TPR Shadow */ |
@@ -226,6 +227,7 @@ | |||
226 | #define X86_FEATURE_ERMS ( 9*32+ 9) /* Enhanced REP MOVSB/STOSB */ | 227 | #define X86_FEATURE_ERMS ( 9*32+ 9) /* Enhanced REP MOVSB/STOSB */ |
227 | #define X86_FEATURE_INVPCID ( 9*32+10) /* Invalidate Processor Context ID */ | 228 | #define X86_FEATURE_INVPCID ( 9*32+10) /* Invalidate Processor Context ID */ |
228 | #define X86_FEATURE_RTM ( 9*32+11) /* Restricted Transactional Memory */ | 229 | #define X86_FEATURE_RTM ( 9*32+11) /* Restricted Transactional Memory */ |
230 | #define X86_FEATURE_CQM ( 9*32+12) /* Cache QoS Monitoring */ | ||
229 | #define X86_FEATURE_MPX ( 9*32+14) /* Memory Protection Extension */ | 231 | #define X86_FEATURE_MPX ( 9*32+14) /* Memory Protection Extension */ |
230 | #define X86_FEATURE_AVX512F ( 9*32+16) /* AVX-512 Foundation */ | 232 | #define X86_FEATURE_AVX512F ( 9*32+16) /* AVX-512 Foundation */ |
231 | #define X86_FEATURE_RDSEED ( 9*32+18) /* The RDSEED instruction */ | 233 | #define X86_FEATURE_RDSEED ( 9*32+18) /* The RDSEED instruction */ |
@@ -244,6 +246,12 @@ | |||
244 | #define X86_FEATURE_XGETBV1 (10*32+ 2) /* XGETBV with ECX = 1 */ | 246 | #define X86_FEATURE_XGETBV1 (10*32+ 2) /* XGETBV with ECX = 1 */ |
245 | #define X86_FEATURE_XSAVES (10*32+ 3) /* XSAVES/XRSTORS */ | 247 | #define X86_FEATURE_XSAVES (10*32+ 3) /* XSAVES/XRSTORS */ |
246 | 248 | ||
249 | /* Intel-defined CPU QoS Sub-leaf, CPUID level 0x0000000F:0 (edx), word 11 */ | ||
250 | #define X86_FEATURE_CQM_LLC (11*32+ 1) /* LLC QoS if 1 */ | ||
251 | |||
252 | /* Intel-defined CPU QoS Sub-leaf, CPUID level 0x0000000F:1 (edx), word 12 */ | ||
253 | #define X86_FEATURE_CQM_OCCUP_LLC (12*32+ 0) /* LLC occupancy monitoring if 1 */ | ||
254 | |||
247 | /* | 255 | /* |
248 | * BUG word(s) | 256 | * BUG word(s) |
249 | */ | 257 | */ |
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index d2203b5d9538..23ba6765b718 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h | |||
@@ -109,6 +109,9 @@ struct cpuinfo_x86 { | |||
109 | /* in KB - valid for CPUS which support this call: */ | 109 | /* in KB - valid for CPUS which support this call: */ |
110 | int x86_cache_size; | 110 | int x86_cache_size; |
111 | int x86_cache_alignment; /* In bytes */ | 111 | int x86_cache_alignment; /* In bytes */ |
112 | /* Cache QoS architectural values: */ | ||
113 | int x86_cache_max_rmid; /* max index */ | ||
114 | int x86_cache_occ_scale; /* scale to bytes */ | ||
112 | int x86_power; | 115 | int x86_power; |
113 | unsigned long loops_per_jiffy; | 116 | unsigned long loops_per_jiffy; |
114 | /* cpuid returned max cores value: */ | 117 | /* cpuid returned max cores value: */ |