arm64: Document boot requirements for FEAT_SME_FA64
PATCH 1/1 arm64: Document boot requirements for FEAT_SME_FA64
The EAC1 release of the SME specification adds the FA64 feature which requires enablement at higher ELs before lower ELs can use it. Document what we require from higher ELs in our boot requirements.
--- Documentation/arm64/booting.rst | 10 ++++++++++ 1 file changed, 10 insertions(+)
Documentation/arm64/booting.rst +10 -0
@@ -340,6 +340,16 @@ Before jumping into the kernel, the following conditions must be met: - SMCR_EL2.LEN must be initialised to the same value for all CPUs the kernel will execute on. + For CPUs with the Scalable Matrix Extension FA64 feature (FEAT_SME_FA64) + + - If EL3 is present: + + - SMCR_EL3.FA64 (bit 31) must be initialised to to 0b1. + + - If the kernel is entered at EL1 and EL2 is present: + + - SMCR_EL2.FA64 (bit 31) must be initialised to 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
Signature · 7 lines
2.30.2 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 16 lines · Mark Brown
The EAC1 release of the SME specification adds the FA64 feature which requires enablement at higher ELs before lower ELs can use it. Document what we require from higher ELs in our boot requirements.
Signed-off-by Mark Brown <[email protected]>--- Documentation/arm64/booting.rst | 10 ++++++++++ 1 file changed, 10 insertions(+)Documentation/arm64/booting.rst +0
-0@@ -340,6 +340,16 @@ Before jumping into the kernel, the following conditions must be met: - SMCR_EL2.LEN must be initialised to the same value for all CPUs the kernel will execute on.
Documentation/arm64/booting.rst Before jumping into the kernel, the following conditions must be met: · line 351
Quoted 10 lines
Documentation/arm64/booting.rst +9
-0+ For CPUs with the Scalable Matrix Extension FA64 feature (FEAT_SME_FA64) + + - If EL3 is present: + + - SMCR_EL3.FA64 (bit 31) must be initialised to to 0b1. + + - If the kernel is entered at EL1 and EL2 is present: + + - SMCR_EL2.FA64 (bit 31) must be initialised to to 0b1.
"to to"
With the second bullet, does that mean KVM is in violation of our own documentation?
Will
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 8 lines · Will Deacon
Review
Quoted 3 lines · Mark Brown
+ - If the kernel is entered at EL1 and EL2 is present:
(quoted diff) +2
-0+ + - SMCR_EL2.FA64 (bit 31) must be initialised to to 0b1.With the second bullet, does that mean KVM is in violation of our own documentation?
No worse than it was before - we already document the requirements for baseline SME which we don't ourselves satisfy, no guest will be able to get as far as noticing that FA64 isn't enabled since all SME operations will trap.
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel