]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/man/man4/ocs_fc.4
sys/{x86,amd64}: remove one of doubled ;s
[FreeBSD/FreeBSD.git] / share / man / man4 / ocs_fc.4
1 .\" Copyright (c) 2017 Broadcom. All rights reserved.
2 .\" The term "Broadcom" refers to Broadcom Limited and/or its subsidiaries.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions are met:
6 .\"
7 .\" 1. Redistributions of source code must retain the above copyright notice,
8 .\"    this list of conditions and the following disclaimer.
9 .\"
10 .\" 2. Redistributions in binary form must reproduce the above copyright notice,
11 .\"    this list of conditions and the following disclaimer in the documentation
12 .\"    and/or other materials provided with the distribution.
13 .\"
14 .\" 3. Neither the name of the copyright holder nor the names of its contributors
15 .\"    may be used to endorse or promote products derived from this software
16 .\"    without specific prior written permission.
17 .\"
18 .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19 .\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22 .\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
29 .\"
30 .\" $FreeBSD$
31 .\"
32 .Dd March 30, 2018
33 .Dt OCS_FC 4
34 .Os
35 .Sh NAME
36 .Nm ocs_fc
37 .Nd "Device driver for Emulex Fibre Channel Host Adapters"
38 .Sh SYNOPSIS
39 To compile this driver into the kernel, add this line to the
40 kernel configuration file:
41 .Bd -ragged -offset indent
42 .Cd "device ocs_fc"
43 .Ed
44 .Pp
45 To load the driver as a module at boot, add this line to
46 .Xr loader.conf 5 :
47 .Bd -literal -offset indent
48 ocs_fc_load="YES"
49 .Ed
50 .Sh DESCRIPTION
51 The
52 .Nm
53 driver provides access to Fibre Channel SCSI devices.
54 .Pp
55 The
56 .Nm
57 driver supports initiator and target modes.
58 Support is available for Arbitrated loops, Point-to-Point,
59 and Fabric connections.
60 FC-Tape is highly recommended for connections to tape drives that support
61 it.
62 FC-Tape includes four elements from the T-10 FCP-4 specification:
63 .Bl -bullet -offset indent
64 .It
65 Precise Delivery of Commands
66 .It
67 Confirmed Completion of FCP I/O Operations
68 .It
69 Retransmission of Unsuccessfully Transmitted IUs
70 .It
71 Task Retry Identification
72 .El
73 .Pp
74 Together these features allow for link level error recovery with tape
75 devices.
76 Without link level error recovery, an initiator cannot, for instance, tell whether a tape write
77 command that has timed out resulted in all, part, or none of the data going to
78 the tape drive.
79 FC-Tape is automatically enabled when both the controller and target support it.
80
81 .Sh HARDWARE
82 The
83 .Nm
84 driver supports these Fibre Channel adapters:
85 .Bl -tag -width xxxxxx -offset indent
86 .It Emulex 16/8G FC GEN 5 HBAS
87 .Bd -literal -offset indent
88 LPe15004 FC Host Bus Adapters
89 LPe160XX FC Host Bus Adapters
90 .Ed
91 .It Emulex 32/16G FC GEN 6 HBAS
92 .Bd -literal -offset indent
93 LPe3100X FC Host Bus Adapters
94 LPe3200X FC Host Bus Adapters
95 .Ed
96 .El
97 .Sh UPDATING FIRMWARE
98 Adapter firmware updates are persistent.
99 .Pp
100 Firmware can be updated by following these steps:
101 .Bl -enum
102 .It
103 Copy this code to a
104 .Pa Makefile :
105 .Bd -literal -offset indent
106 KMOD=ocsflash
107 FIRMWS=imagename.grp:ocsflash
108 \&.include <bsd.kmod.mk>
109 .Ed
110 .It
111 Replace
112 .Pa imagename
113 with the name of the GRP file.
114 .It
115 Copy the
116 .Pa Makefile
117 and GRP file to a local directory
118 .It
119 Execute
120 .Cm make
121 and copy the generated
122 .Pa ocsflash.ko
123 file to
124 .Pa /lib/modules
125 .It
126 .Cm sysctl dev.ocs_fc.<N>.fw_upgrade=ocsflash
127 .It
128 Check kernel messages regarding status of the operation
129 .It
130 Reboot the machine
131 .El
132 .Pp
133 .Sh BOOT OPTIONS
134 Options are controlled by setting values in
135 .Pa /boot/device.hints .
136 .Pp
137 They are:
138 .Bl -tag -width indent
139 .It Va hint.ocs_fc.N.initiator
140 Enable initiator functionality.
141 Default 1 (enabled), 0 to disable.
142 .It Va hint.ocs_fc.N.target
143 Enable target functionality.
144 Default 1 (enabled), 0 to disable.
145 .It Va hint.ocs_fc.N.topology
146 Topology: 0 for Auto, 1 for NPort only, 2 for Loop only.
147 .It Va hint.ocs_fc.N.speed
148 Link speed in megabits per second.
149 Possible values include:
150 0 Auto-speed negotiation (default), 4000 (4GFC), 8000 (8GFC), 16000 (16GFC).
151 .El
152 .Sh SYSCTL OPTIONS
153 .Bl -tag -width indent
154 .It Va dev.ocs_fc.N.port_state
155 Port state (read/write).
156 Valid values are
157 .Li online
158 and
159 .Li offline .
160 .It Va dev.ocs_fc.N.wwpn
161 World Wide Port Name (read/write).
162 .It Va dev.ocs_fc.N.wwnn
163 World Wide Node Name (read/write).
164 .It Va dev.ocs_fc.N.fwrev
165 Firmware revision (read-only).
166 .It Va dev.ocs_fc.N.sn
167 Adapter serial number (read-only).
168 .It Va dev.ocs_fc.N.configured_speed
169 Configured Port Speed (read/write).
170 Valid values are:
171 0 Auto-speed negotiation (default), 4000 (4GFC), 8000 (8GFC), 16000 (16GFC).
172 .It Va dev.ocs_fc.N.configured_topology
173 Configured Port Topology (read/write).
174 Valid values are:
175 0-Auto; 1-NPort; 2-Loop.
176 .It Va dev.ocs_fc.N.current_speed
177 Current Port Speed (read-only).
178 .It Va dev.ocs_fc.N.current_topology
179 Current Port Topology (read-only).
180 .El
181 .Sh SUPPORT
182 For general information and support,
183 go to the Broadcom website at:
184 .Pa http://www.broadcom.com/
185 or E-Mail at
186 .Pa ocs-driver-team.pdl@broadcom.com.
187 .Sh SEE ALSO
188 .Xr ifconfig 8
189 .Sh AUTHORS
190 .An -nosplit
191 The
192 .Nm
193 driver was written by
194 .An Broadcom.