Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762263AbcLPXOG (ORCPT ); Fri, 16 Dec 2016 18:14:06 -0500 Received: from mga02.intel.com ([134.134.136.20]:22180 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759051AbcLPXNT (ORCPT ); Fri, 16 Dec 2016 18:13:19 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,360,1477983600"; d="scan'208";a="40673329" From: Vikas Shivappa To: vikas.shivappa@intel.com, vikas.shivappa@linux.intel.com Cc: linux-kernel@vger.kernel.org, x86@kernel.org, tglx@linutronix.de, peterz@infradead.org, ravi.v.shankar@intel.com, tony.luck@intel.com, fenghua.yu@intel.com, andi.kleen@intel.com, davidcc@google.com, eranian@google.com, hpa@zytor.com Subject: [PATCH 03/14] x86/rdt: Add rdt common/cqm compile option Date: Fri, 16 Dec 2016 15:12:57 -0800 Message-Id: <1481929988-31569-4-git-send-email-vikas.shivappa@linux.intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1481929988-31569-1-git-send-email-vikas.shivappa@linux.intel.com> References: <1481929988-31569-1-git-send-email-vikas.shivappa@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1950 Lines: 60 Add a compile option INTEL_RDT which enables common code for all RDT(Resource director technology) and a specific INTEL_RDT_M which enables code for RDT monitoring. CQM(cache quality monitoring) and mbm(memory b/w monitoring) are part of Intel RDT monitoring. Signed-off-by: Vikas Shivappa Conflicts: arch/x86/Kconfig --- arch/x86/Kconfig | 17 +++++++++++++++++ arch/x86/events/intel/Makefile | 3 ++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index dcca4ec..67c01cf 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -407,11 +407,28 @@ config GOLDFISH def_bool y depends on X86_GOLDFISH +config INTEL_RDT + bool + +config INTEL_RDT_M + bool "Intel Resource Director Technology Monitoring support" + default n + depends on X86 && CPU_SUP_INTEL + select INTEL_RDT + help + Select to enable resource monitoring which is a sub-feature of + Intel Resource Director Technology(RDT). More information about + RDT can be found in the Intel x86 Architecture Software + Developer Manual. + + Say N if unsure. + config INTEL_RDT_A bool "Intel Resource Director Technology Allocation support" default n depends on X86 && CPU_SUP_INTEL select KERNFS + select INTEL_RDT help Select to enable resource allocation which is a sub-feature of Intel Resource Director Technology(RDT). More information about diff --git a/arch/x86/events/intel/Makefile b/arch/x86/events/intel/Makefile index 06c2baa..2e002a5 100644 --- a/arch/x86/events/intel/Makefile +++ b/arch/x86/events/intel/Makefile @@ -1,4 +1,5 @@ -obj-$(CONFIG_CPU_SUP_INTEL) += core.o bts.o cqm.o +obj-$(CONFIG_CPU_SUP_INTEL) += core.o bts.o +obj-$(CONFIG_INTEL_RDT_M) += cqm.o obj-$(CONFIG_CPU_SUP_INTEL) += ds.o knc.o obj-$(CONFIG_CPU_SUP_INTEL) += lbr.o p4.o p6.o pt.o obj-$(CONFIG_PERF_EVENTS_INTEL_RAPL) += intel-rapl-perf.o -- 1.9.1