Re: [PATCH] 2.6.9: Only handle system NMIs on the BSP

From: Maciej W. Rozycki
Date: Tue Nov 02 2004 - 22:06:20 EST


On Wed, 3 Nov 2004, Andi Kleen wrote:

> > While discussing races in the NMI handler's trailer fiddling with RTC
> > registers, I've discovered we incorrectly attempt to handle NMIs coming
> > from the system (memory errors, IOCHK# assertions, etc.) with all
> > processors even though the interrupts are only routed to the bootstrap
> > processor. If one of these events coincides with a NMI watchdog tick it
>
> Where is this documented/guaranteed that only APs get such NMIs?

Only the BSP gets them (not APs) and it's we who arrange for that. ;-)
We only enable LVT1 on the BSP -- APs have this input masked. See
setup_local_APIC().

> I don't see such a guarantee in the AMD documentation for example ...

It's specific to system software run. You'd have to have a look at some
Linux documentation covering the area -- your best bet is the code itself.

Maciej
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/