From patchwork Wed Sep 27 14:01:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 13400862 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 690E6E80AAC for ; Wed, 27 Sep 2023 14:04:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E6AD38D0086; Wed, 27 Sep 2023 10:04:15 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E19E48D0085; Wed, 27 Sep 2023 10:04:15 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C93F28D0086; Wed, 27 Sep 2023 10:04:15 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id BB2158D0085 for ; Wed, 27 Sep 2023 10:04:15 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 1323CB3272 for ; Wed, 27 Sep 2023 14:04:15 +0000 (UTC) X-FDA: 81282546870.17.3DF1A06 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2044.outbound.protection.outlook.com [40.107.20.44]) by imf28.hostedemail.com (Postfix) with ESMTP id 517D4C0038 for ; Wed, 27 Sep 2023 14:04:01 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=fBi8yVJb; dkim=pass header.d=armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=fBi8yVJb; dmarc=pass (policy=none) header.from=arm.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf28.hostedemail.com: domain of Joey.Gouly@arm.com designates 40.107.20.44 as permitted sender) smtp.mailfrom=Joey.Gouly@arm.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1695823441; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=sgV4AndAd6/NO9/4ic2BHYdTbhCHHX5oZ2R85t/amgM=; b=NGdGjxc2PoPTdu3tOhzGeYBRkJHijz43YD0dahek9HjEMynjeVlaCIUbFEeVgn5s59O63X 6AIvbyJLHedkYIWNIdw/5+gTzSpNmoTLN8bx++TWAtZvjUEYwDlNJpCwtuSPWwlu8iv7M9 J+CW7ZgNiOZ6bF5ZEr24lEodunz/TUo= ARC-Authentication-Results: i=2; imf28.hostedemail.com; dkim=pass header.d=armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=fBi8yVJb; dkim=pass header.d=armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=fBi8yVJb; dmarc=pass (policy=none) header.from=arm.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf28.hostedemail.com: domain of Joey.Gouly@arm.com designates 40.107.20.44 as permitted sender) smtp.mailfrom=Joey.Gouly@arm.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1695823441; a=rsa-sha256; cv=pass; b=t3F0f4EDFmJCnc8U84EdkMqMAt/Xjr1gDGmQJ60x7Wh4gzpz+TU6lvHKuTYOaVQwrDf/cM 4bI3txaZSTXGf0E2xtFhiSyGDLcCPXNngOuSKhAfQAzPevjKJR2ptkwNHE7S2+1KfdnoNO OtkFzUdQ+W0nb5lCRO66FSiTtBLCNQU= 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=sgV4AndAd6/NO9/4ic2BHYdTbhCHHX5oZ2R85t/amgM=; b=fBi8yVJbEZXVSIWUHLBgyyGhYw9wiKu9NfRQnbJOT2y1pvRUnexrLxHfNrlyUgxBs3ibPhf4Jn88n5hvhZbc3e2JPben+LA2qjU3uUakRYbOBN/XeILt/TLD0lrwmH7YknCu8fDA4TI4y36g5MFqPHQ0t6qSDhyF9NNSQ6ccCJQ= Received: from AS9PR06CA0011.eurprd06.prod.outlook.com (2603:10a6:20b:462::10) by GV1PR08MB7755.eurprd08.prod.outlook.com (2603:10a6:150:56::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.28; Wed, 27 Sep 2023 14:03:55 +0000 Received: from AM7EUR03FT013.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:462:cafe::b1) by AS9PR06CA0011.outlook.office365.com (2603:10a6:20b:462::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.21 via Frontend Transport; Wed, 27 Sep 2023 14:03:54 +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 AM7EUR03FT013.mail.protection.outlook.com (100.127.140.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.21 via Frontend Transport; Wed, 27 Sep 2023 14:03:54 +0000 Received: ("Tessian outbound 6d14f3380669:v211"); Wed, 27 Sep 2023 14:03:54 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: e99df280e4da48c5 X-CR-MTA-TID: 64aa7808 Received: from a4cf691621f6.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 41CA881A-83E6-4171-8877-73ABDAA70DAD.1; Wed, 27 Sep 2023 14:01:49 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id a4cf691621f6.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 27 Sep 2023 14:01:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R5w23chlw+WPzhcOxhXesqVNDAly4nIVyV6JkxWWzEUHa7+fz9zJOPrzkygwrWl/4b2FZco1fjBBprZKlym6qu7PJ9Q/WFVdUwF1xBckMNkU8X5Ht7UVEQWKlSnjbaG18fyNPNKPKRN2IcxwncEEDDp2WtlJ+s4SJ4hRIWhQF4ZNJ2ailtlG1beTn66aD7KE+lhDqBvmD3ynfLgYFoJqFodBsqp7GYIWzgqPOtn9pscewE3XuN0ftr2OyCH7WaxEUvuJg9xRS39capA46UDdO6/DUQ75Jd16DahH38qLLxyrw3Kk1rfpBZ8ncffbULMDn0EXZUyXt5mwzliP2tjbnA== 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=sgV4AndAd6/NO9/4ic2BHYdTbhCHHX5oZ2R85t/amgM=; b=HwQ93XZqnHdxMcWP2K/O8OD5y4dkfsUXuB0ETWj+9+CsMz2PwhnFtexztmE2VqZNb3oqG2xSOvILBUHTYCOQcAXadSYlLjPxcrL54uk9fRRkeJiuh+NjM1nprm8Qx/l5dv8ue1ZASBgTFiuy8KbpndB+s7uvbL3K1PgPRj4ZqLuok8aTshrfjt+DEV5HxUc2cFw4USOV7PBJzijwJtyG1vTsmftGDaMJui8hO579vqK/tB3pqc9MRrsrPEYrI0yuH9lIUIYByDKOeNE/9s2jhVLGNmIW9QyO5yKOA+f7FGx85W3JpSRf4jTZgJgI+LjmrhAbMT2Raeam/qEj1G6BBg== 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=sgV4AndAd6/NO9/4ic2BHYdTbhCHHX5oZ2R85t/amgM=; b=fBi8yVJbEZXVSIWUHLBgyyGhYw9wiKu9NfRQnbJOT2y1pvRUnexrLxHfNrlyUgxBs3ibPhf4Jn88n5hvhZbc3e2JPben+LA2qjU3uUakRYbOBN/XeILt/TLD0lrwmH7YknCu8fDA4TI4y36g5MFqPHQ0t6qSDhyF9NNSQ6ccCJQ= Received: from AM0PR07CA0032.eurprd07.prod.outlook.com (2603:10a6:208:ac::45) by DBAPR08MB5655.eurprd08.prod.outlook.com (2603:10a6:10:1ab::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.28; Wed, 27 Sep 2023 14:01:47 +0000 Received: from AM7EUR03FT048.eop-EUR03.prod.protection.outlook.com (2603:10a6:208:ac:cafe::ab) by AM0PR07CA0032.outlook.office365.com (2603:10a6:208:ac::45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.21 via Frontend Transport; Wed, 27 Sep 2023 14:01:47 +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 AM7EUR03FT048.mail.protection.outlook.com (100.127.140.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.22 via Frontend Transport; Wed, 27 Sep 2023 14:01:46 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 27 Sep 2023 14:01:38 +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.27 via Frontend Transport; Wed, 27 Sep 2023 14:01:37 +0000 From: Joey Gouly To: CC: , , , , , , , , , , , , , Subject: [PATCH v1 08/20] arm64: add POIndex defines Date: Wed, 27 Sep 2023 15:01:11 +0100 Message-ID: <20230927140123.5283-9-joey.gouly@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230927140123.5283-1-joey.gouly@arm.com> References: <20230927140123.5283-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT048:EE_|DBAPR08MB5655:EE_|AM7EUR03FT013:EE_|GV1PR08MB7755:EE_ X-MS-Office365-Filtering-Correlation-Id: b2003e50-ce4d-40f7-5cf1-08dbbf6295f6 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: EwkC6Zia9l+fdtlOVKrIkAaWhHI9KECKsj0V4v9u+YsodeAjUz6GymS1ERL2soArq1640WpiqTZ7FPHzJDLcIcbwIEr4jakWdrTCwhs5AWterK5RKH65ll+TbLVOuQg4CvAlYelVB4L/pxDyP46hnQL50bYwo4VxAVYui1Pq+S55IEIJe/QhqiiyGew6k6ur17NV9+gq1SUimGTl7Yt+AltQbysB6PF6fgGRKcasBWwg34p3aZcdmo8H7v16TNYoMRnwxhwZykzZ8jb2KpUUCBaiFI6nE3N0Q05LAnwqRVTQviRhFzKNAc3k3GPrj5BJvKg/HvMKq3DO8IbJhQIFSR+f3ZB2S4r9TNHcaVdEssFHZwEFB04s8qup5dHpzSEZNxeTIOAhf0MRmFSd/My0UDTOG+BeWp3tnkAOgCdCpUOL1cZiA4LHU7pRMiZ5ppqHdfYKJOmiRjUNFmYd8fk1VRnq1Kari650hufAfmd7Zx/TCYxQNOTzCq7xju6D7MqeCOB3a0ofSHZtpuhUmfkj8x6XCeAvLNUjQPJw+w7x6ewwLtk2+3gswaanT+OEl+WKzCJa6kiIjx6SeTvAw+Gk/X664AZDmJmk5Gg0X51YYsoCFKlG51A+JAialu4zDkKrBwwI+LW+m9TuZfHWQtS9uG+c0E9xXDBU9kz3E8jbA5BJYA68jUQXWvCnlhq04U8rYjhDocYYRHdePpr+uLka+z3cUznYHXtoE9gi+qW8cFC/vJXnCmjJVUHUndWQ6KOl 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:(13230031)(4636009)(39860400002)(346002)(376002)(136003)(396003)(230922051799003)(186009)(82310400011)(1800799009)(451199024)(36840700001)(46966006)(36860700001)(7696005)(6666004)(82740400003)(356005)(81166007)(86362001)(47076005)(36756003)(1076003)(2616005)(40480700001)(26005)(426003)(336012)(2906002)(316002)(7416002)(41300700001)(4744005)(70586007)(54906003)(6916009)(478600001)(4326008)(8936002)(8676002)(5660300002)(70206006)(44832011)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR08MB5655 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT013.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: f727312f-2a1d-4f94-63f4-08dbbf6249dc X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ohENE1zzqYLuETzv3h1WlyAtqgqQdpCNkGEXcQ854RCIc7BfXQF1JlGqwWdM8kdgAXBHMOoSirGA7GhoNOhAsYvPeMPZvs0/ev9m9eQ7NDwQdkActYe8foOsMep0ZPBjSmZd05nbr1Yahwwxti69Y6pp5hyIH+0CH+1AqUsm2UM9Pfhx7XazgbHmac6WkRIJ7QEec9/9DTs6iXSFSMGqW8/i+2JECiNBBB03u9P/xucXG2DX/PQ+5hMM4aMqrGy/ilKFmyLMh7KIyGx9EaLgMQSfntMgEfYOrs7jbwlc4MnPUfTRn0Py9n5YD4sv3krtnxi8s0ZQSEgGAxaaPlBOhMw+hHTSgnY8/T5m17omFx4KkdtSWLVs4UsyxtrNTmCGRywPDYiW7TK3Ww6Z6EBBE9yFSgEg4KTTcclHOVDC20JcqmKs6k7ESEc4ZsHUzfN7XR/fxsdh7PggQR1xERiTF8Ea2gFDYQLMHVOnkJjJfrykObfyTlt2snAiE0pMCJumg++6/vIPkB8POkY0qBuvQysAlUFW10I+dezOSvqzXf657YZRz+xhRPt4yiIeTbWkOk/bJtRa0J19NLCrHxPQfUAiFq9CZ+rIV78+E5X9NV+zLBJTviMXDM5rTOA9qaok4Wni/09YSNCZnb/4nYtsu/eMNW/ujVXEq+KrohJ9toc9cdIoLYWanJJPcgjGV5uPNpMqeoiuJz/HuJhY9N4gwkN4UmljeTtw6Axirhsc1bz1gyx1Tg9QQhCx6J6m0Zv9 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:(13230031)(4636009)(136003)(346002)(396003)(39860400002)(376002)(230922051799003)(186009)(451199024)(1800799009)(82310400011)(40470700004)(36840700001)(46966006)(2906002)(36756003)(86362001)(40480700001)(5660300002)(44832011)(26005)(70206006)(54906003)(70586007)(2616005)(336012)(6862004)(107886003)(316002)(1076003)(426003)(41300700001)(478600001)(7696005)(8676002)(4326008)(8936002)(47076005)(40460700003)(82740400003)(6666004)(36860700001)(81166007)(4744005);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2023 14:03:54.6239 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b2003e50-ce4d-40f7-5cf1-08dbbf6295f6 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: AM7EUR03FT013.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB7755 X-Rspam-User: X-Stat-Signature: by7ddqf1axq9uuyuzhfkkzq4nm9p5arp X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 517D4C0038 X-HE-Tag: 1695823441-44627 X-HE-Meta: U2FsdGVkX1+DWbwmw9FFX/IBUsYPjQuBnHsp04aF+Yzzmw7CFMvOe3q4C5PhRin4Wh2w6JbziDtuyDfcBagH+JmJB9mzWuJ8mqksjOxNe5zEXp5TjJOO7ExExaLiXf3lXUlyHs14VpeMRxGQ9t0Hc6BcfCaKVtT2T7y6BIBTyF5z1s1ZWB215b1wnwOSpkeacdA6bFERmZyfP4osKK0EKi0kBzFPayfU6KYM4FS9jN6KZBTD3ujuRjFtbctt6aV5FYF0Db9e9/noSwjsLySaoKZ7x4bFsKbDIawfSACG6Z/He8zHoUEUT+EBgxtqeE3nlULeJKaBOn7a9BJUKU4ZqYE8GIcygxRoZAolj73T8Ukcg0QT6qcD7r+e10naBbfytQYG0EBqw028R4tBgvJ/xij6a+/yFmEJN4pCmURMtw1ZXxL6OwMDtSl0HZW1Hht/x5H88I8zixYgqrfBmMEgxPF8fM9Wg0MNkH3p+7+OJ/5/ItVf0nyVFtRM3306hgKkt3638Si0aujJjWx2PqaP1JeiTiIJ2s//vecIxy26MgE2/sSQjOHNZ5cEkjBaUxOMYjL1wJqy6HOTKVZk2lwiQjZDwJfO3rwBAxiG1V10MqZSy4GfwZflvXvWviKf1Bt2LUE+aAkW2kEtwHS5XJ8i95US+w9HSFp2OK/83dRAVYIXVlFWl14dSaTAaW/Gsk2vy2NKiktGQZFgtOmyeXC87ZF2e4y/9U2ZbpxlanA9SBc/QTKTyw0urar44n6BqZ2I8bR28duzVytNJBZP6P3+lGoLGCAMUzCbZzd8APS0dOe5cHtVxidGZop1BWHDgauYywuNaN8Z1BIsuT920Fe/zjT19gntQC1TtrUv//JXz+dhKVNghcRD3JYKJ92PBOquq999XlC65rc1NIY3QnUej8hq0mT3nDfkjsLFdugi4Nh58Xm42J43CbZjiw5+sKHw3ZEgtuH6ud9QGtTwBC1 OZww04sQ eoy7O08PRxlaY305B0WXyUz3TiyhXG8gBRUW5F+jhQSe1ZLcFYPJb8XoXPmsX/oo9GkUH2Cu3p3hmBJB5Wu8ZHi/BW/d0ap33XoJFu0C4uF8DOLMch81qdvcc+erwPfHw3bDhKQv/M2EwjXlPwFbh7bnw5PwESop7hbLXANYXDZnMT+pdQMpETAgFHRLmN4be7uv8hVTCGXazIrfI2/v4fhdY0/d5T1Wv4Gx90pd6iIGf0KOCITPwA36+6Oa0xtG+5PZ05vEIeI+Y8dOb7j6TPMfh1VHN6vMYiivp8qhV7cdGKpyu+aAD/Z6zyAu1H1LlhHvblT+Bgw8NtHgjRdlWfcO/2ixvm0Js9Wjzoo3mghXLD8IhPwsYfDIDo/9t6BfPBxIx79BJXgN1XbroWhP3NCYunu1ioBFXcwfgWp36qDibCEDbKEY8iM88R0/CIgFUgdP8vi8/tKY7gkX4R/53StcU3mjljL2E8bO4oQLZJSCOE6XIJZf58B8/UOci0IIkSuoXgz9TQADDDQr9ij8ivZbL2+Mdy+m/de/R9X6SnigYuMBeionP4kJeElC2Yj0fbzi7 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The 3-bit POIndex is stored in the PTE at bits 60..62. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/include/asm/pgtable-hwdef.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/include/asm/pgtable-hwdef.h b/arch/arm64/include/asm/pgtable-hwdef.h index e4944d517c99..fe270fa39110 100644 --- a/arch/arm64/include/asm/pgtable-hwdef.h +++ b/arch/arm64/include/asm/pgtable-hwdef.h @@ -178,6 +178,16 @@ #define PTE_PI_IDX_2 53 /* PXN */ #define PTE_PI_IDX_3 54 /* UXN */ +/* + * POIndex[2:0] encoding (Permission Overlay Extension) + */ +#define PTE_PO_IDX_0 (_AT(pteval_t, 1) << 60) +#define PTE_PO_IDX_1 (_AT(pteval_t, 1) << 61) +#define PTE_PO_IDX_2 (_AT(pteval_t, 1) << 62) + +#define PTE_PO_IDX_MASK GENMASK_ULL(62, 60) + + /* * Memory Attribute override for Stage-2 (MemAttr[3:0]) */