[PATCH 1/5] spi: spi-mem: Add support for panic mem writes
Paul Cercueil
paul.cercueil at bootlin.com
Wed Oct 14 01:54:56 PDT 2026
Hi Mark,
Le mardi 13 octobre 2026 à 17:00 +0100, Mark Brown a écrit :
> On Tue, Oct 13, 2026 at 01:00:50PM +0200, Paul Cercueil wrote:
> > Le mardi 13 octobre 2026 à 11:42 +0100, Mark Brown a écrit :
>
> > > Do the other CPUs know they're panicing yet, and what state is the
> > > hardware in? I'm a bit nervous about assuming panic got things into a
> > > good state.
>
> > The other CPUs are stopped, yes. At that point there's no SMP, no
> > preemption, no
> > IRQs, no time accounting.
>
> My worry is what happens if we didn't actually manage to stop the other
> CPUs - in theory we've shut everything down, but I've been burned by the
> bug being IPIs breaking. Perhaps it's just not worth worrying about.
My understanding is that the panic handlers are written with the assumption that
everything is stopped, it's up to the calling code to ensure that it is true.
-Paul
More information about the linux-mtd
mailing list