From patchwork Mon Aug 8 19:54:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilkka Koskinen X-Patchwork-Id: 12939101 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 23206C00140 for ; Mon, 8 Aug 2022 19:57:03 +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=BjV+rLYq0cwZ+4CgzqDE8ls8pzSFHGx30iEaij1UhNY=; b=iLmMw8HXqwURef Pi9V4kaayNV7AxMqD1p2yw+TVb2YLTF2PipYQ09nhoxnBUInkJqGuURKr3/MIqWJQz5UjGh/Xy1+K DSqGBO5CMepgOfkaK573hQGH5YsJtGM3EybJigZG6xQ23i8rOrYHhKJg/pRaEoYCAKMW12JPhRuT5 XR6/7Vg6eSoQcbQ32LY68xjPMrQrJ3qQKtTb9B3vEpd0pfnWdZPVeOPLMImMXJP4BLDwvxk/eZH8d +Pqu1PfXbIy6YQ21FHHNIWv5TDkoVAsdU0R1qrfixTrFUoExSQday/wO4ounJwhGvyodYhK/KKAvi 6y11WxDoIwZCgnakNXUg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oL8qa-00Fl6q-D4; Mon, 08 Aug 2022 19:55:32 +0000 Received: from mail-dm6nam12on2114.outbound.protection.outlook.com ([40.107.243.114] helo=NAM12-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oL8qW-00Fl4z-PN for linux-arm-kernel@lists.infradead.org; Mon, 08 Aug 2022 19:55:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ka5Io++nI2OP278RfnWhoLoFE1Plzei4tZ5KV4ta38/HQsDM4kEDIK0mpi3Yrx/atxVUK5LklUnFAJbBdRGZnPTPw75R1oS7W7S5oLlQkQrulgUDOaRBfvp3MoLLQvmemn/nDZQkL8bQIbtGdO7JLkz5fyIxjFeFKcvqbTlGTR5DUbbtLSzPBOPWNxxhTfd0vd2Ioe500bKkULWf7qAqtPzMtl9F0E/he9g6cPOxW5ichOEwBUCqqTaw+zTR0K/UIHuyM7Dqr1ZnkzSjSMAykJhV6rUMsv5aJRU3rsmonI8bSqqewyDYGV1zEY3zsxdtsz7O0jsET3y5AR0GKp5ruA== 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=I1IR2mHXp06ntq3cFrwwsjSHyTePdFe1K2KZL9zaMgM=; b=KDS92cLtbhI+obyVKvAsVSfkhco/93HKC4ozJQ0MRp52CIzfLgxy8S6IWzSi5IMjhphGnDuWVcV5KUBn4FjMGLK4cYrS9L5VwCue3yJASSAVCG2vzyzINGJVBry8eh1HNxxGycXLBaWYdp2Db9EZP350FcmqLmWUzPBm3/QO7VuFXwopA41fw/HF+KUDrsaP20RiahKZYTTJ8kNBN4BLwTpANCnX3Y5cqAxJ4/DfaGklQ4SYszafY/U9EYweNvdZxzKo+M0eCb0RaEODyL01RsaoHZO9JRL7zNbie3BaZBqHzSDYEhOdg5/8C8UtUnY7p1XHLxSATmmUFkg+8/FIcw== 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=I1IR2mHXp06ntq3cFrwwsjSHyTePdFe1K2KZL9zaMgM=; b=nUpUTPBiQXkcPyQ/84YPQFnyNWas6Ua+FjugnuWecTP9tfsSHlqyNyIO8i5oXUXg690WUUqyJBYwdZtXfAeo1g3q5g1Dq1v8i7x/mwOmAGwO4XIzQsmgzGEcDZ0uo6z9JSm3IKyL+uv2jlDKphOdLKwLqfhWk2lQnZ+dfvwSJX4= 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 BYAPR01MB5096.prod.exchangelabs.com (2603:10b6:a03:1d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.17; Mon, 8 Aug 2022 19:55:19 +0000 Received: from DM5PR0102MB3590.prod.exchangelabs.com ([fe80::a0d7:4912:3c82:b0aa]) by DM5PR0102MB3590.prod.exchangelabs.com ([fe80::a0d7:4912:3c82:b0aa%7]) with mapi id 15.20.5504.020; Mon, 8 Aug 2022 19:55:19 +0000 From: Ilkka Koskinen To: Will Deacon , Mark Rutland , Robin Murphy Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Ilkka Koskinen , patches@amperecomputing.com Subject: [PATCH 1/1] perf/arm-cmn: Add more bits to child node address offset field Date: Mon, 8 Aug 2022 12:54:55 -0700 Message-Id: <20220808195455.79277-1-ilkka@os.amperecomputing.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: CH2PR11CA0006.namprd11.prod.outlook.com (2603:10b6:610:54::16) To DM5PR0102MB3590.prod.exchangelabs.com (2603:10b6:4:a4::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6afbe557-4c77-4c76-f19c-08da7977eb94 X-MS-TrafficTypeDiagnostic: BYAPR01MB5096:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6oXlRgdCURVPRMgmk9ZHHPwEXoqhBXpReBJLnFyX+JDzoN3vxBlHHltn3MY8NNa+9IXa/MxsBOwDWpqF4cMLICrpXIkH+G0IX3eOCqNRXPelTG4zRQK9M5bbLHjVgkgK4DaNo7li+IheRmjMuMkis+Rya7ZOa4dLMIn8Ir0bqnp1pXjjlyQrFTrZLqZbZPYVC5hwyUWQwMHMU/pQjZvuVpQrB7ne9etS7hnwz3iP4inVGcVToPTw7Ftr5ZIG2v7+pTkHmJe35aAC9ziAtxy/LwjwHFNV3QrMv5EOJWj6UFmVZkZXTUIKq4AYCnAWZNQHHLCvhCf+1+OUP/s6BQHvdF2psY76aqchq/X5DhJ7QFeHNTHj7vO6mdSHBNfMmQ+4jWqvEKVI45QVR0Rd57K/Fhb0Xv1EOPgoOCS6ULzV0yjEhph/vEVjq6SUoueKuKopiKGug1F2Oj2upRFlaMWaDxS/RKai2JVPCvexTdq7O1gFkjhwJkHwleFlpENBSTzDPy1JJrBPPZXnrfS3SkgYvTn7L396xYe9wloYnsLVW+YG1g/Z1q3U96if2WtMMZNIUK9ljFb0AczrT/qStU7f5qIEelbHOAeVOOuv9qJiezYJoofb6ItI+DKvn4ZMF4xF+G9+zDPQ5SeEEYZu9PSdhzWLVKgF6jBJTvbTKvEOCLrKsRWZc2DwsvfW9WfJrqIadb5fOIeQ1AqcQa/oXNtRA8CZ2mhwALXkT/VlH16ZiSFCztnlgZW+pLV7YRT4nJ10kcykmIxadDRZF6/x0lSnSrtPBcfjfwsfWp2efKbmVEo= 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:(13230016)(4636009)(346002)(366004)(376002)(39850400004)(136003)(396003)(38100700002)(38350700002)(1076003)(186003)(6486002)(2616005)(107886003)(26005)(6512007)(41300700001)(52116002)(6506007)(6666004)(110136005)(478600001)(86362001)(66946007)(8676002)(4326008)(4744005)(66476007)(66556008)(5660300002)(316002)(2906002)(83380400001)(8936002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: zQsHamR7bz/zmujCvSHe2TNLrPbt7y84wpAGr1nLaNPstxoEaYENa04zRw7/ok66vUAO7piticRqctnp2OLXvLUU9vHczQQ0cUosxUl/6+mJrfi3nZyEibLziOTGsND3ZE6J83PpN9fmTz7uZQNeuhjvQLp5qXirV4SyIZSyj3xdUCs5r5JSEsSdphvQF329dpbYcgkgXjGgbwh83vIeiYDqxqZ5IHgYST2Bh1D7su7ejJZ9/BsvgJKp78+9HAKtbtZv1ctktoe+KkpNWGuA6vQbjew7gOtsEyBko9k59bKq/Az4nSJdHZwUEbRvY3M+dp+tzlBrj5VTC46J/xnjJESVIDqasu6vGUfJdzIWKa639izWSvjGqJmF7gz6P+tAppdunuMu9cretEyIuHpQUS2HMIjsm9UTz4MDtQ8autdTTxGHDrpGAnmFZtC8F3f2puTSqDp9ucwoIAuq6TqAxu5hp3OJJeEMok5M/RNw/ET0stoVzook9f+GO150nO/uX0wbwXH6flUYjAjjbXol1AOtEr/ib+7iL2vaODGBZkQ5MmYYe8ApQAcGBGdd0bSw6LQRDi+QLA9ecbz2wp2PN8k6K+kLIPJ3yauLX3/mgQKLQTpaoKIEWyOsEcLER2QlQv2WOcvwcmNp60eClFrL8P76mLS05enJIlDIgKe9CpyMP7kMIkQaWCshwCOZ57xd82tutFQB5kbLrVxgs+M+gODcCMN/moKLO/u9Ouo0QPXu/IVMgQyHNUxdN+LYv7C/JOVrHDbtIDR3wBVO5nug4uxcWi2vBuJzP5m133OoMGH8iTq38rKBuziU0pgrsgCUYiRJxlE6fSXhPEhepvP7RGXgv+bJoGU7pQmmc//PVT6a1RjhYK94JqF8ccaISzKQXadDutFlV8m/JoVoPtHMx/XFjs6lE0NCdTUwW3yCrmc7+nXFeilhvjGTl/AhKVTT0KqwT0ZHmx3afb77/0JBMIDFvgmKFBnMktFOC+beQw+nXu/tPWRVV9kcGdEbAs4aFi/q6BIrOsf9jkIcgtLny5eQaFVHzlMD31nGZr5Uy1Mk0SfAvGOMiqM2x+FwKc56jhsyyAOS7eK5daWpatQCKm3qXgf0ZbrXfFMpGbDca51IMb1tsWtBbtF17GmMxpWcoA66r8DOApF3tpO25hBKXFVj4tZkmhg+UR/HZ/EIJxLzUUeFMHD4wigwLAl6LTBhzQIFMJK0BgaAh+k1Icj1KFl8pbpDvESMY9itr8ALcGIRNQzIQq89lwoBuWXkljnMo9L936KPn+2XDygmy20i67jC5g6IC2ynFCkD+DL18x30UMAW4k/DeGtiTyPy4QCiQJ0MLcjvoJlFNFBdWwGBXetxonGeU8iDFKzAa4w+4h1youekCmS5aVrF4WBWbe665uhE/9tYQNMUEOlg8IagAO8clcJcbPBbftRaSU3SN9Shqb/OjgaDigXDswBJzpM3htAH57N6jCfiZ48A0eXBwu0JqOrukcSLgy0wxvOFhnKtu9nEVEcVm1LutzLmHt0qMtAvA4x5RkPxLCbq9gDvSXqtHpJbAkALWYSWp9zhtHXbIIGbMIVy9A5nTUAWEwTMzKehbbFkFyUlR2Unlpklew== X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6afbe557-4c77-4c76-f19c-08da7977eb94 X-MS-Exchange-CrossTenant-AuthSource: DM5PR0102MB3590.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Aug 2022 19:55:18.9634 (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: kbzOWNmGz1WPorYNLZPqbN/gXoteTfO1oRCjJAm2SBMPt+e9Y/LNXmD9qkuPf/tNVj7gQ8Y4tSY7NgKlzNm16hK8q9EEj33EBJ4iXHZZ70lcMYrYRv8GHDN01A072TmD X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR01MB5096 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220808_125529_097592_C7E2356A X-CRM114-Status: GOOD ( 10.69 ) 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 CMN-600 uses bits [27:0] for child node address offset while bits [30:28] are required to be zero. For CMN-650, the child node address offset field has been increased to include bits [29:0] while leaving only bit 30 set to zero. Let's include the missing two bits and assume older implementations comply with the spec and set bits [29:28] to 0. Signed-off-by: Ilkka Koskinen Reviewed-by: Robin Murphy --- I have tested this patch on CMN-600 and CMN-650. drivers/perf/arm-cmn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/perf/arm-cmn.c b/drivers/perf/arm-cmn.c index 80d8309652a4..b80a9b74662b 100644 --- a/drivers/perf/arm-cmn.c +++ b/drivers/perf/arm-cmn.c @@ -36,7 +36,7 @@ #define CMN_CI_CHILD_COUNT GENMASK_ULL(15, 0) #define CMN_CI_CHILD_PTR_OFFSET GENMASK_ULL(31, 16) -#define CMN_CHILD_NODE_ADDR GENMASK(27, 0) +#define CMN_CHILD_NODE_ADDR GENMASK(29, 0) #define CMN_CHILD_NODE_EXTERNAL BIT(31) #define CMN_MAX_DIMENSION 12