1.\" 2.\" SPDX-License-Identifier: BSD-3-Clause 3.\" 4.\" Copyright (c) 2009-2020 Alexander Motin <mav@FreeBSD.org> 5.\" Copyright (c) 2006 Marcus Alves Grando 6.\" Copyright (c) 1998-2001 Matthew Jacob, for NASA/Ames Research Center 7.\" 8.\" Redistribution and use in source and binary forms, with or without 9.\" modification, are permitted provided that the following conditions 10.\" are met: 11.\" 1. Redistributions of source code must retain the above copyright 12.\" notice, this list of conditions and the following disclaimer. 13.\" 2. Redistributions in binary form must reproduce the above copyright 14.\" notice, this list of conditions and the following disclaimer in the 15.\" documentation and/or other materials provided with the distribution. 16.\" 3. The name of the author may not be used to endorse or promote products 17.\" derived from this software without specific prior written permission. 18.\" 19.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29.\" 30.Dd April 8, 2025 31.Dt ISP 4 32.Os 33.Sh NAME 34.Nm isp 35.Nd Qlogic FibreChannel SCSI Host Adapters driver 36.Sh SYNOPSIS 37To compile this driver into the kernel, 38place the following lines in your 39kernel configuration file: 40.Bd -ragged -offset indent 41.Cd "device scbus" 42.Cd "device isp" 43.Cd "device ispfw" 44.Ed 45.Pp 46Alternatively, to load the driver as a 47module at boot time, place the following lines in 48.Xr loader.conf 5 : 49.Bd -literal -offset indent 50isp_load="YES" 51ispfw_load="YES" 52.Ed 53.Sh DESCRIPTION 54This driver provides access to 55.Tn FibreChannel 56SCSI devices. 57.Pp 58It supports initiator and target modes of FCP SCSI profile, 59utilizing Class 3 and Class 2 connections. 60Support is available for Public and Private loops, Point-to-Point 61and Fabric connections. 62.Pp 63Supported FC-Tape functionality is highly recommended for connections 64to tape drives that support it. 65It encompasses four elements from the T-10 FCP-4 specification: 66.Bl -bullet -offset indent 67.It 68Precise Delivery of Commands 69.It 70Confirmed Completion of FCP I/O Operations 71.It 72Retransmission of Unsuccessfully Transmitted IUs 73.It 74Task Retry Identification 75.El 76.Pp 77Together these features allow for link level error recovery with tape 78devices. 79Without it, an initiator cannot, for instance, tell whether a tape write 80command that has timed out resulted in all, part or none of the data going to 81the tape drive. 82FC-Tape is automatically enabled when connecting controller that supports 83it to a target that supports it. 84It may be disabled using configuration and hint options described below. 85.Sh HARDWARE 86The 87.Nm 88driver supports the following optical Fibre Chanel adapters: 89.Bl -column "Qlogic 2690/2692/2694 (2684/2692)" "Speed" "PCI-X" 90.It Model: Ta Speed: Ta Bus: 91.It Qlogic QLE2874 (2814) Ta 64Gb Ta PCIe 92.It Qlogic QLE2870/QLE2872 (2812) Ta 64Gb Ta PCIe 93.It Qlogic QLE2774 (2814) Ta 32Gb Ta PCIe 94.It Qlogic QLE2770/QLE2772 (2812) Ta 32Gb Ta PCIe 95.It Qlogic 2740/2742/2764 (2722/2714) Ta 32Gb Ta PCIe 96.It Qlogic 2690/2692/2694 (2684/2692) Ta 16Gb Ta PCIe 97.It Qlogic 267x/836x (2031/8031) FCoE Ta 16Gb Ta PCIe 98.It Qlogic 256x (2532) Ta 8Gb Ta PCIe 99.It Qlogic 246x (2432) Ta 4Gb Ta PCIe 100.It Qlogic 2422 Ta 4Gb Ta PCI-X 101.El 102.Sh FIRMWARE 103Firmware loading is supported and handled by 104.Xr firmware 9 . 105The correct firmware is either loaded automatically, if available for this 106type of adapter, or by manually loading the 107.Xr ispfw 4 108module. 109It is strongly recommended that you use the firmware available from 110.Xr ispfw 4 111as it is the one that most likely has been tested with this driver. 112.Sh CONFIGURATION OPTIONS 113Target mode support for Fibre Channel adapters may be enabled with the 114.Pp 115.Cd options ISP_TARGET_MODE 116.Pp 117option. 118.Pp 119To disable FC-Tape, use the following configuration option: 120.Pp 121.Cd options ISP_FCTAPE_OFF 122.Pp 123Note that even if the ISP_FCTAPE_OFF option is used, it may be overridden 124by the fctape hint described below. 125.Sh BOOT OPTIONS 126The following options are switchable by setting values in 127.Pa /boot/device.hints . 128.Pp 129They are: 130.Bl -tag -width indent 131.It Va hint.isp. Ns Ar N Ns Va .msi 132Limit on number of Message Signaled Interrupts (MSI) to be used. 133.It Va hint.isp. Ns Ar N Ns Va .msix 134Limit on number of Extended Message Signaled Interrupts (MSI-X) to be used. 135.It Va hint.isp. Ns Ar N Ns Va .fwload_disable 136A hint value to disable loading of firmware provided by 137.Xr ispfw 4 . 138.It Va hint.isp. Ns Ar N Ns Va .fwload_force 139A hint value to prefer firmware provided by 140.Xr ispfw 4 , 141even if it is older than the firmware in flash on the board. 142If fwload_disable is also specified, fwload_force will be ignored. 143.Pp 144By default, with 27XX and newer controllers, the 145.Xr isp 4 146driver will use the newer 147firmware. 148For older controllers, the 149.Xr isp 4 150driver will use the firmware provided by 151.Xr ispfw 4 152if it is available, and otherwise use the firmware in flash on the board. 153.It Va hint.isp. Ns Ar N Ns Va .ignore_nvram 154A hint value to ignore board NVRAM settings for. 155Otherwise use NVRAM settings. 156.It Va hint.isp. Ns Ar N Ns Va .fullduplex 157A hint value to set full duplex mode. 158.It Va hint.isp. Ns Ar N Ns Va .topology 159A hint value to select topology of connection. 160Supported values are: 161.Pp 162.Bl -tag -width ".Li lport-only" -compact 163.It Li lport 164Prefer arbitrated loop and fallback to point to point. 165.It Li nport 166Prefer point to point and fallback to arbitrated loop. 167.It Li lport-only 168Arbitrated loop only. 169.It Li nport-only 170Point to point only. 171.El 172.It Va hint.isp. Ns Ar N Ns Va .portwwn 173This should be the full 64 bit World Wide Port Name you would like 174to use, overriding the value in NVRAM for the card. 175.It Va hint.isp. Ns Ar N Ns Va .nodewwn 176This should be the full 64 bit World Wide Node Name you would like 177to use, overriding the value in NVRAM for the card. 178.It Va hint.isp. Ns Ar N Ns Va .iid 179A hint to override or set the Initiator ID or Loop ID. 180For Fibre Channel 181cards in Local Loop topologies it is 182.Ar strongly 183recommended that you set this value to non-zero. 184.It Va hint.isp. Ns Ar N Ns Va .role 185A hint to define default role for isp instance (0 -- none, 1 -- target, 1862 -- initiator, 3 -- both). 187.It Va hint.isp. Ns Ar N Ns Va .debug 188A hint value for a driver debug level (see the file 189.Pa /usr/src/sys/dev/isp/ispvar.h 190for the values. 191.It Va hint.isp. Ns Ar N Ns Va .vports 192A hint to create specified number of additional virtual ports. 193.It Va hint.isp. Ns Ar N Ns Va .nofctape 194Set this to 1 to disable FC-Tape operation on the given isp instance. 195.It Va hint.isp. Ns Ar N Ns Va .fctape 196Set this to 1 to enable FC-Tape operation on the given isp instance for 197targets that support it. 198.El 199.Sh SYSCTL OPTIONS 200.Bl -tag -width indent 201.It Va dev.isp. Ns Ar N Ns Va .loop_down_limit 202This value says how long to wait in seconds after loop has gone down before 203giving up and expiring all of the devices that were visible. 204The default is 300 seconds (5 minutes). 205A separate (nonadjustable) timeout is used when 206booting to not stop booting on lack of FC connectivity. 207.It Va dev.isp. Ns Ar N Ns Va .gone_device_time 208This value says how long to wait for devices to reappear if they (temporarily) 209disappear due to loop or fabric events. 210While this timeout is running, I/O 211to those devices will simply be held. 212.It Va dev.isp. Ns Ar N Ns Va .use_gff_id 213.It Va dev.isp. Ns Ar N Ns Va .use_gft_id 214Setting those options to 0 allows to disable use of GFF_ID and GFT_ID SNS 215requests during FC fabric scan. 216It may be useful if switch does not implement them correctly, 217preventing some devices from being found. 218Disabling them may cause unneeded logins to ports not supporting target role 219or even FCP at all. 220The default is 1 (enabled). 221.It Va dev.isp. Ns Ar N Ns Va .wwnn 222This is the readonly World Wide Node Name value for this port. 223.It Va dev.isp. Ns Ar N Ns Va .wwpn 224This is the readonly World Wide Port Name value for this port. 225.It Va dev.isp. Ns Ar N Ns Va .fw_version_flash 226The readonly flash firmware version value in the active region of the 227controller. 228.It Va dev.isp. Ns Ar N Ns Va .fw_version_ispfw 229The readonly firmware version value provided by 230.Xr ispfw 4 . 231.It Va dev.isp. Ns Ar N Ns Va .fw_version_run 232The readonly firmware version value currently executed on the controller. 233.El 234.Sh SEE ALSO 235.Xr da 4 , 236.Xr intro 4 , 237.Xr ispfw 4 , 238.Xr sa 4 , 239.Xr scsi 4 , 240.Xr gmultipath 8 241.Sh AUTHORS 242The 243.Nm 244driver was written by 245.An Matthew Jacob 246originally for NetBSD at NASA/Ames Research Center. 247Later improvement was done by 248.An Alexander Motin Aq Mt mav@FreeBSD.org . 249.Sh BUGS 250The driver currently ignores some NVRAM settings. 251