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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F196FC433F5 for ; Tue, 14 Dec 2021 14:30:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=cEzXjPhEOoQwGJYQKTT3sWAfB2ut1M0Cm+29yRyNWFQ=; b=Fh7FIayJYIh8EXocgvYb9x+mXo wcNY1JCJ/ea0WsCG36LHamXtK+LNXdVHAGD1BPbnbZ9l9EiBVvhMBynfnNsF7ZgC2s4svPXWQLlnY HhUmmvtT6gK5JjtEa9CMN0MrY/feF9yGnQAes3BfYHg7X8zLuCGUguZv6QlOEQH8PXrX1xSwBIf+Y DcjXOEsMj+d2P8PbPXADlFzBkF7wqgFejEV8CC7XV4mz78xZVsV3X0khf/MZUyr1uC0GX93E/lTb+ 1xXUp4eTacWj8CzRsudAcLOroCTXzQNUpD1rpRowBxtyCMhR5Fps8hzgRg+0CpzSLw0J9GJ51rhTM gFQdyOYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mx8nR-00EP3w-L1; Tue, 14 Dec 2021 14:28:49 +0000 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mx8nO-00EP32-GZ for linux-arm-kernel@lists.infradead.org; Tue, 14 Dec 2021 14:28:47 +0000 Received: by mail-wr1-x42f.google.com with SMTP id t18so32633515wrg.11 for ; Tue, 14 Dec 2021 06:28:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=awq8J+EnjglYjadw3b6na7GHHK3TExFi3HKDbSvOXwY=; b=TjTc8ZsPlWsUBDzSiiTKTKNlyoYvpfkV6uvyCs19XzqLLePlLaDSv0U5R6HM44P+i1 NPHfUKjP9OTsk+NxjWLHW7cEFG8wIxfJfSDnseJDwdhLKf4Dr03gaProGC/RGFrrjv5M YA9KCff+x5loW0HUka6UF3YshUnPdYWvCT7IUAydC5Zsc27Xco/5IlKDuYSQ7mQw/tWC uz4t1/wIUcPBDRB3iYleWEYR5Ep++5cA03CocL1Wk0l67n2nJnVMaA6/rNBrkRVQ89O9 gDubAvggwFCY/WyFRRVujIyickM4Bsr+seVqpGKoZikkldyU1HP3EubRcB0CtIbUp0J2 Nm4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=awq8J+EnjglYjadw3b6na7GHHK3TExFi3HKDbSvOXwY=; b=UaB9OKIz+WB3KWCMv4Kyz0pLfwtl6FkujJRrVICpZCOFqYNFHrflr+4cfuTJXLIcXg 9iTWTRCyc9/f0roH3iyBYWtQwa9CoRgdNxogplVa7OZgQEJv0ttjSHsqqZv2X2Y+a1q0 FGxqUfspMNI9jL6Ynqs0YNIUNXNhID7MJkDC9x7qaHbozBAyEH2ezcK7YSCq50rxPlVN ywtg6dVpplYITyFklcOIfYhxsKb4lbqC9XHbBcTnCsD+v4PTq55fkmSegJ1BDQcJ6Teq f+lp4OQG5pKHN64CaFSw7n0GT73GmQYC8bwOtmXQ67AHpGB0Di6XgF2As2+xPHyAffqg /9ug== X-Gm-Message-State: AOAM533gHgnHUGnV7W9fRL+2pnSGOfwnCHJspiokkMrwcXv5rmBReGxr 9cGP7yEPJBs+djR8p3pjiRE= X-Google-Smtp-Source: ABdhPJzgRT+eLWDcKHNH+S0nfELZk/MkqDHNrAMDDsqG6kJNHWLe7JNenxdWiX2PqF7sNs1RBWAMmQ== X-Received: by 2002:adf:ef05:: with SMTP id e5mr5916800wro.688.1639492124610; Tue, 14 Dec 2021 06:28:44 -0800 (PST) Received: from orome ([193.209.96.43]) by smtp.gmail.com with ESMTPSA id o12sm30420wrc.85.2021.12.14.06.28.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Dec 2021 06:28:43 -0800 (PST) Date: Tue, 14 Dec 2021 15:28:40 +0100 From: Thierry Reding To: Will Deacon , Mark Rutland Cc: Rob Herring , Jon Hunter , linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 2/3] arm64: perf: Support Denver and Carmel PMUs Message-ID: References: <20211207150746.444478-1-thierry.reding@gmail.com> <20211207150746.444478-2-thierry.reding@gmail.com> <20211214123353.GD14247@willie-the-truck> MIME-Version: 1.0 In-Reply-To: <20211214123353.GD14247@willie-the-truck> User-Agent: Mutt/2.1.3 (987dde4c) (2021-09-10) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211214_062846_585585_E76EB253 X-CRM114-Status: GOOD ( 35.18 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============5972901607989591815==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============5972901607989591815== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ov6tsdrMxCrxuHnJ" Content-Disposition: inline --ov6tsdrMxCrxuHnJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 14, 2021 at 12:33:53PM +0000, Will Deacon wrote: > On Wed, Dec 08, 2021 at 03:36:02PM +0100, Thierry Reding wrote: > > On Tue, Dec 07, 2021 at 04:03:25PM +0000, Mark Rutland wrote: > > > On Tue, Dec 07, 2021 at 04:07:45PM +0100, Thierry Reding wrote: > > > > From: Thierry Reding > > > >=20 > > > > Add support for the NVIDIA Denver and Carmel PMUs using the generic > > > > PMUv3 event map for now. > > > >=20 > > > > Signed-off-by: Thierry Reding > > > > --- > > > > arch/arm64/kernel/perf_event.c | 14 ++++++++++++++ > > > > 1 file changed, 14 insertions(+) > > > >=20 > > > > diff --git a/arch/arm64/kernel/perf_event.c b/arch/arm64/kernel/per= f_event.c > > > > index b4044469527e..8c8cf369c450 100644 > > > > --- a/arch/arm64/kernel/perf_event.c > > > > +++ b/arch/arm64/kernel/perf_event.c > > > > @@ -1247,6 +1247,18 @@ static int armv8_vulcan_pmu_init(struct arm_= pmu *cpu_pmu) > > > > armv8_vulcan_map_event); > > > > } > > > > =20 > > > > +static int armv8_denver_pmu_init(struct arm_pmu *cpu_pmu) > > > > +{ > > > > + return armv8_pmu_init_nogroups(cpu_pmu, "armv8_nvidia_denver", > > > > + armv8_pmuv3_map_event); > > > > +} > > > > + > > > > +static int armv8_carmel_pmu_init(struct arm_pmu *cpu_pmu) > > > > +{ > > > > + return armv8_pmu_init_nogroups(cpu_pmu, "armv8_nvidia_carmel", > > > > + armv8_pmuv3_map_event); > > > > +} > > > > + > > > > static const struct of_device_id armv8_pmu_of_device_ids[] =3D { > > > > {.compatible =3D "arm,armv8-pmuv3", .data =3D armv8_pmuv3_init}, > > > > {.compatible =3D "arm,cortex-a34-pmu", .data =3D armv8_a34_pmu_in= it}, > > > > @@ -1265,6 +1277,8 @@ static const struct of_device_id armv8_pmu_of= _device_ids[] =3D { > > > > {.compatible =3D "arm,neoverse-n1-pmu", .data =3D armv8_n1_pmu_in= it}, > > > > {.compatible =3D "cavium,thunder-pmu", .data =3D armv8_thunder_pm= u_init}, > > > > {.compatible =3D "brcm,vulcan-pmu", .data =3D armv8_vulcan_pmu_in= it}, > > > > + {.compatible =3D "nvidia,denver-pmu", .data =3D armv8_denver_pmu_= init}, > > > > + {.compatible =3D "nvidia,carmel-pmu", .data =3D armv8_carmel_pmu_= init}, > > >=20 > > > Super trivial nit, but could we please organise this alphabetically (= i.e. with carmel first?) > > >=20 > > > With that: > > >=20 > > > Acked-by: Mark Rutland > > >=20 > > > I see now that we messed up the order of "cavium,thunder-pmu" and > > > "brcm,vulcan-pmu", but otherwise this is ordered, and it's be nice to= keep it > > > that way. I can fix the order of those two in a separate patch. > >=20 > > I ordered this chronologically (Denver for Tegra186 and Carmel for > > Tegra194), which seemed a bit more natural, but I can reorder this > > alphabetically if you prefer. > >=20 > > Would Will be the right person to pick this up or should I take it > > through the Tegra tree and then ARM SoC? >=20 > Sorry, I missed this somehow. I've got some perf patches pending already,= so > it would be easiest for me to take this one directly (and then I can apply > Robin's stuff on top). Is that ok? Sure, works for me. Do you still want me to address Mark's comment regarding the sorting order (chronological vs. alphabetical)? It wasn't clear to me if Mark still wanted that after my explanation. Thierry --ov6tsdrMxCrxuHnJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAmG4qhgACgkQ3SOs138+ s6HekA//aX4nw4pMXXeyoIGhZimwjlUIVn9yuha9V2ZZx0kiA+Nueu4/8vAC5cjT m5ezKLlVfxLg1D9zhHhlD5JVGoNwCh4Hdh/mSpU7e6QgulFTmXC/RSLrN6Pm9v16 e4zhuJMyMtNmmhziJIm28iNOvjaMpN60cfFbHgABpjRAiRGJ9fjESsEY1xMiRCsl /A8ZxbbC8mUROUuhrMzOzgWgGZ59Xac7jygZSnM13qjt6rUePQRgECRKfb/k8yMz +xCTMK89dkYjH/RMBjQDt+E6gCbFzkn3hvzDQ23NNjFEU6ZCValCtT7pK0FlAkJb xyssWltZavh13a+N0gD8aPhGUhE+AdlF9KyY7ReIte6f0YTZQExJXfpOb4tKX8hF b76HSxtGKnafg8STX1Il8e0E44ZSg3+kgFK2KuU4CFXuZ7PUKVWk6A3fGn11cqNg jOraD7qHmM7QUKQkEYYYEF3OPR1fyuiaXGNMGV8mUzNCn+oCaXQttKxbEMD7Q8U7 lwMChG1ulRUkEkIx2dZQeQ0k5H6cU60SSXN6suiMTZzDxjjqhDFlwP8tB/G4yZnz 691ePhLAfAGsjiuWiwQlQO1NsbHm8sGLlJyNNRcO7k3QVItz0OiKkBODXWIbLxqr Y1IWEwfpweho4swfjBhuDgo+BUyMNY+7R7qjovBU97PpwUUBU60= =xLMy -----END PGP SIGNATURE----- --ov6tsdrMxCrxuHnJ-- --===============5972901607989591815== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============5972901607989591815==--