arm64/sme: Provide storage for ZT0
authorMark Brown <broonie@kernel.org>
Mon, 16 Jan 2023 16:04:44 +0000 (16:04 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 20 Jan 2023 12:23:06 +0000 (12:23 +0000)
commitd6138b4adc70729404efeb0133bc9f6e9ad78d03
tree635f2c1466a1569d7fcb9eb939c0537be4f89571
parentd4913eee152d3ffaf9a1e70073bc15e773625685
arm64/sme: Provide storage for ZT0

When the system supports SME2 there is an additional register ZT0 which
we must store when the task is using SME. Since ZT0 is accessible only
when PSTATE.ZA is set just like ZA we allocate storage for it along with
ZA, increasing the allocation size for the memory region where we store
ZA and storing the data for ZT after that for ZA.

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