[Cbe-oss-dev] [patch 4/5] cell: saving spus information for kexec crash

André Detsch adetsch at br.ibm.com
Thu Jun 21 04:52:38 EST 2007


Michael Ellerman wrote:
> On Tue, 2007-06-19 at 00:42 +0200, Arnd Bergmann wrote:
>> plain text document attachment (cell-spus-info-kexec-crash-1.diff)
>> From: Andre Detsch <adetsch at br.ibm.com>
>> 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 from xmon.
>>
>> Signed-off-by: Lucio Jose Herculano Correia <luciojhc at br.ibm.com>
>> Signed-off-by: Andre Detsch <adetsch at br.ibm.com>
>> Signed-off-by: Arnd Bergmann <arnd.bergmann at de.ibm.com>
> 
> 
> I'd like to have this patch share the emergency stopping logic with the
> xmon code, I'll try and get a patch done in the next few days.
> 

Hi Michael,

What aspect of the patch do you think would benefit from sharing logic 
with xmon? The structures (struct crash_spu + crash_register_spus 
function) or the stop spus logic itself (crash_kexec_stop_spus)? Or both?

My first approach was actually to use the same structure and code as 
xmon (as you might remember from an private email I've sent before 
posting the patch). However, talking with Luke, we decided to keep xmon 
and crash data independent from each other, since he was interested on 
eventually allowing xmon to be run before the second kernel gets loaded. 
  So, having a separate structure for crash info would allow us to save 
the exact state when the crash occurred, no matter of what the user did 
while running xmon.

Best regards,

--
Andre Detsch



More information about the Linuxppc-dev mailing list