From patchwork Thu Aug 3 21:13:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilkka Koskinen X-Patchwork-Id: 13340841 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 CA77BC04A6A for ; Thu, 3 Aug 2023 21:14:58 +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=ebu2LfsC8GtHYjoLlYXnBZ7OwBHRG0FcmlmG1znPhqs=; b=u52FI32Qvy8YGk 9TzHAzIVnwVPWT6JkoLJ4d2xxZ1PJ1T80x/1yr47bNXFfkasTgawaZ5VWHe2yJZnwp+FSXrZqYyTY 3L1OYK/ADDFO/N01sQgQQ9CH462/44fMJ+S1GLkYmilYlXYKxYr+9vcvmeTBbfaDDr+zeOonVIdru qLJlv6bXEckoHnplKEvMhiBaloJQfYMF8Vxr/Do1yTgr7mQw3qkspvImnf3wJikXpZywL2Jcc4ZOi Z3Zx0p44ad/hDEkZ9v88OwIg7SUaUQTRsvZJjeK9eq9fTL7HhfK1qG0A+hXTh7hOxVIDk+PGcKdyz c1rQozYLinzdozWT50Ag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qRfeT-00AtOL-2e; Thu, 03 Aug 2023 21:14:33 +0000 Received: from mail-co1nam11on20703.outbound.protection.outlook.com ([2a01:111:f400:7eab::703] helo=NAM11-CO1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qRfeR-00AtN4-0T for linux-arm-kernel@lists.infradead.org; Thu, 03 Aug 2023 21:14:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CSwvwqb7HX6tUixy+wuIjYRkOqU5ZYLjfFY/hqkccl5H/MxcD2TdexnCEHQGW651gKZ3u3yx0EDX2knuGaZvCkfHUWS1qK2tAXI3pkzT3QHVgsK/GXDOvXB5OY3BTKiUCG00mPqvGZtIVPfVxysA0LD3BQJexMZeu8qgbR0+RdbH0iyxnw2E++tv8cn6UlszPVl/MyNW6r5RKic8Aff0kfGxenBX6ISynSDmL9cQ0vSqPJkl7uTf2lcTqP8NVhbL2YP4f0l5fATo30uKQfSUIvd15+vSMFmHo+WJD/G18zwSpQVaP7HK44jZiarkp5WNHKcZwGmDC0kU4ZHbhtIXAA== 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=rL64l4QdrXHdn1BYeJSdvI2KRibSdLhjRW81HML++I4=; b=H4u/mck+vkdnVt6YPI9a7TnXtOZtvOM/Cuv1gJM8pwLqBvoB5IgO4VuphzkoEfntzDQMbIN3V+KlRRDqP8OG8QBl30oQFlwD0YUzmczV4+SQ8P0Chhm+OmgFfXMEbNWUI/+KKkRIVrwVFIJ6piyfrp1RQfLp16diCFoKehx5HtWMJR7+yuWfSIZ4gHcfUccsqvZ1a9Dr/8cIywHDVScPpn5EVR4sxFxy/5JOgJvtsuGcP414+p3UUEHJmg942XGkBSHaiAepEVV9v9w/vBGAb9//1tsvlypaeYfrHqN6gE8hERcxL78CaAcGbcLiZLqK7C0ycYPzfP47a112ilb47A== 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=rL64l4QdrXHdn1BYeJSdvI2KRibSdLhjRW81HML++I4=; b=sClznVyX9az65m3tnawsEGEeRxEgJQKp+J96ktFg/GF1wxZ7namOJq04r1uMUC3lal5IAQ2JZzpcoZWM8g6UIHiMOmblVcHgcz6cB7ZpRLh2eaTgeCpdVM9hgp7rvUBHlHA/hXrffNzITa6pxuRGrR5SfVCWSPOhMPc/z99XOTY= 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 SA3PR01MB8502.prod.exchangelabs.com (2603:10b6:806:39f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.47; Thu, 3 Aug 2023 21:14:21 +0000 Received: from DM5PR0102MB3590.prod.exchangelabs.com ([fe80::4e0f:49b:ee39:f08e]) by DM5PR0102MB3590.prod.exchangelabs.com ([fe80::4e0f:49b:ee39:f08e%6]) with mapi id 15.20.6631.046; Thu, 3 Aug 2023 21:14:21 +0000 From: Ilkka Koskinen To: John Garry , Ian Rogers , Arnaldo Carvalho de Melo Cc: Will Deacon , James Clark , Mike Leach , Leo Yan , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Ilkka Koskinen , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, Dave Kleikamp Subject: [PATCH 0/4] perf vendor events arm64: AmpereOne: Core PMU event update and metrics Date: Thu, 3 Aug 2023 14:13:27 -0700 Message-Id: <20230803211331.140553-1-ilkka@os.amperecomputing.com> X-Mailer: git-send-email 2.40.1 X-ClientProxiedBy: CH2PR15CA0006.namprd15.prod.outlook.com (2603:10b6:610:51::16) To DM5PR0102MB3590.prod.exchangelabs.com (2603:10b6:4:a4::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR0102MB3590:EE_|SA3PR01MB8502:EE_ X-MS-Office365-Filtering-Correlation-Id: 13f58e91-259d-44d2-2e93-08db94669abc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eqcRdVYHptrV0r+opxlGmDw/MeOTynhf1kZg7zs85l6BMfRIKW4bZVqA+BCeIR+D/1F8f1vpxHHcl4ICvFwzu8AGy3D4T1SiZJ4Qt17S1UI0qO0gXXf7y1JGgB/vHi3MwO9TnoDbl7wm7wxUW61SbNA4L5RHphMSBGPN8eEw/o5o3XXeYtu64m8GRHEWwjD7JaflPQxDOJdV/QAd+mOr5zydiscq/zyvaGAjPoVCM9n798YhdcsXF7Xl9skvbo1258a3W7paWFAE/atSZQsShY0DgvryeWyo48rAPSZl+LTzKNpjca6eNN3h3i1Yn6mZWslK83e1b1LTzeZgH3JrxjtAxTHwcyOaLwqkNjJJ12pOuPU3y2OS2ZYZL1mxCwRjA6k1BLa/9lkA7isxHTJLZBL+E4cRu0zwGKyGhJnM49Ecrz889A3+wZZ6bSjIQ35WhsJGeDCTkFJZHxu7BdP9nOB1o2gPfs52EZE2rSvAgfVML6uFrrGTANpdz5lfcaQQJkX7kEP0u8HERxxqC5Xnd9FJfN52A0ZWcjbEp4xYu7/Hvbgy0O0aagoj7MfcjhswE+D8PKNPNhp1vLiDNRzTViB8TJ/IaUkoL1LR6urk5lHZazHtoImLA0DFjpCGZ+OK 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:(13230028)(4636009)(39850400004)(396003)(366004)(376002)(136003)(346002)(186005)(451199021)(86362001)(52116002)(54906003)(478600001)(110136005)(38100700002)(38350700002)(8676002)(1076003)(2616005)(6506007)(83380400001)(26005)(4744005)(41300700001)(7416002)(8936002)(6486002)(6512007)(2906002)(316002)(66556008)(66476007)(5660300002)(4326008)(66946007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +7VQP1ZsNdnxnDnudfb3WqxSXrXHx4WRLRCCV1/+g/BhgLbkJoM5/gnLAt519uMaz1odkj9uuvAl/CFe1+7LiIaKtezEoEMqJoQQjgtLzZityPh/ljzbPPMuuZlNswg8pfPmSShWoNIdOkyoH+Th0ckNLgF0gtKvU9Rh8K+0u0uB9EDLbglcIKLyVVf1FAzCjTCp9ci2lOsZPsgx7YudSt/G4+hMxDKHxLkAUUlUx9EOlLY5YXzNq0cQtPPe0P8uUZaarJphsI6TOPB1DR+w9Fws33pX8T61eYGCPy/UPEAPZtt3jev3K+RYmX+95JOEsc2ZX87NrO0WDv+BKkezU2bAgS+p/4nbHd3HtxRfJiVmbhmSmBmI60rAwq0G3q3vwC0K++Xg57fqowwemE+SLlN5qHhIT0xaeGII4L27AdwYDSjGhMTUpwx11xVLJH2Dxh75LjDSmCwMmXgfbj8w0VPznNX2PhkZvmX4D92wPlFb6TRvo2Lz7IMg6nOq8sCOhiJEqtEJEYZG5Ux9YtnNlRvxYGkmrcAZOj80RYwuDKS1gfcu2z9ocOqmpllY/RfuyPcw4P7iTI19lwRv3jmxJHHBSnX3E5dL1fAqa+GaEYqMgR/fmttNszfcSWMC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669abc X-MS-Exchange-CrossTenant-AuthSource: DM5PR0102MB3590.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2023 21:14:20.8529 (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: AJ7BljK4E/M65eYt2f+g0BVoZQk4Uy+S4E5z/XAeRjlmkR7uQ3pZIZFbGHY01a0xOkNQVm/14SWK8a3Qym8a6QmEwrbLyZTAzsNFD3vQGfHYfikffO0LyU77RBn+i/0W X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR01MB8502 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230803_141431_211135_5F99222E X-CRM114-Status: GOOD ( 10.06 ) 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 AmpereOne Core PMU documentation had unsupported events listed, which have been removed since. In addition, certain STALL_* events have a bug and, thus, the errata number is added for reference. Finally, metrics are added for AmpereOne. Ilkka Koskinen (4): perf vendor events arm64: Remove L1D_CACHE_LMISS from AmpereOne list perf vendor events arm64: AmpereOne: Mark affected STALL_* events impacted by errata perf vendor events arm64: Add AmpereOne metrics perf vendor events arm64: AmpereOne: Remove unsupported events .../arch/arm64/ampere/ampereone/cache.json | 3 - .../arm64/ampere/ampereone/core-imp-def.json | 120 ------ .../arch/arm64/ampere/ampereone/metrics.json | 362 ++++++++++++++++++ .../arch/arm64/ampere/ampereone/pipeline.json | 12 +- 4 files changed, 371 insertions(+), 126 deletions(-) create mode 100644 tools/perf/pmu-events/arch/arm64/ampere/ampereone/metrics.json