2000-07-20 16:11:23 +00:00
|
|
|
.\" $NetBSD: isp.4,v 1.5 1999/12/18 18:33:05 mjacob Exp $
|
2000-02-14 23:47:55 +00:00
|
|
|
.\"
|
2001-08-31 21:43:35 +00:00
|
|
|
.\" Copyright (c) 1998, 1999, 2001
|
2000-07-20 16:11:23 +00:00
|
|
|
.\" Matthew Jacob, for NASA/Ames Research Center
|
2000-02-14 23:47:55 +00:00
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. The name of the author may not be used to endorse or promote products
|
2000-03-24 02:17:04 +00:00
|
|
|
.\" derived from this software without specific prior written permission.
|
2000-02-14 23:47:55 +00:00
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
2006-02-06 19:28:46 +00:00
|
|
|
.\" Additional Copyright (c) 2006 by Marcus Alves Grando
|
|
|
|
.\"
|
2005-02-09 18:07:17 +00:00
|
|
|
.\" $FreeBSD$
|
2000-02-14 23:47:55 +00:00
|
|
|
.\"
|
2007-02-28 23:21:51 +00:00
|
|
|
.Dd February 28, 2007
|
2000-02-14 23:47:55 +00:00
|
|
|
.Dt ISP 4
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm isp
|
|
|
|
.Nd Qlogic based SCSI and FibreChannel SCSI Host Adapters
|
|
|
|
.Sh SYNOPSIS
|
2006-05-20 09:39:28 +00:00
|
|
|
To compile this driver into the kernel,
|
|
|
|
place the following lines in your
|
|
|
|
kernel configuration file:
|
|
|
|
.Bd -ragged -offset indent
|
|
|
|
.Cd "device scbus"
|
2000-02-14 23:47:55 +00:00
|
|
|
.Cd "device isp"
|
2006-05-20 09:39:28 +00:00
|
|
|
.Ed
|
2000-02-14 23:47:55 +00:00
|
|
|
.Pp
|
2006-05-20 09:39:28 +00:00
|
|
|
Alternatively, to load the driver as a
|
|
|
|
module at boot time, place the following line in
|
|
|
|
.Xr loader.conf 5 :
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
isp_load="YES"
|
|
|
|
.Ed
|
2000-02-14 23:47:55 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
This driver provides access to
|
|
|
|
.Tn SCSI
|
|
|
|
or
|
|
|
|
.Tn FibreChannel
|
|
|
|
devices.
|
|
|
|
.Pp
|
2000-07-20 16:11:23 +00:00
|
|
|
SCSI features include support for Ultra SCSI and wide mode transactions
|
|
|
|
for
|
2000-02-14 23:47:55 +00:00
|
|
|
.Tn SCSI ,
|
2000-07-20 16:11:23 +00:00
|
|
|
Ultra2 LVD (for the ISP1080 and ISP1280), and Ultra3 LVD (for the
|
|
|
|
ISP12160).
|
2000-02-14 23:47:55 +00:00
|
|
|
.Pp
|
|
|
|
Fibre Channel support uses FCP SCSI profile for
|
2012-05-12 03:25:46 +00:00
|
|
|
.Tn FibreChannel ,
|
2000-07-20 16:11:23 +00:00
|
|
|
and utilizes Class 3 and Class 2 connections (Qlogic 2100 is Class
|
|
|
|
3 only, minor patches to the Qlogic 2200 to force Class 2 mode).
|
|
|
|
Support is available for Public and Private loops, and for
|
2001-09-04 09:47:40 +00:00
|
|
|
point-to-point connections (Qlogic 2200 only).
|
2007-03-01 09:07:04 +00:00
|
|
|
The newer 2-Gigabit cards (2300, 2312, 2322) and 4-Gigabit (2422, 2432)
|
2007-02-28 23:21:51 +00:00
|
|
|
are also supported.
|
2001-08-31 21:43:35 +00:00
|
|
|
Command tagging is
|
2000-07-20 16:11:23 +00:00
|
|
|
supported for all (in fact,
|
2000-02-14 23:47:55 +00:00
|
|
|
.Tn FibreChannel
|
2001-09-04 09:47:40 +00:00
|
|
|
requires tagging).
|
2007-03-01 09:07:04 +00:00
|
|
|
Fabric support is enabled by default for other than 2100 cards.
|
|
|
|
Fabric
|
2007-02-28 23:21:51 +00:00
|
|
|
support for 2100 cards has been so problematic and these cards are so
|
2007-03-01 09:07:04 +00:00
|
|
|
old now that it is just not worth your time to try it.
|
2000-07-20 16:11:23 +00:00
|
|
|
.Sh FIRMWARE
|
2006-05-20 09:39:28 +00:00
|
|
|
Firmware is available if the
|
2000-07-20 16:11:23 +00:00
|
|
|
.Xr ispfw 4
|
|
|
|
module is loaded during bootstrap (q.v.).
|
2001-07-26 22:43:40 +00:00
|
|
|
.Pp
|
2007-02-28 23:21:51 +00:00
|
|
|
It is
|
|
|
|
.Ar strongly
|
|
|
|
recommended that you use the firmware available
|
2001-07-26 22:43:40 +00:00
|
|
|
from
|
|
|
|
.Xr ispfw 4
|
|
|
|
as it is the most likely to have been tested with this driver.
|
2000-02-14 23:47:55 +00:00
|
|
|
.Sh HARDWARE
|
2004-08-03 20:46:23 +00:00
|
|
|
Cards supported by the
|
|
|
|
.Nm
|
|
|
|
driver include:
|
2000-02-14 23:47:55 +00:00
|
|
|
.Bl -tag -width xxxxxx -offset indent
|
|
|
|
.It ISP1000
|
2000-07-20 16:11:23 +00:00
|
|
|
SBus Fast Wide, Ultra Fast Wide cards, Single Ended or Differential
|
|
|
|
cards.
|
2000-02-14 23:47:55 +00:00
|
|
|
.It ISP1020
|
|
|
|
Qlogic 1020 Fast Wide and Differential Fast Wide PCI cards.
|
|
|
|
.It ISP1040
|
|
|
|
Qlogic 1040 Ultra Wide and Differential Ultra Wide PCI cards.
|
2003-04-20 22:10:13 +00:00
|
|
|
Also known as the DEC KZPBA-CA (single ended) and KZPBA-CB (HVD differential).
|
2000-02-14 23:47:55 +00:00
|
|
|
.It Qlogic 1240
|
2000-07-20 16:11:23 +00:00
|
|
|
Qlogic 1240 Dual Bus Ultra Wide and Differential Ultra Wide PCI
|
|
|
|
cards.
|
2003-09-06 17:47:25 +00:00
|
|
|
.It Qlogic 1020
|
|
|
|
Qlogic 1020 SCSI cards.
|
|
|
|
.It Qlogic 1040
|
|
|
|
Qlogic 1040 Ultra SCSI cards.
|
2000-02-14 23:47:55 +00:00
|
|
|
.It Qlogic 1080
|
|
|
|
Qlogic 1280 LVD Ultra2 Wide PCI cards.
|
|
|
|
.It Qlogic 1280
|
|
|
|
Qlogic 1280 Dual Bus LVD Ultra2 Wide PCI cards.
|
|
|
|
.It Qlogic 12160
|
|
|
|
Qlogic 12160 Dual Bus LVD Ultra3 Wide PCI cards.
|
2006-02-06 19:28:46 +00:00
|
|
|
.It Qlogic 210X
|
2000-07-20 16:11:23 +00:00
|
|
|
Qlogic 2100 and 2100A Copper and Optical Fibre Channel Arbitrated
|
2006-02-06 19:28:46 +00:00
|
|
|
Loop (single, dual).
|
|
|
|
.It Qlogic 220X
|
2000-07-20 16:11:23 +00:00
|
|
|
Qlogic 2200 Copper and Optical Fibre Channel Arbitrated Loop PCI
|
2006-02-06 19:28:46 +00:00
|
|
|
cards (single, dual, quad).
|
2001-08-31 21:43:35 +00:00
|
|
|
.It Qlogic 2300
|
|
|
|
Qlogic 2300 Optical Fibre Channel PCI cards.
|
|
|
|
.It Qlogic 2312
|
|
|
|
Qlogic 2312 Optical Fibre Channel PCI cards.
|
2006-02-06 19:28:46 +00:00
|
|
|
.It Qlogic 234X
|
|
|
|
Qlogic 234X Optical Fibre Channel PCI cards (2312 chipset, single and dual attach).
|
|
|
|
.It Qlogic 2322
|
2007-02-28 23:21:51 +00:00
|
|
|
Qlogic 2322 Optical Fibre Channel PCIe cards.
|
2006-02-06 19:28:46 +00:00
|
|
|
.It Qlogic 200
|
|
|
|
Dell Branded version of the QLogic 2312 Fibre Channel PCI cards.
|
2007-02-28 23:21:51 +00:00
|
|
|
.It Qlogic 2422
|
|
|
|
Qlogic 2422 Optical Fibre Channel PCI cards (4 Gigabit)
|
|
|
|
.It Qlogic 2432
|
|
|
|
Qlogic 2432 Optical Fibre Channel PCIe cards (4 Gigabit)
|
2000-02-14 23:47:55 +00:00
|
|
|
.El
|
|
|
|
.Sh CONFIGURATION OPTIONS
|
2000-07-20 16:11:23 +00:00
|
|
|
Target mode support may be enabled with the
|
2000-11-10 17:46:15 +00:00
|
|
|
.Pp
|
2000-02-14 23:47:55 +00:00
|
|
|
.Cd options ISP_TARGET_MODE
|
2000-11-10 17:46:15 +00:00
|
|
|
.Pp
|
2000-02-14 23:47:55 +00:00
|
|
|
option.
|
|
|
|
.Sh BOOT OPTIONS
|
2006-02-06 19:28:46 +00:00
|
|
|
The following options are switchable by setting values in
|
|
|
|
.Pa /boot/device.hints .
|
|
|
|
.Pp
|
2001-09-04 09:47:40 +00:00
|
|
|
They are:
|
2006-02-06 19:28:46 +00:00
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Va hint.isp.0.disable
|
|
|
|
A hint value to disable driver in kernel.
|
2006-05-17 13:17:02 +00:00
|
|
|
.It Va hint.isp.0.fwload_disable
|
2006-02-06 19:28:46 +00:00
|
|
|
A hint value to disable loading of firmware
|
2006-09-18 15:24:20 +00:00
|
|
|
.Xr ispfw 4 .
|
2006-02-06 19:28:46 +00:00
|
|
|
.It Va hint.isp.0.prefer_memmap
|
2006-09-18 15:24:20 +00:00
|
|
|
A hint value to use PCI memory space instead of I/O space
|
2000-07-20 16:11:23 +00:00
|
|
|
access for.
|
2006-02-06 19:28:46 +00:00
|
|
|
.It Va hint.isp.0.prefer_iomap
|
|
|
|
A hint value to use PCI I/O space instead of Memory space
|
2000-07-20 16:11:23 +00:00
|
|
|
access for.
|
2006-02-06 19:28:46 +00:00
|
|
|
.It Va hint.isp.0.ignore_nvram
|
2006-09-18 15:24:20 +00:00
|
|
|
A hint value to ignore board NVRAM settings for.
|
|
|
|
Otherwise use NVRAM settings.
|
2006-02-06 19:28:46 +00:00
|
|
|
.It Va hint.isp.0.fullduplex
|
|
|
|
A hint value to set full duplex mode.
|
|
|
|
.It Va hint.isp.0.topology
|
2006-09-18 15:24:20 +00:00
|
|
|
A hint value to select topology of connection.
|
|
|
|
Supported values are:
|
2006-02-06 19:28:46 +00:00
|
|
|
.Pp
|
2006-09-18 15:24:20 +00:00
|
|
|
.Bl -tag -width ".Li lport-only" -compact
|
|
|
|
.It Li lport
|
|
|
|
Prefer loopback and fallback to point to point.
|
|
|
|
.It Li nport
|
|
|
|
Prefer point to point and fallback to loopback.
|
|
|
|
.It Li lport-only
|
|
|
|
Loopback only.
|
|
|
|
.It Li nport-only
|
|
|
|
Point to point only.
|
|
|
|
.El
|
2006-02-06 19:28:46 +00:00
|
|
|
.It Va hint.isp.0.portwwn
|
|
|
|
This should be the full 64 bit World Wide Port Name you would like
|
|
|
|
to use, overriding the value in NVRAM for the card.
|
|
|
|
.It Va hint.isp.0.nodewwn
|
2000-07-20 16:11:23 +00:00
|
|
|
This should be the full 64 bit World Wide Node Name you would like
|
|
|
|
to use, overriding the value in NVRAM for the card.
|
2006-02-06 19:28:46 +00:00
|
|
|
.It Va hint.isp.0.iid
|
2007-03-01 09:07:04 +00:00
|
|
|
A hint to override or set the Initiator ID or Loop ID.
|
|
|
|
For Fibre Channel
|
2007-02-28 23:21:51 +00:00
|
|
|
cards in Local Loop topologies it is
|
|
|
|
.Ar strongly
|
|
|
|
recommended that you set this value to non-zero.
|
2006-02-06 19:28:46 +00:00
|
|
|
.It Va hint.isp.0.role
|
|
|
|
A hint to define default role for isp instance (target, initiator, both).
|
|
|
|
.It Va hint.isp.0.debug
|
2007-02-28 23:21:51 +00:00
|
|
|
A hint value for a driver debug level (see the file
|
|
|
|
.Pa /usr/src/sys/dev/isp/ispvar.h
|
|
|
|
for the values.
|
|
|
|
.El
|
|
|
|
.Sh SYSCTL OPTIONS
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Va dev.isp.N.loop_down_limit
|
|
|
|
This value says how long to wait in seconds after loop has gone down before
|
2007-03-01 09:07:04 +00:00
|
|
|
giving up and expiring all of the devices that were visible.
|
|
|
|
The default is 300 seconds (5 minutes).
|
2010-07-30 11:58:18 +00:00
|
|
|
A separate (nonadjustable) timeout is used when
|
2007-02-28 23:21:51 +00:00
|
|
|
booting to not stop booting on lack of FC connectivity.
|
|
|
|
.It Va dev.isp.N.gone_device_time
|
|
|
|
This value says how long to wait for devices to reappear if they (temporarily)
|
2007-03-01 09:07:04 +00:00
|
|
|
disappear due to loop or fabric events.
|
|
|
|
While this timeout is running, I/O
|
2007-02-28 23:21:51 +00:00
|
|
|
to those devices will simply be held.
|
|
|
|
.It Va dev.isp.N.wwnn
|
|
|
|
This is the readonly World Wide Node Name value for this port.
|
|
|
|
.It Va dev.isp.N.wwpn
|
|
|
|
This is the readonly World Wide Port Name value for this port.
|
2000-02-14 23:47:55 +00:00
|
|
|
.El
|
2005-01-21 08:36:40 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr da 4 ,
|
|
|
|
.Xr intro 4 ,
|
|
|
|
.Xr ispfw 4 ,
|
|
|
|
.Xr sa 4 ,
|
2009-05-05 13:48:53 +00:00
|
|
|
.Xr scsi 4 ,
|
|
|
|
.Xr gmultipath 8
|
2005-01-21 08:36:40 +00:00
|
|
|
.Sh AUTHORS
|
|
|
|
The
|
|
|
|
.Nm
|
2007-02-28 23:21:51 +00:00
|
|
|
driver was written by Matthew Jacob originally for NetBSD at
|
|
|
|
NASA/Ames Research Center.
|
2000-02-14 23:47:55 +00:00
|
|
|
.Sh BUGS
|
|
|
|
The driver currently ignores some NVRAM settings.
|
|
|
|
.Pp
|
2007-02-28 23:21:51 +00:00
|
|
|
Target mode support is not completely reliable yet.
|
2001-09-04 09:47:40 +00:00
|
|
|
It works reasonably
|
2000-07-20 16:11:23 +00:00
|
|
|
well for Fibre Channel, somewhat well for Qlogic 1040 cards, but
|
2005-02-13 22:25:33 +00:00
|
|
|
does not yet work for the other cards (due to last minute unannounced
|
2000-07-20 16:11:23 +00:00
|
|
|
changes in firmware interfaces).
|