summaryrefslogtreecommitdiff
path: root/sys/dev/ic/mpi.c
AgeCommit message (Collapse)Author
2009-08-08if the port is fc, populate the adapters scsi_link structure with the wwpnDavid Gwynne
and wwnn so scsibus can use it. requested by and ok deraadt@
2009-03-06Bring NO_CCB to mpi.Kenneth R Westerback
ok marco@
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-02-13missing braces; ok marcoStuart Henderson
2008-11-23enable bioMarco Peereboom
ok dlg
2008-11-23sizeofa is now nitems in param.h, so dont declare my own in mpi.c it wasDavid Gwynne
unused there anyway. use nitems in mpi_pci_match.
2008-11-18Remove dup proto from <alexey.suslikov@gmail.com>Marco Peereboom
2008-11-03Don't attach bio unless we do RAID.Marco Peereboom
2008-11-01Add sensorsMarco Peereboom
2008-11-01Fix bogus shift.Marco Peereboom
2008-11-01Add disk. This makes bio mostly done however to make it pretty we needMarco Peereboom
to implement RAID_ACTION. Remains disabled for now.
2008-10-28Pointer sizeof oopsMarco Peereboom
2008-10-28Add beginings of bio. Disabled for now.Marco Peereboom
dlg "go go go"
2008-10-07if fetching a config page for a sas target doesnt work then let the scsiDavid Gwynne
midlayer try to probe it anyway. this lets raid devices configured on an mpi to work again. reported by djm@
2008-09-30check all luns on sas boards to see if the device is atapi instead of justDavid Gwynne
the first one.
2008-09-30provide a scsi probe hook that checks if an atapi device is plugged intoDavid Gwynne
sas mpi variants. this lets the midlayer know it should send the right sized commands to the device. this will make the cd drive work on the sun enterprise m4000 and related machines. reported by James Hsieh at sun.
2008-09-30add support for handling extended configuration page requests. the sasDavid Gwynne
pages are all extended, which is annoying.
2008-09-30straighten the deck chairs slightlyDavid Gwynne
2008-05-25tweak the SPI port configuration if we figure out that it is not quiteDavid Gwynne
right, in particular the adapters scsi id on the bus. requested by kettenis@ who is having trouble with the scsi controller on the primepower 250.
2007-12-271.90 again. use the right flags when creating a dmamap for use duringDavid Gwynne
interrupts.
2007-12-27oops, there was other code in the previous commit that shouldnt have goneDavid Gwynne
in. this reverts 1.90.
2007-12-27use the right flags when creating dmamaps for use in interrupt handlers.David Gwynne
2007-09-12always tag fibre channel commands.David Gwynne
ok marco@
2007-09-11KNFGilles Chehade
prompted and "much better" by marco@, ok pyr@
2007-09-07take advantage of the new M_ZERO malloc flag.David Gwynne
2007-06-12add M_CANFAIL to malloc() flags, requested byThordur I. Bjornsson
marco after I showed him a diff to remove the malloc retun values since they are all called with M_WAITOK. ok marco@
2007-05-31remove the scsi task thread, and replace it with the system workq.David Gwynne
"just :wq and do it" tedu@
2007-04-03modernise scsi_inquiry. the length field has grown and now theres pages toDavid Gwynne
query. ok krw@
2007-03-17replace the VMWARE quirk that restricts the bus width to 16 targets withDavid Gwynne
one for all SPI controllers. krw has a sun machine with a 1030 that gets the bus width wrong too, so since vmware emulates that type of hardware too, we can just limit the lot of them and forget about it.
2006-11-28give scsi controllers a real attach args to fill in when attaching scsibus.David Gwynne
ok miod@ marco@ deraadt@
2006-11-28unhandled ioctls return ENOTTY, not 0David Gwynne
2006-11-28remove dead codeDavid Gwynne
2006-11-26use scsi_detach_target when a device dissapears, rather than usingDavid Gwynne
config_detach and cleaning the midlayer up ourselves.
2006-11-25remove a comment which is now untrue after i fixed itDavid Gwynne
2006-10-22oops, the eventnotify stuff was accidentally enabled with the scsiconfDavid Gwynne
changes. its not ready yet, so disable it again.
2006-10-21rework the bus scanning code by splitting it out into separate functionsDavid Gwynne
for walking the bus and targets, and probing the luns. this removes the need to use magic numbers to wildcard each of these, which in turn makes the code a lot easier to read. as a bonus we get some more space to work in (80 chars isnt that much somtimes). note that this code wont probe high luns if lun 0 doesnt exist. ok krw@
2006-09-22add support for hotplugging devices on sas controllers. this is disabledDavid Gwynne
for now until we deal more appropriately with events generated by other variants of mpi controllers.
2006-09-21code for acking event notifications that require acks.David Gwynne
2006-09-21deref the right rcb by using i as the index, not 1 all the time.David Gwynne
2006-09-21start cleaning up the completion path for event notifications.David Gwynne
2006-09-21add a debug flag type thing for event handlingDavid Gwynne
2006-09-21wrap the hardware replies up in a structure called mpi_rcb which isDavid Gwynne
similair to the one used for requests. take the reply bits out of the ccb, but point it at the rcb instead. this lets us defer processing of the reply some time after we reuse or free the ccb.
2006-09-21factor the common code out of mpi_intr and mpi_complete. they wereDavid Gwynne
basically identical apart from the conditions they looped on.
2006-09-18macros and types for event notifications from the hardware.David Gwynne
2006-09-18There's no need to walk the list of devices to find the SCSI bus wePedro Martelletto
should attach to, since config_found() already returns a pointer to it. Pointed out by Quentin Garnier, okay dlg@.
2006-09-16rework the handling of the errors coming off the hardware at the bottom ofDavid Gwynne
mpi_scsi_cmd_done. this makes it more appropriate for our midlayer. ok beck@ deraadt@
2006-08-24dont print debug output when the scsi completion path returns withDavid Gwynne
something other than SCSI_OK. for example, SCSI_SENSE is returned when the device has sense data. this code was left in to help debug problems in the field, but noones had any problems with mpi apart from it being too chatty when a device returns sense data...
2006-08-03always call scsi_done at splbio. issue found by pedro@David Gwynne
while here protect submission of the scsi command with splbio as well.
2006-07-15set the tags on the scsi command according to what the midlayer says theyDavid Gwynne
should be.
2006-07-15have a go at configuring spi variants to only talk to the devices at theDavid Gwynne
lowest possible speeds during inquiry and attach. some devices, like tapes and enclosures, dont like being probed at high speeds and can attach as weird things. this seems to help those devices.