Devices qus(7D)
NAME
qus - Qlogic Ultra3 SCSI ISP10160 Host Bus Adapter Driver
SYNOPSIS
pci@pci-slot/scsi@4 - Scsi bus-1
pci@pci-slot/scsi@5 - Scsi bus-2
DESCRIPTION
The ISP10160 host bus adapter is a SCSA-compliant nexus
driver that supports Qlogic ISP10160 SCSI chips on the PCI bus. The ISP10160 is an intelligent SCSI host bus adapter chip that reduces the amount of CPU overhead used in a SCSI transfer.The qus driver supports the standard functions provided by
the SCSA interface. The driver supports tagged and untaggedqueuing, fast, fast-20, fast-40, fast-80, and auto request
sense, but does not support linked commands. CONFIGURATIONYou configure the qus driver by defining properties in
qus.conf which override the global SCSI settings. Supported
properties are scsi-options, target
-scsi-options, scsi- reset-delay, scsi-watchdog-tick, scsi-tag-age-limit, scsi-
initiator-id, and scsi-selection-timeout.
target
value for target-scsi-options overrides the scsi-options property . is a hex value that can vary from 0 to f. Refer to scsi_hba_attach(9F) for details.
EXAMPLES
Example 1: SCSI Options:Create a file called /kernel/drv/qus.conf, then add the fol-
lowing line to disable tagged queuing, fast SCSI, and Widemode for all qus instances:
scsi-options=0x78;
To disable an option for a specific ISP10160 (see driver.conf(4)), do the following:name="qus" parent="/pci@1f,2000/pci@1"
unit-address="4"
SunOS 5.11 Last change: 29 May 2003 1
Devices qus(7D)
scsi-options=0x178
target3-scsi-options=0x58 scsi-initiator-id=6;
The default initiator ID in OBP is 7 and that the change to ID 6 occurs at attach time. You might prefer to change the initiator ID in OBP.Example 1 sets scsi-options for target 3 to 0x58 and all
other targets on this SCSI bus to 0x178. To determine the physical pathname of the parent, use the /devices tree or follow the link of the logical device name:example# ls -l /dev/rdsk/c2t0d0s0
lrwxrwxrwx 1 root root 76 Aug 22 13:29 /dev/rdsk/c2t0d0s0 -> ../../devices/pci@1f,2000/pci@1/scsi@5/sd@0,0:a,raw
To determine the hardware property values, use the output ofprtconf(1M) with the -v option:
pci, instance #0
Driver properties:name='device_type' type=string items=1 dev=none
value='pci' Hardware properties: name='ranges' type=int items=8 value=82000000.00000000.00100000.82000000.00000000.00100000./ 00000000.00100000name='latency-timer' type=int items=1
value=00000040name='cache-line-size' type=int items=1
value=00000010scsi, instance #0
Driver properties:name='scsi-selection-timeout' type=int items=1 dev=(249,0)
value=000000faname='scsi-options' type=int items=1 dev=(249,0)
value=00107ff8name='scsi-watchdog-tick' type=int items=1 dev=(249,0)
value=0000000aname='scsi-tag-age-limit' type=int items=1 dev=(249,0)
value=00000002name='scsi-reset-delay' type=int items=1 dev=(249,0)
value=00000bb8 Hardware properties:name='cache-line-size' type=int items=1
SunOS 5.11 Last change: 29 May 2003 2
Devices qus(7D)
value=00000010 sd (driver not attached) st (driver not attached)scsi, instance #1
Driver properties:name='scsi-selection-timeout' type=int items=1 dev=(249,0)
value=000000faname='scsi-options' type=int items=1 dev=(249,0)
value=00107ff8name='scsi-watchdog-tick' type=int items=1 dev=(249,0)
value=0000000aname='scsi-tag-age-limit' type=int items=1 dev=(249,0)
value=00000002name='scsi-reset-delay' type=int items=1 dev=(249,0)
value=00000bb8 Hardware properties:name='cache-line-size' type=int items=1
value=00000010 sd (driver not attached) st (driver not attached) Example 2: ISP10160 PropertiesThe qus driver exports properties indicating (per target)
the negotiated transfer speed (target
-sync-speed), whether tagged queuing has been enabled (target
whether the wide data transfer has been negotiated-TQ), and (target
-wide). The sync-speed property value is the data transfer rate in KB/sec. The target-TQ and target-wide pro-
perties have no value. The existence of these properties indicate that tagged queuing or wide transfer is enabled.Refer to prtconf(1M) (verbose option) for information on qus
properties.scsi, instance #1
Driver properties:name='target2-wide' type=boolean dev=none
name='target2-TQ' type=boolean dev=none
name='target2-sync-speed' type=int items=1 dev=none
value=00027100name='target0-wide' type=boolean dev=none
name='target0-TQ' type=boolean dev=none
name='target0-sync-speed' type=int items=1 dev=none
value=00027100 To determine the physical pathname of the parent, use the /devices tree or follow the link of the logical deiice name.SunOS 5.11 Last change: 29 May 2003 3
Devices qus(7D)
To set scsi-options more specifically per device type, add
the following line to the /kernel/drv/qus.conf file:
device-type-scsi-options-list =
"SEAGATE ST32550W", "seagate-scsi-options" ;
seagate-scsi-options = 0x58;
All devices of this specific disk type have scsi-options set
to 0x58.scsi-options specified per target ID has the highest pre-
cedence, followed by scsi-options per device type. Global
(for all qus instances) scsi-options per bus has the
lowest precedence.You must reboot your system for the specified scsi-options
to take effect. Example 3: Driver Capabilities To enable some driver features, the target driver must setcapabilities in the qus driver. The target driver can query
and modify the following capabilities: synchronous, tagged-
qing, wide-xfer, auto-rqsense, qfull-retries, qfull-
retry-interval. All other capabilities are query only.
By default, tagged-qing, auto-rqsense, and wide-xfer capa-
bilities are disabled, while disconnect, synchronous, anduntagged-qing are enabled. These capabilities can have
binary values (0 or 1) only. The default value for bothqfull-retries and qfull-retry-interval is 10. The qfull-
retries capability is a uchar_t (0 to 255), while
qfull-retry-interval is a ushort_t (0 to 65535).
The target driver must enable tagged-qing and wide-xfer
explicitly. The untagged-qing capability is always enabled
and its value cannot be modified due to the qus driver's
ability to queue commands even when tagged-qing is disabled.
When a conflict occurs between the value of scsi-options
and a capability, the value set in scsi-options prevails.
Only whom != 0 is supported in the scsi_ifsetcap(9F) call.
SunOS 5.11 Last change: 29 May 2003 4
Devices qus(7D)
Refer to scsi_ifsetcap(9F) and scsi_ifgetcap(9F) for
details. FILES/kernel/drv/sparcv9/qus 64-bitELF kernel module
/kernel/drv/qus.conf Configuration file
ATTRIBUTES
See attributes(5) for a description of the following attri-
bute:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Architecture | SPARC ||_____________________________|_____________________________|
SEE ALSO
prtconf(1M), driver.conf(4) , attributes(5), scsi_abort(9F),
scsi_hba_attach(9F), scsi_ifgetcap(9F), scsi_ifsetcap(9F),
scsi_reset(9F), scsi_transport(9F), scsi_device(9S),
scsi_extended_sense(9S), scsi_inquiry(9S), scsi_pkt(9S)
Writing Device DriversANSI Small Computer System Interface-2 (SCSI-2)
SCSI Parallel Interface-3 (SPI-3)
QLogic Corporation, ISP1080/1280/10160A/12160A Initiator Firmware Interface Specification QLogic Corporation, ISP10160A/12160A Technical Manual QLogic Corporation, ISP1080 Technical Manual QLogic Corporation, ISP1280 Technical ManualSunOS 5.11 Last change: 29 May 2003 5
Devices qus(7D)
DIAGNOSTICS In addition to being logged, the following messages can appear on the system console. The first set of messages shown below can be displayed whilethe qus driver is first trying to attach. All messages in
the first set indicate that the qus driver was unable to
attach. Each message is preceded by "qus
")", where " is the instance number of the JASPER Host Bus Adapter. Device in slave-only slot, unused
The SBus device has been placed in a slave-only slot and
are not accessible; move to non- slave-only SBus slot.
Device is using a hilevel intr, unused The device was configured with an interrupt level thatcannot be used with the qus driver. Check the device.
Failed to alloc soft state Driver is unable to allocate space for the internal state structure. Driver did not attach to device; SCSI devices are inaccessible. Bad soft state Driver requested an invalid internal state structure.Driver did not attach to device; SCSI devices are inac-
cessible. Can't reload firmware: failing attach/resume Driver is unable to reload firmware; check for bad hardware. Driver did not attach to device; SCSI devices are inaccessible. Can't reset interface during attach/resume Driver is unable to reset the hardware. Driver did not attach to device; SCSI devices are inaccessible.SunOS 5.11 Last change: 29 May 2003 6
Devices qus(7D)
Cannot find PCI device-id
Driver is unable to find PCI device-id. Driver did not
attach to device; SCSI devices are inaccessible. Unable to support ISP chip Driver is unable to support the ISP chip, which is in the interface. Driver did not attach to device; SCSI devices are inaccessible. Unable to map pci config registers Driver is unable to map device registers. Check for bad hardware. Driver did not attach to device. SCSI devices are inaccessible. Unable to attach: check for hardware problem Driver is unable to attach to the hardware. Driver did not attach to device; SCSI devices are inaccessible. The following messages can be displayed at any time and are printed with the full device pathname followed by the shorter form described above.Firmware (
Firmware id() should be bytes ) verification failed Firmware length too short Firmware checksum incorrect Can't find firmware rev. string reset/init ISP chip failed reset/init ISP chip failed Load ram failed Start firmware mailbox command failed Can't set clock rate Can't get RAM info These messages indicate a firmware download failure and possible corruption of the firmware. Check the ISP driver. Chip reset timeout ISP chip failed to reset in the time allocated. Poten-
tial hardware problem.SunOS 5.11 Last change: 29 May 2003 7
Devices qus(7D)
Bad request pkt payload The ISP Firmware rejected the packet, indicating thatthe packet was set up incorrectly. As a result, the qus
driver calls the target completion routine with the rea-
son of CMD_TRAN_ERR set in the scsi_pkt. To correctly
set up the packet, check the target driver. Bad request pkt header The ISP Firmware rejected the packet because the packetwas set up incorrectly. As a result, the qus driver
calls the target completion routine with the reason ofCMD_TRAN_ERR set in the scsi_pkt. To correctly set up
the packet, check the target driver.Target synch. rate reduced. tgt
Target
These messages indicate that the target is reducing its transfer rate. Reboot the system to obtain the maximum transfer rate. Failed to Get Features Chip reset detected These messages indicate a possible ISP chip failure. Driver attempts to recover from this condition by reloading and restarting the firmware. Interface going offline Although all driver recovery procedure are completed, the interface did not come online and might need replacement.reducing transfer rate SCSI Cable/Connection problem The SCSI cable is faulty or is connected improperly.
Hardware/Firmware error
The ISP chip encountered a firmware error that is prob-
ably due to a faulty SCSI cable or improper cable con-
nection. As a result, the qus driver attempts to do
error recovery by resetting the chip.SunOS 5.11 Last change: 29 May 2003 8
Devices qus(7D)
Received unexpected SCSI Reset The ISP chip received an unexpected SCSI Reset and has initiated its own internal error recovery, which returnsscsi_pkt with reason set to CMD_RESET.
Fatal error, resetting interfaceThe qus driver is performing error recovery. As a
result, all outstanding commands that have been tran-
sported to the qus driver is completed by way of the
scsi_pkt completion routine in the target driver with
reason of CMD_RESET and status of STAT_BUS_RESET set in
scsi_pkt.
Phase skipped: Command completed with good status - Poten-
tial data path failure: Possible SCSI cable failure. Driver might still be ableto communicate with the target and continue sending com-
mands. Leaving the system in the same state triggersthis message once per hour. System I/O throughput might be reduced. The SCSI might need to be replaced. LVD Error detected
SCSI Cable/Connection problem Bus Not Terminated f/w initiated BDR fails
These messages indicate a possible cable failure. Out-
standing commands are returned with CMD_RESET or
CMD_TRAN_ERR set in scsi_pkt.
SunOS 5.11 Last change: 29 May 2003 9