Subject: Re: My CD-RW drive is not probed
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Shunji KUBOTA <shundi@rr.iij4u.or.jp>
List: port-i386
Date: 08/09/2001 00:28:23
--8t9RHnE3ZwKMSgU+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Hi Manuel!

I forgot to attach the files. So sorry...

On Tue, Aug 07, 2001 at 09:33:42PM +0200, Manuel Bouyer wrote:
> On Wed, Aug 08, 2001 at 12:51:13AM +0000, Shunji KUBOTA wrote:
> > Hi folks.
> > 
> > NetBSD does not probe my CD-RW drive, although
> > FreeBSD running on the same box probes it as `acd1'.
> > What's wrong with me?
> 
> Maybe try to exange master and slave ?
> You could also set wdcdebug_mask & wdcdebug_atapi_mask to 0x10 and post the
> output.

Exchaging master and slave solves my problem :)

FYI, I attach the output of dmesg(8) after setting wdcdebug_mask &
wdcdebug_atapi_mask to 0x10. Two files are attached:

  1st (dmesg.wdcdebug): Before exchanging master and slave.
                        (i.e., my CD-RW drive is NOT probed)

  2nd (dmesg.wdcdebug2): After exchanging master and slave.
                         (i.e., my CD-RW drive is probed)

Thanks for your help!
-- 
   Shunji KUBOTA        shundi@rr.iij4u.or.jp

--8t9RHnE3ZwKMSgU+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="dmesg.wdcdebug"
Content-Transfer-Encoding: 7bit

NetBSD 1.5X (ds9) #22: Wed Aug  8 23:25:51 GMT 2001
    root@ds9:/usr/src/sys/arch/i386/compile/ds9
cpu0: AMD K6-2 (586-class), 400.92 MHz
cpu0: I-cache 32 KB 32b/line 2-way, D-cache 32 KB 32b/line 2-way
cpu0: features 8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
cpu0: features 8021bf<PGE,MMX>
total memory = 383 MB
avail memory = 351 MB
using 4935 buffers containing 19740 KB of memory
BIOS32 rev. 0 found at 0xfb4c0
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Acer Labs M1541 Host-PCI Bridge (rev. 0x04)
ppb0 at pci0 dev 1 function 0: Acer Labs M5243 PCI-AGP Bridge (rev. 0x04)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: Nvidia Corporation product 0x0111 (rev. 0xb2)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
ohci0 at pci0 dev 2 function 0: Acer Labs M5237 USB Host Controller (rev. 0x03)
ohci0: interrupting at irq 11
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pcib0 at pci0 dev 7 function 0
pcib0: Acer Labs M1543 PCI-ISA Bridge (rev. 0xc3)
pciide0 at pci0 dev 9 function 0: Promise Ultra100/ATA Bus Master IDE Accelerator (rev. 0x02)
pciide0: bus-master DMA support present
pciide0: primary channel configured to native-PCI mode
pciide0: using irq 5 for native-PCI interrupt
pciide0:0: before reset, st0=0x50, st1=0x0
pciide0:0:0: after reset, sc=0x1 sn=0x1 cl=0x0 ch=0x0
pciide0:0:1: after reset, sc=0x1 sn=0x1 cl=0x0 ch=0x0
pciide0:0: wdcwait_reset() end, st0=0x50, st1=0x0
pciide0:0: after reset, ret_value=0x3
pciide0:0:0: after reset, sc=0x1 sn=0x1 cl=0x0 ch=0x0
pciide0:0:1: after reset, sc=0x1 sn=0x1 cl=0x0 ch=0x0
wdcwait: timeout (time=10001), status 0 error 0 (mask 0x48 bits 0x40)
wdc_ata_get_parms: wdc_c.flags=0xb1
wdcwait: timeout (time=10001), status 0 error 0 (mask 0x48 bits 0x40)
wdc_ata_get_parms: wdc_c.flags=0xb1
pciide0:0:1: IDENTIFY failed (1)
wdcattach: ch_drive_flags 0x1 0x0
wd0 at pciide0 channel 0 drive 0: <Maxtor 91531U3>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 14655 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 30015216 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
pciide0:0:0: after reset, sc=0x1 sn=0x1 cl=0x0 ch=0x0
pciide0:0:1: after reset, sc=0x1 sn=0x1 cl=0x0 ch=0x0
pciide0:0: wdcwait_reset() end, st0=0x50, st1=0x0
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
pciide0: secondary channel configured to native-PCI mode
pciide0:1: before reset, st0=0x0, st1=0x0
pciide0:1:0: after reset, sc=0x0 sn=0x0 cl=0x0 ch=0x0
pciide0:1:1: after reset, sc=0x0 sn=0x0 cl=0x0 ch=0x0
pciide0:1: wdcwait_reset() end, st0=0x0, st1=0x0
pciide0:1: after reset, ret_value=0x3
pciide0:1:0: after reset, sc=0x0 sn=0x0 cl=0x0 ch=0x0
pciide0:1:1: after reset, sc=0x0 sn=0x0 cl=0x0 ch=0x0
wdcwait: timeout (time=10001), status 0 error 0 (mask 0x48 bits 0x40)
wdc_ata_get_parms: wdc_c.flags=0xb1
wdcwait: timeout (time=10001), status 0 error 0 (mask 0x48 bits 0x40)
wdc_ata_get_parms: wdc_c.flags=0xb1
pciide0:1:0: IDENTIFY failed (1)
wdcwait: timeout (time=10001), status 0 error 0 (mask 0x48 bits 0x40)
wdc_ata_get_parms: wdc_c.flags=0xb1
wdcwait: timeout (time=10001), status 0 error 0 (mask 0x48 bits 0x40)
wdc_ata_get_parms: wdc_c.flags=0xb1
pciide0:1:1: IDENTIFY failed (1)
wdcattach: ch_drive_flags 0x0 0x0
pciide0: disabling secondary channel (no drives)
ne2 at pci0 dev 12 function 0: RealTek 8029 Ethernet
ne2: Ethernet address 00:90:99:11:74:b5
ne2: 10base2, 10baseT, 10baseT-FDX, auto, default [0x00 0x30] auto
ne2: interrupting at irq 10
pciide1 at pci0 dev 15 function 0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc1)
pciide1: bus-master DMA support present
pciide1: primary channel configured to compatibility mode
pciide1:0: before reset, st0=0x7f, st1=0x7f
pciide1:0:0: after reset, sc=0x7f sn=0x7f cl=0x7f ch=0x7f
pciide1:0:1: after reset, sc=0x7f sn=0x7f cl=0x7f ch=0x7f
pciide1:0: wdcwait_reset() end, st0=0x7f, st1=0x7f
pciide1:0: after reset, ret_value=0x3
pciide1:0:0: after reset, sc=0x7f sn=0x7f cl=0x7f ch=0x7f
pciide1:0:1: after reset, sc=0x7f sn=0x7f cl=0x7f ch=0x7f
wdcwait: timeout (time=10001), status 7f error 7f (mask 0x48 bits 0x40)
wdc_ata_get_parms: wdc_c.flags=0x1f1
wdcwait: timeout (time=10001), status 7f error 7f (mask 0x48 bits 0x40)
wdc_ata_get_parms: wdc_c.flags=0x1f1
pciide1:0:0: IDENTIFY failed (1)
wdcwait: timeout (time=10001), status 7f error 7f (mask 0x48 bits 0x40)
wdc_ata_get_parms: wdc_c.flags=0x1f1
wdcwait: timeout (time=10001), status 7f error 7f (mask 0x48 bits 0x40)
wdc_ata_get_parms: wdc_c.flags=0x1f1
pciide1:0:1: IDENTIFY failed (1)
wdcattach: ch_drive_flags 0x0 0x0
pciide1: disabling primary channel (no drives)
pciide1: secondary channel configured to compatibility mode
pciide1:1: before reset, st0=0x50, st1=0x50
pciide1:1:0: after reset, sc=0x1 sn=0x1 cl=0x14 ch=0xeb
pciide1:1:1: after reset, sc=0x7f sn=0x7f cl=0x7f ch=0x7f
pciide1:1: wdcwait_reset() end, st0=0x10, st1=0x7f
pciide1:1: after reset, ret_value=0x3
pciide1:1:0: after reset, sc=0x1 sn=0x1 cl=0x14 ch=0xeb
pciide1:1:1: after reset, sc=0x7f sn=0x7f cl=0x7f ch=0x7f
wdcwait: timeout (time=10001), status 0 error 1 (mask 0x48 bits 0x40)
wdc_ata_get_parms: wdc_c.flags=0xb1
wdcwait: timeout (time=10001), status 0 error 1 (mask 0x48 bits 0x40)
wdc_ata_get_parms: wdc_c.flags=0xb1
pciide1:1:1: IDENTIFY failed (1)
wdcattach: ch_drive_flags 0x2 0x0
atapibus0 at pciide1 channel 1: 2 targets
cd0 at atapibus0 drive 0: <CD-ROM 48X/TKU, MT1198  Firmware, T42> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
wdc_atapi_get_params: drive 1 not present
pciide1:1:0: after reset, sc=0x1 sn=0x1 cl=0x14 ch=0xeb
pciide1:1:1: after reset, sc=0x7f sn=0x7f cl=0x7f ch=0x7f
pciide1:1: wdcwait_reset() end, st0=0x10, st1=0x7f
pciide1: secondary channel interrupting at irq 15
cd0(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
lptprobe: mask ff data 55 failed
lptprobe: mask ff data 55 failed
pcppi0 at isa0 port 0x61
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: no ISA Plug 'n Play devices found
apm0 at mainbus0: Power Management spec V1.2 (slowidle)
apm: 0 batteries, global standby, global suspend, rtimer standby, rtimer suspend, internal standby, internal suspend
biomask eb65 netmask ef65 ttymask ffe7

--8t9RHnE3ZwKMSgU+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="dmesg.wdcdebug2"
Content-Transfer-Encoding: 7bit

NetBSD 1.5X (ds9) #22: Wed Aug  8 23:25:51 GMT 2001
    root@ds9:/usr/src/sys/arch/i386/compile/ds9
cpu0: AMD K6-2 (586-class), 400.92 MHz
cpu0: I-cache 32 KB 32b/line 2-way, D-cache 32 KB 32b/line 2-way
cpu0: features 8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
cpu0: features 8021bf<PGE,MMX>
total memory = 383 MB
avail memory = 351 MB
using 4935 buffers containing 19740 KB of memory
BIOS32 rev. 0 found at 0xfb4c0
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Acer Labs M1541 Host-PCI Bridge (rev. 0x04)
ppb0 at pci0 dev 1 function 0: Acer Labs M5243 PCI-AGP Bridge (rev. 0x04)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: Nvidia Corporation product 0x0111 (rev. 0xb2)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
ohci0 at pci0 dev 2 function 0: Acer Labs M5237 USB Host Controller (rev. 0x03)
ohci0: interrupting at irq 11
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pcib0 at pci0 dev 7 function 0
pcib0: Acer Labs M1543 PCI-ISA Bridge (rev. 0xc3)
pciide0 at pci0 dev 9 function 0: Promise Ultra100/ATA Bus Master IDE Accelerator (rev. 0x02)
pciide0: bus-master DMA support present
pciide0: primary channel configured to native-PCI mode
pciide0: using irq 5 for native-PCI interrupt
pciide0:0: before reset, st0=0x50, st1=0x0
pciide0:0:0: after reset, sc=0x1 sn=0x1 cl=0x0 ch=0x0
pciide0:0:1: after reset, sc=0x1 sn=0x1 cl=0x0 ch=0x0
pciide0:0: wdcwait_reset() end, st0=0x50, st1=0x0
pciide0:0: after reset, ret_value=0x3
pciide0:0:0: after reset, sc=0x1 sn=0x1 cl=0x0 ch=0x0
pciide0:0:1: after reset, sc=0x1 sn=0x1 cl=0x0 ch=0x0
wdcwait: timeout (time=10001), status 0 error 0 (mask 0x48 bits 0x40)
wdc_ata_get_parms: wdc_c.flags=0xb1
wdcwait: timeout (time=10001), status 0 error 0 (mask 0x48 bits 0x40)
wdc_ata_get_parms: wdc_c.flags=0xb1
pciide0:0:1: IDENTIFY failed (1)
wdcattach: ch_drive_flags 0x1 0x0
wd0 at pciide0 channel 0 drive 0: <Maxtor 91531U3>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 14655 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 30015216 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
pciide0:0:0: after reset, sc=0x1 sn=0x1 cl=0x0 ch=0x0
pciide0:0:1: after reset, sc=0x1 sn=0x1 cl=0x0 ch=0x0
pciide0:0: wdcwait_reset() end, st0=0x50, st1=0x0
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
pciide0: secondary channel configured to native-PCI mode
pciide0:1: before reset, st0=0x0, st1=0x0
pciide0:1:0: after reset, sc=0x0 sn=0x0 cl=0x0 ch=0x0
pciide0:1:1: after reset, sc=0x0 sn=0x0 cl=0x0 ch=0x0
pciide0:1: wdcwait_reset() end, st0=0x0, st1=0x0
pciide0:1: after reset, ret_value=0x3
pciide0:1:0: after reset, sc=0x0 sn=0x0 cl=0x0 ch=0x0
pciide0:1:1: after reset, sc=0x0 sn=0x0 cl=0x0 ch=0x0
wdcwait: timeout (time=10001), status 0 error 0 (mask 0x48 bits 0x40)
wdc_ata_get_parms: wdc_c.flags=0xb1
wdcwait: timeout (time=10001), status 0 error 0 (mask 0x48 bits 0x40)
wdc_ata_get_parms: wdc_c.flags=0xb1
pciide0:1:0: IDENTIFY failed (1)
wdcwait: timeout (time=10001), status 0 error 0 (mask 0x48 bits 0x40)
wdc_ata_get_parms: wdc_c.flags=0xb1
wdcwait: timeout (time=10001), status 0 error 0 (mask 0x48 bits 0x40)
wdc_ata_get_parms: wdc_c.flags=0xb1
pciide0:1:1: IDENTIFY failed (1)
wdcattach: ch_drive_flags 0x0 0x0
pciide0: disabling secondary channel (no drives)
ne2 at pci0 dev 12 function 0: RealTek 8029 Ethernet
ne2: Ethernet address 00:90:99:11:74:b5
ne2: 10base2, 10baseT, 10baseT-FDX, auto, default [0x00 0x30] auto
ne2: interrupting at irq 10
pciide1 at pci0 dev 15 function 0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc1)
pciide1: bus-master DMA support present
pciide1: primary channel configured to compatibility mode
pciide1:0: before reset, st0=0x7f, st1=0x7f
pciide1:0:0: after reset, sc=0x7f sn=0x7f cl=0x7f ch=0x7f
pciide1:0:1: after reset, sc=0x7f sn=0x7f cl=0x7f ch=0x7f
pciide1:0: wdcwait_reset() end, st0=0x7f, st1=0x7f
pciide1:0: after reset, ret_value=0x3
pciide1:0:0: after reset, sc=0x7f sn=0x7f cl=0x7f ch=0x7f
pciide1:0:1: after reset, sc=0x7f sn=0x7f cl=0x7f ch=0x7f
wdcwait: timeout (time=10001), status 7f error 7f (mask 0x48 bits 0x40)
wdc_ata_get_parms: wdc_c.flags=0x1f1
wdcwait: timeout (time=10001), status 7f error 7f (mask 0x48 bits 0x40)
wdc_ata_get_parms: wdc_c.flags=0x1f1
pciide1:0:0: IDENTIFY failed (1)
wdcwait: timeout (time=10001), status 7f error 7f (mask 0x48 bits 0x40)
wdc_ata_get_parms: wdc_c.flags=0x1f1
wdcwait: timeout (time=10001), status 7f error 7f (mask 0x48 bits 0x40)
wdc_ata_get_parms: wdc_c.flags=0x1f1
pciide1:0:1: IDENTIFY failed (1)
wdcattach: ch_drive_flags 0x0 0x0
pciide1: disabling primary channel (no drives)
pciide1: secondary channel configured to compatibility mode
pciide1:1: before reset, st0=0x50, st1=0x50
pciide1:1:0: after reset, sc=0x1 sn=0x1 cl=0x14 ch=0xeb
pciide1:1:1: after reset, sc=0x1 sn=0x1 cl=0x14 ch=0xeb
pciide1:1: wdcwait_reset() end, st0=0x0, st1=0x10
pciide1:1: after reset, ret_value=0x3
pciide1:1:0: after reset, sc=0x1 sn=0x1 cl=0x14 ch=0xeb
pciide1:1:1: after reset, sc=0x1 sn=0x1 cl=0x14 ch=0xeb
wdcattach: ch_drive_flags 0x2 0x2
atapibus0 at pciide1 channel 1: 2 targets
cd0 at atapibus0 drive 0: <GENERIC CRD-BP1400P, , 5.32> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
cd1 at atapibus0 drive 1: <CD-ROM 48X/TKU, MT1198  Firmware, T42> type 5 cdrom removable
cd1: 32-bit data port
cd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
pciide1:1:0: after reset, sc=0x1 sn=0x1 cl=0x14 ch=0xeb
pciide1:1:1: after reset, sc=0x1 sn=0x1 cl=0x14 ch=0xeb
pciide1:1: wdcwait_reset() end, st0=0x0, st1=0x10
pciide1: secondary channel interrupting at irq 15
cd0(pciide1:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
cd1(pciide1:1:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
lptprobe: mask ff data 55 failed
lptprobe: mask ff data 55 failed
pcppi0 at isa0 port 0x61
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: no ISA Plug 'n Play devices found
apm0 at mainbus0: Power Management spec V1.2 (slowidle)
apm: 0 batteries, global standby, global suspend, rtimer standby, rtimer suspend, internal standby, internal suspend
biomask eb65 netmask ef65 ttymask ffe7

--8t9RHnE3ZwKMSgU+--