mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: v7m: reset loader-set CONTROL and M33 ACTLR at boot
@ 2026-11-25  2:58 Brad Hawthorne
  2026-11-25  2:58 ` [PATCH 1/2] ARM: v7m: clear CONTROL.FPCA before the boot SVC Brad Hawthorne
  2026-11-25  2:58 ` [PATCH 2/2] ARM: v7m: clear the Cortex-M33's ACTLR.EXTEXCLALL at boot Brad Hawthorne
  0 siblings, 2 replies; 3+ messages in thread
From: Brad Hawthorne @ 2026-11-25  2:58 UTC (permalink / raw)
  To: linux, linux-arm-kernel
  Cc: vladimir.murzin, linusw, arnd, envzhu, linux-kernel

Two fixes to __v7m_setup for state a boot loader can leave behind.
Both came up while bringing Linux up on an RP2350 (Cortex-M33), booted
from a Raspberry Pi pico-sdk loader; it is the board I tested the
deprecation series on.

Patch 1 affects any v7-M or v8-M kernel whose loader ran an FP
instruction, and reproduces under QEMU (mps2-an505). Patch 2 affects a
Cortex-M33 kernel built without CONFIG_ARM_MPU whose loader set
ACTLR.EXTEXCLALL, which the pico-sdk does by default; it is tested on
the RP2350, as QEMU does not model ACTLR.

I know the Cortex-M platforms are going in 7.5. These are for the
stable kernels that still carry them, and for the v8-M core while its
future is discussed.

These patches were written with an AI coding assistant (Claude Opus
5.5, Anthropic), as each patch says; I reviewed the reasoning and the
test results.

Brad Hawthorne (2):
  ARM: v7m: clear CONTROL.FPCA before the boot SVC
  ARM: v7m: clear the Cortex-M33's ACTLR.EXTEXCLALL at boot

 arch/arm/include/asm/v7m.h |  3 +++
 arch/arm/mm/proc-v7m.S     | 17 ++++++++++++++++-
 2 files changed, 19 insertions(+), 1 deletion(-)


base-commit: aebb7274476403040d582c61478df8f4a7bf9cd3
-- 
2.43.0


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

end of thread, other threads:[~2026-11-25  2:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25  2:58 [PATCH 0/2] ARM: v7m: reset loader-set CONTROL and M33 ACTLR at boot Brad Hawthorne
2026-11-25  2:58 ` [PATCH 1/2] ARM: v7m: clear CONTROL.FPCA before the boot SVC Brad Hawthorne
2026-11-25  2:58 ` [PATCH 2/2] ARM: v7m: clear the Cortex-M33's ACTLR.EXTEXCLALL at boot Brad Hawthorne

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®