Subject: recent cd-rom trouble
To: None <port-sparc@NetBSD.ORG>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: port-sparc
Date: 11/06/1997 16:08:37
At one of my jobs, I've got a SS2 running NetBSD/sparc.  Sometime back
in mid-October, I brought it up to my then-current source tree, which
probably dates from about a week into October.

Today I started to bring it up to 1.3-alpha -current.  First, I rebuilt
and reinstalled config and yacc (yacc from having already done a sparc
bring-to-current and learning that it's necessary, config from
paranoia).  Then I built a kernel, which completed without apparent
problem.  Even rebooting with the kernel gave no evidence of trouble.
But when I logged in and fired up my X session, the CD player provoked
trouble from the CD-ROM drive (<*> indicates a point at which a
relatively long pause occurred, long enough for a human to notice):

<*>cd0(esp0:2:0): esp0: timed out [ecb 0xf06918d8 (flags 0x3, dleft 42, stat 0)], <state 4, nexus 0xf06918d8, phase(c 3, p 3), resid 26, msg(q 0,o 40) >
cd0(esp0:2:0): esp0: timed out [ecb 0xf06918d8 (flags 0x43, dleft 42, stat 0)], <state 4, nexus 0xf06918d8, phase(c 3, p 3), resid 26, msg(q 20,o 40) > AGAIN
esp0: SCSI bus reset
<*>sd0(esp0:0:0): esp0: timed out [ecb 0xf06918a4 (flags 0x1, dleft 2000, stat 0)], <state 2, nexus 0xf06918a4, phase(c 101, p 101), resid 26, msg(q 20,o 40) >
sd0(esp0:0:0): esp0: timed out [ecb 0xf06918a4 (flags 0x41, dleft 2000, stat 0)], <state 2, nexus 0xf06918a4, phase(c 101, p 101), resid 26, msg(q 20,o 40) > AGAIN
esp0: SCSI bus reset
<*>cd0(esp0:2:0): esp0: timed out [ecb 0xf06918d8 (flags 0x1, dleft 42, stat 0)], <state 2, nexus 0xf06918d8, phase(c 101, p 101), resid 26, msg(q 20,o 40) >
cd0(esp0:2:0): esp0: timed out [ecb 0xf06918d8 (flags 0x41, dleft 42, stat 0)], <state 2, nexus 0xf06918d8, phase(c 101, p 101), resid 26, msg(q 20,o 40) > AGAIN
esp0: SCSI bus reset
sd0(esp0:0:0): max sync rate 4.03Mb/s
sd1(esp0:1:0): max sync rate 4.03Mb/s

Upon rebooting with the previous kernel, everything worked fine.  The
broken kernel was built from the sup of Nov 4th AM; the previous kernel
I no longer have online the corresponding source tree, but it was built
on Oct 15th, which probably means an earlyish-October source tree, and
it was definitely after the name change to 1.2G.

Anyone have any ideas?  Could this be related to the esp changes I was
so happy about wrt my farm of 80 meg Quantums? :-)

dmesg output, kernel that breaks:

NetBSD 1.3_ALPHA (GENERIC) #0: Thu Nov  6 13:12:49 EST 1997
    mouse@Ghostwheel.HASC.COM:/sources/working-usr-src/sys/arch/sparc/compile/GENERIC
real mem = 33415168
avail mem = 30486528
using 128 buffers containing 524288 bytes of memory
bootpath: /sbus0/esp0/sd@0,0:d
mainbus0 (root): SUNW,Sun 4/75
cpu0 at mainbus0: cache chip bug; trap page uncached: CY7C601 @ 40 MHz, TMS390C602A FPU
cpu0: 64K byte write-through, 32 bytes/line, hw flush: cache enabled
memreg0 at mainbus0 ioaddr 0xf4000000
clock0 at mainbus0 ioaddr 0xf2000000: mk48t02 (eeprom)
timer0 at mainbus0 ioaddr 0xf3000000 delay constant 17
auxreg0 at mainbus0 ioaddr 0xf7400003
zs0 at mainbus0 ioaddr 0xf1000000 pri 12, softpri 6
zstty0 at zs0 channel 0
zstty1 at zs0 channel 1
zs1 at mainbus0 ioaddr 0xf0000000 pri 12, softpri 6
kbd0 at zs1 channel 0 (console)
ms0 at zs1 channel 1
audioamd0 at mainbus0 ioaddr 0xf7201000 pri 13, softpri 4
audio0 at audioamd0
sbus0 at mainbus0 ioaddr 0xf8000000: clock = 20 MHz
le0 at sbus0 slot 0 offset 0xc00000 pri 5: address 08:00:20:0e:e6:9e
le0: 8 receive buffers, 2 transmit buffers
dma0 at sbus0 slot 0 offset 0x400000: rev 1+
esp0 at sbus0 slot 0 offset 0x800000 pri 3: ESP100A, 20MHz, SCSI ID 7
scsibus0 at esp0: 8 targets
probe(esp0:0:0): max sync rate 4.03Mb/s
sd0 at scsibus0 targ 0 lun 0: <SEAGATE, ST11200N, 9300> SCSI2 0/direct fixed
sd0: 1011MB, 1872 cyl, 15 head, 73 sec, 512 bytes/sect x 2072230 sectors
probe(esp0:1:0): max sync rate 4.03Mb/s
sd1 at scsibus0 targ 1 lun 0: <QUANTUM, EMPIRE_2100S, 1200> SCSI2 0/direct fixed
sd1: 2006MB, 3053 cyl, 12 head, 112 sec, 512 bytes/sect x 4108600 sectors
cd0 at scsibus0 targ 2 lun 0: <SONY, CD-ROM CDU-541, 2.6a> SCSI2 5/cdrom removable
probe(esp0:3:0): max sync rate 4.03Mb/s
sd2 at scsibus0 targ 3 lun 0: <QUANTUM, LPS540S, 590S> SCSI2 0/direct fixed
sd2: 516MB, 2740 cyl, 4 head, 96 sec, 512 bytes/sect x 1057616 sectors
cgthree0 at sbus0 slot 2 offset 0x0: SUNW,501-2691, 1024 x 768 (console)
cgthree0: attached to /dev/fb
fdc0 at mainbus0 ioaddr 0xf7200000 pri 11, softpri 4: chip 82072
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
root on sd0d dumps on sd0b
mountroot: trying ffs...
root file system type: ffs
init: copying out path `/sbin/init' 11

dmesg output, kernel that works:

NetBSD 1.2G (GENERIC) #0: Wed Oct 15 17:51:20 EDT 1997
    mouse@Ghostwheel.HASC.COM:/sources/usr-src/sys/arch/sparc/compile/GENERIC
real mem = 33415168
avail mem = 30519296
using 128 buffers containing 524288 bytes of memory
bootpath: /sbus0/esp0/sd@0,0:d
mainbus0 (root): SUNW,Sun 4/75
cpu0 at mainbus0cache chip bug; trap page uncached : CY7C601 @ 40 MHz, TMS390C602A FPU
cpu0: 64K byte write-through, 32 bytes/line, hw flush cache enabled
memreg0 at mainbus0 ioaddr 0xf4000000
clock0 at mainbus0 ioaddr 0xf2000000: mk48t02 (eeprom)
timer0 at mainbus0 ioaddr 0xf3000000 delay constant 17
auxreg0 at mainbus0 ioaddr 0xf7400003
zs0 at mainbus0 ioaddr 0xf1000000 pri 12, softpri 6
zs1 at mainbus0 ioaddr 0xf0000000 pri 12, softpri 6
audio0 at mainbus0 ioaddr 0xf7201000 pri 13, softpri 4
audio0 at audio0
sbus0 at mainbus0 ioaddr 0xf8000000: clock = 20 MHz
le0 at sbus0 slot 0 offset 0xc00000 pri 5: address 08:00:20:0e:e6:9e
le0: 8 receive buffers, 2 transmit buffers
dma0 at sbus0 slot 0 offset 0x400000: rev 1+
esp0 at sbus0 slot 0 offset 0x800000 pri 3: ESP100A, 20MHz, SCSI ID 7
scsibus0 at esp0: 8 targets
sd0 at scsibus0 targ 0 lun 0: <SEAGATE, ST11200N, 9300> SCSI2 0/direct fixed
sd0: 1011MB, 1872 cyl, 15 head, 73 sec, 512 bytes/sect x 2072230 sectors
sd1 at scsibus0 targ 1 lun 0: <QUANTUM, EMPIRE_2100S, 1200> SCSI2 0/direct fixed
sd1: 2006MB, 3053 cyl, 12 head, 112 sec, 512 bytes/sect x 4108600 sectors
cd0 at scsibus0 targ 2 lun 0: <SONY, CD-ROM CDU-541, 2.6a> SCSI2 5/cdrom removable
sd2 at scsibus0 targ 3 lun 0: <QUANTUM, LPS540S, 590S> SCSI2 0/direct fixed
sd2: 516MB, 2740 cyl, 4 head, 96 sec, 512 bytes/sect x 1057616 sectors
cgthree0 at sbus0 slot 2 offset 0x0: SUNW,501-2691, 1024 x 768 (console)
cgthree0: attached to /dev/fb
fdc0 at mainbus0 ioaddr 0xf7200000 pri 11, softpri 4: chip 82072
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
root on sd0d dumps on sd0b
mountroot: trying ffs...
root file system type: ffs
init: copying out path `/sbin/init' 11

					der Mouse

			       mouse@rodents.montreal.qc.ca
		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B