From: Luca Fancellu <Luca.Fancellu@arm.com>
To: Julien Grall <julien@xen.org>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
Stefano Stabellini <sstabellini@kernel.org>,
Bertrand Marquis <Bertrand.Marquis@arm.com>,
Michal Orzel <michal.orzel@amd.com>,
Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
Subject: Re: [PATCH v4 1/7] docs/arm: Document Xen booting protocol on Armv8-R
Date: Tue, 6 May 2025 12:24:48 +0000 [thread overview]
Message-ID: <FB60F408-6ECE-4396-BAE4-E9D70F9E9DA6@arm.com> (raw)
In-Reply-To: <a96a2e51-7b00-45a3-9f75-0a062c8defd8@xen.org>
Hi Julien,
> On 6 May 2025, at 12:44, Julien Grall <julien@xen.org> wrote:
>
>
>
> On 29/04/2025 16:20, Luca Fancellu wrote:
>> Document the requirement needed to boot Xen on Armv8-R platforms.
>> Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
>> ---
>> v4 changes:
>> - New patch
>> ---
>> docs/misc/arm/booting.txt | 8 ++++++++
>> 1 file changed, 8 insertions(+)
>> diff --git a/docs/misc/arm/booting.txt b/docs/misc/arm/booting.txt
>> index 21ae74837dcc..719af74f1e69 100644
>> --- a/docs/misc/arm/booting.txt
>> +++ b/docs/misc/arm/booting.txt
>> @@ -62,6 +62,14 @@ Xen relies on some settings the firmware has to configure in EL3 before starting
>> * The bit SCR_EL3.HCE (resp. SCR.HCE for 32-bit ARM) must be set to 1.
>> +When Xen runs on Armv8-R, the highest exception level is EL2 and the only
>> +available state is secure (S) on Arm64 and non secure (NS) on Arm32, hence the
>> +above requirements need to be adjusted to this case:
> > +> +* Xen must be entered in S EL2 mode on Arm64 and in NS EL2 mode on Arm32.
>
> I think it would be better to update the line "Xen must be entered in NS EL2 mode" to clarify the state for 64-bit Arm.
>
> > +> +* Xen must be entered with MPU off and data cache disabled (SCTLR_EL2.M bit and
>> + SCTLR_EL2.C set to 0).
>
> This line is valid for Armv8-A/Armv7-A when using the Image/zImage protocol.
>
>> [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
Just to be sure to be on the same page, are you suggesting these changes on the original file?
diff --git a/docs/misc/arm/booting.txt b/docs/misc/arm/booting.txt
index 21ae74837dcc..c00c651805d7 100644
--- a/docs/misc/arm/booting.txt
+++ b/docs/misc/arm/booting.txt
@@ -58,10 +58,14 @@ Firmware/bootloader requirements
Xen relies on some settings the firmware has to configure in EL3 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.
+* Xen must be entered with MMU/MPU off and data cache disabled (SCTLR_EL2.M bit
+ and SCTLR_EL2.C set to 0).
[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
Cheers,
Luca
next prev parent reply other threads:[~2025-05-06 12:25 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-29 15:20 [PATCH v4 0/7] First chunk for Arm R82 and MPU support Luca Fancellu
2025-04-29 15:20 ` [PATCH v4 1/7] docs/arm: Document Xen booting protocol on Armv8-R Luca Fancellu
2025-04-29 17:11 ` Ayan Kumar Halder
2025-04-30 6:37 ` Orzel, Michal
2025-04-30 6:58 ` Luca Fancellu
2025-04-30 7:04 ` Orzel, Michal
2025-04-30 7:22 ` Luca Fancellu
2025-05-06 11:44 ` Julien Grall
2025-05-06 12:24 ` Luca Fancellu [this message]
2025-05-06 12:29 ` Julien Grall
2025-05-06 12:40 ` Luca Fancellu
2025-04-29 15:20 ` [PATCH v4 2/7] arm/mpu: Introduce MPU memory region map structure Luca Fancellu
2025-04-30 6:50 ` Orzel, Michal
2025-05-06 11:50 ` Julien Grall
2025-04-29 15:20 ` [PATCH v4 3/7] arm/mpu: Provide and populate MPU C data structures Luca Fancellu
2025-04-30 6:56 ` Luca Fancellu
2025-04-30 10:57 ` Orzel, Michal
2025-04-30 12:22 ` Luca Fancellu
2025-04-29 15:20 ` [PATCH v4 4/7] arm/mpu: Provide access to the MPU region from the C code Luca Fancellu
2025-05-05 11:56 ` Orzel, Michal
2025-05-06 8:45 ` Luca Fancellu
2025-04-29 15:20 ` [PATCH v4 5/7] arm/mpu: Introduce utility functions for the pr_t type Luca Fancellu
2025-05-05 12:08 ` Orzel, Michal
2025-05-06 8:45 ` Luca Fancellu
2025-04-29 15:20 ` [PATCH v4 6/7] arm/mpu: Provide a constructor for " Luca Fancellu
2025-04-29 17:16 ` Ayan Kumar Halder
2025-04-29 19:39 ` Luca Fancellu
2025-05-06 10:06 ` Orzel, Michal
2025-05-06 12:56 ` Luca Fancellu
2025-05-06 13:51 ` Julien Grall
2025-05-06 13:53 ` Luca Fancellu
2025-05-06 13:29 ` Luca Fancellu
2025-04-29 15:20 ` [PATCH v4 7/7] arm/mpu: Introduce MPU memory mapping flags Luca Fancellu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=FB60F408-6ECE-4396-BAE4-E9D70F9E9DA6@arm.com \
--to=luca.fancellu@arm.com \
--cc=Bertrand.Marquis@arm.com \
--cc=Volodymyr_Babchuk@epam.com \
--cc=julien@xen.org \
--cc=michal.orzel@amd.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.