* [parisc-linux] towards unattended reboot
@ 2002-12-06 13:52 lamont
2002-12-06 16:22 ` Carlos O'Donell
0 siblings, 1 reply; 4+ messages in thread
From: lamont @ 2002-12-06 13:52 UTC (permalink / raw)
To: parisc-linux
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
diff -ur x/kernel-source-2.4.19-hppa/arch/parisc/kernel/traps.c kernel-source-2.4.19-hppa/arch/parisc/kernel/traps.c
--- x/kernel-source-2.4.19-hppa/arch/parisc/kernel/traps.c 2002-10-19 16:25:59.000000000 -0600
+++ kernel-source-2.4.19-hppa/arch/parisc/kernel/traps.c 2002-12-06 00:07:40.000000000 -0700
@@ -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(;;)
;
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [parisc-linux] towards unattended reboot
2002-12-06 13:52 [parisc-linux] towards unattended reboot lamont
@ 2002-12-06 16:22 ` Carlos O'Donell
2002-12-06 16:32 ` Bruno Vidal
2002-12-06 16:42 ` LaMont Jones
0 siblings, 2 replies; 4+ messages in thread
From: Carlos O'Donell @ 2002-12-06 16:22 UTC (permalink / raw)
To: lamont; +Cc: parisc-linux
> 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().
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [parisc-linux] towards unattended reboot
2002-12-06 16:22 ` Carlos O'Donell
@ 2002-12-06 16:32 ` Bruno Vidal
2002-12-06 16:42 ` LaMont Jones
1 sibling, 0 replies; 4+ messages in thread
From: Bruno Vidal @ 2002-12-06 16:32 UTC (permalink / raw)
To: parisc-linux@lists.parisc-linux.org
[-- Attachment #1: Type: text/plain, Size: 1042 bytes --]
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;
}
Carlos O'Donell wrote:
> > 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().
>
> 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.
>
> _______________________________________________
> parisc-linux mailing list
> parisc-linux@lists.parisc-linux.org
> http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
--
Vidal Bruno, (770-4271)
SSD-HA Team, HP-UX & LINUX Support
bruno_vidal@admin.france.hp.com
[-- Attachment #2: Card for Bruno Vidal --]
[-- Type: text/x-vcard, Size: 386 bytes --]
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:bruno_vidal@hp.com
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [parisc-linux] towards unattended reboot
2002-12-06 16:22 ` Carlos O'Donell
2002-12-06 16:32 ` Bruno Vidal
@ 2002-12-06 16:42 ` LaMont Jones
1 sibling, 0 replies; 4+ messages in thread
From: LaMont Jones @ 2002-12-06 16:42 UTC (permalink / raw)
To: Carlos O'Donell, lamont, parisc-linux; +Cc: lamont
On Fri, Dec 06, 2002 at 11:22:27AM -0500, Carlos O'Donell wrote:
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-12-06 16:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-06 13:52 [parisc-linux] towards unattended reboot lamont
2002-12-06 16:22 ` Carlos O'Donell
2002-12-06 16:32 ` Bruno Vidal
2002-12-06 16:42 ` LaMont Jones
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.