lkml.org 
[lkml]   [2013]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Do not force shutdown/reboot to boot cpu.
On Mon, Apr 08, 2013 at 09:11:06AM -0700, H. Peter Anvin wrote:
> On 04/08/2013 08:57 AM, Ingo Molnar wrote:
> >
> > I think the original commit:
> >
> > f96972f2dc63 kernel/sys.c: call disable_nonboot_cpus() in kernel_restart()
> >
> > actually regressed your 1024 CPU systems, and should possibly be reverted or fixed
> > in some other fashion - such as by migrating to the primary CPU (on architectures
> > that require that), instead of hotplug offlining every secondary CPU on every
> > architecture!
> >
> > Alternatively, disable_nonboot_cpus() could perhaps be improved to down CPUs in
> > parallel: issue the CPU-down requests to every CPU, then wait for them to complete
> > - instead of the loop over every CPU?
> >
> > This would be the conceptual counter part to parallel boot up of CPUs - something
> > SGI might be interested in as well?
> >
>
> Migrating to the boot processor and then calling stop_machine() to
> defang any other processors should be sufficient, no?
>
> I don't know if there is any reason to deschedule all tasks?

My reading of the original commit indicated that some architecture's
firmware needs the boot cpu to be the one initiating reboot.

If that is correct, then I can not see why a stop_machine() implementation
will not work.

Since this is in generic kernel code, how can I proceed?

Robin


\
 
 \ /
  Last update: 2013-04-08 19:41    [W:0.085 / U:0.856 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site