[email protected][email protected] - Scsi bus-1
[email protected][email protected] - Scsi bus-2
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 untagged queuing, fast, fast-20, fast-40, fast-80, and auto request sense, but does not support linked commands.
You configure the qus driver by defining properties in qus.conf which override the global SCSI settings. Supported properties are scsi-options, target<n>-scsi-options, scsi-reset-delay, scsi-watchdog-tick, scsi-tag-age-limit, scsi- initiator-id, and scsi-selection-timeout.
target<n>-scsi-options overrides the scsi-options property value for target<n>.<n> is a hex value that can vary from 0 to f. Refer to scsi_hba_attach(9F) for details.
Example 1: SCSI Options:
Create a file called /kernel/drv/qus.conf, then add the following line to disable tagged queuing, fast SCSI, and Wide mode for all qus instances:
To disable an option for a specific ISP10160 (see driver.conf(4)), do the following:
name="qus" parent="[email protected],[email protected]" unit-address="4" 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/c2t0d0 s0 -> ../..[email protected],[email protected][email protected][email protected],0:a,raw
To determine the hardware property values, use the output of prtconf(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.00100000 name='latency-timer' type=int items=1 value=00000040 name='cache-line-size' type=int items=1 value=00000010 scsi, instance #0 Driver properties: name='scsi-selection-timeout' type=int items=1 dev=(249,0) value=000000fa name='scsi-options' type=int items=1 dev=(249,0) value=00107ff8 name='scsi-watchdog-tick' type=int items=1 dev=(249,0) value=0000000a name='scsi-tag-age-limit' type=int items=1 dev=(249,0) value=00000002 name='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) scsi, instance #1 Driver properties: name='scsi-selection-timeout' type=int items=1 dev=(249,0) value=000000fa name='scsi-options' type=int items=1 dev=(249,0) value=00107ff8 name='scsi-watchdog-tick' type=int items=1 dev=(249,0) value=0000000a name='scsi-tag-age-limit' type=int items=1 dev=(249,0) value=00000002 name='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 Properties
The qus driver exports properties indicating (per target) the negotiated transfer speed (target<n>-sync-speed), whether tagged queuing has been enabled (target<n>-TQ), and whether the wide data transfer has been negotiated (target<n>-wide). The sync-speed property value is the data transfer rate in KB/sec. The target-TQ and target-wide properties 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=00027100 name='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.
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 precedence, 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 set capabilities 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 capabilities are disabled, while disconnect, synchronous, and untagged-qing are enabled. These capabilities can have binary values (0 or 1) only. The default value for both qfull-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.
Refer to scsi_ifsetcap(9F) and scsi_ifgetcap(9F) for details.
See attributes(5) for a description of the following attribute:
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)
ANSI 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 Manual
In addition to being logged, the following messages can appear on the system console.
The first set of messages shown below can be displayed while the 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<number>)", where "<number>" is the instance number of the JASPER Host Bus Adapter.
Device in slave-only slot, unused
Device is using a hilevel intr, unused
Failed to alloc soft state
Bad soft state
Can't reload firmware: failing attach/resume
Can't reset interface during attach/resume
Cannot find PCI device-id
Unable to support ISP chip
Unable to map pci config registers
Unable to attach: check for hardware problem
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 (<actual-size>) should be <allowed_size> bytes
Firmware id(<id>) 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
Chip reset timeout
Bad request pkt payload
Bad request pkt header
Target synch. rate reduced. tgt <target-id>
Target<target-id> reducing transfer rate
Failed to Get Features
Chip reset detected
Interface going offline
SCSI Cable/Connection problem
Received unexpected SCSI Reset
Fatal error, resetting interface
Phase skipped: Command completed with good status --- Potential data path failure:
LVD Error detected
SCSI Cable/Connection problem
Bus Not Terminated
f/w initiated BDR fails