summaryrefslogtreecommitdiffstats
path: root/sys/dev/twe
Commit message (Collapse)AuthorAgeFilesLines
...
* NO_GEOM cleanup:phk2003-02-211-1/+1
| | | | | | | | Change the argument to disk_destroy() to be the same struct disk * as disk_create() takes. This enables drivers to ignore the (now) bogus dev_t which disk_create() returns.
* Back out M_* changes, per decision of the TRB.imp2003-02-191-2/+2
| | | | Approved by: trb
* Update to new crashdump apips2003-02-071-39/+2
|
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-2/+2
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Fix instances of macros with improperly parenthasized arguments.alfred2002-11-091-4/+4
| | | | Verified by: md5
* Be consistent about functions being static.phk2002-10-161-1/+1
| | | | Spotted by: FlexeLint.
* use __packed.alfred2002-09-231-14/+14
|
* (This commit touches about 15 disk device drivers in a very consistentphk2002-09-201-12/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and predictable way, and I apologize if I have gotten it wrong anywhere, getting prior review on a patch like this is not feasible, considering the number of people involved and hardware availability etc.) If struct disklabel is the messenger: kill the messenger. Inside struct disk we had a struct disklabel which disk drivers used to communicate certain metrics to the disklayer above (GEOM or the disk mini-layer). This commit changes this communication to use four explicit fields instead. Amongst the benefits is that the fields do not get overwritten by wrong or bogus on-disk disklabels. Once that is clear, <sys/disk.h> which is included in the drivers no longer need to pull <sys/disklabel.h> and <sys/diskslice.h> in, the few places that needs them, have gotten explicit #includes for them. The disklabel inside struct disk is now only for internal use in the disk mini-layer, so instead of embedding it, we malloc it as we need it. This concludes (modulus any mistakes) the series of disklabel related commits. I belive it all amounts to a NOP for all the rest of you :-) Sponsored by: DARPA & NAI Labs.
* Replace (ab)uses of "NULL" where "0" is really meant.archie2002-08-221-1/+1
|
* Fix new gcc-3.1 warnings. I think this gets GENERIC compiling cleanlypeter2002-05-241-0/+1
| | | | again.
* Here follows the new kernel dumping infrastructure.phk2002-03-311-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Caveats: The new savecore program is not complete in the sense that it emulates enough of the old savecores features to do the job, but implements none of the options yet. I would appreciate if a userland hacker could help me out getting savecore to do what we want it to do from a users point of view, compression, email-notification, space reservation etc etc. (send me email if you are interested). Currently, savecore will scan all devices marked as "swap" or "dump" in /etc/fstab _or_ any devices specified on the command-line. All architectures but i386 lack an implementation of dumpsys(), but looking at the i386 version it should be trivial for anybody familiar with the platform(s) to provide this function. Documentation is quite sparse at this time, more to come. Details: ATA and SCSI drivers should work as the dump formatting code has been removed. The IDA, TWE and AAC have not yet been converted. Dumpon now opens the device and uses ioctl(DIOCGKERNELDUMP) to set the device as dumpdev. To implement the "off" argument, /dev/null is used as the device. Savecore will fail if handed any options since they are not (yet) implemented. All devices marked "dump" or "swap" in /etc/fstab will be scanned and dumps found will be saved to diskfiles named from the MD5 hash of the header record. The header record is dumped in readable format in the .info file. The kernel is not saved. Only complete dumps will be saved. All maintainer rights for this code are disclaimed: feel free to improve and extend. Sponsored by: DARPA, NAI Labs
* Update for the 6.9 firmware family (6xxx controllers), as well as formsmith2002-03-075-20/+132
| | | | | | | | | the upcoming 7.4 family (7xxx controllers). - improved error reporting and handling - more diagnostic output - add extra command packet definitions - merge sources again with -stable
* Fix some unused warnings. One function is only used ifpeter2002-02-271-0/+8
| | | | TWE_SHUTDOWN_NOTIFICATION is defined, the other two are never used.
* Update to C99, s/__FUNCTION__/__func__/,obrien2001-12-101-2/+2
| | | | also don't use ANSI string concatenation.
* Fix a signed bug in the crashdump code for systems with > 2GB of ram.ps2001-11-131-1/+1
| | | | Reviewed by: peter
* KSE Milestone 2julian2001-09-121-5/+5
| | | | | | | | | | | | | | 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
* Typo fix: fasion -> fashionkris2001-07-231-1/+1
| | | | | Inspired by: OpenBSD MFC After: 1 week
* Minor updates:msmith2001-05-075-30/+47
| | | | | | | | - Rework of twe_report_request to use the command status value rather than the flags register. (Joel Jacobson @ 3ware) - Update to match some changes in -current vs. stable. MFC in: 1 week
* Make the disk mini-layer check for and handle zero-length transfersphk2001-05-061-8/+0
| | | | instead of the underlying drivers.
* Last commit was broken.. It always prints '[CTRL-C to abort]'.ps2001-03-281-12/+2
| | | | | | | Move duplicate code for printing the status of the dump and checking for abort into a separate function. Pointy hat to: me
* Change the dump routines to only abort if control-c is pressed.ps2001-03-271-1/+3
| | | | | | | If any other key is pressed, print a message stating that control-c is how to abort. Reviewed by: peter
* 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.
* Typo fix; use & to test for bits set in the status register.msmith2001-02-261-1/+1
| | | | Submitted by: Joel Jacobson <jake@3ware.com>
* Remove a prototype for an unused and undefined debugging function.jhb2001-01-231-1/+0
|
* - add support for crashdumps (courtesy of ps and Y!)msmith2000-12-033-185/+273
| | | | | | | - standardise error reporting for commands - simplify the driver-to-controller bio transfer - add bio in/out accounting - correctly preserve the command ID in twe_ioctl (thanks to joel@3ware)
* If we can't get a command to back the bio we just took off the queue,msmith2000-11-031-1/+3
| | | | | put the bio back, otherwise we'll drop it when we bail. This was causing bio lossage under load, leading to eventual system lockup.
* Add PCI device ID for an upcoming revision of the product.msmith2000-10-272-1/+3
|
* Add a missing newline to a diagnostic.msmith2000-10-271-1/+1
|
* Major update to the 'twe' driver.msmith2000-10-258-1413/+2708
| | | | | | | | | | | | | | | | | | | | | | | | | - Layout reorganisation to enhance portability. The driver now has a relatively MI 'core' and a FreeBSD-specific layer over the top. Since the NetBSD people have already done their own port, this is largely just to help me with the BSD/OS port. - Request ID allocation changed to improve performance (I'd been considering switching to this approach after having failed to come up with a better way to dynamically allocate request IDs, and seeing Andy Doran use it in the NetBSD port of the driver convinced me that I was wasting my time doing it any other way). Now we just allocate all the requests up front. - Maximum request count bumped back to 255 after characterisation of a firmware issue (off-by-one causing it to crash with 256 outstanding commands). - Control interface implemented. This allows 3ware's '3dm' utility to talk to the controller. 3dm will be available from 3ware shortly. - Controller soft-reset feature added; if the controller signals a firmware or protocol error, the controller will be reset and all outstanding commands will be retried.
* Remove unneeded #include <machine/clock.h>phk2000-10-152-2/+0
|
* Reduce the number of outstanding commands we will send to the controllermsmith2000-10-121-1/+1
| | | | | to 50. This has been reported to avoid the problems that many users have been experiencing with crashing the card firmware during rebuilds.
* Remove some confusing verbosity - we have no idea what RAID level themsmith2000-07-201-18/+3
| | | | drive is at, so don't print the 'unknown' value, just say nothing.
* Initial import of a driver for the 3ware Escalade family of ATA RAIDmsmith2000-05-244-0/+2592
controllers.
OpenPOWER on IntegriCloud