Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp568282pxb; Thu, 21 Jan 2021 14:11:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzUq9xOIdi611sVcGaRVBTwOP/iE0AKuNFQ6Lf+I9FcTFh/+5R0DUauhDq8gQYci1n/k+mx X-Received: by 2002:aa7:de99:: with SMTP id j25mr975146edv.29.1611267109603; Thu, 21 Jan 2021 14:11:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611267109; cv=none; d=google.com; s=arc-20160816; b=BAJ46AtPpo0wYL7dzCOifsxyn/UaK5v8+O/MpdBjlaeyc0WmO7NumkDNP1piRKD1yL aEfOot5R709GoTwHPmXD/zS2gLMFasbdWC30iBKBtYrhSXNUXke1r+0h/m0jy7Dg7w/H zSTFSC/pwMi1mSjBfdyF2m7WaQF8gmIJIIULM1J7xCiiOZYpBsmFCHNz/55VEASw+Mzv DsKsJEb8TdUpxZ3K/PvvtAluYcndMbmQUFWOpJuYSgZoJWHSKDEWBQFiJ1zT/oV45ReF +gGGr9SU2oioyYiQn3Mi5uwUFr/5JrfRU/9HdQXkA9LgbFKZ2XYL08CSKfzHl2d/KcRQ ntPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=7/hhNavleejKSmTt64PV/hnP/QVVJqHVJl/lX11+bMY=; b=FvjtZl0RDicvu8BEpSVp+DAw+gr2LkyIygvnkVu6NYHH99x2IL62gBHv1RgOLt5vDw 1KqCV0HFP4F12H2iUR11E1GwYk7YMN11xLforWycJXmq8dy0SUoZ2pqSI+but5NZNvOq K3iVx0+5BFoQR0FDgqgEjNz5ii0Nwa2iGg48G5dd1B4MKMx2/1x9/EtYEHhJGxSVjLiA TDrkWiAwV9WkB40x6lqrLV9bVkm3pwFJWtzYBFskChIFPHJptT5Ga0bYNysheE0/thw2 Q5MajYUBYj0Ws/VCYqKoUxRlVsBqRKtwKJbCikQ1BW10SKbsRrEMdDR5OHv7/94OTJGd G7mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=n9tyN7X5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c4si2671810edr.176.2021.01.21.14.11.26; Thu, 21 Jan 2021 14:11:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=n9tyN7X5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731673AbhATUz7 (ORCPT + 99 others); Wed, 20 Jan 2021 15:55:59 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:53860 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388549AbhATUvE (ORCPT ); Wed, 20 Jan 2021 15:51:04 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 10KKo4q6047968; Wed, 20 Jan 2021 14:50:04 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1611175804; bh=7/hhNavleejKSmTt64PV/hnP/QVVJqHVJl/lX11+bMY=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=n9tyN7X5uUFEqANHyM0DlA/JrqvWdEnK3bnAHveaPbtPy/IO/OE22J2Sv32jnlzgl HNhCxRGgJ2O/+lSh8uFziBdo5nJehj2ZEBtaS5SrUZ/fCbNn9oYCUowoqJpJeSO02A VGadrNVdUT77ZfC4WnMlHSTN0moHmc1u1wavLrlc= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 10KKo4J0030938 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 20 Jan 2021 14:50:04 -0600 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 20 Jan 2021 14:50:03 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Wed, 20 Jan 2021 14:50:03 -0600 Received: from [10.250.35.71] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 10KKo3dS089721; Wed, 20 Jan 2021 14:50:03 -0600 Subject: Re: [PATCH] arm64: dts: ti: k3*: Fixup PMU compatibility to be CPU specific To: Nishanth Menon , Sudeep Holla , Dave Gerlach CC: Tero Kristo , Rob Herring , , , References: <20210120195145.32259-1-nm@ti.com> From: Suman Anna Message-ID: Date: Wed, 20 Jan 2021 14:49:58 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210120195145.32259-1-nm@ti.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/20/21 1:51 PM, Nishanth Menon wrote: > We can use CPU specific pmu configuration to expose the appropriate > CPU specific events rather than just the basic generic pmuv3 perf > events. > > Reported-by: Sudeep Holla > Signed-off-by: Nishanth Menon Tested-by: Suman Anna regards Suman > --- > > AM65: https://pastebin.ubuntu.com/p/TF2cCMySkt/ > J721E: https://pastebin.ubuntu.com/p/jgGPNmNgG3/ > J7200: https://pastebin.ubuntu.com/p/Kfc3VHHXNB/ > > Original report: https://lore.kernel.org/linux-arm-kernel/20210119172412.smsjdo2sjzqi5vcn@bogus/ > > I have'nt split this patch up for fixes tag primarily because the > basic functionality works and this is an improvement than a critical > fixup to backport for older kernels. > > arch/arm64/boot/dts/ti/k3-am65.dtsi | 2 +- > arch/arm64/boot/dts/ti/k3-j7200.dtsi | 2 +- > arch/arm64/boot/dts/ti/k3-j721e.dtsi | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/arm64/boot/dts/ti/k3-am65.dtsi b/arch/arm64/boot/dts/ti/k3-am65.dtsi > index d84c0bc05023..a9fc1af03f27 100644 > --- a/arch/arm64/boot/dts/ti/k3-am65.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-am65.dtsi > @@ -56,7 +56,7 @@ a53_timer0: timer-cl0-cpu0 { > }; > > pmu: pmu { > - compatible = "arm,armv8-pmuv3"; > + compatible = "arm,cortex-a53-pmu"; > /* Recommendation from GIC500 TRM Table A.3 */ > interrupts = ; > }; > diff --git a/arch/arm64/boot/dts/ti/k3-j7200.dtsi b/arch/arm64/boot/dts/ti/k3-j7200.dtsi > index 66169bcf7c9a..b7005b803149 100644 > --- a/arch/arm64/boot/dts/ti/k3-j7200.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-j7200.dtsi > @@ -114,7 +114,7 @@ a72_timer0: timer-cl0-cpu0 { > }; > > pmu: pmu { > - compatible = "arm,armv8-pmuv3"; > + compatible = "arm,cortex-a72-pmu"; > interrupts = ; > }; > > diff --git a/arch/arm64/boot/dts/ti/k3-j721e.dtsi b/arch/arm64/boot/dts/ti/k3-j721e.dtsi > index cc483f7344af..f0587fde147e 100644 > --- a/arch/arm64/boot/dts/ti/k3-j721e.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-j721e.dtsi > @@ -115,7 +115,7 @@ a72_timer0: timer-cl0-cpu0 { > }; > > pmu: pmu { > - compatible = "arm,armv8-pmuv3"; > + compatible = "arm,cortex-a72-pmu"; > /* Recommendation from GIC500 TRM Table A.3 */ > interrupts = ; > }; >