From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755185AbeARIkW (ORCPT ); Thu, 18 Jan 2018 03:40:22 -0500 Received: from terminus.zytor.com ([65.50.211.136]:57551 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754835AbeARIkU (ORCPT ); Thu, 18 Jan 2018 03:40:20 -0500 Date: Thu, 18 Jan 2018 00:39:13 -0800 From: tip-bot for Fenghua Yu Message-ID: Cc: vikas.shivappa@intel.com, sai.praneeth.prakhya@intel.com, reinette.chatre@intel.com, ravi.v.shankar@intel.com, linux-kernel@vger.kernel.org, fenghua.yu@intel.com, tony.luck@intel.com, hpa@zytor.com, mingo@kernel.org, tglx@linutronix.de Reply-To: vikas.shivappa@intel.com, ravi.v.shankar@intel.com, reinette.chatre@intel.com, sai.praneeth.prakhya@intel.com, fenghua.yu@intel.com, linux-kernel@vger.kernel.org, tony.luck@intel.com, hpa@zytor.com, tglx@linutronix.de, mingo@kernel.org In-Reply-To: <1513810644-78015-7-git-send-email-fenghua.yu@intel.com> References: <1513810644-78015-7-git-send-email-fenghua.yu@intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/cache] x86/intel_rdt: Add command line parameter to control L2_CDP Git-Commit-ID: 31516de306c0c9235156cdc7acb976ea21f1f646 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: 31516de306c0c9235156cdc7acb976ea21f1f646 Gitweb: https://git.kernel.org/tip/31516de306c0c9235156cdc7acb976ea21f1f646 Author: Fenghua Yu AuthorDate: Wed, 20 Dec 2017 14:57:24 -0800 Committer: Thomas Gleixner CommitDate: Thu, 18 Jan 2018 09:33:32 +0100 x86/intel_rdt: Add command line parameter to control L2_CDP L2 CDP can be controlled by kernel parameter "rdt=". If "rdt=l2cdp", L2 CDP is turned on. If "rdt=!l2cdp", L2 CDP is turned off. 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-7-git-send-email-fenghua.yu@intel.com --- Documentation/admin-guide/kernel-parameters.txt | 3 ++- arch/x86/kernel/cpu/intel_rdt.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index 46b26bf..fde058c 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -3682,7 +3682,8 @@ rdt= [HW,X86,RDT] Turn on/off individual RDT features. List is: - cmt, mbmtotal, mbmlocal, l3cat, l3cdp, l2cat, mba. + cmt, mbmtotal, mbmlocal, l3cat, l3cdp, l2cat, l2cdp, + mba. E.g. to turn on cmt and turn off mba use: rdt=cmt,!mba diff --git a/arch/x86/kernel/cpu/intel_rdt.c b/arch/x86/kernel/cpu/intel_rdt.c index 5202da0..410629f 100644 --- a/arch/x86/kernel/cpu/intel_rdt.c +++ b/arch/x86/kernel/cpu/intel_rdt.c @@ -691,6 +691,7 @@ enum { RDT_FLAG_L3_CAT, RDT_FLAG_L3_CDP, RDT_FLAG_L2_CAT, + RDT_FLAG_L2_CDP, RDT_FLAG_MBA, }; @@ -713,6 +714,7 @@ static struct rdt_options rdt_options[] __initdata = { RDT_OPT(RDT_FLAG_L3_CAT, "l3cat", X86_FEATURE_CAT_L3), RDT_OPT(RDT_FLAG_L3_CDP, "l3cdp", X86_FEATURE_CDP_L3), RDT_OPT(RDT_FLAG_L2_CAT, "l2cat", X86_FEATURE_CAT_L2), + RDT_OPT(RDT_FLAG_L2_CDP, "l2cdp", X86_FEATURE_CDP_L2), RDT_OPT(RDT_FLAG_MBA, "mba", X86_FEATURE_MBA), }; #define NUM_RDT_OPTIONS ARRAY_SIZE(rdt_options)