summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/mpi.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* sizeofa is now nitems in param.h, so dont declare my own in mpi.c it wasdlg2008-11-231-2/+1
| | | | unused there anyway. use nitems in mpi_pci_match.
* Remove dup proto from <alexey.suslikov@gmail.com>marco2008-11-181-2/+1
|
* Don't attach bio unless we do RAID.marco2008-11-031-24/+28
|
* Add sensorsmarco2008-11-011-1/+109
|
* Fix bogus shift.marco2008-11-011-2/+2
|
* Add disk. This makes bio mostly done however to make it pretty we needmarco2008-11-011-34/+130
| | | | to implement RAID_ACTION. Remains disabled for now.
* Pointer sizeof oopsmarco2008-10-281-2/+2
|
* Add beginings of bio. Disabled for now.marco2008-10-281-15/+290
| | | | dlg "go go go"
* if fetching a config page for a sas target doesnt work then let the scsidlg2008-10-071-5/+3
| | | | | | | midlayer try to probe it anyway. this lets raid devices configured on an mpi to work again. reported by djm@
* check all luns on sas boards to see if the device is atapi instead of justdlg2008-09-301-2/+2
| | | | the first one.
* provide a scsi probe hook that checks if an atapi device is plugged intodlg2008-09-301-2/+53
| | | | | | | | | | 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.
* add support for handling extended configuration page requests. the sasdlg2008-09-301-15/+55
| | | | pages are all extended, which is annoying.
* straighten the deck chairs slightlydlg2008-09-301-4/+13
|
* tweak the SPI port configuration if we figure out that it is not quitedlg2008-05-251-3/+48
| | | | | | | 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.
* 1.90 again. use the right flags when creating a dmamap for use duringdlg2007-12-271-2/+3
| | | | interrupts.
* oops, there was other code in the previous commit that shouldnt have gonedlg2007-12-271-51/+3
| | | | in. this reverts 1.90.
* use the right flags when creating dmamaps for use in interrupt handlers.dlg2007-12-271-3/+51
|
* always tag fibre channel commands.dlg2007-09-121-2/+3
| | | | ok marco@
* KNFgilles2007-09-111-3/+3
| | | | prompted and "much better" by marco@, ok pyr@
* take advantage of the new M_ZERO malloc flag.dlg2007-09-071-5/+3
|
* add M_CANFAIL to malloc() flags, requested bythib2007-06-121-5/+5
| | | | | | | | marco after I showed him a diff to remove the malloc retun values since they are all called with M_WAITOK. ok marco@
* remove the scsi task thread, and replace it with the system workq.dlg2007-05-311-2/+2
| | | | "just :wq and do it" tedu@
* modernise scsi_inquiry. the length field has grown and now theres pages todlg2007-04-031-1/+2
| | | | | | query. ok krw@
* replace the VMWARE quirk that restricts the bus width to 16 targets withdlg2007-03-171-2/+2
| | | | | | 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.
* give scsi controllers a real attach args to fill in when attaching scsibus.dlg2006-11-281-3/+6
| | | | ok miod@ marco@ deraadt@
* unhandled ioctls return ENOTTY, not 0dlg2006-11-281-2/+2
|
* remove dead codedlg2006-11-281-75/+2
|
* use scsi_detach_target when a device dissapears, rather than usingdlg2006-11-261-12/+2
| | | | config_detach and cleaning the midlayer up ourselves.
* remove a comment which is now untrue after i fixed itdlg2006-11-251-2/+1
|
* oops, the eventnotify stuff was accidentally enabled with the scsiconfdlg2006-10-221-1/+3
| | | | changes. its not ready yet, so disable it again.
* rework the bus scanning code by splitting it out into separate functionsdlg2006-10-211-5/+2
| | | | | | | | | | | 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@
* add support for hotplugging devices on sas controllers. this is disableddlg2006-09-221-5/+89
| | | | | for now until we deal more appropriately with events generated by other variants of mpi controllers.
* code for acking event notifications that require acks.dlg2006-09-211-5/+46
|
* deref the right rcb by using i as the index, not 1 all the time.dlg2006-09-211-2/+2
|
* start cleaning up the completion path for event notifications.dlg2006-09-211-19/+19
|
* add a debug flag type thing for event handlingdlg2006-09-211-1/+2
|
* wrap the hardware replies up in a structure called mpi_rcb which isdlg2006-09-211-37/+48
| | | | | | | | 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.
* factor the common code out of mpi_intr and mpi_complete. they weredlg2006-09-211-98/+56
| | | | basically identical apart from the conditions they looped on.
* macros and types for event notifications from the hardware.dlg2006-09-181-2/+2
|
* There's no need to walk the list of devices to find the SCSI bus wepedro2006-09-181-10/+4
| | | | | should attach to, since config_found() already returns a pointer to it. Pointed out by Quentin Garnier, okay dlg@.
* rework the handling of the errors coming off the hardware at the bottom ofdlg2006-09-161-47/+2
| | | | | | mpi_scsi_cmd_done. this makes it more appropriate for our midlayer. ok beck@ deraadt@
* dont print debug output when the scsi completion path returns withdlg2006-08-241-29/+28
| | | | | | | 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...
* always call scsi_done at splbio. issue found by pedro@dlg2006-08-031-4/+9
| | | | while here protect submission of the scsi command with splbio as well.
* set the tags on the scsi command according to what the midlayer says theydlg2006-07-151-1/+6
| | | | should be.
* have a go at configuring spi variants to only talk to the devices at thedlg2006-07-151-2/+40
| | | | | | 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.
* spacingdlg2006-07-091-40/+12
|
* enabling interrupts doesnt deserve an XXX. i think we want to do that.dlg2006-07-091-2/+2
|
* implement firmware upload. this frees up memory on some controllers so theydlg2006-07-091-1/+83
| | | | | | can do more io at a time. tested on the onboard controllers of a dell 2850 (which can do it) and a pci controller on my home box (which doesnt). this was the last feature mpt had that mpi was behind on.
* fix debugging stuffdlg2006-07-061-2/+2
|
* after walking the attached devices and running ppr against them, then fetchdlg2006-07-061-16/+77
| | | | | | | the ioc page 3 for a list of all the physical disks behind any configured volumes and run ppr against them too. raid volumes on scsi mpi is fast now.