[PATCH 05/10] hpsa: fix memory leak in CCISS_BIG_PASSTHRU ioctl

2013-09-23 Thread Stephen M. Cameron
From: Stephen M. Cameron We were leaking a command buffer if a DMA mapping error was encountered in the CCISS_BIG_PASSTHRU ioctl. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/hpsa.c b

[PATCH 07/10] hpsa: hide logical drives with format in progress from linux

2013-09-23 Thread Stephen M. Cameron
From: Stephen M. Cameron SCSI mid layer doesn't seem to handle logical drives undergoing format very well. scsi_add_device on such devices seems to result in hitting those devices with a TUR at a rate of 3Hz for awhile, transitioning to hitting them with a READ(10) at a much higher

[PATCH 09/10] hpsa: cap CCISS_PASSTHRU at 20 concurrent commands.

2013-09-23 Thread Stephen M. Cameron
From: Stephen M. Cameron Cap CCISS_BIG_PASSTHRU as well. If an attempt is made to exceed this, ioctl() will return -1 with errno == EAGAIN. This is to prevent a userland program from exhausting all of pci_alloc_consistent memory. I've only seen this problem when running a special test pr

[PATCH 08/10] hpsa: bring logical drives online when format completes

2013-09-23 Thread Stephen M. Cameron
From: Stephen M. Cameron Now that the driver is hiding logical drives which are undergoing low level format (e.g. drive erase or rapid parity initialization) from the OS, it should bring those drives online when the operation completes. We poll with test unit ready every so often to determine

[PATCH 10/10] hpsa: prevent stalled i/o

2013-09-23 Thread Stephen M. Cameron
From: Stephen M. Cameron If a fifo full condition is encountered, i/o requests will stack up in the h->reqQ queue. The only thing which empties this queue is start_io, which only gets called when new i/o requests come in. If none are forthcoming, i/o in h->reqQ will be stalled. To fi

[PATCH 01/10] hpsa: do not attempt to flush the cache on locked up controllers

2013-09-23 Thread Stephen M. Cameron
From: Stephen M. Cameron There's no point in trying since it can't work, and if you do try, it will just hang the system on shutdown. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/s

[PATCH 04/10] hpsa: remove unneeded include of seq_file.h

2013-09-23 Thread Stephen M. Cameron
From: Stephen M. Cameron Signed-off-by: Scott Teel Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 3e45090..411aef2 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi

[PATCH 02/10] hpsa: add 5 second delay after doorbell reset

2013-09-23 Thread Stephen M. Cameron
From: Stephen M. Cameron The hardware guys tell us that after initiating a software reset via the doorbell register we need to wait 5 seconds before attempting to talk to the board *at all*. This means that we cannot watch the board to verify it transitions from "ready" to to "

[PATCH 03/10] hpsa: do not discard scsi status on aborted commands

2013-09-23 Thread Stephen M. Cameron
From: Stephen M. Cameron We inadvertantly discarded the scsi status for aborted commands. For some commands (e.g. reads from tape drives) these can't be retried, and if we discarded the scsi status, the scsi mid layer couldn't notice anything was wrong and the error was not reported.

[PATCH 00/10] hpsa: September 2013 driver fixes

2013-09-23 Thread Stephen M. Cameron
The following series contains some fixes for hpsa --- Stephen M. Cameron (10): hpsa: do not attempt to flush the cache on locked up controllers hpsa: add 5 second delay after doorbell reset hpsa: do not discard scsi status on aborted commands hpsa: remove unneeded

[PATCH 06/10] hpsa: add MSA 2040 to list of external target devices

2013-09-23 Thread Stephen M. Cameron
From: Stephen M. Cameron Signed-off-by: Scott Teel Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index f2ef778..b7f405f 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi

[PATCH] hpsa: update version number to 3.2.0

2013-01-07 Thread Stephen M. Cameron
From: Stephen M. Cameron Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 4217e49..469ba9b 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -54,7

[PATCH 0/5] hpsa: Add error handling checks to DMA mapping operations

2013-02-20 Thread Stephen M. Cameron
The following series adds error handling checks for dma mapping operations to the hpsa driver. --- Shuah Khan (1): hpsa: Check for dma_mapping_error in hpsa_map_one Stephen M. Cameron (4): hpsa: Check for dma_mapping_error for all code paths using fill_cmd hpsa: check for

[PATCH 1/5] hpsa: Check for dma_mapping_error in hpsa_map_one

2013-02-20 Thread Stephen M. Cameron
From: Shuah Khan Signed-off-by: Shuah Khan Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 4f33806..3b4d195 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers

[PATCH 2/5] hpsa: Check for dma_mapping_error for all code paths using fill_cmd

2013-02-20 Thread Stephen M. Cameron
From: Stephen M. Cameron Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 59 ++- 1 files changed, 39 insertions(+), 20 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 3b4d195..137ed33 100644 --- a/drivers

[PATCH 3/5] hpsa: check for dma_mapping_error in hpsa_map_sg_chain_block

2013-02-20 Thread Stephen M. Cameron
From: Stephen M. Cameron Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 14 -- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 137ed33..38c8aa5 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c

[PATCH 4/5] hpsa: reorganize error handling in hpsa_passthru_ioctl

2013-02-20 Thread Stephen M. Cameron
From: Stephen M. Cameron Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 25 + 1 files changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 38c8aa5..a7c3d47 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers

[PATCH 5/5] hpsa: check for dma_mapping_error in hpsa_passthru ioctls

2013-02-20 Thread Stephen M. Cameron
From: Stephen M. Cameron Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 16 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index a7c3d47..7f4f790 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi

[PATCH] hpsa: fix memory leak in hpsa_big_passthru_ioctl

2013-05-06 Thread Stephen M. Cameron
From: Stephen M. Cameron In the event of a dma mapping error, we forgot to free the command we had allocated. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c

[PATCH] hpsa: return 0 from driver probe function on success, not 1

2013-10-29 Thread Stephen M. Cameron
From: Stephen M. Cameron A return value of 1 is interpreted as an error Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 891c86b..3c97974 100644 --- a/drivers

[PATCH] hpsa: return 0 from driver probe function on success, not 1

2013-11-01 Thread Stephen M. Cameron
From: Stephen M. Cameron A return value of 1 is interpreted as an error. See pci_driver. in local_pci_probe(). If you're wondering how this ever could have worked, it's because it used to be the case that only return values less than zero were interpreted as failure. But even in t

[PATCH] hpsa: return 0 from driver probe function on success, not 1

2013-11-01 Thread Stephen M. Cameron
Just resending the patch with a better change log message (as requested by Andrew Morton) and cc'ing sta...@vger.kernel.org, (as I originally had intended.) --- Stephen M. Cameron (1): hpsa: return 0 from driver probe function on success, not 1 drivers/scsi/hpsa.c |2 +- 1

[PATCH 00/11] hpsa: minor fixes and cleanups

2013-11-07 Thread Stephen M. Cameron
The following series implements some minor fixes and cleanups for hpsa --- Stephen M. Cameron (11): hpsa: use workqueue instead of kernel thread for lockup detection hpsa: do not attempt to flush the cache on locked up controllers hpsa: add 5 second delay after doorbell reset

[PATCH 02/11] hpsa: do not attempt to flush the cache on locked up controllers

2013-11-07 Thread Stephen M. Cameron
From: Stephen M. Cameron There's no point in trying since it can't work, and if you do try, it will just hang the system on shutdown. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/s

[PATCH 03/11] hpsa: add 5 second delay after doorbell reset

2013-11-07 Thread Stephen M. Cameron
From: Stephen M. Cameron The hardware guys tell us that after initiating a software reset via the doorbell register we need to wait 5 seconds before attempting to talk to the board *at all*. This means that we cannot watch the board to verify it transitions from "ready" to to "

[PATCH 01/11] hpsa: use workqueue instead of kernel thread for lockup detection

2013-11-07 Thread Stephen M. Cameron
From: Stephen M. Cameron Much simpler and avoids races starting/stopping the thread. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 103 +-- drivers/scsi/hpsa.h |3 + 2 files changed, 28 insertions(+), 78 deletions(-) diff

[PATCH 06/11] hpsa: fix memory leak in CCISS_BIG_PASSTHRU ioctl

2013-11-07 Thread Stephen M. Cameron
From: Stephen M. Cameron We were leaking a command buffer if a DMA mapping error was encountered in the CCISS_BIG_PASSTHRU ioctl. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/hpsa.c b

[PATCH 08/11] hpsa: cap CCISS_PASSTHRU at 20 concurrent commands.

2013-11-07 Thread Stephen M. Cameron
From: Stephen M. Cameron Cap CCISS_BIG_PASSTHRU as well. If an attempt is made to exceed this, ioctl() will return -1 with errno == EAGAIN. This is to prevent a userland program from exhausting all of pci_alloc_consistent memory. I've only seen this problem when running a special test pr

[PATCH 05/11] hpsa: remove unneeded include of seq_file.h

2013-11-07 Thread Stephen M. Cameron
From: Stephen M. Cameron Signed-off-by: Scott Teel Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 6faa4fb..b99a0a1 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi

[PATCH 11/11] hpsa: enable unit attention reporting

2013-11-07 Thread Stephen M. Cameron
From: Stephen M. Cameron This used to be the default, but at some point the firmware guys changed the default and I failed to notice. Now to get unit attention notifications, you must twiddle a bit indicating you want them. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |7

[PATCH 04/11] hpsa: do not discard scsi status on aborted commands

2013-11-07 Thread Stephen M. Cameron
From: Stephen M. Cameron We inadvertantly discarded the scsi status for aborted commands. For some commands (e.g. reads from tape drives) these can't be retried, and if we discarded the scsi status, the scsi mid layer couldn't notice anything was wrong and the error was not reported.

[PATCH 09/11] hpsa: prevent stalled i/o

2013-11-07 Thread Stephen M. Cameron
From: Stephen M. Cameron If a fifo full condition is encountered, i/o requests will stack up in the h->reqQ queue. The only thing which empties this queue is start_io, which only gets called when new i/o requests come in. If none are forthcoming, i/o in h->reqQ will be stalled. To fi

[PATCH 07/11] hpsa: add MSA 2040 to list of external target devices

2013-11-07 Thread Stephen M. Cameron
From: Stephen M. Cameron Signed-off-by: Scott Teel Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 752d234..fdc2228 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi

[PATCH 10/11] hpsa: rename scsi prefetch field

2013-11-07 Thread Stephen M. Cameron
From: Stephen M. Cameron The field contains more bits than just the one to indicate whether scsi prefetch should be turned on. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 14 +++--- drivers/scsi/hpsa_cmd.h |3 ++- 2 files changed, 9 insertions(+), 8 deletions

[PATCH 0/9] hpsa: resend of November 2013 patches

2013-12-04 Thread Stephen M. Cameron
t me to send something else, let me know. --- Matt Gates (1): hpsa: allow SCSI mid layer to handle unit attention Stephen M. Cameron (8): hpsa: revert bring logical drives online when format completes hpsa: revert hide logical drives with format in progress from linux

[PATCH 1/9] hpsa: revert bring logical drives online when format completes

2013-12-04 Thread Stephen M. Cameron
From: Stephen M. Cameron This relies on a kernel thread which I wish to remove and replace with a work queue based solution. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 128 --- drivers/scsi/hpsa.h | 13 - 2 files changed

[PATCH 2/9] hpsa: revert hide logical drives with format in progress from linux

2013-12-04 Thread Stephen M. Cameron
From: Stephen M. Cameron This relies on a kernel thread which I wish to replace with a work queue based solution. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 50 ++ drivers/scsi/hpsa.h |1 - 2 files changed, 2 insertions

[PATCH 8/9] hpsa: do not require board "not ready" status after hard reset

2013-12-04 Thread Stephen M. Cameron
From: Stephen M. Cameron Immediately following a hard board reset, There are some mandatory delays during which we must not access the board and during which we might miss the "not ready" status, therefore it is a mistake to look for and expect to see the "not ready" st

[PATCH 7/9] hpsa: do not discard scsi status on aborted commands

2013-12-04 Thread Stephen M. Cameron
From: Stephen M. Cameron We inadvertantly discarded the scsi status for aborted commands. For some commands (e.g. reads from tape drives) these can't be retried, and if we discarded the scsi status, the scsi mid layer couldn't notice anything was wrong and the error was not reported.

[PATCH 4/9] hpsa: use workqueue instead of kernel thread for lockup detection

2013-12-04 Thread Stephen M. Cameron
From: Stephen M. Cameron Much simpler and avoids races starting/stopping the thread. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 103 +-- drivers/scsi/hpsa.h |3 + 2 files changed, 28 insertions(+), 78 deletions(-) diff

[PATCH 5/9] hpsa: rename scsi prefetch field

2013-12-04 Thread Stephen M. Cameron
From: Stephen M. Cameron The field contains more bits than just the one to indicate whether scsi prefetch should be turned on. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 14 +++--- drivers/scsi/hpsa_cmd.h |3 ++- 2 files changed, 9 insertions(+), 8 deletions

[PATCH 6/9] hpsa: enable unit attention reporting

2013-12-04 Thread Stephen M. Cameron
From: Stephen M. Cameron This used to be the default, but at some point the firmware guys changed the default and I failed to notice. Now to get unit attention notifications, you must twiddle a bit indicating you want them. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |7

[PATCH 3/9] hpsa: return 0 from driver probe function on success, not 1

2013-12-04 Thread Stephen M. Cameron
From: Stephen M. Cameron A return value of 1 is interpreted as an error. See pci-driver.c in local_pci_probe(). If you're wondering how this ever could have worked, it's because it used to be the case that only return values less than zero were interpreted as failure. But even in t

[PATCH 9/9] hpsa: allow SCSI mid layer to handle unit attention

2013-12-04 Thread Stephen M. Cameron
From: Matt Gates We were clobbering the SCSI status and setting cmd->result = DID_SOFT_ERROR << 16; to get a retry, but better to let the mid layer handle the unit attention. Signed-off-by: Matt Gates Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |4 +--- 1 files c

[PATCH 02/41] hpsa: revert hide logical drives with format in progress from linux

2014-01-15 Thread Stephen M. Cameron
From: Stephen M. Cameron This relies on a kernel thread which I wish to replace with a work queue based solution. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 50 ++ drivers/scsi/hpsa.h |1 - 2 files changed, 2 insertions

[PATCH 03/41] hpsa: use workqueue instead of kernel thread for lockup detection

2014-01-15 Thread Stephen M. Cameron
From: Stephen M. Cameron Much simpler and avoids races starting/stopping the thread. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 103 +-- drivers/scsi/hpsa.h |3 + 2 files changed, 28 insertions(+), 78 deletions(-) diff

[PATCH 04/41] hpsa: rename scsi prefetch field

2014-01-15 Thread Stephen M. Cameron
From: Stephen M. Cameron The field contains more bits than just the one to indicate whether scsi prefetch should be turned on. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 14 +++--- drivers/scsi/hpsa_cmd.h |3 ++- 2 files changed, 9 insertions(+), 8 deletions

[PATCH 01/41] hpsa: revert bring logical drives online when format completes

2014-01-15 Thread Stephen M. Cameron
From: Stephen M. Cameron This relies on a kernel thread which I wish to remove and replace with a work queue based solution. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 128 --- drivers/scsi/hpsa.h | 13 - 2 files changed

[PATCH 05/41] hpsa: enable unit attention reporting

2014-01-15 Thread Stephen M. Cameron
From: Stephen M. Cameron This used to be the default, but at some point the firmware guys changed the default and I failed to notice. Now to get unit attention notifications, you must twiddle a bit indicating you want them. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |7

[PATCH 06/41] hpsa: do not require board "not ready" status after hard reset

2014-01-15 Thread Stephen M. Cameron
From: Stephen M. Cameron Immediately following a hard board reset, There are some mandatory delays during which we must not access the board and during which we might miss the "not ready" status, therefore it is a mistake to look for and expect to see the "not ready" st

[PATCH 13/41] hpsa: add ioaccell mode 1 RAID offload support.

2014-01-15 Thread Stephen M. Cameron
From: Stephen M. Cameron This enables sending i/o's destined for RAID logical drives which can be serviced by a single physical disk down a different, faster i/o path directly to physical drives for certain logical volumes on SSDs bypassing the Smart Array RAID stack for a perfor

[PATCH 08/41] hpsa: use extended report luns command for HP SSD SmartPath

2014-01-15 Thread Stephen M. Cameron
ssing the RAID stack code in the controller firmware. Signed-off-by: Matt Gates Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 13 - drivers/scsi/hpsa_cmd.h |1 + 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/h

[PATCH 12/41] hpsa: fix task management for mode-1 ioaccell path

2014-01-15 Thread Stephen M. Cameron
From: Scott Teel For "mode 1" io accelerated commands, the command tag is in a different location than for commands that go down the normal RAID path, so the abort handler needs to take this into account. Signed-off-by: Scott Teel Signed-off-by: Mike Miller Signed-off-by: Stephen

[PATCH 09/41] hpsa: mark last scatter gather element as the last

2014-01-15 Thread Stephen M. Cameron
From: Matt Gates This is normally optional, but for SSD Smart Path support (in subsequent patches) it is required. Signed-off-by: Matt Gates Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |8 drivers/scsi/hpsa_cmd.h |1 + 2 files changed, 5 insertions(+), 4

[PATCH 07/41] hpsa: allow SCSI mid layer to handle unit attention

2014-01-15 Thread Stephen M. Cameron
From: Matt Gates We were clobbering the SCSI status and setting cmd->result = DID_SOFT_ERROR << 16; to get a retry, but better to let the mid layer handle the unit attention. Signed-off-by: Matt Gates Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |4 +--- 1 files c

[PATCH 11/41] hpsa: only allow REQ_TYPE_FS to use fast path

2014-01-15 Thread Stephen M. Cameron
From: Stephen M. Cameron When commands sent down the "fast path" fail, they must be re-tried down the normal RAID path. We do this by kicking i/o's back to the scsi mid layer with a DID_SOFT_ERROR status, which causes them to be retried. This won't work for SG_IO's an

[PATCH 10/41] hpsa: add support for 'fastpath' i/o

2014-01-15 Thread Stephen M. Cameron
From: Matt Gates For certain i/o's to certain devices (unmasked physical disks) we can bypass the RAID stack firmware and do the i/o to the device directly and it will be faster. Signed-off-by: Matt Gates Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |

[PATCH 14/41] hpsa: update raid offload status on device rescan

2014-01-15 Thread Stephen M. Cameron
From: Stephen M. Cameron When rescanning for logical drives, store information about whather raid offload is enabled for each logical drive, and update the driver's internal record of this. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |9 + 1 files chang

[PATCH 21/41] hpsa: do ioaccel mode 2 resource allocations

2014-01-15 Thread Stephen M. Cameron
From: Stephen M. Cameron Signed-off-by: Mike Miller Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 50 ++ drivers/scsi/hpsa.h |3 +++ 2 files changed, 53 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers

[PATCH 26/41] hpsa: add task management for ioaccel mode 2

2014-01-15 Thread Stephen M. Cameron
From: Scott Teel Underlying firmware cannot handle task abort on accelerated path (SSD Smart Path). Change abort requests for accelerated path commands to physical target reset. Send reset request on normal IO path. Signed-off-by: Scott Teel Signed-off-by: Mike Miller Acked-by: Stephen M

[PATCH 23/41] hpsa: initialize controller to perform io accelerator mode 2

2014-01-15 Thread Stephen M. Cameron
From: Stephen M. Cameron Signed-off-by: Stephen M. Cameron Signed-off-by: Scott Teel --- drivers/scsi/hpsa.c | 111 --- drivers/scsi/hpsa.h |1 drivers/scsi/hpsa_cmd.h |2 - 3 files changed, 78 insertions(+), 36 deletions(-) diff

[PATCH 19/41] hpsa: add ioaccel mode 2 structure definitions

2014-01-15 Thread Stephen M. Cameron
From: Mike Miller Signed-off-by: Mike Miller Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 22 ++ drivers/scsi/hpsa.h |8 drivers/scsi/hpsa_cmd.h | 99 +++ 3 files changed, 129 insertions(+), 0 deletions

[PATCH 17/41] hpsa: add hp_ssd_smart_path_enabled sysfs attribute

2014-01-15 Thread Stephen M. Cameron
From: Scott Teel Signed-off-by: Scott Teel Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index f88bb73..39500d6 100644 --- a/drivers/scsi/hpsa.c

[PATCH 22/41] hpsa: get physical device handles for io accel mode 2 as well as mode 1

2014-01-15 Thread Stephen M. Cameron
From: Mike MIller Signed-off-by: Mike MIller Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index f0bd511..e471782 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi

[PATCH 18/41] hpsa: complain if physical or logical aborts are not supported

2014-01-15 Thread Stephen M. Cameron
From: Scott Teel Signed-off-by: Scott Teel Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 39500d6..3db772f 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi

[PATCH 20/41] hpsa: Acknowledge controller events in ioaccell mode 2 as well as mode 1

2014-01-15 Thread Stephen M. Cameron
From: Stephen M. Cameron Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |3 ++- drivers/scsi/hpsa_cmd.h |1 + 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index ebca59b..fbf41c7 100644 --- a/drivers/scsi/hpsa.c

[PATCH 16/41] hpsa: do not rescan controllers known to be locked up

2014-01-15 Thread Stephen M. Cameron
From: Stephen M. Cameron * Do not check event bits on locked up controllers to see if they need to be rescanned. * Do not initiate any device rescans on controllers which are known to be locked up. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 39

[PATCH 25/41] hpsa: teach hpsa_device_reset to do either target or lun reset

2014-01-15 Thread Stephen M. Cameron
From: Scott Teel Signed-off-by: Scott Teel Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 9628e12..7cab95f 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi

[PATCH 15/41] hpsa: poll controller to detect device change event

2014-01-15 Thread Stephen M. Cameron
From: Stephen M. Cameron For shared SAS configurations, hosts need to poll Smart Arrays periodically in order to be able to detect configuration changes such as logical drives being added or removed from remote hosts. A register on the controller indicates when such events have occurred, and the

[PATCH 31/41] hpsa: allow VPD page zero to be queried

2014-01-15 Thread Stephen M. Cameron
From: Stephen M. Cameron Code was confused and assumed that page zero was not VPD page and all non-zero pages were VPD pages. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/scsi/hpsa.c

[PATCH 28/41] hpsa: complete the ioaccel raidmap code

2014-01-15 Thread Stephen M. Cameron
From: Scott Teel Load balance across members of a N-way mirror set, and handle the meta-RAID levels: R10, R50, R60. Signed-off-by: Scott Teel Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 174 +-- 1 files changed, 168 insertions(+), 6

[PATCH 24/41] hpsa: get ioaccel mode 2 i/o working

2014-01-15 Thread Stephen M. Cameron
From: Scott Teel Signed-off-by: Scott Teel Signed-off-by: Joe Handzik Signed-off-by: Mike Miller Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 325 --- drivers/scsi/hpsa.h | 20 +++ drivers/scsi/hpsa_cmd.h |1 3 files

[PATCH 30/41] hpsa: rescan devices on ioaccel2 error

2014-01-15 Thread Stephen M. Cameron
standard path, so the driver could get stuck in non-ioaccel mode. To avoid that, we allow driver to request a rescan during the next run of the rescan thread. Signed-off-by: Scott Teel Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 12 ++-- drivers/scsi/hpsa.h |1 + 2 files

[PATCH 34/41] hpsa: update source file copyrights

2014-01-15 Thread Stephen M. Cameron
From: Scott Teel Signed-off-by: Scott Teel Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |2 +- drivers/scsi/hpsa.h |2 +- drivers/scsi/hpsa_cmd.h |2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index

[PATCH 29/41] hpsa: allow user to disable accelerated i/o path

2014-01-15 Thread Stephen M. Cameron
tus To check state: cat /sys/class/scsi_host/host/acciopath_status Signed-off-by: Scott Teel Acked-by: Stephen M. Cameron --- Documentation/ABI/testing/sysfs-class-scsi_host | 16 drivers/scsi/hpsa.c | 45 ++- drivers/scsi/

[PATCH 38/41] hpsa: improve error messages for driver initiated commands

2014-01-15 Thread Stephen M. Cameron
From: Stephen M. Cameron On encountering unexpected error conditions from driver initiated commands, print something useful like CDB and sense data rather than something useless like the kernel virtual address of the command buffer. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c

[PATCH 41/41] hpsa: Add support for a few HP Storage controllers

2014-01-15 Thread Stephen M. Cameron
From: Stephen M. Cameron Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index eab21bb..fb0950c 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c

[PATCH 40/41] pci: add HP/3PAR vendor id to pci_ids.h

2014-01-15 Thread Stephen M. Cameron
From: Stephen M. Cameron Signed-off-by: Stephen M. Cameron --- include/linux/pci_ids.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 97fbecd..0154d9b 100644 --- a/include/linux/pci_ids.h +++ b/include/linux

[PATCH 35/41] hpsa: add controller base data-at-rest encryption compatibility ioaccel2

2014-01-15 Thread Stephen M. Cameron
flag, data encryption key index, and calculate tweak value from request's logical block address. Signed-off-by: Scott Teel Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 179 +-- drivers/scsi/hpsa_cmd.h | 19 - 2 files ch

[PATCH 39/41] hpsa add sysfs debug switch for raid map debugging messages

2014-01-15 Thread Stephen M. Cameron
From: Stephen M. Cameron Signed-off-by: Scott Teel Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 65 +++ drivers/scsi/hpsa.h |1 + 2 files changed, 66 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi

[PATCH 33/41] hpsa: retry certain ioaccel error cases on the RAID path

2014-01-15 Thread Stephen M. Cameron
From: Scott Teel Change the handling of HP SSD Smart Path errors with status: 0x02 CHECK CONDITION 0x08 BUSY 0x18 RESERVATION CONFLICT 0x40 TASK ABORTED So that they get retried on the RAID Path. Signed-off-by: Scott Teel Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 45

[PATCH 37/41] hpsa: only do device rescan for certain events

2014-01-15 Thread Stephen M. Cameron
From: Stephen M. Cameron Do no rescan on every events -- way too many rescans are triggered if we don't filter the events. Limit rescans to be triggered by the following set of events: * controller state change * enclosure hot plug * physical drive state change * logical drive state c

[PATCH 36/41] hpsa: when switching out of accel mode await only accel command completions

2014-01-15 Thread Stephen M. Cameron
From: Stephen M. Cameron Don't wait for *all* commands to complete, only for accelerated mode commands. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 22 -- 1 files changed, 16 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers

[PATCH 00/41] hpsa January 2014 driver updates

2014-01-15 Thread Stephen M. Cameron
user to disable accelerated i/o path hpsa: rescan devices on ioaccel2 error hpsa: retry certain ioaccel error cases on the RAID path hpsa: update source file copyrights hpsa: add controller base data-at-rest encryption compatibility ioaccel2 Stephen M. Cameron (23): hps

[PATCH 32/41] hpsa: do not inquire for unsupported ioaccel status vpd page

2014-01-15 Thread Stephen M. Cameron
From: Stephen M. Cameron Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 45 + drivers/scsi/hpsa_cmd.h |2 ++ 2 files changed, 47 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index

[PATCH 27/41] hpsa: make device update copy the raid map also

2014-01-15 Thread Stephen M. Cameron
From: Stephen M. Cameron Otherwise we could wind up using incorrect raid map data, and then very bad things would likely happen. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers

[PATCH 03/35] hpsa: add support for 'fastpath' i/o

2014-02-18 Thread Stephen M. Cameron
From: Matt Gates For certain i/o's to certain devices (unmasked physical disks) we can bypass the RAID stack firmware and do the i/o to the device directly and it will be faster. Signed-off-by: Matt Gates Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |

[PATCH 00/35] hpsa February 2014 driver updates

2014-02-18 Thread Stephen M. Cameron
ioaccel2 error hpsa: retry certain ioaccel error cases on the RAID path hpsa: update source file copyrights hpsa: add controller base data-at-rest encryption compatibility ioaccel2 Stephen M. Cameron (17): hpsa: only allow REQ_TYPE_FS to use fast path hpsa: add ioacc

[PATCH 04/35] hpsa: only allow REQ_TYPE_FS to use fast path

2014-02-18 Thread Stephen M. Cameron
From: Stephen M. Cameron When commands sent down the "fast path" fail, they must be re-tried down the normal RAID path. We do this by kicking i/o's back to the scsi mid layer with a DID_SOFT_ERROR status, which causes them to be retried. This won't work for SG_IO's an

[PATCH 02/35] hpsa: mark last scatter gather element as the last

2014-02-18 Thread Stephen M. Cameron
From: Matt Gates This is normally optional, but for SSD Smart Path support (in subsequent patches) it is required. Signed-off-by: Matt Gates Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |8 drivers/scsi/hpsa_cmd.h |1 + 2 files changed, 5 insertions(+), 4

[PATCH 07/35] hpsa: update raid offload status on device rescan

2014-02-18 Thread Stephen M. Cameron
From: Stephen M. Cameron When rescanning for logical drives, store information about whather raid offload is enabled for each logical drive, and update the driver's internal record of this. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |9 + 1 files chang

[PATCH 05/35] hpsa: fix task management for mode-1 ioaccell path

2014-02-18 Thread Stephen M. Cameron
From: Scott Teel For "mode 1" io accelerated commands, the command tag is in a different location than for commands that go down the normal RAID path, so the abort handler needs to take this into account. Signed-off-by: Scott Teel Signed-off-by: Mike Miller Signed-off-by: Stephen

[PATCH 10/35] hpsa: add hp_ssd_smart_path_enabled sysfs attribute

2014-02-18 Thread Stephen M. Cameron
From: Scott Teel Signed-off-by: Scott Teel Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index f882b18..31ce73f 100644 --- a/drivers/scsi/hpsa.c

[PATCH 19/35] hpsa: add task management for ioaccel mode 2

2014-02-18 Thread Stephen M. Cameron
From: Scott Teel Underlying firmware cannot handle task abort on accelerated path (SSD Smart Path). Change abort requests for accelerated path commands to physical target reset. Send reset request on normal IO path. Signed-off-by: Scott Teel Signed-off-by: Mike Miller Acked-by: Stephen M

[PATCH 01/35] hpsa: use extended report luns command for HP SSD SmartPath

2014-02-18 Thread Stephen M. Cameron
ssing the RAID stack code in the controller firmware. Signed-off-by: Matt Gates Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 13 - drivers/scsi/hpsa_cmd.h |1 + 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/h

[PATCH 14/35] hpsa: do ioaccel mode 2 resource allocations

2014-02-18 Thread Stephen M. Cameron
From: Stephen M. Cameron Signed-off-by: Mike Miller Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 50 ++ drivers/scsi/hpsa.h |3 +++ 2 files changed, 53 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers

[PATCH 12/35] hpsa: add ioaccel mode 2 structure definitions

2014-02-18 Thread Stephen M. Cameron
From: Mike Miller Signed-off-by: Mike Miller Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 22 ++ drivers/scsi/hpsa.h |8 drivers/scsi/hpsa_cmd.h | 99 +++ 3 files changed, 129 insertions(+), 0 deletions

[PATCH 09/35] hpsa: do not rescan controllers known to be locked up

2014-02-18 Thread Stephen M. Cameron
From: Stephen M. Cameron * Do not check event bits on locked up controllers to see if they need to be rescanned. * Do not initiate any device rescans on controllers which are known to be locked up. Signed-off-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 30

[PATCH 11/35] hpsa: complain if physical or logical aborts are not supported

2014-02-18 Thread Stephen M. Cameron
From: Scott Teel Signed-off-by: Scott Teel Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 31ce73f..7c6db2f 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi

[PATCH 17/35] hpsa: get ioaccel mode 2 i/o working

2014-02-18 Thread Stephen M. Cameron
From: Scott Teel Signed-off-by: Scott Teel Signed-off-by: Joe Handzik Signed-off-by: Mike Miller Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 325 --- drivers/scsi/hpsa.h | 20 +++ drivers/scsi/hpsa_cmd.h |1 3 files

  1   2   >