]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/sme: Early CPU setup for SME
authorMark Brown <broonie@kernel.org>
Tue, 19 Apr 2022 11:22:15 +0000 (12:22 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 22 Apr 2022 17:50:47 +0000 (18:50 +0100)
commit7fadc0f8f50290e8b3018ef07e6f31e50ef70322
treebdcb021dbd7b1c0ab9326dc4495d6cc4525eb303
parent060a6a35715b078b1820d13805a6652999e4899e
arm64/sme: Early CPU setup for SME

SME requires similar setup to that for SVE: disable traps to EL2 and
make sure that the maximum vector length is available to EL1, for SME we
have two traps - one for SME itself and one for TPIDR2.

In addition since we currently make no active use of priority control
for SCMUs we map all SME priorities lower ELs may configure to 0, the
architecture specified minimum priority, to ensure that nothing we
manage is able to configure itself to consume excessive resources.  This
will need to be revisited should there be a need to manage SME
priorities at runtime.

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