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

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