[PATCH] ARM: formalize an IPI for CPU wake-ups

Russell King - ARM Linux linux at arm.linux.org.uk
Mon Jun 11 12:51:15 EDT 2012


On Mon, Jun 11, 2012 at 12:44:34PM -0400, Nicolas Pitre wrote:
> On Mon, 11 Jun 2012, Russell King - ARM Linux wrote:
> 
> > On Mon, Jun 11, 2012 at 11:54:03AM -0400, Nicolas Pitre wrote:
> > > 
> > > Many CPUs are implementing power saving states via the WFI mode.
> > > In some cases, WFI must be entered in order to suspend, or even reset,
> > > a CPU.
> > > 
> > > Whether a CPU needs to be awaken, brought out of WFI during secondary
> > > boot, or to cancel a reset state before it is effective, the CPU must
> > > receive an interrupt to exit its WFI state.
> > > 
> > > Let's formalize an IPI number for this purpose, and move over existing
> > > users over to a convenience function for it.
> > > 
> > > This also has the side effect of removing the spurious "Unknown IPI
> > > message 1" each time a CPU is awaken.
> > 
> > I want people to move over to using IPI 0 for wakeup.
> > 
> > The problem is, as ever, no one bloody well listens and they all continue
> > on copying Realview.
> 
> No problem -- with this patch the actual IPI number is abstracted away 
> and we can modify it as we see fit in a single location.

No.  The reason I haven't simply been through the code and done a forceful
replace of '1' to '0' is because we don't know how the platforms themselves
will react, and whether any have their boot protocol expecting SGI1.

I've explained all this before, whenever the whinge about the "Unknown IPI"
message comes up.  Unfortunately, no one has yet listened to what I've said
and done anything to test whether SGI0 works.



More information about the linux-arm-kernel mailing list