1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22# Copyright 2015 QLogic Corporation
23
24#
25# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
26# Use is subject to license terms.
27#
28# Qlogic Fibre Channel Adapter driver configuration
29#
30#ident	"Copyright 2015 QLogic Corporation; ql.conf"
31#
32
33#
34# Copyright (C) QLogic Corporation 1998-2015. All rights reserved.
35#
36
37#   File is setup as the default parameters for all adapters in the
38#   system.
39#   If a parameter needs to be changed for a particular adapter,
40#   make a copy of the parameter. Then change the hba number
41#   (decimal) in the parameter to match the adapter instance number
42#   that is displayed during the boot process. Now alter the
43#   parameter for the adapter.
44#
45#   example:
46#       Setting hard address of 124 and 125 for adapter
47#       instance 3 and 4 respectively.
48#
49#       Before:
50#           enable-adapter-hard-loop-ID=0;
51#
52#           adapter-hard-loop-ID=0;
53#
54#       After:
55#           enable-adapter-hard-loop-ID=0;
56#           hba3-enable-adapter-hard-loop-ID=1;
57#           hba4-enable-adapter-hard-loop-ID=1;
58#
59#           adapter-hard-loop-ID=0;
60#           hba3-adapter-hard-loop-ID=124;
61#           hba4-adapter-hard-loop-ID=125;
62#
63
64#Name:  Maximum frame length
65#Type:  Integer, bytes;  Range: 512, 1024, 2048
66#       Default: 2048
67#Usage: This field specifies the frame payload length (in bytes) used by
68#       the ISP2xxx firmware.
69#NOTE:  The minimum value is 512 bytes; if this variable is not equal to
70#       512, 1024 or 2048, the ISP2xxx defaults to values specified
71#       above.
72max-frame-length=2048;
73
74#Name:  Execution throttle
75#Type:  Integer, commands; Range: 1 - 65535; Default: 32
76#Usage: This field specifies the maximum number of commands sent per LUN
77#       by the ISP2xxx firmware.
78#NOTE:  Exceeding device capabilities causes unneeded command retries
79#       that impact performance.
80execution-throttle=32;
81
82#Name:  Login timeout
83#Type:  Integer, count; Range: 0 - 255; Default: 3
84#Usage: This field specifies the maximum number seconds to
85#       wait for the login of a device to complete.
86#NOTE:  Large values may cause long delays during initialization
87#       and device reconfiguration.
88login-timeout=3;
89
90#Name:  Login retry count
91#Type:  Integer, count; Range: 0 - 255; Default: 4
92#Usage: This field specifies the maximum number of retry attempts
93#       for the firmware when the login into a device fails.
94#NOTE:  Large values may cause long delays during initialization
95#       and device reconfiguration.
96login-retry-count=4;
97
98#Name:  Enable adapter hard loop ID
99#Type:  Integer, flag; Range: 0 (disable), 1 (enable); Default: 0
100#Usage: This field allows the setting of adapters hard loop ID on the
101#       fibre channel bus.
102#NOTE:  May be necessary on some bus configurations where devices fail to
103#       appear.
104enable-adapter-hard-loop-ID=0;
105
106#Name:  Adapter hard loop ID
107#Type:  Integer, ID; Range: 0-125; Default: 0
108#Usage: This field specifies the adapters hard loop ID to be used on the
109#       Fibre Channel bus.
110#NOTE:  This field takes effect only when adapter hard loop ID is enabled.
111adapter-hard-loop-ID=0;
112
113#Name:  Enable LIP reset on bus reset
114#Type:  Integer, flag; Range: 0 (disable), 1 (enable); Default: 0
115#Usage: This field enables the adapter to issue a LIP reset during Fibre
116#       Channel reset.
117enable-LIP-reset-on-bus-reset=0;
118
119#Name:  Enable LIP full login on bus reset
120#Type:  Integer, flag; Range: 0 (disable), 1 (enable); Default: 1
121#Usage: This field enables the adapter to issue a LIP full login reset
122#       during Fibre Channel reset.
123enable-LIP-full-login-on-bus-reset=1;
124
125#Name:  Enable target reset on bus reset
126#Type:  Integer, flag; Range: 0 (disable), 1 (enable); Default: 0
127#Usage: This field enables the adapter to issue a LIP target reset during
128#       Fibre Channel reset.
129enable-target-reset-on-bus-reset=0;
130
131#Name:  Reset delay
132#Type:  Integer, seconds; Range: 1 - 255; Default: 5
133#Usage: This field specifies the delay after a reset before sending
134#       commands to the devices on the Fibre Channel bus.
135reset-delay=5;
136
137#Name:  Port down retry count
138#Type:  Integer, count; Range: 0 - 255; Default: 8
139#Usage: This field specifies the amount of command retries to be done
140#       when devices are not responding on the Fibre Channel bus.
141#NOTE:  Large values may cause long delays for failover software to
142#       detect a failing device.
143port-down-retry-count=8;
144
145#Name:  Port down retry delay
146#Type:  Integer, count; Range 0 - 255 seconds. Default: 2
147#Usage: Amount of time to delay between port down retries.
148#NOTE:  Large values may cause long delays for failover software to
149#       detect a failing device. May also cause upper layer driver
150#       or applications to timeout the IO's.
151port-down-retry-delay=2;
152
153#Name:  Queue full retry count
154#Type:  Integer, count. Range: 0 - 255. Default: 16
155#Usage: This field specified the number of times to retry a SCSI
156#       queue full error.
157queue-full-retry-count=16;
158
159#Name:  Queue full retry delay
160#Type:  Integer, seconds. Range: 0 - 255 seconds. Default: 2
161#Usage: This field specifies the amount of time to delay after a SCSI
162#       queue full error before starting any new I/O commands.
163queue-full-retry-delay=2;
164
165#Name:  Connection options
166#Type:  Integer, mode; Range: 0 - 2; Default: 2
167#       0 = loop only
168#       1 = point-to-point only
169#       2 = loop preferred, else point-to-point
170#Usage: This field specifies the connection mode the driver firmware
171#       uses. When connecting the HBA to a switch port with auto-
172#       mode sensing capability (a G port), it is recommended that this
173#       parameter be set to either 0 or 1, not 2. Setting this
174#       parameter to 2 when connected to a G port on a switch may
175#       result in device lost or system hang.
176connection-options=2;
177
178#Name:  Enable FCP 2 Error Recovery
179#Type:  Integer, flag; Range: 0 (disable), 1 (enable); Default: 1
180#Usage: This field enables/disables the Fibre Channel FCP 2 error
181#       recovery support.
182enable-FCP-2-error-recovery=1;
183
184#Name:  Fibre Channel Data Rate Option
185#Type:  Integer, mode; Range: 0-5; Default: 2
186#       0 = 1 gigabit/second
187#       1 = 2 gigabit/second
188#       2 = Auto-negotiate
189#       3 = 4 gigabit/second
190#       4 = 8 gigabit/second
191#       5 = 16 gigabit/second
192#Usage: This field specifies the data rate which the driver uses.
193fc-data-rate=2;
194
195#Name:  Link down timeout
196#Type:  Integer, seconds; Range: 0 - 240; Default: 0
197#Usage: This field specifies the amount of time the driver waits for
198#       a Fibre Channel loop to come up before reporting the failure.
199#NOTE:  Small values may report transient errors that should be ignored.
200link-down-timeout=0;
201
202#Name:  Link down error
203#Type:  Integer, flag; Range: 0 (disable), 1 (enable); Default: 1
204#Usage: This field disables the driver error reporting during link down
205#       conditions.
206enable-link-down-error=1;
207
208#Name:  Enable extended logging
209#Type:  Integer, flag; Range: 0 (disable), 1 (enable); Default: 0
210#Usage: This field enables logging of driver detected events occurring
211#       either in the driver or fibre channel bus. Events are logged
212#       in Solaris /var/adm/messages file.
213extended-logging=0;
214
215#Name:  Firmware Dump Flags
216#Type:  Integer, flag bits; Range: 0 (disable), 1 (enable); Default: 0
217#Usage: These flags are used to force a firmware dump when the flag
218#       condition occurs. More than one flag bit can be combined to
219#       obtain the desired result.
220#       TAKE_FW_DUMP_ON_MAILBOX_TIMEOUT         1
221#       TAKE_FW_DUMP_ON_ISP_SYSTEM_ERROR        2
222#       TAKE_FW_DUMP_ON_DRIVER_COMMAND_TIMEOUT  4
223#       TAKE_FW_DUMP_ON_LOOP_OFFLINE_TIMEOUT    8
224firmware-dump-flags=0;
225
226#Name:  PCI max read request override
227#Type:  Integer, bytes; Range: 128, 256, 512, 1024, 2048, 4096
228#Usage: This field specifies the value to be used for the PCI max read
229#       request setting, overriding the default value or the value programmed
230#       by the system.
231#NOTE:  The minimum value is 128 bytes on PCI Express and 512 on PCI; if
232#       this variable does not exist or is not equal to 128, 256, 512,
233#       1024, 2048 or 4096, the ISP2xxx uses the default or the value
234#       specified by the system.
235pci-max-read-request=2048;
236
237#Name:	Init Loop Sync Time
238#Type:  Integer, seconds; Range: 1 - 240; Default: 10
239#Usage:	This field specific the time the driver will wait for the
240#	switch and the HBA firmware to sync during boot or the
241#	initial loading of the driver.
242init-loop-sync-wait=10;
243
244#Name:  DDI Force Load
245#Type:  String List
246#Usage: This field declares firmware module paths so that they get
247#       loaded early enough to be available for qlc root instance to
248#       use.  Correct operation depends on the value of 'ddi-forceload';
249#       this value should not be changed by the user.
250ddi-forceload = "misc/qlc/qlc_fw_2200", "misc/qlc/qlc_fw_2300", "misc/qlc/qlc_fw_2400", "misc/qlc/qlc_fw_2500", "misc/qlc/qlc_fw_2700", "misc/qlc/qlc_fw_6322", "misc/qlc/qlc_fw_8100", "misc/qlc/qlc_fw_8301fc";
251
252#Name:  MSI-X vectors
253#Type:  Integer, count; Range 0 - 255 vectors; Default: 5
254#Usage: Number of MSI-X vectors to use if supported by adapter.
255#NOTE:  The minimum number used will be what is required for the adapter
256#	to function, which may be greater than the supplied value.
257msix-vectors=5;
258
259#Name:  Completion threads
260#Type:  Integer, count; Range 1 - 255 threads; Default: 4
261#Usage: Number of threads used for I/O completion callbacks.
262completion-threads=4;
263
264