]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2023 10:08:22 +0000 (12:08 +0200)
commit61f96da37dd4fb166c7d9bdf76016b8340e5f85f
treedcfb37393ec59dfa18df9d0cfc30d580a4bf7382
parent654c1dd350c746244e4dd4fe1fde577a2dc93d96
arm64/fpsimd: Sync FPSIMD state with SVE for SME only systems

commit 507ea5dd92d23fcf10e4d1a68a443c86a49753ed upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/kernel/fpsimd.c