Skip to content
Commit 0cab5b49 authored by Mark Brown's avatar Mark Brown Committed by Will Deacon
Browse files

arm64/sme: Fix context switch for SME only systems



When refactoring fpsimd_load() to support keeping SVE enabled over syscalls
support for systems with SME but not SVE was broken. The code that selects
between loading regular FPSIMD and SVE states was guarded by using
system_supports_sve() but is also needed to handle the streaming SVE state
in SME only systems where that check will be false. Fix this by also
checking for system_supports_sme().

Fixes: a0136be4 ("arm64/fpsimd: Load FP state based on recorded data type")
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20221223-arm64-fix-sme-only-v1-1-938d663f69e5@kernel.org


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 031af500
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment