Subject: port-i386/6856: ncr driver canīt mount a cd with a Teac-55S CD-Recorder
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kurek@uni-duisburg.de>
List: netbsd-bugs
Date: 01/20/1999 17:57:09
>Number:         6856
>Category:       port-i386
>Synopsis:       system locks up if I try to mount a cd with my CD-Recorder
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-i386-maintainer (NetBSD/i386 Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 20 09:05:01 1999
>Last-Modified:
>Originator:     Markus Kurek
>Organization:
	
>Release:        NetBSD-1.3.2 and NetBSD-current snapshot from DEC98
>Environment:
1.WS: i586 NetBSD-1.3.2  with ncr810 (ASUS SC200)  and TRAXDATA CDR4120pro  (TEAC-55S OEM)
               2.WS: i686 NetBSD-1.3I  (snapshot from DEC98) with ncr860 (asus SC860)  with the same CD-Recorder
	
system: NetBSD saidin 1.3.2 NetBSD 1.3.2 (SAIDIN) #0: Sat Dec 26 19:00:03 CET 1998 markus@saidin:/usr/src/sys-i4b/arch/i386/compile/SAIDIN i386


>Description:
  mount -t cd9660 -o ro /dev/cd1a /mnt results in a SCSI bus lockup. Then the WS need to be rebooted. This does not happen if the CD-Recorder is mounted to an ADAPTEC (2940) controller.  
dmesg output from the 2. WS with SCSIDEBUG enabled:

NetBSD 1.3I (FLOOPS) #7: Mon Jan 18 16:23:37 CET 1999
    root@floops:/usr/src/sys/arch/i386/compile/FLOOPS
cpu0: family 6 model 5 step 2
cpu0: Intel Pentium II (686-class)
real mem  = 133812224
avail mem = 122408960
using 1659 buffers containing 6795264 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o enabled, memory enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82443BX PCI AGP Controller (PAC) (rev. 0x02)
ppb0 at pci0 dev 1 function 0: Intel 82443BX AGP Device (PAC) (rev. 0x02)
pci1 at ppb0 bus 1
pci1: i/o enabled, memory enabled
Nvidia Corporation product 0x0020 (VGA display, revision 0x04) at pci1 dev 0 function 0 n
ot configured
pcib0 at pci0 dev 4 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x02)
pciide0 at pci0 dev 4 function 1: Intel 82371AB IDE controller (PIIX4)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <WDC AC38400L>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 8063MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 16514064 sectors
wd0: 32-bits data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
pciide0: secondary channel wired to compatibility mode
pciide0: secondary channel ignored (disabled)
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
uhci0 at pci0 dev 4 function 2: Intel 82371AB USB Host Controller (PIIX4) (rev. 0x01)
uhci0: interrupting at irq 9
uhci0: USB version 1.0
usb0 at uhci0
uhub0 at usb0
uhub0: Intel UHCI root hub (class 9/1) (rev 1.00/1.00), addr 1
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, revision 0x02) a
t pci0 dev 4 function 3 not configured
ncr0 at pci0 dev 12 function 0: ncr 53c860 fast20 scsi
ncr0: interrupting at irq 11
ncr0: minsync=12, maxsync=137, maxoffs=8, 16 dwords burst, normal dma fifo
ncr0: single-ended, open drain IRQ driver
ncr0: restart (scsi reset).
scsibus0 at ncr0: 8 targets, 8 luns per target
probe(ncr0:0:0): 5.0 MB/s (200 ns, offset 8)
scsipi_inqmatch: 2/0/0 <, , >
sd0 at scsibus0 targ 0 lun 0: <IBM, DDRS-39130, S97B> SCSI2 0/direct fixed
sd0(ncr0:0:0): 20.0 MB/s (50 ns, offset 8)
sd0: 8715MB, 8387 cyl, 10 head, 212 sec, 512 bytes/sect x 17850000 sectors
scsipi_inqmatch: 2/5/1 <, , >
cd0 at scsibus0 targ 3 lun 0: <PLEXTOR, CD-ROM PX-32TS, 1.03> SCSI2 5/cdrom removable
probe(ncr0:3:1): 20.0 MB/s (50 ns, offset 8)
scsipi_inqmatch: 2/5/1 <, , >
cd1 at scsibus0 targ 6 lun 0: <Traxdata, CDR4120, 5.0L> SCSI2 5/cdrom removable
probe(ncr0:6:1): 10.0 MB/s (100 ns, offset 8)
isa0 at pcib0
ne0 at isa0 port 0x340-0x35f irq 15
ne0: NE2000 (RTL8019) Ethernet
ne0: 10base2, 10baseT, 10baseT-FDX, auto, default auto
ne0: Ethernet address 00:00:b4:3a:01:10
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
lpt0 at isa0 port 0x378-0x37b irq 7
sb0 at isa0 port 0x220-0x237 irq 5 drq 1 drq2 5: dsp v4.13
midi0 at sb0: <SB MIDI UART>
audio0 at sb0
opl0 at sb0: model OPL3
midi1 at opl0: <Yamaha OPL3>
pcppi0 at isa0 port 0x61
midi2 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0-0xff: using exception 16
vt0 at isa0 port 0x60-0x6f irq 1
vt0: generic, 80 col, color, 5 scr, mf2-kbd, [R3.32]
pms0 at vt0 irq 12
vt0: console
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
joy0 at isa0 port 0x201
joy0: joystick not connected
apm0 at mainbus0: Power Management spec V1.1
APM power mgmt engage (device 1)
: power management disabled (0x10f)
apm0: A/C state: on
apm0: battery charge state: no battery
biomask 4a40 netmask ca40 ttymask dac2
wd0: no disk label
boot device: sd0
root on sd0a dumps on sd0b


The error message after several seconds:
ncr0: SCSI phase error fixup: CCB already dequeued (0xf0508000)
ncr0: timeout ccb=0xf0508000 (skip)
ncr0: timeout ccb=0xf0508400 (skip)
ncr0: timeout ccb=0xf0508800 (skip)
ncr0: timeout ccb=0xf0500000 (skip)

>How-To-Repeat:
	mount -t cd9660 -o ro /dev/cd1a /mnt
>Fix:
	
>Audit-Trail:
>Unformatted: