Subject: Re: AHCI driver commited
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Chavdar Ivanov <ci4ic4@gmail.com>
List: current-users
Date: 12/01/2006 00:08:58
On 11/30/06, Manuel Bouyer <bouyer@antioche.eu.org> wrote:
> Hi,
> I've just commited an ahci driver. Works fine for me on Intel 63xxESB AHCI
> controller:
> ahcisata0 at pci0 dev 31 function 2: Intel 63xxESB AHCI Serial ATA Controller
> ahcisata0: AHCI revision 1.0, 6 ports, 32 command slots, features 0xc6226000
> ahcisata0: interrupting at ioapic0 pin 19 (irq 10)

Seems to be working fine:

ahcisata0 at pci0 dev 31 function 2: Intel 82801GBM AHCI SATA Controller
ahcisata0: AHCI revision 1.0, 4 ports, 32 command slots, features 0xdf12e000
ahcisata0: interrupting at ioapic0 pin 17 (irq 10)
atabus1 at ahcisata0 channel 0

(this is an HP nx6310 laptop - I have put a few questions about it earlier).

> atabus0 at ahcisata0 channel 0
> atabus1 at ahcisata0 channel 1
> atabus2 at ahcisata0 channel 2
> atabus3 at ahcisata0 channel 3
> atabus4 at ahcisata0 channel 4
> atabus5 at ahcisata0 channel 5
> ahcisata0 port 0: device present, speed: 3.0GB/s
> ahcisata0 port 2: device present, speed: 3.0GB/s
> wd0 at atabus0 drive 0: <Hitachi HDS721616PLA380>
> wd0: drive supports 16-sector PIO transfers, LBA48 addressing
> wd0: 153 GB, 319120 cyl, 16 head, 63 sec, 512 bytes/sect x 321672960 sectors
> 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 atabus2 drive 0: <Hitachi HDS721616PLA380>
> wd1: drive supports 16-sector PIO transfers, LBA48 addressing
> wd1: 153 GB, 319120 cyl, 16 head, 63 sec, 512 bytes/sect x 321672960 sectors
> wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
> wd1(ahcisata0:2:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA)

ahcisata0 port 0: device present, speed: 1.5Gb/s
wd0 at atabus1 drive 0: <FUJITSU MHV2060BH>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 57241 MB, 116301 cyl, 16 head, 63 sec, 512 bytes/sect x 117231408 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5
(Ultra/100) (using DMA)


>
> Note that this driver will only attach if the controller is in AHCI mode
> (there's usually a BIOS option for this); if it's in compat mode it'll
> be handled by piixide as before.

The option in this laptop's BIOS is SATA native enable/disable.

It turned out to be a decent little number for NetBSD - basically
everything works (I haven't still tried too much to get the
suspend/resume work, though; I can't find custom .dsl file for this
machine).

>
> --
> Manuel Bouyer <bouyer@antioche.eu.org>
>      NetBSD: 26 ans d'experience feront toujours la difference
> --
>

Thanks again,

Chavdar Ivanov