All of lore.kernel.org
 help / color / mirror / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: suparna@in.ibm.com
Cc: fastboot@osdl.org, linux-kernel@vger.kernel.org, mbligh@aracnet.com
Subject: Re: [KEXEC][PATCH] Modified (smaller) x86 kexec hwfixes patch
Date: 13 Feb 2003 08:09:16 -0700	[thread overview]
Message-ID: <m1heb8w737.fsf@frodo.biederman.org> (raw)
In-Reply-To: <20030213161014.A14361@in.ibm.com>

Suparna Bhattacharya <suparna@in.ibm.com> writes:

> Martin Bligh came up with a simple way to fix the kernel
> to enable kexec boot from any CPU. 
> 
> Rather than picking up boot cpu information from the MP 
> tables (which belong to the previous boot in the case of 
> kexec), it just sets it to the cpu its starting on.
> (See the changes in arch/i386/kernel/smpboot.c)
> 
> This simplifies the the kexec-hwfixes patch, since we
> no longer need to move to the boot cpu before stopping
> other processors. Which removes a lot of the unconditional
> patching of reboot.c and makes it less invasive, thanks to 
> Martin. Also, at panic time, cpu migration is something 
> that is best avoided.

I will agree with that, at least conditionally.  

I figure stop_apics can be removed from the panic path.

However stopping all of the cpus does seem to be something
that is needed on the panic path.  And if we stop cpus
what is wrong with cpu migration.  Or can we move the halt
of the cpus into the panic kernel?  That would be my real 
preference.

> It would be good if someone could test this out (on SMP)
> and confirm it works fine (I tried it on a 4way).
> 
> Eric, Do these changes look OK to you ? Did you have
> something similar in mind, when you were talking about
> enabling the kexec'd kernel to not care about which cpu
> it was running on ?

50%.  The normal case needs to shutdown the way it is currently doing.
So we need to audit the code a little more.

Basically the way I see it, in the normal case the kernel is responsible
for a clean shutdown of the kernel and all it's devices.   No one else
knows better how to accomplish those tasks then the drivers running the kernel.

On the other hand during a panic the recovery kernel is responsible for
everything it possibly can handle.  Because we know something is broken
in the kernel calling kexec.

Eric

  reply	other threads:[~2003-02-13 14:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-13 10:40 [KEXEC][PATCH] Modified (smaller) x86 kexec hwfixes patch Suparna Bhattacharya
2003-02-13 15:09 ` Eric W. Biederman [this message]
2003-02-14  3:29   ` Suparna Bhattacharya
2003-02-14  4:08     ` Martin J. Bligh
2003-02-14  8:30       ` Eric W. Biederman
2003-02-14  6:47     ` Martin J. Bligh
2003-02-14  8:32       ` Eric W. Biederman
2003-02-14 15:32         ` Martin J. Bligh
2003-02-14 16:00           ` Eric W. Biederman
2003-02-14  8:39     ` Eric W. Biederman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1heb8w737.fsf@frodo.biederman.org \
    --to=ebiederm@xmission.com \
    --cc=fastboot@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mbligh@aracnet.com \
    --cc=suparna@in.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.