Subject: Re: ATAPI CD-ROM questions
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Brian C. Grayson <bgrayson@marvin.ece.utexas.edu>
List: port-i386
Date: 03/19/1999 00:25:35
On Tue, Mar 16, 1999 at 11:51:04AM +0100, Manuel Bouyer wrote:
> On Mar 15, Brian C. Grayson wrote
> >   I just picked up an IDE CD-ROM drive today...
...
> >   1.  At the first major access, I get "lost interrupt" messages,
> >     the machine basically freezes for 30 seconds to a minute,
> >     and DMA is turned off ("downgrading to PIO mode 3").  Is
> >     there a known fix for this?  The drive is a Memorex CRW-1622
> >     CD-RW drive, 2x writes, 6x reads.  This is on i386, of fairly
> >     recent -current vintage.  The autoconf says the drive
> >     supports DMA mode 1.  The drive is master on the secondary
> >     string, and my IDE disk is master on the first string.

  I built a kernel with yesterday's source, which contained the
1s -> 10s fix, but the problem still persists.  I also noticed
that there are two freezes, each of 20sec, before the downgrade
occurs.  In addition, during that time, the clock is not updated!
I.e., it appears that all interrupts are disabled for 20 secs.
When the machine becomes unfrozen, the clock doesn't skip forward
20 seconds.  Hopefully that helps.

  Here is the dmesg output from two consecutive reboots:

Mar 18 23:59:52 k9 /netbsd: NetBSD 1.3K (K93) #0: Thu Mar 18 18:38:14 CST 1999
Mar 18 23:59:52 k9 /netbsd:     bgrayson@orac:/usr/src/sys/arch/i386/compile/K93
Mar 18 23:59:52 k9 /netbsd: cpu0: family 5 model 2 step 2
Mar 18 23:59:52 k9 /netbsd: cpu0: Intel Pentium (P54C) (586-class)
Mar 18 23:59:52 k9 /netbsd: real mem  = 33161216
Mar 18 23:59:52 k9 /netbsd: avail mem = 28475392
Mar 18 23:59:53 k9 /netbsd: using 430 buffers containing 1761280 bytes of memory
Mar 18 23:59:53 k9 /netbsd: mainbus0 (root)
Mar 18 23:59:53 k9 /netbsd: pci0 at mainbus0 bus 0: configuration mode 1
Mar 18 23:59:53 k9 /netbsd: pci0: i/o enabled, memory enabled
Mar 18 23:59:53 k9 /netbsd: pchb0 at pci0 dev 0 function 0
Mar 18 23:59:53 k9 /netbsd: pchb0: Acer Labs M1531 Host-PCI Bridge (rev. 0xb2)
Mar 18 23:59:53 k9 /netbsd: pcib0 at pci0 dev 2 function 0
Mar 18 23:59:53 k9 /netbsd: pcib0: Acer Labs M1543 PCI-ISA Bridge (rev. 0xb4)
Mar 18 23:59:53 k9 /netbsd: S3 Trio64V2/DX (VGA display, revision 0x14) at pci0 dev 3 function 0 not configured
Mar 18 23:59:53 k9 /netbsd: pciide0 at pci0 dev 11 function 0: Acer Labs M5229 UDMA IDE Controller
Mar 18 23:59:53 k9 /netbsd: pciide0: bus-master DMA support present
Mar 18 23:59:53 k9 /netbsd: pciide0: primary channel configured to compatibility mode
Mar 18 23:59:53 k9 /netbsd: wd0 at pciide0 channel 0 drive 0: <QUANTUM BIGFOOT_CY4320A>
Mar 18 23:59:53 k9 /netbsd: wd0: drive supports 32-sector pio transfers, lba addressing
Mar 18 23:59:53 k9 /netbsd: wd0: 4134MB, 8960 cyl, 15 head, 63 sec, 512 bytes/sect x 8467200 sectors
Mar 18 23:59:53 k9 /netbsd: wd0: 32-bits data port
Mar 18 23:59:53 k9 /netbsd: wd0: drive supports PIO mode 4, DMA mode 2
Mar 18 23:59:53 k9 /netbsd: pciide0: primary channel interrupting at irq 14
Mar 18 23:59:53 k9 /netbsd: pciide0: secondary channel configured to compatibility mode
Mar 18 23:59:53 k9 /netbsd: atapibus0 at pciide0 channel 1
Mar 18 23:59:53 k9 /netbsd: cd0 at atapibus0 drive 0: <Memorex CRW-1622, AH1234567892123  L2, D4.0> type 5 cdrom removable
Mar 18 23:59:53 k9 /netbsd: cd0: 32-bits data port
Mar 18 23:59:53 k9 /netbsd: cd0: drive supports PIO mode 3, DMA mode 1
Mar 18 23:59:53 k9 /netbsd: pciide0: secondary channel interrupting at irq 15
Mar 18 23:59:53 k9 /netbsd: wd0(pciide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
Mar 18 23:59:54 k9 /netbsd: cd0(pciide0:1:0): using PIO mode 3, DMA mode 1 (using DMA data transfers)
Mar 18 23:59:54 k9 /netbsd: isa0 at pcib0
Mar 18 23:59:54 k9 /netbsd: com0 at isa0 port 0x3f8-0x3ff irq 4: ns8250 or ns16450, no fifo
Mar 18 23:59:54 k9 /netbsd: com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
Mar 18 23:59:54 k9 /netbsd: lpt0 at isa0 port 0x378-0x37b irq 7
Mar 18 23:59:54 k9 /netbsd: pcppi0 at isa0 port 0x61
Mar 18 23:59:54 k9 /netbsd: sysbeep0 at pcppi0
Mar 18 23:59:54 k9 /netbsd: isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
Mar 18 23:59:54 k9 /netbsd: npx0 at isa0 port 0xf0-0xff: using exception 16
Mar 18 23:59:54 k9 /netbsd: WARNING: Pentium FDIV bug detected!
Mar 18 23:59:54 k9 /netbsd: vt0 at isa0 port 0x60-0x6f irq 1
Mar 18 23:59:54 k9 /netbsd: vt0: unknown s3, 80 col, color, 8 scr, mf2-kbd, [R3.32]
Mar 18 23:59:54 k9 /netbsd: vt0: console
Mar 18 23:59:54 k9 /netbsd: fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
Mar 18 23:59:54 k9 /netbsd: isapnp0: no ISA Plug 'n Play devices found
Mar 18 23:59:54 k9 /netbsd: biomask c040 netmask c040 ttymask c0c2
Mar 18 23:59:54 k9 /netbsd: matchbiosdisks: no BIOS_GEOM info
Mar 18 23:59:54 k9 /netbsd: boot device: wd0
Mar 18 23:59:54 k9 /netbsd: root on wd0a dumps on wd0b
Mar 18 23:59:54 k9 /netbsd: root file system type: ffs
Mar 18 23:59:53 k9 savecore: no core dump (no dumpdev)
Mar 19 00:00:01 k9 getty[119]: /dev/ttyE3: Device not configured
Mar 19 00:00:02 k9 getty[117]: /dev/ttyE1: Device not configured
Mar 19 00:00:02 k9 getty[118]: /dev/ttyE2: Device not configured
Mar 19 00:00:13 k9 pppd[156]: pppd 2.3.5 started by bgrayson, uid 2000
Mar 19 00:00:41 k9 pppd[156]: Connect: ppp0 <--> /dev/tty01
Mar 19 00:00:41 k9 pppd[156]: local  IP address 128.83.128.63
Mar 19 00:00:41 k9 pppd[156]: remote IP address 128.83.128.246
Mar 19 00:06:28 k9 /netbsd: pciide0:1:0: lost interrupt
Mar 19 00:06:28 k9 /netbsd: 	type: atapi
Mar 19 00:06:28 k9 /netbsd: 	c_bcount: 24
Mar 19 00:06:28 k9 /netbsd: 	c_skip: 0
Mar 19 00:06:28 k9 /netbsd: pciide0:1:0: device timeout, c_bcount=24, c_skip=0
Mar 19 00:06:28 k9 /netbsd: cd0: transfer error, downgrading to PIO mode 3
Mar 19 00:06:28 k9 /netbsd: cd0(pciide0:1:0): using PIO mode 3
Mar 19 00:06:48 k9 /netbsd: pciide0:1:0: lost interrupt
Mar 19 00:06:48 k9 /netbsd: 	type: atapi
Mar 19 00:06:48 k9 /netbsd: 	c_bcount: 24
Mar 19 00:06:48 k9 /netbsd: 	c_skip: 0
Mar 19 00:06:48 k9 /netbsd: pciide0:1:0: device timeout, c_bcount=24, c_skip=0
Mar 19 00:06:48 k9 /netbsd: cd0(pciide0:1:0):  Check Condition on CDB: 0x43 00 00 00 00 00 00 00 04 00
Mar 19 00:06:48 k9 /netbsd:     SENSE KEY:  Not Ready
Mar 19 00:06:48 k9 /netbsd:  COMMAND INFO:  18 (0x12)
Mar 19 00:06:48 k9 /netbsd:      ASC/ASCQ:  Logical Unit Is in Process Of Becoming Ready
Mar 19 00:06:48 k9 /netbsd: 
Mar 19 00:08:35 k9 shutdown: halt by bgrayson: 'Shutting down system via sdown command.' 
Mar 19 00:08:42 k9 syslogd: exiting on signal 15
Mar 19 00:15:02 k9 /netbsd: NetBSD 1.3K (K93) #0: Thu Mar 18 18:38:14 CST 1999
Mar 19 00:15:02 k9 /netbsd:     bgrayson@orac:/usr/src/sys/arch/i386/compile/K93
Mar 19 00:15:02 k9 /netbsd: cpu0: family 5 model 2 step 2
Mar 19 00:15:02 k9 /netbsd: cpu0: Intel Pentium (P54C) (586-class)
Mar 19 00:15:02 k9 /netbsd: real mem  = 33161216
Mar 19 00:15:02 k9 /netbsd: avail mem = 28475392
Mar 19 00:15:02 k9 /netbsd: using 430 buffers containing 1761280 bytes of memory
Mar 19 00:15:02 k9 /netbsd: mainbus0 (root)
Mar 19 00:15:03 k9 /netbsd: pci0 at mainbus0 bus 0: configuration mode 1
Mar 19 00:15:03 k9 /netbsd: pci0: i/o enabled, memory enabled
Mar 19 00:15:03 k9 /netbsd: pchb0 at pci0 dev 0 function 0
Mar 19 00:15:03 k9 /netbsd: pchb0: Acer Labs M1531 Host-PCI Bridge (rev. 0xb2)
Mar 19 00:15:03 k9 /netbsd: pcib0 at pci0 dev 2 function 0
Mar 19 00:15:03 k9 /netbsd: pcib0: Acer Labs M1543 PCI-ISA Bridge (rev. 0xb4)
Mar 19 00:15:03 k9 /netbsd: S3 Trio64V2/DX (VGA display, revision 0x14) at pci0 dev 3 function 0 not configured
Mar 19 00:15:03 k9 /netbsd: pciide0 at pci0 dev 11 function 0: Acer Labs M5229 UDMA IDE Controller
Mar 19 00:15:03 k9 /netbsd: pciide0: bus-master DMA support present
Mar 19 00:15:03 k9 /netbsd: pciide0: primary channel configured to compatibility mode
Mar 19 00:15:03 k9 /netbsd: wd0 at pciide0 channel 0 drive 0: <QUANTUM BIGFOOT_CY4320A>
Mar 19 00:15:03 k9 /netbsd: wd0: drive supports 32-sector pio transfers, lba addressing
Mar 19 00:15:03 k9 /netbsd: wd0: 4134MB, 8960 cyl, 15 head, 63 sec, 512 bytes/sect x 8467200 sectors
Mar 19 00:15:03 k9 /netbsd: wd0: 32-bits data port
Mar 19 00:15:03 k9 /netbsd: wd0: drive supports PIO mode 4, DMA mode 2
Mar 19 00:15:03 k9 /netbsd: pciide0: primary channel interrupting at irq 14
Mar 19 00:15:03 k9 /netbsd: pciide0: secondary channel configured to compatibility mode
Mar 19 00:15:03 k9 /netbsd: atapibus0 at pciide0 channel 1
Mar 19 00:15:03 k9 /netbsd: cd0 at atapibus0 drive 0: <Memorex CRW-1622, AH1234567892123  L2, D4.0> type 5 cdrom removable
Mar 19 00:15:03 k9 /netbsd: cd0: 32-bits data port
Mar 19 00:15:03 k9 /netbsd: cd0: drive supports PIO mode 3, DMA mode 1
Mar 19 00:15:03 k9 /netbsd: pciide0: secondary channel interrupting at irq 15
Mar 19 00:15:03 k9 /netbsd: wd0(pciide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
Mar 19 00:15:03 k9 /netbsd: cd0(pciide0:1:0): using PIO mode 3, DMA mode 1 (using DMA data transfers)
Mar 19 00:15:04 k9 /netbsd: isa0 at pcib0
Mar 19 00:15:04 k9 /netbsd: com0 at isa0 port 0x3f8-0x3ff irq 4: ns8250 or ns16450, no fifo
Mar 19 00:15:04 k9 /netbsd: com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
Mar 19 00:15:04 k9 /netbsd: lpt0 at isa0 port 0x378-0x37b irq 7
Mar 19 00:15:04 k9 /netbsd: pcppi0 at isa0 port 0x61
Mar 19 00:15:04 k9 /netbsd: sysbeep0 at pcppi0
Mar 19 00:15:04 k9 /netbsd: isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
Mar 19 00:15:04 k9 /netbsd: npx0 at isa0 port 0xf0-0xff: using exception 16
Mar 19 00:15:04 k9 /netbsd: WARNING: Pentium FDIV bug detected!
Mar 19 00:15:04 k9 /netbsd: vt0 at isa0 port 0x60-0x6f irq 1
Mar 19 00:15:04 k9 /netbsd: vt0: unknown s3, 80 col, color, 8 scr, mf2-kbd, [R3.32]
Mar 19 00:15:04 k9 /netbsd: vt0: console
Mar 19 00:15:04 k9 /netbsd: fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
Mar 19 00:15:04 k9 /netbsd: isapnp0: no ISA Plug 'n Play devices found
Mar 19 00:15:04 k9 /netbsd: biomask c040 netmask c040 ttymask c0c2
Mar 19 00:15:04 k9 /netbsd: matchbiosdisks: no BIOS_GEOM info
Mar 19 00:15:04 k9 /netbsd: boot device: wd0
Mar 19 00:15:04 k9 /netbsd: root on wd0a dumps on wd0b
Mar 19 00:15:04 k9 /netbsd: root file system type: ffs
Mar 19 00:15:03 k9 savecore: no core dump (no dumpdev)
Mar 19 00:15:11 k9 getty[118]: /dev/ttyE1: Device not configured
Mar 19 00:15:11 k9 getty[119]: /dev/ttyE2: Device not configured
Mar 19 00:15:11 k9 getty[120]: /dev/ttyE3: Device not configured
Mar 19 00:16:45 k9 /netbsd: pciide0:1:0: lost interrupt
Mar 19 00:16:45 k9 /netbsd: 	type: atapi
Mar 19 00:16:45 k9 /netbsd: 	c_bcount: 24
Mar 19 00:16:45 k9 /netbsd: 	c_skip: 0
Mar 19 00:16:45 k9 /netbsd: pciide0:1:0: device timeout, c_bcount=24, c_skip=0
Mar 19 00:16:45 k9 /netbsd: cd0: transfer error, downgrading to PIO mode 3
Mar 19 00:16:45 k9 /netbsd: cd0(pciide0:1:0): using PIO mode 3
Mar 19 00:17:00 k9 pppd[186]: pppd 2.3.5 started by bgrayson, uid 2000
Mar 19 00:17:05 k9 /netbsd: pciide0:1:0: lost interrupt
Mar 19 00:17:05 k9 /netbsd: 	type: atapi
Mar 19 00:17:05 k9 /netbsd: 	c_bcount: 24
Mar 19 00:17:05 k9 /netbsd: 	c_skip: 0
Mar 19 00:17:05 k9 /netbsd: pciide0:1:0: device timeout, c_bcount=24, c_skip=0
Mar 19 00:17:05 k9 /netbsd: cd0(pciide0:1:0):  Check Condition on CDB: 0x43 00 00 00 00 00 00 00 04 00
Mar 19 00:17:05 k9 /netbsd:     SENSE KEY:  Not Ready
Mar 19 00:17:05 k9 /netbsd:  COMMAND INFO:  8 (0x8)
Mar 19 00:17:05 k9 /netbsd:      ASC/ASCQ:  Logical Unit Is in Process Of Becoming Ready
Mar 19 00:17:05 k9 /netbsd: 
Mar 19 00:17:12 k9 pppd[186]: Connect: ppp0 <--> /dev/tty01
Mar 19 00:17:14 k9 pppd[186]: local  IP address 128.83.251.131
Mar 19 00:17:14 k9 pppd[186]: remote IP address 128.83.251.248