From patchwork Thu Aug 3 21:13:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilkka Koskinen X-Patchwork-Id: 13340840 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 4C262C001DB for ; Thu, 3 Aug 2023 21:14:57 +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: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=fuSf+1MeMR+9sj9Q4HPK6UmbXq7I+dcJJ4tLldB+lTE=; b=vvJjGepdvFgVfC M4t11ZAWRXThReVBahZhrcgDlmQUMlAOZ/mjO4zbHHXqYIAMJt8B+nKy6mM0XdCqDPVp7hA/s6SPn pEDQEf687ohc6/DIJ3eXKWWUmTdKmEPcr8S+MIiFZBs6XmwMxaVdE9Huusbpp979eN5Msl/V/X7tY FG6Zvrm6ToJ5TUU85kGnjGR8pXyn40xRX7FABnf7VLjft7u8tJlhvIjIr++TJbEkR5nE1ZbQdrodb r/mB6eCtwWvf4DwND4mYqw7LsIwlFfiKwlDM+G/cKgXEdBZWqIMAvLqoy6yM9guBu7gLCA8+od+FD kmOaQcnUL5QATWxTaMTg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qRfeW-00AtQI-31; Thu, 03 Aug 2023 21:14:36 +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 1qRfeU-00AtN4-0f for linux-arm-kernel@lists.infradead.org; Thu, 03 Aug 2023 21:14:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=famxl+p1BA78/WQbM2ntTed117x/hSygpDxK4L1ubSLrooXqVM+XvjVOFv7Wl5IYdWPVyK8N02NbbG++WIckl9lGQ3SH1cSjwUPONpsYwpVQfGGeYzdzTXid8j+3EqNA2koD5AmmMTnIc8zjrLEAUfKes5VvkYv15fgl6qIFLCMuXfPsxnRQtUsasrLgWaxNrNoZlzNwrZmO2PEaF7aQIwKbMHGwwHb/b45RKVTlxNn38gR7RjmZkIJTYFmwNognI/qyCbNb7WyvKIMpxx54rHXYo+5r10frZvRnRjPv1/2d5MbKUQP8cPMs0ga1uYQGOw2ER9GD7w1s1K0Wd6UB0A== 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=NZ9nVi/nQybEaUJ3rIvf1+6iPaw0gj7xaLmG0L2IcJk=; b=LoFjl2UrozCCzCvZICi2tm9t3zzw38LiYx8VUPo7PM680x867lQ0TUK2tabWQFCNu1kYpd0OmyCs+soNm316lCa4zipNdN7FhTPfsGPJhP2IR8RLI/WfCQXgPvUfeIre6APwT+S+mW7dZx+5RtV2siPH4biCHgacEY5ObLc1A30et0OHtHt6mrelMUSuVHmm8VHg675PmUMwFUZDyd5rYSXq2zSWlLOWZLT6iIaPVgNyfP/DdY4DqS0+0kYzFI0ooJXLC/sMrvsi9kAwDIFMSkM11PX/zDUa13c7p7CXOUOPMbjJlBvrj+y+qNvaXIBTtm9xqB1hzVJAyb7OFqbxvA== 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=NZ9nVi/nQybEaUJ3rIvf1+6iPaw0gj7xaLmG0L2IcJk=; b=j8I8Vb5l6G3/zmQN0rK3w0+IJSwWWof1CMOCJR3K7IzmVYgcXuuAUotrVM4yArj8Yw2y8bDKM0e/GrJg6t3kYHJKYJJRT/KKVkQbXsmV9OCTA+W8Tzf4zBL4m5nDqXt42HOYhdPVoU65eu8jIMHMNhtFsaUA8w67M1gv4gHh3jE= 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:29 +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:29 +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 2/4] perf vendor events arm64: AmpereOne: Mark affected STALL_* events impacted by errata Date: Thu, 3 Aug 2023 14:13:29 -0700 Message-Id: <20230803211331.140553-3-ilkka@os.amperecomputing.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230803211331.140553-1-ilkka@os.amperecomputing.com> References: <20230803211331.140553-1-ilkka@os.amperecomputing.com> 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: 0e00ca48-a099-40f5-cc2c-08db94669fdd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 50mH6WjJ567yzn/ea8l+24q5R2wRR0OiRcJJqaGuWDXgJmMmLp6luvZnOlq7Qe2OSmVkj5ppJxXqluBFwM1oFQFemlZdvW6GrzcnZaPnCj4RqqF9C87Cow/hQRRGLRf/fz7y5Gsqd5d4SvCuNCrczNFUahbnJxWfadfg1DjH6ceuAH4kOUFG/MEFyXTRdWtx1hXoXfOY4GaQEhCCuqp0NWCO2n9R1t4ywUCkYGNmanmq3BYCCSFyhjSaTE6883oWp87GiwzslCBzJauORLLZyyKZDkkv2lynF0mOSLbl29sB6c0JSRDn6ERffjQAh/LnOdK18AYT4KOJWSsa2OKZFzIbIamQkOyrkviVSuGL693RBlfgSttjNZjgw3iGcZbUMRL+e9j8KPgW0V5ORIqphodSAPQLMEBz56Do6e81S+00Avfr21WWkUgvnQxgdz0g9T0aVxOR3fYwjoK5NBwnLFP6OeUwfNZnqCM4f0JzBGYPFb/6hfRo+E50twMiVEk0lwYm6PR7phRjOF5+3u5VA/51/4puWzdmV4QTmvDUXgjjNLXgNij0hQFxLcaaXnYwiRM6/cmorRSJxpweizDIxSjXJ1hBB/EBGsKIKH201VQuzev0RsyjMic3GOKPt0GO 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)(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: OjQdgp6OimcL9dGuDwoZNuW6kcmBR4/9WRuyn2KL9NzcG2ajuiXeGebR7pATBsaclU/bjWvufZdAY+F4pOLGJKq9x7wDHnVfczYxQNnydcF8gn8vIQa8BqYuVTEqMElAxTs8lDwYCllp/HfwwnNkUUiaK69BunKVerlZ0KUQkj6ojp+/+wH6hQaKvND6NVsdzIrnVzjWYgMhO9w6lT1Tr8od2x2yzdXz7XLbRylQqpyq+qzUb1Q6KV+VJd8/ifEBdDbU8zJxif1B7ZbmLSjePLsvXpZQRVWMwq07ZklEwjCAZrb/zwQj+ZG4jJZn1NtxojVP37u5BoDG2ToIQGAop0plk5edcKO6UsjNNOQh598g2OTy/F9wHwd/akJHIfH7hj7LEtij1wvwK/8zlMq0MdDKAhq9SX8p/WzqB77gcqtEFWY769SROkGt1CvW3+yCjTid5AbDgAFicro6tb2PaqywK649d0P0nVxoZ9j+7nOaXrUldLZo2sm5ND8xxSxDpH1d/IvvkAwn+1gZYKfRRJ1TxR0yYrL+OzffDL6mdIpE/JTtDYkH272pmSrFxy4+3vw9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Exchange-CrossTenant-Network-Message-Id: 0e00ca48-a099-40f5-cc2c-08db94669fdd 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:29.6774 (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: 62tDwYs24tIcbsOYgQkwTk5fJo/FMcom4xzc7hwvm7X82t3t5h6+kuX5+G4qdmHvTE2iObi0hNUWWVNwwSRW9pGd6ifMUFGEhJcLK7L9JZokEtkaQuWEbiLXzfns29+s X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR01MB8502 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230803_141434_261632_4F73C3EB X-CRM114-Status: GOOD ( 10.71 ) 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 Per errata AC03_CPU_29, STALL_SLOT_FRONTEND, STALL_FRONTEND, and STALL events are not counting as expected. The follow up metrics patch will include correct way to calculate the impacted events. Signed-off-by: Ilkka Koskinen Reviewed-by: John Garry --- .../arch/arm64/ampere/ampereone/pipeline.json | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tools/perf/pmu-events/arch/arm64/ampere/ampereone/pipeline.json b/tools/perf/pmu-events/arch/arm64/ampere/ampereone/pipeline.json index f9fae15f7555..711028377f3e 100644 --- a/tools/perf/pmu-events/arch/arm64/ampere/ampereone/pipeline.json +++ b/tools/perf/pmu-events/arch/arm64/ampere/ampereone/pipeline.json @@ -1,18 +1,24 @@ [ { - "ArchStdEvent": "STALL_FRONTEND" + "ArchStdEvent": "STALL_FRONTEND", + "Errata": "Errata AC03_CPU_29", + "BriefDescription": "Impacted by errata, use metrics instead -" }, { "ArchStdEvent": "STALL_BACKEND" }, { - "ArchStdEvent": "STALL" + "ArchStdEvent": "STALL", + "Errata": "Errata AC03_CPU_29", + "BriefDescription": "Impacted by errata, use metrics instead -" }, { "ArchStdEvent": "STALL_SLOT_BACKEND" }, { - "ArchStdEvent": "STALL_SLOT_FRONTEND" + "ArchStdEvent": "STALL_SLOT_FRONTEND", + "Errata": "Errata AC03_CPU_29", + "BriefDescription": "Impacted by errata, use metrics instead -" }, { "ArchStdEvent": "STALL_SLOT"