[Cbe-oss-dev] [RFC] Cell: shutdown method for spu_sysdev_class

Luke Browning lukebr at linux.vnet.ibm.com
Tue May 8 03:38:02 EST 2007


On Mon, 2007-05-07 at 08:53 -0700, Geoff Levand wrote:
> Luke Browning wrote:
> > On Sun, 2007-05-06 at 02:34 +0200, Arnd Bergmann wrote:
> >> On Sunday 06 May 2007, Geoff Levand wrote:
> >> > 
> >> > Add a shutdown method to spu_sysdev_class to allow proper spu resource
> >> > cleanup on system shutdown.  This is needed to support kexec on the PS3
> >> > platform.
> >> > 
> > 
> > why is this needed for kexec?  In a crash, shutdown is not called.
> 
> The PS3 bootloader uses 'kexec -e' to load a 2nd stage kernel.  In
> this case spu_sysdev_class.shutdown is called (from sysdev_shutdown).
> I need to free the HV resources so they will be available for the 2nd
> stage kernel.

I see.  Your second stage kernel is not a kdump capture kernel, but is
intended for some other purpose.

Luke





More information about the cbe-oss-dev mailing list