| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
member of 'struct scsi_xfer' has always been pointed at the 'struct scsi_generic
cmdstore' member of the same instance. So nuke 'cmdstore' and remove the '*'
from cmd. Take the address of cmd as required by the various casts.
No intentional functional change.
luna88k test by aoyama@, sparc64 test by jmatthew@
Identification of 2009's last *cmd use and ok jmatthew@
|
|
|
|
|
|
|
|
| |
In sparc64 autoconf access 'luns' via sb_luns and 'adapter_buswidth'
via sb_adapter_buswidth.
Removes last post-config uses of the copies of bus related
information in scsi_link.
|
|
|
|
| |
(scsi_link.adapter_softc) to a pointer of a particular softc type.
|
|
|
|
| |
done just before config_found(), as all other drivers do.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
value minphys() uses (MAXPHYS) are pointless since minphys() is always
called after the *_minphys() function.
MAXPHYS (64 * 1024) == 16 * 4096. 4096 is the smallest PAGE_SIZE we
have. So a *_minphys() function that caps the i/o size at N *
PAGE_SIZE where N is > 16 is just wasting cycles.
Nuke adv_minphys (40 * PAGE_SIZE), adw_minphys (254 * PAGE_SIZE),
ahc_minphys (128 * PAGE_SIZE), ahd_minphys (128 * PAGE_SIZE),
ami_minphys (26 * PAGE_SIZE), cac_minphys (65535 (!!!) * 512),
iha_minphsy (32 * PAGE_SIZE), trm_minphys (31 * PAGE_SIZE),
twe_minphys (62 * PAGE_SIZE). uha_minphys (32 * PAGE_SIZE),
|
|
|
|
| |
sc_link.adapter at trm_switch directly.
|
| |
|
|
|
|
|
|
|
|
| |
inducing. Rename scsi_adapter member 'scsi_minphys' to 'dev_minphys'
to reflect what it is supposed to do. Use consistent naming convention
(<dev>_minphys) for the actual device functions.
No functional change.
|
|
|
|
|
|
|
| |
system minphys(). scsi_minphys() will do that and cd/sd/st will call
scsi_minphys().
ok jmatthew@ as part of larger diff
|
|
|
|
|
|
|
|
|
|
|
| |
in drivers. Terse one liners, NULLs instead of 0's, explicitly specify
all members, etc.
Nuke #ifdef notyet blocks related to the scsi_adapter in aic.
No intentional functional change.
ok tedu@
|
|
|
|
| |
ok krw@
|
|
|
|
| |
after discussions with beck deraadt kettenis.
|
|
|
|
|
|
| |
variable the message doesn't make much sense.
Reported by Maxime Villard.
|
|
|
|
| |
Found by Jan Klemkow. Thanks!
|
|
|
|
| |
done around the manual invocation. Prompted by dlg@.
|
|
|
|
| |
ok dlg@ matthew@
|
|
|
|
|
|
| |
original command. Return xs->error = XS_SENSE, when REQUEST SENSE
times out, rather that XS_TIMEOUT. Reduces many useless retries of
commands getting sense errors.
|
| |
|
|
|
|
| |
No functional change.
|
|
|
|
| |
sc_print_link() properly and consistently. No functional change.
|
|
|
|
|
|
|
|
|
| |
discard devices because 2nd INQUIRY (a.k.a. scsi_inquire_vpd())
fails, avoid NULL dereferences, reset bus after a timeout since I
can't see how else to account for an unsupported instruction (e.g.
0x9e, a.k.a. READ_CAPACITY_16).
All found while preparing for iopoolification.
|
|
|
|
| |
found via the clang static analyser
|
|
|
|
|
|
|
|
| |
step in elminating 'struct scsi_device' entirely.
Spotted and initial diff from matthew@.
ok matthew@ dlg@ deraadt@ marco@ miod@
|
|
|
|
| |
From Matthew Dempsky.
|
|
|
|
| |
ok krw@
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
| |
Reported by and fix tested by peters at schwertfische dot de.
|
|
|
|
|
|
|
| |
seagate/trm/aha1742 were the only drivers paranoid enough to check
ITSDONE on getting the xs to execute. And optimistic enough to think
simply restting the flag would be a good thing. Have them chill out
like everyone else, reducing ITSDONE noise some more.
|
|
|
|
|
|
| |
in the drivers just before calling scsi_done().
ok dlg@ beck@
|
|
|
|
|
| |
and splbio() around a simple timeout_set() call, it won't gain us anything.
ok dlg@ krw@
|
| |
|
|
|
|
|
|
| |
as additional argument. This will allow intermediate layers between
scsi devices such as sd and scsi host adapters to take appropriate
action if necessary.
|
|
|
|
|
|
| |
No functional changes.
ok krw@ miod@
|
|
|
|
| |
"I'm all for it." marco@ "Yeah" deraadt@
|
|
|
|
| |
sc_print_addr(); ok krw@
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
a) Ensuring only one command is started at a time on such targets.
b) Not fiddling with pSRB fields until it is really going to be started.
c) Testing for a pending interrupt before starting to send stuff to the card.
Found when testing queue.h stuff.
|
|
|
|
| |
idiom.
|
|
|
|
| |
necessary. No functional change.
|
| |
|
|
|
|
|
|
|
|
| |
Tom: I did not commit a couple of your changes.
i did not include some punctuation fixes (full stops, etc.)
mnemorable -> mnemonic: i decided memorable was probably better
instrunctions -> instruction: i kept the plural
|
|
Thanks to Tekram for donating a couple of cards and a NetBSD driver by
Erich Chen of Tekram. Thanks to Martin Akesson for a first port of the
NetBSD driver to OpenBSD and thanks to Ashley Martens for the major
cleanup to make it presentable and style(9)ish.
Only tested on i386 at this time.
|