Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3190490imu; Fri, 23 Nov 2018 23:43:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/V3Ayzd6Ok2CLc7HOlhe2r9BgYuNo3bvLJ1vSZLE/Pp5ECG2/ZVHt3i3A4YrBThQsECjl26 X-Received: by 2002:a17:902:28e9:: with SMTP id f96mr19039771plb.169.1543045406771; Fri, 23 Nov 2018 23:43:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543045406; cv=none; d=google.com; s=arc-20160816; b=juZ4WGYmP6oPQ9P7KNyCM5X/CDDj3c2+1NBeR3tus7QrLX84m16pN6ATG6gDVEBAzo lN0B9LWRdtk8EAygP4hKxSoQi096s2d6rJG5GtkGg7I39mOVOG98xU6+wUJUN1v095wG rYXk5d/ETAGvjLMpIYd0h0fKW8vYhmg9r2MAIk28M+HbMghMIPHUu+B3i2dJz1UpGhKt 2meY28+wgQO1B+ZRTNktKMhCMc/Qg8UJ0fzEQHsV2qTHN0sU5SYW2mfLeC3BhhjUuZgk HORHe8Vs0r8py4WuxuqWNKuFK+xx2ROLkhgVXak3mWfuVHxV8R0GrNRqftTxdEJxsHua hUZg== 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=xq5aYVJtMqNct7jBVrzlWdEY+uk/2wWVg03kk+cqcKw=; b=g40Qw7YzbrV9cPs+tp1JFT2AoYjXgiW83Lkh+P9JrHo6bQhBY9YN6tNd/8FNB4Fr86 NrTJrfFOzmANqOPGAt+p3lYRkEalju8aBg0cqc0WrwuinL6ivIbaS/82Q1UlN3wOYl0X 32B/xc1O9rScrs7qTBM0wBrmOxIpjp73bEV2aGG3CXxRjYkHaxN1vODn6/e7UD1YC3aT IvZAm9yPgmvUzweog3rQPQXBQgF3QjXQnz1KwPKty8awgsoqXrLRK2OPl1yb5NxF4032 6Mr28pyisrnR+ekcAebevxWWKf9nDqtWDDVmgfgxFOjvA96PX4Ylm+V8qqZIFweoRj6V HC9w== 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 z22si23617467pfd.197.2018.11.23.23.43.12; Fri, 23 Nov 2018 23:43: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 S2407692AbeKWIcL (ORCPT + 99 others); Fri, 23 Nov 2018 03:32:11 -0500 Received: from terminus.zytor.com ([198.137.202.136]:49015 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731179AbeKWIcL (ORCPT ); Fri, 23 Nov 2018 03:32:11 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id wAMLnvYE3947717 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 22 Nov 2018 13:49:57 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id wAMLnvc13947713; Thu, 22 Nov 2018 13:49:57 -0800 Date: Thu, 22 Nov 2018 13:49:57 -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: pbonzini@redhat.com, jroedel@suse.de, Babu.Moger@amd.com, gregkh@linuxfoundation.org, jannh@google.com, qianyue.zj@alibaba-inc.com, puwen@hygon.cn, jpoimboe@redhat.com, Thomas.Lendacky@amd.com, linux-doc@vger.kernel.org, pombredanne@nexb.com, mingo@kernel.org, hpa@zytor.com, tony.luck@intel.com, luto@kernel.org, davem@davemloft.net, sherry.hurwitz@amd.com, peterz@infradead.org, xiaochen.shen@intel.com, dima@arista.com, chang.seok.bae@intel.com, fenghua.yu@intel.com, linux-kernel@vger.kernel.org, suravee.suthikulpanit@amd.com, reinette.chatre@intel.com, mchehab+samsung@kernel.org, rafael@kernel.org, tglx@linutronix.de, akpm@linux-foundation.org, kstewart@linuxfoundation.org, babu.moger@amd.com, rian@alum.mit.edu, dwmw2@infradead.org, corbet@lwn.net, brijesh.singh@amd.com, bp@suse.de, arnd@arndb.de, vkuznets@redhat.com, mingo@redhat.com, kirill.shutemov@linux.intel.com Reply-To: Babu.Moger@amd.com, jroedel@suse.de, pbonzini@redhat.com, jpoimboe@redhat.com, puwen@hygon.cn, qianyue.zj@alibaba-inc.com, gregkh@linuxfoundation.org, jannh@google.com, pombredanne@nexb.com, Thomas.Lendacky@amd.com, linux-doc@vger.kernel.org, luto@kernel.org, sherry.hurwitz@amd.com, davem@davemloft.net, peterz@infradead.org, tony.luck@intel.com, mingo@kernel.org, hpa@zytor.com, suravee.suthikulpanit@amd.com, reinette.chatre@intel.com, linux-kernel@vger.kernel.org, dima@arista.com, chang.seok.bae@intel.com, fenghua.yu@intel.com, xiaochen.shen@intel.com, akpm@linux-foundation.org, tglx@linutronix.de, rafael@kernel.org, mchehab+samsung@kernel.org, arnd@arndb.de, bp@suse.de, corbet@lwn.net, brijesh.singh@amd.com, dwmw2@infradead.org, rian@alum.mit.edu, babu.moger@amd.com, kstewart@linuxfoundation.org, kirill.shutemov@linux.intel.com, mingo@redhat.com, vkuznets@redhat.com In-Reply-To: <20181121202811.4492-9-babu.moger@amd.com> References: <20181121202811.4492-9-babu.moger@amd.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/cache] x86/resctrl: Rename the config option INTEL_RDT to RESCTRL Git-Commit-ID: 6fe07ce35e8ad870ba1cf82e0481e0fc0f526eff 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: 6fe07ce35e8ad870ba1cf82e0481e0fc0f526eff Gitweb: https://git.kernel.org/tip/6fe07ce35e8ad870ba1cf82e0481e0fc0f526eff Author: Babu Moger AuthorDate: Wed, 21 Nov 2018 20:28:39 +0000 Committer: Borislav Petkov CommitDate: Thu, 22 Nov 2018 20:16:19 +0100 x86/resctrl: Rename the config option INTEL_RDT to RESCTRL The resource control feature is supported by both Intel and AMD. So, rename CONFIG_INTEL_RDT to the vendor-neutral CONFIG_RESCTRL. Now CONFIG_RESCTRL will be used for both Intel and AMD to enable Resource Control support. Update the texts in config and condition accordingly. [ bp: Simplify Kconfig text. ] 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-9-babu.moger@amd.com --- arch/x86/Kconfig | 22 +++++++++++++++------- arch/x86/include/asm/resctrl_sched.h | 4 ++-- arch/x86/kernel/cpu/Makefile | 2 +- arch/x86/kernel/cpu/resctrl/Makefile | 4 ++-- include/linux/sched.h | 2 +- 5 files changed, 21 insertions(+), 13 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 9d734f3c8234..2d0577e805d2 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -448,15 +448,23 @@ config RETPOLINE code are eliminated. Since this includes the syscall entry path, it is not entirely pointless. -config INTEL_RDT - bool "Intel Resource Director Technology support" - depends on X86 && CPU_SUP_INTEL +config RESCTRL + bool "Resource Control support" + depends on X86 && (CPU_SUP_INTEL || CPU_SUP_AMD) select KERNFS help - Select to enable resource allocation and monitoring which are - sub-features of Intel Resource Director Technology(RDT). More - information about RDT can be found in the Intel x86 - Architecture Software Developer Manual. + Enable Resource Control support. + + Provide support for the allocation and monitoring of system resources + usage by the CPU. + + Intel calls this Intel Resource Director Technology + (Intel(R) RDT). More information about RDT can be found in the + Intel x86 Architecture Software Developer Manual. + + AMD calls this AMD Platform Quality of Service (AMD QoS). + More information about AMD QoS can be found in the AMD64 Technology + Platform Quality of Service Extensions manual. Say N if unsure. diff --git a/arch/x86/include/asm/resctrl_sched.h b/arch/x86/include/asm/resctrl_sched.h index 6e082697a613..54990fe2a3ae 100644 --- a/arch/x86/include/asm/resctrl_sched.h +++ b/arch/x86/include/asm/resctrl_sched.h @@ -2,7 +2,7 @@ #ifndef _ASM_X86_RESCTRL_SCHED_H #define _ASM_X86_RESCTRL_SCHED_H -#ifdef CONFIG_INTEL_RDT +#ifdef CONFIG_RESCTRL #include #include @@ -88,6 +88,6 @@ static inline void resctrl_sched_in(void) static inline void resctrl_sched_in(void) {} -#endif /* CONFIG_INTEL_RDT */ +#endif /* CONFIG_RESCTRL */ #endif /* _ASM_X86_RESCTRL_SCHED_H */ diff --git a/arch/x86/kernel/cpu/Makefile b/arch/x86/kernel/cpu/Makefile index 8501d16dd642..dc4acaa1549d 100644 --- a/arch/x86/kernel/cpu/Makefile +++ b/arch/x86/kernel/cpu/Makefile @@ -39,7 +39,7 @@ obj-$(CONFIG_CPU_SUP_UMC_32) += umc.o obj-$(CONFIG_X86_MCE) += mcheck/ obj-$(CONFIG_MTRR) += mtrr/ obj-$(CONFIG_MICROCODE) += microcode/ -obj-$(CONFIG_INTEL_RDT) += resctrl/ +obj-$(CONFIG_RESCTRL) += 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 index fa3cb91d7849..6895049ceef7 100644 --- a/arch/x86/kernel/cpu/resctrl/Makefile +++ b/arch/x86/kernel/cpu/resctrl/Makefile @@ -1,4 +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 +obj-$(CONFIG_RESCTRL) += core.o rdtgroup.o monitor.o +obj-$(CONFIG_RESCTRL) += ctrlmondata.o pseudo_lock.o CFLAGS_pseudo_lock.o = -I$(src) diff --git a/include/linux/sched.h b/include/linux/sched.h index a51c13c2b1a0..7952dfba2c76 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -993,7 +993,7 @@ struct task_struct { /* cg_list protected by css_set_lock and tsk->alloc_lock: */ struct list_head cg_list; #endif -#ifdef CONFIG_INTEL_RDT +#ifdef CONFIG_RESCTRL u32 closid; u32 rmid; #endif