summaryrefslogtreecommitdiff
path: root/sys/dev/ic/twe.c
AgeCommit message (Collapse)Author
2010-09-20Use SSD_ERRCODE_CURRENT instead of magic 0x70.Kenneth R Westerback
ok dlg@ matthew@
2010-06-28Remove all adapter-specific 'struct scsi_device's. They are never used. FirstKenneth R Westerback
step in elminating 'struct scsi_device' entirely. Spotted and initial diff from matthew@. ok matthew@ dlg@ deraadt@ marco@ miod@
2010-05-20New scsi code seems to be stable. Pluck previously identifiedKenneth R Westerback
low-hanging splbio/splx pairs that are no longer needed and see if this reveals any hidden scsi flaws. ok dlg@
2010-03-29Initialize various uninitialized variables. Found by jsg@ via Clang.Kenneth R Westerback
Feedback from miod@ and kettenis@. ok beck@
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-11-22Bring last drivers fully into the NO_CCB world by replacingKenneth R Westerback
TRY_AGAIN_LATER uses with equivalent NO_CCB. Eliminates confusion between the two as was always intended. buf I/O's that can't be started get pushed back onto the front of the queue and retried. Others get sent back to originator as failures. No more epi-cycle looping inside the SCSI midlayer hoping the problem goes away. Various testers, no objection from miod@ as vs(4) was tested by nick@.
2009-09-03must call scsi_done before returning complete.David Gwynne
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.
2008-07-24the softc sc_lock lockmgr lock is unused, so remove it.Thordur I. Bjornsson
ok krw@, dlg@
2007-10-20Call scsi_done() at SPLBIO. 'looks olright' says mickey.Kenneth R Westerback
2006-12-29Avoid void * arithmetic, okay deraadt@, suggestions from millert@Pedro Martelletto
2006-11-28give scsi controllers a real attach args to fill in when attaching scsibus.David Gwynne
ok miod@ marco@ deraadt@
2005-12-03The first thing done when XXX_scsi_cmd() returns TRY_AGAIN_LATER isKenneth R Westerback
to set xs->error to XS_BUSY. So it is pointless and misleading to set xs->error to XS_TIMEOUT, XS_DRIVER_STUFFUP or XS_BUSY just before returning TRY_AGAIN_LATER. No functional change.
2005-09-15Don't fake MODE SENSE page 4 info inside raid drivers, just let sdKenneth R Westerback
fake a geometry. Page 4 info does not get used for size information. Eliminate now unused union scsi_disk_pages. ok marco@ mickey@ pre-lock.
2005-07-03Fix data_length values in simulationed MODE SENSE page 4 responses soKenneth R Westerback
that scsi_do_mode_sense() accepts them. The data_length value does not include itself, and the pg_length value in a mode page does not include itself or the page_code fields. We were +1 on the former and -2 on the latter resulting in a data_length value that was too small by one. Eliminates 'mode sense page 5 not simulated' messages. ok marco@
2003-08-06Remove some double semicolons (hmm, do two semis equal a maxi?).Todd C. Miller
I've skipped the GNU stuff for now. From Patrick Latifi.
2003-06-02kill the caluses three and four on some of my codeMichael Shalayeff
2003-04-27strcpy/sprintf cleanup of sys/dev. miod@, deraadt@ says to commit.Hakan Olsson
2003-04-09missing nl in the error msg and a return afterwardsMichael Shalayeff
2002-09-17deal w/ the dma in a special thread to follow the busdma semantics. this ↵Michael Shalayeff
fixes panics on unaligned physio; w/ help and testing from daniel@lucq.org
2002-03-14First round of __P removal in sysTodd C. Miller
2002-01-31scsi_done() is unsafe, rearrange locking to compensateMichael Shalayeff
2001-12-06clear all inrterrupts separately and before enabling any.Michael Shalayeff
this prevents stray interrupts and sometimes hangs, caused by looping on stray unmapped interrupt.
2001-11-05Switch everything to the new bus_dmamap_sync API.Artur Grabowski
Most work by Wilbern Cobb <vedge@csoft.org> with some fixes from me, mickey@ and drahn@.
2001-09-24get rid of kvtop, not that it matters that muchMichael Shalayeff
2001-07-04case labels without statements are not permitted by ANSI C... and gcc 3.0Marc Espie
warns about them.
2001-05-18stupidous debug was left enabledMichael Shalayeff
2001-05-10dmamem_unmap the memory before dmamem_freeig it.Michael Shalayeff
only affects unaligned transfers (such as disklabel, fsck and dump). we used to get away w/ this due to older pmap, uvm or both. be more precise w/ double-buffer on command failure as well. once at it, allow more than 1 segment for double-buffer to be allocated. also fix a couple of endianesses and command timeouts.
2001-03-14it seems sometimes it takes up to 35 seconds to init; from Chris Kuethe ↵Michael Shalayeff
ckuethe@[[gecko.]math.]ualberta.ca
2001-03-09missing twe_unlock for failed get_ccb() for i/o scsi cmd, which was ↵Michael Shalayeff
impossible to trigger in twese case because of how maxcmds is calculated
2001-02-19propoer dmaable memory allocationsMichael Shalayeff
2001-01-07fix a few scsi_done() usages.Michael Shalayeff
simplify locking a bit. disable write cache if said so in the scsi_xfer. a few more commands, from freebsd.
2000-11-08oops, oops w/ no configured unitsMichael Shalayeff
2000-11-07estimate sc_link.openings on the number of configured unitsMichael Shalayeff
2000-09-25do not do queue locking in get/put_ccb, since calling blocksMichael Shalayeff
have gotten it already locked appropriately. only try to satiate the command queue if there was a command interrupt, it seems it's quite well-behaving this way. dispose allocated resources if twe_attach() fails.
2000-09-15forgot to turn off debuggingMichael Shalayeff
2000-09-153ware escalade ide raid controllersMichael Shalayeff