From patchwork Fri Dec 1 02:15:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilkka Koskinen X-Patchwork-Id: 13475284 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 9D12BC4167B for ; Fri, 1 Dec 2023 02:16:59 +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-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=cOywA0yCmWJd+vwrRU8KZM5/hb1m/jYKIegwHX8hV5U=; b=p3DPoLaRazeNIB uMnQC3zCg7knHec8nfirjwu9OJmY6yNgTK1ELbdfkwN4wxUHLVSrXkdR5q74JDGaE+phe4uebnHkK o+uuNuzRjaFzxQXQyCuGStSFQZzeiyOW8d1xi6X5ZEwN4Ou0Dw8cLuWj0C8cs4I8Zi/R+j3eWDbMQ tVS0VzMLBunhXTpxdfLdHQe6jv/eI2Udq/UZHLSRZTHPT/qblYndF4rGjZVxPiFiREdoA9jW4o3Hq nqWchip0EJ3/W0bCQciTcjNXcNxMkg5LWazPsSRY0Eqc/ME+tEWzMnrCVEMAHgoNNmUjgUM5w6OVC HLjpnMe7DDlb0UH09WhA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r8t4z-00CPvs-28; Fri, 01 Dec 2023 02:16:33 +0000 Received: from mail-mw2nam10on2070f.outbound.protection.outlook.com ([2a01:111:f400:7e89::70f] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r8t4w-00CPuW-2i for linux-arm-kernel@lists.infradead.org; Fri, 01 Dec 2023 02:16:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l4q8PTko8dlooLZjZb934k4BI6htjGm6fMOPnbQylOv5YV8ceqP/WnbXif29u4GD/tAGe6INdJ8f2MlSTCiRK+MnH2qH3TFhW8fNi0snroO70xuLKnjrONafqcu1cI4D9bqUq8mCIrKyoNlJu/ww10hSB57fFGLhlUqKXnUCEiBRa0V4+aieIUiASBQRzy9Au4aHjmXaZLYFfCrAHLkHJ94U5aAhSZY7Ib+7kTc9LG+QRtohqvPYPoTlBR9LBXUkCuSLBwY0LebSURAjPU3GA49tdssc1IJS22QlhNQT9dN4j/yuSNH4LkTNJ1XZ61mkwWvIRvNNtBLvuUb6J3anTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=zGurZVkYhzSqmOTmu3ByfEKKBypjGyVnMq0JnmaeEWI=; b=hIWMVieFd0eN1+fzToU4fsFHmXnDpJNdB4U8cxAJjF3Vmyzu48JCGYpyYhu3Y6nZb97owLJDfYlLGruNJFoOK5CRE0XzyE1KZ9dwsew5BBnCwkE/Bj9he57mv8oF6bqs54bzGI73YdTj19QmflV8K+jomsCQum263n0JhLjf5fFBz/B061UZ4Ok/etu6lJWPpsBSANBIxOVFThqjIHh5y414hgVbB2lc+V2zvEuyYSSrWspKbS3lcrqRP/bz3iKakcKGqNhHOjAFWl/od3s1kYzBp2+bZ5bghzEQZxfAC4DVQr0ZTjQwp+Cu6qamdr21Q/I9Rez40fG0a0x+KiAljQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zGurZVkYhzSqmOTmu3ByfEKKBypjGyVnMq0JnmaeEWI=; b=GeUlPeBYGEUSEnpZhM/O5okYf6sUj3S6oKDuuQdLMQX39F50JJ1E4WhqC/5gUZwF0gIunutxwSX9nXB78ELFJpAmiQwc9bbig6q0fTvkLcHokG6LGAP+TDmjAT/cy8G/22FXTQqiFKpWQeeocUw/ZA8u13fPuSFn5ecjlsOS0NY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from DM5PR0102MB3590.prod.exchangelabs.com (2603:10b6:4:a4::25) by MW4PR01MB6196.prod.exchangelabs.com (2603:10b6:303:71::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.24; Fri, 1 Dec 2023 02:16:19 +0000 Received: from DM5PR0102MB3590.prod.exchangelabs.com ([fe80::49fa:8dc0:6fd1:72e6]) by DM5PR0102MB3590.prod.exchangelabs.com ([fe80::49fa:8dc0:6fd1:72e6%4]) with mapi id 15.20.7046.024; Fri, 1 Dec 2023 02:16:19 +0000 From: Ilkka Koskinen To: John Garry , Will Deacon , James Clark , Mike Leach , Leo Yan , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Ilkka Koskinen Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org Subject: [PATCH 0/3] perf vendor events arm64: Add AmpereOneX events and metrics and fix AmpereOne bugs Date: Thu, 30 Nov 2023 18:15:47 -0800 Message-ID: <20231201021550.1109196-1-ilkka@os.amperecomputing.com> X-Mailer: git-send-email 2.41.0 X-ClientProxiedBy: CH3P221CA0024.NAMP221.PROD.OUTLOOK.COM (2603:10b6:610:1e7::33) To DM5PR0102MB3590.prod.exchangelabs.com (2603:10b6:4:a4::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR0102MB3590:EE_|MW4PR01MB6196:EE_ X-MS-Office365-Filtering-Correlation-Id: c5c92bb7-88bb-46c6-d902-08dbf2138120 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KYzvshdQnXxjJkvuYWP/jBSzmWQKYYi54K21Lmc43PRtURDtOumZd8PNx01eHAnsmRCIGb6MNC7U0VWRAxkm/RVbtuntT2/QV35DmWojDChPBLxRkDhfwyHr4P+NNlAyZTas4A6As+7/oefkyFCxV2o3EMDZhbrXbGo5Dq0/rDZS0nsTFW6f+0kZNhCptWXsDvb/Q9Ju8BkFaDia6Sd4dppyvqBuCgeip+Ti9z5a0s7XACjdQhPrB/0W/7yWycxIeKfl+VfUC0MyaYT5nP/KqZ2hCK88U6MChzvCArQLX9JxfrYyl9gP17U/PbR0f7POrWuKuWoO6pxFHV5opw2NeMoMXFWgVt2NHXCzKn+jOlJCid85SaZ8OYa0L4gJwZbLtYbfyRFCqFN/VChN0S5wvildblc3yNG6LomOElIQCmnlOcfMt1CVi/rt9g/7iXl/kkUFC0wnYR0ADkE4Ufeh/823bFpiymyxNXRm/MENiv8mGBcPtjLwNhos13bdQLkXlTMNKwRywJnPr7dXL/Gf5B6RLO7blkF/lumN3u/2YIbt0B16ofrLFNMu3B2Dh5KJNo529XpJ0E05xjuGBoqDa6yNAwXlV04SxOu/NNSlTXIBAsd+fI6ojudi8BuLZzAZbxC8FTXMUcSRkZfi7D1BzQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR0102MB3590.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(39850400004)(376002)(396003)(366004)(136003)(230922051799003)(64100799003)(186009)(1800799012)(451199024)(1076003)(921008)(83380400001)(26005)(38350700005)(38100700002)(41300700001)(7049001)(52116002)(6512007)(2616005)(6666004)(6486002)(5660300002)(2906002)(7416002)(316002)(6506007)(66556008)(110136005)(66476007)(66946007)(478600001)(86362001)(8936002)(8676002)(4326008);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 2CKHjUzXInfLWbkFxXBWl2spu+d1rG1Fq0cAuNpyl12HB61OQ06ZaprWBIPx1Baow3fdWdrPqKvk5gQZrEAZswX5TzG4J0c2iiKO0iOZgkEXhqc1rBk7KAuEBZGBf1E/rUCwPR+ATiAPmMQHCgODSnFZZSjpzvPGDAtBFCfirA9jlG05QXprnR7a5iL8wh5tQvUmIKZHwopMUerA+o/Oooj7zVr4yjNr5r0IFENazzek/tNxO6YYfSQxVBdG1SHKmjlz4NvdBChwogZsZ64kG4fz6CPArIZ8dqL8LkWg1OE25lMXukqJPudH+JRMJAT2RknAUh3uYI9gfQoHdCe9TYHxZ28HYOoMP+u5dUZsumtELw1gHQ7PEWFaxgUXrRlcRo+5q845x7GW9qkAq5z5zcqAQ+YemE1I4UHIbTxN5PHXGDrbknzliYGgWVyZ1nq6aM1zgexTiKghm4bEgZPCG9wSyiuco/R+hDasGtE1CtDw2ANKhF/iC7/rYk/qezFuZwZbmS3sMDU8ZL/43Q9WgiCIfshc4kIVao1c15q0h9fBuhRDdVxl3Bh8iLHwSp2sEAzDygYJcw44eudqajD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-MS-Exchange-CrossTenant-Network-Message-Id: c5c92bb7-88bb-46c6-d902-08dbf2138120 X-MS-Exchange-CrossTenant-AuthSource: DM5PR0102MB3590.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2023 02:16:18.9527 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: n4h/Jts5+exFct3WQKVPp8boHlCJN4XRQPIfyupjZ9dOO9a/sOIZDZu0ouwiiWsZtls34v+TD4zArIKmIYMr//4PafZ8XCIgS2l7fyfBoQwIG7iaRbwqwgmJHHq00a27 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR01MB6196 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231130_181630_905256_D8766072 X-CRM114-Status: GOOD ( 10.90 ) 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 Add support for AmpereOneX Core PMU events. In addition, fix typo in GPC_FLUSH_MEM_FAULT's name and add missing DefaultMetricgroupName to metrics. Ilkka Koskinen (3): perf vendor events arm64: AmpereOne: Add missing DefaultMetricgroupName fields perf vendor events arm64: AmpereOne: Rename BPU_FLUSH_MEM_FAULT to GPC_FLUSH_MEM_FAULT perf vendor events arm64: AmpereOneX: Add core PMU events and metrics .../arm64/ampere/ampereone/core-imp-def.json | 2 +- .../arch/arm64/ampere/ampereone/metrics.json | 2 + .../arch/arm64/ampere/ampereonex/branch.json | 125 +++++ .../arch/arm64/ampere/ampereonex/bus.json | 20 + .../arch/arm64/ampere/ampereonex/cache.json | 206 ++++++++ .../arm64/ampere/ampereonex/core-imp-def.json | 464 ++++++++++++++++++ .../arm64/ampere/ampereonex/exception.json | 47 ++ .../arm64/ampere/ampereonex/instruction.json | 128 +++++ .../arm64/ampere/ampereonex/intrinsic.json | 14 + .../arch/arm64/ampere/ampereonex/memory.json | 41 ++ .../arch/arm64/ampere/ampereonex/metrics.json | 442 +++++++++++++++++ .../arch/arm64/ampere/ampereonex/mmu.json | 170 +++++++ .../arm64/ampere/ampereonex/pipeline.json | 41 ++ .../arch/arm64/ampere/ampereonex/spe.json | 14 + tools/perf/pmu-events/arch/arm64/mapfile.csv | 1 + 15 files changed, 1716 insertions(+), 1 deletion(-) create mode 100644 tools/perf/pmu-events/arch/arm64/ampere/ampereonex/branch.json create mode 100644 tools/perf/pmu-events/arch/arm64/ampere/ampereonex/bus.json create mode 100644 tools/perf/pmu-events/arch/arm64/ampere/ampereonex/cache.json create mode 100644 tools/perf/pmu-events/arch/arm64/ampere/ampereonex/core-imp-def.json create mode 100644 tools/perf/pmu-events/arch/arm64/ampere/ampereonex/exception.json create mode 100644 tools/perf/pmu-events/arch/arm64/ampere/ampereonex/instruction.json create mode 100644 tools/perf/pmu-events/arch/arm64/ampere/ampereonex/intrinsic.json create mode 100644 tools/perf/pmu-events/arch/arm64/ampere/ampereonex/memory.json create mode 100644 tools/perf/pmu-events/arch/arm64/ampere/ampereonex/metrics.json create mode 100644 tools/perf/pmu-events/arch/arm64/ampere/ampereonex/mmu.json create mode 100644 tools/perf/pmu-events/arch/arm64/ampere/ampereonex/pipeline.json create mode 100644 tools/perf/pmu-events/arch/arm64/ampere/ampereonex/spe.json