]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
arm64/fpsimd: Sync FPSIMD state with SVE for SME only systems
authorMark Brown <broonie@kernel.org>
Thu, 3 Aug 2023 18:33:22 +0000 (19:33 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 4 Aug 2023 15:18:31 +0000 (16:18 +0100)
commit507ea5dd92d23fcf10e4d1a68a443c86a49753ed
tree893761f26e0f96b149be09463e5ea7b7ad495638
parent045aecdfcb2e060db142d83a0f4082380c465d2c
arm64/fpsimd: Sync FPSIMD state with SVE for SME only systems

Currently we guard FPSIMD/SVE state conversions with a check for the system
supporting SVE but SME only systems may need to sync streaming mode SVE
state so add a check for SME support too.  These functions are only used
by the ptrace code.

Fixes: e12310a0d30f ("arm64/sme: Implement ptrace support for streaming mode SVE registers")
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230803-arm64-fix-ptrace-ssve-no-sve-v1-2-49df214bfb3e@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/fpsimd.c