Skip to content

Commit a511e79

Browse files
Fenghua YuKAGA-KOKO
authored andcommitted
x86/intel_rdt: Enumerate L2 Code and Data Prioritization (CDP) feature
L2 Code and Data Prioritization (CDP) is enumerated in CPUID(EAX=0x10, ECX=0x2):ECX.bit2 Signed-off-by: Fenghua Yu <fenghua.yu@intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: "Ravi V Shankar" <ravi.v.shankar@intel.com> Cc: "Tony Luck" <tony.luck@intel.com> Cc: Vikas" <vikas.shivappa@intel.com> Cc: Sai Praneeth" <sai.praneeth.prakhya@intel.com> Cc: Reinette" <reinette.chatre@intel.com> Link: https://lkml.kernel.org/r/1513810644-78015-4-git-send-email-fenghua.yu@intel.com
1 parent aa55d5a commit a511e79

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎arch/x86/include/asm/cpufeatures.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@
206206
#define X86_FEATURE_RETPOLINE ( 7*32+12) /* Generic Retpoline mitigation for Spectre variant 2 */
207207
#define X86_FEATURE_RETPOLINE_AMD ( 7*32+13) /* AMD Retpoline mitigation for Spectre variant 2 */
208208
#define X86_FEATURE_INTEL_PPIN ( 7*32+14) /* Intel Processor Inventory Number */
209+
#define X86_FEATURE_CDP_L2 ( 7*32+15) /* Code and Data Prioritization L2 */
209210
#define X86_FEATURE_AVX512_4VNNIW ( 7*32+16) /* AVX-512 Neural Network Instructions */
210211
#define X86_FEATURE_AVX512_4FMAPS ( 7*32+17) /* AVX-512 Multiply Accumulation Single precision */
211212

‎arch/x86/kernel/cpu/scattered.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ static const struct cpuid_bit cpuid_bits[] = {
2626
{ X86_FEATURE_CAT_L3, CPUID_EBX, 1, 0x00000010, 0 },
2727
{ X86_FEATURE_CAT_L2, CPUID_EBX, 2, 0x00000010, 0 },
2828
{ X86_FEATURE_CDP_L3, CPUID_ECX, 2, 0x00000010, 1 },
29+
{ X86_FEATURE_CDP_L2, CPUID_ECX, 2, 0x00000010, 2 },
2930
{ X86_FEATURE_MBA, CPUID_EBX, 3, 0x00000010, 0 },
3031
{ X86_FEATURE_HW_PSTATE, CPUID_EDX, 7, 0x80000007, 0 },
3132
{ X86_FEATURE_CPB, CPUID_EDX, 9, 0x80000007, 0 },

0 commit comments

Comments
 (0)