linux/arch/arm64
Mark Brown 0761b0e818 arm64/sme: Don't flush SVE register state when handling SME traps
commit 714f3cbd70 upstream.

Currently as part of handling a SME access trap we flush the SVE register
state. This is not needed and would corrupt register state if the task has
access to the SVE registers already. For non-streaming mode accesses the
required flushing will be done in the SVE access trap. For streaming
mode SVE register accesses the architecture guarantees that the register
state will be flushed when streaming mode is entered or exited so there is
no need for us to do so. Simply remove the register initialisation.

Fixes: 8bd7f91c03 ("arm64/sme: Implement traps and syscall handling for SME")
Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20220817182324.638214-5-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2022-08-31 17:18:20 +02:00
..
boot arm64: dts: qcom: qcs404: Fix incorrect USB2 PHYs assignment 2022-08-17 15:14:19 +02:00
configs - Enable essential PMIC and regulatro drivers for MT8195. 2022-05-13 14:02:30 +02:00
crypto crypto: arm64/gcm - Select AEAD for GHASH_ARM64_CE 2022-08-17 15:14:38 +02:00
hyperv arm64: hyperv: Initialize hypervisor on boot 2021-08-04 16:54:36 +00:00
include arm64/sme: Don't flush SVE register state when allocating SME storage 2022-08-31 17:18:20 +02:00
kernel arm64/sme: Don't flush SVE register state when handling SME traps 2022-08-31 17:18:20 +02:00
kvm KVM: arm64: Reject 32bit user PSTATE on asymmetric systems 2022-08-25 11:45:38 +02:00
lib S390: 2022-05-26 14:20:14 -07:00
mm arm64: fix rodata=full 2022-08-31 17:18:19 +02:00
net bpf, arm64: Clear prog->jited_len along prog->jited 2022-06-07 10:40:53 -07:00
tools arm64: errata: Remove AES hwcap for COMPAT tasks 2022-08-17 15:14:00 +02:00
xen xen: allow pv-only hypercalls only with CONFIG_XEN_PV 2021-11-02 08:11:01 -05:00
Kbuild kbuild: use more subdir- for visiting subdirectories while cleaning 2021-10-24 13:49:46 +09:00
Kconfig arm64: select TRACE_IRQFLAGS_NMI_SUPPORT 2022-08-17 15:14:09 +02:00
Kconfig.debug arm64: remove TEXT_OFFSET randomization 2020-06-15 13:10:59 +01:00
Kconfig.platforms arm64 updates for 5.19: 2022-05-23 21:06:11 -07:00
Makefile kbuild: factor out the common installation code into scripts/install.sh 2022-05-11 21:45:53 +09:00