From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755047AbeARIjG (ORCPT ); Thu, 18 Jan 2018 03:39:06 -0500 Received: from terminus.zytor.com ([65.50.211.136]:58651 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754876AbeARIjF (ORCPT ); Thu, 18 Jan 2018 03:39:05 -0500 Date: Thu, 18 Jan 2018 00:37:57 -0800 From: tip-bot for Fenghua Yu Message-ID: Cc: vikas.shivappa@intel.com, mingo@kernel.org, tglx@linutronix.de, tony.luck@intel.com, ravi.v.shankar@intel.com, fenghua.yu@intel.com, reinette.chatre@intel.com, linux-kernel@vger.kernel.org, hpa@zytor.com, sai.praneeth.prakhya@intel.com Reply-To: sai.praneeth.prakhya@intel.com, linux-kernel@vger.kernel.org, hpa@zytor.com, reinette.chatre@intel.com, fenghua.yu@intel.com, tglx@linutronix.de, tony.luck@intel.com, ravi.v.shankar@intel.com, vikas.shivappa@intel.com, mingo@kernel.org In-Reply-To: <1513810644-78015-4-git-send-email-fenghua.yu@intel.com> References: <1513810644-78015-4-git-send-email-fenghua.yu@intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/cache] x86/intel_rdt: Enumerate L2 Code and Data Prioritization (CDP) feature Git-Commit-ID: a511e7935378ef1f321456a90beae2a2632d3d83 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: a511e7935378ef1f321456a90beae2a2632d3d83 Gitweb: https://git.kernel.org/tip/a511e7935378ef1f321456a90beae2a2632d3d83 Author: Fenghua Yu AuthorDate: Wed, 20 Dec 2017 14:57:21 -0800 Committer: Thomas Gleixner CommitDate: Thu, 18 Jan 2018 09:33:30 +0100 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 Signed-off-by: Thomas Gleixner Cc: "Ravi V Shankar" Cc: "Tony Luck" Cc: Vikas" Cc: Sai Praneeth" Cc: Reinette" Link: https://lkml.kernel.org/r/1513810644-78015-4-git-send-email-fenghua.yu@intel.com --- arch/x86/include/asm/cpufeatures.h | 1 + arch/x86/kernel/cpu/scattered.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h index 25b9375..67bbfaa 100644 --- a/arch/x86/include/asm/cpufeatures.h +++ b/arch/x86/include/asm/cpufeatures.h @@ -206,6 +206,7 @@ #define X86_FEATURE_RETPOLINE ( 7*32+12) /* Generic Retpoline mitigation for Spectre variant 2 */ #define X86_FEATURE_RETPOLINE_AMD ( 7*32+13) /* AMD Retpoline mitigation for Spectre variant 2 */ #define X86_FEATURE_INTEL_PPIN ( 7*32+14) /* Intel Processor Inventory Number */ +#define X86_FEATURE_CDP_L2 ( 7*32+15) /* Code and Data Prioritization L2 */ #define X86_FEATURE_AVX512_4VNNIW ( 7*32+16) /* AVX-512 Neural Network Instructions */ #define X86_FEATURE_AVX512_4FMAPS ( 7*32+17) /* AVX-512 Multiply Accumulation Single precision */ diff --git a/arch/x86/kernel/cpu/scattered.c b/arch/x86/kernel/cpu/scattered.c index d0e6976..df4d8f7 100644 --- a/arch/x86/kernel/cpu/scattered.c +++ b/arch/x86/kernel/cpu/scattered.c @@ -26,6 +26,7 @@ static const struct cpuid_bit cpuid_bits[] = { { X86_FEATURE_CAT_L3, CPUID_EBX, 1, 0x00000010, 0 }, { X86_FEATURE_CAT_L2, CPUID_EBX, 2, 0x00000010, 0 }, { X86_FEATURE_CDP_L3, CPUID_ECX, 2, 0x00000010, 1 }, + { X86_FEATURE_CDP_L2, CPUID_ECX, 2, 0x00000010, 2 }, { X86_FEATURE_MBA, CPUID_EBX, 3, 0x00000010, 0 }, { X86_FEATURE_HW_PSTATE, CPUID_EDX, 7, 0x80000007, 0 }, { X86_FEATURE_CPB, CPUID_EDX, 9, 0x80000007, 0 },