Subject: Re: wd2500 drive not properly detected by ahci driver
To: Frank van der Linden <fvdl@NetBSD.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-amd64
Date: 06/20/2007 11:15:04
Hi,

On Wed, Jun 20, 2007 at 10:19:26AM +0200, Frank van der Linden wrote:
> 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

Could you set atadebug_mask to 0x10, and send me the boot message ?

You could also try setting ahcidebug_mask to 0x02, but this will probably
be much more verbose, at it will print debug messages for all transfers ...

-- 
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
     NetBSD: 26 ans d'experience feront toujours la difference
--