mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] arm64/sme: Fix handling of traps on resume
@ 2024-02-13 23:06 Mark Brown
  2024-02-13 23:06 ` [PATCH v3 1/2] arm64/sme: Restore SME registers on exit from suspend Mark Brown
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Mark Brown @ 2024-02-13 23:06 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon
  Cc: Dave Martin, Jackson Cooper-Driver, linux-arm-kernel,
	linux-kernel, Mark Brown

The fast model was recently changed to reset system registers to 0 on
resume, exposing the fact that for SME we do not restore the
configuration of traps for extensions that add state.  Fix this.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
Changes in v3:
- Tweak commit message.
- Link to v2: https://lore.kernel.org/r/20240203-arm64-sme-resume-v2-0-a1fbaddc4425@kernel.org

Changes in v2:
- Also reinitialise SMPRI_EL1.
- Link to v1: https://lore.kernel.org/r/20240130-arm64-sme-resume-v1-0-0e60ebba18df@kernel.org

---
Mark Brown (2):
      arm64/sme: Restore SME registers on exit from suspend
      arm64/sme: Restore SMCR_EL1.EZT0 on exit from suspend

 arch/arm64/include/asm/fpsimd.h |  2 ++
 arch/arm64/kernel/fpsimd.c      | 16 ++++++++++++++++
 arch/arm64/kernel/suspend.c     |  3 +++
 3 files changed, 21 insertions(+)
---
base-commit: 41bccc98fb7931d63d03f326a746ac4d429c1dd3
change-id: 20240129-arm64-sme-resume-3266150292b6

Best regards,
-- 
Mark Brown <broonie@kernel.org>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-20 14:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-13 23:06 [PATCH v3 0/2] arm64/sme: Fix handling of traps on resume Mark Brown
2024-02-13 23:06 ` [PATCH v3 1/2] arm64/sme: Restore SME registers on exit from suspend Mark Brown
2024-02-13 23:06 ` [PATCH v3 2/2] arm64/sme: Restore SMCR_EL1.EZT0 " Mark Brown
2024-02-20 14:04 ` [PATCH v3 0/2] arm64/sme: Fix handling of traps on resume Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®