Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: jestabro@amt.tay1.dec.com <jestabro@amt.tay1.dec.com>
Subject: Re:
Date: Tue, 07 Oct 1997 13:33:52 +0500	[thread overview]
Message-ID: <e4938dbed0c5e90a60e5905259b79d54.axp-list@archive.invalid> (raw)
In-Reply-To: <3.0.3.32.19971006213130.0092c860@pop4.ibm.net>

>>> "Jim. Shipman" said:
>
> I am building a system consisting of lots and lots of PC164 boards (up to
> 1000) containing nothing more than a network card and need a good reliable
> software reset.  I've been trying to use "shutdown -r now", but most of the
> time it just says it is rebooting, but in fact, hangs.  This system is
> running SRM and a remote booted kernel with nfsroot file system, but it
> seems to have trouble even when I run it "normally".  Do other people have
> trouble getting "shutdown -r now" to work?  Is there a more robust way to
> cause a soft reboot from a telnet connections?

This is a known problem.

I'm currently working on a set of patches that will fix it.

They are not ready yet.

In the meantime, you might be surprised to find that the reboot actually
*did* get back into SRM (at least it does on some of my systems). The fact
that you don't see it reboot is because:

1. the VGA screen management under LINUX conflicts with that under SRM,
   such that SRM may be using the top of video memory, while LINUX left
   the display showing the *bottom* of video memory.

2. the "reboot" code in the LINUX kernel doesn't pass the correct value
   to the callPal_HALT entry point in SRM, so it doesn't think you *want*
   to reboot. See attached at the end a snippit of code for doing the correct
   argmument passing. 

To check whether you really *are* getting back into SRM but just can't see
it, type in "init" on the keyboard (blind, of course :-), and see if the
console comes back to life.

--Jay++

-------------------------------------------------------------------------------
  American Non Sequitur Society: we don't make sense, but we do like pizza...

Jay A Estabrook                         Alpha Migration Tools - LINUX Project
Digital Equipment Corp.                 (508) 952-4202 or (DTN) 227-4202
151 Taylor Street - TAY1-2              enet: jestabro@amt.tay1.dec.com
Littleton, MA 01460-1407                decnet: tallis::jestabro
-------------------------------------------------------------------------------
/*
 * this is in arch/alpha/kernel/process.c
 */

void hard_reset_now(void)
{
#if defined(CONFIG_ALPHA_SRM)
        extern struct hwrpb_struct *hwrpb;
        struct percpu_struct *cpup;
        unsigned long flags;

        cpup = (struct percpu_struct *)
          ((unsigned long)hwrpb + hwrpb->processor_offset);
        flags = cpup->flags;
#if 1
        printk("hard_reset_now: flags 0x%lx\n", flags);
#endif
        flags &= ~0x0000000000ff0001UL; /* clear reason to "default" */
        flags |=  0x0000000000020000UL; /* this is "cold bootstrap" */
/*      flags |=  0x0000000000030000UL; *//* this is "warm bootstrap" */
/*      flags |=  0x0000000000040000UL; *//* this is "remain halted" */
        cpup->flags = flags;
        mb();
#endif /* SRM */
#if defined(CONFIG_ALPHA_SRM) && defined(CONFIG_ALPHA_ALCOR)
        /* who said DEC engineers have no sense of humor? ;-)) */
        *(int *) GRU_RESET = 0x0000dead;
        mb();
#endif
        halt();
}

-----------------------------------------------------------------------------

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

       reply	other threads:[~1997-10-07  8:33 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3.0.3.32.19971006213130.0092c860@pop4.ibm.net>
1997-10-07  8:33 ` jestabro [this message]
1997-12-03 22:10 ` Anthony Pardini
1997-12-04 10:43   ` Re: Paul Wouters
2000-09-13  9:26 httpd : hari 
2000-09-13  9:30 ` identity
  -- strict thread matches above, loose matches on Subject: below --
1998-05-06 12:29 Brian E.W. Wood
     [not found] <Pine.LNX.3.95.971223093634.14902x-100000@sheerx.eni.net>
1997-12-23 18:18 ` Maurice W. Hilarius
     [not found] <3.0.3.32.19971222193511.0087f780@ellpspace.math.ualberta.ca>
1997-12-23 17:36 ` Re: Sheer Panic
     [not found] <199712231318.IAA03964@wilde.oit.umass.edu>
1997-12-23 17:22 ` Re: Maurice W. Hilarius
1997-12-23 13:18 Re: Fude Yao
1997-10-07 12:38 Mark Johnson
     [not found] <01BCC8DD.E6F3B470.mjohnson@sanders.com>
1997-09-24 15:45 ` D. Unger
1997-09-24 17:21 ` Re: Nathan C. Blair
     [not found] <33DB1EA6.2099D8F1@savetrees.com>
1997-07-28 14:00 ` Re: Paul N.
1997-07-27 10:10 Re: Christopher Grayce
     [not found] <Pine.GSO.3.96.970723155451.20730E-100000@explorer2.clark.net>
1997-07-23 20:25 ` Re: Paul N.
     [not found] <Pine.GSO.3.96L.970723151655.6590E-100000@unixs1.cis.pitt.edu>
1997-07-23 19:57 ` Re: Paul D. Robertson
1997-07-08  3:25 Re: David Mosberger-Tang
1997-07-08  5:17 ` Re: Maurice W. Hilarius
1997-06-22  5:00 Re: Craig Burley
1997-06-21 17:23 David Mosberger-Tang
1997-06-21 21:31 ` Maurice W. Hilarius
1997-11-23 17:52 ` Re: Maurice W. Hilarius
     [not found] <199706181924.MAA20180@panda.mosberger>
1997-06-18 23:35 ` Re: Bill Broadley
1997-05-30 20:24 Re: Przemek Klosowski
     [not found] <199704231558.KAA15259@stommel.tamu.edu>
1997-04-23 21:41 ` Re: Michal Jaegermann
1997-04-23 21:48   ` Re: Scott Locklin
1997-04-23 23:18   ` Re: Richard Henderson
     [not found] <QQcmgd13813.199704211549@relay5.UU.NET>
1997-04-23 15:58 ` Re: Richard Henderson
     [not found] <19970212205843.23284.qmail@brouhaha.com>
1997-02-12 21:48 ` Re: Andrew D. Isaacson
1997-02-21 17:42 ` Re: Anton Ertl
1996-11-25  5:12 Re: Mike Epstein
1996-11-22  0:20 Mike Epstein
1996-11-24 16:29 ` jestabro
     [not found] <Pine.LNX.3.95.961021155436.5824L-100000@ns1.fni.com>
1996-10-22 18:08 ` Re: Richard Henderson
1996-05-22  9:05 Neal. 22-May-1996 0952 +0100
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox