Subject: port-sparc64/23602: esp0 timed out
To: None <gnats-bugs@gnats.netbsd.org>
From: None <syn@murderspam.sceen.net>
List: netbsd-bugs
Date: 11/30/2003 21:36:20
>Number:         23602
>Category:       port-sparc64
>Synopsis:       esp0 timed out
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-sparc64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 30 20:37:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6.1
>Organization:
R. Braun
>Environment:
System: NetBSD kenobi.sceen 1.6.1 NetBSD 1.6.1 (KENOBI) #0: Tue Nov 11 02:53:50 CET 2003 syn@kenobi.sceen:/usr/src/sys/arch/sparc64/compile/KENOBI sparc64
Architecture: sparc64
Machine: sparc64
>Description:
When copying a large file from one scsi drive (sd0) to the other (sd1), I got
these errors :

Nov 30 20:21:18 kenobi /netbsd: sd1(esp0:0:1:0): esp0: timed out [ecb 0x1d55310
(flags 0x1, dleft 10000, stat 0)], <state 5, nexus 0x1d54a50, phase(l 17, c 7, p
 7), resid 10000, msg(q 0,o 0) >
...

After that, the disk is unsuable and the only way I found to make the system
usable again is a reboot...

The machine is an Ultra1. Here is dmesg output :
console is /sbus@1f,0/zs@f,1100000:a
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
    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 1.6.1 (KENOBI) #0: Tue Nov 11 02:53:50 CET 2003
    syn@kenobi.sceen:/usr/src/sys/arch/sparc64/compile/KENOBI
total memory = 65536 KB
avail memory = 53840 KB
using 422 buffers containing 3376 KB of memory
bootpath: /sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@0,0
mainbus0 (root): SUNW,Ultra-1
cpu0 at mainbus0: SUNW,UltraSPARC @ 167 MHz, version 0 FPU
cpu0: physical 32K instruction (32 b/l), 16K data (32 b/l), 512K external (64 b/l)
timer0 at mainbus0 addr 0xfffc3c00 irq vectors 7f0 and 7f1
sbus0 at mainbus0 addr 0xfffcc000: clock = 25 MHz
DVMA map: ff800000 to ffffe000
IOTSB: 4ee000 to 4f0000
audiocs0 at sbus0 slot 13 offset 0xc000000 vector 24 ipl 13: CS4231A
audio0 at audiocs0: full duplex
auxio0 at sbus0 slot 15 offset 0x1900000
flashprom at sbus0 slot 15 offset 0x0 not configured
SUNW,fdtwo at sbus0 slot 15 offset 0x1400000 vector 29 ipl 11 not configured
clock0 at sbus0 slot 15 offset 0x1200000: mk48t59: hostid 8086c998
zs0 at sbus0 slot 15 offset 0x1100000 vector 28 ipl 12 softpri 6
zstty0 at zs0 channel 0 (console i/o)
zstty1 at zs0 channel 1
zs1 at sbus0 slot 15 offset 0x1000000 vector 28 ipl 12 softpri 6
zstty2 at zs1 channel 0
kbd0 at zstty2
zstty3 at zs1 channel 1
sc at sbus0 slot 15 offset 0x1300000 not configured
SUNW,pll at sbus0 slot 15 offset 0x1304000 not configured
dma0 at sbus0 slot 14 offset 0x8400000: dma rev 2
esp0 at dma0 slot 14 offset 0x8800000 vector 20 ipl 3: ESP200, 40MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
ledma0 at sbus0 slot 14 offset 0x8400010: dma rev 2
le0 at ledma0 slot 14 offset 0x8c00000 vector 21 ipl 6: address 08:00:20:86:c9:98
le0: 8 receive buffers, 2 transmit buffers
SUNW,bpp at sbus0 slot 14 offset 0xc800000 vector 22 ipl 2 not configured
cgsix0 at sbus0 slot 2 offset 0x0 vector 5 ipl 5: SUNW,501-2325, 1152 x 900, rev 11
cgsix0: attached to /dev/fb
pcons at mainbus0 not configured
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 0 lun 0: <IBM, DCAS32160SUN2.1G, S60B> SCSI2 0/direct fixed
sd0: 2063 MB, 8188 cyl, 3 head, 172 sec, 512 bytes/sect x 4226725 sectors
sd0: sync (100.0ns offset 15), 8-bit (10.000MB/s) transfers, tagged queueing
sd1 at scsibus0 target 1 lun 0: <IBM, DCAS32160SUN2.1G, S65A> SCSI2 0/direct fixed
sd1: 2063 MB, 8188 cyl, 3 head, 172 sec, 512 bytes/sect x 4226725 sectors
sd1: sync (100.0ns offset 15), 8-bit (10.000MB/s) transfers, tagged queueing
cd0 at scsibus0 target 6 lun 0: <TOSHIBA, XM5701TASUN12XCD, 0997> SCSI2 5/cdrom removable
cd0: sync (100.0ns offset 8), 8-bit (10.000MB/s) transfers
root on sd0a dumps on sd0b
root file system type: ffs

>How-To-Repeat:
Pick up an Ultra1, install NetBSD/sparc64 1.6.1 on it, and copy a CD image
from one disk to the other...
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: