Skip to content

Commit e384976

Browse files
Marc Zyngierctmarinas
authored andcommitted
arm64: Document the requirement for SCR_EL3.HCE
It is amazing that we never documented this absolutely basic requirement: if you boot the kernel at EL2, you'd better enable the HVC instruction from EL3. Really, just do it. Signed-off-by: Marc Zyngier <[email protected]> Acked-by: Mark Rutland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 9026857 commit e384976

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

Documentation/arm64/booting.rst

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,17 @@ Before jumping into the kernel, the following conditions must be met:
207207
software at a higher exception level to prevent execution in an UNKNOWN
208208
state.
209209

210-
- SCR_EL3.FIQ must have the same value across all CPUs the kernel is
211-
executing on.
212-
- The value of SCR_EL3.FIQ must be the same as the one present at boot
213-
time whenever the kernel is executing.
210+
For all systems:
211+
- If EL3 is present:
212+
213+
- SCR_EL3.FIQ must have the same value across all CPUs the kernel is
214+
executing on.
215+
- The value of SCR_EL3.FIQ must be the same as the one present at boot
216+
time whenever the kernel is executing.
217+
218+
- If EL3 is present and the kernel is entered at EL2:
219+
220+
- SCR_EL3.HCE (bit 8) must be initialised to 0b1.
214221

215222
For systems with a GICv3 interrupt controller to be used in v3 mode:
216223
- If EL3 is present:

0 commit comments

Comments
 (0)