mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64/fp: Fix missing invalidation when working with in memory FP state
@ 2024-10-30 20:23 Mark Brown
  2024-10-30 20:23 ` [PATCH 1/2] arm64/sve: Flush foreign register state in sve_init_regs() Mark Brown
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Mark Brown @ 2024-10-30 20:23 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon
  Cc: Mark Rutland, linux-arm-kernel, linux-kernel, Mark Brown, stable

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,
-- 
Mark Brown <broonie@kernel.org>


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

end of thread, other threads:[~2024-11-06 15:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-30 20:23 [PATCH 0/2] arm64/fp: Fix missing invalidation when working with in memory FP state Mark Brown
2024-10-30 20:23 ` [PATCH 1/2] arm64/sve: Flush foreign register state in sve_init_regs() Mark Brown
2024-11-05 19:13   ` Mark Rutland
2024-10-30 20:23 ` [PATCH 2/2] arm64/sme: Flush foreign register state in do_sme_acc() Mark Brown
2024-11-06 15:53 ` [PATCH 0/2] arm64/fp: Fix missing invalidation when working with in memory FP state 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®