arm64/sme: Implement context switching for ZT0
authorMark Brown <broonie@kernel.org>
Mon, 16 Jan 2023 16:04:45 +0000 (16:04 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 20 Jan 2023 12:23:06 +0000 (12:23 +0000)
commit95fcec713259d440626526ed96ff5d3bac6179ea
tree6bacccf7c516bd59f045725f0615036b20d00eb9
parentd6138b4adc70729404efeb0133bc9f6e9ad78d03
arm64/sme: Implement context switching for ZT0

When the system supports SME2 the ZT0 register must be context switched as
part of the floating point state. This register is stored immediately
after ZA in memory and is only accessible when PSTATE.ZA is set so we
handle it in the same functions we use to save and restore ZA.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20221208-arm64-sme2-v4-10-f2fa0aef982f@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/fpsimd.h
arch/arm64/kernel/entry-fpsimd.S
arch/arm64/kernel/fpsimd.c