arm64/sme: Restore SMCR_EL1.EZT0 on exit from suspend
authorMark Brown <broonie@kernel.org>
Tue, 13 Feb 2024 23:06:33 +0000 (23:06 +0000)
committerWill Deacon <will@kernel.org>
Tue, 20 Feb 2024 12:19:16 +0000 (12:19 +0000)
commitd7b77a0d565b048cb0808fa8a4fb031352b22a01
tree44c86cfbf3f63edd77af516c1af8a3840b59a042
parent9533864816fb4a6207c63b7a98396351ce1a9fae
arm64/sme: Restore SMCR_EL1.EZT0 on exit from suspend

The fields in SMCR_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. Do so for SMCR_EL1.EZT0.

Fixes: d4913eee152d ("arm64/sme: Add basic enumeration for SME2")
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-2-17e05e493471@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/fpsimd.c