[PATCH v2 15/41] hpsa: Get queue depth from identify physical bmic for physical disks.

2015-03-06 Thread Don Brace
From: Joe Handzik get drive queue depth to help avoid task set full conditions. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Joe Handzik Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 33 + 1 file changed, 13 insertions(+), 20

[PATCH v2 13/41] hpsa: print accurate SSD Smart Path Enabled status

2015-03-06 Thread Don Brace
: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index f6c7a96..a218b0e 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -1090,12 +1090,12

[PATCH v2 18/41] hpsa: refactor freeing of resources into more logical functions

2015-03-06 Thread Don Brace
From: Robert Elliott refactor freeing of resources into more logical functions Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 104 +++ 1 file changed, 56

[PATCH v2 14/41] hpsa: use ioaccel2 path to submit IOs to physical drives in HBA mode.

2015-03-06 Thread Don Brace
From: Joe Handzik use ioaccel2 path to submit I/O to physical drives in HBA mode Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Joe Handzik Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 10 +- drivers/scsi/hpsa.h |1 + 2 files changed, 10 insertions

[PATCH v2 17/41] hpsa: clean up error handling

2015-03-06 Thread Don Brace
From: Robert Elliott refactor error cleanup and shutdown disable interrupts and pci_disable_device on critical failures add hpsa_free_cfgtables function Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 92

[PATCH v2 20/41] hpsa: add more ioaccel2 error handling, including underrun statuses.

2015-03-06 Thread Don Brace
From: Joe Handzik improve ioaccel2 error handling, including better handling of underrun statuses Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Joe Handzik Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 33 - drivers/scsi

[PATCH v2 11/41] hpsa: try resubmitting down raid path on task set full

2015-03-06 Thread Don Brace
From: Stephen Cameron allow the controller firmware to queue up commands when the ioaccel device queue is full. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace --- drivers/scsi/hpsa.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a

[PATCH v2 16/41] hpsa: break hpsa_free_irqs_and_disable_msix into two functions

2015-03-06 Thread Don Brace
From: Robert Elliott replace calls to hpsa_free_irqs_and_disable_msix with hpsa_free_irqs and hpsa_disable_interrupt_mode Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 37

[PATCH v2 22/41] hpsa: correct return values from driver functions.

2015-03-06 Thread Don Brace
From: Robert Elliott correct return codes for error conditions Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/scsi

[PATCH v2 27/41] hpsa: use helper routines for finishing commands

2015-03-06 Thread Don Brace
From: Webb Scales cleanup command completions Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Webb Scales Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 78 --- 1 file changed, 31 insertions(+), 47 deletions(-) diff

[PATCH v2 21/41] hpsa: do not check cmd_alloc return value - it cannnot return NULL

2015-03-06 Thread Don Brace
From: Robert Elliott cmd_alloc can no longer return NULL, so don't check for NULL any more (which is unreachable code). Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c |

[PATCH v2 26/41] hpsa: add support sending aborts to physical devices via the ioaccel2 path

2015-03-06 Thread Don Brace
From: Stephen Cameron add support for tmf when in ioaccel2 mode Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Joe Handzik Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 136 +-- drivers/scsi/hpsa.h |1

[PATCH v2 29/41] hpsa: refactor and rework support for sending TEST_UNIT_READY

2015-03-06 Thread Don Brace
-off-by: Webb Scales Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 117 ++- 1 file changed, 87 insertions(+), 30 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index ebf2b59..b91fe35 100644 --- a/drivers/scsi/hpsa.c +++ b

[PATCH v2 19/41] hpsa: add ioaccel sg chaining for the ioaccel2 path

2015-03-06 Thread Don Brace
, which does not call another hpsa_allocate function and only has -ENOMEM to return from some kmalloc calls. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 125

[PATCH v2 24/41] hpsa: clean up some error reporting output in abort handler

2015-03-06 Thread Don Brace
From: Robert Elliott report more useful information on aborts Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 29 ++--- 1 file changed, 14 insertions(+), 15 deletions(-) diff

[PATCH v2 25/41] hpsa: do not print ioaccel2 warning messages about unusual completions.

2015-03-06 Thread Don Brace
Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 24 1 file changed, 24 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 9015b68..0ad327e 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -1909,9 +1909,6

[PATCH v2 23/41] hpsa: clean up driver init

2015-03-06 Thread Don Brace
hpsa_free_performant_mode Prevent inadvertent use of null pointers by nulling out the parent structures and zeroing out associated size variables. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 243

[PATCH v2 30/41] hpsa: performance tweak for hpsa_scatter_gather()

2015-03-06 Thread Don Brace
iteration inside the loop. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Webb Scales Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 39 --- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi

[PATCH v2 28/41] hpsa: don't return abort request until target is complete

2015-03-06 Thread Don Brace
he abort handler check that the scsi_cmd pointer in the CommadList struct matches the scsi_cmnd that it has been asked to abort. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Webb Scales Signed-off-by: Don Brace --- drivers/scsi/hpsa.c

[PATCH v2 33/41] hpsa: cleanup for init_one step 2 in kdump

2015-03-06 Thread Don Brace
off-by: Don Brace --- drivers/scsi/hpsa.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 5bf89a9..5361528 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -7427,6 +7427,16 @@ stati

[PATCH v2 31/41] hpsa: call pci_release_regions after pci_disable_device

2015-03-06 Thread Don Brace
er to print anything. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace < don.br...@pmcs.com> --- drivers/scsi/hpsa.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/hpsa.c b/dr

[PATCH v2 32/41] hpsa: skip free_irq calls if irqs are not allocated

2015-03-06 Thread Don Brace
: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index eb9945b..5bf89a9 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c

[PATCH v2 41/41] hpsa: change driver version

2015-03-06 Thread Don Brace
update driver version Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace --- drivers/scsi/hpsa.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 6a8aff2..796fa1c 100644 --- a/drivers/scsi/hpsa.c

[PATCH v2 36/41] hpsa: add interrupt number to /proc/interrupts interrupt name

2015-03-06 Thread Don Brace
PCI bus went from 32 to 64 bits wide. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 20 ++-- drivers/scsi/hpsa.h |1 + 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a

[PATCH v2 40/41] hpsa: cleanup reset

2015-03-06 Thread Don Brace
both types of waits. Also, don't complete commands which are terminated due to a reset operation. fix for controller lockup during reset Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Webb Scales Signed-off-by: Don Brace --- drivers/scsi/hpsa.c

[PATCH v2 37/41] hpsa: use block layer tag for command allocation

2015-03-06 Thread Don Brace
attached. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Webb Scales Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 153 +-- drivers/scsi/hpsa.h |1 2 files changed, 123 insertions(+), 31 deletions(-) diff --git a/drivers

[PATCH v2 35/41] hpsa: create workqueue after the driver is ready for use

2015-03-06 Thread Don Brace
right order in hpsa_undo_allocations_after_kdump_soft_reset too. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 60 ++- 1 file changed, 31 insertions(+), 29 dele

[PATCH v2 39/41] hpsa: propagate the error code in hpsa_kdump_soft_reset

2015-03-06 Thread Don Brace
From: Robert Elliott If hpsa_wait_for_board_state fails, hpsa_kdump_soft_reset should propagate its return value (e.g., -ENODEV) rather than just returning -1. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c

[PATCH v2 34/41] hpsa: fix try_soft_reset error handling

2015-03-06 Thread Don Brace
From: Robert Elliott If registering the special interrupt handlers in hpsa_init_one before a soft reset fails, the error exit needs to deallocate everything that was allocated before. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace

[PATCH v2 38/41] hpsa: use scsi host_no as hpsa controller number

2015-03-06 Thread Don Brace
Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 134 --- 1 file changed, 74 insertions(+), 60 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index af5d407..9d6f95c 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi

[PATCH v3 00/42] hpsa updates

2015-03-17 Thread Don Brace
pport - clean up resets - update copyright --- Don Brace (2): hpsa: change driver version hpsa: add PMC to copyright Joe Handzik (3): hpsa: use ioaccel2 path to submit IOs to physical drives in HBA mode. hpsa: Get queue depth from identify physical bmic for physical

[PATCH v3 04/42] hpsa: clean up aborts

2015-03-17 Thread Don Brace
commands. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 176 +-- drivers/scsi/hpsa.h |4 + 2 files changed, 147 insertions(+), 33 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers

[PATCH v3 06/42] hpsa: hpsa decode sense data for io and tmf

2015-03-17 Thread Don Brace
r example. The "ScsiStatus" field of the errinfo field will contain the TMF function status value. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 143 +++ drivers/scsi/hpsa_cmd.h |9

[PATCH v3 03/42] hpsa: rework controller command submission

2015-03-17 Thread Don Brace
t_controller_lockup() to return the result, to remove the need for a separate check. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Webb Scales Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 326 --- drivers/scsi/hpsa_c

[PATCH v3 01/42] hpsa: add masked physical devices into h->dev[] array

2015-03-17 Thread Don Brace
ical disk in hpsa_get_pdisk_of_ioaccel2(), just get it out of h->dev[] where we already have it cached. do not touch phys_disk[] for ioaccel enabled logical drives during rescan Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace --- drivers/scsi/hp

[PATCH v3 05/42] hpsa: decrement h->commands_outstanding in fail_all_outstanding_cmds

2015-03-17 Thread Don Brace
From: Stephen Cameron make tracking of outstanding commands more robust Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace --- drivers/scsi/hpsa.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index

[PATCH v3 02/42] hpsa: clean up host, channel, target, lun prints

2015-03-17 Thread Don Brace
Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 103 +++ 1 file changed, 71 insertions(+), 32 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 3417b8b..9b88726 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c

[PATCH v3 10/42] hpsa: do not ignore return value of hpsa_register_scsi

2015-03-17 Thread Don Brace
From: Stephen Cameron add error handling for failure when registering with SCSI subsystem. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace --- drivers/scsi/hpsa.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/hpsa.c b

[PATCH v3 09/42] hpsa: factor out hpsa_init_cmd function

2015-03-17 Thread Don Brace
submitting down the RAID stack path after ioaccel command completion. This saves time when submitting commands. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 77 --- drivers/scsi/hpsa_cmd.h

[PATCH v3 08/42] hpsa: make function names consistent

2015-03-17 Thread Don Brace
From: Robert Elliott make function names more consistent and meaningful Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a

[PATCH v3 07/42] hpsa: allow lockup detected to be viewed via sysfs

2015-03-17 Thread Don Brace
From: Stephen Cameron expose a detected lockup via sysfs Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 415ec4d

[PATCH v3 14/42] hpsa: use ioaccel2 path to submit IOs to physical drives in HBA mode.

2015-03-17 Thread Don Brace
From: Joe Handzik use ioaccel2 path to submit I/O to physical drives in HBA mode Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Joe Handzik Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 10 +- drivers/scsi/hpsa.h |1 + 2 files changed, 10 insertions

[PATCH v3 22/42] hpsa: correct return values from driver functions.

2015-03-17 Thread Don Brace
From: Robert Elliott correct return codes for error conditions Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/scsi

[PATCH v3 21/42] hpsa: do not check cmd_alloc return value - it cannnot return NULL

2015-03-17 Thread Don Brace
From: Robert Elliott cmd_alloc can no longer return NULL, so don't check for NULL any more (which is unreachable code). Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c |

[PATCH v3 13/42] hpsa: print accurate SSD Smart Path Enabled status

2015-03-17 Thread Don Brace
: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 813f3c8..e9d3d71 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -1090,12 +1090,12

[PATCH v3 24/42] hpsa: clean up some error reporting output in abort handler

2015-03-17 Thread Don Brace
From: Robert Elliott report more useful information on aborts Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 29 ++--- 1 file changed, 14 insertions(+), 15 deletions(-) diff

[PATCH v3 15/42] hpsa: Get queue depth from identify physical bmic for physical disks.

2015-03-17 Thread Don Brace
From: Joe Handzik get drive queue depth to help avoid task set full conditions. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Joe Handzik Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 33 + 1 file changed, 13 insertions(+), 20

[PATCH v3 32/42] hpsa: skip free_irq calls if irqs are not allocated

2015-03-17 Thread Don Brace
: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 33aca38..f26e6bc 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c

[PATCH v3 18/42] hpsa: refactor freeing of resources into more logical functions

2015-03-17 Thread Don Brace
From: Robert Elliott refactor freeing of resources into more logical functions Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 104 +++ 1 file changed, 56

[PATCH v3 31/42] hpsa: call pci_release_regions after pci_disable_device

2015-03-17 Thread Don Brace
er to print anything. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace < don.br...@pmcs.com> --- drivers/scsi/hpsa.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/hpsa.c b/dr

[PATCH v3 16/42] hpsa: break hpsa_free_irqs_and_disable_msix into two functions

2015-03-17 Thread Don Brace
From: Robert Elliott replace calls to hpsa_free_irqs_and_disable_msix with hpsa_free_irqs and hpsa_disable_interrupt_mode Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 35

[PATCH v3 25/42] hpsa: do not print ioaccel2 warning messages about unusual completions.

2015-03-17 Thread Don Brace
Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 24 1 file changed, 24 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 7ab34f8..7d0e226 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -1906,9 +1906,6

[PATCH v3 11/42] hpsa: try resubmitting down raid path on task set full

2015-03-17 Thread Don Brace
From: Stephen Cameron allow the controller firmware to queue up commands when the ioaccel device queue is full. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace --- drivers/scsi/hpsa.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a

[PATCH v3 12/42] hpsa: factor out hpsa_ioaccel_submit function

2015-03-17 Thread Don Brace
From: Webb Scales clean up command submission Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Webb Scales Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 91 +-- 1 file changed, 66 insertions(+), 25 deletions(-) diff

[PATCH v3 19/42] hpsa: add ioaccel sg chaining for the ioaccel2 path

2015-03-17 Thread Don Brace
, which does not call another hpsa_allocate function and only has -ENOMEM to return from some kmalloc calls. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 125

[PATCH v3 30/42] hpsa: performance tweak for hpsa_scatter_gather()

2015-03-17 Thread Don Brace
iteration inside the loop. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Webb Scales Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 39 --- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi

[PATCH v3 23/42] hpsa: clean up driver init

2015-03-17 Thread Don Brace
hpsa_free_performant_mode Prevent inadvertent use of null pointers by nulling out the parent structures and zeroing out associated size variables. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 243

[PATCH v3 17/42] hpsa: clean up error handling

2015-03-17 Thread Don Brace
From: Robert Elliott refactor error cleanup and shutdown disable interrupts and pci_disable_device on critical failures add hpsa_free_cfgtables function Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 92

[PATCH v3 20/42] hpsa: add more ioaccel2 error handling, including underrun statuses.

2015-03-17 Thread Don Brace
From: Joe Handzik improve ioaccel2 error handling, including better handling of underrun statuses Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Joe Handzik Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 33 - drivers/scsi

[PATCH v3 27/42] hpsa: use helper routines for finishing commands

2015-03-17 Thread Don Brace
From: Webb Scales cleanup command completions Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Webb Scales Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 78 --- 1 file changed, 31 insertions(+), 47 deletions(-) diff

[PATCH v3 29/42] hpsa: refactor and rework support for sending TEST_UNIT_READY

2015-03-17 Thread Don Brace
-off-by: Webb Scales Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 117 ++- 1 file changed, 87 insertions(+), 30 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 1cae336..3751df3 100644 --- a/drivers/scsi/hpsa.c +++ b

[PATCH v3 26/42] hpsa: add support sending aborts to physical devices via the ioaccel2 path

2015-03-17 Thread Don Brace
From: Stephen Cameron add support for tmf when in ioaccel2 mode Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Joe Handzik Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 136 +-- drivers/scsi/hpsa.h |1

[PATCH v3 34/42] hpsa: fix try_soft_reset error handling

2015-03-17 Thread Don Brace
From: Robert Elliott If registering the special interrupt handlers in hpsa_init_one before a soft reset fails, the error exit needs to deallocate everything that was allocated before. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace

[PATCH v3 28/42] hpsa: don't return abort request until target is complete

2015-03-17 Thread Don Brace
he abort handler check that the scsi_cmd pointer in the CommadList struct matches the scsi_cmnd that it has been asked to abort. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Webb Scales Signed-off-by: Don Brace --- drivers/scsi/hpsa.c

[PATCH v3 33/42] hpsa: cleanup for init_one step 2 in kdump

2015-03-17 Thread Don Brace
off-by: Don Brace --- drivers/scsi/hpsa.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index f26e6bc..0afc48b 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -7422,6 +7422,16 @@ stati

[PATCH v3 35/42] hpsa: create workqueue after the driver is ready for use

2015-03-17 Thread Don Brace
right order in hpsa_undo_allocations_after_kdump_soft_reset too. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 60 ++- 1 file changed, 31 insertions(+), 29 dele

[PATCH v3 36/42] hpsa: add interrupt number to /proc/interrupts interrupt name

2015-03-17 Thread Don Brace
PCI bus went from 32 to 64 bits wide. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 20 ++-- drivers/scsi/hpsa.h |1 + 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a

[PATCH v3 39/42] hpsa: propagate the error code in hpsa_kdump_soft_reset

2015-03-17 Thread Don Brace
From: Robert Elliott If hpsa_wait_for_board_state fails, hpsa_kdump_soft_reset should propagate its return value (e.g., -ENODEV) rather than just returning -1. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c

[PATCH v3 40/42] hpsa: cleanup reset

2015-03-17 Thread Don Brace
both types of waits. Also, don't complete commands which are terminated due to a reset operation. fix for controller lockup during reset Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Webb Scales Signed-off-by: Don Brace --- drivers/scsi/hpsa.c

[PATCH v3 37/42] hpsa: use block layer tag for command allocation

2015-03-17 Thread Don Brace
attached. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Webb Scales Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 153 +-- drivers/scsi/hpsa.h |1 2 files changed, 123 insertions(+), 31 deletions(-) diff --git a/drivers

[PATCH v3 41/42] hpsa: change driver version

2015-03-17 Thread Don Brace
update driver version Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace --- drivers/scsi/hpsa.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 96e1d02..893bb50 100644 --- a/drivers/scsi/hpsa.c

[PATCH v3 42/42] hpsa: add PMC to copyright

2015-03-17 Thread Don Brace
need to add PMC to copyright notice and update the Hewlett-Packard copyright notification. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Reviewed-by: Justin Lindley Signed-off-by: Don Brace --- drivers/scsi/hpsa.c |3 ++- drivers/scsi/hpsa.h |3 ++- drivers/scsi

[PATCH v3 38/42] hpsa: use scsi host_no as hpsa controller number

2015-03-17 Thread Don Brace
Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 134 --- 1 file changed, 74 insertions(+), 60 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 4e34a62..511b7ab 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi

[PATCH v4 00/43] hpsa update

2015-04-16 Thread Don Brace
pport - clean up resets - update copyright - add in new controller id --- Don Brace (3): hpsa: change driver version hpsa: add PMC to copyright hpsa: add in new controller id Joe Handzik (3): hpsa: use ioaccel2 path to submit IOs to physical drives in HBA mode. hpsa

[PATCH v4 05/43] hpsa: decrement h->commands_outstanding in fail_all_outstanding_cmds

2015-04-16 Thread Don Brace
From: Stephen Cameron make tracking of outstanding commands more robust Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace --- drivers/scsi/hpsa.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 2ac700b..6ee92af

[PATCH v4 16/43] hpsa: break hpsa_free_irqs_and_disable_msix into two functions

2015-04-16 Thread Don Brace
From: Robert Elliott replace calls to hpsa_free_irqs_and_disable_msix with hpsa_free_irqs and hpsa_disable_interrupt_mode Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 35

[PATCH v4 11/43] hpsa: try resubmitting down raid path on task set full

2015-04-16 Thread Don Brace
From: Stephen Cameron allow the controller firmware to queue up commands when the ioaccel device queue is full. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace --- drivers/scsi/hpsa.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a

[PATCH v4 22/43] hpsa: correct return values from driver functions.

2015-04-16 Thread Don Brace
From: Robert Elliott correct return codes for error conditions Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/scsi

[PATCH v4 15/43] hpsa: Get queue depth from identify physical bmic for physical disks.

2015-04-16 Thread Don Brace
From: Joe Handzik get drive queue depth to help avoid task set full conditions. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Joe Handzik Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 33 + 1 file changed, 13 insertions(+), 20

[PATCH v4 23/43] hpsa: clean up driver init

2015-04-16 Thread Don Brace
hpsa_free_performant_mode Prevent inadvertent use of null pointers by nulling out the parent structures and zeroing out associated size variables. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 243

[PATCH v4 03/43] hpsa: rework controller command submission

2015-04-16 Thread Don Brace
t_controller_lockup() to return the result, to remove the need for a separate check. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Webb Scales Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 329 --- drivers/scsi/hpsa_c

[PATCH v4 18/43] hpsa: refactor freeing of resources into more logical functions

2015-04-16 Thread Don Brace
From: Robert Elliott refactor freeing of resources into more logical functions Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 104 +++ 1 file changed, 56

[PATCH v4 09/43] hpsa: factor out hpsa_init_cmd function

2015-04-16 Thread Don Brace
submitting down the RAID stack path after ioaccel command completion. This saves time when submitting commands. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 77 --- drivers/scsi/hpsa_cmd.h

[PATCH v4 02/43] hpsa: clean up host, channel, target, lun prints

2015-04-16 Thread Don Brace
Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 73 +-- 1 file changed, 41 insertions(+), 32 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 3417b8b..20a3aa3 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c

[PATCH v4 14/43] hpsa: use ioaccel2 path to submit IOs to physical drives in HBA mode.

2015-04-16 Thread Don Brace
From: Joe Handzik use ioaccel2 path to submit I/O to physical drives in HBA mode Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Joe Handzik Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 10 +- drivers/scsi/hpsa.h |1 + 2 files changed, 10 insertions

[PATCH v4 10/43] hpsa: do not ignore return value of hpsa_register_scsi

2015-04-16 Thread Don Brace
From: Stephen Cameron add error handling for failure when registering with SCSI subsystem. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace --- drivers/scsi/hpsa.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/hpsa.c b

[PATCH v4 06/43] hpsa: hpsa decode sense data for io and tmf

2015-04-16 Thread Don Brace
r example. The "ScsiStatus" field of the errinfo field will contain the TMF function status value. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 143 +++ drivers/scsi/hpsa_cmd.h |9

[PATCH v4 01/43] hpsa: add masked physical devices into h->dev[] array

2015-04-16 Thread Don Brace
ical disk in hpsa_get_pdisk_of_ioaccel2(), just get it out of h->dev[] where we already have it cached. do not touch phys_disk[] for ioaccel enabled logical drives during rescan Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace --- drivers/scsi/hp

[PATCH v4 07/43] hpsa: allow lockup detected to be viewed via sysfs

2015-04-16 Thread Don Brace
From: Stephen Cameron expose a detected lockup via sysfs Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 68238dd

[PATCH v4 04/43] hpsa: clean up aborts

2015-04-16 Thread Don Brace
commands. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 176 +-- drivers/scsi/hpsa.h |4 + 2 files changed, 147 insertions(+), 33 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers

[PATCH v4 19/43] hpsa: add ioaccel sg chaining for the ioaccel2 path

2015-04-16 Thread Don Brace
, which does not call another hpsa_allocate function and only has -ENOMEM to return from some kmalloc calls. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 125

[PATCH v4 20/43] hpsa: add more ioaccel2 error handling, including underrun statuses.

2015-04-16 Thread Don Brace
From: Joe Handzik improve ioaccel2 error handling, including better handling of underrun statuses Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Joe Handzik Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 33 - drivers/scsi

[PATCH v4 21/43] hpsa: do not check cmd_alloc return value - it cannnot return NULL

2015-04-16 Thread Don Brace
From: Robert Elliott cmd_alloc can no longer return NULL, so don't check for NULL any more (which is unreachable code). Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c |

[PATCH v4 13/43] hpsa: print accurate SSD Smart Path Enabled status

2015-04-16 Thread Don Brace
: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index b342788..9ab6af8 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -1060,12 +1060,12

[PATCH v4 12/43] hpsa: factor out hpsa_ioaccel_submit function

2015-04-16 Thread Don Brace
From: Webb Scales clean up command submission Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Webb Scales Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 91 +-- 1 file changed, 66 insertions(+), 25 deletions(-) diff

[PATCH v4 08/43] hpsa: make function names consistent

2015-04-16 Thread Don Brace
From: Robert Elliott make function names more consistent and meaningful Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a

[PATCH v4 24/43] hpsa: clean up some error reporting output in abort handler

2015-04-16 Thread Don Brace
From: Robert Elliott report more useful information on aborts Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 29 ++--- 1 file changed, 14 insertions(+), 15 deletions(-) diff

[PATCH v4 17/43] hpsa: clean up error handling

2015-04-16 Thread Don Brace
From: Robert Elliott refactor error cleanup and shutdown disable interrupts and pci_disable_device on critical failures add hpsa_free_cfgtables function Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 92

[PATCH v4 26/43] hpsa: add support sending aborts to physical devices via the ioaccel2 path

2015-04-16 Thread Don Brace
From: Stephen Cameron add support for tmf when in ioaccel2 mode Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Joe Handzik Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 136 +-- drivers/scsi/hpsa.h |1

[PATCH v4 25/43] hpsa: do not print ioaccel2 warning messages about unusual completions.

2015-04-16 Thread Don Brace
Signed-off-by: Robert Elliott Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 24 1 file changed, 24 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 15c5b81..3bbd579 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -1876,9 +1876,6

<    1   2   3   4   5   6   7   8   9   10   >