linux-stable/arch/arm64
Mark Brown 38c83c2488 arm64/sme: Restore SME registers on exit from suspend
[ Upstream commit 9533864816 ]

The fields in SMCR_EL1 and SMPRI_EL1 reset to an architecturally UNKNOWN
value. Since we do not otherwise manage the traps configured in this
register at runtime we need to reconfigure them after a suspend in case
nothing else was kind enough to preserve them for us.

The vector length will be restored as part of restoring the SME state for
the next SME using task.

Fixes: a1f4ccd25c ("arm64/sme: Provide Kconfig for SME")
Reported-by: Jackson Cooper-Driver <Jackson.Cooper-Driver@arm.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20240213-arm64-sme-resume-v3-1-17e05e493471@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-01 13:26:37 +01:00
..
boot arm64: dts: rockchip: set num-cs property for spi on px30 2024-03-01 13:26:35 +01:00
configs arm64: defconfig: remove CONFIG_COMMON_CLK_NPCM8XX=y 2023-10-06 14:57:03 +02:00
crypto crypto: arm64/aes-neonbs - fix crash with CFI enabled 2023-05-11 23:03:02 +09:00
hyperv hyperv: simplify and rename generate_guest_id 2022-09-28 13:36:56 +00:00
include arm64/sme: Restore SME registers on exit from suspend 2024-03-01 13:26:37 +01:00
kernel arm64/sme: Restore SME registers on exit from suspend 2024-03-01 13:26:37 +01:00
kvm KVM: arm64: vgic-its: Test for valid IRQ in its_sync_lpi_pending_table() 2024-03-01 13:26:32 +01:00
lib arm64: csum: Fix OoB access in IP checksum code for negative lengths 2023-09-13 09:43:01 +02:00
mm arm64: mm: Fix "rodata=on" when CONFIG_RODATA_FULL_DEFAULT_ENABLED=y 2023-12-03 07:32:08 +01:00
net bpf: Remove prog->active check for bpf_lsm and bpf_iter 2023-09-19 12:28:03 +02:00
tools arm64: Rename ARM64_WORKAROUND_2966298 2024-01-31 16:17:01 -08:00
xen
Kbuild
Kconfig arm64: Rename ARM64_WORKAROUND_2966298 2024-01-31 16:17:01 -08:00
Kconfig.debug
Kconfig.platforms ARM: SoC code changes for 6.1 2022-10-06 11:22:25 -07:00
Makefile arm64: add dependency between vmlinuz.efi and Image 2023-12-20 17:00:24 +01:00