From patchwork Fri Jan 26 22:12:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilkka Koskinen X-Patchwork-Id: 13533404 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 3C2AAC47DDB for ; Fri, 26 Jan 2024 22:13:18 +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=93W7oMI2QgDlGdsBkFZCRMl53Ufo8AXIcDIqhlAoixA=; b=CF0xfSXtJ226Mf tTcecpVnOApY9eTtmbEubqeqaRK3ty0MB8tpUXa1tnVt4wkJcKaDHnq7YAOu2Dw5oVz+T7PiPm0r8 FEDB8E2oLo3ktJJ5JAkNxAD1l8M/0D6SU3YaZbyWOVRrXo8ZY7pxj9Bymq4u4aqRP4A94ejBf6nRY 4bLQohW1lNB3QnQbOtII5AItE/M5nAH4Pk3k+YGLQ06NMj4CtPbHP61TuWowrn5iESk8LoYrj+DD3 5FvOMyVTBUsbErbO8FEpMD2S5Y/idPOwVzdMFlXmcJVQxLRlNNYk+b5Hv8fGxA0o9IE5+W3XKuIc3 uqrCwIrR/yVfG6KBfqDQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rTURf-00000005Zna-2GX6; Fri, 26 Jan 2024 22:13:07 +0000 Received: from mail-dm3nam02on20700.outbound.protection.outlook.com ([2a01:111:f403:2405::700] helo=NAM02-DM3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rTURc-00000005Zmp-45FE for linux-arm-kernel@lists.infradead.org; Fri, 26 Jan 2024 22:13:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T99B6BvsrW7LVUJVlN52XTTfm0jpFxEbhDfqR0GFNWLMKXP5G+u79CZF2+SbzIHFzMvo7hkE4OF4iAVnulMPUUQRBqGs58gO/Zqo7XYCBhJQPOX7Q4WpihYxhhBZQfkgWb/ncPmBkUewbOj5hqp6jalHRQ66PHy0IM098yntNaLZVdsOBBI18Ndc2QMTfM/iRHngBaURg3Be2ZxLz313UUQ20wW9gqGNH7FcldCKBxtcwCTK+2H/TSEZozL/Pt/v7fBlLMEHDhFsMOxDg2O2KL0euY+JTI7iBBj5Cm3ykY5ObcQeN/2+sicg70RQzalyPCISdP2+uv+OJ8fTbJULmw== 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=HckM0fbTP73H1uWNe2kOQ9AzAH0jZg4sNAuF1mBzrSo=; b=VEQasmG+2Bsscp26y9pmebGSO0lRw71EJxDotGRgnv7ZGq+DZsAQMO/klq4rKFSj5cxIK3dLUiQZE3DNd1wk78Lb3gKDXnmOQtwHi6/yP4FLpth+XMK6NHvUjB+h6uUPbJbb4zsIjZDz81Z0G64eGiuYYtQrRfQbTqvYU/s0GGVnjifm/a52xUWoBAQDcMtrXqivYD1WQHr3vtrfJzqfHpGF/QvKYF2jztAbW6QyWtEQCjs3kGbmEmT9tUlei5+NrZQWSHA/Gw0OjUpMv3ZghqMaBs1E22o0Ar0eRrbdV0J1aFIFXJs2W5ebCNCfRaHXm982Zw7c1JO8Kv892xisgA== 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=HckM0fbTP73H1uWNe2kOQ9AzAH0jZg4sNAuF1mBzrSo=; b=bhHnP1fwqTv17IOmh3QvlB51rHhOC7ZhfaovkMEDAuaXBuJaqOl5RnV74IrF/tkNr1PSLgHAH2aDAoNnPh+78i0cOU/uGEomc+badlZYT38QYml7MApvMDown7pYfLvincKervUNropSdrpnRMYGxrq8kKF2Uog+4QDtzqE2h48= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from PH0PR01MB8166.prod.exchangelabs.com (2603:10b6:510:293::17) by PH0PR01MB7491.prod.exchangelabs.com (2603:10b6:510:f2::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.24; Fri, 26 Jan 2024 22:12:56 +0000 Received: from PH0PR01MB8166.prod.exchangelabs.com ([fe80::67b9:4671:4fdb:2dbf]) by PH0PR01MB8166.prod.exchangelabs.com ([fe80::67b9:4671:4fdb:2dbf%5]) with mapi id 15.20.7228.023; Fri, 26 Jan 2024 22:12:56 +0000 From: Ilkka Koskinen To: Robin Murphy , Will Deacon , Mark Rutland Cc: Ilkka Koskinen , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] perf/arm-cmn: Add support for tertiary match group Date: Fri, 26 Jan 2024 14:12:12 -0800 Message-Id: <20240126221215.1537377-1-ilkka@os.amperecomputing.com> X-Mailer: git-send-email 2.40.1 X-ClientProxiedBy: CH5P221CA0002.NAMP221.PROD.OUTLOOK.COM (2603:10b6:610:1f2::27) To PH0PR01MB8166.prod.exchangelabs.com (2603:10b6:510:293::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR01MB8166:EE_|PH0PR01MB7491:EE_ X-MS-Office365-Filtering-Correlation-Id: facf96b0-6199-4234-f1b0-08dc1ebbf2d8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Dv/n2n1id4jGOPpmsqzYbaouyRi7+e1VAI53PbKsRH5axh8ENGXOb0HmR+Q0ErfHt7MZBHNcVFq93tos0OupDcWLnAEqoKw5PBL1haQldX0hhxqqEvuwOxEKTeHM9Itv5bkahOfkNe385FgLt8TffhTWq6c5TozM3GdkMpHx+Vlw9PN5QY4EJdytjABw7uF8G+Y5MsRd3MX/fUzcDHnZLaSY+TFFXkn9zCkYtAcc/aLLB91WgVUv1yeGbAUd9V02Q2WBgsKB/8JpJhfWSWsBmpd/eOBqRi3+PFun9ODzZU8/GEqRGcr0UXav3fdj46lytnSyM3oDs/nmDVyw3nos8NWPQyvjY/8Q4A+PgUX3VuD22MqQFrh85ajHqrDWAPbRL0iav/e+Dgs6Z+sb4MmON0v09UQsgjZ2miFOgUZ2IQM5cAEa4r3gpbAOxJGvgINVbVTpXJ7HyIfQUA9kGlkfuxpBsonjcqj0Nh+a5sByHxujHX52J6XJvu9Hwreqy5Ft8vJYPcJ1U54lpt7er+am/h+OHEbmYBNXlckWFwVEBMBj9wUZORj3LPjPxQqQG7I8KVzYIwqSarn7BuIlXNxIonJMFA+g+dautSDS6HUaiR2zs7Licr9JkNDsfn0uVbOL X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR01MB8166.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(39850400004)(136003)(366004)(396003)(346002)(230922051799003)(64100799003)(186009)(1800799012)(451199024)(5660300002)(66476007)(4744005)(8936002)(2906002)(66946007)(8676002)(316002)(4326008)(66556008)(86362001)(110136005)(41300700001)(478600001)(6486002)(1076003)(83380400001)(6512007)(52116002)(38100700002)(38350700005)(6666004)(2616005)(6506007)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Een5PoLojZE5Ief4GI5i3M3tkRiFB5RbZMx7ZBqh8L9D1CpV+P7lxo2fKyH/sILmBdRs/6gz6bUlXAcRZaonJuVKpcUYnFquviHpSCxvchmczLXprknxh67zILVq/XNgoPles/JjeBBo17RHCk8xVUWlIVb09TdT1qqlp8I/8L3DN24rzOL8HR0SKlb8wZOn0nH3MaYuabZUYFJAi1sovuTs9Vdst4ejDlqdqu1IxVsU2GK7NDDpVrYVCoIT1AWqYQT5s2uNO/kGHqzF99UtuGPVQ0e+i9mkQyY3qCB1Tw/PSJ5EVQkloRekUP4AVABBfmx3UDrLQdses023283nIv1P8cQRJYsCuGj/ckQ2NzkIT+zutzi9hqqpJWrlrm5Yfl4xaThO30oEiV7RhckDrvP69hCLRnYvOK2M3kgHYDIIx7mHZkMj1eNLx+a0weLNxv8FbYVIz4PeIFpMdcP3oeBY9MNn8SOneSHZCXlxgf2OC9oUA5ClmDYSIfwKIEz1V0RorlmtZ7S8Yll7fufykeBNRvb1jx9jw3qs/fnKYYAgczHv4Giq1uPYZ01djakpQ2CMXNGQybkUrce+WkvEDrinOix61KJ9B8TQMtYXn6pFNXhu84L0SG/U5FjsZPRGPRNC62g5g/u2T/wH7VKM/xKUENQ3hbfz5910Td++LD/AFEg187noYJGGdh/gWS6v9N1MrgereCDAYu/d/RdM5ihqEWjvyM3WE62+MzqHa+lYknqE9A9YiMDjmu9IOUsve6PqbKQK6GwbL75ZFeAk2w6I0SDI0YrQdwUpYxXUqKyqLpZwh3XSzWmoKaz5bkeuXtSv+YSL4x7zTEuvun7hk7uRs/G24x6/BslUeUMmEIFrBR6zYfVhoTp5wh/+UJgSqvcx//5msC354JKKYScVG3O4kfJUJTPWdBoKYyyvQGe74vWf2NwDY9nAr7J7YxQV+RxBdNymf3kE5JeixANODNkQnsuOHpY438ru94eK+vNtiOXCQll+faYcNrRjoO+KJf0IuGp/JMe2ANJHQjtvxn8oumutn3X8Qp8gm6SaYJQpI+VqQJZRcCe/qaQmCd2nEg5QjhXrjIYmCls9SfWdRRw2yXNHMO2OGalrWuqUG+3+rdpBk8kGDFsrIltccLgK/IDYjNKYsjpzg8fPaXvf7i/gcU+wwzw5DEgtUWrNAJT+C7lnwIF8g9V779O6JX4umIRoso6THbevX5jZwNT+n+F4+XNFYCXErcdJ3rGlc9yhOeSFxBXD4JtXb55OyIeiYMMF6PQ/ADUL7wdBJewRh6RhM621df2hLt7AIcNZyXyI7hnPYy3K57xDyEwsE0iBmd5vE0fnndl9fe2gvxQbQ+rmasJ5nLmzgRoBrli0yvtkBakRi8/aK3NahLBRgGqASLreEbM483zm8IaWMSeYCZRw4vemYjL49PYTpFpVRKkeNAxeRwrCBK1E8/ef572K09tM1gkthHPPTVgV2EkdGBrD6Sw46hZo3Eg9BYvTVJHG8/0pVrznr9J2wYCskSu4f8pc2cdNX0CBOdrLzrp1v/HzDhsj6WpwaKMfGcDO7bIz4jUPTlP6Gbd8aBCGck/YKffAL8GpdAgJEvs4opfPf+aKq7zOt+Sp9gZ1/EwKIx4= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: facf96b0-6199-4234-f1b0-08dc1ebbf2d8 X-MS-Exchange-CrossTenant-AuthSource: PH0PR01MB8166.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jan 2024 22:12:56.3737 (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: McmEZaiFgCXiWZVrYNaTsxB+WhzXJkPCU9hYFv6G0S3BfQ9QRjs6luWkMefs6jgu2pbHDNmmsGO9hRJJc6awOyXw+U0hoTqPr++023hLrxoXnwUuAq4DIdh+QVshWQw4 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR01MB7491 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240126_141305_053159_63A764B8 X-CRM114-Status: UNSURE ( 6.75 ) 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 Tertiary match group was added to CMN-650 and newer implementations. This patchset makes the parameters model specific to support properly various models. Also, wp_config registers and filter groups numbers are decoupled to enable the new match group. Ilkka Koskinen (3): perf/arm-cmn: Decouple wp_config registers from filter group number perf/arm-cmn: Add support for model specific parameters perf/arm-cmn: Enable support for tertiary match group drivers/perf/arm-cmn.c | 118 ++++++++++++++++++++++++++++++++--------- 1 file changed, 92 insertions(+), 26 deletions(-)