]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: document the boot requirements for MTE
authorPeter Collingbourne <pcc@google.com>
Fri, 22 Apr 2022 20:29:12 +0000 (13:29 -0700)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 25 Apr 2022 16:15:04 +0000 (17:15 +0100)
commit190b93183f0b4f2bcb6da24381554f6ddb4b433f
treecd68047a2718ead92c03474437bcaa8809b0eeed
parent2a5048f123cd6cdb043a6d50d3012446aae0dfdb
arm64: document the boot requirements for MTE

When booting the kernel we access system registers such as GCR_EL1
if MTE is supported. These accesses are defined to trap to EL3 if
SCR_EL3.ATA is disabled. Furthermore, tag accesses will not behave
as expected if SCR_EL3.ATA is not set, or if HCR_EL2.ATA is not set
and we were booted at EL1. Therefore, require that these bits are
enabled when appropriate.

Signed-off-by: Peter Collingbourne <pcc@google.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://linux-review.googlesource.com/id/Iadcfd4dcd9ba3279b2813970b44d7485b0116709
Link: https://lore.kernel.org/r/20220422202912.292039-1-pcc@google.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Documentation/arm64/booting.rst