Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3189837imu; Fri, 23 Nov 2018 23:42:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/XulYANt/avEwoYcimwDVAeEJhP9EYifPfrNCHUZa+rUL8ICW2y3XPYPMjESrH1nclzRyiL X-Received: by 2002:a63:a41:: with SMTP id z1mr17017572pgk.117.1543045346071; Fri, 23 Nov 2018 23:42:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543045346; cv=none; d=google.com; s=arc-20160816; b=dkyAdWNVq3soR5wI0a97KM7Ex9Qs74t1rXPb4ztIzDi8fn6F+13WoUCm/vjVFEgZ4B QlwMWhXjMu2aM8y2Qr3b8g28VDJwHXa8yb5Cw0laK/Yy+Jq7n7f0cNGm3xhOOd1bxRGU H1tFa8inzPGLbHn8kwdwzvG/49FGere+zxaAUsOWtoguOLNbK1u1ArjbBO2C/C1rK8a7 6rs17YRThgAX7QaCziXl+mrtA+Q/H21HQLyvsHxwvz+bHCEYNEaUIILIqjEYIgtOhruH irmDASQ0eyET+YpJVffxZ3pT+3TciAYLkR+21u6PoNDFk2erB5UQ+5t9AEJPUUmNFudP Iztg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=nVtXqaTioCAy4Nf9uwfL5EMY7q/+gJ0dUNWVHuHi6Us=; b=ujr5ks10a5epRJ1uSTQbskG8nNxSiqByRI6bCxlYzEbI+eQDH24I58faZO1FSsQZL0 YrH9GR2FahLTpWV6LAwB6WbC7Ge0txt4+neJ+AXW5C9VUYxvCL/484Ltwzjj1PosxLNM 89qMn2ZeILzU2m9ICPQ7UMjKlbk9n0SWgsNJOqxnDht3P+uqsxcp3468CrlMXFn0/X7T agMz4OzXEEvAFn1B0x1e3Snq4Km1bDttsw5nepH1R4vB/s9mxhq/xWixmNwid1TosZx5 FjkqrtIP3aPiry0OOx51pXbJSLrLak6iQgribYC7jvY9nEJLDeMw+5WQhCvtIBEc8U6S 3Jpg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c7si40306616plz.118.2018.11.23.23.42.11; Fri, 23 Nov 2018 23:42:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407614AbeKWI3H (ORCPT + 99 others); Fri, 23 Nov 2018 03:29:07 -0500 Received: from terminus.zytor.com ([198.137.202.136]:56705 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404865AbeKWI3H (ORCPT ); Fri, 23 Nov 2018 03:29:07 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id wAMLjxjJ3947060 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 22 Nov 2018 13:45:59 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id wAMLjrAh3947055; Thu, 22 Nov 2018 13:45:53 -0800 Date: Thu, 22 Nov 2018 13:45:53 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Babu Moger Message-ID: Cc: jroedel@suse.de, dwmw2@infradead.org, kirill.shutemov@linux.intel.com, arnd@arndb.de, pbonzini@redhat.com, gregkh@linuxfoundation.org, luto@kernel.org, xiaochen.shen@intel.com, puwen@hygon.cn, jpoimboe@redhat.com, peterz@infradead.org, mchehab+samsung@kernel.org, fenghua.yu@intel.com, qianyue.zj@alibaba-inc.com, davem@davemloft.net, chang.seok.bae@intel.com, rafael@kernel.org, vkuznets@redhat.com, suravee.suthikulpanit@amd.com, Babu.Moger@amd.com, rian@alum.mit.edu, sherry.hurwitz@amd.com, linux-doc@vger.kernel.org, bp@suse.de, reinette.chatre@intel.com, jannh@google.com, babu.moger@amd.com, hpa@zytor.com, dima@arista.com, tglx@linutronix.de, tony.luck@intel.com, Thomas.Lendacky@amd.com, pombredanne@nexb.com, corbet@lwn.net, linux-kernel@vger.kernel.org, mingo@kernel.org, mingo@redhat.com, kstewart@linuxfoundation.org, akpm@linux-foundation.org, brijesh.singh@amd.com Reply-To: davem@davemloft.net, qianyue.zj@alibaba-inc.com, suravee.suthikulpanit@amd.com, vkuznets@redhat.com, chang.seok.bae@intel.com, rafael@kernel.org, puwen@hygon.cn, mchehab+samsung@kernel.org, peterz@infradead.org, jpoimboe@redhat.com, fenghua.yu@intel.com, xiaochen.shen@intel.com, luto@kernel.org, jroedel@suse.de, dwmw2@infradead.org, arnd@arndb.de, kirill.shutemov@linux.intel.com, pbonzini@redhat.com, gregkh@linuxfoundation.org, pombredanne@nexb.com, mingo@redhat.com, mingo@kernel.org, linux-kernel@vger.kernel.org, corbet@lwn.net, akpm@linux-foundation.org, kstewart@linuxfoundation.org, brijesh.singh@amd.com, dima@arista.com, tglx@linutronix.de, tony.luck@intel.com, Thomas.Lendacky@amd.com, reinette.chatre@intel.com, bp@suse.de, jannh@google.com, hpa@zytor.com, babu.moger@amd.com, rian@alum.mit.edu, Babu.Moger@amd.com, sherry.hurwitz@amd.com, linux-doc@vger.kernel.org In-Reply-To: <20181121202811.4492-2-babu.moger@amd.com> References: <20181121202811.4492-2-babu.moger@amd.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/cache] x86/resctrl: Rename and move rdt files to a separate directory Git-Commit-ID: fa7d949337ccad32c76740c88e0e0351c349053b 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 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: fa7d949337ccad32c76740c88e0e0351c349053b Gitweb: https://git.kernel.org/tip/fa7d949337ccad32c76740c88e0e0351c349053b Author: Babu Moger AuthorDate: Wed, 21 Nov 2018 20:28:25 +0000 Committer: Borislav Petkov CommitDate: Thu, 22 Nov 2018 20:16:18 +0100 x86/resctrl: Rename and move rdt files to a separate directory New generation of AMD processors add support for RDT (or QOS) features. Together, these features will be called RESCTRL. With more than one vendors supporting these features, it seems more appropriate to rename these files. Create a new directory with the name 'resctrl' and move all the intel_rdt files to the new directory. This way all the resctrl related code resides inside one directory. [ bp: Add SPDX identifier to the Makefile ] Suggested-by: Borislav Petkov Signed-off-by: Babu Moger Signed-off-by: Borislav Petkov Cc: Andrew Morton Cc: Andy Lutomirski Cc: Arnd Bergmann Cc: Brijesh Singh Cc: "Chang S. Bae" Cc: David Miller Cc: David Woodhouse Cc: Dmitry Safonov Cc: Fenghua Yu Cc: Greg Kroah-Hartman Cc: "H. Peter Anvin" Cc: Ingo Molnar Cc: Jann Horn Cc: Joerg Roedel Cc: Jonathan Corbet Cc: Josh Poimboeuf Cc: Kate Stewart Cc: "Kirill A. Shutemov" Cc: Cc: Mauro Carvalho Chehab Cc: Paolo Bonzini Cc: Peter Zijlstra Cc: Philippe Ombredanne Cc: Pu Wen Cc: Cc: "Rafael J. Wysocki" Cc: Reinette Chatre Cc: Rian Hunter Cc: Sherry Hurwitz Cc: Suravee Suthikulpanit Cc: Thomas Gleixner Cc: Thomas Lendacky Cc: Tony Luck Cc: Vitaly Kuznetsov Cc: Link: https://lkml.kernel.org/r/20181121202811.4492-2-babu.moger@amd.com --- arch/x86/include/asm/{intel_rdt_sched.h => resctrl_sched.h} | 0 arch/x86/kernel/cpu/Makefile | 5 +---- arch/x86/kernel/cpu/resctrl/Makefile | 4 ++++ arch/x86/kernel/cpu/{intel_rdt.c => resctrl/core.c} | 4 ++-- .../kernel/cpu/{intel_rdt_ctrlmondata.c => resctrl/ctrlmondata.c} | 2 +- arch/x86/kernel/cpu/{intel_rdt.h => resctrl/internal.h} | 6 +++--- arch/x86/kernel/cpu/{intel_rdt_monitor.c => resctrl/monitor.c} | 2 +- .../kernel/cpu/{intel_rdt_pseudo_lock.c => resctrl/pseudo_lock.c} | 6 +++--- .../{intel_rdt_pseudo_lock_event.h => resctrl/pseudo_lock_event.h} | 2 +- arch/x86/kernel/cpu/{intel_rdt_rdtgroup.c => resctrl/rdtgroup.c} | 4 ++-- arch/x86/kernel/process_32.c | 2 +- arch/x86/kernel/process_64.c | 2 +- 12 files changed, 20 insertions(+), 19 deletions(-) diff --git a/arch/x86/include/asm/intel_rdt_sched.h b/arch/x86/include/asm/resctrl_sched.h similarity index 100% rename from arch/x86/include/asm/intel_rdt_sched.h rename to arch/x86/include/asm/resctrl_sched.h diff --git a/arch/x86/kernel/cpu/Makefile b/arch/x86/kernel/cpu/Makefile index 1f5d2291c31e..8501d16dd642 100644 --- a/arch/x86/kernel/cpu/Makefile +++ b/arch/x86/kernel/cpu/Makefile @@ -36,13 +36,10 @@ obj-$(CONFIG_CPU_SUP_CENTAUR) += centaur.o obj-$(CONFIG_CPU_SUP_TRANSMETA_32) += transmeta.o obj-$(CONFIG_CPU_SUP_UMC_32) += umc.o -obj-$(CONFIG_INTEL_RDT) += intel_rdt.o intel_rdt_rdtgroup.o intel_rdt_monitor.o -obj-$(CONFIG_INTEL_RDT) += intel_rdt_ctrlmondata.o intel_rdt_pseudo_lock.o -CFLAGS_intel_rdt_pseudo_lock.o = -I$(src) - obj-$(CONFIG_X86_MCE) += mcheck/ obj-$(CONFIG_MTRR) += mtrr/ obj-$(CONFIG_MICROCODE) += microcode/ +obj-$(CONFIG_INTEL_RDT) += resctrl/ obj-$(CONFIG_X86_LOCAL_APIC) += perfctr-watchdog.o diff --git a/arch/x86/kernel/cpu/resctrl/Makefile b/arch/x86/kernel/cpu/resctrl/Makefile new file mode 100644 index 000000000000..fa3cb91d7849 --- /dev/null +++ b/arch/x86/kernel/cpu/resctrl/Makefile @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 +obj-$(CONFIG_INTEL_RDT) += core.o rdtgroup.o monitor.o +obj-$(CONFIG_INTEL_RDT) += ctrlmondata.o pseudo_lock.o +CFLAGS_pseudo_lock.o = -I$(src) diff --git a/arch/x86/kernel/cpu/intel_rdt.c b/arch/x86/kernel/cpu/resctrl/core.c similarity index 99% rename from arch/x86/kernel/cpu/intel_rdt.c rename to arch/x86/kernel/cpu/resctrl/core.c index 44272b7107ad..27c4316bb691 100644 --- a/arch/x86/kernel/cpu/intel_rdt.c +++ b/arch/x86/kernel/cpu/resctrl/core.c @@ -30,8 +30,8 @@ #include #include -#include -#include "intel_rdt.h" +#include +#include "internal.h" #define MBA_IS_LINEAR 0x4 #define MBA_MAX_MBPS U32_MAX diff --git a/arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c b/arch/x86/kernel/cpu/resctrl/ctrlmondata.c similarity index 99% rename from arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c rename to arch/x86/kernel/cpu/resctrl/ctrlmondata.c index 27937458c231..407d2179bfcb 100644 --- a/arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c +++ b/arch/x86/kernel/cpu/resctrl/ctrlmondata.c @@ -26,7 +26,7 @@ #include #include #include -#include "intel_rdt.h" +#include "internal.h" /* * Check whether MBA bandwidth percentage value is correct. The value is diff --git a/arch/x86/kernel/cpu/intel_rdt.h b/arch/x86/kernel/cpu/resctrl/internal.h similarity index 99% rename from arch/x86/kernel/cpu/intel_rdt.h rename to arch/x86/kernel/cpu/resctrl/internal.h index 3736f6dc9545..1b36709591d8 100644 --- a/arch/x86/kernel/cpu/intel_rdt.h +++ b/arch/x86/kernel/cpu/resctrl/internal.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0 */ -#ifndef _ASM_X86_INTEL_RDT_H -#define _ASM_X86_INTEL_RDT_H +#ifndef _ASM_X86_RESCTRL_INTERNAL_H +#define _ASM_X86_RESCTRL_INTERNAL_H #include #include @@ -568,4 +568,4 @@ void cqm_handle_limbo(struct work_struct *work); bool has_busy_rmid(struct rdt_resource *r, struct rdt_domain *d); void __check_limbo(struct rdt_domain *d, bool force_free); -#endif /* _ASM_X86_INTEL_RDT_H */ +#endif /* _ASM_X86_RESCTRL_INTERNAL_H */ diff --git a/arch/x86/kernel/cpu/intel_rdt_monitor.c b/arch/x86/kernel/cpu/resctrl/monitor.c similarity index 99% rename from arch/x86/kernel/cpu/intel_rdt_monitor.c rename to arch/x86/kernel/cpu/resctrl/monitor.c index b0f3aed76b75..d492d4c0e8cc 100644 --- a/arch/x86/kernel/cpu/intel_rdt_monitor.c +++ b/arch/x86/kernel/cpu/resctrl/monitor.c @@ -26,7 +26,7 @@ #include #include #include -#include "intel_rdt.h" +#include "internal.h" #define MSR_IA32_QM_CTR 0x0c8e #define MSR_IA32_QM_EVTSEL 0x0c8d diff --git a/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c b/arch/x86/kernel/cpu/resctrl/pseudo_lock.c similarity index 99% rename from arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c rename to arch/x86/kernel/cpu/resctrl/pseudo_lock.c index 815b4e92522c..ffb7ebe69d33 100644 --- a/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c +++ b/arch/x86/kernel/cpu/resctrl/pseudo_lock.c @@ -24,14 +24,14 @@ #include #include -#include +#include #include #include "../../events/perf_event.h" /* For X86_CONFIG() */ -#include "intel_rdt.h" +#include "internal.h" #define CREATE_TRACE_POINTS -#include "intel_rdt_pseudo_lock_event.h" +#include "pseudo_lock_event.h" /* * MSR_MISC_FEATURE_CONTROL register enables the modification of hardware diff --git a/arch/x86/kernel/cpu/intel_rdt_pseudo_lock_event.h b/arch/x86/kernel/cpu/resctrl/pseudo_lock_event.h similarity index 95% rename from arch/x86/kernel/cpu/intel_rdt_pseudo_lock_event.h rename to arch/x86/kernel/cpu/resctrl/pseudo_lock_event.h index 2c041e6d9f05..428ebbd4270b 100644 --- a/arch/x86/kernel/cpu/intel_rdt_pseudo_lock_event.h +++ b/arch/x86/kernel/cpu/resctrl/pseudo_lock_event.h @@ -39,5 +39,5 @@ TRACE_EVENT(pseudo_lock_l3, #undef TRACE_INCLUDE_PATH #define TRACE_INCLUDE_PATH . -#define TRACE_INCLUDE_FILE intel_rdt_pseudo_lock_event +#define TRACE_INCLUDE_FILE pseudo_lock_event #include diff --git a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c b/arch/x86/kernel/cpu/resctrl/rdtgroup.c similarity index 99% rename from arch/x86/kernel/cpu/intel_rdt_rdtgroup.c rename to arch/x86/kernel/cpu/resctrl/rdtgroup.c index f27b8115ffa2..f5a76ca43f0f 100644 --- a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c +++ b/arch/x86/kernel/cpu/resctrl/rdtgroup.c @@ -35,8 +35,8 @@ #include -#include -#include "intel_rdt.h" +#include +#include "internal.h" DEFINE_STATIC_KEY_FALSE(rdt_enable_key); DEFINE_STATIC_KEY_FALSE(rdt_mon_enable_key); diff --git a/arch/x86/kernel/process_32.c b/arch/x86/kernel/process_32.c index 5046a3c9dec2..d16207e7d1e5 100644 --- a/arch/x86/kernel/process_32.c +++ b/arch/x86/kernel/process_32.c @@ -56,7 +56,7 @@ #include #include #include -#include +#include #include void __show_regs(struct pt_regs *regs, enum show_regs_mode mode) diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index 0e0b4288a4b2..8f23562687fb 100644 --- a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c @@ -52,7 +52,7 @@ #include #include #include -#include +#include #include #include #ifdef CONFIG_IA32_EMULATION