summaryrefslogtreecommitdiff
path: root/sys/dev/ic/mfi.c
AgeCommit message (Collapse)Author
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
2006-05-21Add bio alarm function.Marco Peereboom
Redo mfi_mgmt to deal with zero data commands.
2006-05-21Add generic management function.Marco Peereboom
Redo ccb_state flags so that we can actually sleep on it. Redo mfi_get_info to use new mgmt function. Add rw_locks for mgmt interface. Make BIOCINQ dynamic.
2006-05-21Oops, helps to use the right structure field.Marco Peereboom
Use actual nr of physical disks present.
2006-05-21Add first BIOCINQ primitive.Marco Peereboom
2006-05-18Remove some debug cruft and pretty up some debug messages.Marco Peereboom
2006-05-18Kill splbio/splx in the interrupt handler.Marco Peereboom
2006-05-18And we have lift off! Was able to create a filesystem and write to theMarco Peereboom
filesystem. Collapse both completion routines into one. Fixup scsi error reporting in the completion routine.
2006-05-17Add completion routines.Marco Peereboom
Fix some bugs inside the interrupt handler.
2006-05-17Add mfi_get_info to obtain all kinds of fun information from the fw.Marco Peereboom
Print out whole info structure when debug is enabled. Add a nice print with useful info during attach.
2006-05-17Refactor scsi path so that we can have a single sgl function for io and non-ioMarco Peereboom
traffic. Redo parameters on functions that were passing too many parameters around.
2006-05-16Nuke some { }Marco Peereboom
2006-05-16Move !xs->data case into mfi_start_xs.Marco Peereboom
Return proper sense data when a polling command fails.
2006-05-16Fix some more htole32 screw-ups.Marco Peereboom
Colapse all little SCSI functions into a single generic one. Fix a bug in the SGE calculation. This brings the driver up to post: mfi0 at pci12 dev 14 function 0 "Dell PERC SAS" rev 0x00: Dell PERC 5/e irq 5 scsibus3 at mfi0: 2 targets sd1 at scsibus3 targ 0 lun 0: <DELL, PERC 5/E Adapter, 1.00> SCSI5 0/direct fixed sd1: 237824MB, 237824 cyl, 64 head, 32 sec, 512 bytes/sec, 487063552 sec total sd2 at scsibus3 targ 1 lun 0: <DELL, PERC 5/E Adapter, 1.00> SCSI5 0/direct fixed sd2: 34176MB, 34176 cyl, 64 head, 32 sec, 512 bytes/sec, 69992448 sec total
2006-05-16Fix some htole32 I missed.Marco Peereboom
Sprinkle more debug.
2006-05-16Add READ CAPACITY.Marco Peereboom
2006-05-16Oops PREREAD not PREWRITE.Marco Peereboom
2006-05-16Add TUR and make it send it directly to firmware.Marco Peereboom
Sprinkle some extra debug.
2006-05-15Clear all relevant ccb fields when mfi_put_ccb frees a ccb.Marco Peereboom
2006-05-15Oops don't send command twice to firmware when polling.Marco Peereboom
2006-05-15Add INQUIRY command.Marco Peereboom
Add sgl magic.
2006-05-10Add some airplane code.Marco Peereboom
add bio hooks. add scsi entry point for io.
2006-04-26Fix some debug prints.Marco Peereboom