lkml.org 
[lkml]   [2001]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: smp_send_stop() and disable_local_APIC()
From
Date
"Matt D. Robinson" <yakker@alacritech.com> writes:

> It's an SMP (and only when your system crashes on a CPU other
> than 0) problem. I did some more checking of this to verify the
> specifics of the behavior. Thanks for the sarcasm, though. :)

O.k. That makes perfect sense then. See below.

> All I wanted was clarification as to why it was added in the first
> place, and whether there was a better way around the scenario.
> I think Ingo added the code, but I never heard back from him.
> Thanks for the response.

Welcome. Linux attempts to properly shutdown the apics when we are
shutting down, and part of that is returning the apics to the mode
they were before we got control. To do that you need to disable every
cpu but the bootstrap processor, and return the bootstrap processor to
either virtual wire mode or pic_mode. So of course it will be the
only cpu getting interrupts because we are in legacy mode.

I would say it probably makes sense to add an additional call.
smp_send_panic_stop that does exactly what you need instead of what is
needed on the normal shutdown path.

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

\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.036 / U:0.728 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site