mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Brad Hawthorne <brad@sim.vu>
To: linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org
Cc: vladimir.murzin@arm.com, linusw@kernel.org, arnd@arndb.de,
	envzhu@gmail.com, linux-kernel@vger.kernel.org
Subject: [PATCH 0/2] ARM: v7m: reset loader-set CONTROL and M33 ACTLR at boot
Date: Tue, 24 Nov 2026 20:58:50 -0600	[thread overview]
Message-ID: <20261125025852.1160075-1-brad@sim.vu> (raw)

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


             reply	other threads:[~2026-11-25  2:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25  2:58 Brad Hawthorne [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261125025852.1160075-1-brad@sim.vu \
    --to=brad@sim.vu \
    --cc=arnd@arndb.de \
    --cc=envzhu@gmail.com \
    --cc=linusw@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=vladimir.murzin@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®