Skip to content

Commit

Permalink
scsi: docs: convert smartpqi.txt to ReST
Browse files Browse the repository at this point in the history
  • Loading branch information
mchehab authored and martinkpetersen committed Mar 12, 2020
1 parent d835971 commit ff1efa7
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 29 deletions.
1 change: 1 addition & 0 deletions Documentation/scsi/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ Linux SCSI Subsystem
scsi-parameters
scsi
sd-parameters
smartpqi

scsi_transport_srp/figures
52 changes: 25 additions & 27 deletions Documentation/scsi/smartpqi.txt → Documentation/scsi/smartpqi.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.. SPDX-License-Identifier: GPL-2.0
=====================================
SMARTPQI - Microsemi Smart PQI Driver
-----------------------------------------
=====================================

This file describes the smartpqi SCSI driver for Microsemi
(http://www.microsemi.com) PQI controllers. The smartpqi driver
Expand All @@ -16,65 +18,61 @@ For Microsemi smartpqi controller support, enable the smartpqi driver
when configuring the kernel.

For more information on the PQI Queuing Interface, please see:
http://www.t10.org/drafts.htm
http://www.t10.org/members/w_pqi2.htm

Supported devices:
------------------
- http://www.t10.org/drafts.htm
- http://www.t10.org/members/w_pqi2.htm

Supported devices
=================
<Controller names to be added as they become publicly available.>

smartpqi specific entries in /sys
-----------------------------
=================================

smartpqi host attributes:
-------------------------
/sys/class/scsi_host/host*/rescan
/sys/class/scsi_host/host*/driver_version
smartpqi host attributes
------------------------
- /sys/class/scsi_host/host*/rescan
- /sys/class/scsi_host/host*/driver_version

The host rescan attribute is a write only attribute. Writing to this
attribute will trigger the driver to scan for new, changed, or removed
devices and notify the SCSI mid-layer of any changes detected.

The version attribute is read-only and will return the driver version
and the controller firmware version.
For example:
For example::

driver: 0.9.13-370
firmware: 0.01-522

smartpqi sas device attributes
------------------------------
smartpqi sas device attributes
------------------------------
HBA devices are added to the SAS transport layer. These attributes are
automatically added by the SAS transport layer.

/sys/class/sas_device/end_device-X:X/sas_address
/sys/class/sas_device/end_device-X:X/enclosure_identifier
/sys/class/sas_device/end_device-X:X/scsi_target_id

smartpqi specific ioctls:
-------------------------
smartpqi specific ioctls
========================

For compatibility with applications written for the cciss protocol.

CCISS_DEREGDISK
CCISS_REGNEWDISK
CCISS_REGNEWD

The above three ioctls all do exactly the same thing, which is to cause the driver
to rescan for new devices. This does exactly the same thing as writing to the
smartpqi specific host "rescan" attribute.
CCISS_DEREGDISK, CCISS_REGNEWDISK, CCISS_REGNEWD
The above three ioctls all do exactly the same thing, which is to cause the driver
to rescan for new devices. This does exactly the same thing as writing to the
smartpqi specific host "rescan" attribute.

CCISS_GETPCIINFO

Returns PCI domain, bus, device and function and "board ID" (PCI subsystem ID).

CCISS_GETDRIVVER
Returns driver version in three bytes encoded as::

Returns driver version in three bytes encoded as:
(DRIVER_MAJOR << 28) | (DRIVER_MINOR << 24) | (DRIVER_RELEASE << 16) | DRIVER_REVISION;
(DRIVER_MAJOR << 28) | (DRIVER_MINOR << 24) | (DRIVER_RELEASE << 16) | DRIVER_REVISION;

CCISS_PASSTHRU

Allows "BMIC" and "CISS" commands to be passed through to the Smart Storage Array.
These are used extensively by the SSA Array Configuration Utility, SNMP storage
agents, etc.

2 changes: 1 addition & 1 deletion MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -11092,7 +11092,7 @@ F: drivers/scsi/smartpqi/Kconfig
F: drivers/scsi/smartpqi/Makefile
F: include/linux/cciss*.h
F: include/uapi/linux/cciss*.h
F: Documentation/scsi/smartpqi.txt
F: Documentation/scsi/smartpqi.rst

MICROSEMI ETHERNET SWITCH DRIVER
M: Alexandre Belloni <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion drivers/scsi/smartpqi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ config SCSI_SMARTPQI
Note: the aacraid driver will not manage a smartpqi
controller. You need to enable smartpqi for smartpqi
controllers. For more information, please see
Documentation/scsi/smartpqi.txt
Documentation/scsi/smartpqi.rst

0 comments on commit ff1efa7

Please sign in to comment.