David Gwynne <[EMAIL PROTECTED]> writes: > intel provide both pciide and ahci for using sata disks. which one > gets used depends on a set of registers in the pci config space. > > if you're serious about getting this to work find the datasheet at > developer.intel.com for this chipset, and look at the MAP and PCS > registers (i think thats them). you'll need to provide a custom > attach routine for your chipset to be called in ahci_attach which > tweaks those registers. > > i think thats enough to get ahci working on that controller, but i am > probably wrong.
Erm... Now I'm confused. On my laptop: ahci0 at pci0 dev 31 function 2 "Intel 82801GBM AHCI SATA" rev 0x02 GHC 0x0: AHCI 1.1: apic 2 int 16 (irq 11) ahci0: capabilities: 0xc710ff03<S64A,NCQ,SALP,SAL,SCLO,PMD,SSC,PSC> ports: 4 ncmds: 32 gen: 1 (1.5Gbps) ahci0: ports implemented: 0x00000001 ahci0.0: port reset ahci0: detected device on port 0 scsibus0 at ahci0: 32 targets sd0 at scsibus0 targ 0 lun 0: <ATA, HTS541080G9SA00, MB4I> SCSI2 0/direct fixed sd0: 76319MB, 76319 cyl, 64 head, 32 sec, 512 bytes/sec, 156301488 sec total It "just works". Is this because I enabled ahci in the bios? I had some strange diff earlier from someone, might even have been you, that did some tweak to enable it even though it wasn't enabled in the bios (that's when my laptop was crashing on reboot). //art > On 19/04/2007, at 5:20 AM, giovanni wrote: > > > hello, > > > > sorry for the question but I would like to understand a bit more > > > > I've added PCI_PRODUCT_INTEL_82801GBM_SATA (product code 0x27c4) > > to the ahci_devices list because I've (wrongly?) read somewhere that > > Intel 82801GBM > > was ahci compliant. Indeed at boot I've: > > > > ahci0 at pci0 dev 31 function 2 "Intel 82801GBM SATA" rev 0x02 GHC > > 0x0; AHCI 1.1: apic... > > ahci0: capabilities: 0xdf12ff03<S64A, NCQ, SMPS, SSS, SALP, SAL, SCLO, > > SPM, PMD, SSC,PSC> > > ports:4 ncmds:32 gen: 1 (1.5Gbps) > > ahci0: ports implemented: 0x00000000 > > > > have I to deduce that ahci is not available because Port Implemented > > register is 0? > > if so why is it reported a Number of port of 4? What is the sense of > > this "discrepancy"? > > > > thanks, > > > > -- > > giovanni