linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: [RFC] cell: saving spus information for kexec crash
       [not found] <200705111353.22781.adetsch@br.ibm.com>
@ 2007-05-11 17:22 ` Anton Blanchard
  2007-05-11 17:48   ` Arnd Bergmann
  2007-05-13 22:14   ` [Cbe-oss-dev] " Benjamin Herrenschmidt
  0 siblings, 2 replies; 3+ messages in thread
From: Anton Blanchard @ 2007-05-11 17:22 UTC (permalink / raw)
  To: Andre Detsch; +Cc: linuxppc-dev, cbe-oss-dev

 
Hi,

> This patch adds support for investigating spus information after a
> kernel crash event, through kdump vmcore file.
> Implementation is based on xmon code, but the new functionality was
> kept independent.

This brings up a point: it looks like kdump doesnt capture the FP and
altivec regs. Could be important for some bugs.

This brings up yet another point, it looks like our userspace core dumps
dont capture altivec or SPU state.

Anton

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFC] cell: saving spus information for kexec crash
  2007-05-11 17:22 ` [RFC] cell: saving spus information for kexec crash Anton Blanchard
@ 2007-05-11 17:48   ` Arnd Bergmann
  2007-05-13 22:14   ` [Cbe-oss-dev] " Benjamin Herrenschmidt
  1 sibling, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2007-05-11 17:48 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Andre Detsch, Anton Blanchard, cbe-oss-dev

On Friday 11 May 2007, Anton Blanchard wrote:

> > This patch adds support for investigating spus information after a
> > kernel crash event, through kdump vmcore file.
> > Implementation is based on xmon code, but the new functionality was
> > kept independent.
> 
> This brings up a point: it looks like kdump doesnt capture the FP and
> altivec regs. Could be important for some bugs.

Yes, and there are more things that might be worth adding:

- SLB contents (as noticed by Luke Browning)
- some SPRs
- state of some device drivers

We have briefly discussed the idea of having generic notifiers into
which arbitrary subsystems can register, but unless we have more than
one or two users, it's probably not worth it.

> This brings up yet another point, it looks like our userspace core dumps
> dont capture altivec or SPU state.

Actually, the userspace core dumps do capture the SPU state as of 2.6.21,
thanks to the work of Dwayne McConnell :-)

	Arnd <><

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Cbe-oss-dev] [RFC] cell: saving spus information for kexec crash
  2007-05-11 17:22 ` [RFC] cell: saving spus information for kexec crash Anton Blanchard
  2007-05-11 17:48   ` Arnd Bergmann
@ 2007-05-13 22:14   ` Benjamin Herrenschmidt
  1 sibling, 0 replies; 3+ messages in thread
From: Benjamin Herrenschmidt @ 2007-05-13 22:14 UTC (permalink / raw)
  To: Anton Blanchard; +Cc: Andre Detsch, cbe-oss-dev, linuxppc-dev

On Fri, 2007-05-11 at 12:22 -0500, Anton Blanchard wrote:
> Hi,
> 
> > This patch adds support for investigating spus information after a
> > kernel crash event, through kdump vmcore file.
> > Implementation is based on xmon code, but the new functionality was
> > kept independent.
> 
> This brings up a point: it looks like kdump doesnt capture the FP and
> altivec regs. Could be important for some bugs.
> 
> This brings up yet another point, it looks like our userspace core dumps
> dont capture altivec or SPU state.

That's interesting: We do have a dump_task_altivec() but it looks like
its never called ... ouch. Maybe we can use the XFPREGS stuff or should
we add our own hook in binfmt_elf.c for that ?

As for SPU state, there's code to dump the SPEs in a separate section,
though I don't know if it's been merged yet (no up to date git tree
at hand right now). It uses different macros off binfmt_elf.

Ben.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-05-13 22:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200705111353.22781.adetsch@br.ibm.com>
2007-05-11 17:22 ` [RFC] cell: saving spus information for kexec crash Anton Blanchard
2007-05-11 17:48   ` Arnd Bergmann
2007-05-13 22:14   ` [Cbe-oss-dev] " Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).