Subject: port-sparc/1561: accessing any fd device panics
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mrg@eterna.com.au>
List: netbsd-bugs
Date: 10/01/1995 22:44:30
>Number:         1561
>Category:       port-sparc
>Synopsis:       accessing any fd device panics
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct  2 15:50:42 1995
>Last-Modified:
>Originator:     matthew green
>Organization:
bozotic softwar foundation
>Release:        current from sep 18
>Environment:
NetBSD grn.eterna.com.au 1.0A NetBSD 1.0A (_grn_) #0: Wed Sep 27 03:47:14 EST 1995     mrg@splode.eterna.com.au:/orb/q/build/src/sys/arch/sparc/compile/_grn_ sparc

>Description:

i recently tried to newfs a filesystem on a floppy.  i wasn't greeted
with anything...nice  :-)

here's a console log of the events that took place.  i do have the crash
dumps still (2 of them, i can easily generate more).  i can reproduce
this by trying to access _any_ fd device.

if you look closely, you'll see it's trying to print this:

fd0: timeout

but, it gets an interupt for each character it prints, after the first
3.  it's _always_ this same sequence.

if you require more info, just ask.  i'm wanting to get this working
fairly soon (for the 1.1 release -- boot floppies for the sparc! :-)

# newfs /dev/rfd0a
fd0stray interrupt ipl c pc=f8095e54 npc=f8095e58 psr=900009c1<S,PS>
:stray interrupt ipl c pc=f8095e54 npc=f8095e58 psr=900009c1<S,PS>
 stray interrupt ipl c pc=f8095e54 npc=f8095e58 psr=900009c1<S,PS>
tstray interrupt ipl c pc=f8095e54 npc=f8095e58 psr=900009c1<S,PS>
istray interrupt ipl c pc=f8095e54 npc=f8095e58 psr=900009c1<S,PS>
mstray interrupt ipl c pc=f8022bd0 npc=f8022bb4 psr=900009c3<S,PS>
estray interrupt ipl c pc=f8095e54 npc=f8095e58 psr=900009c1<S,PS>
ostray interrupt ipl c pc=f8022e84 npc=f8022bc4 psr=900009c2<S,PS>
ustray interrupt ipl c pc=f8095e54 npc=f8095e58 psr=900009c1<S,PS>
tstray interrupt ipl c pc=f8095e54 npc=f8095e58 psr=900009c1<S,PS>
panic: crazy interrupts
Stopped at      _Debugger+0x4:  jmpl            [%o7 + 0x8], %g0
db>
db> t
_strayintr(f80c96c0, f8096510, f80e9800, f80dc400, 900009c2, f80ada08) at _strayintr+0x60
_sparc_interrupt(900000e2, 900, f80e9800, f80dc400, 900009c3, f80ada08) at _sparc_interrupt+0x124
_sparc_interrupt(74, f8095dcc, 8d, 100010, 0, 0) at _sparc_interrupt+0x104
_kprintf(74, 5, fe005000, 0, ffffffff, f92f6ec0) at _kprintf+0x638
_kprintf(f8098736, 5, 0, f80c9980, 0, 3) at _kprintf+0x37c
_printf(f8098730, f80d3800, 1, a, f8b660e0, f80e1c00) at _printf+0x30
_fdcstatus(a, 0, f8098920, 64, 0, 0) at _fdcstatus+0x1c
_fdctimeout(f8574400, 904000e0, f8b660f0, f8098928, f8b66000, 24) at _fdctimeout+0x34
_softclock(904000e1, 9eb10, f80e51d0, f80e5000, 2710, f423f) at _softclock+0x7c
_hardclock(f80c9bb0, 809c4400, 1b9b690, 4650, ffff, 400) at _hardclock+0x248
_clockintr(f80c9bb0, f80947d4, 8d, 100010, 0, 0) at _clockintr+0x14
_sparc_interrupt(0, 0, f8008078, 0, ffffffff, f92f6ec0) at _sparc_interrupt+0x104
_mi_switch(f, f92f534c, f8574400, 0, 0, 3) at _mi_switch+0x150
_tsleep(f8b6d33c, 0, f8034128, 0, f80e1c00, 900) at _tsleep+0x1bc
_biowait(f8034000, 200, 72, 2f, 90400087, f92f6fb0) at _biowait+0x44
_readdisklabel(3600, f8097fa8, f92f6b48, 0, 200, 24) at _readdisklabel+0x78
_fdioctl(3600, f92f6b48, f85bb600, 1, f862c900, f8099680) at _fdioctl+0xc0
_spec_ioctl(f92f6d30, f803fcd4, 1, f861d000, 1, 0) at _spec_ioctl+0xcc
_vn_ioctl(f861f400, 41146465, f85bb600, f862c900, f803e268, f81581f8) at _vn_ioctl+0x128
_ioctl(9, f92f6f28, f92f6f20, f8023f64, 0, f92f6ec0) at _ioctl+0x334
_syscall(36, f92f6fb0, 1b0c8, 0, 0, 3) at _syscall+0x194
_trapbase(4, 41146465, 25d78, fa14, 90400086, f92f6fb0) at _trapbase+0x2528
db> 

>How-To-Repeat:

	see above.
>Fix:

	yes please.
>Audit-Trail:
>Unformatted: