Subject: Re: panic: crazy interrupts
To: None <port-sparc@NetBSD.ORG>
From: Jonathan O'Brien <obrien@phoenix.sfsu.edu>
List: port-sparc
Date: 11/08/1997 15:00:02
I have an SS2 with a serial console and everytime I run 'ifconfig -a'
it panic's:

arkham# ifconfig -a
le0: flags=8863<UPsstray interrupt ipl 0xc pc=0xf01121a0 npc=0xf01121a4 psr=1100
07c0<S,PS>
tstray interrupt ipl 0xc pc=0xf01121a0 npc=0xf01121a4 psr=110007c0<S,PS>
ristray interrupt ipl 0xc pc=0xf01121a0 npc=0xf01121a4 psr=110007c0<S,PS>
pstray interrupt ipl 0xc pc=0xf01121a0 npc=0xf01121a4 psr=110007c0<S,PS>
istray interrupt ipl 0xc pc=0xf01121a0 npc=0xf01121a4 psr=110007c0<S,PS>
ostray interrupt ipl 0xc pc=0xf01121a0 npc=0xf01121a4 psr=110007c0<S,PS>
ctstray interrupt ipl 0xc pc=0xf0127d38 npc=0xf0036724 psr=110007c1<S,PS>
lstray interrupt ipl 0xc pc=0xf01121a0 npc=0xf01121a4 psr=110007c0<S,PS>
:stray interrupt ipl 0xc pc=0xf0127d38 npc=0xf0036724 psr=110007c1<S,PS>
 stray interrupt ipl 0xc pc=0xf01121a0 npc=0xf01121a4 psr=110007c0<S,PS>
panic: crazy interrupts
Stopped at      _Debugger+0x4:  jmpl            [%o7 + 0x8], %g0
db> trace
_strayintr(0xf0153fb0, 0xf0111d88, 0xa00, 0xf016f800, 0x110007c1, 0xf012d670) a
t _strayintr+0x60
_sparc_interrupt44c(0xffeeb004, 0x20, 0xf1a38e38, 0xf07dea00, 0xf0039738, 0x0) a
t _sparc_interrupt44c+0x190
_zscnputc(0xc00, 0x20, 0xf01121d0, 0xf003840c, 0x0, 0x0) at _zscnputc+0xc
_cnputc(0x20, 0xf0127ce8, 0xfe012000, 0xf0180400, 0x0, 0x0) at _cnputc+0x28
_putchar(0x20, 0x5, 0x0, 0x28800, 0x11800084, 0xf1a38fb0) at _putchar+0x148
_kprintf(0xf0077f84, 0x5, 0x0, 0xf1a38ce0, 0x11400085, 0xf1a38fb0) at _kprintf+
0x28
_printf(0xf0077f78, 0xf015a800, 0x1, 0xf0037bec, 0x11800086, 0xf1a38fb0) at _pr
intf+0x30
_stripioctl(0x0, 0xc0286936, 0xf1a38e38, 0xf0077f9c, 0x0, 0xf07dea00) at _strip
ioctl+0xe0
_ifioctl(0xf07f1000, 0xc0286936, 0xf1a38e38, 0xf07dea00, 0xf07f1000, 0xa) at _i
fioctl+0x2c8
_soo_ioctl(0xf07e87c0, 0xc0286936, 0xf1a38e38, 0xf07dea00, 0xf0039738, 0x0) at _
soo_ioctl+0x170
_sys_ioctl(0x0, 0xf1a38f28, 0xf1a38f20, 0xf003840c, 0x0, 0x0) at _sys_ioctl+0x3
24
_syscall(0x36, 0xf1a38fb0, 0x0, 0x3, 0x0, 0x0) at _syscall+0x198
syscall(0x3, 0xc0286936, 0xefffd830, 0x28800, 0x11800084, 0xf1a38fb0) at syscal
l+0x120
db>

The kernel is built from this morning's sup (11/8).
arkham# uname -a
NetBSD arkham 1.3_ALPHA NetBSD 1.3_ALPHA (ARKHAM) #0: Sat Nov  8 08:53:30 PST 1997     root@arkham:/usr/src/sys/arch/sparc/compile/ARKHAM sparc
arkham# 

Now if I run ifconfig from a pty, I get the following on the console so
it sounds like the zs race condition:

arkham# stripioctl: unknown request 0xc0286936
Nov  8 09:10:16 arkham /netbsd: stripioctl: unknown request 0xc0286936


Also, is anyone seeing sporatic keyboard error messages? I'll leave the
machine idle for awhile and come back to:

Nov  8 14:06:29 arkham /netbsd: kbd0: input error (0x7e47)
Nov  8 14:06:29 arkham /netbsd: kbd0: code=0x0 with mod=0x0 produced unexpected
keysym 0x8302
Nov  8 14:06:43 arkham last message repeated 2 times
Nov  8 14:06:43 arkham /netbsd: kbd0: code=0xf with mod=0x0 produced unexpected
keysym 0x8302
Nov  8 14:06:43 arkham /netbsd: kbd0: input error (0x1c47)
Nov  8 14:06:43 arkham /netbsd: kbd0: code=0x80 with mod=0x0 produced unexpected
 keysym 0x8302
Nov  8 14:06:43 arkham /netbsd: kbd0: code=0x0 with mod=0x0 produced unexpected
keysym 0x8302
Nov  8 14:06:43 arkham /netbsd: kbd0: code=0x0 with mod=0x0 produced unexpected
keysym 0x8302
Nov  8 14:06:43 arkham /netbsd: kbd0: input error (0x7f47)
Nov  8 14:06:43 arkham /netbsd: kbd0: code=0x0 with mod=0x0 produced unexpected
keysym 0x8302

Anyway, if anyone has any suggestions on how to investigate further, I also
have a core dump available.

jonathan