1 .\" Copyright (C) 2019, Microchip Technology Inc. and its subsidiaries
2 .\" Copyright (C) 2016-2018, Microsemi Corporation
3 .\" Copyright (C) 2016, PMC-Sierra, Inc.
4 .\" Written by Kevin Barnett <kevin.barnett@microsemi.com>
6 .\" %%%LICENSE_START(GPLv2_ONELINE)
7 .\" Licensed under GNU General Public License version 2 (GPLv2)
9 .TH SMARTPQI 4 2021-03-22 "Linux" "Linux Programmer's Manual"
11 smartpqi \- Microsemi Smart Family SCSI driver
13 .SY "modprobe smartpqi"
14 .RB [ disable_device_id_wildcards= { 0 | 1 }]
15 .RB [ disable_heartbeat= { 0 | 1 }]
16 .RB [ disable_ctrl_shutdown= { 0 | 1 }]
17 .RB [ lockup_action= { none | reboot | panic }]
18 .RB [ expose_ld_first= { 0 | 1 }]
19 .RB [ hide_vsep= { 0 | 1 }]
23 is a SCSI driver for Microsemi Smart Family controllers.
24 .SS Supported \f[BI]ioctl\fP\/() operations
25 For compatibility with applications written for the
29 drivers, many, but not all of the
31 operations supported by the
33 driver are also supported by the
36 The data structures used by these operations
37 are described in the Linux kernel source file
38 .IR include/linux/cciss_ioctl.h .
40 .BR CCISS_DEREGDISK ", " CCISS_REGNEWDISK ", " CCISS_REGNEWD
42 all do exactly the same thing, which is to cause the driver to re-scan
44 This does exactly the same thing as writing to the
45 .BR smartpqi -specific
51 This operation returns the PCI domain, bus,
52 device, and function and "board ID" (PCI subsystem ID).
55 This operation returns the driver version in four bytes, encoded as:
59 (major_version << 28) | (minor_version << 24) |
60 (release << 16) | revision
65 Allows BMIC and CISS commands to be passed through to the controller.
68 .BR disable_device_id_wildcards= { 0 | 1 }
69 Disables support for device ID wildcards.
70 The default value is 0.
72 .BR disable_heartbeat= { 0 | 1 }
73 Disables support for the controller's heartbeat check.
74 This parameter is used for debugging purposes.
75 The default value is 0, leaving the controller's heartbeat check active.
77 .BR disable_ctrl_shutdown= { 0 | 1 }
78 Disables support for shutting down the controller in the
79 event of a controller lockup.
80 The default value is 0.
82 .BR lockup_action= { none | reboot | panic }
83 Specifies the action the driver takes when a controller
92 \fBnone\fP take controller offline only
93 \fBreboot\fP reboot the system
94 \fBpanic\fP panic the system
97 .BR expose_ld_first= { 0 | 1 }
98 This option enables support for exposing logical devices to
99 the operating system before physical devices.
100 The default value is 0.
102 .BR hide_vsep= { 0 | 1 }
103 This option enables disabling exposure of the virtual SEP to the host.
104 This is usually associated with direct attached drives.
105 The default value is 0.
108 Logical drives are accessed via the SCSI disk driver
110 tape drives via the SCSI tape driver
112 and the RAID controller via the SCSI generic driver
114 with device nodes named
120 .SS SmartPQI-specific host attribute files in \f[BI]/sys\fP
122 .IR /sys/class/scsi_host/host * /rescan
125 attribute is a write-only attribute.
126 Writing to this attribute will cause the driver to scan for new,
127 changed, or removed devices (e.g., hot-plugged tape drives, or newly
128 configured or deleted logical drives) and notify the SCSI mid-layer of
129 any changes detected.
130 Usually this action is triggered automatically by configuration
131 changes, so the user should not normally have to write to this file.
132 Doing so may be useful when hot-plugging devices such as tape drives or
133 entire storage boxes containing pre-configured logical drives.
135 .IR /sys/class/scsi_host/host * /version
138 attribute is a read-only attribute.
139 This attribute contains the driver version and the controller firmware
147 .B cat /sys/class/scsi_host/host1/version
153 .IR /sys/class/scsi_host/host * /lockup_action
156 attribute is a read/write attribute.
157 This attribute will cause the driver to perform a specific action in the
158 unlikely event that a controller lockup has been detected.
162 for an explanation of the
166 .IR /sys/class/scsi_host/host*/driver_version
169 attribute is read-only.
170 This attribute contains the smartpqi driver version.
177 .B cat /sys/class/scsi_host/host1/driver_version
182 .IR /sys/class/scsi_host/host*/firmware_version
185 attribute is read-only.
186 This attribute contains the controller firmware version.
193 .B cat /sys/class/scsi_host/host1/firmware_version
198 .IR /sys/class/scsi_host/host*/model
201 attribute is read-only.
202 This attribute contains the product identification string of the controller.
209 .B cat /sys/class/scsi_host/host1/model
214 .IR /sys/class/scsi_host/host*/serial_number
217 attribute is read-only.
218 This attribute contains the unique identification number of the controller.
225 .B cat /sys/class/scsi_host/host1/serial_number
230 .IR /sys/class/scsi_host/host*/vendor
233 attribute is read-only.
234 This attribute contains the vendor identification string of the controller.
241 .B cat /sys/class/scsi_host/host1/vendor
245 .SS SmartPQI-specific disk attribute files in \f[BI]/sys\fP
246 In the file specifications below,
248 stands for the number of the appropriate SCSI controller,
252 the target number, and
254 is the logical unit number (LUN).
256 .IR /sys/class/scsi_disk/ c : b : t : l /device/raid_level
259 attribute is read-only.
260 This attribute contains the RAID level of each logical drive.
267 .B cat /sys/class/scsi_disk/4:0:0:0/device/raid_level
272 .IR /sys/class/scsi_disk/c : b : t : l/device/sas_address
275 attribute is read-only.
276 This attribute contains the unique identifier of the disk.
283 .B cat /sys/class/scsi_disk/1:0:3:0/device/sas_address
288 .IR /sys/class/scsi_disk/c : b : t : l/device/ssd_smart_path_enabled
290 .I ssd_smart_path_enabled
291 attribute is read-only.
292 This attribute is for ioaccel-enabled volumes.
293 (Ioaccel is an alternative driver submission path that allows the
294 driver to send I/O requests directly to backend SCSI devices,
295 bypassing the controller firmware.
296 This results in an increase in performance.
297 This method is used for HBA disks and for logical volumes comprised of SSDs.)
298 Contains 1 if ioaccel is enabled for the volume and 0 otherwise.
305 .B cat /sys/class/scsi_disk/1:0:3:0/device/ssd_smart_path_enabled
312 driver was added in Linux 4.9.
315 To configure a Microsemi Smart Family controller,
316 refer to the User Guide for the controller,
317 which can be found by searching for the specific controller at
318 .UR https://storage.microsemi.com/
326 .I Documentation/ABI/testing/sysfs\-bus\-pci\-devices\-cciss
327 in the Linux kernel source tree.