[PATCH] reboot when panic_timout is set

Mike Strosaker strosake at austin.ibm.com
Thu Aug 31 08:13:00 EST 2006

Olaf Hering wrote:

>On Fri, Aug 25, Mike Strosaker wrote:
>>Olaf Hering wrote:
>>>Only call into RTAS when booted with panic=0 because the RTAS call does 
>>>not return.
>>>The system has to be rebooted via the HMC or via the management console 
>>>right now.
>>>This is cumbersome and not what the default panic=180 is supposed to do.
>>The os-term call is supposed to indicate to the platform that it should 
>>follow it's abnormal OS termination policy.  I normally set my 
>>partitions to reboot immediately after an os-term call.  I believe that 
>>"/usr/sbin/serv_config -b" (installed with powerpc-utils-papr) is used 
>>to set that policy from the command line.
>That doesnt help me at all if the kernel crashes before it reaches
>/init. And if one has to call a binary anyway to set or upgrade the
>policy, this binary can also set /proc/sys/kernel/panic to 0.
Hmm... I thought there was a way to modify the reboot policy from SMS or 
the OF command line, but I can't find a way offhand.  I'm trying to find 
out from the firmware people here.  It used to be an NVRAM variable in 
one of the partitions visible to the OS (and so changable from OF with 
the setenv command), but that's not the case anymore; it's now modified 
by the ibm,set-system-parameter RTAS call.

>Do I have to set it for each boot, or is a change permanent?
The change is stored in NVRAM, and thus is persistent across reboots.

More information about the Linuxppc-dev mailing list