Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: Document requirements for fine grained traps at boot

The arm64 FEAT_FGT extension introduces a set of traps to EL2 for accesses
to small sets of registers and instructions from EL1 and EL0, access to
which is controlled by EL3. Require access to it so that it is
available to us in future and so that we can ensure these traps are
disabled during boot.

Signed-off-by: Mark Brown <broonie@kernel.org>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210401180942.35815-2-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>

authored by

Mark Brown and committed by
Catalin Marinas
3e237387 1e28eed1

+6
+6
Documentation/arm64/booting.rst
··· 270 270 having 0b1 set for the corresponding bit for each of the auxiliary 271 271 counters present. 272 272 273 + For CPUs with the Fine Grained Traps (FEAT_FGT) extension present: 274 + 275 + - If EL3 is present and the kernel is entered at EL2: 276 + 277 + - SCR_EL3.FGTEn (bit 27) must be initialised to 0b1. 278 + 273 279 The requirements described above for CPU mode, caches, MMUs, architected 274 280 timers, coherency and system registers apply to all CPUs. All CPUs must 275 281 enter the kernel in the same exception level.