[PATCH v3 04/16] lpfc: refactor debugfs queue prints

2017-02-12 Thread James Smart
Create common wq, cq, eq, rq print functions Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc.h | 1 + drivers/scsi/lpfc/lpfc_debugfs.c | 564 --- 2 files

[PATCH v3 09/16] lpfc: NVME Initiator: Add debugfs support

2017-02-12 Thread James Smart
NVME Initiator: Add debugfs support Adds debugfs snippets to cover the new NVME initiator functionality Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc.h | 55 ++ drivers/scsi/lpfc/lpfc_crtn.h

[PATCH v3 07/16] lpfc: NVME Initiator: Merge into FC discovery

2017-02-12 Thread James Smart
NVME Initiator: Merge into FC discovery Adds NVME PRLI support and Nameserver registrations and Queries for NVME Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc.h | 6 +-

[PATCH v3 00/16] lpfc: Add NVME Fabrics support

2017-02-12 Thread James Smart
This patch set adds support for NVME over Fabrics FC transport to lpfc The internals of the driver are reworked to support being either: a SCSI initiator; a NVME intiator; both a SCSI initiator and a NVME initiator; or a NVME target. The driver effectively has parallel NVME and SCSI stacks

[PATCH v3 03/16] lpfc: minor code cleanups

2017-02-12 Thread James Smart
This contains code cleanups that were in the prior patch set. This allows better review of real changes later. minor code cleanups: fix indentation, punctuation, line length addition/reduction of whitespace remove unneeded parens, braces lpfc_debugfs_nodelist_data: print as u64 rather than

[PATCH v3 02/16] lpfc: use pci_irq_alloc_vectors and pci_irq_free_vectors

2017-02-12 Thread James Smart
From: Christoph Hellwig This avoids having to store the msix_entries array and simpliefies the shutdown and cleanup path a lot. Signed-off-by: Christoph Hellwig Signed-off-by: James Smart Reviewed-by: Johannes Thumshirn

[PATCH v3 01/16] lpfc: Correct WQ creation for pagesize

2017-02-12 Thread James Smart
Correct WQ creation for pagesize The driver was calculating the adapter command pagesize indicator from the system pagesize. However, the buffers the driver allocates are only one size (SLI4_PAGE_SIZE), so no calculation was necessary. Signed-off-by: Dick Kennedy

Re: [PATCH] scsi: lpfc: Add shutdown method for kexec

2017-02-12 Thread Benjamin Herrenschmidt
On Mon, 2017-02-13 at 08:49 +1100, Anton Blanchard wrote: > From: Anton Blanchard > > We see lpfc devices regularly fail during kexec. Fix this by adding > a shutdown method which mirrors the remove method. Or instead finally do what I've been advocating for years (and even

[PATCH] scsi: lpfc: Add shutdown method for kexec

2017-02-12 Thread Anton Blanchard
From: Anton Blanchard We see lpfc devices regularly fail during kexec. Fix this by adding a shutdown method which mirrors the remove method. Signed-off-by: Anton Blanchard --- drivers/scsi/lpfc/lpfc_init.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v3 14/16] lpfc: NVME Target: Add debugfs support

2017-02-12 Thread James Smart
NVME Target: Add debugfs support Adds debugfs snippets to cover the new NVME target functionality Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_debugfs.c | 303 -

[PATCH v3 08/16] lpfc: NVME Initiator: bind to nvme_fc api

2017-02-12 Thread James Smart
NVME Initiator: Tie in to NVME Fabrics nvme_fc LLDD initiator api Adds the routines to: - register and deregister the FC port as a nvme-fc initiator localport - register and deregister remote FC ports as a nvme-fc remoteport - binding of nvme queues to adapter WQs - send/perform NVME LS's -

[PATCH v3 11/16] lpfc: NVME Target: Receive buffer updates

2017-02-12 Thread James Smart
NVME Target: Receive buffer updates Allocates buffer pools and configures adapter interfaces to handle receive buffer (asynchronous FCP CMD ius, first burst data) from the adapter. Splits by protocol, etc. Signed-off-by: Dick Kennedy Signed-off-by: James Smart

[PATCH v3 05/16] lpfc: refactor debugfs queue dump routines

2017-02-12 Thread James Smart
Create common wq, cq, eq, rq dump functions Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_debugfs.c | 22 ++-- drivers/scsi/lpfc/lpfc_debugfs.h | 214 --- 2 files

[PATCH v3 13/16] lpfc: NVME Target: bind to nvmet_fc api

2017-02-12 Thread James Smart
NVME Target: Tie in to NVME Fabrics nvmet_fc LLDD target api Adds the routines to: - register and deregister the FC port as a nvmet-fc targetport - binding of nvme queues to adapter WQs - receipt and passing of NVME LS's to transport, sending transport response - receipt of NVME FCP CMD IUs,

[PATCH v3 10/16] lpfc: NVME Target: Base modifications

2017-02-12 Thread James Smart
NVME Target: Base modifications This set of patches adds the base modifications for NVME target support The base modifications consist of: - Additional module parameters or configuration tuning - Enablement of configuration mode for NVME target. Ties into the queueing model put into place by

[PATCH v3 15/16] lpfc: Update copyrights

2017-02-12 Thread James Smart
Update copyrights to 2017 for all files touched in this patch set Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/Makefile | 4 +++- drivers/scsi/lpfc/lpfc.h | 4 +++-

[PATCH v3 16/16] lpfc: Update lpfc version to 11.2.0.7

2017-02-12 Thread James Smart
Update lpfc version to 11.2.0.7 Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_version.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_version.h

[PATCH v3 12/16] lpfc: NVME Target: Merge into FC discovery

2017-02-12 Thread James Smart
NVME Target: Merge into FC discovery Adds NVME PRLI handling and Nameserver registrations for NVME Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_ct.c| 8 +++- drivers/scsi/lpfc/lpfc_els.c

Re: [PATCH] scsi: lpfc: Add shutdown method for kexec

2017-02-12 Thread Anton Blanchard
Hi Ben, On Mon, 13 Feb 2017 10:14:54 +1100 Benjamin Herrenschmidt wrote: > On Mon, 2017-02-13 at 08:49 +1100, Anton Blanchard wrote: > > From: Anton Blanchard > > > > We see lpfc devices regularly fail during kexec. Fix this by adding > > a shutdown

Re: [PATCH] scsi: lpfc: Add shutdown method for kexec

2017-02-12 Thread Eric W. Biederman
Anton Blanchard writes: > Hi Ben, > > On Mon, 13 Feb 2017 10:14:54 +1100 > Benjamin Herrenschmidt wrote: > >> On Mon, 2017-02-13 at 08:49 +1100, Anton Blanchard wrote: >> > From: Anton Blanchard >> > >> > We see lpfc devices

Re: [PATCH] scsi: lpfc: Add shutdown method for kexec

2017-02-12 Thread Benjamin Herrenschmidt
On Mon, 2017-02-13 at 13:21 +1300, Eric W. Biederman wrote: > > Good point, at the very least we should call remove if shutdown doesn't > > exist. Eric: could we make the changes Ben suggests? > > Definitely.  That was the original design of the kexec interface > but people were worried about

Re: [PATCH 00/10] mpt3sas: full mq support

2017-02-12 Thread Sreekanth Reddy
On Fri, Feb 10, 2017 at 12:29 PM, Hannes Reinecke wrote: > On 02/10/2017 05:43 AM, Sreekanth Reddy wrote: >> On Thu, Feb 9, 2017 at 6:42 PM, Hannes Reinecke wrote: >>> On 02/09/2017 02:03 PM, Sreekanth Reddy wrote: > [ .. ] Hannes, I have

[PATCH 1/1] mpt3sas: Ignore unaligned completion length for ZBC_IN

2017-02-12 Thread Damien Le Moal
The ZBC_IN command (REPORT ZONES) reply length is always a multiple of 64B and thus may not be aligned on the device LBA size. For this command, retry due to the unaligned completion length is incorrect so do not check alignment of the reply length. Signed-off-by: Damien Le Moal