From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A88B1C433F4 for ; Mon, 24 Sep 2018 19:19:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4D7CA2098A for ; Mon, 24 Sep 2018 19:19:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=amdcloud.onmicrosoft.com header.i=@amdcloud.onmicrosoft.com header.b="tYIwNfAk" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4D7CA2098A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amd.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732409AbeIYBWk (ORCPT ); Mon, 24 Sep 2018 21:22:40 -0400 Received: from mail-eopbgr710076.outbound.protection.outlook.com ([40.107.71.76]:17984 "EHLO NAM05-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730681AbeIYBWj (ORCPT ); Mon, 24 Sep 2018 21:22:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tl+m1FBVv2RBRDecd44HxYnB6VhGnAeiSmit2rhJwPg=; b=tYIwNfAkEEBNc8kxf5RXTmlKTn1PhMbfXQu3+AGoTOK+tkhH5su5cOBmFJcWcfxoQSjjKUUZmRNX0e85icTRrSgsCLR2EZdcEfv+CTC3gj9MWVGxz0LsI17zvRfw+W/frc86x9kxtpsjdH09SgMohegfySKo/N83O5ZYOm3WzgI= Received: from DM5PR12MB2471.namprd12.prod.outlook.com (52.132.141.138) by DM5PR12MB2455.namprd12.prod.outlook.com (52.132.141.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.18; Mon, 24 Sep 2018 19:18:56 +0000 Received: from DM5PR12MB2471.namprd12.prod.outlook.com ([fe80::5c18:7df5:fd4b:9de]) by DM5PR12MB2471.namprd12.prod.outlook.com ([fe80::5c18:7df5:fd4b:9de%5]) with mapi id 15.20.1164.024; Mon, 24 Sep 2018 19:18:56 +0000 From: "Moger, Babu" To: "tglx@linutronix.de" , "mingo@redhat.com" , "hpa@zytor.com" , "fenghua.yu@intel.com" , "reinette.chatre@intel.com" , "vikas.shivappa@linux.intel.com" , "tony.luck@intel.com" CC: "x86@kernel.org" , "peterz@infradead.org" , "Moger, Babu" , "pombredanne@nexb.com" , "gregkh@linuxfoundation.org" , "kstewart@linuxfoundation.org" , "bp@suse.de" , "rafael.j.wysocki@intel.com" , "ak@linux.intel.com" , "kirill.shutemov@linux.intel.com" , "xiaochen.shen@intel.com" , "colin.king@canonical.com" , "Hurwitz, Sherry" , "Lendacky, Thomas" , "pbonzini@redhat.com" , "dwmw@amazon.co.uk" , "luto@kernel.org" , "jroedel@suse.de" , "jannh@google.com" , "dima@arista.com" , "jpoimboe@redhat.com" , "vkuznets@redhat.com" , "linux-kernel@vger.kernel.org" Subject: [RFC PATCH 01/10] arch/x86: Start renaming the rdt files to more generic names Thread-Topic: [RFC PATCH 01/10] arch/x86: Start renaming the rdt files to more generic names Thread-Index: AQHUVDtwzUkGZstfNkqNcba97EriTw== Date: Mon, 24 Sep 2018 19:18:56 +0000 Message-ID: <20180924191841.29111-2-babu.moger@amd.com> References: <20180924191841.29111-1-babu.moger@amd.com> In-Reply-To: <20180924191841.29111-1-babu.moger@amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN6PR15CA0009.namprd15.prod.outlook.com (2603:10b6:805:16::22) To DM5PR12MB2471.namprd12.prod.outlook.com (2603:10b6:4:b5::10) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Babu.Moger@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.78.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR12MB2455;20:UiPGuADjm0yLMcQRlvaarjECde5sG/lQ70FQHdpP0zsCbus0FIP37ZZibVeDAwf2PRi34Vp8+Ru0zrKlUc2PfoIS1PMHIewr9Pzt11sNltO4RgggR1pjeuAeRluEyQzyWGk6x3xoE1ASkS9DhgTYUQBtI8nPdNye1bk9BJMSJGGTux7YZHXAYWeQD49ZYAUpZYCBIIiIpjXuTKURD/hdav01yfDttBcBl0zLkCE9XGqTrHmqzeCrPEFWM8u2w5we x-ms-office365-filtering-correlation-id: e2f696c7-1214-4f8d-41e2-08d62252926f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:DM5PR12MB2455; x-ms-traffictypediagnostic: DM5PR12MB2455: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(767451399110); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3231355)(944501410)(52105095)(3002001)(93006095)(93001095)(6055026)(149066)(150027)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(201708071742011)(7699051);SRVR:DM5PR12MB2455;BCL:0;PCL:0;RULEID:;SRVR:DM5PR12MB2455; x-forefront-prvs: 0805EC9467 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(136003)(346002)(366004)(396003)(376002)(189003)(199004)(97736004)(217873002)(256004)(14444005)(2501003)(5250100002)(316002)(2900100001)(52116002)(7736002)(68736007)(305945005)(5660300001)(1076002)(76176011)(386003)(66066001)(6506007)(478600001)(72206003)(25786009)(7416002)(14454004)(4326008)(6436002)(106356001)(8936002)(8676002)(81156014)(81166006)(6512007)(36756003)(53936002)(26005)(2906002)(3846002)(6116002)(6486002)(575784001)(54906003)(86362001)(110136005)(102836004)(186003)(2201001)(486006)(71200400001)(446003)(476003)(11346002)(99286004)(2616005)(71190400001)(105586002)(41533002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR12MB2455;H:DM5PR12MB2471.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: NKRsPklKNqlGbQc9r+lzYxETUgSe3I7TnPlS7uwOsX7SHCwxGB9PEwdwwNFjwcQeG6Kpe5BFmM96OzREKgBPq7a0GZP0eU5hrvVoZKfMZlNaPd/oc5VdxX5BvJXgB3f9bJFV4rjGMXKjuR+7Ijx+qUt9hVi+cldpgVER9HfpVjEOJIQ4ybZdvA32zPTxWf36vBiooGcMvFDmOfge+gL6k9A0RqyS1/OJkbiEQVKlL9aQrocCU9KDbv/zv7vQCR3MuFP6Eqfhp+KgMUb/m0P6hm7okD7ID4KSTmUnQ8cwuym48XF4ZeK4czNkYxy+8vgMDH0GXergfKkUGSXTI1eyEUxpDBdFMOvrtvBeBGk/Tmw= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: e2f696c7-1214-4f8d-41e2-08d62252926f X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Sep 2018 19:18:56.3634 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB2455 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org New generation of AMD processors start support RDT(or QOS) features. With more than one vendors supporting these features, it seems more appropriate to rename these files. Signed-off-by: Babu Moger --- arch/x86/include/asm/{intel_rdt_sched.h =3D> rdt_sched.h} | 0 arch/x86/kernel/cpu/Makefile | 6 +++--- arch/x86/kernel/cpu/{intel_rdt.c =3D> rdt.c} | 4 ++-- arch/x86/kernel/cpu/{intel_rdt.h =3D> rdt.h} | 0 .../cpu/{intel_rdt_ctrlmondata.c =3D> rdt_ctrlmondata.c} | 2 +- arch/x86/kernel/cpu/{intel_rdt_monitor.c =3D> rdt_monitor.c} | 2 +- .../cpu/{intel_rdt_pseudo_lock.c =3D> rdt_pseudo_lock.c} | 6 +++--- ...ntel_rdt_pseudo_lock_event.h =3D> rdt_pseudo_lock_event.h} | 2 +- .../x86/kernel/cpu/{intel_rdt_rdtgroup.c =3D> rdt_rdtgroup.c} | 4 ++-- arch/x86/kernel/process_32.c | 2 +- arch/x86/kernel/process_64.c | 2 +- 11 files changed, 15 insertions(+), 15 deletions(-) rename arch/x86/include/asm/{intel_rdt_sched.h =3D> rdt_sched.h} (100%) rename arch/x86/kernel/cpu/{intel_rdt.c =3D> rdt.c} (99%) rename arch/x86/kernel/cpu/{intel_rdt.h =3D> rdt.h} (100%) rename arch/x86/kernel/cpu/{intel_rdt_ctrlmondata.c =3D> rdt_ctrlmondata.c= } (99%) rename arch/x86/kernel/cpu/{intel_rdt_monitor.c =3D> rdt_monitor.c} (99%) rename arch/x86/kernel/cpu/{intel_rdt_pseudo_lock.c =3D> rdt_pseudo_lock.c= } (99%) rename arch/x86/kernel/cpu/{intel_rdt_pseudo_lock_event.h =3D> rdt_pseudo_= lock_event.h} (95%) rename arch/x86/kernel/cpu/{intel_rdt_rdtgroup.c =3D> rdt_rdtgroup.c} (99%= ) diff --git a/arch/x86/include/asm/intel_rdt_sched.h b/arch/x86/include/asm/= rdt_sched.h similarity index 100% rename from arch/x86/include/asm/intel_rdt_sched.h rename to arch/x86/include/asm/rdt_sched.h diff --git a/arch/x86/kernel/cpu/Makefile b/arch/x86/kernel/cpu/Makefile index 347137e80bf5..6c35d89f174f 100644 --- a/arch/x86/kernel/cpu/Makefile +++ b/arch/x86/kernel/cpu/Makefile @@ -35,9 +35,9 @@ obj-$(CONFIG_CPU_SUP_CENTAUR) +=3D centaur.o obj-$(CONFIG_CPU_SUP_TRANSMETA_32) +=3D transmeta.o obj-$(CONFIG_CPU_SUP_UMC_32) +=3D umc.o =20 -obj-$(CONFIG_INTEL_RDT) +=3D intel_rdt.o intel_rdt_rdtgroup.o intel_rdt_mo= nitor.o -obj-$(CONFIG_INTEL_RDT) +=3D intel_rdt_ctrlmondata.o intel_rdt_pseudo_lock= .o -CFLAGS_intel_rdt_pseudo_lock.o =3D -I$(src) +obj-$(CONFIG_INTEL_RDT) +=3D rdt.o rdt_rdtgroup.o rdt_monitor.o +obj-$(CONFIG_INTEL_RDT) +=3D rdt_ctrlmondata.o rdt_pseudo_lock.o +CFLAGS_rdt_pseudo_lock.o =3D -I$(src) =20 obj-$(CONFIG_X86_MCE) +=3D mcheck/ obj-$(CONFIG_MTRR) +=3D mtrr/ diff --git a/arch/x86/kernel/cpu/intel_rdt.c b/arch/x86/kernel/cpu/rdt.c similarity index 99% rename from arch/x86/kernel/cpu/intel_rdt.c rename to arch/x86/kernel/cpu/rdt.c index abb71ac70443..28d6cd254ba9 100644 --- a/arch/x86/kernel/cpu/intel_rdt.c +++ b/arch/x86/kernel/cpu/rdt.c @@ -30,8 +30,8 @@ #include =20 #include -#include -#include "intel_rdt.h" +#include +#include "rdt.h" =20 #define MBA_IS_LINEAR 0x4 #define MBA_MAX_MBPS U32_MAX diff --git a/arch/x86/kernel/cpu/intel_rdt.h b/arch/x86/kernel/cpu/rdt.h similarity index 100% rename from arch/x86/kernel/cpu/intel_rdt.h rename to arch/x86/kernel/cpu/rdt.h diff --git a/arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c b/arch/x86/kernel/= cpu/rdt_ctrlmondata.c similarity index 99% rename from arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c rename to arch/x86/kernel/cpu/rdt_ctrlmondata.c index af358ca05160..0565c564b297 100644 --- a/arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c +++ b/arch/x86/kernel/cpu/rdt_ctrlmondata.c @@ -26,7 +26,7 @@ #include #include #include -#include "intel_rdt.h" +#include "rdt.h" =20 /* * Check whether MBA bandwidth percentage value is correct. The value is diff --git a/arch/x86/kernel/cpu/intel_rdt_monitor.c b/arch/x86/kernel/cpu/= rdt_monitor.c similarity index 99% rename from arch/x86/kernel/cpu/intel_rdt_monitor.c rename to arch/x86/kernel/cpu/rdt_monitor.c index b0f3aed76b75..2898a61cbdd9 100644 --- a/arch/x86/kernel/cpu/intel_rdt_monitor.c +++ b/arch/x86/kernel/cpu/rdt_monitor.c @@ -26,7 +26,7 @@ #include #include #include -#include "intel_rdt.h" +#include "rdt.h" =20 #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/rdt_pseudo_lock.c similarity index 99% rename from arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c rename to arch/x86/kernel/cpu/rdt_pseudo_lock.c index 40f3903ae5d9..6105a2af3216 100644 --- a/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c +++ b/arch/x86/kernel/cpu/rdt_pseudo_lock.c @@ -23,13 +23,13 @@ =20 #include #include -#include +#include #include =20 -#include "intel_rdt.h" +#include "rdt.h" =20 #define CREATE_TRACE_POINTS -#include "intel_rdt_pseudo_lock_event.h" +#include "rdt_pseudo_lock_event.h" =20 /* * 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/k= ernel/cpu/rdt_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/rdt_pseudo_lock_event.h index 2c041e6d9f05..5c6eda48bdc1 100644 --- a/arch/x86/kernel/cpu/intel_rdt_pseudo_lock_event.h +++ b/arch/x86/kernel/cpu/rdt_pseudo_lock_event.h @@ -39,5 +39,5 @@ TRACE_EVENT(pseudo_lock_l3, =20 #undef TRACE_INCLUDE_PATH #define TRACE_INCLUDE_PATH . -#define TRACE_INCLUDE_FILE intel_rdt_pseudo_lock_event +#define TRACE_INCLUDE_FILE rdt_pseudo_lock_event #include diff --git a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c b/arch/x86/kernel/cpu= /rdt_rdtgroup.c similarity index 99% rename from arch/x86/kernel/cpu/intel_rdt_rdtgroup.c rename to arch/x86/kernel/cpu/rdt_rdtgroup.c index b799c00bef09..c4a226ebf4e9 100644 --- a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c +++ b/arch/x86/kernel/cpu/rdt_rdtgroup.c @@ -35,8 +35,8 @@ =20 #include =20 -#include -#include "intel_rdt.h" +#include +#include "rdt.h" =20 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..931b2d0cb95e 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 =20 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 ea5ea850348d..c029782a9216 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 #ifdef CONFIG_IA32_EMULATION /* Not included via unistd.h */ --=20 2.17.1