Blame SOURCES/1112307-mpo-7.3.0-cciss.4.patch

1bb262
From 25067420ac8b316f3cd3710bb57e85c5e3bd7c62 Mon Sep 17 00:00:00 2001
1bb262
From: =?UTF-8?q?Nikola=20Forr=C3=B3?= <nforro@redhat.com>
1bb262
Date: Tue, 28 Jun 2016 10:57:31 +0200
1bb262
Subject: [PATCH 01/17] cciss.4: replace man page content with notice about
1bb262
 driver removal
1bb262
1bb262
---
1bb262
 man-pages/man4/cciss.4 | 347 +------------------------------------------------
1bb262
 1 file changed, 6 insertions(+), 341 deletions(-)
1bb262
1bb262
diff --git a/man-pages/man4/cciss.4 b/man-pages/man4/cciss.4
1bb262
index e9d64ee..a2320de 100644
1bb262
--- a/man-pages/man4/cciss.4
1bb262
+++ b/man-pages/man4/cciss.4
1bb262
@@ -10,354 +10,19 @@
1bb262
 .TH CCISS 4 2012-08-05 "Linux" "Linux Programmer's Manual"
1bb262
 .SH NAME
1bb262
 cciss \- HP Smart Array block driver
1bb262
-.SH SYNOPSIS
1bb262
-.nf
1bb262
-modprobe cciss [ cciss_allow_hpsa=1 ]
1bb262
-.fi
1bb262
 .SH DESCRIPTION
1bb262
-.B cciss
1bb262
-is a block driver for older HP Smart Array RAID controllers.
1bb262
-.SS Options
1bb262
-.IR "cciss_allow_hpsa=1" :
1bb262
-This option prevents the
1bb262
-.B cciss
1bb262
-driver from attempting to drive any controllers that the
1bb262
-.BR hpsa (4)
1bb262
-driver is capable of controlling, which is to say, the
1bb262
-.B cciss
1bb262
-driver is restricted by this option to the following controllers:
1bb262
-.nf
1bb262
-
1bb262
-    Smart Array 5300
1bb262
-    Smart Array 5i
1bb262
-    Smart Array 532
1bb262
-    Smart Array 5312
1bb262
-    Smart Array 641
1bb262
-    Smart Array 642
1bb262
-    Smart Array 6400
1bb262
-    Smart Array 6400 EM
1bb262
-    Smart Array 6i
1bb262
-    Smart Array P600
1bb262
-    Smart Array P400i
1bb262
-    Smart Array E200i
1bb262
-    Smart Array E200
1bb262
-    Smart Array E200i
1bb262
-    Smart Array E200i
1bb262
-    Smart Array E200i
1bb262
-    Smart Array E500
1bb262
-.fi
1bb262
-.SS Supported hardware
1bb262
 The
1bb262
 .B cciss
1bb262
-driver supports the following Smart Array boards:
1bb262
-.nf
1bb262
-
1bb262
-    Smart Array 5300
1bb262
-    Smart Array 5i
1bb262
-    Smart Array 532
1bb262
-    Smart Array 5312
1bb262
-    Smart Array 641
1bb262
-    Smart Array 642
1bb262
-    Smart Array 6400
1bb262
-    Smart Array 6400 U320 Expansion Module
1bb262
-    Smart Array 6i
1bb262
-    Smart Array P600
1bb262
-    Smart Array P800
1bb262
-    Smart Array E400
1bb262
-    Smart Array P400i
1bb262
-    Smart Array E200
1bb262
-    Smart Array E200i
1bb262
-    Smart Array E500
1bb262
-    Smart Array P700m
1bb262
-    Smart Array P212
1bb262
-    Smart Array P410
1bb262
-    Smart Array P410i
1bb262
-    Smart Array P411
1bb262
-    Smart Array P812
1bb262
-    Smart Array P712m
1bb262
-    Smart Array P711m
1bb262
-.fi
1bb262
-.SS Configuration details
1bb262
-To configure HP Smart Array controllers,
1bb262
-use the HP Array Configuration Utility
1bb262
-(either
1bb262
-.BR hpacuxe (8)
1bb262
-or
1bb262
-.BR hpacucli (8))
1bb262
-or the Offline ROM-based Configuration Utility (ORCA)
1bb262
-run from the Smart Array's option ROM at boot time.
1bb262
-.SH FILES
1bb262
-.SS Device nodes
1bb262
-The device naming scheme is as follows:
1bb262
-.nf
1bb262
-
1bb262
-Major numbers:
1bb262
-
1bb262
-    104     cciss0
1bb262
-    105     cciss1
1bb262
-    106     cciss2
1bb262
-    105     cciss3
1bb262
-    108     cciss4
1bb262
-    109     cciss5
1bb262
-    110     cciss6
1bb262
-    111     cciss7
1bb262
-
1bb262
-Minor numbers:
1bb262
-
1bb262
-    b7 b6 b5 b4 b3 b2 b1 b0
1bb262
-    |----+----| |----+----|
1bb262
-         |           |
1bb262
-         |           +-------- Partition ID (0=wholedev, 1-15 partition)
1bb262
-         |
1bb262
-         +-------------------- Logical Volume number
1bb262
-
1bb262
-The device naming scheme is:
1bb262
-
1bb262
-    /dev/cciss/c0d0         Controller 0, disk 0, whole device
1bb262
-    /dev/cciss/c0d0p1       Controller 0, disk 0, partition 1
1bb262
-    /dev/cciss/c0d0p2       Controller 0, disk 0, partition 2
1bb262
-    /dev/cciss/c0d0p3       Controller 0, disk 0, partition 3
1bb262
-
1bb262
-    /dev/cciss/c1d1         Controller 1, disk 1, whole device
1bb262
-    /dev/cciss/c1d1p1       Controller 1, disk 1, partition 1
1bb262
-    /dev/cciss/c1d1p2       Controller 1, disk 1, partition 2
1bb262
-    /dev/cciss/c1d1p3       Controller 1, disk 1, partition 3
1bb262
-.fi
1bb262
-.SS Files in /proc
1bb262
-The files
1bb262
-.I /proc/driver/cciss/cciss[0-9]+
1bb262
-contain information about
1bb262
-the configuration of each controller.
1bb262
-For example:
1bb262
-.nf
1bb262
-
1bb262
-    $ \fBcd /proc/driver/cciss\fP
1bb262
-    $ \fBls -l\fP
1bb262
-    total 0
1bb262
-    -rw-r--r-- 1 root root 0 2010-09-10 10:38 cciss0
1bb262
-    -rw-r--r-- 1 root root 0 2010-09-10 10:38 cciss1
1bb262
-    -rw-r--r-- 1 root root 0 2010-09-10 10:38 cciss2
1bb262
-    $ \fBcat cciss2\fP
1bb262
-    cciss2: HP Smart Array P800 Controller
1bb262
-    Board ID: 0x3223103c
1bb262
-    Firmware Version: 7.14
1bb262
-    IRQ: 16
1bb262
-    Logical drives: 1
1bb262
-    Current Q depth: 0
1bb262
-    Current # commands on controller: 0
1bb262
-    Max Q depth since init: 1
1bb262
-    Max # commands on controller since init: 2
1bb262
-    Max SG entries since init: 32
1bb262
-    Sequential access devices: 0
1bb262
-
1bb262
-    cciss/c2d0:   36.38GB       RAID 0
1bb262
-.fi
1bb262
-.SS Files in /sys
1bb262
-.TP
1bb262
-.I /sys/bus/pci/devices/<dev>/ccissX/cXdY/model
1bb262
-Displays the SCSI INQUIRY page 0 model for logical drive
1bb262
-.I Y
1bb262
-of controller
1bb262
-.IR X .
1bb262
-.TP
1bb262
-.I /sys/bus/pci/devices/<dev>/ccissX/cXdY/rev
1bb262
-Displays the SCSI INQUIRY page 0 revision for logical drive
1bb262
-.I Y
1bb262
-of controller
1bb262
-.IR X .
1bb262
-.TP
1bb262
-.I /sys/bus/pci/devices/<dev>/ccissX/cXdY/unique_id
1bb262
-Displays the SCSI INQUIRY page 83 serial number for logical drive
1bb262
-.I Y
1bb262
-of controller
1bb262
-.IR X .
1bb262
-.TP
1bb262
-.I /sys/bus/pci/devices/<dev>/ccissX/cXdY/vendor
1bb262
-Displays the SCSI INQUIRY page 0 vendor for logical drive
1bb262
-.I Y
1bb262
-of controller
1bb262
-.IR X .
1bb262
-.TP
1bb262
-.I /sys/bus/pci/devices/<dev>/ccissX/cXdY/block:cciss!cXdY
1bb262
-A symbolic link to
1bb262
-.IR /sys/block/cciss!cXdY .
1bb262
-.TP
1bb262
-.I /sys/bus/pci/devices/<dev>/ccissX/rescan
1bb262
-When this file is written to, the driver rescans the controller
1bb262
-to discover any new, removed, or modified logical drives.
1bb262
-.TP
1bb262
-.I /sys/bus/pci/devices/<dev>/ccissX/resettable
1bb262
-A value of 1 displayed in this file indicates that
1bb262
-the "reset_devices=1" kernel parameter (used by
1bb262
-.BR kdump )
1bb262
-is honored by this controller.
1bb262
-A value of 0 indicates that the
1bb262
-"reset_devices=1" kernel parameter will not be honored.
1bb262
-Some models of Smart Array are not able to honor this parameter.
1bb262
-.TP
1bb262
-.I /sys/bus/pci/devices/<dev>/ccissX/cXdY/lunid
1bb262
-Displays the 8-byte LUN ID used to address logical drive
1bb262
-.I Y
1bb262
-of controller
1bb262
-.IR X .
1bb262
-.TP
1bb262
-.I /sys/bus/pci/devices/<dev>/ccissX/cXdY/raid_level
1bb262
-Displays the RAID level of logical drive
1bb262
-.I Y
1bb262
-of controller
1bb262
-.IR X .
1bb262
-.TP
1bb262
-.I /sys/bus/pci/devices/<dev>/ccissX/cXdY/usage_count
1bb262
-Displays the usage count (number of opens) of logical drive
1bb262
-.I Y
1bb262
-of controller
1bb262
-.IR X .
1bb262
-.SS SCSI tape drive and medium changer support
1bb262
-SCSI sequential access devices and medium changer devices are supported and
1bb262
-appropriate device nodes are automatically created (e.g.,
1bb262
-.IR /dev/st0 ,
1bb262
-.IR /dev/st1 ,
1bb262
-etc.; see
1bb262
-.BR st (4)
1bb262
-for more details.)
1bb262
-You must enable "SCSI tape drive support for Smart Array 5xxx" and
1bb262
-"SCSI support" in your kernel configuration to be able to use SCSI
1bb262
-tape drives with your Smart Array 5xxx controller.
1bb262
-
1bb262
-Additionally, note that the driver will not engage the SCSI core at
1bb262
-init time.
1bb262
-The driver must be directed to dynamically engage the SCSI core via
1bb262
-the /proc file-system entry,
1bb262
-which the "block" side of the driver creates as
1bb262
-.I /proc/driver/cciss/cciss*
1bb262
-at run time.
1bb262
-This is because at driver init time,
1bb262
-the SCSI core may not yet be initialized (because the driver is a block
1bb262
-driver) and attempting to register it with the SCSI core in such a case
1bb262
-would cause a hang.
1bb262
-This is best done via an initialization script
1bb262
-(typically in
1bb262
-.IR /etc/init.d ,
1bb262
-but could vary depending on distribution).
1bb262
-For example:
1bb262
-.nf
1bb262
-
1bb262
-    for x in /proc/driver/cciss/cciss[0-9]*
1bb262
-    do
1bb262
-        echo "engage scsi" > $x
1bb262
-    done
1bb262
-
1bb262
-.fi
1bb262
-Once the SCSI core is engaged by the driver, it cannot be disengaged
1bb262
-(except by unloading the driver, if it happens to be linked as a module.)
1bb262
-
1bb262
-Note also that if no sequential access devices or medium changers are
1bb262
-detected, the SCSI core will not be engaged by the action of the above
1bb262
-script.
1bb262
-.SS Hot plug support for SCSI tape drives
1bb262
-Hot plugging of SCSI tape drives is supported, with some caveats.
1bb262
-The
1bb262
-.B cciss
1bb262
-driver must be informed that changes to the SCSI bus
1bb262
-have been made.
1bb262
-This may be done via the /proc file system.
1bb262
-For example:
1bb262
-
1bb262
-    echo "rescan" > /proc/scsi/cciss0/1
1bb262
-
1bb262
-This causes the driver to:
1bb262
-.RS
1bb262
-.IP 1. 3
1bb262
-query the adapter about changes to the
1bb262
-physical SCSI buses and/or fibre channel arbitrated loop, and
1bb262
-.IP 2.
1bb262
-make note of any new or removed sequential access devices
1bb262
-or medium changers.
1bb262
-.RE
1bb262
-.LP
1bb262
-The driver will output messages indicating which
1bb262
-devices have been added or removed and the controller, bus, target and
1bb262
-lun used to address each device.
1bb262
-The driver then notifies the SCSI midlayer
1bb262
-of these changes.
1bb262
-
1bb262
-Note that the naming convention of the /proc file-system entries
1bb262
-contains a number in addition to the driver name
1bb262
-(e.g., "cciss0"
1bb262
-instead of just "cciss", which you might expect).
1bb262
-
1bb262
-Note:
1bb262
-.I Only
1bb262
-sequential access devices and medium changers are presented
1bb262
-as SCSI devices to the SCSI midlayer by the
1bb262
-.B cciss
1bb262
-driver.
1bb262
-Specifically, physical SCSI disk drives are
1bb262
-.I not
1bb262
-presented to the SCSI midlayer.
1bb262
-The only disk devices that are presented to the kernel are logical
1bb262
-drives that the array controller constructs from regions on
1bb262
-the physical drives.
1bb262
-The logical drives are presented to the block layer
1bb262
-(not to the SCSI midlayer).
1bb262
-It is important for the driver to prevent the kernel from accessing the
1bb262
-physical drives directly, since these drives are used by the array
1bb262
-controller to construct the logical drives.
1bb262
-.SS SCSI error handling for tape drives and medium changers
1bb262
-The Linux SCSI midlayer provides an error-handling protocol that
1bb262
-is initiated whenever a SCSI command fails to complete within a
1bb262
-certain amount of time (which can vary depending on the command).
1bb262
-The
1bb262
-.B cciss
1bb262
-driver participates in this protocol to some extent.
1bb262
-The normal protocol is a four-step process:
1bb262
-.IP * 3
1bb262
-First, the device is told to abort the command.
1bb262
-.IP *
1bb262
-If that doesn't work, the device is reset.
1bb262
-.IP *
1bb262
-If that doesn't work, the SCSI bus is reset.
1bb262
-.IP *
1bb262
-If that doesn't work the host bus adapter is reset.
1bb262
-.LP
1bb262
-The
1bb262
-.B cciss
1bb262
-driver is a block
1bb262
-driver as well as a SCSI driver and only the tape drives and medium
1bb262
-changers are presented to the SCSI midlayer
1bb262
-Furthermore, unlike more
1bb262
-straightforward SCSI drivers, disk I/O continues through the block
1bb262
-side during the SCSI error-recovery process
1bb262
-Therefore, the
1bb262
-.B cciss
1bb262
-driver implements only the first two of these actions,
1bb262
-aborting the command, and resetting the device.
1bb262
-Note also that most tape drives will not oblige
1bb262
-in aborting commands, and sometimes it appears they will not even
1bb262
-obey a reset command, though in most circumstances they will.
1bb262
-If the command cannot be aborted and the device cannot be
1bb262
-reset, the device will be set offline.
1bb262
-
1bb262
-In the event that the error-handling code is triggered and a tape drive is
1bb262
-successfully reset or the tardy command is successfully aborted, the
1bb262
-tape drive may still not allow I/O to continue until some command
1bb262
-is issued that positions the tape to a known position.
1bb262
-Typically you must rewind the tape (by issuing
1bb262
-.I "mt -f /dev/st0 rewind"
1bb262
-for example) before I/O can proceed again to a tape drive that was reset.
1bb262
+driver has been removed from RHEL-7.
1bb262
+Details can be found in RHEL-7.0 Release Notes.
1bb262
+Please use
1bb262
+.BR hpsa (4)
1bb262
+instead.
1bb262
 .SH SEE ALSO
1bb262
 .BR cciss_vol_status (8),
1bb262
 .BR hpsa (4),
1bb262
 .BR hpacucli (8),
1bb262
-.BR hpacuxe (8),
1bb262
-
1bb262
-.UR http://cciss.sf.net
1bb262
-.UE ,
1bb262
-and
1bb262
-.I Documentation/blockdev/cciss.txt
1bb262
-and
1bb262
-.I Documentation/ABI/testing/sysfs-bus-pci-devices-cciss
1bb262
-in the Linux kernel source tree
1bb262
+.BR hpacuxe (8)
1bb262
 .\" .SH AUTHORS
1bb262
 .\" Don Brace, Steve Cameron, Chase Maupin, Mike Miller, Michael Ni,
1bb262
 .\" Charles White, Francis Wiran
1bb262
-- 
1bb262
2.7.4
1bb262