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: 13107 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp1424144vqx; Thu, 3 Aug 2023 14:48:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlG7T40pJSL8p29do+RdcPJdrwZNl+NRj6wj734Z2blSl6bTnARoX7cel3/J3hq9b1HSd1Sr X-Received: by 2002:a05:6a20:841f:b0:133:6e3d:68cd with SMTP id c31-20020a056a20841f00b001336e3d68cdmr25321160pzd.3.1691099313535; Thu, 03 Aug 2023 14:48:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691099313; cv=pass; d=google.com; s=arc-20160816; b=vnEVu8pzIfnCi8s3ho4gpAUzxMvPfhBnu0Q3uC3YGmjsO2Ct57nCwSZMoCsZF/ud5O eM/5dHTC3CQi8i7a1lEwg6RMLyCozOoE6yfhxe4kW1m+6AIZ/KcUrw2acq90WGcdNr5h 2C+xAYyPQcmxkKqrGpfQZmsU+GJNvSaMiSaU2Buz6n8yJpsLShAn05r98MBVe+zSufhA grRKXp91GouAdEwrB5y3jvTw+JLHzvsie0L5suStM1Q3h894kmgTsji28YLMGhXx9xFd dTs7dM3B/07HAUdZw3Aoi/X34ikxzDjlzAu3AZHvKZjyKMNOjrN/2u1cLMNs3C1YzBh8 eFRQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=rL64l4QdrXHdn1BYeJSdvI2KRibSdLhjRW81HML++I4=; fh=y/Q+fm44QmqbhqhywLeXYhRMDGtmOisRwbQezgRqi+8=; b=BN+M5r+2hofTvAxHptgesPiwGXmR9a+4XJqDgwvbO243RLuL65lNPazs/d0bQpcO4p f9zdeGoF6aULQ+NxiqCn7/Ih2lTp8ob2DsYrkLsQcKu5de3sM0gTlcsxYZcPaCOLcpqS 9elPEJx+vmgTqPAbDhISysvftit94UOT66jOSI+NzEVVF7JeLFE7mGOMX2l9B+4wFzjb LTVtUdTOn5PSMMZoynZtGFfseyipiCbDNlR9AIMuezPPt37hmcr16j9fg3buP8mNcu8H IwGWUVd3SYTqIX1aizjlpPLZJ2s/e1flWbzI6As0Hg8HgSTf7o0yLPC20SAltnQJ7kh1 ig9A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=sClznVyX; arc=pass (i=1 spf=pass spfdomain=os.amperecomputing.com dkim=pass dkdomain=os.amperecomputing.com dmarc=pass fromdomain=os.amperecomputing.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amperecomputing.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q12-20020a056a00088c00b00687071384a7si593911pfj.152.2023.08.03.14.48.18; Thu, 03 Aug 2023 14:48:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=sClznVyX; arc=pass (i=1 spf=pass spfdomain=os.amperecomputing.com dkim=pass dkdomain=os.amperecomputing.com dmarc=pass fromdomain=os.amperecomputing.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amperecomputing.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229673AbjHCVO1 (ORCPT + 99 others); Thu, 3 Aug 2023 17:14:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbjHCVOZ (ORCPT ); Thu, 3 Aug 2023 17:14:25 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2139.outbound.protection.outlook.com [40.107.220.139]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E4C4173F; Thu, 3 Aug 2023 14:14:24 -0700 (PDT) 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+SLlN5qHhIT0xaeGII4L27AdwYDSjGhMTUpwx11xVLJH2Dxh75LjDSmCwMmXgfbj8w0VPznNX2PhkZvmX4D92wPlFb6TRvo2Lz7IMg6nOq8sCOhiJEqtEJEYZG5Ux9YtnNlRv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oJT0ZE2dKCdqP6sNDpeFtbSVQ== X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 13f58e91-259d-44d2-2e93-08db94669abc 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-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773246153813897622 X-GMAIL-MSGID: 1773246153813897622 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