summaryrefslogtreecommitdiff
path: root/sys/dev/ic/mfi.c
AgeCommit message (Collapse)Author
2009-04-30Add READ(16) & WRITE(16) commands.Marco Peereboom
ok krw
2009-04-29MFI_D_IOCTL should be commented out. No binary change.Marco Peereboom
2009-04-04scrub more fields in the ccb when returning them to the free list afterDavid Gwynne
theyve been used, in particular the mfi header flags which has a bit that specifies if a command should be completed via the interrupt path. if we use a ccb during boot we set that bit, but it isnt necessarily cleared by things that use it later on. this means a ccb we expected to complete via an interrupt never actually generates an interrupt or appears in the reply queue. this obviously stalls the io.
2009-03-29spelloMarco Peereboom
2009-03-29when we steal the SYNC CACHE command in mfi_scsi_cmd we still have toDavid Gwynne
mark the xs as done and call scsi_done for it rather than just returning COMPLETE.
2009-03-29fix a small race in mfi_mgmt between the checking of a ccbs completion andDavid Gwynne
the sleep waiting for the completion. it is possible to get the interrupt completing the command just before the tsleep, which will never get a wakeup because the interrupt with the wakeup has already happened.
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-28Add support for next generation megaraid sas raid controllers.Marco Peereboom
From Jim Giannoules <gortag@gmail.com>
2008-10-31Generalize function to obtain all details to do bio stuff. This is inMarco Peereboom
preparation to start showing unsused disks which will require all this information to do the math. While at it fix a size of hotspare volume bug.
2008-10-30Fix bug that when there are no volumes but there are hot spares it wouldMarco Peereboom
no show the hotspares.
2008-10-28Fix output when reporting on multivolume disk groups.Marco Peereboom
Reported by mitja@muzenic.net
2008-10-27Move some include stuff aroundMarco Peereboom
2008-10-26SpaceMarco Peereboom
2008-10-23Fix PR5645Marco Peereboom
ok dlg tested beck and others
2008-09-25Initialize 'ssc' to NULL since we test it later. Shouldn't ever beKenneth R Westerback
NULL at the point of test unless the device list is confused, but be consistantly paranoid if we're going to be paranoid.
2008-02-16Return NO_CCB and not TRY_AGAIN_LATER when running out of ccb's.Kenneth R Westerback
Eliminates 'not queued' errors reported on the mailing lists. Tested by Michael (belenus at bsdmail dot de). ok marco@
2008-02-11add support for the mfi controllers with the ppc iops, aka, LSI SAS1078 orDavid Gwynne
Dell PERC6. committed off a machine booting and rooting off a perc6. tested on a perc5 by marco@ ok marco@
2008-01-26Set the return value instead of returning right away so that the DMABrad Smith
memory is actually synched. ok dlg@
2008-01-26sync dma mem back to the cpu on poll failure.David Gwynne
from mickey via pr5714
2008-01-26despatch -> dispatchDavid Gwynne
disparate spellink fix from mickey
2007-11-05More scsi_done() at SPLBIO.Kenneth R Westerback
2007-09-27M_ZERO changesCharles Longeau
ok dlg@
2007-06-24rework sensor tasks to use the kernels generic workq rather than a specialDavid Gwynne
kernel thread of its own. the api has changed (which will be fixed in the manpage shortly) so all the users of sensor tasks that i can find have been fixed too. noone tested, so its going in to force people to run with it. "put it in" deraadt@
2007-05-29sprinkle some SMALL_KERNEL to permit bio/softraid to run on boot mediaTodd T. Fries
ok marco@ then suggested deraadt@
2007-03-22split userland & kernel struct sensor/sensordev so that the additionTheo de Raadt
of new fields in the future is less disruptive. This is done similar to how struct proc is handled for ps(1). ok jmc (man page changes) tested fkr simon, and more suggestions from millert
2007-02-14bus_space does byte swapping to cope with host endianness for us, so removeDavid Gwynne
an unnecessary htole32().
2007-02-13Fix subtle x ? y : z bug when calling mfi_create_sgl. This worked becauseMarco Peereboom
during runtime the bug condition does not happen. ok krw joris
2007-02-08Remove double semicolons.Ray Lai
From Pierre Riteau <pierre dot riteau at free dot fr>. OK marco@.
2006-12-23adapt to new two-level sensor api; Constantine A. MureninTheo de Raadt
2006-11-28give scsi controllers a real attach args to fill in when attaching scsibus.David Gwynne
ok miod@ marco@ deraadt@
2006-08-31Add sensor thread for individual sd devices.Marco Peereboom
tested dlg ok dlg deraadt
2006-08-30when determining the size of the volumes and disks we want how manyDavid Gwynne
bytes each of them has, not the number of kilobytes. this solves the "why am i dividing by 2" question. the answer is "you dont, you multiply by 512".
2006-07-28make dmesg printing look a little bit nicer.Brad Smith
2006-06-19Factor for disk size is /2. Odd but tested on all mfis I have.Marco Peereboom
2006-06-19Everytime one forgets an argument in a printf-like function call, God killsMiod Vallat
a kitten. Commiters, please think of the kittens when working on code.
2006-06-19Make a BGI (Back Ground Init) a scrub instead of rebuild.Marco Peereboom
2006-06-19Add hot spare support.Marco Peereboom
2006-05-26Add blinking for disks.Marco Peereboom
2006-05-25Move a int i; to top of function so that it compiles on non c99 compilers.Marco Peereboom
Pointed out by miod@ The enclosure id modifier didn't reflect reality so move it back to whatever the raid card uses.
2006-05-25And add time and percentage to builds and check consistencies.Marco Peereboom
2006-05-25Add last bit of physcal disk stuff.Marco Peereboom
Remove bogus memset. Hotspares still don't work.
2006-05-25Add physical device and read config structures.Marco Peereboom
Add initial part of BIOCDISK
2006-05-23commited with unused variableTheo de Raadt
2006-05-23Remove some debug cruft.Marco Peereboom
2006-05-23Add first half of physical disk data for bio.Marco Peereboom
2006-05-22Add support for raid 50 and 10 in bio.Marco Peereboom
2006-05-22Add mail box to mfi_mgmt to handle sub commands more gracefully.Marco Peereboom
Remove some debug crud that snuck in the TEST_UNIT_READY case. Finish other half of BIOCVOL primitive. Add several structures to fill out the BIOCVOL primitive.
2006-05-22Add first half of BIOCVOL primitive.Marco Peereboom
2006-05-21Do a giant flush of disk and raid-card memory when SYNCHONIZE_CACHE is called.Marco Peereboom
2006-05-21pretty up some debug statements.Marco Peereboom