Age | Commit message (Collapse) | Author |
|
Input and ok jmc@, jsg@
|
|
From millert@
|
|
true. This enables the discovery and probing of other LUNs the
target has to offer.
Add uk* to amd64 RAMDISK_CD so such devices are configured.
Allows bsd.rd as well as bsd[.mp] to boot on Oracle Cloud amd64
instances.
Issue reported by Ryan Kavanagh and Scott Nicholas via bugs@.
Original diff and much subsequent testing by Scott. Thanks!
ok dlg@ jmatthew@
|
|
the SDEV_OWN_IOPL flag check.
Ambiguous/inconsistant code pointed out by Coverity #1515557.
|
|
a partially configured struct scsi_link.
Problematic code path found by jungle Boogie was plugged
by r1.249.
|
|
Avoids a potential panic.
|
|
Problem reported by jungle Boogie via bugs@
|
|
fallen at one of the subsequent hurdles of scsi_probe_link()
don't partially replicate scsi_discard_link(). Just
call scsi_discard_link(). It now handles such partially configured
scsi_link's.
|
|
compare pointer to NULL instead of 0.
No functional change.
|
|
|
|
Ditto config_detach() if link->device_softc is NULL.
Currently just some extra paranoia, but will allow simplification
of exit logic in scsi_probe_link() and other future uses of
scsi_detach_link() on partially configured links.
No intentional functional change.
|
|
|
|
|
|
flag setting bits of creating a scsi_link into scsi_alloc_link().
Shrinks the bloated scsi_probe_link() a bit, makes it possible to
eventually create a useable scsi_link even when scsi_probe_link()
can't attach a device.
Developed from part of a diff submitted by Scott Nicholas via
tech@.
|
|
LUNs available to a target into scsi_get_target_luns(). Clearer
code and prep for future changes.
No functional change.
Extracted from a larger diff submitted by Scott Nicholas via
tech@.
|
|
emitted verbiage, and show INQUIRY header & vendor info early so
humans can more easily determine what scsi_probe_link() will
do.
No functional change outside SCSIDEBUG.
|
|
ok visa@ a long time ago, ok krw@
|
|
Treat INQUIRY data with fewer than SID_SCSI2_HDRLEN bytes as invalid.
Use only INQUIRY data returned by the device.
Get all available INQUIRY data (up to sizeof(struct scsi_inquiry_data))
even when SCSIDEBUG is not set.
Tweak returned INQUIRY data so additional_length field does not point
past end of returned data when available data is greater than
sizeof(struct scsi_inquiry_data).
Missing dmafree() spotted by gnezdo@. ok jmatthew@.
|
|
the bus. Use SLIST_FOREACH_SAFE() rather than 'while (!SLIST_EMPTY())'' as there
is a condition which would cause scsi_detach_link() to return without removing
the scsi_link from the SLIST.
|
|
make the three variants more similar and easier to understand. Ensures
consistent error checks and eliminates pointless adapter_buswidth checks when
processing the list of scsi_links.
|
|
it.
Prepares for removal of #include <scsi/scsi_debug.h> from scsiconf.h as soon as
the alpha tester digs out from hurricane to compile last untested files.
|
|
nestled together. Rename scsibusprint() to scsibussubprint() since it is used
with scsibussubmatch().
|
|
|
|
leading whitespace. Rename some local functions.
|
|
scsibus_softc pointers around.
|
|
fields to struct scsibus_attach_args. Nuke the struct scsi_link *
(saa_sc_link) in scaibus_attach_args.
Explicitly initialize each field in scsibus_attach_args variables.
|
|
adapter_buswidth, adapter_softc) from struct scsi_link to struct
scsibus_attach_args.
Additional compile tests by jmatthew@ (sparc64) and aoyam@ (luna88k).
|
|
adapter_softc, adapter_buswidth) via link->bus rather than using
copies currently residing in the link.
|
|
initialize the scsi_link's on the bus. After sucking this information
out of the "prototype" link provided by the scsibus_attach_arg, no
need to keep a pointer to that prototype.
|
|
(ahc(4) and qlw(4)) can just compare the values of the "bus" member
directly.
A slightly different path to the same result that matthew@ traversed
in his work culminating in scsiconf.h r1.146.
|
|
points to the inquiry data contained in the struct scsi_link pointed
to by the other member, sa_sc_link.
|
|
'minphys()'. Just use & check for NULL instead, since 'minphys()' is
always called on the code path ([cd|sd|st]minphys) that calls
physio().
|
|
Comment fixes.
|
|
|
|
|
|
|
|
inadvertantly set on devices for which they are irrelevant or
incorrect. Lets these device operate at full speed.
ok sthen@ deraadt@
|
|
|
|
more intuitive locations.
|
|
SCSIDEBUG.
|
|
openings, flags and quirks.
|
|
SPC-5. Add/Fix comments.
|
|
ok deraadt@
|
|
now unneeded version_to_spc() mapping array, a duplicate #define
and a couple of magic numbers. Toss in some comments for future
generations of spelunkers.
Makes it possible to check for specific SPC versions when new
features or eliminated features require such a check.
No intentional functional change.
|
|
Some cd/sd/safte/ses devices will now be correctly identified as
SCSI-3 and gain all the advantages associated with that lofty
status. e.g. READ CAP 16, REPORT LUNS.
ok deraadt@
|
|
of SCSISPC() when checking the values of the INQUIRY version field.
|
|
scsi_probe() and make scsi_probe_bus(), scsi_probe_target() and
scsi_probe_lun() simple wrappers around scsi_probe().
Abstract the determination of which luns to probe into a separate
function. Thus eliminating the need to remove/add lun 0 link while
probing devices modern enough to support REPORTLUNS. Which means the
lun 0 link is no longer in different positions in the scsi_link list
for such devices compared to older devices which are blindly probed
until an invalid LUN is encountered.
|
|
scsi_detach(), scsi_detach_target() and scsi_detach_lun() become
simple wrappers of scsi_detach() invocations.
No intentional functional change.
|
|
version_to_spc() to map the formerly reserved value 0x07 in the
INQUIRY version field to 5 (a.k.a. SPC-5), instead of 0 (a.k.a. device
does not claim support for any SPC version).
Tweak comment for 0x03 mapping to note it means compliance to SPC, not
SPC-3. Tweak comment for 0x06 mappoing to specify the ANSI INCITS
513-2005 that documents SPC-4.
|
|
pretended to care. So just make in a void, and explicitly return 0 in
the appropriate case in scsi_probe().
|