mbox series

[0/2] arm64/fp: Fix missing invalidation when working with in memory FP state

Message ID 20241030-arm64-fpsimd-foreign-flush-v1-0-bd7bd66905a2@kernel.org (mailing list archive)
Headers show
Series arm64/fp: Fix missing invalidation when working with in memory FP state | expand

Message

Mark Brown Oct. 30, 2024, 8:23 p.m. UTC
Mark Rutland identified a repeated pattern where we update the in memory
floating point state for tasks but do not invalidate the tracking of the
last CPU that the task's state was loaded on, meaning that we can
incorrectly fail to load the state from memory due to the checking in
fpsimd_thread_switch().  When we change the in-memory state we need to
also invalidate the last CPU information so that the state is corretly
identified as needing to be reloaded from memory.

This series adds the missing invalidations.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
Mark Brown (2):
      arm64/sve: Flush foreign register state in sve_init_regs()
      arm64/sme: Flush foreign register state in do_sme_acc()

 arch/arm64/kernel/fpsimd.c | 3 +++
 1 file changed, 3 insertions(+)
---
base-commit: 8e929cb546ee42c9a61d24fae60605e9e3192354
change-id: 20241030-arm64-fpsimd-foreign-flush-6913aa24cd9b

Best regards,