Subject: Re: Missing atapibus target 1
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Gary Duzan <gary@duzan.org>
List: current-users
Date: 10/14/2003 07:59:12
In Message <20031013200141.GD2781@antioche.eu.org> ,
   Manuel Bouyer <bouyer@antioche.eu.org> wrote:

=>On Sun, Oct 12, 2003 at 10:52:30PM -0400, Gary Duzan wrote:
=>> 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
=>
=>OK, so we have the same thing here.
=>Hum, I don't know why charles added this 0x7f mask in the code here; probably
=>because his CD behaves the same way, and he found his laptop would boot
=>quickier this way.
=>Can you try the attached patch ?

   Here it is with the patch. Still no wd1:

===========================================================================
viaide0 at pci0 dev 9 function 0
viaide0: NVIDIA nForce2 IDE Controller (rev. 0xa2)
viaide0: bus-master DMA support present
viaide0: primary channel configured to compatibility mode
viaide0: primary channel interrupting at irq 14
atabus0 at viaide0 channel 0
viaide0: secondary channel configured to compatibility mode
viaide0: secondary channel interrupting at irq 15
atabus1 at viaide0 channel 1
[ ... ]
viaide0:0: before reset, st0=0x50, st1=0x0
viaide0:1: before reset, st0=0x50, st1=0x50
viaide0:1:0: after reset, sc=0x1 sn=0x1 cl=0x14 ch=0xeb
viaide0:1:1: after reset, sc=0x7f sn=0x7f cl=0x7f ch=0x7f
viaide0:1: wdcwait_reset() end, st0=0x0 er0=0x1, st1=0x7f er1=0x7f
viaide0:1: after reset, ret_value=0x1
viaide0:1:0: after reset, sc=0x1 sn=0x1 cl=0x14 ch=0xeb
viaide0:1: wait DRDY st0 0x0 st1 0x7f
atabusattach: ch_drive_flags 0x2 0x0
viaide0:0:0: after reset, sc=0x1 sn=0x1 cl=0x0 ch=0x0
viaide0:0:1: after reset, sc=0x1 sn=0x1 cl=0x0 ch=0x0
viaide0:0: wdcwait_reset() end, st0=0x50 er0=0x1, st1=0x0 er1=0x1
viaide0:0: after reset, ret_value=0x3
viaide0:0:0: after reset, sc=0x1 sn=0x1 cl=0x0 ch=0x0
viaide0:0:1: after reset, sc=0x1 sn=0x1 cl=0x0 ch=0x0
[ ... ]
viaide0:0: wait DRDY st0 0x50 st1 0x0
__wdcwait: timeout (time=11), status d0 error d0 (mask 0x0 bits 0x0)
atabusattach: ch_drive_flags 0x1 0x0
wd0 at atabus0 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)
wd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
atapibus0 at atabus1: 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)
cd0(viaide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
===========================================================================

					Gary Duzan