summaryrefslogtreecommitdiff
path: root/sys/dev/pci/ips.c
AgeCommit message (Collapse)Author
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
2009-02-16Extend the scsi_adapter minphys() callback to take a struct scsi_link *Miod Vallat
as additional argument. This will allow intermediate layers between scsi devices such as sd and scsi host adapters to take appropriate action if necessary.
2009-02-13When faking scsi commands never copy more than xs->datalen bytes.Alexander Yurchenko
2009-02-11Prettier fake scsi inquiry ascii strings.Alexander Yurchenko