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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 216E1C3DA6D for ; Fri, 23 May 2025 06:54:28 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.995192.1377707 (Exim 4.92) (envelope-from ) id 1uIMIN-0002CQ-LH; Fri, 23 May 2025 06:54:19 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 995192.1377707; Fri, 23 May 2025 06:54:19 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uIMIN-0002CJ-IX; Fri, 23 May 2025 06:54:19 +0000 Received: by outflank-mailman (input) for mailman id 995192; Fri, 23 May 2025 06:54:19 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uIMIN-0002CD-4a for xen-devel@lists.xenproject.org; Fri, 23 May 2025 06:54:19 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-flk1.inumbo.com (Halon) with ESMTP id be710152-37a2-11f0-b892-0df219b8e170; Fri, 23 May 2025 08:54:17 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0DEB31764; Thu, 22 May 2025 23:54:02 -0700 (PDT) Received: from e125770.cambridge.arm.com (e125770.arm.com [10.1.199.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3C57C3F673; Thu, 22 May 2025 23:54:15 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: be710152-37a2-11f0-b892-0df219b8e170 From: Luca Fancellu To: xen-devel@lists.xenproject.org Cc: Stefano Stabellini , Julien Grall , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk , Ayan Kumar Halder , Julien Grall Subject: [PATCH v6 1/6] docs/arm: Document Xen booting protocol on Armv8-R Date: Fri, 23 May 2025 07:54:01 +0100 Message-Id: <20250523065406.3795420-2-luca.fancellu@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250523065406.3795420-1-luca.fancellu@arm.com> References: <20250523065406.3795420-1-luca.fancellu@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Document the requirement needed to boot Xen on Armv8-R platforms. Signed-off-by: Luca Fancellu Reviewed-by: Ayan Kumar Halder Reviewed-by: Michal Orzel Acked-by: Julien Grall --- v6 changes: - Add Julien's Ack-by, add " Cache state shall follow [1], [2] for MPU." v5 changes: - restructured and removed some EL3 reference that might not be there on Armv8-R aarch64 - add R-by Ayan and Michal v4 changes: - New patch --- docs/misc/arm/booting.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/misc/arm/booting.txt b/docs/misc/arm/booting.txt index 21ae74837dcc..e9b511cae4a8 100644 --- a/docs/misc/arm/booting.txt +++ b/docs/misc/arm/booting.txt @@ -56,12 +56,17 @@ image header to determine the load address, entry point, etc. Firmware/bootloader requirements -------------------------------- -Xen relies on some settings the firmware has to configure in EL3 before starting Xen. +Xen relies on some settings the firmware has to configure before starting Xen. -* Xen must be entered in NS EL2 mode +* Xen must be entered in: + * Non-Secure EL2 mode for Armv8-A Arm64 and Arm32, Armv8-R Arm32. + * Secure EL2 mode for Armv8-R Arm64. -* The bit SCR_EL3.HCE (resp. SCR.HCE for 32-bit ARM) must be set to 1. +* When EL3 is supported, the bit SCR_EL3.HCE (resp. SCR.HCE for 32-bit ARM) must + be set to 1. +* Xen must be entered with MMU/MPU off and data cache disabled (SCTLR_EL2.M bit + and SCTLR_EL2.C set to 0). Cache state shall follow [1], [2] for MPU. [1] linux/Documentation/arm/booting.rst Latest version: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/arch/arm/booting.rst -- 2.34.1