From patchwork Wed Sep 27 14:01:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 13400865 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 30215E80AAD for ; Wed, 27 Sep 2023 14:04:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C482C8D008B; Wed, 27 Sep 2023 10:04:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BF8E18D008A; Wed, 27 Sep 2023 10:04:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A4B3F8D008B; Wed, 27 Sep 2023 10:04:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 90F438D008A for ; Wed, 27 Sep 2023 10:04:31 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 66AB9160A58 for ; Wed, 27 Sep 2023 14:04:31 +0000 (UTC) X-FDA: 81282547542.04.C1D376F Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2049.outbound.protection.outlook.com [40.107.247.49]) by imf09.hostedemail.com (Postfix) with ESMTP id 903C314005B for ; Wed, 27 Sep 2023 14:04:20 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=9TPs09nx; dkim=pass header.d=armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=9TPs09nx; dmarc=pass (policy=none) header.from=arm.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf09.hostedemail.com: domain of Joey.Gouly@arm.com designates 40.107.247.49 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=1695823460; 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=/VQGAj4qR6U+8jKxuVwzh/GHnDbH08pkNQ+bUlJJPsc=; b=UrtKKJpAxQPskQv2WsG3mTXJq/n65GeNRDAwuuoOii1bycLkV6a+e9e51PQwCWctve85D4 K45E6XTXFlRvkyxBQN+DDTJ8mxQUp91AKF/54xd1yGTOQOWr2Pn7Vo5kUSAPeFe1JKMICg h0Mr5WkH8rIf4jMGbSVCff6nIGKlwrY= ARC-Authentication-Results: i=2; imf09.hostedemail.com; dkim=pass header.d=armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=9TPs09nx; dkim=pass header.d=armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=9TPs09nx; dmarc=pass (policy=none) header.from=arm.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf09.hostedemail.com: domain of Joey.Gouly@arm.com designates 40.107.247.49 as permitted sender) smtp.mailfrom=Joey.Gouly@arm.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1695823460; a=rsa-sha256; cv=pass; b=HR9/RcRldnwZGaC6stSb9s9w0LuE3VBdkmXXbtyVusSafL8N8Tb/44QjtRt3iOH8x8p5c1 5QoXI587eVOpB3GYHROlOjGDyn/At++uAfXXW0qHg2LuKpEF6mdHNVTyR/RClJrSmLd+GT Gg0zmt/8v9N9EyfT44WnRiylr7Ef9Mw= 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=/VQGAj4qR6U+8jKxuVwzh/GHnDbH08pkNQ+bUlJJPsc=; b=9TPs09nxcTm4craLfXoIPoOcRy9TnmGcC8xPd9DmsxMZKeKCYMgInNCerhij8b9rJ4YMEm7H3Bx+GQqhORA2RlS4QAvfB8a8VQlmA51RrJL70uREkm8wbEj2uIqLUQGZK048UZcZoLq4xPMFVIU703ym2YSyNZ8bs+MRQUv4fOQ= Received: from AM6P193CA0129.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:85::34) by GV2PR08MB7932.eurprd08.prod.outlook.com (2603:10a6:150:7f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.23; Wed, 27 Sep 2023 14:04:15 +0000 Received: from AM7EUR03FT059.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:85:cafe::6) by AM6P193CA0129.outlook.office365.com (2603:10a6:209:85::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.35 via Frontend Transport; Wed, 27 Sep 2023 14:04:15 +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 AM7EUR03FT059.mail.protection.outlook.com (100.127.140.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.19 via Frontend Transport; Wed, 27 Sep 2023 14:04:15 +0000 Received: ("Tessian outbound fdf44c93bd44:v211"); Wed, 27 Sep 2023 14:04:15 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 42ac1b4d537efab2 X-CR-MTA-TID: 64aa7808 Received: from 5eaaccc83e9e.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id B86F6B30-FE61-45D1-8200-D8AA3A5C2D2A.1; Wed, 27 Sep 2023 14:01:57 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 5eaaccc83e9e.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 27 Sep 2023 14:01:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CKBgjOtP6+7X55OKYedk6tljzxBdZ8lqy1KG3lwNkp0+jiHHsTOH2tlfkE6gikz1dcKgmIuQXhihwtDVDyYny8jeTxmasz/Tza78CJhPjJuIoASretrGRmD2dIsjziCRqOeM1YxNpFKpzgkeqvpE6LpAEyyhHbUw1N+HDgFJFUl8xGEdiBx/Dvv20lJx0VZY61J1mfRJMwTN3mFJ7yB7JP6hC6uNzwRAl+tdzSSRRS3jIhEdCUXp8D3S3o4r1+15wYEg1MrEN56oGe0J2kDzEfZOQoLXAuWPcsvG4Cg377qsfYfaumXfqR476nf72uIAJ+B5OSDRWm0oh7nSKxsTBQ== 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=/VQGAj4qR6U+8jKxuVwzh/GHnDbH08pkNQ+bUlJJPsc=; b=ZDa9W3PwsVV/9VRtwl/VjBrwqsQkVMB8aNg0+WrXtxr44JAXd2YpMbg/mjJxu8Pual3oll9rfmqe1cZshz9jpUFLtoWfK1kMsdy4jpRL7NkaEGx+AytZeUW7K14a5RWphu7vDMs4+rU6+dfyP8fanh42jOY+gN25srKwv7qFuDaEKMsscPN5SaBDFhnkGYvHeWxPCyxuTdF/2FBPmr3MsHBwkbAhyXAMBpnE61estRdNuSavcpzn0q6NEU07PKtdz+cHquFF8wmhvVjBbJOMqlmj+6hGM0Cc3zMNcLvNjONzvtToMa3LcWtIhWVVBh/XZh+rwttMYWb3deXAvWwAng== 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=/VQGAj4qR6U+8jKxuVwzh/GHnDbH08pkNQ+bUlJJPsc=; b=9TPs09nxcTm4craLfXoIPoOcRy9TnmGcC8xPd9DmsxMZKeKCYMgInNCerhij8b9rJ4YMEm7H3Bx+GQqhORA2RlS4QAvfB8a8VQlmA51RrJL70uREkm8wbEj2uIqLUQGZK048UZcZoLq4xPMFVIU703ym2YSyNZ8bs+MRQUv4fOQ= Received: from DB7PR02CA0027.eurprd02.prod.outlook.com (2603:10a6:10:52::40) by AM0PR08MB5441.eurprd08.prod.outlook.com (2603:10a6:208:17d::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.21; Wed, 27 Sep 2023 14:01:54 +0000 Received: from DBAEUR03FT015.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:52:cafe::f0) by DB7PR02CA0027.outlook.office365.com (2603:10a6:10:52::40) 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:53 +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 DBAEUR03FT015.mail.protection.outlook.com (100.127.142.112) 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:53 +0000 Received: from AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) by AZ-NEU-EX03.Arm.com (10.251.24.31) 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:42 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) 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:41 +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:41 +0000 From: Joey Gouly To: CC: , , , , , , , , , , , , , Subject: [PATCH v1 16/20] arm64: enable PKEY support for CPUs with S1POE Date: Wed, 27 Sep 2023 15:01:19 +0100 Message-ID: <20230927140123.5283-17-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: DBAEUR03FT015:EE_|AM0PR08MB5441:EE_|AM7EUR03FT059:EE_|GV2PR08MB7932:EE_ X-MS-Office365-Filtering-Correlation-Id: 087c8c38-cbb0-4790-0cfd-08dbbf62a246 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: 9QotwCpk5z2/3NXGxqu7I5UPz1xcD4RFUXShxnoZySw2z6V9qP5OGfAgD/Zb2w+TawdOGFMSd2NtzyfmhwYuPyS0c3YhXfnK9p5aIIKQVB2g/Tp/2IfNFNpn3/I2s45gY7aBgVkqPmLsjNcmwnN2zG9k7bCTAafPM3h036IsoOOeH6KzT+16SdNANZMAMrDP+UT7CUYgTN4YM6oIlwLl4k+ifNAwswZpjuTzjZvnGw7gWxLgoogpuldYP1aLYDqhjBCTS4ZxvgcraJ87M3/6umcAVFA2wWO+OSG9FfK2kg2NNRht7jg1ODmAIeLTeDsVCL1m9U2ds7hpBkPlOOATpvQzYonxzGZhpr0BKsj+2rNbil85SDji64eRPBtoPjXOR6Y35kpkpzOmtfF/URsLtYa7LEJVg8ZIQF5yp++N3Hh3U6/Q701RKo7Sm3u0VS6pBoCZnfCim8u+O512D9EGLy6YD/ooyMboKHH3r5TIwGL4HVdiPhVo2YVvlv5wsNIrGuiP+RBOpyBWQxkSek4oG+3pkbkOOrNX2b2mcnmDSxMp6Y4DFYmOaEXFln2tIDMXLhwuvL/Stw2MU6On3DPeevfDvvA128hz0023hRoZStWNSg05RGLfb9UTVOd3u/33xYxADNbZS6R3bSeje/icv7XfpkRlO8I6a6a8xvFeDzfWZusVx9gY/az40b+ggHBXYQX4eVLyUhSFWRe6CjmrBQawpkl6abPZ7CJszxW1azyWjLnMijrB5Di4XroLmxI4KjBFZae8yOt+iCV9tBjVErbrWOWVLbVzMdXe9Ey2c7Q= 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)(136003)(396003)(346002)(39860400002)(376002)(230922051799003)(451199024)(82310400011)(1800799009)(186009)(40470700004)(36840700001)(46966006)(41300700001)(5660300002)(44832011)(26005)(426003)(336012)(2906002)(4744005)(316002)(54906003)(7416002)(6916009)(8936002)(8676002)(4326008)(7696005)(478600001)(6666004)(1076003)(2616005)(47076005)(83380400001)(70206006)(70586007)(36860700001)(81166007)(356005)(82740400003)(36756003)(86362001)(40460700003)(40480700001)(32563001)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB5441 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT059.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 528f1ca5-8a08-4ffd-c9c0-08dbbf624dec X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: owa+vlQMnUG1sCA47xXI1uuLQ++bO7RjjUYGer7eUg4uPoQUeNJb52M8wyf8/lwSGiEBlNZnWUlwL31YnxRwcN90v5OS9pt/xBHZYXNs4b4OhleohPvXt2QiqZQMcTncB+RtQZFEtDb2Q7Fz3IfnKE4EL8Q4l8h9L93aZujIPpVnR76swiuHTtBa2fla9llRZ87NDw+MKrtwHwfwMZ1QdATBiv4wtI3eRQHFB7TvOOFySWi/9fXZvnumU2Y9lLawIPD5Nuvc9EO5KAbl+9BqiTwa0aGdqVzlLjC858/Se0E9a+sCXHvW/nGvjHW4ewPcp11Vyl+/IIKf1J/1SCwfdwM0uCMnUWtUaOA4a6RwAxrZrpq4B9L8MhhCnd1EefWT7Zfp+gnn0C0EkDuH0zxzcc8aFItD+wYMTF7evdcrbiqBI6zLZ3H9PdzXYn9BX8z206KRUl/3Buo4LMTWSqODxRFey++Ryw/LzWMKd1iqUhbxysI32Le5CV1uMiEWx5jbmwLC+MMjACc0RSPj+1bioUarTqjn0AFIwRMKGc9NkjYYcR0IV8kUFuoZrOWpoiZVozI23uYl3GL5MFde8UvHaU0QC1U43qZNs+6XyKgz9fst5gT1w3HG6jlSI57+dNJruPE8sLVzYUqouVNUOAsyT0hm/9bYSXhnDfwvbdoPmaVp9kFCjRbD1pd6V8L10aHjwCjQQ+E/4z+FGrKpdXQO1Nkqylmzh8mwltz4gd0G6J4IaKjNzOQzClKvrXBlRXz9IJzivLrxr7yH57DZyQkMpQ== 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)(396003)(39860400002)(346002)(136003)(376002)(230922051799003)(451199024)(1800799009)(186009)(82310400011)(40470700004)(36840700001)(46966006)(478600001)(36756003)(107886003)(26005)(1076003)(7696005)(40460700003)(81166007)(82740400003)(36860700001)(336012)(86362001)(2616005)(47076005)(426003)(316002)(40480700001)(8676002)(83380400001)(8936002)(5660300002)(44832011)(70206006)(4326008)(70586007)(6862004)(54906003)(2906002)(4744005)(6666004)(41300700001)(32563001);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2023 14:04:15.2632 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 087c8c38-cbb0-4790-0cfd-08dbbf62a246 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: AM7EUR03FT059.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR08MB7932 X-Rspam-User: X-Stat-Signature: 83ncqcdmkpfaxxaqs7wt16ib3wh3qpcy X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 903C314005B X-HE-Tag: 1695823460-278282 X-HE-Meta: U2FsdGVkX1/lXHweSj6bMa0zsx6LcJBcLCkvCOupN4t8UpfnJfD24Ln4jULA9FbrUFNh+bPrPL34JpChSF5c+dEqLgT7XOUMAjdvr0QSMQnzw+IWxmEKepU4J9gka/7A8bsFu+kXrclmpqg1H+tYThsJGn81FalEVUzOhU4mawBGKqArgsxE882YkCH8RUA/uBfitEMjq2IU5VapB8gENZq+yY74bGGvNIw+4BMjroMgnLlLMfISXdnLKdqv/VsdNRPn5LGUgt4Fc+ha67DTGBk2sYE3dFk1j/uIAiIkvuAvRslXN49D7uhvxczlPcwrI6aTDGiSQKBXJrKF5hMS42Q0/bpFz7+KMbZwKZhsB9X9Z+trX6ONWQZuq8KTKI4CN87NaIsRccVsBDlIYXFdf807cgu5/tY3jkmTEpDC5OKnpJk0uHVDccp1RfyVLUpR+us0UDPaNh0A1KZ/b17y3wAzCkXEeZyf0czTaxmsik9pTXH2S/M2/PeayI1kdiOc/AfRJOoRIhxeg9MwzXLGgJY/L2p5bJlFqvHs16PltVFG6l8Jj6SvrVrLaz/+L5BqRETeXO/LQiscqvC24e1RTJlJptX03bPgTOEd8bLOLeY9C8ivVRLTv+BnijdGAI3kkLH736CRAwKfaKRVMRLSh/nkOgyULYU9Hil6z1R4vZn/OhgrJjclh/PqdHkib09rmkDIhS999wNRs0BNXCjM6bBJgkYxCUabomOtgr7QZPKKatOaHkz/jgbGxuhhbzEqWdOZQnk3pAZvPM1kUWiaQcqjFR1xTO3if8plPb9Q9jS1u9StapUbNKZxf4/Qj4cYAFbAiGTr//jOXa5K3Ql8jcZtS+p2JMjvKnt/daRPrKZrOSrhgRYrm0znwu5jDKcmR1OZovwb5WFW6RCWbZwZ/KIptc5FsXmS8sNuQG5QNATtbQLgGV/qTQu0l++F6NYRRycHi+f2WSuxsb5OW7y zpXk8nf+ f8kZFKIWsTwSo+LTWJs1s3jojkLmvK043uTP8sebjjvTlKGfJL+frOQOSGgQoU8pTxYAaG9YAeQmyKQs9EjgrdtpPx5ORz7Xp/cjL9q9gnTH6ru8JYgl9pBpYneBOKT6oCnAXBADPT0/bDYCrO8MMTE5Ek3WwZzyZqUVqfw+EB5PxYyryd0F8l3nwFbRbUHq4NgDRVFCeeb8uTKnbFYMi4KDm7TrNJ/OQXDoO+/+7KMsvqLc1aA35KxF5GLokjUtuaWY/xAfmvZ/li5NhQN07jMJ5E0qLtoQSoIFbCTEx6rSrHoL4lJOOePGR84ze5d6/JR+GnxomxJHfe2xmgTkeJo+X2I3m+r0aqHRlsX93Zetyhqsx/vQ1qDHEqYlSatyPEXcXsNBh13DnH3ZaJZweiRIGtYqQ3foKmI18XgjXxMi8F2da6IrsJ+FNRBlDak3qzU3updfCao2PHQmkRmuxuSHPrQ7+LGrvBpS/F6Qgifk0BfTuIaXs+QPHEH+dY+fa6kIdPvE4GwxnkbqL6WQvM2ync6TFcn4Wf8gZz4UkKN8FgRzjNVLcZEy+hosXLVT7E5XkAitovMjchSlLcIaPehiCKg== 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: Now that PKEYs support has been implemented, enable it for CPUs that support S1POE. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/include/asm/pkeys.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/pkeys.h b/arch/arm64/include/asm/pkeys.h index a80c654da93d..9946de35035d 100644 --- a/arch/arm64/include/asm/pkeys.h +++ b/arch/arm64/include/asm/pkeys.h @@ -17,7 +17,7 @@ int arch_set_user_pkey_access(struct task_struct *tsk, int pkey, static inline bool arch_pkeys_enabled(void) { - return false; + return cpus_have_final_cap(ARM64_HAS_S1POE); } static inline int vma_pkey(struct vm_area_struct *vma)