From patchwork Wed Sep 18 21:58:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Besar Wicaksono X-Patchwork-Id: 13807232 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 CDBF1CDD55C for ; Wed, 18 Sep 2024 22:02:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Ng+uljFMhiGVWsZsaFsSzr10iI6+EPhC4xcLIRcvj70=; b=1Lj5G0luctI96+DbnPt+cMdGqB e/yHlkZF/ftfl9RnEc4GV+qfAsUGcaAbooYyN2ncDtuAbHGdZskZR53OQKROOD0qeWhD82OmNrrFA 77+e9z0J2jRoCdHPN/VjKsPfjyWQ6XS4O8MuRaVvF0YLYZwMuvIP7DHENM7We9gcnzyHdWHlGQlqW rIQt7ZLgzdk+CYK5wEg6VPo/3+Ril6HzbcGQMkPyDoLTo2EHUU64gsGdEc5B3HA/Alj8huXkFkgpw tdngYxo+Y/E/lWFHfJ0d3ChiILtdatGbPw+lFirfmGuq/jDkJwox/px3dlA/KeMfbso+v+WLgx/Zt EX446DUw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sr2kX-000000093qu-2VwW; Wed, 18 Sep 2024 22:02:13 +0000 Received: from mail-dm6nam04on20616.outbound.protection.outlook.com ([2a01:111:f403:2409::616] helo=NAM04-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sr2ic-000000093WO-3l51 for linux-arm-kernel@lists.infradead.org; Wed, 18 Sep 2024 22:00:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tFn1JRl6b/xsMGQWXL4hr5K1OX7HjEuxspPp0ibaSpvE5fjhAkYPkUMT2dixl57OugQ8oc7vOBLMXoldg2gM+TnagO+k0Wc7QmoO5cEbdQ5hXbv8yWzmpA9JUXAa8kwv/g21a3L1Y7BmB2U0pUhM0OAtTu1W/r/zgh6kbY/fwUT5O3xMbMm4dzoOH1yA5AtBwc9SPOGWSoQZljiTKAmKZAJvTC4UdTQK0QyyeVQ7PiLz1rbPA9Hk2WwrN40agUh7fkeWG/1L2PJuWGO+6sHn7T17t7kHTgn+eIgHx3QMrsDGFcY1GQ/9CH72la+bM0wBIz8+iG2TsQteTOyjFy1JLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Ng+uljFMhiGVWsZsaFsSzr10iI6+EPhC4xcLIRcvj70=; b=D+jbACz9FNLBgArrxTKHJXLVxFKzsu5VpxJUZ0zScslh5R1zRfNMNucdCeRAID6edPalycq3Bsrgr+OBr3c1LgJYcdea99twZOx45UQRnIufOp6Wt2UFJzEsfl1kC7uq+Vglm8YrkR+9HGQsiScxY96V59hk1NCRa2Yu7ipdCV9q6VN76f0vNG5OALBqao5S35vHcBG9kjtMf8kfEo1wA/6W84eFAb5Vd5Mi0ebDn59/tn1beVt1GxGIDsVxStXVq53dfQjaLONFI6FU//gD9ZZZgoJrMECUlj7qadX1KKqcY2lGys6jKez/Ojg7LuYubRSREV6sI1bNaOh9G/BlYQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) smtp.rcpttodomain=arm.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ng+uljFMhiGVWsZsaFsSzr10iI6+EPhC4xcLIRcvj70=; b=RhvfAZjD29SrB35U1gdN+aFT//0S1zUENAet05G/OrVWxeBauXuZ2Vsb9MeKgQrtifhIQocIMgLwcb/lHAIoHwnk/+E9fQUj7dmYx+cimvtVG0CuLLw8g7zGRayv+MOVwbqJqjlThfEKRubjYckVGfxvhf55ZHJKF1ClsPnnQzgnSQwk0EBrbgAH//mNQ6Yy4v3GYXuteS0jcuLpKfUccnMC7BU6ZC8Dwc+sNM/8eO3tKbwceo1FoenXV63Fc4KacsfTo/R+z4AVtBMLeTlDNaiwPJm+wLSaMhMVapU1hMz8sKbbVzwrFYziw5Tc+ZrFsU/ym4nZ4LbxEA1fFlpdrQ== Received: from BN1PR10CA0009.namprd10.prod.outlook.com (2603:10b6:408:e0::14) by CY8PR12MB7491.namprd12.prod.outlook.com (2603:10b6:930:92::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.26; Wed, 18 Sep 2024 22:00:06 +0000 Received: from BN2PEPF000044A2.namprd02.prod.outlook.com (2603:10b6:408:e0:cafe::8) by BN1PR10CA0009.outlook.office365.com (2603:10b6:408:e0::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.25 via Frontend Transport; Wed, 18 Sep 2024 22:00:06 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by BN2PEPF000044A2.mail.protection.outlook.com (10.167.243.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Wed, 18 Sep 2024 22:00:06 +0000 Received: from drhqmail202.nvidia.com (10.126.190.181) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 18 Sep 2024 14:59:54 -0700 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail202.nvidia.com (10.126.190.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 18 Sep 2024 14:59:54 -0700 Received: from build-bwicaksono-20240327T112120892.internal (10.127.8.12) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Wed, 18 Sep 2024 14:59:54 -0700 From: Besar Wicaksono To: , , , , CC: , , , , , , , , "Besar Wicaksono" Subject: [PATCH 1/3] perf: arm_cspmu: nvidia: remove unsupported SCF events Date: Wed, 18 Sep 2024 21:58:44 +0000 Message-ID: <20240918215846.1424282-2-bwicaksono@nvidia.com> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20240918215846.1424282-1-bwicaksono@nvidia.com> References: <20240918215846.1424282-1-bwicaksono@nvidia.com> MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN2PEPF000044A2:EE_|CY8PR12MB7491:EE_ X-MS-Office365-Filtering-Correlation-Id: 2b24cc76-4e7d-4b35-a1be-08dcd82d4178 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: 9D4y8FoQMzU1zcDWJxFm513J5e4P2txySD9R6QFSCoHi9G1XFS+g49tKgLBd/IJ0gqS/TMMcWVx6bx4fpSuRg+6CDapmmSVpKqug6vXfX2PGdv/TovcXciHNVguVhq7ZbBu/3g5EA4hAqAvrs0m6P+IMJCTeqcxSM3zWrGw3E6oqWxEJWYgujAVXLJ3LK+m9rIdlQtXlRGGavaR5Jq1f6G508rowwxq9OCBI7UP1CrjlO7WWVFI17lYjrzFNLbyhMBEMpJx2nKG9cUGt8S82ia7h6F5l+LxWzy5Wl361ueR63ta90D4Km7zBWDuepA8SrBz+QblqRa5EhI/VVH07VHrhredtfHm+2mp4PSVBJWrP3SbHEEABaJ9xvuoZHtTx8zdOpoDSinOqwppSxmYiNcDV4LruXgW+I9dbCvyzESlKRktiWo0EPnQMNf5lUiFehVYPAJzChnCMWV2qCMCV0BXHn6IXoyjLPMYuxtfsUNENftJ9G91ihUrWaOw7wiWAgQCTIqGfJ6CqJ4fgb5k4g8gQHETo+KUF9lgjS8IoE89KCjiGpNCr3g4r1QTAFSmHd5vjcnOMkExfWxXHgcPcuCL9CdJYDRK7GDfL5ryQ7L11xGwIk+8KjQrZdvKQoRGIUogDGH/tqNCB+2wdutlbGjxfmZkvFyCMdnmrR+yN09dlaedAD0x99r2hNM4ZpOy2QnmMRvH3NEHRESrd+el1uyrRHI6OHXrq0B36LfuctF8EgqQmTo59w73X+q+zHjBRMtJJ/BVbcJaLvhPCZLDbLicPRVfWm2UEhEdNxxwPBZtdbgMmpLZUXdZ5PNIg1rshW0pHwELHjT2BTodobvXFWVFZ7oqRrDVmWqvRN2ylTpZ9HWtuwFOQCBi2fk6XM5WKtcPwWSdiS9QMV9YDKrLjeNGC8+P3lBC0/lBFqagcqhREGqcgZITGafIQXCxRJnzkBf88VHF3u+mBgdqMTHQr6U3vNC7ncYgePC1Ey+JdDqkUei1PXM7aFwUHtl2uenrEX93yauJfzyETewgmenVtOEFR7E/I4VfN2jFHgvgU0KAbTd/TLUWjgltwwLzX7MPcUDpyxFTDi+M4xoUe60HkwJyXY1f4Jgkdb25kdjGmUmLska/YD+UOINGL9mOv5UCyMhhzCWI/1tCaA+K3ET8V8wou6G7gpDAsHLGNgBmjgVWEhp0co6Tc/fUExF7ijMq51uxvPX1zwia0/XBXh0ci0SVvi7MhJ182Y7Q1g7VfJ/2mtwZ2w4cyBK4m1SmS0lPImD3B8H5gvu8RIxjTv8lmasqIV+ADwicaRg33ha5ODroNaLXO8mwOicgFYOSz4Ho+RCxtxk5G91RdpgWlKLe59fExBFvZvp6RBtlFXWiIxT3QN3cyNFGbLiSOy8aWCkWB X-Forefront-Antispam-Report: CIP:216.228.118.232;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge1.nvidia.com;CAT:NONE;SFS:(13230040)(376014)(1800799024)(36860700013)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Sep 2024 22:00:06.1445 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2b24cc76-4e7d-4b35-a1be-08dcd82d4178 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.232];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN2PEPF000044A2.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7491 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240918_150014_967390_8D8E749F X-CRM114-Status: UNSURE ( 7.59 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Remove unsupported events under SCF PMU. Signed-off-by: Besar Wicaksono --- drivers/perf/arm_cspmu/nvidia_cspmu.c | 64 --------------------------- 1 file changed, 64 deletions(-) diff --git a/drivers/perf/arm_cspmu/nvidia_cspmu.c b/drivers/perf/arm_cspmu/nvidia_cspmu.c index d0ef611240aa..ea2d44adfa7c 100644 --- a/drivers/perf/arm_cspmu/nvidia_cspmu.c +++ b/drivers/perf/arm_cspmu/nvidia_cspmu.c @@ -54,65 +54,24 @@ static struct attribute *scf_pmu_event_attrs[] = { ARM_CSPMU_EVENT_ATTR(scf_cache_wb, 0xF3), NV_CSPMU_EVENT_ATTR_4(socket, rd_data, 0x101), - NV_CSPMU_EVENT_ATTR_4(socket, dl_rsp, 0x105), NV_CSPMU_EVENT_ATTR_4(socket, wb_data, 0x109), - NV_CSPMU_EVENT_ATTR_4(socket, ev_rsp, 0x10d), - NV_CSPMU_EVENT_ATTR_4(socket, prb_data, 0x111), NV_CSPMU_EVENT_ATTR_4(socket, rd_outstanding, 0x115), - NV_CSPMU_EVENT_ATTR_4(socket, dl_outstanding, 0x119), - NV_CSPMU_EVENT_ATTR_4(socket, wb_outstanding, 0x11d), - NV_CSPMU_EVENT_ATTR_4(socket, wr_outstanding, 0x121), - NV_CSPMU_EVENT_ATTR_4(socket, ev_outstanding, 0x125), - NV_CSPMU_EVENT_ATTR_4(socket, prb_outstanding, 0x129), NV_CSPMU_EVENT_ATTR_4(socket, rd_access, 0x12d), - NV_CSPMU_EVENT_ATTR_4(socket, dl_access, 0x131), NV_CSPMU_EVENT_ATTR_4(socket, wb_access, 0x135), NV_CSPMU_EVENT_ATTR_4(socket, wr_access, 0x139), - NV_CSPMU_EVENT_ATTR_4(socket, ev_access, 0x13d), - NV_CSPMU_EVENT_ATTR_4(socket, prb_access, 0x141), - - NV_CSPMU_EVENT_ATTR_4(ocu, gmem_rd_data, 0x145), - NV_CSPMU_EVENT_ATTR_4(ocu, gmem_rd_access, 0x149), - NV_CSPMU_EVENT_ATTR_4(ocu, gmem_wb_access, 0x14d), - NV_CSPMU_EVENT_ATTR_4(ocu, gmem_rd_outstanding, 0x151), - NV_CSPMU_EVENT_ATTR_4(ocu, gmem_wr_outstanding, 0x155), - - NV_CSPMU_EVENT_ATTR_4(ocu, rem_rd_data, 0x159), - NV_CSPMU_EVENT_ATTR_4(ocu, rem_rd_access, 0x15d), - NV_CSPMU_EVENT_ATTR_4(ocu, rem_wb_access, 0x161), - NV_CSPMU_EVENT_ATTR_4(ocu, rem_rd_outstanding, 0x165), - NV_CSPMU_EVENT_ATTR_4(ocu, rem_wr_outstanding, 0x169), ARM_CSPMU_EVENT_ATTR(gmem_rd_data, 0x16d), ARM_CSPMU_EVENT_ATTR(gmem_rd_access, 0x16e), ARM_CSPMU_EVENT_ATTR(gmem_rd_outstanding, 0x16f), - ARM_CSPMU_EVENT_ATTR(gmem_dl_rsp, 0x170), - ARM_CSPMU_EVENT_ATTR(gmem_dl_access, 0x171), - ARM_CSPMU_EVENT_ATTR(gmem_dl_outstanding, 0x172), ARM_CSPMU_EVENT_ATTR(gmem_wb_data, 0x173), ARM_CSPMU_EVENT_ATTR(gmem_wb_access, 0x174), - ARM_CSPMU_EVENT_ATTR(gmem_wb_outstanding, 0x175), - ARM_CSPMU_EVENT_ATTR(gmem_ev_rsp, 0x176), - ARM_CSPMU_EVENT_ATTR(gmem_ev_access, 0x177), - ARM_CSPMU_EVENT_ATTR(gmem_ev_outstanding, 0x178), ARM_CSPMU_EVENT_ATTR(gmem_wr_data, 0x179), - ARM_CSPMU_EVENT_ATTR(gmem_wr_outstanding, 0x17a), ARM_CSPMU_EVENT_ATTR(gmem_wr_access, 0x17b), NV_CSPMU_EVENT_ATTR_4(socket, wr_data, 0x17c), - NV_CSPMU_EVENT_ATTR_4(ocu, gmem_wr_data, 0x180), - NV_CSPMU_EVENT_ATTR_4(ocu, gmem_wb_data, 0x184), - NV_CSPMU_EVENT_ATTR_4(ocu, gmem_wr_access, 0x188), - NV_CSPMU_EVENT_ATTR_4(ocu, gmem_wb_outstanding, 0x18c), - - NV_CSPMU_EVENT_ATTR_4(ocu, rem_wr_data, 0x190), - NV_CSPMU_EVENT_ATTR_4(ocu, rem_wb_data, 0x194), - NV_CSPMU_EVENT_ATTR_4(ocu, rem_wr_access, 0x198), - NV_CSPMU_EVENT_ATTR_4(ocu, rem_wb_outstanding, 0x19c), - ARM_CSPMU_EVENT_ATTR(gmem_wr_total_bytes, 0x1a0), ARM_CSPMU_EVENT_ATTR(remote_socket_wr_total_bytes, 0x1a1), ARM_CSPMU_EVENT_ATTR(remote_socket_rd_data, 0x1a2), @@ -122,35 +81,12 @@ static struct attribute *scf_pmu_event_attrs[] = { ARM_CSPMU_EVENT_ATTR(cmem_rd_data, 0x1a5), ARM_CSPMU_EVENT_ATTR(cmem_rd_access, 0x1a6), ARM_CSPMU_EVENT_ATTR(cmem_rd_outstanding, 0x1a7), - ARM_CSPMU_EVENT_ATTR(cmem_dl_rsp, 0x1a8), - ARM_CSPMU_EVENT_ATTR(cmem_dl_access, 0x1a9), - ARM_CSPMU_EVENT_ATTR(cmem_dl_outstanding, 0x1aa), ARM_CSPMU_EVENT_ATTR(cmem_wb_data, 0x1ab), ARM_CSPMU_EVENT_ATTR(cmem_wb_access, 0x1ac), - ARM_CSPMU_EVENT_ATTR(cmem_wb_outstanding, 0x1ad), - ARM_CSPMU_EVENT_ATTR(cmem_ev_rsp, 0x1ae), - ARM_CSPMU_EVENT_ATTR(cmem_ev_access, 0x1af), - ARM_CSPMU_EVENT_ATTR(cmem_ev_outstanding, 0x1b0), ARM_CSPMU_EVENT_ATTR(cmem_wr_data, 0x1b1), - ARM_CSPMU_EVENT_ATTR(cmem_wr_outstanding, 0x1b2), - - NV_CSPMU_EVENT_ATTR_4(ocu, cmem_rd_data, 0x1b3), - NV_CSPMU_EVENT_ATTR_4(ocu, cmem_rd_access, 0x1b7), - NV_CSPMU_EVENT_ATTR_4(ocu, cmem_wb_access, 0x1bb), - NV_CSPMU_EVENT_ATTR_4(ocu, cmem_rd_outstanding, 0x1bf), - NV_CSPMU_EVENT_ATTR_4(ocu, cmem_wr_outstanding, 0x1c3), - - ARM_CSPMU_EVENT_ATTR(ocu_prb_access, 0x1c7), - ARM_CSPMU_EVENT_ATTR(ocu_prb_data, 0x1c8), - ARM_CSPMU_EVENT_ATTR(ocu_prb_outstanding, 0x1c9), ARM_CSPMU_EVENT_ATTR(cmem_wr_access, 0x1ca), - NV_CSPMU_EVENT_ATTR_4(ocu, cmem_wr_access, 0x1cb), - NV_CSPMU_EVENT_ATTR_4(ocu, cmem_wb_data, 0x1cf), - NV_CSPMU_EVENT_ATTR_4(ocu, cmem_wr_data, 0x1d3), - NV_CSPMU_EVENT_ATTR_4(ocu, cmem_wb_outstanding, 0x1d7), - ARM_CSPMU_EVENT_ATTR(cmem_wr_total_bytes, 0x1db), ARM_CSPMU_EVENT_ATTR(cycles, ARM_CSPMU_EVT_CYCLES_DEFAULT),