Subject: Re: wd2500 drive not properly detected by ahci driver
To: Stephen Degler <stephen@degler.net>
From: Frank van der Linden <fvdl@netbsd.org>
List: port-amd64
Date: 06/20/2007 10:19:26
Stephen Degler wrote:
> This is on an amd64 4600 x2 w/ AMD690G northbridge and SB600 south 
> bridge.
>
> Some debuggins is turned on,  Reads work ok as far as I can tell.
>
> ahcisata0 port 0: device present, speed: 1.5Gb/s
> wd0 at atabus0 drive 0wdattach
> ahcisata0 port 1: device present, speed: 1.5Gb/s
> : <ST506>
> wd0: drive supports 1-sector PIO transfers, chs addressing
> wd0: 69632 KB, 1024 cyl, 8 head, 17 sec, 512 bytes/sect x 139264 sectors
> wd0: atap_dmatiming_mimi=0, atap_dmatiming_recom=0
> dk0 at wd0: wd0e
> dk0: 488397105 blocks at 63, type: lfs
> wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
> wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 
> (Ultra/133) (
> using DMA)
> wd1 at atabus1 drive 0wdattach
> : <ST3160023AS>
> wd1: quirks 2<FORCE_LBA48>
> wd1: drive supports 16-sector PIO transfers, LBA48 addressing
> wd1: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 
> sectors
> wd1: atap_dmatiming_mimi=120, atap_dmatiming_recom=120
>
> skd
I've seen that problem too. Asus P5B-V board (Intel 965), on-board SATA 
enabled as AHCI. The controller has 6 channels, but only channels 0,1,4 
and 5 are used.

wd0 at atabus3 drive 0: <WDC WD740GD-00FLA0>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 70911 MB, 144073 cyl, 16 head, 63 sec, 512 bytes/sect x 145226112 
sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(ahcisata1:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 
(Ultra/133) (
using DMA)
wd1 at atabus4 drive 0: <WDC WD740GD-00FLA0>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 70911 MB, 144073 cyl, 16 head, 63 sec, 512 bytes/sect x 145226112 
sectors
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1(ahcisata1:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 
(Ultra/133) (
using DMA)
wd2 at atabus5 drive 0: <ST506>
wd2: drive supports 1-sector PIO transfers, chs addressing
wd2: 69632 KB, 1024 cyl, 8 head, 17 sec, 512 bytes/sect x 139264 sectors
wd2(ahcisata1:4:0): using PIO mode 0
wd3 at atabus6 drive 0: <ST506>
wd3: drive supports 1-sector PIO transfers, chs addressing
wd3: 69632 KB, 1024 cyl, 8 head, 17 sec, 512 bytes/sect x 139264 sectors
wd3(ahcisata1:5:0): using PIO mode 0

It probes the first two ones correctly, but not the last two. I also 
noticed that OpenSolaris also gets the ID of the drive not quite right 
for 2 drives (not "WDC ... " but "Generic"), but it does get the 
geometry right. Furthermore, I could install Fedora Core 7 on wd3, so 
that does find it.

- Frank