Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp488858pxb; Wed, 20 Jan 2021 11:58:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/cLfK4zLpPwbvi6mhp22b3M75qsM60upewIavg18Yy3k7k/ubnRLbbjFoQCyevLnvPxkK X-Received: by 2002:a17:906:aad1:: with SMTP id kt17mr7230568ejb.116.1611172730461; Wed, 20 Jan 2021 11:58:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611172730; cv=none; d=google.com; s=arc-20160816; b=EH2J21YzjoGkCmYoh/O/j+DLFVT5xNX8TnA5d6SDvMq96c780cmEMIYePhtPqkuRw6 t0JvTBPV3CFcNLnFYHlK6PC/IGivqnLTVH7ow3XmuhkBnx+1+RTdmQuSCqQo3EJZzdWX +r/Ip3pLKJ/yQr3yMCW9OOhCJ6ECDk32Q6+Q+Qf1TUSEJT9VEVdOhLi9KJHQEGvRQaix pG+2cFDhV8/Xe6ll+75wz3yHOpC6MxGqgTxxTjKmbTVD7pOtz927mvCUO3CK5pV5oQZr pUzQGAl30pVW/WlVBvN4aH9BhqgXe3nH5p6JRf/VgHyYrWZMyM5HoKN5Ct3ZwrcyQL5S 22kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=zraMxWl53AJvGoFoRAMNuY64tWhjj2qsiF8PytLxV5Q=; b=T7mXjhhhW5qO2vq5xBjSfYQu+JuYU/NLNJt0TVhzHD/yjuAiZTDBknSH9l0txnI/GE BVm3yJQg5aDq0l9bgCFdw7zkGiz7YM7wK3kWWkqwq6MPP2g3IetRigx4ohskZo/miRDK Fm9n1pG39FEpT89OGgYYypekLJ/NrUNIYQ0hCM+21pTbDKeIao2z++2VpFEIcOuSkVse 0ROxCswOB9DMjOW2c22YKC8Hg7Tc8c+zAeCO8i2tXoa1kiJQBiYHt25RgwwXuE8u5QK5 696C6DXUoe+f8aHoZC9zYTlNYyJ6uX8Mk/2RL7VbwA+D0fTKHQZRLRlQebvfNH7If5CU bkHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lcAUF+UQ; 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 mj8si945443ejb.586.2021.01.20.11.58.25; Wed, 20 Jan 2021 11:58:50 -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=lcAUF+UQ; 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 S2392752AbhATTyS (ORCPT + 99 others); Wed, 20 Jan 2021 14:54:18 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:42296 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388145AbhATTxE (ORCPT ); Wed, 20 Jan 2021 14:53:04 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 10KJpmYF027733; Wed, 20 Jan 2021 13:51:48 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1611172309; bh=zraMxWl53AJvGoFoRAMNuY64tWhjj2qsiF8PytLxV5Q=; h=From:To:CC:Subject:Date; b=lcAUF+UQf0Wp0qLHdeMWkxTOOMs5itACevOxf9aPPnLEsjpLavdzR1Ru7PKADy1ax iNqVZ8My9/TD3nxvczTRbQCckJhbHYaDKYBXxXy9oiczZccprAZ8rqRxg+GGR6fGtm luSvuTRNVJS1+QksfnadqD8Z5CJupGymKQ+4oPZU= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 10KJpmws030331 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 20 Jan 2021 13:51:48 -0600 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE105.ent.ti.com (157.170.170.35) 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 13:51:48 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE114.ent.ti.com (157.170.170.25) 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 13:51:48 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 10KJpm3S015445; Wed, 20 Jan 2021 13:51:48 -0600 From: Nishanth Menon To: Sudeep Holla , Suman Anna , Dave Gerlach CC: Tero Kristo , Rob Herring , , , , Nishanth Menon Subject: [PATCH] arm64: dts: ti: k3*: Fixup PMU compatibility to be CPU specific Date: Wed, 20 Jan 2021 13:51:45 -0600 Message-ID: <20210120195145.32259-1-nm@ti.com> X-Mailer: git-send-email 2.25.1.377.g2d2118b814c1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 = ; }; -- 2.25.1.377.g2d2118b814c1