Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | sizes for free(); ok sthen | 2015-09-10 | 1 | -4/+5 | |
| | |||||
* | Remove some includes include-what-you-use claims don't | 2015-03-14 | 1 | -2/+1 | |
| | | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@ | ||||
* | Some reallocarray() use; review Jean-Philippe Ouellet, patrick keshishian | 2014-07-13 | 1 | -3/+3 | |
| | | | | ok tedu | ||||
* | add a size argument to free. will be used soon, but for now default to 0. | 2014-07-12 | 1 | -4/+4 | |
| | | | | after discussions with beck deraadt kettenis. | ||||
* | Backout a bunch of my SCSI commits from c2k11. At least one of these | 2011-07-17 | 1 | -3/+3 | |
| | | | | | | is causing problems when trying to boot sparc64 from an isp(4). Verified to fix the sparc64/isp(4) regression by krw@; ok deraadt@ | ||||
* | First batch of converting SCSI HBAs from setting saa_targets and | 2011-07-08 | 1 | -2/+2 | |
| | | | | | | saa_luns instead of adapter_buswidth and luns in the prototype link. ok dlg@, miod@ | ||||
* | Call bzero(&saa, sizeof(saa)) each time we use saa to attach | 2011-07-05 | 1 | -2/+2 | |
| | | | | | | | | something. Doesn't matter right now because scsibus_attach_args only has one field and it's mandatory, but I'm planning to move some more fields from scsi_link to scsibus_attach_args+scsibus_softc. ok dlg@ | ||||
* | move ips to iopools. its the usual drill, io between volumes is now | 2011-04-06 | 1 | -85/+33 | |
| | | | | | | scheduled better, ioctl paths are more reliable, and it removes NO_CCB. ok krw@ | ||||
* | Force openings to 1 for devices that can't do tagged i/o, i.e. more | 2010-10-12 | 1 | -1/+2 | |
| | | | | | | | | | | | | | | than 1 i/o active at once. This reduces the chances that concurrent i/o's for such devices will confuse the device or the adapter code. It also eliminates a reason for adapter code to maintain its own queues. Tweak all drivers that fake INQUIRY results to set the SID_CmdQue flag, thus continuing to claim to be able to do tagged i/o. Positive feedback from matthew@ and marco@ for an earlier version. ok dlg@ | ||||
* | Use SSD_ERRCODE_CURRENT instead of magic 0x70. | 2010-09-20 | 1 | -2/+2 | |
| | | | | ok dlg@ matthew@ | ||||
* | make this compile with SMALL_KERNEL | 2010-07-01 | 1 | -6/+7 | |
| | |||||
* | Change scsibus(4)'s scsi_link array to an SLIST to save memory on | 2010-07-01 | 1 | -4/+5 | |
| | | | | | | sparsely populated buses. ok dlg@, krw@ | ||||
* | Use a SLIST for the ccb free list. | 2010-06-30 | 1 | -10/+10 | |
| | | | | ok krw | ||||
* | Remove all adapter-specific 'struct scsi_device's. They are never used. First | 2010-06-28 | 1 | -17/+1 | |
| | | | | | | | | step in elminating 'struct scsi_device' entirely. Spotted and initial diff from matthew@. ok matthew@ dlg@ deraadt@ marco@ miod@ | ||||
* | dont pass the dev_t from the scsi device drivers into the midlayer for | 2010-06-15 | 1 | -5/+3 | |
| | | | | | | | ioctl requests, and dont pass the proc pointers around for any ioctl requests in scsi land at all. neither were used, so trim the fat. ok krw@ marco@ | ||||
* | New scsi code seems to be stable. Pluck previously identified | 2010-05-20 | 1 | -15/+1 | |
| | | | | | | | low-hanging splbio/splx pairs that are no longer needed and see if this reveals any hidden scsi flaws. ok dlg@ | ||||
* | update a random sampling of drivers after the proc.h -> systm.h move | 2010-04-06 | 1 | -2/+1 | |
| | |||||
* | Change the scsi_cmd function member of scsi_adapter from int to | 2010-03-23 | 1 | -24/+31 | |
| | | | | | | | | | | | | | void. Use XS_NO_CCB error in the scsi command (xs) to report the NO_CCB condition. Eliminates all SUCCESSFULLY_QUEUED and COMPLETE confusion and untangles the midlayer from the adapter a bit more. Eyes and some fixes by miod@ There may be some compile issues on little used (i.e. I don't have any) drivers but the change is mechanical and thus easy to remedy. ok dlg@ | ||||
* | Zap all setting of ITSDONE in drivers that don't look at it. Nobody | 2010-01-09 | 1 | -3/+1 | |
| | | | | | | | else cares so it's just noise. Drivers that actually look at ITSDONE are unchanged. ok marco@ (for his files) dlg@ beck@ | ||||
* | Reorganize NBIO and SMALL_KERNEL handling again but this time without | 2009-03-23 | 1 | -15/+18 | |
| | | | | ramdisk breakage. | ||||
* | unbreak ramdisk builds in a way i guess might work | 2009-03-22 | 1 | -3/+1 | |
| | |||||
* | Update volume info on every bio call instead of waiting for the | 2009-03-22 | 1 | -5/+11 | |
| | | | | sensors task to do it. | ||||
* | Don't show rebuild status for offline volumes. | 2009-03-22 | 1 | -3/+1 | |
| | |||||
* | Put recently added bio and sensors stuff under #if NBIO > 0 and | 2009-03-22 | 1 | -2/+6 | |
| | | | | #ifndef SMALL_KERNEL respectively. | ||||
* | If rebuild is active set volume state to ``rebuild''. | 2009-03-21 | 1 | -2/+4 | |
| | |||||
* | Report rebuild progress only if rebuild is active. | 2009-03-21 | 1 | -2/+2 | |
| | |||||
* | IPS_MAXTARGETS should be 16, not 15. | 2009-03-21 | 1 | -5/+5 | |
| | |||||
* | Be smart when attaching pass-through scsibuses. Use configuration | 2009-03-21 | 1 | -14/+24 | |
| | | | | | | data to check if channel has any devices besides disks and set the actual bus width. This will speedup booting. Also remember enclosure address here instead of messing with inquiry data. | ||||
* | Looks like the ``params'' field in the physical device description | 2009-03-21 | 1 | -3/+5 | |
| | | | | | contains SID_TYPE. Use to to filter out non disks from the bioctl output. | ||||
* | When calculating physical disk size use its number of sectors | 2009-03-20 | 1 | -2/+2 | |
| | | | | rather than chunk's. | ||||
* | Detect unused and hot-spare drives. | 2009-03-20 | 1 | -12/+44 | |
| | |||||
* | Support bio ``unused'' drives. | 2009-03-20 | 1 | -1/+2 | |
| | |||||
* | Cleanup physical drive states handling. | 2009-03-20 | 1 | -12/+15 | |
| | |||||
* | Fetch rebuild status only for degraded or offline volumes. | 2009-03-20 | 1 | -7/+16 | |
| | |||||
* | For rebuilds use a special REBUILD command instead of a generic | 2009-03-19 | 1 | -3/+31 | |
| | | | | SETSTATE, for some reason it works better on lpinto's machine. | ||||
* | For pass-through commands adjust timeout value to what controller | 2009-03-19 | 1 | -4/+14 | |
| | | | | | supports. Make sure our timeout will be fired after controller gives up. | ||||
* | Unify command id printing. | 2009-03-19 | 1 | -4/+5 | |
| | |||||
* | Make ips_timeout to be usable not only with scsi xfers. | 2009-03-19 | 1 | -13/+13 | |
| | |||||
* | Remove unused code. | 2009-03-19 | 1 | -65/+1 | |
| | |||||
* | Keep softc pointer in ccb because it requires some work to correctly | 2009-03-18 | 1 | -2/+4 | |
| | | | | | extract it from scsi_xfer in ips_timeout since link->adapter_softc may point to a per-channel structure in pass-through path. | ||||
* | Provide both errno.h codes for the userspace tools like bioctl | 2009-03-17 | 1 | -21/+52 | |
| | | | | and XS_* codes for the scsi layer. | ||||
* | Fix compilation without bio(4). | 2009-03-17 | 1 | -1/+5 | |
| | |||||
* | Implement bioctl volume management: rebuild and hotspare. | 2009-03-16 | 1 | -5/+109 | |
| | |||||
* | When doing pass-through calculate right xs->resid value based on | 2009-03-16 | 1 | -4/+7 | |
| | | | | the info hardware returnes. | ||||
* | Don't set error on data underrun. This tiny change allowed scsi tape | 2009-03-16 | 1 | -1/+7 | |
| | | | | on the pass-through bus on lpinto's machine to work. | ||||
* | Remove redundant DPRINTF from ips_morpheus_isintr. | 2009-03-16 | 1 | -7/+3 | |
| | |||||
* | IPS_SCSI_PT flag not used any more. | 2009-03-16 | 1 | -3/+1 | |
| | |||||
* | Cleanup error processing: | 2009-03-15 | 1 | -102/+96 | |
| | | | | | | | | - in ips_start_xs don't do scsi_done twice on error; - make ips_error return scsi XS_* codes rather than errno.h E* codes; - move all error reporting under debug, let upper layers to spam user. And fix a few missing byte conversions while here. | ||||
* | Add SCSI pass-through and enclosure support. Tested on lpinto's | 2009-03-13 | 1 | -3/+214 | |
| | | | | machine which has safte(4). | ||||
* | Some preparation steps for SCSI pass-through support: | 2009-03-13 | 1 | -32/+64 | |
| | | | | | | | | | | - stack command and DCDB frames along with scatter-gather list into one command block; - use structure field pointers and offsetof() instead of evil pointer arithmetics; - add DCDB definitions. No functional changes. |