[Cbe-oss-dev] [RFC] Cell: shutdown method for spu_sysdev_class
Michael Ellerman
michael at ellerman.id.au
Mon May 7 21:23:08 EST 2007
On Sun, 2007-05-06 at 23:27 -0300, Luke Browning wrote:
> On Mon, 2007-05-07 at 11:20 +1000, Michael Ellerman wrote:
>
> >
> > Nothing gets called in the kdump case, the kernel is panicked.
> >
> > For kexec it makes sense to do any cleanup you can, but for kdump you
> > need to expect that the previous kernel has left everything screwed up.
> >
> > One thing we should consider for kdump is stopping execution of the
> > spus. Although it increases the amount of code we're executing in the
> > panicked kernel, I think it might still be a good idea. We'd want to use
> > a special shutdown routine which walks as few data structures as
> > possible.
> >
> > cheers
>
> Hi Mike,
>
> I got a little confused with your use of kexec and kdump, but I believe
> we are on the same page.
Sorry, yeah it can be a bit confusing. Common usage I think is:
kexec == "kexec -l / kexec -e"
kdump == "kexec -p / panic etc."
That's what I mean anyway :)
> Lucio is adding logic to stop the spus in the exception path. This is
> part of the default kernel which is compiled with kexec. During the
> processing of the exception, the previously loaded kdump kernel is
> invoked. It boots, the system dump file is saved, and the the kdump
> capture kernel is shutdown so that the default kernel is rebooted.
That sounds good.
> My question for Mike, Prasad, or Vivek is:
>
> When the default kernel is rebooted, how is the kexec -p command run
> again. Seems odd to expect the user to do it. Is there some kind of
> init / rc script that performs this operation each boot?
It's a distro policy issue, but AIUI both SLES and RHEL have init
scripts that do it for the user.
cheers
--
Michael Ellerman
OzLabs, IBM Australia Development Lab
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/cbe-oss-dev/attachments/20070507/92c65b7a/attachment.pgp>
More information about the cbe-oss-dev
mailing list