summaryrefslogtreecommitdiff
path: root/sys/dev/pci/ahci.c
AgeCommit message (Collapse)Author
2009-11-01add support for the ati sb900^Whudson2 chips.David Gwynne
from brad
2009-10-24recognise ahci 1.3 devices, maybe they'll Just Work(tm).David Gwynne
2009-10-17Another MCP77 controller that while matched already by class,Jonathan Gray
needs to be told to use the nvidia specific quirks to detect attached devices. From and tested by minusf@obiit.org
2009-10-13sort the device list. from Brad.Stuart Henderson
2009-10-05nvidia MCP73 on acer aspire m1640; proger@uaoug.org.uaTheo de Raadt
2009-09-13ATI SB700 can be handled in ahci mode like SB600. suggested byMatthieu Herrb
and ok kettenis@
2009-02-16Extend the scsi_adapter minphys() callback to take a struct scsi_link *Miod Vallat
as additional argument. This will allow intermediate layers between scsi devices such as sd and scsi host adapters to take appropriate action if necessary.
2009-01-21Replace timeout_add(msecs * hz / 1000) with timeout_add_msec(msecs).Alexander Yurchenko
No functional changes. ok krw@ miod@
2008-12-13;5Anvidia mcp67 ahci controller also needs special handling.Mike Belopuhov
from Marko Pecic. thanks!
2008-12-07yet another one nvidia ahci controller that needs special handling.Mike Belopuhov
from form@. ok dlg, krw
2008-11-22Some nVidia MCP77 AHCI controllers need special handling. There's 12Mike Belopuhov
PCI ID's for MCP77 in our database, but to stay on a safe side, this change affects device 0x0ad4 only. Other ones could be added later. Problem reported and fixed tested by gilles@ on Acer Aspire X3200. ok dlg
2008-09-17ATI IXPx00 -> SBx00Brad Smith
2008-09-17Update for renamed ATI PCI ids.Brad Smith
2008-05-31if a dma mapping contains oddly addressed or odd length segments, then weDavid Gwynne
reject that mapping. this diff cleans up the mapping if it fails those diagnostics. found while looking into an issue for krw@
2008-04-19add a driver flag to force the negotiation of SATA 1 transfersDamien Miller
(1.5Gb/s). Useful where faster speeds are unstable; ok dlg@
2008-04-08pci_chipset_tag_t already_t is_t a_t pointer_tMark Kettenis
2008-04-08Make ahci detachable. Not tested as the ppb on my shitty nvidiaJonathan Gray
board doesn't seem to properly propagate expresscard interrupts. Incoporating suggestions from dlg and kettenis, ok dlg.
2007-11-28the ccb lists protect themselves, so we dont have to check if we're atDavid Gwynne
splbio when getting and putting ata xfers.
2007-11-28make ata controllers protect their own command lists so atascsi doesnt haveDavid Gwynne
to continually go to splbio to ensure its safe to work on them. shrinks code a little.
2007-11-26drive port probes from the scsi midlayer now that it will ask the adapterDavid Gwynne
if a device is there before doing any scsi commands. also implement a free path for when devices are detached. software hotplug has been tested on sili, and ahci is still working according to claudio@
2007-11-19When ignoring whether FR turns on or not, we should still set FRE,Christopher Pascoe
otherwise we risk leaving the port disabled after a stop/start during error recovery. ok dlg@
2007-11-05recognise (and use) ahci 1.2 controllers.David Gwynne
diff from Henrik Gustafsson
2007-11-04when the ati ahci stuff is in the ide compat mode, it can sometimes causeDavid Gwynne
a wdc(4) controller to appear. this code disables the compat mode using some magic niklas gleaned from the linux driver.
2007-10-27work around a chip bug on the ati ixp600 ahci controller. diff mostly fromDavid Gwynne
niklas@ and tested on hardware generously provided by paul de weird.
2007-10-01More easy bzero() -> M_ZERO. Use 'p = malloc(sizeof(*p) ...' whereKenneth R Westerback
obvious.
2007-07-03join ahci attach code back together into one function.David Gwynne
2007-07-03jmb pretends to be pci now, so i dont need to let it see ahci_softc so itDavid Gwynne
can provide its own attach glue to ahci.
2007-07-02kettenis suggested that i can use pci_intr_map twice on the same deviceDavid Gwynne
safely, so i tried it and it worked great. i can reuse the pci_attach_args to attach ahci and now pciide to jmb without really modifying either of them. lots of code shrinks. ok jsg@
2007-07-02dont attach on jmicron parts now that jmb(4) does that for us.David Gwynne
2007-07-02move ahci_softc and the prototype for ahci_attach into a header so otherDavid Gwynne
code will be able to see it.
2007-07-02pull ahci_attach apart slightly to accommodate attaching ahci(4) to thingsDavid Gwynne
other than pci(4).
2007-06-29when we attach to the jmicron controllers, whack their configuration aroundDavid Gwynne
a bit. this guarantees that the controller has its ahci stuff enabled for us to use (which was previously done with magic numbers). this also configs the controller to enable a second function for pciide to attach to.
2007-06-29demystify a little more of the jmicron pci control registersDavid Gwynne
2007-06-29define away some of the magic on jmicron controllersDavid Gwynne
2007-06-12Use SATA_SIGNATURE_ATAPI constant instead of a magic number.Alexander Yurchenko
ok dlg@
2007-05-30my (dlg says crappy) laptop requires some more delays in port_reset orTed Unangst
things go really crazy. ok/help toby tom. dlg unhappy but ok.
2007-05-10remove and hide code that isn't used.David Gwynne
found by deraadt@
2007-04-22mark the ccb used for error handling as complete when it completes. thisDavid Gwynne
prevents dmesg spam when we return this ccb to the free list.
2007-04-22unload the dmamap of the ccb used in ncq error handling once we've finishedDavid Gwynne
with it. prevents free panics on sparc64. found by deraadt on a v215.
2007-04-22prettier debug, if it is ever re-enabled, ok dlgTheo de Raadt
2007-04-21disable ahci debug output. ahci is working on the majority of chipsets,David Gwynne
and its not helping us on those that arent.
2007-04-08Whitespace/long line fixups. No code change.Christopher Pascoe
2007-04-08Add compile-time support for coalescing command interrupts to reduce theChristopher Pascoe
overall interrupt rate. #define AHCI_COALESCE to enable.
2007-04-06Wait until we have idled the port before obtaining the error CCB, so asChristopher Pascoe
to avoid tripping a KASSERT in the case when there is more than one outstanding command. ok dlg@
2007-04-02Read log page 10h to determine the NCQ error, instead of aborting allChristopher Pascoe
active commands when an error is encountered. ok dlg@
2007-03-31re-blacklist the via vt8251, there's still something fishy..Jasper Lievisse Adriaanse
ok dlg@
2007-03-31reenable the via 8251 sata chipset. jasper proved it can work if we dontDavid Gwynne
do ncq, so this diff quirks it. tested by jasper@
2007-03-30the VT8251 SATA says it is ahci, but we aren't ready for it. we need toDavid Gwynne
quirk a few things before it will work. this blacklists that controller in ahci so pciide will be able to match it instead. found by jasper@
2007-03-29Avoid leaking a ccb in error paths.Christopher Pascoe
2007-03-29Correct some minor whitespace issues.Christopher Pascoe