summaryrefslogtreecommitdiff
path: root/sys/dev/pci/ips.c
AgeCommit message (Collapse)Author
2010-04-06update a random sampling of drivers after the proc.h -> systm.h moveTed Unangst
2010-03-23Change the scsi_cmd function member of scsi_adapter from int toKenneth R Westerback
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@
2010-01-09Zap all setting of ITSDONE in drivers that don't look at it. NobodyKenneth R Westerback
else cares so it's just noise. Drivers that actually look at ITSDONE are unchanged. ok marco@ (for his files) dlg@ beck@
2009-03-23Reorganize NBIO and SMALL_KERNEL handling again but this time withoutAlexander Yurchenko
ramdisk breakage.
2009-03-22unbreak ramdisk builds in a way i guess might workTheo de Raadt
2009-03-22Update volume info on every bio call instead of waiting for theAlexander Yurchenko
sensors task to do it.
2009-03-22Don't show rebuild status for offline volumes.Alexander Yurchenko
2009-03-22Put recently added bio and sensors stuff under #if NBIO > 0 andAlexander Yurchenko
#ifndef SMALL_KERNEL respectively.
2009-03-21If rebuild is active set volume state to ``rebuild''.Alexander Yurchenko
2009-03-21Report rebuild progress only if rebuild is active.Alexander Yurchenko
2009-03-21IPS_MAXTARGETS should be 16, not 15.Alexander Yurchenko
2009-03-21Be smart when attaching pass-through scsibuses. Use configurationAlexander Yurchenko
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.
2009-03-21Looks like the ``params'' field in the physical device descriptionAlexander Yurchenko
contains SID_TYPE. Use to to filter out non disks from the bioctl output.
2009-03-20When calculating physical disk size use its number of sectorsAlexander Yurchenko
rather than chunk's.
2009-03-20Detect unused and hot-spare drives.Alexander Yurchenko
2009-03-20Support bio ``unused'' drives.Alexander Yurchenko
2009-03-20Cleanup physical drive states handling.Alexander Yurchenko
2009-03-20Fetch rebuild status only for degraded or offline volumes.Alexander Yurchenko
2009-03-19For rebuilds use a special REBUILD command instead of a genericAlexander Yurchenko
SETSTATE, for some reason it works better on lpinto's machine.
2009-03-19For pass-through commands adjust timeout value to what controllerAlexander Yurchenko
supports. Make sure our timeout will be fired after controller gives up.
2009-03-19Unify command id printing.Alexander Yurchenko
2009-03-19Make ips_timeout to be usable not only with scsi xfers.Alexander Yurchenko
2009-03-19Remove unused code.Alexander Yurchenko
2009-03-18Keep softc pointer in ccb because it requires some work to correctlyAlexander Yurchenko
extract it from scsi_xfer in ips_timeout since link->adapter_softc may point to a per-channel structure in pass-through path.
2009-03-17Provide both errno.h codes for the userspace tools like bioctlAlexander Yurchenko
and XS_* codes for the scsi layer.
2009-03-17Fix compilation without bio(4).Alexander Yurchenko
2009-03-16Implement bioctl volume management: rebuild and hotspare.Alexander Yurchenko
2009-03-16When doing pass-through calculate right xs->resid value based onAlexander Yurchenko
the info hardware returnes.
2009-03-16Don't set error on data underrun. This tiny change allowed scsi tapeAlexander Yurchenko
on the pass-through bus on lpinto's machine to work.
2009-03-16Remove redundant DPRINTF from ips_morpheus_isintr.Alexander Yurchenko
2009-03-16IPS_SCSI_PT flag not used any more.Alexander Yurchenko
2009-03-15Cleanup error processing:Alexander Yurchenko
- 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.
2009-03-13Add SCSI pass-through and enclosure support. Tested on lpinto'sAlexander Yurchenko
machine which has safte(4).
2009-03-13Some preparation steps for SCSI pass-through support:Alexander Yurchenko
- 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.
2009-03-13Process command completion errors while polling, too.Alexander Yurchenko
2009-03-12In the most common case -- array failure -- move error message underAlexander Yurchenko
debug not to spam dmesg, bioctl and sysctl hw.sensors will tell you enough.
2009-03-12Advanced error checking.Alexander Yurchenko
2009-03-12For SYNCHRONIZE_CACHE command use the same code path as for READ/WRITE.Alexander Yurchenko
This required to factor out some common scsi code.
2009-03-11Rework command polling to be able to sleep if no SCSI_NOSLEEP flagAlexander Yurchenko
passed. Sleep while waiting for sensors update because that's what sensors work queue for.
2009-03-10Print scsi xfer flags in debug output.Alexander Yurchenko
2009-03-10Rearrange physical drive state bits checking so that bioctl getsAlexander Yurchenko
a correct state value.
2009-03-10Add some more debug.Alexander Yurchenko
2009-03-10Add ips_intrds() function to be able to disable interrupts on hardware.Alexander Yurchenko
2009-03-10Limit registers space size to some reasonable value.Alexander Yurchenko
2009-03-09Completely rework command processing:Alexander Yurchenko
- use separate callbacks to finish scsi and raid management commands; - for raid management commands use dedicated dma-safe buffer; - remove unused run queue; The main goal of these changes is to fix a bug showing up on the lpinto's machine where READCONF command fails because it needs more than 1-page buffer and the buffer was not contiguos and controller doesn't support scatter-gather for raid management commands.
2009-03-01Time to turn off debug by default. It shrinks ramdisk as a bonus.Alexander Yurchenko
2009-03-01Add sensors support.Alexander Yurchenko
2009-03-01- add missing letoh32Alexander Yurchenko
- tweak product string
2009-02-19Don't use scsi_xfer if we don't run a command came from the scsi layer.Alexander Yurchenko
2009-02-17- add more bioctl support, now physical drives info availableAlexander Yurchenko
- shrink dmesg strings