From patchwork Mon Apr 8 21:40:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilkka Koskinen X-Patchwork-Id: 13621601 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 8D014C67861 for ; Mon, 8 Apr 2024 21:41:17 +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=utGjvpfwG5rTSfjWF8QcVuSULpDTf3jTR5fWerhQRKI=; b=b2O4rykHmLevUD Lqugr3a8QUjDlmVRHmEUICLqV5Bcw4nA5Rfdu+usWxICtI+h/JZvYa81X8+P2s+vp1V3S7WN2yxO9 rM17mTqCUnENJbdA0RMUfY76Xmzu028QcRkVp8GjaLYSqam5ABP/ZVjGGm7rsOBHZgg0vkJiSkpEG DinyKUM8VFOqfLOMcfMoEsmaIXJ168dh5IxlyK3lQUAopxwJ/ZxuvLaSMgfKVvCHRTn6bWXqzfrt2 NAiecy4BIV6xi8LDUl5HGss7h25ZOw45ArMluq3BotttwJUUUNVhNk+uhZHQZiBco7XqjYFqVjlyW 18mHJXy/yZ2+DXDyXQDA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtwjZ-0000000GvIt-2Yhi; Mon, 08 Apr 2024 21:40:57 +0000 Received: from mail-bn1nam02on20701.outbound.protection.outlook.com ([2a01:111:f403:2407::701] helo=NAM02-BN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtwjV-0000000GvHD-02KK for linux-arm-kernel@lists.infradead.org; Mon, 08 Apr 2024 21:40:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WQHWUJiZ2Wnn8T0ziT4hjw8AI5r0aHmUVYvHJNoFL28tl+Unv+aTEHVNOPHzpntnCnAaZ1echiK/58cYbb441bBbaR+uWPhWggRfCNhPYoLLj/3F06h6DyI4neDvjQSKNkjObGHgf5yBc4V9EbcFUF9DiUaRdpDt4vmWGQAr8K9ZQtxTkoG+9QtPsQdzkQLA/wai3H4gy7uqnSGos7NhzjX+iT5tkyh3QFU8HcEdOlVDpxMfFgk/MIrrLjzR/cFshx/wR6zZvAI/tASQLILw9rP4M2i/Q6zCbz+vlLreOXucPgJatIW/2tJxMeQnf9UkNFBUAo+nLZJFMgaVATuOgw== 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=ueHDIs8PWJLHNcf/MlzNBDRh+eUXrzKkfFCFEE5fK/c=; b=Tp8bSYNQJGhEHLqoefHONPjqTs237YfixOQ2LKupTBCGlVRV5O3g2WVCwfUqdHHgHB7hNGPOZOWbEBThUhXF1vHfM9QjLet20lJtoO6nemaSM9xHkfugmAXRdhjHan7xuLkPA0QX+gchYuiQzTJn1Fv79Lahm93OSXW1gqPG9HODeOHfafJX5WdvyvEepFGsfNy7P6TuQ0dbzPLEt5kFiyaX6lKCd5Jnsln4mLjfTvUGi1gllsTUkqACtBzjqmj1OnIO45dQ9yFtwwasLYicZw7yCzKGCzRZNaYQ53fuGo9nV5tcvGBquTLliYjw2VpL22POQdc391sAJFiwzj9a7g== 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=ueHDIs8PWJLHNcf/MlzNBDRh+eUXrzKkfFCFEE5fK/c=; b=U9mvbKBmyinGKE2MMNzDOG5d8dLhSAkA6qDfOmGTvPYmonq4hYTdeZ0VeVkl1VwO55baPa2HSqLlibq0KxQfKRvcnSWpKgjoQi2UCR3UUTGSW/ak6s7D2+uJc4fZHVpWtqftezwZBAdG+wOugMMpHU6RgWDd57TOXyN7/mTMum8= Received: from BL0PR01MB4226.prod.exchangelabs.com (2603:10b6:208:49::30) by BL1PR01MB7627.prod.exchangelabs.com (2603:10b6:208:393::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Mon, 8 Apr 2024 21:40:43 +0000 Received: from BL0PR01MB4226.prod.exchangelabs.com ([fe80::12be:916:b914:8b26]) by BL0PR01MB4226.prod.exchangelabs.com ([fe80::12be:916:b914:8b26%7]) with mapi id 15.20.7409.042; Mon, 8 Apr 2024 21:40:43 +0000 From: Ilkka Koskinen To: John Garry , Mike Leach , Leo Yan , Arnaldo Carvalho de Melo , Namhyung Kim , Ian Rogers Cc: Will Deacon , James Clark , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Ilkka Koskinen , linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] perf vendor events arm64: AmpereOne/AmpereOneX: Mark L1D_CACHE_INVAL impacted by errata Date: Mon, 8 Apr 2024 14:40:22 -0700 Message-ID: <20240408214022.541839-1-ilkka@os.amperecomputing.com> X-Mailer: git-send-email 2.43.0 X-ClientProxiedBy: CH2PR17CA0004.namprd17.prod.outlook.com (2603:10b6:610:53::14) To BL0PR01MB4226.prod.exchangelabs.com (2603:10b6:208:49::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL0PR01MB4226:EE_|BL1PR01MB7627:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UiVjhHaq41x+eGv4tSqTATu6dcxjtOyquxztN8xUsJKSVitwWIlfWk++0lBOKmsKEL8Ym2yBjG90tRiPuCMhM1vZIGNV+ZPbtO7x98pfnkHHd+lkFiiVRXPb6nyX0X7k3eMEZztOJ7OxzdFA1pTNs5ztBs0Pz94ZsXc2nb0dvbOZxdYwdyqhalCH5SGdgAgS0zHMFu3XSV04YMnmanjPNF1dR/RAr06P3Igl6fGMuQhBTkXReKrThigRN61JwF1HZDKgHKpxUg7evCz1gM8WB0953C0xijxXFkYK4Z49ZNcKBc8d4jGnD2c3C+WLxGJeA0X8+E+tB+z2PwNBST38ZFU3P5s5+TNkmBOlQKqjFMj/31aLuI3WGvUNwFcfrYTg11sSEh/9x8QS4ZbTXG/NBssNXEKtn3X9qb1oA/WjK/EZW5eYs7n7nchoe+5uvezN7f8ZIaV9gxH5IZoGwiBaIxx5ydqss31yTaFu7g27eFXZzO40+3ZsnAGavJj80O9I781jQhTgPYdK8AVvlGZ+Aah5s9zexkuh2BtOGeUH58kdyf6ex2aa+TYkSEc/OV3+T+6tMMAu6G3PMOkURCCZRyFoFbgEDQYbtMIiD9PbesP09OWuXFmobg3bV8I6GMtoge8S8jEx90xJSTXDgJD9ko196ppOAsgAUOVSZ8W9SlGDCV2gyuSOOyteAfc1U5mwNHSGx3aaU/YsKCsqm5v7le+fpI/9cD5+wvBqu1stZig= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL0PR01MB4226.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(7416005)(52116005)(366007)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3yqoWHZPa8QwlWmA07wWix1QGMQvfsBH7mjrFqiP/j+QaCXR2+GK4xNFyNgOyvJKCPKd4nOBy1XggTeUoApK9kLx6dkk/9vxBLdMUPsOQMTTxBss5qGCsoKgtGZVK+Or4lETzbzaanOGBeXlqXJLPAskhS0bipvZAQbTuC3jMNXww3+MyJvmZAjh/lP2hbaVrUN1/2/2krVO4b/ItW9J6GmhEjawweOQ7LsAWA1nKh2q2FOinNgLpfeIDCtjs0Askl8pv5SYPH3a6bbYmbDUQAktpN0JQ4fcCTE/JKUvQYCgU4cOPMeEkGTsSCL4NHTxhXhvApFSgIzuTPcLur18rHme1EgaeJc8/0vbiP7WZ5l/AJtPm6/KgiK9c7eAlpCjizdG1WZuDjPcJrn87tGEtXY8BxUsa6uAO8RM7kgn1Cngm4g56BWZKA/mGknz7mWWEz4n5ggtykh3thsKhwQD/cxhMhD8VzxAXEFlpKeChj8MwiIkoUzOGgnbvFHu2MCvbkfr1cDOX1v9/VTqND3uzVvAHYVVLXnI/GNEeXVJ3ejrw2Mw+L6nClxuvC1k6SKwxaln57sj1/wcNw6rvWYYAQQdozw8cLHQyCLEaDC+TdR8okT33ObDg16vFKeLG5husOEvfdgKKaGLcwa+R0uEUaETxIRAwIYoxPWiK8hI7IDjNIVgadd2or4uX6+z7h6KyEnXxMr3uEFaLnJIirE3aI7ALYaBRMZRSm1Z0pnNxl0pJ8A3WkrIBly5z4W7CRERWpgwMiDvZcuP+kYIihDNuvYvUF6XMVyzui9ZK59Fn25Oz2SD38k6exeuFgfNMZGLCcRB5GWt2GEAgIlTkbiepperETmFRqZltdJcyAEEH6Ie2lsYfj6fYFNO7iCwYAM9EHiWLVjX/SzI+DiYW+u2GghsjhbxoXMc6XaE7cH0bpYWJIH6JTuG2z5of9MJLCWVRgC3X24pF0Q8dlU+NiQJphorA1rmRkPggF21xifqZuCggkjEPNycNo5aYlfn76ViFtAN3J4F7SfKJkhu2mwKYfB7RiOiBeDQpBy6LIv5E6rAhWO2IF7wAzgN5exbqcAi7QjTlXuz4Zvun/Wte6/ZHWnHsUYURPXVs2+j6FInHkc42Ie7c4q/AAKYBbcWlMSNGFolhDm467if+ew2noXsXqwnHicy5h895LqJm7O9l6PHmPLzFP1HjGUWNUPk77arfywZx90jpX1klw71IIYEKQU1L1tQF1Fqqi1bFRzPmwcS1GUut83CvLgxLZEuB916GGNqPPxU+lnvo1AjL14n04M2phZ8pBMFaxXdm/81HQy7ltFGz06OK39DuYzJmkyEq92oMJePUrWMEQtsawLKhE7xDrFjXZ7cQxMLZ3bzosW/h/fPlSAb3BGww5jhJDu8lpBXzR5QkMWTawqHdDz8TYSv2+b0vAq7WmP+pFxHq/vB3RDSZnLYG3yhEiBPO4thQYdKW16fYuryR5AxmLVbnc13w122mpXpJ0kPVsEjSl5MgdyhC7Mibuqcjw7lO4L/Q5QxiBiT3BX2nhtDu5OiAoT6yflg2/KsYb9C68Aq4Kx2xYi97MfSrqxMB1vfMQE20rT/FvjJ7ickArp9FrrJyLOnEsEk1848JWglY9/6ZoM= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: d600b97c-8fed-4c8a-d098-08dc58148b01 X-MS-Exchange-CrossTenant-AuthSource: BL0PR01MB4226.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Apr 2024 21:40:43.6069 (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: 5IKM39Yf182Li85Z0XRLTxM8v/qhS8UUisQXJiqHdB6RpRwqSQhhCKOyU9MTPzKJz2hiu4LRocz7qxKLD35/uHHEMKN2WpOUvhKeUlYEo+f9AR2w2qGsxKF9x/3GDrzw X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR01MB7627 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240408_144054_373527_22BE19B2 X-CRM114-Status: UNSURE ( 9.88 ) 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 L1D_CACHE_INVAL overcounts in certain situations. See AC03_CPU_41 and AC04_CPU_1 for more details. Mark the event impacted by the errata. Signed-off-by: Ilkka Koskinen Reviewed-by: James Clark --- tools/perf/pmu-events/arch/arm64/ampere/ampereone/cache.json | 4 +++- tools/perf/pmu-events/arch/arm64/ampere/ampereonex/cache.json | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/perf/pmu-events/arch/arm64/ampere/ampereone/cache.json b/tools/perf/pmu-events/arch/arm64/ampere/ampereone/cache.json index 7a2b7b200f14..ac75f12e27bf 100644 --- a/tools/perf/pmu-events/arch/arm64/ampere/ampereone/cache.json +++ b/tools/perf/pmu-events/arch/arm64/ampere/ampereone/cache.json @@ -9,7 +9,9 @@ "ArchStdEvent": "L1D_CACHE_REFILL_RD" }, { - "ArchStdEvent": "L1D_CACHE_INVAL" + "ArchStdEvent": "L1D_CACHE_INVAL", + "Errata": "Errata AC03_CPU_41", + "BriefDescription": "L1D cache invalidate. Impacted by errata -" }, { "ArchStdEvent": "L1D_TLB_REFILL_RD" diff --git a/tools/perf/pmu-events/arch/arm64/ampere/ampereonex/cache.json b/tools/perf/pmu-events/arch/arm64/ampere/ampereonex/cache.json index c50d8e930b05..f4bfe7083a6b 100644 --- a/tools/perf/pmu-events/arch/arm64/ampere/ampereonex/cache.json +++ b/tools/perf/pmu-events/arch/arm64/ampere/ampereonex/cache.json @@ -9,7 +9,9 @@ "ArchStdEvent": "L1D_CACHE_REFILL_RD" }, { - "ArchStdEvent": "L1D_CACHE_INVAL" + "ArchStdEvent": "L1D_CACHE_INVAL", + "Errata": "Errata AC04_CPU_1", + "BriefDescription": "L1D cache invalidate. Impacted by errata -" }, { "ArchStdEvent": "L1D_TLB_REFILL_RD"