towards unattended reboot
Q: Given a 2.4.19 kernel, how do you get it to automatically reboot on crash?
A: see below. The first one breaks the loop on dumping the stack. The
second part resets the machine in parisc_terminate().
thoughts?
lamont
arch/parisc/kernel/traps.c renamed from kernel-source-2.4.19-hppa/arch/parisc/kernel/traps.c +11 -0
@@ -148,6 +148,11 @@void show_stack (struct pt_regs *regs) {#if 1 +static int tried_stack=0 ; +if (tried_stack) +return ; + tried_stack++; +/* If regs->sr[7] == 0, we are on a kernel stack */ if (regs->sr[7 ] ==0 ) {
@@ -462,6 +467,12 @@* system will shut down immediately right here. */ pdc_soft_power_button (0 ); + { +static int tried_once=0 ; +if (!tried_once++) +__raw_writel (5 ,0xfffe0030 ); + } +for (;;) ; }
Quoted 4 lines
Q: Given a 2.4.19 kernel, how do you get it to automatically reboot on crash?
A: see below. The first one breaks the loop on dumping the stack. The
second part resets the machine inparisc_terminate().
Looks awesome in my opinion. I've needed something like this for my cluster, it gets anyone when machines don't reset on crash :)
Though having this be optional seems like an important feature to add.
c.
In the dump driver, at the end of dump, it reboot automatically:
...
DUMP_PRINT("Rebooting in %d seconds ...", panic_timeout);
dump_wait_n_msec(panic_timeout * 1000);
machine_restart(NULL);
return;
}Quoted 8 lines · Carlos O'Donell
Quoted 4 lines
Q: Given a 2.4.19 kernel, how do you get it to automatically reboot on crash?
A: see below. The first one breaks the loop on dumping the stack. The
second part resets the machine inparisc_terminate().Looks awesome in my opinion. I've needed something like this for my cluster, it gets anyone when machines don't reset on crash :)
Quoted 8 lines
Though having this be optional seems like an important feature to add.
c.
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
--
Vidal Bruno, (770-4271)
SSD-HA Team, HP-UX & LINUX Support
[email protected]
begin:vcard
n:Bruno;VIDAL
tel;fax:01-69-82-60-14
tel;work:01-69-29-42-71
x-mozilla-html:TRUE
url:www.france.hp.com
org:Solution Center
version:2.1
email;internet:[email protected]
title:Expert Logiciel Environnement Haute Disponibilité
adr;quoted-printable:;;HP France=0D=0A;Z.A de Courtaboeuf;1 Av. du Canada;91947 Les Ulis cedex;France x-mozilla-cpt:;26208
fn:VIDAL Bruno
end:vcard
Quoted 3 lines · Carlos O'Donell
Looks awesome in my opinion. I've needed something like this for my cluster, it gets anyone when machines don't reset on crash :) Though having this be optional seems like an important feature to add.
I want a /proc entry to tweak it... :-)
lamont