esp - ESP SCSI Host Bus Adapter Driver
esp@sbus-slot,80000
The esp Host Bus Adapter driver is a SCSA compliant nexus driver that supports the Emulex family of esp SCSI chips (esp100, esp100A, esp236, fas101, fas236).
The esp driver supports the standard functions provided by the SCSA interface. The driver supports tagged and untagged queuing, fast SCSI (on FAS esp's only), almost unlimited transfer size (using a moving DVMA window approach), and auto request sense; but it does not support linked commands.
The esp driver can be configured by defining properties in esp.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.
target<n>-scsi-options overrides the scsi-options property value for target<n>. <n> can vary from 0 to 7.
Refer to scsi_hba_attach(9F) for details.
Example 1 A sample of esp configuration file.
Create a file /kernel/drv/esp.conf and add this line:
scsi-options=0x78;
This will disable tagged queuing, fast SCSI, and Wide mode for all esp instances. To disable an option for one specific esp (refer to driver.conf(4)):
name="esp" parent="/iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000" reg=0xf,0x800000,0x40 target1-scsi-options=0x58 scsi-options=0x178 scsi-initiator-id=6;
Note that the default initiator ID in OBP is 7 and that the change to ID 6 will occur at attach time. It may be preferable to change the initiator ID in OBP.
The above would set scsi-options for target 1 to 0x58 and for all other targets on this SCSI bus to 0x178. The physical pathname of the parent can be determined using the /devices tree or following the link of the logical device name:
example# ls -l /dev/rdsk/c0t3d0s0 lrwxrwxrwx 1 root root 88 Aug 22 13:29 /dev/rdsk/c0t3d0s0 -> ../../devices/iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/ esp@f,800000/sd@3,0:a,raw
The register property values can be determined from prtconf(1M) output (-v option):
esp, instance #0 .... Register Specifications: Bus Type=0xf, Address=0x800000, Size=40
To set scsi-options more specifically per target:
target1-scsi-options=0x78; device-type-scsi-options-list = "SEAGATE ST32550W", "seagate-scsi-options" ; seagate-scsi-options = 0x58; scsi-options=0x3f8;
The above would set scsi-options for target 1 to 0x78 and for all other targets on this SCSI bus to 0x378 except for one specific disk type which will have scsi-options set to 0x58.
scsi-options specified per target ID has the highest precedence, followed by scsi-options per device type. To get the inquiry string run probe-scsi or probe-scsi-all command at the ok prompt before booting the system.
Global, for example. for all esp instances, scsi-options per bus has the lowest precedence.
The system needs to be rebooted before the specified scsi-options take effect.
/kernel/drv/esp
/kernel/drv/esp.conf
See attributes(5) for descriptions of the following attributes:
|
prtconf(1M), driver.conf(4), attributes(5), fas(7D), scsi_abort(9F), scsi_hba_attach(9F), scsi_ifgetcap(9F), scsi_reset(9F), scsi_sync_pkt(9F), scsi_transport(9F), scsi_device(9S), scsi_extended_sense(9S), scsi_inquiry(9S), scsi_pkt(9S)
Writing Device Drivers
OpenBoot Command Reference
ANSI Small Computer System Interface-2 (SCSI-2)
ESP Technical Manuals, QLogic Corp.
The messages described below are some that may appear on the system console, as well as being logged.
The first four messages may be displayed while the esp driver is trying to attach; these messages mean that the esp driver was unable to attach. All of these messages are preceded by "esp%d", where "%d" is the instance number of the esp controller.
Device in slave-only slot
Device is using a hilevel intr
Unable to map registers
Cannot find dma controller
Disabled TQ since disconnects are disabled
Bad clock frequency- setting 20mhz, asynchronous mode
Sync pkt failed
Slot %x: All tags in use!!!
Target %d.%d cannot alloc tag queue\n
Gross error in esp status (%x)
Spurious interrupt
Lost state in phasemanage
Unrecoverable DMA error during selection
Bad sequence step (0x%x) in selection
Undetermined selection failure
>2 reselection IDs on the bus
Reconnect: unexpected bus free
Timeout on receiving tag msg
Parity error in tag msg
Botched tag
Parity error in reconnect msg's
Target <n> didn't disconnect after sending <message>
No support for multiple segs
No dma window?
No dma window on <type> operation
Cannot set new dma window
Unable to set new window at <address> for <type> operation
Illegal dma boundary? %x
Unwanted data out/in for Target <n>
Spurious <name> phase from target <n>
SCSI bus DATA IN phase parity error
SCSI bus MESSAGE IN phase parity error
SCSI bus STATUS phase parity error
Premature end of extended message
Premature end of input message
Input message botch
Extended message <n> is too long
<name> message <n> from Target <m> garbled
Target <n> rejects our message <name>
Rejecting message <name> from Target <n>
Cmd dma error
Target <n> refused message resend
Two-byte message <name> <value> rejected
Unexpected selection attempt
Polled cmd failed (target busy)
Polled cmd failed
Disconnected command timeout for Target <id>.<lun>
Disconnected tagged cmds (<n>) timeout for Target <id>.<lun>
Connected command timeout for Target <id>.<lun>
Target <id>.<lun> reverting to async. mode
Target <id>.<lun> reducing sync. transfer rate
Reverting to slow SCSI cable mode
Reset SCSI bus failed
External SCSI bus reset
The esp hardware does not support Wide SCSI mode. Only FAS-type esp's support fast SCSI (10 MB/sec).
The esp driver exports properties indicating per target the negotiated transfer speed (target<n>-sync-speed) and whether tagged queuing has been enabled (target<n>-TQ). The sync-speed property value is the data transfer rate in KB/sec. The target-TQ property has no value. The existence of the property indicates that tagged queuing has been enabled. Refer to prtconf(1M) (verbose option) for viewing the esp properties.
dma, instance #3 Register Specifications: Bus Type=0x2, Address=0x81000, Size=10 esp, instance #3 Driver software properties: name <target3-TQ> length <0> - <no value>. name <target3-sync-speed> length <4> value <0x00002710>. name <scsi-options> length <4> value <0x000003f8>. name <scsi-watchdog-tick> length <4> value <0x0000000a>. name <scsi-tag-age-limit> length <4> value <0x00000008>. name <scsi-reset-delay> length <4> value <0x00000bb8>.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |