diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-17 20:54:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-17 20:54:40 -0400 |
commit | c55d267de274d308927b60c3e740c1a826832317 (patch) | |
tree | 21b53a8c725d9f9650f60d94b349459d5b8dae10 /Documentation | |
parent | 61ef46fd45c3c62dc7c880a45dd2aa841b9af8fb (diff) | |
parent | bc898c97f7ba24def788d9f80786cf028a197122 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (170 commits)
[SCSI] scsi_dh_rdac: Add MD36xxf into device list
[SCSI] scsi_debug: add consecutive medium errors
[SCSI] libsas: fix ata list corruption issue
[SCSI] hpsa: export resettable host attribute
[SCSI] hpsa: move device attributes to avoid forward declarations
[SCSI] scsi_debug: Logical Block Provisioning (SBC3r26)
[SCSI] sd: Logical Block Provisioning update
[SCSI] Include protection operation in SCSI command trace
[SCSI] hpsa: fix incorrect PCI IDs and add two new ones (2nd try)
[SCSI] target: Fix volume size misreporting for volumes > 2TB
[SCSI] bnx2fc: Broadcom FCoE offload driver
[SCSI] fcoe: fix broken fcoe interface reset
[SCSI] fcoe: precedence bug in fcoe_filter_frames()
[SCSI] libfcoe: Remove stale fcoe-netdev entries
[SCSI] libfcoe: Move FCOE_MTU definition from fcoe.h to libfcoe.h
[SCSI] libfc: introduce __fc_fill_fc_hdr that accepts fc_hdr as an argument
[SCSI] fcoe, libfc: initialize EM anchors list and then update npiv EMs
[SCSI] Revert "[SCSI] libfc: fix exchange being deleted when the abort itself is timed out"
[SCSI] libfc: Fixing a memory leak when destroying an interface
[SCSI] megaraid_sas: Version and Changelog update
...
Fix up trivial conflicts due to whitespace differences in
drivers/scsi/libsas/{sas_ata.c,sas_scsi_host.c}
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/scsi/ChangeLog.megaraid_sas | 23 | ||||
-rw-r--r-- | Documentation/scsi/hpsa.txt | 23 | ||||
-rw-r--r-- | Documentation/scsi/scsi_mid_low_api.txt | 14 |
3 files changed, 59 insertions, 1 deletions
diff --git a/Documentation/scsi/ChangeLog.megaraid_sas b/Documentation/scsi/ChangeLog.megaraid_sas index b64d10d221ec..4d9ce73ff730 100644 --- a/Documentation/scsi/ChangeLog.megaraid_sas +++ b/Documentation/scsi/ChangeLog.megaraid_sas | |||
@@ -1,3 +1,26 @@ | |||
1 | Release Date : Thu. Feb 24, 2011 17:00:00 PST 2010 - | ||
2 | (emaild-id:megaraidlinux@lsi.com) | ||
3 | Adam Radford | ||
4 | Current Version : 00.00.05.34-rc1 | ||
5 | Old Version : 00.00.05.29-rc1 | ||
6 | 1. Fix some failure gotos from megasas_probe_one(), etc. | ||
7 | 2. Add missing check_and_restore_queue_depth() call in | ||
8 | complete_cmd_fusion(). | ||
9 | 3. Enable MSI-X before calling megasas_init_fw(). | ||
10 | 4. Call tasklet_schedule() even if outbound_intr_status == 0 for MFI based | ||
11 | boards in MSI-X mode. | ||
12 | 5. Fix megasas_probe_one() to clear PCI_MSIX_FLAGS_ENABLE in msi control | ||
13 | register in kdump kernel. | ||
14 | 6. Fix megasas_get_cmd() to only print "Command pool empty" if | ||
15 | megasas_dbg_lvl is set. | ||
16 | 7. Fix megasas_build_dcdb_fusion() to not filter by TYPE_DISK. | ||
17 | 8. Fix megasas_build_dcdb_fusion() to use io_request->LUN[1] field. | ||
18 | 9. Add MR_EVT_CFG_CLEARED to megasas_aen_polling(). | ||
19 | 10. Fix tasklet_init() in megasas_init_fw() to use instancet->tasklet. | ||
20 | 11. Fix fault state handling in megasas_transition_to_ready(). | ||
21 | 12. Fix max_sectors setting for IEEE SGL's. | ||
22 | 13. Fix iMR OCR support to work correctly. | ||
23 | ------------------------------------------------------------------------------- | ||
1 | Release Date : Tues. Dec 14, 2010 17:00:00 PST 2010 - | 24 | Release Date : Tues. Dec 14, 2010 17:00:00 PST 2010 - |
2 | (emaild-id:megaraidlinux@lsi.com) | 25 | (emaild-id:megaraidlinux@lsi.com) |
3 | Adam Radford | 26 | Adam Radford |
diff --git a/Documentation/scsi/hpsa.txt b/Documentation/scsi/hpsa.txt index dca658362cbf..891435a72fce 100644 --- a/Documentation/scsi/hpsa.txt +++ b/Documentation/scsi/hpsa.txt | |||
@@ -28,6 +28,12 @@ boot parameter "hpsa_allow_any=1" is specified, however these are not tested | |||
28 | nor supported by HP with this driver. For older Smart Arrays, the cciss | 28 | nor supported by HP with this driver. For older Smart Arrays, the cciss |
29 | driver should still be used. | 29 | driver should still be used. |
30 | 30 | ||
31 | The "hpsa_simple_mode=1" boot parameter may be used to prevent the driver from | ||
32 | putting the controller into "performant" mode. The difference is that with simple | ||
33 | mode, each command completion requires an interrupt, while with "performant mode" | ||
34 | (the default, and ordinarily better performing) it is possible to have multiple | ||
35 | command completions indicated by a single interrupt. | ||
36 | |||
31 | HPSA specific entries in /sys | 37 | HPSA specific entries in /sys |
32 | ----------------------------- | 38 | ----------------------------- |
33 | 39 | ||
@@ -39,6 +45,8 @@ HPSA specific entries in /sys | |||
39 | 45 | ||
40 | /sys/class/scsi_host/host*/rescan | 46 | /sys/class/scsi_host/host*/rescan |
41 | /sys/class/scsi_host/host*/firmware_revision | 47 | /sys/class/scsi_host/host*/firmware_revision |
48 | /sys/class/scsi_host/host*/resettable | ||
49 | /sys/class/scsi_host/host*/transport_mode | ||
42 | 50 | ||
43 | the host "rescan" attribute is a write only attribute. Writing to this | 51 | the host "rescan" attribute is a write only attribute. Writing to this |
44 | attribute will cause the driver to scan for new, changed, or removed devices | 52 | attribute will cause the driver to scan for new, changed, or removed devices |
@@ -55,6 +63,21 @@ HPSA specific entries in /sys | |||
55 | root@host:/sys/class/scsi_host/host4# cat firmware_revision | 63 | root@host:/sys/class/scsi_host/host4# cat firmware_revision |
56 | 7.14 | 64 | 7.14 |
57 | 65 | ||
66 | The transport_mode indicates whether the controller is in "performant" | ||
67 | or "simple" mode. This is controlled by the "hpsa_simple_mode" module | ||
68 | parameter. | ||
69 | |||
70 | The "resettable" read-only attribute indicates whether a particular | ||
71 | controller is able to honor the "reset_devices" kernel parameter. If the | ||
72 | device is resettable, this file will contain a "1", otherwise, a "0". This | ||
73 | parameter is used by kdump, for example, to reset the controller at driver | ||
74 | load time to eliminate any outstanding commands on the controller and get the | ||
75 | controller into a known state so that the kdump initiated i/o will work right | ||
76 | and not be disrupted in any way by stale commands or other stale state | ||
77 | remaining on the controller from the previous kernel. This attribute enables | ||
78 | kexec tools to warn the user if they attempt to designate a device which is | ||
79 | unable to honor the reset_devices kernel parameter as a dump device. | ||
80 | |||
58 | HPSA specific disk attributes: | 81 | HPSA specific disk attributes: |
59 | ------------------------------ | 82 | ------------------------------ |
60 | 83 | ||
diff --git a/Documentation/scsi/scsi_mid_low_api.txt b/Documentation/scsi/scsi_mid_low_api.txt index df322c103466..5f17d29c59b5 100644 --- a/Documentation/scsi/scsi_mid_low_api.txt +++ b/Documentation/scsi/scsi_mid_low_api.txt | |||
@@ -1343,7 +1343,7 @@ Members of interest: | |||
1343 | underruns (overruns should be rare). If possible an LLD | 1343 | underruns (overruns should be rare). If possible an LLD |
1344 | should set 'resid' prior to invoking 'done'. The most | 1344 | should set 'resid' prior to invoking 'done'. The most |
1345 | interesting case is data transfers from a SCSI target | 1345 | interesting case is data transfers from a SCSI target |
1346 | device device (i.e. READs) that underrun. | 1346 | device (e.g. READs) that underrun. |
1347 | underflow - LLD should place (DID_ERROR << 16) in 'result' if | 1347 | underflow - LLD should place (DID_ERROR << 16) in 'result' if |
1348 | actual number of bytes transferred is less than this | 1348 | actual number of bytes transferred is less than this |
1349 | figure. Not many LLDs implement this check and some that | 1349 | figure. Not many LLDs implement this check and some that |
@@ -1351,6 +1351,18 @@ Members of interest: | |||
1351 | report a DID_ERROR. Better for an LLD to implement | 1351 | report a DID_ERROR. Better for an LLD to implement |
1352 | 'resid'. | 1352 | 'resid'. |
1353 | 1353 | ||
1354 | It is recommended that a LLD set 'resid' on data transfers from a SCSI | ||
1355 | target device (e.g. READs). It is especially important that 'resid' is set | ||
1356 | when such data transfers have sense keys of MEDIUM ERROR and HARDWARE ERROR | ||
1357 | (and possibly RECOVERED ERROR). In these cases if a LLD is in doubt how much | ||
1358 | data has been received then the safest approach is to indicate no bytes have | ||
1359 | been received. For example: to indicate that no valid data has been received | ||
1360 | a LLD might use these helpers: | ||
1361 | scsi_set_resid(SCpnt, scsi_bufflen(SCpnt)); | ||
1362 | where 'SCpnt' is a pointer to a scsi_cmnd object. To indicate only three 512 | ||
1363 | bytes blocks has been received 'resid' could be set like this: | ||
1364 | scsi_set_resid(SCpnt, scsi_bufflen(SCpnt) - (3 * 512)); | ||
1365 | |||
1354 | The scsi_cmnd structure is defined in include/scsi/scsi_cmnd.h | 1366 | The scsi_cmnd structure is defined in include/scsi/scsi_cmnd.h |
1355 | 1367 | ||
1356 | 1368 | ||