| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
dummy read at sa_mount that attempts to latch up density. This breaks
on at least one drive and sends it into the weeds.
Approved: jkh
|
|
|
|
|
| |
rev the CAM revision too. Tsk.
Submitted by: ken@freebsd.org
|
|
|
|
| |
Obtained from:gibbs@freebsd.org
|
|
|
|
|
| |
PR: kern/15975
Submitted by: Carl Mascott <cmascott@world.std.com>, n_hibma
|
|
|
|
|
|
|
|
|
|
|
| |
that there's sense to send with status (if the SIM does it), and
then clear any pending contingent allegiance state for this initiator
if the SIM actually did send the sense data.
Widen MAX_INITITATORS to 256- that's still not quite right, but will
accomodate the widest Fibre Channel support in FreeBSD now.
Obtained from:(partially) gibbs@freebsd.org
|
|
|
|
|
| |
that there's sense to send with status (if the SIM does it).
Reviewed by: gibbs@freebsd.org
|
|
|
|
| |
Obtained from:gibbs@freebsd.org
|
|
|
|
|
|
| |
dynamic resource tables rather than relying on a duplicated cam-specific
table generated by config(8) in ioconf.c. This was a major holdup to
getting loader / userconfig driven configuration of scsi wiring.
|
|
|
|
| |
a few missing newlines in printouts.
|
|
|
|
|
|
| |
JKH Trading Stamps applied.
Reviewed by: gibbs@freebsd.org, ken@freebsd.org
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
full size. Define a SHORT_INQUIRY_LENGTH for use during initial
probing (covers the size used previously). Define some SPC-2 related
fields (and define the revision code for SPC-2) which includes some
further SPI-3 defines. Don't go all the way (256 bytes) for the structure-
stop 4 bytes short- because we haven't auditted the source base to find
any u_int8_t potential overflow issues. Add RBC (single byte device)
and OCR (Optical Character Reader) device type codes.
Approved by JKH.
Reviewed by: gibbs@freebsd.org, ken@freebsd.org
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
structure. Remove usage of the (now gone) pd_type tag of same.
Add an extra probing state such that if we successfully run an
initial inquiry (36 bytes), rerun another one with a longer data
size as informed by the 'additional length' field in the first
returned inquiry data (making sure not to get bigger than the
actual scsi_inquiry_data structure- which has also been modified-
see separate checkin of scsi_all.h). This allows devices such
as SAF-TE devices (which have identifying marks in offsets 48-53
in inquiry data) to be successfully found without special case
inquiry commands. There are also a lot of other things such as
version codes that are coming in in the SPC2 specification that it
would be useful to get our hands on.
Reviewed by: gibbs@freebsd.org, ken@freebsd.org
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(at request of Ken Merry). Garbage collect items out of the ccb_getdev
structure and and a length field so that consumes will know how much
of the inq_data tag is valid. Clean up a few misspellings. Add
a CAM_SEND_STATUS target mode flag.
All of this necessitated a CAM_VERSION bump.
JHK approved.
Reviewed by: gibbs@freebsd.org, ken@freebsd.org
|
|
|
|
| |
Reviewed by: gibbs@freebsd.org, ken@freebsd.org
|
|
|
|
| |
to userland apps- they get confused.
|
| |
|
| |
|
|
|
|
|
| |
portion of SES retrieval (native SES itself) and implement all
the appropriate ioctls. Seems to work...
|
|
|
|
|
|
|
|
|
| |
to be more platform independent. Add a ses_hlptxt structure definition
and retrieval ioctl for when we are able to retrieve object help text
SES Objects can have up to 64 KBytes of associated 'help' text- the
Sun A5000 uses this, for example, to give physical location information
(e.g., 'left power supply').
|
| |
|
|
|
|
|
| |
dkbad.h in /usr/include/sys- the local build process shouldn't have
been happy with that, but not finding dkbad.h in ../../sys. Hmm.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Clean up node creation in the EDT so that initialization follows member
declaration.
Sort registered paths by pathid so that we probe busses in order of
ascending pathid. This makes hardwiring of busses without wiring
individual targets do what the user expects. (submitted by tegge@FreeBSD.org)
Fix an EDT node leak. Target nodes would never go away.
Implement xpt_bus_deregister().
(prodded by some patches from T. Ichinoseki, but implemented differently.)
|
|
|
|
|
|
|
|
| |
(from u_int8_t) in ccb_accept_tio structure. This
matches usage elsewhere and also allows me to
overload the tag id with the RX_ID for fibre
channel target mode.
Reviewed by: gibbs@freebsd.org
|
|
|
|
|
|
| |
periph_release on a failed open so that the periph
dtor for it will get called when we deallocate the
instance from targioctl.
|
|
|
|
|
|
|
|
|
|
|
| |
to be created at init time. The unit devices are created at
ctor when new instances are created and bound and destroyed
when that instance is closed. As such, there is just s single
static control dev_t for this driver (the per-unit dev_t's are
still in the softc).
When we have decommissionable periph drivers, a destroy_device
on the control device will have to called.
|
|
|
|
|
|
| |
is an application space macro and the applications are supposed to be free
to use it as they please (but cannot). This is consistant with the other
BSD's who made this change quite some time ago. More commits to come.
|
|
|
|
|
|
| |
is an application space macro and the applications are supposed to be free
to use it as they please (but cannot). This is consistant with the other
BSD's who made this change quite some time ago. More commits to come.
|
|
|
|
|
| |
and figure out whether to probe higher than logical unit 7.
Obtained from:gibbs@freebsd.org
|
|
|
|
| |
Submitted by: Gerard Roudier <groudier@club-internet.fr>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
second LUN to show up.
mjacob's change (which is correct) in rev 1.21 of cam_periph.c to elminiate
infinite retries of the SCSI busy status bit seems to have broken probing
of Pioneer changers that aren't already quirked.
The right way to fix this is probably to change things around so we can
guarantee 100% sequential probing of LUN-based changers even if they aren't
quirked. This should fix things for now, though.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The same goes for CD drivers and tape drivers. In systems with mixed IDE
and SCSI, devices in the same priority class will be sorted in attach
order.
Also, the 'CCD' priority is now the 'ARRAY' priority, and a number of
drivers have been modified to use that priority.
This includes the necessary changes to all drivers, except the ATA drivers.
Soren will modify those separately.
This does not include and does not require any change in the devstat
version number, since no known userland applications use the priority
enumerations.
Reviewed by: msmith, sos, phk, jlemon, mjacob, bde
|
|
|
|
|
| |
PR: kern/15198
Submitted by: Don Lewis <truckman@FreeBSD.org>
|
|
|
|
| |
to help with some older tape drives.
|
|
|
|
|
|
| |
in samount. Make things a lot quieter in samount (and other places). Fix
ridiculous and not so ridiculous bugs in compression related code in both
sagetparams and sasetparams.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
saprevent when we're doing an OFFLINE ioctl- saprevent
won't unlock the door, which then causes the unload to
fail on some units.
If we've already unloaded the tape, don't try and rewind and
unload in saclose. This is a slightly riskier change because
we're now going to depend on SA_FLAG_TAPE_MOUNTED to say whether
we've really unloaded the tape. This involved changing the
setting in sadone for tape errors to SA_FLAG_TAPE_FROZEN (which
is more accurate anyway-if you get an EIO you've probably lost
tape position anyway) where it used to just clear the mounted
flag.
|
|
|
|
|
| |
are broken).
Submitted by: ken@freebsd.org
|
| |
|
|
|
|
|
|
|
| |
tape to force the drive to do a media access so it knows what media
may be inserted).
Also Ken's make_dev patches- relatively untested.
|
|
|
|
|
|
| |
complain when some warnings are turned on.
Requested by: Bertrand Petit <elrond@phoe.frmug.org>
|
|
|
|
| |
make_dev()/destroy_dev() interface.
|
|
|
|
|
|
|
|
|
|
|
| |
camcontrol was setup to use the old scheme of going through the xpt(4)
device, which never worked properly (and has been disabled for a while).
camcontrol now sends BDRs through the pass(4) device, and XPT_RESET_DEV
CCBs are put on the device queue in the transport layer, as they should be.
Submitted by: luoqi
Reviewed by: ken
|
|
|
|
|
|
|
|
|
| |
"rw" argument, rather than hijacking B_{READ|WRITE}.
Fix two bugs (physio & cam) resulting by the confusion caused by this.
Submitted by: Tor.Egge@fast.no
Reviewed by: alc, ken (partly)
|
|
|
|
|
|
|
|
|
|
|
| |
Merge the contents (less some trivial bordering the silly comments)
of <vm/vm_prot.h> and <vm/vm_inherit.h> into <vm/vm.h>. This puts
the #defines for the vm_inherit_t and vm_prot_t types next to their
typedefs.
This paves the road for the commit to follow shortly: change
useracc() to use VM_PROT_{READ|WRITE} rather than B_{READ|WRITE}
as argument.
|
| |
|
|
|
|
|
|
|
|
| |
retry count for the ccb). This is probably not quite the right thing, but it
is better than silently hanging on (possibly broken) h/w which is what we
do now.
Reviewed by:Justin/Ken: they weren't entirely happy about it but didn't say no.
|
|
|
|
|
|
| |
seems to handle the case of timeouts firing during probe but after a device
has gone away. It really does help.
Obtained from:gibbs@freebsd.org
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Move intrhook stuff into kernel.h
- Remove all occurrences of #device <device.h>
- Add kernel.h were necessary (nowhere)
- delete device.h
This file contained the structures for cfdata (old style config) and is no
longer used. It was included by most drivers.
It confuses the remote debugger as the definition of 'struct device' in
device.h is found before the one in bus_private.h.
|
|
|
|
|
|
| |
and add a config option that allows one to default to 1FM@EOD for tapes
otherwise unquirked or unknown as to which to prefer. Note that tcopy
will be broken for these tapes until tcopy is fixed.
|