Message ID | 20230606145859.697944-19-joey.gouly@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 E60D9C7EE24 for <linux-arm-kernel@archiver.kernel.org>; Tue, 6 Jun 2023 15:00: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:References:In-Reply-To: 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: List-Owner; bh=bpD+aWVnbEI5YxUJg6fvTI+LnnWebpORQjRDss8BcqI=; b=dueMdXXMvxGZu2 +19+oyN2KA88nYPTff1PT4Y7Njhcr+r+ppwuJOnP1XZEPm6l6Zesk9QDJpqGAhWz54YJNENxuqWbq o+fDAJHIT8vH7k9M6VhNBL2KhilAeuiBitmm2NNRcy/YVuPkYlrf6B0DMocwkYRSj997km7peNOff tMlcqJuCxyO5XMz63DK3HDbfVbXpTSsSbpwA+tzDrzBR+KZzW7fUZfcbU2uHLeHEMBc58OGzu7Ig6 9YHqMz38K26o5S6TPppfbj7hg657BOYgbrAECY2RBx64bJoJAOsYSLOvN6ggvyzM/LsswThA+OFQ/ 3NTY/i9QbKgpmUha6dNA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q6YA4-0028uK-1k; Tue, 06 Jun 2023 14:59:52 +0000 Received: from mail-db5eur01on0604.outbound.protection.outlook.com ([2a01:111:f400:fe02::604] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q6Y9p-0028hh-2m for linux-arm-kernel@lists.infradead.org; Tue, 06 Jun 2023 14:59:40 +0000 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=N3cATz2rcFG8gjPDp3vBUlvxmNpdXO25rT0zgQeLcVg=; b=v3VlFgCG3bjPWsY3dfgg51Ik8JenXfL1ivjme99AGjo/LSPrzi1tp9vK747yfB8jatEO7JfL3tylUEjYpqIfwP6nfDPF4+cpqJkeySLskeJOGCogOYEIWmQYF557U0GyHiRw55YyXTCwfjjjV3X5yDmEtu9LHA97QPLgJquQ0Po= Received: from DUZPR01CA0056.eurprd01.prod.exchangelabs.com (2603:10a6:10:469::7) by PAXPR08MB7468.eurprd08.prod.outlook.com (2603:10a6:102:2b6::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.28; Tue, 6 Jun 2023 14:59:30 +0000 Received: from DBAEUR03FT033.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:469:cafe::7a) by DUZPR01CA0056.outlook.office365.com (2603:10a6:10:469::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33 via Frontend Transport; Tue, 6 Jun 2023 14:59:30 +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 DBAEUR03FT033.mail.protection.outlook.com (100.127.142.251) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.19 via Frontend Transport; Tue, 6 Jun 2023 14:59:30 +0000 Received: ("Tessian outbound 99a3040377ca:v136"); Tue, 06 Jun 2023 14:59:30 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 242ab9089ca2213c X-CR-MTA-TID: 64aa7808 Received: from c4f74e9005bb.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 2A4C009F-5D26-4A45-8032-F6A264E63A63.1; Tue, 06 Jun 2023 14:59:20 +0000 Received: from EUR02-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id c4f74e9005bb.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 06 Jun 2023 14:59:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Kaos8PpyY7IhVWR3twZS0xQ+3pjr7EbmHNlVZEePQk5bi0ahhDreOTPe4nRP5e7DlVLF+ktaz1kDK5fw1dOocqbWYQmUb4oslxsNLc+2Vz0wM88Yu1uV8pZ5t5kEb+U6L3OFI9ArzTYKDzIyruWK1ocvPMMzX9o6/FG+zFCbYdmo5tlLEOTyD9SW2zsJDYaZ9QszC4TdSu5FUHYxHeHxcJK3L1CQzGlrTMThYYHQ1U1uS4DTQ5McIh0eBLJbu1p2Z0A/mbVl6uMT/gSp/hQp1Np9Ry7/2Hs2aB/DrCZbO08PJAp4fyFE8guq8Tv3Hn7wE+FCk9DtMtHzIRHe81xATA== 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=N3cATz2rcFG8gjPDp3vBUlvxmNpdXO25rT0zgQeLcVg=; b=N1mr+aBhdYhlCdyDzri4Jj1QoEgBPBRoJQexymU8AZNmANEn7Tc5AyIyAMBa9HcehNdao1ALuevVy/WQEQ6fUzQwkROeLUY+4J0h4LOIfY7O4GjbvRRGxhFo8qAoCVBFMT+m3QUOHy8TSdofx1/IeYRgh4V4AIUaza5NDhK1nsZPEPckCzH6wZAIX/Ztc/vu538ScEGprz09akPYFbmI+TIQ1S21t6WAfT0uWKcooEGXDHFIO7LvaRuCc8MU+pjW0pjKDBieRKY35j8KwMGgQvTIdvjlFwQsgLoKqgiTkfPvMzyXIq95I4Qm77jqfoKrp4wFUqqqGuU/usCfZxqa1g== 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=N3cATz2rcFG8gjPDp3vBUlvxmNpdXO25rT0zgQeLcVg=; b=v3VlFgCG3bjPWsY3dfgg51Ik8JenXfL1ivjme99AGjo/LSPrzi1tp9vK747yfB8jatEO7JfL3tylUEjYpqIfwP6nfDPF4+cpqJkeySLskeJOGCogOYEIWmQYF557U0GyHiRw55YyXTCwfjjjV3X5yDmEtu9LHA97QPLgJquQ0Po= Received: from AM0PR04CA0007.eurprd04.prod.outlook.com (2603:10a6:208:122::20) by AS8PR08MB9070.eurprd08.prod.outlook.com (2603:10a6:20b:5b0::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.32; Tue, 6 Jun 2023 14:59:18 +0000 Received: from AM7EUR03FT017.eop-EUR03.prod.protection.outlook.com (2603:10a6:208:122:cafe::37) by AM0PR04CA0007.outlook.office365.com (2603:10a6:208:122::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33 via Frontend Transport; Tue, 6 Jun 2023 14:59:18 +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 AM7EUR03FT017.mail.protection.outlook.com (100.127.140.184) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6477.19 via Frontend Transport; Tue, 6 Jun 2023 14:59:18 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) 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.23; Tue, 6 Jun 2023 14:59:10 +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.23 via Frontend Transport; Tue, 6 Jun 2023 14:59:10 +0000 From: Joey Gouly <joey.gouly@arm.com> To: <linux-arm-kernel@lists.infradead.org> CC: <nd@arm.com>, <broonie@kernel.org>, <catalin.marinas@arm.com>, <james.morse@arm.com>, <joey.gouly@arm.com>, <mark.rutland@arm.com>, <maz@kernel.org>, <oliver.upton@linux.dev>, <shuah@kernel.org>, <suzuki.poulose@arm.com>, <will@kernel.org>, <yuzenghui@huawei.com> Subject: [PATCH v4 18/20] arm64: Document boot requirements for PIE Date: Tue, 6 Jun 2023 15:58:57 +0100 Message-ID: <20230606145859.697944-19-joey.gouly@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230606145859.697944-1-joey.gouly@arm.com> References: <20230606145859.697944-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT017:EE_|AS8PR08MB9070:EE_|DBAEUR03FT033:EE_|PAXPR08MB7468:EE_ X-MS-Office365-Filtering-Correlation-Id: c95e2863-e9b8-49aa-23b1-08db669ea1bb 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: p/k0WmLh0z5Yu9MBmG7syR9hsh0XK96OobxG5z5jg9bqHT7RkVgJqCvMfuyF8V65sBwLhQGGHj2jdda1ViQ5hJYMNNueAwtuWd15d0BD/hn9vTaA7R5nW8U+1rw6lf6kj/pixg4CeKNBxibkrkKqaoFWvRVqRNdKIIsc9WPT3wJBIFkP7yrigVswIaqlgE2ktktRKuEw9WNG/aDO2/T2yZEqL5vNw+XD7MwS8jQEPYYy1RpXYUjNZiD7vQl+7CYmpuqSYvLXochdwgKg0OlL1CpCNJUxRQhoYZDCsYH4rLFQkIoDjUVReGOJ7qm8h1W0kMY7v44uuNP6/tmGm80XFEJUIgIxTef9xQk8utF6ZsL0NIaDjRFXKzZQpdRUu2Z6cWYkaMNMJhHdc6Hz8lhaWX+550JYs2oqiXKmW0bo7FekjUnAgG2Jm28Xhvru6KRcj4O0WaYVAeAvzVjqvwTCxuJkTyTgBtLl8LzfUtJQDUTlO+lCUefEt0G+x+nfqnuknZyk+RMFONR4o9jeMFFDJFqJd+MyK8xfoiHgaPCfGZHvwQ1Y6WnuewCKCoTXJvwj8vpT850TTtCPUoygcsLWk2QNVZmBKvNg+14UzS0dK7buTlKj6eLEBeDx8mqzgH0JQWDSnpZ7kByz0rOa5xazUV+Ky4v3boTaxUbo1OE2kiCKLTbHT8fILSSYkKnPRrFbGXRG7k7ije3LpeEkR/BlppwlJueuj1dGsEvjgeN1VJjRwx95/l41QKSafsZ9KM1ivNwiMFYsRUoXgjlt8EAwSQ== 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:(13230028)(4636009)(396003)(39860400002)(376002)(136003)(346002)(451199021)(36840700001)(40470700004)(46966006)(40460700003)(83380400001)(186003)(47076005)(426003)(2906002)(336012)(2616005)(36756003)(86362001)(82310400005)(82740400003)(81166007)(40480700001)(356005)(36860700001)(1076003)(316002)(41300700001)(6666004)(5660300002)(8936002)(8676002)(7696005)(54906003)(478600001)(4326008)(70206006)(70586007)(6916009)(26005)(44832011)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB9070 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT033.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 8634c6d5-00f7-4322-4171-08db669e9aa5 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Rf4PVSfpcStaFGCLvyXqH31ZFA1tjaOB2u3WdzOwhpv8sJbK8jYBZ8fvRLEC5k98cEgVpBcgWMHKDPM/7swLUpT/qofP3ATaSe4AJWcirg0wdMuQQEqRcVpxAEO8gyscK1RPMqG3MWuF4PGTrHnozDbsXTp+y+X7gSsQuzxI/XvQJL0MkudPW728KlQnwfuQ1vMDXfku77WhvEXs512P84SNsziuDuW2jdf7/PYSRhaTFnxoqOAzsSHCFVjlhYY+A5ffBN7s27nk5i6pvv8wsOW1ImsSVUKFvTmI0eDkIBx/d/xfKnvn2s3kX5FprmmrhVZF6iYcnR58c2eWCfWub7LyPU8QC2FpoyLyIjpCoXOZVZhBtq7qDLrARMGjm4wGEp40TtkAlGrZRkaJy8B1IZBJGqNJsOK1qE6mOw+BU9xdtHBLRuQ3WbFg4b4sgOLLFRhDA8yFW998A/EWSOmld6O+r1aY8E5mfP2FjA1SGx7vjSG4+d7N/BxDUKujEsbiDVjvpNlf/p/qDLYvFfjbweEtfEKRxUn5c3AqlX53aNFRkeKCUdDDpqu/mJ12cKRhWcR+q2zCLyYnc6+Gc2BdLaDyP28MEFFwnjlFyccfbmgvwqYVvY6siS+0+EiUGuMBwGtEoK+KFekTE6TwWnJ65BRA4v6K+oQ5wkKyM9p/e/8/6801CNVSM+R4moMkFBjruBwB3XkwIb/omJSbg9pjHhwG+qNOAfeoFR5KXuxbIFLAFVp9rropPduY4YCm66hN 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:(13230028)(4636009)(39860400002)(136003)(376002)(396003)(346002)(451199021)(40470700004)(36840700001)(46966006)(47076005)(1076003)(26005)(2616005)(83380400001)(6666004)(41300700001)(7696005)(107886003)(426003)(186003)(336012)(36860700001)(40460700003)(478600001)(54906003)(8936002)(70206006)(5660300002)(82310400005)(40480700001)(4326008)(6916009)(70586007)(316002)(82740400003)(81166007)(8676002)(86362001)(44832011)(2906002)(36756003);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2023 14:59:30.7162 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c95e2863-e9b8-49aa-23b1-08db669ea1bb 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: DBAEUR03FT033.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB7468 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230606_075937_989879_AD09692C X-CRM114-Status: UNSURE ( 9.22 ) 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: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Permission Indirection Extension
|
expand
|
diff --git a/Documentation/arm64/booting.rst b/Documentation/arm64/booting.rst index b3bbf330ed0a..b57776a68f15 100644 --- a/Documentation/arm64/booting.rst +++ b/Documentation/arm64/booting.rst @@ -385,6 +385,32 @@ Before jumping into the kernel, the following conditions must be met: - HCRX_EL2.MSCEn (bit 11) must be initialised to 0b1. + For CPUs with the Extended Translation Control Register feature (FEAT_TCR2): + + - If EL3 is present: + + - SCR_EL3.TCR2En (bit 43) must be initialised to 0b1. + + - If the kernel is entered at EL1 and EL2 is present: + + - HCRX_EL2.TCR2En (bit 14) must be initialised to 0b1. + + For CPUs with the Stage 1 Permission Indirection Extension feature (FEAT_S1PIE): + + - If EL3 is present: + + - SCR_EL3.PIEn (bit 45) must be initialised to 0b1. + + - If the kernel is entered at EL1 and EL2 is present: + + - HFGRTR_EL2.nPIR_EL1 (bit 58) must be initialised to 0b1. + + - HFGWTR_EL2.nPIR_EL1 (bit 58) must be initialised to 0b1. + + - HFGRTR_EL2.nPIRE0_EL1 (bit 57) must be initialised to 0b1. + + - HFGRWR_EL2.nPIRE0_EL1 (bit 57) must be initialised to 0b1. + The requirements described above for CPU mode, caches, MMUs, architected timers, coherency and system registers apply to all CPUs. All CPUs must enter the kernel in the same exception level. Where the values documented