summaryrefslogtreecommitdiffstats
path: root/sys/dev/aac
Commit message (Collapse)AuthorAgeFilesLines
* I missed a string concatenation.obrien2001-12-101-1/+1
|
* Update to C99, s/__FUNCTION__/__func__/,obrien2001-12-101-3/+3
| | | | also don't use ANSI string concatenation.
* MFS: Use correct terminology for RAID 0/1 and 0/5.scottl2001-12-041-3/+3
|
* BAH! Missed another change to this file.scottl2001-12-041-0/+4
|
* Bah, I missed this file on the last commitscottl2001-12-041-2/+2
|
* Use d_thread_t to reduce diffs between current and stable.scottl2001-12-032-13/+17
| | | | Spell ACQUIRE correctly.
* Add functionality and fix bugs so the driver will work with soon-to-bescottl2001-12-027-41/+217
| | | | | | | | | | | | | released management apps. 1. Implement poll(). This will check for queued aif's so that a subsequent ioctl call to retrieve the next aif will not block. 2. Don't catch signals when sleeping on a fib sent from userland. This causes a race and panic due to the pthread context switcher waking up the tsleep at inopportune times. 3. Fix some whitespace nits. MFC after: 3 days
* Fix a signed bug in the crashdump code for systems with > 2GB of ram.ps2001-11-131-1/+1
| | | | Reviewed by: peter
* - Change the taskqueue locking to protect the necessary parts of a taskjhb2001-10-261-3/+0
| | | | | | | | while it is on a queue with the queue lock and remove the per-task locks. - Remove TASK_DESTROY now that it is no longer needed. - Go back to inlining TASK_INIT now that it is short again. Inspired by: dfr
* Add locking to taskqueues. There is one mutex per task, one mutex perjhb2001-10-261-0/+3
| | | | | | | | queue, and a mutex to protect the global list of taskqueues. The only visible change is that a TASK_DESTROY() macro has been added to mirror the TASK_INIT() macro to destroy a task before it is free'd. Submitted by: Andrew Reiter <awr@watson.org>
* KSE Milestone 2julian2001-09-122-8/+8
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Don't use a silly test to define INTR_ENTROPY.scottl2001-09-061-1/+1
| | | | Submitted by: peter
* Bring the aac driver *much* closer to style(9).scottl2001-09-059-3225/+3407
| | | | Reviewed by: ken
* Sigh. There are actually two ioctls ranges that need to be watched on thescottl2001-09-031-1/+1
| | | | linux side. This will all be over soon...
* Work around a bug where the driver's copy of the disklabel gets corruptedscottl2001-09-021-2/+7
| | | | and causes diskerr() to panic.
* Restrict the range of linux ioctls we will accept.scottl2001-09-021-2/+2
|
* Doh! Fix a comma that disappeared along the way.scottl2001-08-301-1/+1
| | | | Pointy-hat by: peter
* Mega update to the aac driver.scottl2001-08-297-106/+696
| | | | | | | | | | | | | | 1. Correctly handle commands initiated by the adapter. These commands are defered to a kthread responsible for their processing, then are properly returned to the controller. 2. Add/remove disk devices when notified by the card that a container was created/deleted/offline. 3. Implement crashdump functionality. 4. Support all ioctls needed for the management CLI to work. The linux version of this app can be found at the Dell or HP website. A native version will be forthcoming. MFC-after: 4.4-RELEASE
* Clarify the description string for one of the StrongARM based cards.scottl2001-08-171-1/+2
|
* Adding missing () in a KASSERT format string.scottl2001-08-071-1/+1
| | | | Submitted by: brandt@fokus.gmd.de
* Make AAC_COMPAT_LINUX optional once again.scottl2001-08-061-4/+0
| | | | Submitted by: julian
* Put the linux compat ioctl interface on death row. Add FreeBSDscottl2001-08-062-29/+91
| | | | | | | definitions of all of the ioctls, plus round out all ioctl definitions to match what exists for linux. Allow ioctls to be called through either the native or linux interface, though no apps exist (yet) that can take advantage of native calling.
* Missed this one in my 80-column sweep.scottl2001-08-061-8/+16
|
* Once again throw out the calculation of si_iosize_max and set it to 64K.scottl2001-08-052-17/+14
| | | | | | | | Although it can go higher, it is not safe to so do on arrays with many members. Compromise by adding a tunable, "hw.aac.iosize_max" that can be set at boottime. Also document in the aac(4) manpage. MFC after: 4 weeks
* Bugfixes. Close a race and logic bug in the timeout handling, don't call thescottl2001-08-055-18/+87
| | | | | | | | | interrupt handler from the upper half, etc. This fixes some serious stability problems that we were seeing on our production server. These patches have been tested for almost 6 months and are a highly recommended MFC candidate. Reviewed by: gibbs, merry, msmith MFC after: 4 days
* Fix a couple of copyright issues and an 80 column nit that I missed beforescottl2001-08-053-3/+4
|
* Reformat for 80 columns. Sorry, but I had to do it.scottl2001-08-036-481/+696
|
* Add /dev/hpn? as an alias to /dev/aac? so that the HP version of the CLIscottl2001-07-251-0/+1
| | | | | | utility will work, and document it in the manpage. MFC after: 3 days
* Add another Dell 3/Di PCI ID. You'd think they had enough of thesemsmith2001-07-221-0/+1
| | | | already...
* Make the disk mini-layer check for and handle zero-length transfersphk2001-05-061-7/+0
| | | | instead of the underlying drivers.
* More new Dell PCI IDs.msmith2001-04-261-1/+4
| | | | Submitted by: "Marty Moll" <martym@arbor.edu>
* The PERC 3/Di in the Dell PowerEdge 2250 has a new subdevice ID.msmith2001-04-261-0/+1
| | | | Submitted by: Chris Csanady <cc@ameslab.gov>
* Send the remains (such as I have located) of "block major numbers" tophk2001-03-262-2/+0
| | | | the bit-bucket.
* Create /dev/afaN as a symlink to /dev/aacN. This allows the CLI tools fromscottl2001-03-221-0/+2
| | | | | | Dell and HP to run. Reviewed by: msmith
* Back out rev 1.4. The advertised 64K limit on transfers only applies whenscottl2001-03-211-4/+11
| | | | | using 64bit S/G entries. With this reverted, we are seeing >92MB/sec reads and >42MB/sec writes on a RAID-5 container.
* This is an MFC candidate.gibbs2001-03-173-2/+6
| | | | | | | | | | | | Add the AAC_DEBUG option to enable debugging in the aac driver. Correct a race condition in the interrupt handler where the controller may queue a fib to a response queue after the driver has serviced the queue but before the interrupt is cleared. This could leave a completed fib stranded in the response queue unless another I/O completed and generated another interrupt. Reviewed by: msmith
* Fix a typo which would cause containers between 1GB and 2GB to have the wrongmsmith2001-03-161-1/+1
| | | | | | geometry reported. Submitted by: mark tinguely <tinguely@web.cs.ndsu.NoDak.edu>
* Set si_iosize_max to 64K, even though the adapter seems to be able to do more.scottl2001-03-071-11/+4
| | | | | | | This puts us safely in line with Adaptec documentation and shouldn't really affect anything. MFC candidate for 4.3
* Turn on interrupt-entropy harvesting for all/any mass storage devicesmarkm2001-03-011-1/+1
| | | | | | | I could find. I have no doubt missed a couple. Interrupt entropy harvesting is still conditional on the kern.random.sys.harvest_interrupt sysctl.
* Kill a warning by marking an unused function with __unused.jhb2001-01-231-1/+1
|
* Remove a mismatched splbio() in aac_start (the called functions each protectmsmith2001-01-101-2/+1
| | | | | | themselves correctly). Submitted by: ps
* Major bugfix and minor update. This should resolve the current issuesmsmith2000-12-278-338/+412
| | | | | | | | | | | | | | | | | | | | | | | | | with the driver locking up under load. - Restructure so that we use a static pool of commands/FIBs, rather than allocating them in clusters. The cluster allocation just made things more complicated, and allowed us to waste more memory in peak load situations. - Make queueing macros more like my other drivers. This adds queue stats for free. Add some debugging to take advantage of this. - Reimplement the periodic timeout scan. Kick the interrupt handler and the start routine every scan as well, just to be safe. Track busy commands properly. - Bring resource cleanup into line with resource allocation. We should now clean up correctly after a failed probe/unload/etc. - Try to start new commands when old ones are completed. We weren't doing this before, which could lead to deadlock when the controller was full. - Don't try to build a new command if we have found a deferred command. This could cause us to lose the deferred command. - Use diskerr() to report I/O errors. - Don't bail if the AdapterInfo structure is the wrong size. Some variation seems to be normal. We need to improve our handing of 2.x firmware sets. - Improve some comments in an attempt to try to make things clearer. - Restructure to avoid some warnings.
* Disable calling timeout() when doing bio. It was causing more prolems thanscottl2000-11-191-2/+8
| | | | solving. This will be fixed for real soon.
* Further use of M_ZERO.dwmalone2000-11-181-3/+2
| | | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net> Approved by: msmith
* Return -10 from the PCI probe to allow room for an updated driver tomsmith2000-10-281-1/+1
| | | | override one built into the kernel.
* Convert all users of fldoff() to offsetof(). fldoff() is badphk2000-10-272-11/+4
| | | | | | | | | | | | | | | | | | | | | | | because it only takes a struct tag which makes it impossible to use unions, typedefs etc. Define __offsetof() in <machine/ansi.h> Define offsetof() in terms of __offsetof() in <stddef.h> and <sys/types.h> Remove myriad of local offsetof() definitions. Remove includes of <stddef.h> in kernel code. NB: Kernelcode should *never* include from /usr/include ! Make <sys/queue.h> include <machine/ansi.h> to avoid polluting the API. Deprecate <struct.h> with a warning. The warning turns into an error on 01-12-2000 and the file gets removed entirely on 01-01-2001. Paritials reviews by: various. Significant brucifications by: bde
* First attempt at timeouts for bio commands sent to the controller. No retry isscottl2000-10-222-0/+34
| | | | | attempted right now; the failure is merely passed up. This may help with the mysterious lockups seen by some with Pablano controllers.
* Remove unneeded #include <machine/clock.h>phk2000-10-152-2/+0
|
* Fix up some more comments that were reversed.msmith2000-10-031-2/+2
| | | | Submitted by: Niklas Hallqvist <niklas@appli.se>
* Fix reversed comments re: OISR/OIMRmsmith2000-10-031-2/+2
| | | | Submitted by: Niklas Hallqvist <niklas@appli.se>
OpenPOWER on IntegriCloud