[PATCH RESEND 2] mvsas: Recognise device/subsystem 9485/9485 as 88SE9485

2014-02-18 Thread Ben Hutchings
Matt Taggart reported that mvsas didn't bind to the Marvell SAS controller on a Supermicro AOC-SAS2LP-MV8 board. lspci reports it as: 01:00.0 RAID bus controller [0104]: Marvell Technology Group Ltd. Device [1b4b:9485] (rev 03) Subsystem: Marvell Technology Group Ltd. Device [1b4b:9485]

Re: [GIT PULL] ARM fixes

2014-02-18 Thread Linus Torvalds
On Tue, Feb 18, 2014 at 4:03 PM, Russell King - ARM Linux wrote: > > Almost, but not quite. If we're going to avoid u64, then dma_addr_t > woudl be the right type here because we're talking about DMA addresses. Well, phys_addr_t had better be as big as dma_addr_t, because that's what the resourc

Re: [GIT PULL] ARM fixes

2014-02-18 Thread Russell King - ARM Linux
On Tue, Feb 18, 2014 at 03:49:03PM -0800, Linus Torvalds wrote: > On Mon, Feb 17, 2014 at 3:46 PM, Russell King wrote: > > > > One fix touches code outside of arch/arm, which is related to sorting > > out the DMA masks correctly. There is a long standing issue with the > > conversion from PFNs to

Re: [GIT PULL] ARM fixes

2014-02-18 Thread Linus Torvalds
On Mon, Feb 17, 2014 at 3:46 PM, Russell King wrote: > > One fix touches code outside of arch/arm, which is related to sorting > out the DMA masks correctly. There is a long standing issue with the > conversion from PFNs to addresses where people assume that shifting an > unsigned long left by PA

Re: bio-integrity BUG_ON

2014-02-18 Thread Nicholas A. Bellinger
On Tue, 2014-02-18 at 19:29 +0200, Sagi Grimberg wrote: > Hey, > > I stumbled on a nasty crash with 3.14-rc1 when playing with scsi_debug > DIF emulation. > It's late (IL time..), so I thought I'd post this one up and ask if > anyone else noticed it before digging into this one. > > it comes fr

[PATCH 35/35] hpsa: fixup MSI-X registration

2014-02-18 Thread Stephen M. Cameron
From: Hannes Reinecke Commit 254f796b9f22b1944c64caabc356a56caaa2facd updated the driver to use 16 MSI-X vectors, despite the fact that older controllers would provide only 4. This was causing MSI-X registration to drop down to INTx mode. But as the controller support performant mode, the initial

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

2014-02-18 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/pci_i

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

2014-02-18 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 9410482..c8de330 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -1

[PATCH 27/35] hpsa: update source file copyrights

2014-02-18 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 7f

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

2014-02-18 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/scsi/hp

[PATCH 31/35] hpsa: improve error messages for driver initiated commands

2014-02-18 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 28/35] hpsa: add controller base data-at-rest encryption compatibility ioaccel2

2014-02-18 Thread Stephen M. Cameron
From: Scott Teel Add controller-based data-at-rest encryption compatibility to ioaccel2 path (HP SSD Smart Path). Encryption feature requires driver to supply additional fields for encryption enable, tweak index, and data encryption key index in the ioaccel2 request structure. Encryption enable

[PATCH 24/35] hpsa: allow VPD page zero to be queried

2014-02-18 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 | 17 + 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/hpsa.c b

[PATCH 30/35] hpsa: only do device rescan for certain events

2014-02-18 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 change

[PATCH 25/35] hpsa: do not inquire for unsupported ioaccel status vpd page

2014-02-18 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 ea77a4f

[PATCH 22/35] hpsa: allow user to disable accelerated i/o path

2014-02-18 Thread Stephen M. Cameron
From: Scott Teel Allow SSD Smart Path for a controller to be disabled by the user, regardless of settings in controller firmware or array configuration. To disable: echo 0 > /sys/class/scsi_host/host/acciopath_status To re-enable: echo 1 > /sys/class/scsi_host/host/acciopath_status To chec

[PATCH 26/35] hpsa: retry certain ioaccel error cases on the RAID path

2014-02-18 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 15/35] hpsa: get physical device handles for io accel mode 2 as well as mode 1

2014-02-18 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 80acb23..5da13f0 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa

[PATCH 18/35] hpsa: teach hpsa_device_reset to do either target or lun reset

2014-02-18 Thread Stephen M. Cameron
From: Scott Teel Signed-off-by: Scott Teel Acked-by: Stephen M. Cameron --- drivers/scsi/hpsa.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index e40d94d..021d077 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi

[PATCH 32/35] hpsa add sysfs debug switch for raid map debugging messages

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

[PATCH 23/35] hpsa: rescan devices on ioaccel2 error

2014-02-18 Thread Stephen M. Cameron
From: Scott Teel Allow driver to schedule a rescan whenever a request fails on the ioaccel2 path. This eliminates the possibility of driver getting stuck in non-ioaccel mode. IOaccel mode (HP SSD Smart Path) is disabled by driver upon error detection. Driver relied on idea that request would be

[PATCH 21/35] hpsa: complete the ioaccel raidmap code

2014-02-18 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 13/35] hpsa: Acknowledge controller events in ioaccell mode 2 as well as mode 1

2014-02-18 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 b80ba1e..ba51b1e 100644 --- a/drivers/scsi/hpsa.c +

[PATCH 16/35] hpsa: initialize controller to perform io accelerator mode 2

2014-02-18 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 20/35] hpsa: make device update copy the raid map also

2014-02-18 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/sc

[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 chang

[PATCH 06/35] hpsa: add ioaccell mode 1 RAID offload support.

2014-02-18 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 performance improvement

[PATCH 08/35] hpsa: poll controller to detect device change event

2014-02-18 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 01/35] hpsa: use extended report luns command for HP SSD SmartPath

2014-02-18 Thread Stephen M. Cameron
From: Matt Gates There is an extended report luns command which contains additional information about physical devices. In particular we need to get the physical device handle so we can use an alternate i/o path for fast physical devices like SSDs so we can speed up certain i/o's by bypassing th

[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(-) diff

[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/hpsa.

[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. Cam

[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/scsi

[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 M. Cameron -

[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 deletion

[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 changed, 9 insertion

[PATCH 00/35] hpsa February 2014 driver updates

2014-02-18 Thread Stephen M. Cameron
This is a big patch series. Most of the changes have to do with enabling alternate command submission paths for certain i/os to bypass the Smart Array RAID firmware stack and submit i/o's more directly to physical devices -- solid state disks -- for increased performance. --- Hannes Reinecke (1)

[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 and other non REQ_TYPE_FS i/o

[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 | 296 +++

suspicious self-assignment in lpfc

2014-02-18 Thread Dave Jones
Looking through coverity reports, and it flagged lpfc_read_fcf_conn_tbl() due to the following patch.. commit df0d085fdd2e7c39d1249c2d4ad6b3e176efb60c Author: James Smart Date: Fri May 31 17:05:08 2013 -0400 [SCSI] lpfc 8.3.40: Fixed FCoE connection list vlan identifier and add FCF list d

bio-integrity BUG_ON

2014-02-18 Thread Sagi Grimberg
Hey, I stumbled on a nasty crash with 3.14-rc1 when playing with scsi_debug DIF emulation. It's late (IL time..), so I thought I'd post this one up and ask if anyone else noticed it before digging into this one. it comes from the condition: BUG_ON(total > bio->bi_integrity->bip_iter.bi_size);

[Bug 70751] mpt2sas: system disks dropped when execute SMART tests

2014-02-18 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=70751 --- Comment #1 from Mihaly, A. Toth --- This is my first bugreport in this bugzilla, let me know if any other information is needed. Thank you! -- You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe

[Bug 70751] mpt2sas: system disks dropped when execute SMART tests

2014-02-18 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=70751 Mihaly, A. Toth changed: What|Removed |Added See Also||https://bugzilla.kernel.org

[Bug 70751] New: mpt2sas: system disks dropped when execute SMART tests

2014-02-18 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=70751 Bug ID: 70751 Summary: mpt2sas: system disks dropped when execute SMART tests Product: SCSI Drivers Version: 2.5 Kernel Version: 3.8 Hardware: x86-64 OS: Linux

Re: [PATCH 21/22] qla4xxx: Use pci_enable_msix_range()

2014-02-18 Thread Vikas Chaudhary
On 04/02/14 3:17 AM, "Alexander Gordeev" wrote: >As result of deprecation of MSI-X/MSI enablement functions >pci_enable_msix() and pci_enable_msi_block() all drivers >using these two interfaces need to be updated to use the >new pci_enable_msi_range() and pci_enable_msix_range() >interfaces. >