Subject: port-sparc/31453: formatting a floppy reliably crashes a SparcClassic under NetBSD 2.0.2
To: None <port-sparc-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <breing@spardat.at>
List: netbsd-bugs
Date: 10/03/2005 06:24:00
>Number:         31453
>Category:       port-sparc
>Synopsis:       formatting a floppy reliably crashes a SparcClassic under NetBSD 2.0.2
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-sparc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 03 06:24:00 +0000 2005
>Originator:     Georg Brein
>Release:        NetBSD 2.0.2 sparc
>Organization:
>Environment:
uuuuh... (no access to the machine at the moment)
SparcClassic (sun4m, Sun 4/15) running the GENERIC kernel from the
2.0.2 distribution (see the startup messages in the full description)
>Description:
Formatting a floppy using the built-in 3.5" floppy drive reliably crashes a SparcClassic; most likely there is no hardware problem involved, since formatting the same floppy disk on the same hardware works under Solaris (Solaris 2.5.1 and Solaris 7) and OpenBSD (3.7, generic kernel).

Logs of both the startup messages and the crash messages follow.

*** startup messages ***
SPARCclassic, No Keyboard
ROM Rev. 2.10, 48 MB memory installed, Serial #7343043.
Ethernet address 8:0:20:18:a7:20, Host ID: 80700bc3.


Initializing Memory                                                     [turning baton deleted]
Rebooting with command: 
Boot device: /iommu/sbus/espdma@4,8400000/esp@4,8800000/sd@0,0   File and args: 
>> NetBSD/sparc Secondary Boot, Revision 1.14
>> (jmc@faith.netbsd.org, Wed Mar 23 01:03:20 UTC 2005)
Booting netbsd
3060856+99396+328984 [189760+164391]=0x3ba7a0                           [turning baton deleted]
OBP version 3, revision 2.10 (plugin rev 2)
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 2.0.2 (GENERIC) #0: Wed Mar 23 01:25:37 UTC 2005
	jmc@faith.netbsd.org:/home/builds/ab/netbsd-2-0-2-RELEASE/sparc/200503220140Z-obj/home/builds/ab/netbsd-2-0-2-RELEASE/src/sys/arch/sparc/compile/GENERIC
total memory = 48808 KB
avail memory = 43676 KB
bootpath: /iommu@0,10000000/sbus@0,10001000/espdma@4,8400000/esp@4,8800000/sd@0,0
mainbus0 (root): SUNW,SPARCclassic: hostid 80700bc3
cpu0 at mainbus0: TMS390S10 @ 50 MHz, on-chip FPU
cpu0: physical 4K instruction (32 b/l), 2K data (16 b/l): cache enabled
obio0 at mainbus0
clock0 at obio0 slot 0 offset 0x200000: mk48t08
timer0 at obio0 slot 0 offset 0xd00000: delay constant 23
zs0 at obio0 slot 0 offset 0x100000 level 12 softpri 6
zstty0 at zs0 channel 0 (console i/o)
zstty1 at zs0 channel 1
zs1 at obio0 slot 0 offset 0x0 level 12 softpri 6
kbd0 at zs1 channel 0: baud rate 1200
ms0 at zs1 channel 1: baud rate 1200
slavioconfig at obio0 slot 0 offset 0x800000 not configured
auxreg0 at obio0 slot 0 offset 0x900000
power0 at obio0 slot 0 offset 0x910000 level 2
fdc0 at obio0 slot 0 offset 0x400000 level 11 softpri 4: chip 82077
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
iommu0 at mainbus0 addr 0x10000000: version 0x1/0x4, page-size 4096, range 64MB
sbus0 at iommu0: clock = 25 MHz
dma0 at sbus0 slot 4 offset 0x8400000: DMA rev 2
esp0 at dma0 slot 4 offset 0x8800000 level 4: ESP200, 40MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
audioamd0 at sbus0 slot 4 offset 0x1300000 level 7 (ipl 13) softpri 4
audio0 at audioamd0: full duplex
bpp0 at sbus0 slot 4 offset 0xc800000 level 2 (ipl 3): DMA rev 2
ledma0 at sbus0 slot 4 offset 0x8400010: DMA rev 2
le0 at ledma0 slot 4 offset 0x8c00000 level 6: address 08:00:20:18:a7:20
le0: 8 receive buffers, 2 transmit buffers
cgthree0 at sbus0 slot 3 offset 0x0 level 9: , 1152 x 900
cgthree0: attached to /dev/fb
Kernelized RAIDframe activated
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 0 lun 0: <HP, C3724S, 6039> disk fixed
sd0: 1149 MB, 3703 cyl, 5 head, 127 sec, 512 bytes/sect x 2354660 sectors
sd0: sync (100.00ns offset 15), 8-bit (10.000MB/s) transfers
cd0 at scsibus0 target 6 lun 0: <YAMAHA, CRW4260, 1.0j> cdrom removable
cd0: async, 8-bit transfers
root on sd0a dumps on sd0b
root file system type: ffs
Sat Oct  1 20:33:37 CEST 2005
swapctl: adding /dev/sd0b as swap device at priority 0
Checking for botched superblock upgrades: done.
Starting file system checks:
/dev/rsd0a: 43645 files, 450001 used, 563066 free (16346 frags, 68340 blocks, 1.6% fragmentation)
/dev/rsd0a: MARKING FILE SYSTEM CLEAN
Setting tty flags.
Setting sysctl variables:
Starting network.
Hostname: sunburst.blubbnet
IPv6 mode: host
Configuring network interfaces: le0.
add net default: gateway 192.168.0.1
Adding interface aliases:
Building databases...
Starting syslogd.
Checking for core dump...
Starting rpcbind.
Mounting all filesystems...
Clearing /tmp.
Creating a.out runtime link editor directory cache.
Checking quotas: done.
Starting mountd.
Starting nfsd.
Starting statd.
Starting lockd.
Setting securelevel: kern.securelevel: 0 -> 1
Starting virecover.
Starting local daemons:.
Starting sendmail.
Starting inetd.
Starting cron.
Sat Oct  1 20:35:12 CEST 2005

NetBSD/sparc (sunburst.blubbnet) (console)

login:
*** end of startup messages ***

*** crash messages ***
NetBSD/sparc (sunburst.blubbnet) (console)

login: root
Password:
Last login: Sat Oct  1 05:31:13 2005 on console
Oct  1 20:25:45 sunburst login: ROOT LOGIN (root) ON console
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
Oct  1 20:25:45 sunburst login: ROOT LOGIN (root) ON console
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 2.0.2 (GENERIC) #0: Wed Mar 23 01:25:37 UTC 2005

Welcome to NetBSD!

You have new mail.
Terminal type is vt320.
We recommend creating a non-root account and using su(1) for root access.
# fdformat
Ready to format /dev/rfd0a with 80 cylinders, 2 tracks, 18 sectors of 512 bytes
(1440 KB) Yes/no [y]?y
EOct  1 20:26:23 sunburst /netbsd: fdcresult: timeout
Fstray interrupt ipl 0xb pc=0xf000ac1c npc=0xf000ac18 psr=410005c2<S,PS>
stray interrupt ipl 0xb pc=0xf000ac1c npc=0xf000ac18 psr=410005c2<S,PS>
stray interrupt ipl 0xb pc=0xf000ac1c npc=0xf000ac18 psr=410005c2<S,PS>
stray interrupt ipl 0xb pc=0xf000ac1c npc=0xf000ac18 psr=410005c2<S,PS>
stray interrupt ipl 0xb pc=0xf000ac1c npc=0xf000ac18 psr=410005c2<S,PS>
stray interrupt ipl 0xb pc=0xf000ac1c npc=0xf000ac18 psr=410005c2<S,PS>
stray interrupt ipl 0xb pc=0xf000ac1c npc=0xf000ac18 psr=410005c2<S,PS>
stray interrupt ipl 0xb pc=0xf000ac1c npc=0xf000ac18 psr=410005c2<S,PS>
stray interrupt ipl 0xb pc=0xf000ac1c npc=0xf000ac18 psr=410005c2<S,PS>
stray interrupt ipl 0xb pc=0xf000ac1c npc=0xf000ac18 psr=410005c2<S,PS>
stray interrupt ipl 0xb pc=0xf000ac1c npc=0xf000ac18 psr=410005c2<S,PS>
panic: crazy interrupts
syncing disks... stray interrupt ipl 0xb pc=0xf01ccf7c npc=0xf01ccf80 psr=414000c4<S,PS>
panic: crazy interrupts
Frame pointer is at 0xf0302ed0
Call traceback:
  pc = 0xf027a208  args = (0x1, 0x5, 0x0, 0x0, 0xf0302ff0, 0x1, 0xf0302f38) fp = 0xf0302f38
  pc = 0xf01a3d24  args = (0x104, 0x0, 0x0, 0x0, 0x0, 0x48, 0xf0302fa8) fp = 0xf0302fa8
  pc = 0xf0278a04  args = (0xf02ec748, 0xb, 0xf01ccf7c, 0xf01ccf80, 0xf035ec00, 0x104, 0xf0303010) fp = 0xf0303010

dumping to dev 7,1 offset 164867
dump dma0: error: csr=a4400212<ERR,DRAINING=0,IEN,ENDMA,BURST=0,FASTER,ALOADED>
esp0: DMA error; resetting
sd0: async, 8-bit transfers
i/o error
sd0(esp0:0:0:0): polling command not done
panic: scsipi_execute_xs
Frame pointer is at 0xf0302b58
Call traceback:
  pc = 0xf027a208  args = (0x1, 0x5, 0x0, 0x0, 0xf0302c78, 0x1, 0xf0302bc0) fp = 0xf0302bc0
  pc = 0xf01a3d24  args = (0x104, 0x0, 0x0, 0x0, 0xf0302ce0, 0x19, 0xf0302c30) fp = 0xf0302c30
  pc = 0xf025ae64  args = (0xf02e4c30, 0xf058be1c, 0xf0514e1c, 0x0, 0xf035ec00, 0x104, 0xf0302c98) fp = 0xf0302c98
  pc = 0xf025cbd4  args = (0xf02e4c00, 0xf0302e5a, 0xa, 0x0, 0xf0302d6c, 0x18, 0xf0302d00) fp = 0xf0302d00
  pc = 0xf02588e4  args = (0x0, 0xf0516b48, 0xf0302e50, 0xa, 0x0, 0x0, 0xf0302d68) fp = 0xf0302d68
  pc = 0xf0264eb0  args = (0xf0585e00, 0x0, 0xf0302e50, 0xa, 0x0, 0x0, 0xf0302de0) fp = 0xf0302de0
  pc = 0xf0263f5c  args = (0xf058be00, 0x103, 0x0, 0x41800fe6, 0xf0302f80, 0x0, 0xf0302e68) fp = 0xf0302e68
  pc = 0xf01934b0  args = (0xf058be00, 0x5, 0x0, 0x0, 0xf0302f80, 0xa, 0xf0302ed0) fp = 0xf0302ed0
  pc = 0xf027a060  args = (0xf02eca20, 0x28414, 0xf028d9fc, 0xfffff, 0xf02642d8, 0xf0365c00, 0xf0302f38) fp = 0xf0302f38
  pc = 0xf01a3d24  args = (0x104, 0x0, 0x0, 0x0, 0x0, 0x48, 0xf0302fa8) fp = 0xf0302fa8
  pc = 0xf0278a04  args = (0xf02ec748, 0xb, 0xf01ccf7c, 0xf01ccf80, 0xf035ec00, 0x104, 0xf0303010) fp = 0xf0303010

dumping to dev 7,1 offset 164867
dump device not ready
rebooting
*** end of crash messages ***
>How-To-Repeat:
Log in as root on a vanilla NetBSD 2.0.2 sparc installation on a SparcClassic, insert a floppy into the built-in floppy drive, issue the command "fdformat", answer the following question positively, and
lean back.
>Fix: