]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Disable fine grained traps on boot
authorMark Brown <broonie@kernel.org>
Thu, 1 Apr 2021 18:09:40 +0000 (19:09 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 8 Apr 2021 17:39:18 +0000 (18:39 +0100)
commit30074079776a15d4b91a239b9344f73e2c60876a
treeee5b9c2400bebe5d0182c971f140220107168876
parent1b4235fcc3f3e8e8f8b2a1ac1339891bad5b5670
arm64: Disable fine grained traps on 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.  Currently
Linux makes no use of this feature, ensure that it is not active at boot by
disabling the traps during EL2 setup.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210401180942.35815-3-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/el2_setup.h
arch/arm64/include/asm/sysreg.h