From patchwork Fri Jul 8 14:00:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12911204 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 92272C433EF for ; Fri, 8 Jul 2022 14:02:44 +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=ejw6B0ETBCRF1L8KzhZzihiHkLwRJH/W0dowZ8WH8e4=; b=b986q7UvwgOaJo 5TxidbxHASYXL/uQARIJ/n2QnprIfk7zbpAs4Vy0Wnyov6hDtOdpNtAI8CbSUC/enIMgpVkFw62Zq xbaxE4gv2AHXXW4rMojPwtoRzPMOMAcBqqVfeqWh4/4zzdAT+z3/QNx9krJMQ91YVTG+Pqf64XjDD /drDBThmhDkSRysVSupot0dFipQe5B1gM1eZjKJZn2m/bh0WRqVKzdNPCUF0312O0tCrECJXK3Hzi 9wUpEASziJ9jnzz6ejAhwWzZhfXX7iEJ34aLGlu1eu/jz/YLRF6mmfwD38gPSfpcrmsHMt6FVsVTz P8UczojHNuxKY4wtfIjQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o9oXn-0042Mi-Bg; Fri, 08 Jul 2022 14:01:19 +0000 Received: from mail-dbaeur03on2076.outbound.protection.outlook.com ([40.107.104.76] helo=EUR03-DBA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o9oXj-0042J2-7D for linux-arm-kernel@lists.infradead.org; Fri, 08 Jul 2022 14:01:17 +0000 ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=CY+Js88OoEMKKTJDOym9cs9bXSeHTzp5RfHzLQyk+D36Ks7ob6hD9hCoiOCX6s1YhsE7NZEhkHLTGJ6mD4PqELGUURrsW17KKOMjJRRWy+II/xOUk6dq1Lycim/6mNncGpIP4GLmkm2PwhSUezEvpNzvvFACr0bq0mCpOb8XI6YMH4FJTbceWE/zOPN58XJz8OgGCULbG/Vat49HMm4jqbrXZUAGCoG7kj0wk8Pcnc6rKvZX9f9aUWFCtkmYwf4rpJYWwAEjFU+AhpKyTJ/hewAp/DxJFPqrYNbjn2PXtNrVBbHQducCr1YhRjQbjDpT69KmMR9iIipPbVNZ84uDLQ== ARC-Message-Signature: i=2; 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=ErkXuTZJdFrqnXYljU7TBoknCboAhIoKTOSC132MBmQ=; b=RDuRwkEnwwdpdJwo76AvG3kuSYH/nERTAt5GBAESqj82nRAa1Ul63sbxSN4vJ4mwyT94fF7YQH0Oth9lcI8LzIthHzmghQ7qgnYrUoCl2q0FBFngSc9ee3Z7atGr/A/JdX3LRqrNNIlGzJGHQIPBp0nf3SfSFVNFt3vQu7/Uy9NGlXecjaAgY46wxRwjnVy8OkLFiRA1IYs4OT/rXcSUEe7/OPZhWE5kZwOMU4OLUBt0/NRKrjzh7Y1fCDNDO5gxWg1SX/vwS8jTGjj84HL8OHm3v859cwKDBXBv3HHMaIWOIZExwjNija4jAmKIblswJOxM+do+Ve3BRINvxfX3+g== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ErkXuTZJdFrqnXYljU7TBoknCboAhIoKTOSC132MBmQ=; b=0L87rpeF2sPghdXgko+UuAIyUt7uTH64cbBvhbe6yDHBCdy1x+uJIFvVJ2dmbAxH75l/oyAm7GjzCDStGyoNrCel4xz1yBy1DXfEpPcbK2R6u6QnoWDId0A3kD1yfa+I3dQ4GxV5h6NeVgsKK3nMLumeOeiTziRoQJnq7t7kCuE= Received: from AS9PR06CA0121.eurprd06.prod.outlook.com (2603:10a6:20b:467::12) by AS8PR08MB5894.eurprd08.prod.outlook.com (2603:10a6:20b:23d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.20; Fri, 8 Jul 2022 14:01:10 +0000 Received: from VE1EUR03FT008.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:467:cafe::29) by AS9PR06CA0121.outlook.office365.com (2603:10a6:20b:467::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.20 via Frontend Transport; Fri, 8 Jul 2022 14:01:10 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT008.mail.protection.outlook.com (10.152.18.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.15 via Frontend Transport; Fri, 8 Jul 2022 14:01:10 +0000 Received: ("Tessian outbound e5f49c5d38f9:v122"); Fri, 08 Jul 2022 14:01:09 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 3e7d8be285695aab X-CR-MTA-TID: 64aa7808 Received: from d12f3f7f0f01.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 0ED47C88-AD0A-4A0E-A356-455C8DBB612C.1; Fri, 08 Jul 2022 14:01:02 +0000 Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id d12f3f7f0f01.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 08 Jul 2022 14:01:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m98Z+4nQUcdsBVghCFGSK0VKUQr0weThT1sGMgP2ZLuZ/NQrFy7jqenVsMd2FKMMfygE5gcRuDJW9WlqwWs7+6FXB5d+rM8ZGPW7rbi3D18W+T0hF5byRAjRa6AqcVeXGAMvP2b9WHIvDQxtisrvT3vucou1jWZLwcMGqh0BRw8uRXGwMUmVtzJxpr/pEK4raZxerT4mg1bzuNikBAI4Ze/0YgWiXnhdjXMeuvscjW07XhZ9x/G4/ZVJz4g4X2GrEiCscTugvsD44NFOEBEhLjEwXZGrbp2Kq0UcDMzM2iA6lfZvKoDLnIeQHF94vSfgY0CdhIaicbcOVzHtr87Y9w== 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=ErkXuTZJdFrqnXYljU7TBoknCboAhIoKTOSC132MBmQ=; b=XnG+KS+7ofs+5Xq11zvhILs3qD3IaIpijOR4lBGgJXgq99YgbHtj/hYz3a/Up2j6tD9YL2IDIe1hrRDXDz8nmDQBwwvDV4zY7CQIJ60BHi1v7RyQMR+mO8UvHp1yf7p6v62kERpko08SmcxUZ+jgLj4yzSPzr71Q6aMkzubOpQ84WOF0qS51DLJcr3+ukNcREgJgMsyBu8NTadwqbpSjZ4fAcBdh0OY41pXxfXyqeesEgz07XyidXjBGIOeOFl5mei+/GTMVACbWkpUy20RlhsiL31UjccZ3WseAnq31SZIRTEsrtLp2/mo3ji+iKKxLJPETC7rN37+qLUSWhrKeOA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ErkXuTZJdFrqnXYljU7TBoknCboAhIoKTOSC132MBmQ=; b=0L87rpeF2sPghdXgko+UuAIyUt7uTH64cbBvhbe6yDHBCdy1x+uJIFvVJ2dmbAxH75l/oyAm7GjzCDStGyoNrCel4xz1yBy1DXfEpPcbK2R6u6QnoWDId0A3kD1yfa+I3dQ4GxV5h6NeVgsKK3nMLumeOeiTziRoQJnq7t7kCuE= Received: from AM5P194CA0013.EURP194.PROD.OUTLOOK.COM (2603:10a6:203:8f::23) by AS8PR08MB8248.eurprd08.prod.outlook.com (2603:10a6:20b:522::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.16; Fri, 8 Jul 2022 14:01:00 +0000 Received: from AM5EUR03FT028.eop-EUR03.prod.protection.outlook.com (2603:10a6:203:8f:cafe::34) by AM5P194CA0013.outlook.office365.com (2603:10a6:203:8f::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.15 via Frontend Transport; Fri, 8 Jul 2022 14:01:00 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by AM5EUR03FT028.mail.protection.outlook.com (10.152.16.118) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5417.15 via Frontend Transport; Fri, 8 Jul 2022 14:01:00 +0000 Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2507.9; Fri, 8 Jul 2022 14:00:59 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.9; Fri, 8 Jul 2022 14:00:58 +0000 Received: from e124191.cambridge.arm.com (10.1.197.45) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.9 via Frontend Transport; Fri, 8 Jul 2022 14:00:58 +0000 From: Joey Gouly To: CC: , Joey Gouly , Catalin Marinas , Will Deacon , Kristina Martsenko Subject: [PATCH v1] arm64/mm: use GENMASK_ULL for TTBR_BADDR_MASK_52 Date: Fri, 8 Jul 2022 15:00:56 +0100 Message-ID: <20220708140056.10123-1-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: ba65ed5c-6545-4e18-ab27-08da60ea4fa7 X-MS-TrafficTypeDiagnostic: AS8PR08MB8248:EE_|VE1EUR03FT008:EE_|AS8PR08MB5894:EE_ x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: cmvnfo0skqqoQvPNeseHj9NrlDuWapMHLoRixkiDELrWUihyjC1ISKHnOPw/YehVYukP4a3n5Zskfm3itghJByMS3KACEznYSYPHBg8s1pnagUPJ/Xgxk5YM4qwRpvubz7RxEZZ2BY264IS5lyhNoCpDP/I40q5XmSLQjvoejCLeof1P9n2s0Doh0+GEY4qFAFeOVNk3BXoCRVylcjodBDMGdGOQrmVX8On/qZGnS7Ju+Vb/OS6wItbEUQ/Fd6xDFjJ6OWMIGP68lB8J1KoIWh00Jfj9JDdxsnCXrJ/+QHZ6/QSYLMjHuvYeMnCdOvOU8DgaEt8AmxhefSXjvgM/vqnQTZDyCCEp6A26gU6ClRb6jMBKNaa98Mb9zwukVTffS8ppdobo0J4EztP6i17BC5aiYjyT0kH776JHN4DwouanhLtKlcH5wy3K+r00m160nv6hpW/4WMdQ2mAOcn1Cee4Z8eZ081ltu3Fbm9dZAp3xXxxb65AsQEdfDImpwZu/dCkZJu5WsCFXpxA39lvfs7S6ijSystHp984SJLfSFfeuK6RbC7nfRhOKnusJp30huMPTbo4eQpbqRmF0cev/TSzuwzaA4/OCBekekWlTs0txwujWftDcdaRBH3CNHMCnpiuSKbYIFkQnnoQEdbMb1oBDUJw6B1iQEnCZrUrpLABudFWbd8eJ2cYXb2MsTkgZUygRpfVuj8N4h6E/gluNs5+WfL5ipdn2z0jL80XbYOGwYMvgqcLst0Ygayfg9Fpzv7K7vcN2SnaHI2sf3lPmAtnPoV9461TwNmjEHnqe8/o5fYAqDvupp+Hki9P8K9r4FB0wZnv259smyJehxivblO3dJI5xqyBgN+2oph8Mh7WC7nr3YTzEJasl1eg/DliH X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230016)(4636009)(136003)(39860400002)(396003)(376002)(346002)(46966006)(36840700001)(40470700004)(7696005)(41300700001)(966005)(26005)(4326008)(54906003)(478600001)(70586007)(70206006)(316002)(6916009)(82310400005)(40460700003)(81166007)(86362001)(8676002)(356005)(186003)(5660300002)(2616005)(1076003)(83380400001)(82740400003)(426003)(40480700001)(336012)(36756003)(8936002)(2906002)(47076005)(44832011)(36860700001)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB8248 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT008.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: e9f74dff-7b31-4cd6-b461-08da60ea49e5 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: p/vF7iJQHNHbnkT9CtX1UDtMGFVh8D/aIGo0ah1FiWxfhIjsdGjNKiq1DQAIffJ+FsKJUm75sYiF0DW34cRLK8OZXlWSS6fRP0ZjnxYwobfFXyPmSxTXmdNd62WTZiIihIQ/WfHWUr/wd+Og1YLNZ3f8Whx/giR7VnmfKYlZYq92fyksKTRvkfwlO96USUaz1NGFT2zTkYuF4GwjYRcsNNILErQJekAFG9KngIYLkgP6dVP9ZjWqOXtPYz0vw17L1rAOQdGu3I5/+fM50i8wi5Tr6jafbP+xXpzUcfr6nvBH/vF/+Bzei1/p0HhD/eNpy454gczFKavP0T5JTtgPab+HRnW3g1Zk3wJR7aOHiQIuGmQ0nH4+2SU8ZqecUekPj709/hHQTuPoEU6T4fSWbpsUPIfvmivyNRVbJgBtzECzw+HzGDlVby1xO+BPJyh6dCUgf4fVC06X0YWz26F+SpqqUI+ncuHmJrLyj3ja/i4FzoljFqqe0EUbSVPgzTPvC35/TCKuVZZm90O4eM0/7GjWMR0tDPasTZT8/XkgmqYAM8ByuvfkSuOkMfQ0GcYo6vpObkEeXmuhabbPiETkZeBhCFKpb7dEa7DOQv+8QRKp2oDNjTbuLwlFJmKyCh1RZFiXednDSaipJBN2tOS+gATtjOzar9c7JG+zPR/lux29cdXLPr2xf33Lwl3fPjZSyl0pDPk1Rilyvr2ev0h1v1jeoxJT0ivx71GJFp31H1bhzRUTq7Lw+Hn3dCLYsjlp6LGqBNWm0EwDu15im/gc5hYAov1sU9RNPPV35mYRjY/hmu1UeaxnlR+0Gqf2IDs9X1VXz/lrtu0s1l4LjfTlNfrQ1bocKloN8OP7tchnGO8= X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230016)(4636009)(39860400002)(396003)(346002)(376002)(136003)(46966006)(40470700004)(36840700001)(83380400001)(1076003)(426003)(336012)(186003)(47076005)(2616005)(81166007)(36860700001)(8936002)(44832011)(5660300002)(82740400003)(36756003)(82310400005)(478600001)(2906002)(966005)(4326008)(7696005)(41300700001)(40480700001)(8676002)(70206006)(70586007)(316002)(86362001)(40460700003)(6916009)(54906003)(26005);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2022 14:01:10.0254 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ba65ed5c-6545-4e18-ab27-08da60ea4fa7 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT008.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB5894 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220708_070115_291291_540E7208 X-CRM114-Status: UNSURE ( 9.94 ) 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 The comment says this should be GENMASK_ULL(47, 12), so do that! GENMASK_ULL() is available in assembly since: 95b980d62d52 ("linux/bits.h: make BIT(), GENMASK(), and friends available in assembly") Signed-off-by: Joey Gouly Link: https://lore.kernel.org/all/20171221164851.edxq536yobjuagwe@armageddon.cambridge.arm.com/ Cc: Catalin Marinas Cc: Will Deacon Cc: Kristina Martsenko Acked-by: Catalin Marinas Reviewed-by: Kristina Martsenko --- arch/arm64/include/asm/pgtable-hwdef.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm64/include/asm/pgtable-hwdef.h b/arch/arm64/include/asm/pgtable-hwdef.h index dd3d12bce07b..5ab8d163198f 100644 --- a/arch/arm64/include/asm/pgtable-hwdef.h +++ b/arch/arm64/include/asm/pgtable-hwdef.h @@ -281,10 +281,9 @@ */ #ifdef CONFIG_ARM64_PA_BITS_52 /* - * This should be GENMASK_ULL(47, 2). * TTBR_ELx[1] is RES0 in this configuration. */ -#define TTBR_BADDR_MASK_52 (((UL(1) << 46) - 1) << 2) +#define TTBR_BADDR_MASK_52 GENMASK_ULL(47, 2) #endif #ifdef CONFIG_ARM64_VA_BITS_52