Skip to content

Commit b30dbf4

Browse files
brooniectmarinas
authored andcommitted
arm64: Explicitly require that FPSIMD instructions do not trap
We do not explicitly require that systems with FPSIMD support and EL3 have disabled EL3 traps when the kernel is started, while it is unlikely that systems will get this wrong for the sake of completeness let's spell it out. Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent ee61f36 commit b30dbf4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Documentation/arm64/booting.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,16 @@ Before jumping into the kernel, the following conditions must be met:
277277

278278
- SCR_EL3.FGTEn (bit 27) must be initialised to 0b1.
279279

280+
For CPUs with Advanced SIMD and floating point support:
281+
282+
- If EL3 is present:
283+
284+
- CPTR_EL3.TFP (bit 10) must be initialised to 0b0.
285+
286+
- If EL2 is present and the kernel is entered at EL1:
287+
288+
- CPTR_EL2.TFP (bit 10) must be initialised to 0b0.
289+
280290
The requirements described above for CPU mode, caches, MMUs, architected
281291
timers, coherency and system registers apply to all CPUs. All CPUs must
282292
enter the kernel in the same exception level. Where the values documented

0 commit comments

Comments
 (0)