Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D8DA5C636D4 for ; Sun, 12 Feb 2023 11:58:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229599AbjBLL6n (ORCPT ); Sun, 12 Feb 2023 06:58:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjBLL6m (ORCPT ); Sun, 12 Feb 2023 06:58:42 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5AA611EA9; Sun, 12 Feb 2023 03:58:40 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3FD8260C8A; Sun, 12 Feb 2023 11:58:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 541EAC433D2; Sun, 12 Feb 2023 11:58:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676203119; bh=llt2LXtBDHWGs6tAIpzLRReXdbfmGgNRRE07NC9gqXA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=n3a5gGWJi6G/K2nI4VBG91ivR9DBQvxbmws4wuJDtEt43LMTXUAMeHjOuzbm5wfhv 2bj5IIqSH/3VsBAc4jMMG5Hx2fY3Da3RPSSu2FA23ykNm51f2q3s/R0JrrIKI5ckpn V4+zj+caHaM7SeThczYY2B1Y8dg34Z0u/82n8TNMNX3munfrgqxuj7qBIYxWGc9cM0 R7skLegroNvBI3WXIOnzAVNtuGAB+mljFRAl1bR5/t9Wj65BZXWxGZg9XR7Mg2J38Z r1fTsdULPsgwfGxvKo0fN2T3H4C+Bv++vbT7AwMHEG8Kd6PQCIpvC7qmUAJGn4+xMv 9gQiDZafN96QA== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pRB08-009ij5-Tv; Sun, 12 Feb 2023 11:58:37 +0000 Date: Sun, 12 Feb 2023 11:58:36 +0000 Message-ID: <865yc7yu1f.wl-maz@kernel.org> From: Marc Zyngier To: Zaid Al-Bassam Cc: Jesus Sanchez-Palencia , Russell King , Catalin Marinas , Will Deacon , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , James Morse , Suzuki K Poulose , Oliver Upton , Zenghui Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, kvmarm@lists.linux.dev, kvmarm@lists.cs.columbia.edu, Marc Zyngier Subject: Re: [PATCH v2 2/8] arm64: perf: Abstract system register accesses away In-Reply-To: <20230210165500.2292608-3-zalbassam@google.com> References: <20230210165500.2292608-1-zalbassam@google.com> <20230210165500.2292608-3-zalbassam@google.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: zalbassam@google.com, jesussanp@google.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, namhyung@kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, oliver.upton@linux.dev, yuzenghui@huawei.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, kvmarm@lists.linux.dev, kvmarm@lists.cs.columbia.edu, marc.zyngier@arm.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 10 Feb 2023 16:54:54 +0000, Zaid Al-Bassam wrote: > > From: Marc Zyngier > > As we want to enable 32bit support, we need to distanciate the > PMUv3 driver from the AArch64 system register names. > > This patch moves all system register accesses to an architecture > specific include file, allowing the 32bit counterpart to be > slotted in at a later time. > > Signed-off-by: Marc Zyngier > Co-developed-by: Zaid Al-Bassam > Signed-off-by: Zaid Al-Bassam > Signed-off-by: Marc Zyngier > Link: https://lore.kernel.org/r/20230126204444.2204061-3-zalbassam@google.com You can drop these links. They were inserted when I picked your series from the list, but they don't mean much at this stage. > --- > arch/arm64/include/asm/arm_pmuv3.h | 149 +++++++++++++++++++++++++++++ > drivers/perf/arm_pmuv3.c | 115 +++++----------------- > include/linux/perf/arm_pmuv3.h | 45 +++++++++ > 3 files changed, 217 insertions(+), 92 deletions(-) > create mode 100644 arch/arm64/include/asm/arm_pmuv3.h > > diff --git a/arch/arm64/include/asm/arm_pmuv3.h b/arch/arm64/include/asm/arm_pmuv3.h > new file mode 100644 > index 0000000000000..eb204adb8dee2 > --- /dev/null > +++ b/arch/arm64/include/asm/arm_pmuv3.h > @@ -0,0 +1,149 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * Copyright (C) 2012 ARM Ltd. > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License version 2 as > + * published by the Free Software Foundation. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with this program. If not, see . > + */ Please drop the license text, as we don't use this boilerplate anymore (the SPDX tag is enough). Just keep: /* * Copyright (C) 2012 ARM Ltd. */ Thanks, M. -- Without deviation from the norm, progress is not possible.