diff options
author | Mark Brown <broonie@kernel.org> | 2022-12-27 17:12:06 +0000 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2023-01-05 15:31:18 +0000 |
commit | f26cd7372160da2eba31061d7943348ab9f2c01d (patch) | |
tree | 63589ff836ddee83652addb0add29f3ab3b3f164 /arch | |
parent | 7dde62f0687c8856b6c0660066c7ee83a6a6f033 (diff) | |
download | linux-stable-f26cd7372160da2eba31061d7943348ab9f2c01d.tar.gz linux-stable-f26cd7372160da2eba31061d7943348ab9f2c01d.tar.bz2 linux-stable-f26cd7372160da2eba31061d7943348ab9f2c01d.zip |
arm64/signal: Always allocate SVE signal frames on SME only systems
Currently we only allocate space for SVE signal frames on systems that
support SVE, meaning that SME only systems do not allocate a signal frame
for streaming mode SVE state. Change the check so space is allocated if
either feature is supported.
Fixes: 85ed24dad290 ("arm64/sme: Implement streaming SVE signal handling")
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20221223-arm64-fix-sme-only-v1-3-938d663f69e5@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm64/kernel/signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/signal.c b/arch/arm64/kernel/signal.c index f90ee2dc413c..be279fd48248 100644 --- a/arch/arm64/kernel/signal.c +++ b/arch/arm64/kernel/signal.c @@ -737,7 +737,7 @@ static int setup_sigframe_layout(struct rt_sigframe_user_layout *user, return err; } - if (system_supports_sve()) { + if (system_supports_sve() || system_supports_sme()) { unsigned int vq = 0; if (add_all || test_thread_flag(TIF_SVE) || |