* Re: Problem rebooting AlphaStation 200 with SRM from RedHat 5.1? @ 1998-09-13 22:43 Alan Kennedy 1998-09-14 19:38 ` Neil Harkins 0 siblings, 1 reply; 11+ messages in thread From: Alan Kennedy @ 1998-09-13 22:43 UTC (permalink / raw) To: axp-list Hi, Mine reboots fine here. There is a setting that needs to be set in the srm console to get it to boot again. It has been awhile since I had to reboot so I have really forgotten, but will look again later today. however at the srm console type "init" and that should clear the system out. Later, Alan ---"B. James Phillippe" <bryan@terran.org> wrote: > > On Sun, 13 Sep 1998, Neil Harkins wrote: > > > Is there anyone else out there who has had or seen problems rebooting > > a RedHat 5.1 AlphaStation 200 with SRM (and solved them)? > > > > shutdown -r now halts my system cleanly, but doesn't reboot. > > It waits at the SRM console prompt, and the very next SRM command typed, > > every one I've tried, gives an error, displays a stream of memory addresses, > > and reboots. Like so: > > Wow, you have much better luck than I do. I have a RedHat-5.1 system > running on AS200 (using SRM) and my shutdown -r now just hangs at "Please > wait while rebooting system" forever. Now, I did build my own kernel from > 2.0.35 + the patches at gatekeeper. Perhaps I need something later? > > -bp > -- > B. James Phillippe <bryan@terran.org> > Linux Software Engineer, WGTI. > http://earth.terran.org/~bryan > > -- > 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 > > _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Problem rebooting AlphaStation 200 with SRM from RedHat 5.1? 1998-09-13 22:43 Problem rebooting AlphaStation 200 with SRM from RedHat 5.1? Alan Kennedy @ 1998-09-14 19:38 ` Neil Harkins 1998-09-14 21:47 ` Maurice Hilarius 1998-09-15 1:49 ` Larry Creech 0 siblings, 2 replies; 11+ messages in thread From: Neil Harkins @ 1998-09-14 19:38 UTC (permalink / raw) To: axp-list On Sun, 13 Sep 1998, Alan Kennedy wrote: > Mine reboots fine here. There is a setting that needs to be set in the > srm console to get it to boot again. > > It has been awhile since I had to reboot so I have really forgotten, > but will look again later today. The SRM environment variable is "auto_action", and I have tried setting it to both "boot" and "restart", same result. :( ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Problem rebooting AlphaStation 200 with SRM from RedHat 5.1? 1998-09-14 19:38 ` Neil Harkins @ 1998-09-14 21:47 ` Maurice Hilarius 1998-09-15 1:49 ` Larry Creech 1 sibling, 0 replies; 11+ messages in thread From: Maurice Hilarius @ 1998-09-14 21:47 UTC (permalink / raw) To: axp-list With regards to your message at 12:38 PM 09-14-98 -0700, Neil Harkins. Where you stated: >On Sun, 13 Sep 1998, Alan Kennedy wrote: >> Mine reboots fine here. There is a setting that needs to be set in the >> srm console to get it to boot again. >> >> It has been awhile since I had to reboot so I have really forgotten, >> but will look again later today. > >The SRM environment variable is "auto_action", >and I have tried setting it to both "boot" and "restart", >same result. :( > Actually choices are: "auto" or "halt" Cheers, +--------------------------------------------------------+ | Maurice Hilarius | The Past is History | | Edmonton, Alberta, Canada | The Future is Mystery | | | Today is a Gift | | Phone (403) 456-1510 | That is why they call it | | email:maurice@harddata.com | The Present | +--------------------------------------------------------+ #!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj $/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1 lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/) ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Problem rebooting AlphaStation 200 with SRM from RedHat 5.1? 1998-09-14 19:38 ` Neil Harkins 1998-09-14 21:47 ` Maurice Hilarius @ 1998-09-15 1:49 ` Larry Creech 1998-09-15 9:40 ` Maciej W. Rozycki 1 sibling, 1 reply; 11+ messages in thread From: Larry Creech @ 1998-09-15 1:49 UTC (permalink / raw) To: axp-list I have the same problem with kernel 2.1.120, while kernel 2.1.106 reboots fine. On Mon, 14 Sep 1998, Neil Harkins wrote: > On Sun, 13 Sep 1998, Alan Kennedy wrote: > > Mine reboots fine here. There is a setting that needs to be set in the > > srm console to get it to boot again. > > > > It has been awhile since I had to reboot so I have really forgotten, > > but will look again later today. > > The SRM environment variable is "auto_action", > and I have tried setting it to both "boot" and "restart", > same result. :( > > -- > 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 > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Problem rebooting AlphaStation 200 with SRM from RedHat 5.1? 1998-09-15 1:49 ` Larry Creech @ 1998-09-15 9:40 ` Maciej W. Rozycki 1998-09-15 14:41 ` Jonathan Vafai 0 siblings, 1 reply; 11+ messages in thread From: Maciej W. Rozycki @ 1998-09-15 9:40 UTC (permalink / raw) To: axp-list On Mon, 14 Sep 1998, Larry Creech wrote: > I have the same problem with kernel 2.1.120, while kernel 2.1.106 reboots > fine. There were major Alpha changes merged in 2.1.116 and since then the kernel does not halt or reboot properly. Hopefully this will be fixed before 2.2 (there some Alpha updates pending AFAIK). -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Problem rebooting AlphaStation 200 with SRM from RedHat 5.1? 1998-09-15 9:40 ` Maciej W. Rozycki @ 1998-09-15 14:41 ` Jonathan Vafai 1998-09-15 16:20 ` Peter Rye 1998-09-15 16:36 ` Maciej W. Rozycki 0 siblings, 2 replies; 11+ messages in thread From: Jonathan Vafai @ 1998-09-15 14:41 UTC (permalink / raw) To: axp-list > There were major Alpha changes merged in 2.1.116 and since then the > kernel does not halt or reboot properly. Hopefully this will be fixed > before 2.2 (there some Alpha updates pending AFAIK). What is the most recent kernel that works out of the box? I am trying to get 1.1.121 to work. It compiles, but will not boot after it unzips. -- ======== C8 4C DE CA 8E 79 B3 87 92 B6 A4 B0 72 CA C4 6E ======== Jonathan J. Vafai New York University jjv200@nyu.edu CANYU + Pilot + Linux =========== <http://www.nyu.edu/projects/genomics/jv/> =========== ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Problem rebooting AlphaStation 200 with SRM from RedHat 5.1? 1998-09-15 14:41 ` Jonathan Vafai @ 1998-09-15 16:20 ` Peter Rye 1998-09-15 21:45 ` Stefan Traby 1998-09-15 16:36 ` Maciej W. Rozycki 1 sibling, 1 reply; 11+ messages in thread From: Peter Rye @ 1998-09-15 16:20 UTC (permalink / raw) To: axp-list On Tue, Sep 15, 1998 at 10:41:16AM -0400, Jonathan Vafai wrote: > > There were major Alpha changes merged in 2.1.116 and since then the > > kernel does not halt or reboot properly. Hopefully this will be fixed > > before 2.2 (there some Alpha updates pending AFAIK). > > What is the most recent kernel that works out of the box? > > I am trying to get 1.1.121 to work. It compiles, but will not boot after > it unzips. Same problem here (SX164, egcs-1.1b). Currently running 2.1.120. Linux picu-sgh.demon.co.uk 2.1.120 #3 Mon Sep 7 17:27:20 BST 1998 alpha unknown ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Problem rebooting AlphaStation 200 with SRM from RedHat 5.1? 1998-09-15 16:20 ` Peter Rye @ 1998-09-15 21:45 ` Stefan Traby 0 siblings, 0 replies; 11+ messages in thread From: Stefan Traby @ 1998-09-15 21:45 UTC (permalink / raw) To: axp-list Hi Peter ! > > I am trying to get 1.1.121 to work. It compiles, but will not boot after > > it unzips. > > Same problem here (SX164, egcs-1.1b). > Currently running 2.1.120. > Linux picu-sgh.demon.co.uk 2.1.120 #3 Mon Sep 7 17:27:20 BST 1998 alpha unknown The problem lies in the IRQ setup. Please apply the following patch made by --Jay++ (it will be hopefully included in 2.1.122) diff -ur TEMP/rth-120-14/arch/alpha/kernel/irq.c PATCH/rth-120-14/arch/alpha/kernel/irq.c --- TEMP/rth-120-14/arch/alpha/kernel/irq.c Mon Sep 7 22:33:40 1998 +++ PATCH/rth-120-14/arch/alpha/kernel/irq.c Tue Sep 8 17:21:42 1998 @@ -311,26 +311,39 @@ int get_irq_list(char *buf) { - int i, len = 0; + int i, j; struct irqaction * action; - int cpu = smp_processor_id(); + char *p = buf; + + p += sprintf(p, " "); + for (j = 0; j < smp_num_cpus; j++) + p += sprintf(p, "CPU%d ", j); + *p++ = '\n'; for (i = 0; i < NR_IRQS; i++) { action = irq_action[i]; if (!action) continue; - len += sprintf(buf+len, "%2d: %10u %c %s", - i, kstat.irqs[cpu][i], - (action->flags & SA_INTERRUPT) ? '+' : ' ', - action->name); + p += sprintf(p, "%3d: ",i); +#ifndef __SMP__ + p += sprintf(p, "%10u ", kstat_irqs(i)); +#else + for (j = 0; j < smp_num_cpus; j++) + p += sprintf(p, "%10u ", + kstat.irqs[cpu_logical_map(j)][i]); +#endif + p += sprintf(p, " %c%s", + (action->flags & SA_INTERRUPT)?'+':' ', + action->name); + for (action=action->next; action; action = action->next) { - len += sprintf(buf+len, ", %s%s", - (action->flags & SA_INTERRUPT) ? "+":"", - action->name); + p += sprintf(p, ", %c%s", + (action->flags & SA_INTERRUPT)?'+':' ', + action->name); } - len += sprintf(buf+len, "\n"); + *p++ = '\n'; } - return len; + return p - buf; } #ifdef __SMP__ diff -ur TEMP/rth-120-14/arch/alpha/kernel/irq.h PATCH/rth-120-14/arch/alpha/kernel/irq.h --- TEMP/rth-120-14/arch/alpha/kernel/irq.h Mon Sep 7 22:33:40 1998 +++ PATCH/rth-120-14/arch/alpha/kernel/irq.h Wed Sep 9 20:47:11 1998 @@ -11,11 +11,8 @@ #define STANDARD_INIT_IRQ_PROLOG \ outb(0, DMA1_RESET_REG); \ outb(0, DMA2_RESET_REG); \ - outb(0, DMA1_MASK_REG); \ - outb(0, DMA2_MASK_REG); \ outb(0, DMA1_CLR_MASK_REG); \ - outb(0, DMA2_CLR_MASK_REG); \ - outb(DMA_MODE_CASCADE, DMA2_MODE_REG) + outb(0, DMA2_CLR_MASK_REG); extern unsigned long alpha_irq_mask; diff -ur TEMP/rth-120-14/arch/alpha/kernel/smc37c93x.c PATCH/rth-120-14/arch/alpha/kernel/smc37c93x.c --- TEMP/rth-120-14/arch/alpha/kernel/smc37c93x.c Mon Sep 7 22:33:41 1998 +++ PATCH/rth-120-14/arch/alpha/kernel/smc37c93x.c Thu Sep 10 09:57:56 1998 @@ -8,6 +8,7 @@ #include <linux/malloc.h> #include <linux/mm.h> #include <linux/init.h> +#include <linux/delay.h> #include <asm/hwrpb.h> #include <asm/io.h> @@ -86,21 +87,28 @@ unsigned long indexPort; unsigned long dataPort; + int i; + configPort = indexPort = baseAddr; dataPort = configPort + 1; - outb(CONFIG_ON_KEY, configPort); - outb(CONFIG_ON_KEY, configPort); - outb(DEVICE_ID, indexPort); - devId = inb(dataPort); - if ( devId == VALID_DEVICE_ID ) { - outb(DEVICE_REV, indexPort); - devRev = inb(dataPort); - } - else { - baseAddr = 0; +#define NUM_RETRIES 5 + + for (i = 0; i < NUM_RETRIES; i++) + { + outb(CONFIG_ON_KEY, configPort); + outb(CONFIG_ON_KEY, configPort); + outb(DEVICE_ID, indexPort); + devId = inb(dataPort); + if (devId == VALID_DEVICE_ID) { + outb(DEVICE_REV, indexPort); + devRev = inb(dataPort); + break; + } + else + udelay(100); } - return baseAddr; + return (i != NUM_RETRIES) ? baseAddr : 0L; } static void __init SMCRunState(unsigned long baseAddr) diff -ur TEMP/rth-120-14/arch/alpha/kernel/smp.c PATCH/rth-120-14/arch/alpha/kernel/smp.c --- TEMP/rth-120-14/arch/alpha/kernel/smp.c Mon Sep 7 22:33:41 1998 +++ PATCH/rth-120-14/arch/alpha/kernel/smp.c Wed Sep 9 12:48:53 1998 @@ -39,6 +39,7 @@ unsigned int boot_cpu_id = 0; static int smp_activated = 0; +static unsigned long ipicnt[NR_CPUS] = {0,}; /* IPI counts */ int smp_found_config = 0; /* Have we found an SMP box */ static int max_cpus = -1; @@ -702,6 +703,8 @@ int ops; mb(); + + ipicnt[this_cpu]++; #if 0 printk("handle_ipi: on CPU %d ops 0x%x PC 0x%lx\n", this_cpu, *pending_ipis, regs->pc); @@ -737,8 +740,13 @@ int smp_info(char *buffer) { - return sprintf(buffer, "CPUs probed %d active %d map 0x%x\n", - smp_num_probed, smp_num_cpus, cpu_present_map); + int i; + unsigned long sum = 0; + for (i = 0; i < NR_CPUS; i++) + sum += ipicnt[i]; + + return sprintf(buffer, "CPUs probed %d active %d map 0x%x IPIs %ld\n", + smp_num_probed, smp_num_cpus, cpu_present_map, sum); } /* wrapper for call from panic() */ @@ -876,6 +884,8 @@ long tmp; long stuck; void *inline_pc = __builtin_return_address(0); + int printed = 0; + unsigned long started = jiffies; try_again: @@ -905,12 +915,23 @@ : "2" (stuck)); if (stuck < 0) { - printk("spinlock stuck at %p (cur=%p, own=%p, prev=%p)\n", - inline_pc, current, lock->task, lock->previous); + if (!printed) { + printk("spinlock stuck at %p on %x, " + "owned at %p on %x\n", + inline_pc, smp_processor_id(), + lock->previous, lock->task); + printed = 1; + } goto try_again; } else { lock->previous = inline_pc; - lock->task = current; + lock->task = smp_processor_id(); + if (printed) { + printk("spinlock waited at %p on %x " + "for %ld ticks\n", + inline_pc, smp_processor_id(), + jiffies - started); + } } } #endif /* DEBUG_SPINLOCK */ diff -ur TEMP/rth-120-14/arch/alpha/kernel/sys_sx164.c PATCH/rth-120-14/arch/alpha/kernel/sys_sx164.c --- TEMP/rth-120-14/arch/alpha/kernel/sys_sx164.c Mon Sep 7 22:33:41 1998 +++ PATCH/rth-120-14/arch/alpha/kernel/sys_sx164.c Thu Sep 10 13:34:23 1998 @@ -103,7 +103,10 @@ static void sx164_init_irq(void) { - STANDARD_INIT_IRQ_PROLOG; + outb(0, DMA1_RESET_REG); + outb(0, DMA2_RESET_REG); + outb(DMA_MODE_CASCADE, DMA2_MODE_REG); + outb(0, DMA2_MASK_REG); if (alpha_using_srm) { alpha_mv.update_irq_hw = sx164_srm_update_irq_hw; Only in PATCH/rth-120-14/arch/alpha/kernel: sys_sx164.c~ diff -ur TEMP/rth-120-14/include/asm-alpha/hardirq.h PATCH/rth-120-14/include/asm-alpha/hardirq.h --- TEMP/rth-120-14/include/asm-alpha/hardirq.h Mon Sep 7 22:33:42 1998 +++ PATCH/rth-120-14/include/asm-alpha/hardirq.h Tue Sep 8 18:18:16 1998 @@ -32,6 +32,7 @@ #include <asm/atomic.h> #include <asm/spinlock.h> +#include <asm/smp.h> extern int global_irq_holder; extern spinlock_t global_irq_lock; ---------------------------------------------------------------------- -- ciao - Stefan Stefan Traby phone: +43-3133-6107-2 Mitterlasznitzstr. 13 fax: +43-3133-6107-9 8302 Nestelbach mailto://stefan@sime.com Austria ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Problem rebooting AlphaStation 200 with SRM from RedHat 5.1? 1998-09-15 14:41 ` Jonathan Vafai 1998-09-15 16:20 ` Peter Rye @ 1998-09-15 16:36 ` Maciej W. Rozycki 1 sibling, 0 replies; 11+ messages in thread From: Maciej W. Rozycki @ 1998-09-15 16:36 UTC (permalink / raw) To: axp-list On Tue, 15 Sep 1998, Jonathan Vafai wrote: > What is the most recent kernel that works out of the box? > > I am trying to get 1.1.121 to work. It compiles, but will not boot after > it unzips. If you get "aboot: block-size smaller than anticipated!" error then you might try the fix to aboot I posted to this list some time ago. If you don't have the patch, you may get a source RPM package that contains it and recompile it (using `rpm --rebuild'). It is available at: 'ftp://ftp.amg.gda.pl/pub/OS/Linux/people/macro/SRPMS.glibc21/aboot-0.5-6.src.rpm'. There is also an Alpha binary package nearby but it requires glibc 2.1 so unless you know what you are doing do not install it. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + ^ permalink raw reply [flat|nested] 11+ messages in thread
* Problem rebooting AlphaStation 200 with SRM from RedHat 5.1?
@ 1998-09-13 19:18 Neil Harkins
1998-09-13 22:16 ` B. James Phillippe
0 siblings, 1 reply; 11+ messages in thread
From: Neil Harkins @ 1998-09-13 19:18 UTC (permalink / raw)
To: axp-list
Is there anyone else out there who has had or seen problems rebooting
a RedHat 5.1 AlphaStation 200 with SRM (and solved them)?
shutdown -r now halts my system cleanly, but doesn't reboot.
It waits at the SRM console prompt, and the very next SRM command typed,
every one I've tried, gives an error, displays a stream of memory addresses,
and reboots. Like so:
halt code = 5 server to shut down ....
HALT instruction executed
PC = fffffc0000313340
boot failure
>>>
shutdown -h now halts my system cleanly, but hangs,
not even displaying the SRM console, like so:
The system is halted
<0>System halted
It comes up fine at power on, but both shutdowns require a manual
power cycle to reboot, which sucks.
NetBSD on an AXP from the same lot doesn't have this problem.
Anyone know what's up?
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: Problem rebooting AlphaStation 200 with SRM from RedHat 5.1? 1998-09-13 19:18 Neil Harkins @ 1998-09-13 22:16 ` B. James Phillippe 0 siblings, 0 replies; 11+ messages in thread From: B. James Phillippe @ 1998-09-13 22:16 UTC (permalink / raw) To: axp-list On Sun, 13 Sep 1998, Neil Harkins wrote: > Is there anyone else out there who has had or seen problems rebooting > a RedHat 5.1 AlphaStation 200 with SRM (and solved them)? > > shutdown -r now halts my system cleanly, but doesn't reboot. > It waits at the SRM console prompt, and the very next SRM command typed, > every one I've tried, gives an error, displays a stream of memory addresses, > and reboots. Like so: Wow, you have much better luck than I do. I have a RedHat-5.1 system running on AS200 (using SRM) and my shutdown -r now just hangs at "Please wait while rebooting system" forever. Now, I did build my own kernel from 2.0.35 + the patches at gatekeeper. Perhaps I need something later? -bp -- B. James Phillippe <bryan@terran.org> Linux Software Engineer, WGTI. http://earth.terran.org/~bryan ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~1998-09-15 21:46 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 1998-09-13 22:43 Problem rebooting AlphaStation 200 with SRM from RedHat 5.1? Alan Kennedy 1998-09-14 19:38 ` Neil Harkins 1998-09-14 21:47 ` Maurice Hilarius 1998-09-15 1:49 ` Larry Creech 1998-09-15 9:40 ` Maciej W. Rozycki 1998-09-15 14:41 ` Jonathan Vafai 1998-09-15 16:20 ` Peter Rye 1998-09-15 21:45 ` Stefan Traby 1998-09-15 16:36 ` Maciej W. Rozycki -- strict thread matches above, loose matches on Subject: below -- 1998-09-13 19:18 Neil Harkins 1998-09-13 22:16 ` B. James Phillippe
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox