Subject: Re: Missing atapibus target 1
To: None <current-users@NetBSD.org>
From: Gary Duzan <gary@duzan.org>
List: current-users
Date: 09/27/2003 12:43:14
In Message <200309271013.h8RADmGx000452@capo.xnet.duzan.org> ,
   Gary Duzan <gary@duzan.org> wrote:

=>   Under current/i386 from September 17, I get all my drives:
=>
=>===========================================================================
=>Sep 23 19:22:33 capo /netbsd: pciide0 at pci0 dev 9 function 0: NVIDIA nForce2 IDE Controller (rev. 0xa2)
=>Sep 23 19:22:33 capo /netbsd: pciide0: bus-master DMA support present
=>Sep 23 19:22:33 capo /netbsd: pciide0: primary channel configured to compatibility mode
=>Sep 23 19:22:33 capo /netbsd: wd0 at pciide0 channel 0 drive 0: <ST320423A>
=>Sep 23 19:22:33 capo /netbsd: wd0: drive supports 32-sector PIO transfers, LBA addressing
=>Sep 23 19:22:33 capo /netbsd: wd0: 19536 MB, 39693 cyl, 16 head, 63 sec, 512 bytes/sect x 40011300 sectors
=>Sep 23 19:22:33 capo /netbsd: wd0: 32-bit data port
=>Sep 23 19:22:33 capo /netbsd: wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
=>Sep 23 19:22:33 capo /netbsd: pciide0: primary channel interrupting at irq 14
=>Sep 23 19:22:33 capo /netbsd: wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
=>Sep 23 19:22:33 capo /netbsd: pciide0: secondary channel configured to compatibility mode
=>Sep 23 19:22:33 capo /netbsd: atapibus0 at pciide0 channel 1: 2 targets
=>Sep 23 19:22:33 capo /netbsd: cd0 at atapibus0 drive 0: <SONY CD-ROM CDU4821, MT1198-B Firmware, S0.Q> cdrom removable
=>Sep 23 19:22:33 capo /netbsd: cd0: 32-bit data port
=>Sep 23 19:22:33 capo /netbsd: cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
=>Sep 23 19:22:33 capo /netbsd: wd1 at pciide0 channel 1 drive 1: <MAXTOR 6L080L4>
=>Sep 23 19:22:33 capo /netbsd: wd1: drive supports 16-sector PIO transfers, LBA addressing
=>Sep 23 19:22:33 capo /netbsd: wd1: 76345 MB, 155114 cyl, 16 head, 63 sec, 512 bytes/sect x 156355584 sectors
=>Sep 23 19:22:33 capo /netbsd: wd1: 32-bit data port
=>Sep 23 19:22:33 capo /netbsd: wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
=>Sep 23 19:22:33 capo /netbsd: pciide0: secondary channel interrupting at irq 15
=>Sep 23 19:22:33 capo /netbsd: cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
=>Sep 23 19:22:33 capo /netbsd: wd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA data transfers)
=>===========================================================================
=>
=>However, with current from the 27th I get:

(with debugging on)
===========================================================================
pciide0 at pci0 dev 9 function 0
pciide0: NVIDIA nForce2 IDE Controller (rev. 0xa2)
pciide0: bus-master DMA support present
amd7x6_chip_map: Channel enable=0xf003
pciide0: primary channel configured to compatibility mode
pciide0: primary channel interrupting at irq 14
pciide0: secondary channel configured to compatibility mode
pciide0: secondary channel interrupting at irq 15
pciide: command/status register=b00005
[...]
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 er0=0x1, st1=0x0 er1=0x1
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=30001), status 0 error 0 (mask 0x48 bits 0x40)
wdc_ata_get_parms: wdc_c.flags=0x129
wdcwait: timeout (time=30001), status 0 error 0 (mask 0x48 bits 0x40)
wdc_ata_get_parms: wdc_c.flags=0x129
pciide0:0:1: IDENTIFY failed (1)
wdcattach: ch_drive_flags 0x1 0x0
wd0 at pciide0 channel 0 drive 0: <ST320423A>
wd0: drive supports 32-sector PIO transfers, LBA addressing
wd0: 19536 MB, 39693 cyl, 16 head, 63 sec, 512 bytes/sect x 40011300 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 er0=0x1, st1=0x0 er1=0x1
pciide_dma_table_setup: table at 0xe2d4c000 len 136, phy 0x4970000
pciide_dma_table_setup: phy addr of table 0x4970000
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
pciide0:1: before reset, st0=0x50, st1=0x50
pciide0:1:0: after reset, sc=0x1 sn=0x1 cl=0x14 ch=0xeb
pciide0:1:1: after reset, sc=0x7f sn=0x7f cl=0x7f ch=0x7f
pciide0:1: wdcwait_reset() end, st0=0x0 er0=0x1, st1=0x7f er1=0x7f
pciide0:1: after reset, ret_value=0x1
pciide0:1:0: after reset, sc=0x1 sn=0x1 cl=0x14 ch=0xeb
wdcattach: ch_drive_flags 0x2 0x0
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 0: <SONY CD-ROM CDU4821, MT1198-B Firmware, S0.Q> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
pciide0:1:0: after reset, sc=0x1 sn=0x1 cl=0x14 ch=0xeb
pciide0:1:1: after reset, sc=0x7f sn=0x7f cl=0x7f ch=0x7f
pciide0:1: wdcwait_reset() end, st0=0x0 er0=0x1, st1=0x7f er1=0x7f
pciide_dma_table_setup: table at 0xe2d4d000 len 136, phy 0x4980000
pciide_dma_table_setup: phy addr of table 0x4980000
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
===========================================================================

=>Note that wd1 no longer appears, even though atapibus0 shows two targets.
=>
=>					Gary Duzan
=>
=>