]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man4/smartpqi.4
getpt.3: tfix
[thirdparty/man-pages.git] / man4 / smartpqi.4
CommitLineData
484cb54f
DB
1.\" Copyright (C) 2016-2017, Microsemi Corporation
2.\" Copyright (C) 2016, PMC-Sierra, Inc.
3.\" Written by Kevin Barnett <kevin.barnett@microsemi.com>
4.\"
5.\" %%%LICENSE_START(GPLv2_ONELINE)
6.\" Licensed under GNU General Public License version 2 (GPLv2)
7.\" %%%LICENSE_END
b0867156 8.TH SMARTPQI 4 2017-10-19 "Linux" "Linux Programmer's Manual"
484cb54f
DB
9.SH NAME
10smartpqi \- Microsemi Smart Family SCSI driver
11.SH SYNOPSIS
b0867156
BR
12.SY "modprobe smartpqi"
13.RB [ disable_device_id_wildcards= { 0 | 1 }]
14.RB [ disable_heartbeat= { 0 | 1 }]
15.RB [ disable_ctrl_shutdown= { 0 | 1 }]
16.RB [ lockup_action= { none | reboot | panic }]
17.YS
484cb54f
DB
18.SH DESCRIPTION
19.B smartpqi
20is a SCSI driver for Microsemi Smart Family controllers.
25ee990c
MK
21.SS Supported \f[BI]ioctl\fP\/() operations
22For compatibility with applications written for the
23.BR cciss (4)
24and
25.BR hpsa (4)
26drivers, many, but not all of the
27.BR ioctl (2)
28operations supported by the
29.B hpsa
30driver are also supported by the
31.B smartpqi
32driver.
33The data structures used by these operations
34are described in the Linux kernel source file
35.IR include/linux/cciss_ioctl.h .
36.TP
37.BR CCISS_DEREGDISK ", " CCISS_REGNEWDISK ", " CCISS_REGNEWD
38These operations
39all do exactly the same thing, which is to cause the driver to re-scan
40for new devices.
41This does exactly the same thing as writing to the
42.BR smartpqi -specific
43host
44.I rescan
45attribute.
46.TP
47.B CCISS_GETPCIINFO
48This operation Returns the PCI domain, bus,
49device and function and "board ID" (PCI subsystem ID).
50.TP
51.B CCISS_GETDRIVVER
52This operation returns the driver version in four bytes, encoded as:
53.IP
54.in +4n
55.EX
56(major_version << 28) | (minor_version << 24) |
57 (release << 16) | revision
58.EE
59.in
60.TP
61.B CCISS_PASSTHRU
62Allows BMIC and CISS commands to be passed through to the controller.
63.SS Boot options
b0867156
BR
64.TP
65.BR disable_device_id_wildcards= { 0 | 1 }
66Disables support for device ID wildcards.
484cb54f 67The default value is 0.
b0867156
BR
68.TP
69.BR disable_heartbeat= { 0 | 1 }
70Disables support for the controller's heartbeat check.
71This parameter is used for debugging purposes.
72The default value is 0, leaving the controller's heartbeat check active.
73.TP
74.BR disable_ctrl_shutdown= { 0 | 1 }
75Disables support for shutting down the controller in the
76event of a controller lockup.
484cb54f 77The default value is 0.
b0867156
BR
78.TP
79.BR lockup_action= { none | reboot | panic }
80Specifies the action the driver takes when a controller
81lockup is detected.
82The default action is
83.BR none .
84.TS
85l l
86---
87l l.
88parameter action
89\fBnone\fP take controller offline only
90\fBreboot\fP reboot the system
91\fBpanic\fP panic the system
92.TE
484cb54f 93.SH FILES
b0867156
BR
94.SS Device nodes
95Logical drives are accessed via the SCSI disk driver
96.RI ( sd ),
97tape drives via the SCSI tape driver
98.RI ( st ),
99and the RAID controller via the SCSI generic driver
100.RI ( sg ),
101with device nodes named
102.IR /dev/sd *,
103.IR /dev/st *,
104and
105.IR /dev/sg *,
106respectively.
107.SS SmartPQI-specific host attribute files in \f[BI]/sys\fP
108.TP
109.IR /sys/class/scsi_host/host * /rescan
110The host
111.I rescan
112attribute is a write-only attribute.
113Writing to this attribute will cause the driver to scan for new,
114changed, or removed devices (e.g., hot-plugged tape drives, or newly
115configured or deleted logical drives) and notify the SCSI mid-layer of
116any changes detected.
1408b135 117Usually this action is triggered automatically by configuration
b0867156 118changes, so the user should not normally have to write to this file.
1408b135 119Doing so may be useful when hot-plugging devices such as tape drives or
b0867156
BR
120entire storage boxes containing pre-configured logical drives.
121.TP
122.IR /sys/class/scsi_host/host * /version
123The host
124.I version
125attribute is a read-only attribute.
126This attribute contains the driver version and the controller firmware
127version.
128.IP
484cb54f 129For example:
813d39bc 130.IP
b0867156
BR
131.in +4n
132.EX
133$ \c
134.B cat /sys/class/scsi_host/host1/version
135driver: 1.1.2\-126
136firmware: 1.29\-112
137.EE
138.in
139.TP
140.IR /sys/class/scsi_host/host * /lockup_action
141The host
142.I lockup_action
143attribute is a read/write attribute.
144This attribute will cause the driver to perform a specific action in the
145unlikely event that a controller lockup has been detected.
146See
147.BR OPTIONS
148above
149for an explanation of the
150.I lockup_action
151values.
152.SS SmartPQI-specific disk attribute files in \f[BI]/sys\fP
153In the file specifications below,
154.I c
155stands for the number of the appropriate SCSI controller,
156.I b
1408b135 157is the bus number,
b0867156
BR
158.I t
159the target number, and
160.I l
1408b135 161is the logical unit number (LUN).
b0867156
BR
162.TP
163.IR /sys/class/scsi_disk/ c : b : t : l /device/raid_level
164The
165.I raid_level
166attribute is read-only.
484cb54f 167This attribute contains the RAID level of each logical drive.
b0867156 168.IP
484cb54f 169For example:
813d39bc 170.IP
b0867156
BR
171.in +4n
172.EX
173$ \c
174.B cat /sys/class/scsi_disk/4:0:0:0/device/raid_level
484cb54f 175RAID 0
b0867156
BR
176.EE
177.in
178.TP
179.IR /sys/class/scsi_disk/c : b : t : l/device/sas_address
180The
181.I sas_address
182attribute is read-only.
484cb54f 183This attribute contains the unique identifier of the disk.
b0867156 184.IP
484cb54f 185For example:
813d39bc 186.IP
b0867156
BR
187.in +4n
188.EX
189$ \c
190.B cat /sys/class/scsi_disk/1:0:3:0/device/sas_address
484cb54f 1910x5001173d028543a2
b0867156
BR
192.EE
193.in
194.TP
195.IR /sys/class/scsi_disk/c : b : t : l/device/ssd_smart_path_enabled
196The
197.I ssd_smart_path_enabled
198attribute is read-only.
b0867156 199This attribute is for ioaccel-enabled volumes.
a39a3f8d
MK
200(Ioaccel is an alternative driver submission path that allows the
201driver to send I/O requests directly to backend SCSI devices,
202bypassing the controller firmware.
203This results in an increase in performance.
204This method is used for HBA disks and for logical volumes comprised of SSDs.)
b0867156
BR
205Contains 1 if ioaccel is enabled for the volume and 0 otherwise.
206.IP
484cb54f 207For example:
813d39bc 208.IP
8c5ea8ce 209.in +2n
b0867156
BR
210.EX
211$ \c
b0867156 212.B cat /sys/class/scsi_disk/1:0:3:0/device/ssd_smart_path_enabled
484cb54f 2130
b0867156
BR
214.EE
215.in
b7097761
MK
216.SH VERSIONS
217The
218.B smarpqi
219driver was added in Linux 4.9.
25ee990c
MK
220.SH NOTES
221.SS Configuration
d8b6e735
MK
222To configure a Microsemi Smart Family controller,
223refer to the User Guide for the controller,
224which can be found by searching for the specific controller at
225.UR https://storage.microsemi.com/
226.UE .
b0867156
BR
227.SH SEE ALSO
228.BR cciss (4),
229.BR hpsa (4),
230.BR sd (4),
231.BR st (4)
232.PP
233.I Documentation/ABI/testing/sysfs\-bus\-pci\-devices\-cciss
234in the Linux kernel source tree.