Subject: kern/7111: /dev/cd0a access hangs the computer
To: None <gnats-bugs@gnats.netbsd.org>
From: Krister Walfridsson <cato@ulysses.df.lth.se>
List: netbsd-bugs
Date: 03/08/1999 22:21:15
>Number:         7111
>Category:       kern
>Synopsis:       /dev/cd0a access hangs the computer
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar  8 13:35:01 1999
>Last-Modified:
>Originator:     Krister Walfridsson
>Organization:
	
>Release:        NetBSD-current Mar 8, 1999
>Environment:
	
System: NetBSD ulysses 1.3K NetBSD 1.3K (GENERIC) #0: Mon Mar 8 21:05:08 CET 1999 cato@ulysses:/dsk2/tmp/nbsd990308.i386/src/sys/arch/i386/compile/GENERIC i386


>Description:
Doing 

   ulysses# mount_cd9660 /dev/cd0a /mnt
   ulysses# cp /mnt/00010250/00010250.dir /tmp

stops all disk activity, and eventually hangs the system.

   ulysses# mount_cd9660 /dev/cd0a /mnt
   ulysses# cd /mnt/00010250
   ulysses# cp 00010250.dir /tmp

works just fine, so it isn't completely broken...


When it hangs, it usually writes

pciide:0:1: lost interrupt
       type: atapi
       c_bcount: 2048
       c_skip: 0


I have also seen the following message when I mount the cd

pciide0:0:1: Bus-Master DMA error: missing interrupt, status=0x21
cd0: transfer error, downgrading to PIO mode 4
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
cd0(pciide0:0:1): using PIO mode 4


This is what NetBSD thinks my hardware looks like:

NetBSD 1.3K (GENERIC) #0: Mon Mar  8 21:05:08 CET 1999
    cato@ulysses:/dsk2/tmp/nbsd990308.i386/src/sys/arch/i386/compile/GENERIC
cpu0: family 5 model 4 step 3
cpu0: Intel Pentium/MMX (586-class)
real mem  = 66715648
avail mem = 58519552
using 840 buffers containing 3440640 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: Acer Labs M1531 Host-PCI Bridge (rev. 0xb3)
pcib0 at pci0 dev 2 function 0
pcib0: Acer Labs M1543 PCI-ISA Bridge (rev. 0xb4)
vga1 at pci0 dev 3 function 0: S3 Trio64V2/DX (rev. 0x16)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsdisplay0: screen 5 added (80x25, vt100 emulation)
wsdisplay0: screen 6 added (80x25, vt100 emulation)
wsdisplay0: screen 7 added (80x25, vt100 emulation)
pciide0 at pci0 dev 11 function 0: Acer Labs M5229 UDMA IDE Controller
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
atapibus0 at pciide0 channel 0
cd0 at atapibus0 drive 1: <LTN242F, , QL03> type 5 cdrom removable
cd0: 32-bits data port
cd0: drive supports PIO mode 4, DMA mode 2
wd0 at pciide0 channel 0 drive 0: <ST33232A>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 3077MB, 6253 cyl, 16 head, 63 sec, 512 bytes/sect x 6303024 sectors
wd0: 32-bits data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
pciide0: primary channel interrupting at irq 14
pciide0: secondary channel configured to compatibility mode
wd1 at pciide0 channel 1 drive 0: <IBM-DHEA-36481>
wd1: drive supports 16-sector pio transfers, lba addressing
wd1: 6197MB, 12592 cyl, 16 head, 63 sec, 512 bytes/sect x 12692736 sectors
wd1: 32-bits data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
pciide0: secondary channel interrupting at irq 15
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
cd0(pciide0:0:1): using PIO mode 4, DMA mode 2 (using DMA data transfers)
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
isa0 at pcib0
ne1 at isa0 port 0x300-0x31f irq 10
ne1: NE2000 (RTL8019) Ethernet
ne1: 10base2, 10baseT, 10baseT-FDX, auto, default auto
ne1: Ethernet address 00:00:b4:80:61:f0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
lpt0 at isa0 port 0x378-0x37b irq 7
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
opmsprobe: command error
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: read port 0x203
sb1 at isapnp0 port 0x220/16,0x330/2,0x388/4 irq 5 drq 1,3
sb1: Creative ViBRA16X PnP Audio: dsp v4.16
midi1 at sb1: <SB MPU-401 UART>
audio0 at sb1: half duplex
opl0 at sb1: model OPL3
midi2 at opl0: <SB Yamaha OPL3>
joy0 at isapnp0 port 0x201/1
joy0: Creative ViBRA16X PnP Game
joy0: joystick connected
ne2 at isapnp0 port 0x240/32 mem 0xc8000/16384 irq 9
ne2: NE2000 (RTL8019) Ethernet
ne2: 10base2, 10baseT, 10baseT-FDX, auto, default auto
ne2: Ethernet address 00:00:b4:80:61:f0
biomask c040 netmask c640 ttymask c6c2
wscons: wskbd0 glued to wsdisplay0 (console)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs

>How-To-Repeat:
	
>Fix:
	
>Audit-Trail:
>Unformatted: