]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/fp: Make SVE and SME length register definition match architecture
authorMark Brown <broonie@kernel.org>
Tue, 10 May 2022 16:11:57 +0000 (17:11 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 16 May 2022 18:50:19 +0000 (19:50 +0100)
commit0d96d2ba0aaf4ccc8a0a9b57b6d1880ed2f04b99
tree46f141bb1b1cd3edc81789419b561a375f4713f4
parent973a14bf2805b73fa990d3a11cb94fecb976a61f
arm64/fp: Make SVE and SME length register definition match architecture

Currently (as of DDI0487H.a) the architecture defines the vector length
control field in ZCR and SMCR as being 4 bits wide with an additional 5
bits reserved above it marked as RAZ/WI for future expansion. The kernel
currently attempts to anticipate such expansion by treating these extra
bits as part of the LEN field but this will be inconvenient when we start
generating the defines and would cause problems in the event that the
architecture goes a different direction with these fields. Let's instead
change the defines to reflect the currently defined architecture, we can
update in future as needed.

No change in behaviour should be seen in any system, even emulated systems
using the maximum allowed vector length for the current architecture.

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