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 C5ED4C636D7 for ; Sun, 12 Feb 2023 11:59:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229614AbjBLL7q (ORCPT ); Sun, 12 Feb 2023 06:59:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjBLL7p (ORCPT ); Sun, 12 Feb 2023 06:59:45 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 509F311E95; Sun, 12 Feb 2023 03:59:44 -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 9E84360BA0; Sun, 12 Feb 2023 11:59:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4221C433D2; Sun, 12 Feb 2023 11:59:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676203182; bh=+RpDH0/cTiKgitsPw9+M0Ym/q48G8wKP3sv+C2fvWEk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Lk2wX2hoC2Np8OnYwCnV/AoRrcqIdj7gNQu92CRvUdUWc80Inu2aFLgjvCPgVZdJS LRONTz/VMHn3wDOxy8EFiGfsxhYX+/CozIg90+6zQqDJUT3JDT1nGUaS1zBhrDvSzc i6jcuXTsyzAiDmbYE2778ipgmsuYxTI6uXNfqVHBlO/TbydqHktE1FQ5++YPsq3QJR sWir/JU/8z71bvmIolWdPJAqFxW8+HEBRiR8kx1L0nUFZrWSjAXgV1b6J1TlWcfzsS rDgUHQdA6uSqRiidwxzb+EL/QFAd9Dqz5J0PCbCZ9RttUV20ojNpOATf4gIM3jeque qVPhEg1k0WGEA== 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 1pRB1A-009ikJ-If; Sun, 12 Feb 2023 11:59:40 +0000 Date: Sun, 12 Feb 2023 11:59:40 +0000 Message-ID: <864jrrytzn.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 7/8] ARM: perf: Allow the use of the PMUv3 driver on 32bit ARM In-Reply-To: <20230210165500.2292608-8-zalbassam@google.com> References: <20230210165500.2292608-1-zalbassam@google.com> <20230210165500.2292608-8-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:59 +0000, Zaid Al-Bassam wrote: > > From: Marc Zyngier > > The only thing stopping the PMUv3 driver from compiling on 32bit > is the lack of defined system registers names and the handful of > required helpers. > > This is easily solved by providing the sysreg accessors and updating > the Kconfig entry. > > 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-8-zalbassam@google.com > --- > arch/arm/include/asm/arm_pmuv3.h | 259 +++++++++++++++++++++++++++++++ > drivers/perf/Kconfig | 5 +- > drivers/perf/arm_pmuv3.c | 5 +- > 3 files changed, 265 insertions(+), 4 deletions(-) > create mode 100644 arch/arm/include/asm/arm_pmuv3.h > > diff --git a/arch/arm/include/asm/arm_pmuv3.h b/arch/arm/include/asm/arm_pmuv3.h > new file mode 100644 > index 0000000000000..b2d9dc9dedbac > --- /dev/null > +++ b/arch/arm/include/asm/arm_pmuv3.h > @@ -0,0 +1,259 @@ > +/* 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 . > + */ Same remark here. M. -- Without deviation from the norm, progress is not possible.