[PATCH 06/21] lpfc: Fix host reset escalation killing all IOs.

2015-02-05 Thread James Smart
ange_queue_depth, + .use_blk_tags = 1, + .track_queue_depth = 1, +}; + struct scsi_host_template lpfc_template = { .module = THIS_MODULE, .name = LPFC_DRIVER_NAME, -- 1.7.11.7 Signed-off-by: James Smart Signed-off-by:

[PATCH 08/21] lpfc: lpfc does not support option_rom_version sysfs attribute on newer adapters

2015-02-05 Thread James Smart
snprintf(buf, PAGE_SIZE, "%s\n", fwrev); } /** -- 1.7.11.7 Signed-off-by: James Smart Signed-off-by: Dick Kennedy -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 03/21] lpfc: EnableBootCode from hbacmd fails on Lancer

2015-02-05 Thread James Smart
I_CONFIG_SUBSYS_COMN 0x01 +#define COMN_OPCODE_GET_PROFILE_CONFIG 0xA4 #define COMN_OPCODE_READ_OBJECT0xAB #define COMN_OPCODE_WRITE_OBJECT 0xAC #define COMN_OPCODE_READ_OBJECT_LIST 0xAD -- 1.7.11.7 Signed-off-by: James Smart Signed-off-by: Dick Kennedy -- To unsubs

[PATCH 07/21] lpfc: Fix setting of EQ delay Multiplier

2015-02-05 Thread James Smart
uint32_t); int lpfc_cq_create(struct lpfc_hba *, struct lpfc_queue *, struct lpfc_queue *, uint32_t, uint32_t); int32_t lpfc_mq_create(struct lpfc_hba *, struct lpfc_queue *, -- 1.7.11.7 Signed-off-by: James Smart Signed-off-by: Dick Kennedy -- To unsubscribe from this

[PATCH 05/21] lpfc: Linux lpfc driver doesn't re-establish the link after a cable pull on LPe12002

2015-02-05 Thread James Smart
g to ADISC */ - if (vport->port_type == LPFC_PHYSICAL_PORT) - lpfc_issue_clear_la(phba, vport); + lpfc_issue_clear_la(phba, vport); if (!(vport->fc_flag & FC_ABORT_DISCOVERY)) { vport->num_disc_nodes = 0; -- 1.7.11.7 Signed-

[PATCH 09/21] lpfc: Parse the new 20G, 25G and 40G link speeds in the lpfc driver

2015-02-05 Thread James Smart
case LPFC_FC_LA_SPEED_16G: port_speed = 16000; break; default: -- 1.7.11.7 Signed-off-by: James Smart Signed-off-by: Dick Kennedy -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of

[PATCH 04/21] lpfc: Fix to handle PLOGI when already logged in

2015-02-05 Thread James Smart
NLP_STE_NPR_NODE); + break; } /* Check for Nport to NPort pt2pt protocol */ -- 1.7.11.7 Signed-off-by: James Smart Signed-off-by: Dick Kennedy -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 10/21] lpfc: Fix provide host name and OS name in RSNN-NN FC-GS command

2015-02-05 Thread James Smart
te :- OS name is "Linux" as per requirement BZ168199. */ + if (size < n) + return n; + n += snprintf(symbol + n, size - n, " OS:%s", init_utsname()->sysname); + return n; } -- 1.7.11.7 Signed-off-by: James Smart Signed-off-by: Dic

[PATCH 13/21] lpfc: Initiator sends wrong BBCredit value for either FLOGI or FLOGI_ACC

2015-02-05 Thread James Smart
shost->host_lock); lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS, "3311 Rcv Flogi PS x%x new PS x%x " -- 1.7.11.7 Signed-off-by: James Smart Signed-off-by: Dick Kennedy -- To unsubscribe from this list: send the line "unsubscribe li

[PATCH 12/21] lpfc: Fix null ndlp derefernce in target_reset_handler

2015-02-05 Thread James Smart
return FAST_IO_FAIL; -- 1.7.11.7 Signed-off-by: James Smart Signed-off-by: Dick Kennedy -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 14/21] lpfc: Fix premature release of rpi bit in bitmask

2015-02-05 Thread James Smart
spin_lock_irqsave(&phba->hbalock, iflag); + max_rpi = phba->sli4_hba.max_cfg_param.max_rpi; + rpi_limit = phba->sli4_hba.next_rpi; + rpi = find_next_zero_bit(phba->sli4_hba.rpi_bmask, rpi_limit, 0); if (rpi >= rpi_limit) rpi = LPFC_RPI

[PATCH 11/21] lpfc: Fix FDMI Fabric support

2015-02-05 Thread James Smart
--- drivers/scsi/lpfc/lpfc.h | 3 + drivers/scsi/lpfc/lpfc_attr.c| 16 +- drivers/scsi/lpfc/lpfc_ct.c | 715 +-- drivers/scsi/lpfc/lpfc_els.c | 2 +- drivers/scsi/lpfc/lpfc_hbadisc.c | 6 +- drivers/scsi/lpfc/lpfc_hw.h | 206 +++

[PATCH 17/21] lpfc: application causes OS crash when running diagnostics

2015-02-05 Thread James Smart
iver timeout in seconds */ uint32_t fcp_wqidx; /* index to FCP work queue */ -- 1.7.11.7 Signed-off-by: James Smart Signed-off-by: Dick Kennedy -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 16/21] lpfc: Fix internal loopback failure

2015-02-05 Thread James Smart
= 0; + else + maxretry = 2; + if (cmdiocb->retry >= 100) delay = 5000; else if (cmdiocb->retry >= 32) -- 1.7.11.7 Signed-off-by: James Smart Signed-off-by: Dick Kennedy -- To unsubscribe from this

[PATCH 18/21] lpfc: Fix crash in device reset handler.

2015-02-05 Thread James Smart
evice Reset rport failure: rdata x%p\n", rdata); +"0798 Device Reset rport failure: rdata x%p\n", +rdata); return FAILED; } pnode = rdata->pnode; -- 1.7.11.7 Signed-off-by: James Smart

[PATCH 19/21] lpfc: Fix for lun discovery issue with 8Gig adapter.

2015-02-05 Thread James Smart
initializing those IOCB fields that are independent * of the scsi_cmnd request_buffer -- 1.7.11.7 Signed-off-by: James Smart Signed-off-by: Dick Kennedy -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.o

[PATCH 15/21] lpfc: Implement support for wire-only DIF devices

2015-02-05 Thread James Smart
gt;sli3_options |= LPFC_SLI3_BG_ENABLED; - else + if (phba->sli3_options & LPFC_SLI3_BG_ENABLED) { + if (!(bf_get(lpfc_mbx_rq_ftr_rsp_dif, &mqe->un.req_ftrs))) { + phba->cfg_enable_bg = 0; + phba->cfg_external_dif = 0; +

[PATCH 21/21] lpfc: Update version to 10.5.0.0

2015-02-05 Thread James Smart
c" /* Used for SLI 2/3 */ -- 1.7.11.7 Signed-off-by: James Smart Signed-off-by: Dick Kennedy -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 20/21] lpfc: Update copyright to 2015

2015-02-05 Thread James Smart
ex. All rights reserved." +#define LPFC_COPYRIGHT "Copyright(c) 2004-2015 Emulex. All rights reserved." -- 1.7.11.7 Signed-off-by: James Smart Signed-off-by: Dick Kennedy -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a m

Re: [PATCH 0/2] SCSI-lpfc: Deletion of an unnecessary check

2015-02-16 Thread James Smart
Markus, Suggestions noted. If not merged, I'll pull them into the next patch set. -- james Acked-By: James Smart On 2/5/2015 5:25 PM, SF Markus Elfring wrote: From: Markus Elfring Date: Thu, 5 Feb 2015 23:17:52 +0100 Another update suggestion was taken into account after a patc

Re: [PATCH 02/21] lpfc: Add Lancer Temperature Event support to the lpfc driver

2015-02-16 Thread James Smart
On 2/6/2015 7:16 AM, Tomas Henzl wrote: On 02/05/2015 08:23 PM, James Smart wrote: --- drivers/scsi/lpfc/lpfc_hw4.h | 1 + drivers/scsi/lpfc/lpfc_init.c | 179 +- 2 files changed, 125 insertions(+), 55 deletions(-) diff --git a/drivers/scsi/lpfc

Re: [PATCH 07/21] lpfc: Fix setting of EQ delay Multiplier

2015-02-16 Thread James Smart
Tomas, This one I'm going to leave as is. bf_set is a macro and I'd prefer we kept the variable with a real data type and not be subject to any compiler-based type conversions in the equations. I'd rather not risk any disruption to the macro to add all the paren'd type declarations. -- jam

Re: [PATCH 10/21] lpfc: Fix provide host name and OS name in RSNN-NN FC-GS command

2015-02-16 Thread James Smart
agree - nice nit. I'll add this to the list of things to merge in the next patch update. -- james On 2/6/2015 7:20 AM, Tomas Henzl wrote: On 02/05/2015 08:24 PM, James Smart wrote: --- drivers/scsi/lpfc/lpfc_ct.c | 23 --- 1 file changed, 20 insertions(+), 3 dele

Re: [PATCH] scsi/lpfc: use remove handler as shutdown handler

2015-02-16 Thread James Smart
Looks good. Acked-By: James Smart -- james On 1/26/2015 10:18 AM, Thadeu Lima de Souza Cascardo wrote: Without a shutdown handler, some cards behave very badly after a kexec. During probe, pending DMA writes will corrupt kernel memory, for example. Using the remove handler guarantees we

Re: [PATCH 01/21] lpfc: Fix the iteration count to match the 30 sec comment

2015-03-09 Thread James Smart
Yes, I'll correct this. Trying to make Christoph happy by using git to format all the patches. -- james On 3/7/2015 11:44 AM, James Bottomley wrote: On Thu, 2015-02-05 at 14:23 -0500, James Smart wrote: --- Could you put the signoffs (and any changelog) above here, please. You se

[PATCH] scsi_transport_fc: Add support for 25Gbit speed

2015-04-02 Thread James Smart
Add FC transport support for 25Gbit speed Signed-off-by: James Smart --- drivers/scsi/scsi_transport_fc.c | 1 + include/scsi/scsi_transport_fc.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/scsi/scsi_transport_fc.c b/drivers/scsi/scsi_transport_fc.c index 5d6f348..24eaaf6

[PATCH 00/21] lpfc: V2: Update lpfc version to driver version 10.5.0.0

2015-04-03 Thread James Smart
changes per comments from first posting. -- james s James Smart (21): Fix the iteration count to match the 30 sec comment in the routine lpfc_pci_function_reset Add Lancer Temperature Event support to the lpfc driver Add new mbx cmd recognition Fix to handle PLOGI when already logged in

[PATCH 01/21] lpfc: Fix the iteration count to match the 30 sec comment in the routine lpfc_pci_function_reset

2015-04-03 Thread James Smart
Fix the iteration count to match the 30 sec comment in the routine lpfc_pci_function_reset Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi

[PATCH 02/21] lpfc: Add Lancer Temperature Event support to the lpfc driver

2015-04-03 Thread James Smart
Add Lancer Temperature Event support to the lpfc driver This will detect and send an async event if overtemp is detected Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_hw4.h | 1 + drivers/scsi/lpfc/lpfc_init.c | 179

[PATCH 05/21] lpfc: Linux lpfc driver doesn't re-establish the link after a cable pull on LPe12002

2015-04-03 Thread James Smart
Linux lpfc driver doesn't re-establish the link after a cable pull on LPe12002 Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_els.c | 3 +-- drivers/scsi/lpfc/lpfc_hbadisc.c | 6 ++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --

[PATCH 04/21] lpfc: Fix to handle PLOGI when already logged in

2015-04-03 Thread James Smart
Fix to handle PLOGI when already logged in Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_nportdisc.c | 27 --- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_nportdisc.c b/drivers/scsi/lpfc

[PATCH 03/21] lpfc: Add new mbx cmd recognition

2015-04-03 Thread James Smart
Add new mbx cmd recognition Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_bsg.c | 1 + drivers/scsi/lpfc/lpfc_bsg.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/scsi/lpfc/lpfc_bsg.c b/drivers/scsi/lpfc/lpfc_bsg.c index a7bf359..6b4cf31

[PATCH 06/21] lpfc: Fix host reset escalation killing all IOs.

2015-04-03 Thread James Smart
scsi_host stays registered across the host_reset, but that will be a rather lengthy effort. In the short term, we had an immediate need to restore the SLI-3 devices to their working behavior, with the easiest path being to remove their host_reset handler. Signed-off-by: Dick Kennedy Signed-off-by: James

[PATCH 12/21] lpfc: Fix null ndlp dereference in target_reset_handler

2015-04-03 Thread James Smart
Fix null ndlp dereference in target_reset_handler Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_scsi.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c index f623299

[PATCH 10/21] lpfc: Fix provide host name and OS name in RSNN-NN FC-GS command

2015-04-03 Thread James Smart
Fix provide host name and OS name in RSNN-NN FC-GS command Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_ct.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_ct.c b/drivers/scsi/lpfc/lpfc_ct.c

[PATCH 07/21] lpfc: Fix setting of EQ (interrupt) delay Multiplier

2015-04-03 Thread James Smart
Fix setting of EQ (interrupt) delay Multiplier Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_init.c | 8 drivers/scsi/lpfc/lpfc_sli.c | 9 +++-- drivers/scsi/lpfc/lpfc_sli4.h | 2 +- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git

[PATCH 11/21] lpfc: Fix FDMI Fabric support in driver for Brocade

2015-04-03 Thread James Smart
Fix FDMI Fabric support in driver for Brocade Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc.h | 3 + drivers/scsi/lpfc/lpfc_attr.c| 16 +- drivers/scsi/lpfc/lpfc_ct.c | 715 +-- drivers/scsi/lpfc

[PATCH 09/21] lpfc: Parse the new 20G, 25G and 40G link speeds in the lpfc driver

2015-04-03 Thread James Smart
Parse the new 20G, 25G and 40G link speeds in the lpfc driver This patch is dependent upon the following patch to the FC transport which adds the 25G speed: http://www.spinics.net/lists/linux-scsi/msg83840.html Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc

[PATCH 08/21] lpfc: Add support for reporting option_rom_version on newer adapters

2015-04-03 Thread James Smart
Add support for reporting option_rom_version on newer adapters Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_attr.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index

[PATCH 13/21] lpfc: Initiator sends wrong BBCredit value for either FLOGI or FLOGI_ACC

2015-04-03 Thread James Smart
Initiator sends wrong BBCredit value for either FLOGI or FLOGI_ACC Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_els.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index 9f3c74e..f73d58c

[PATCH 14/21] lpfc: Fix premature release of rpi bit in bitmask

2015-04-03 Thread James Smart
adapters have a different access pattern that requires us to wait for a later mailbox completion. This changes the put call location on the newer sli4 adapters. Symptoms of the error are "0110 ELS" and the "0372 iotag" errors. Signed-off-by: Dick Kennedy Signed-off-by: James Smar

[PATCH 15/21] lpfc: Implement support for wire-only DIF devices

2015-04-03 Thread James Smart
or LUN DIF enablement, and if set, turns on write-only DIF. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc.h | 41 drivers/scsi/lpfc/lpfc_attr.c| 65 ++- drivers/scsi/lpfc/lpfc_crtn.h| 3 +- drivers/scsi/lpfc/lpfc_hbadisc.c | 3 + drivers

[PATCH 18/21] lpfc: Fix crash in device reset handler.

2015-04-03 Thread James Smart
Fix crash in device reset handler. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_scsi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c index 9ed5f44..fbdc39c 100644 --- a

[PATCH 16/21] lpfc: Fix internal loopback failure.

2015-04-03 Thread James Smart
Fix internal loopback failure. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_els.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index ba5da26..1003b5b 100644 --- a

[PATCH 17/21] lpfc: Fix OS crash when running loopback test in applications

2015-04-03 Thread James Smart
Fix OS crash when running loopback test in applications Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_bsg.c | 1 + drivers/scsi/lpfc/lpfc_sli.c | 12 drivers/scsi/lpfc/lpfc_sli.h | 1 + 3 files changed, 10 insertions(+), 4 deletions(-) diff

[PATCH 21/21] lpfc: Update version to 10.5.0.0 for upstream patch set

2015-04-03 Thread James Smart
Update version to 10.5.0.0 for upstream patch set 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 b/drivers/scsi/lpfc/lpfc_version.h index 9285a6d

[PATCH 19/21] lpfc: Fix for lun discovery issue with saturn adapter.

2015-04-03 Thread James Smart
Fix for lun discovery issue with saturn adapter. FCP_CMD payload was not always properly initialized on SLI-3 devices. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_scsi.c | 41 - 1 file changed, 20 insertions(+), 21

[PATCH 20/21] lpfc: Update copyright to 2015

2015-04-03 Thread James Smart
Update copyright to 2015 Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc.h | 2 +- drivers/scsi/lpfc/lpfc_attr.c | 2 +- drivers/scsi/lpfc/lpfc_bsg.c | 2 +- drivers/scsi/lpfc/lpfc_bsg.h | 2 +- drivers/scsi/lpfc/lpfc_crtn.h | 2

[PATCH v3 02/20] lpfc: Add Lancer Temperature Event support to the lpfc driver

2015-04-07 Thread James Smart
Add Lancer Temperature Event support to the lpfc driver This will detect and send an async event if overtemp is detected Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_hw4.h | 1 + drivers/scsi/lpfc/lpfc_init.c | 179

[PATCH v3 01/20] lpfc: Fix the iteration count to match the 30 sec comment in the routine lpfc_pci_function_reset

2015-04-07 Thread James Smart
Fix the iteration count to match the 30 sec comment in the routine lpfc_pci_function_reset Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi

[PATCH v3 00/20] lpfc: Update lpfc driver to revision 10.5.0.0

2015-04-07 Thread James Smart
x27;s reordered Additional comments added on some patches. Prior Patch 9 and 10 have minor 1 line changes per review comments The patches were cut against Christoph's scsi-queue.git, branch "drivers-for-3.20". -- james s *** BLURB HERE *** James Smart (20): Fix the itera

[PATCH v3 03/20] lpfc: Add new mbx cmd recognition

2015-04-07 Thread James Smart
Add new mbx cmd recognition Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_bsg.c | 1 + drivers/scsi/lpfc/lpfc_bsg.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/scsi/lpfc/lpfc_bsg.c b/drivers/scsi/lpfc/lpfc_bsg.c index a7bf359..6b4cf31

[PATCH v3 04/20] lpfc: Fix to handle PLOGI when already logged in

2015-04-07 Thread James Smart
Fix to handle PLOGI when already logged in Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_nportdisc.c | 27 --- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_nportdisc.c b/drivers/scsi/lpfc

[PATCH v3 08/20] lpfc: Add support for reporting option_rom_version on newer adapters

2015-04-07 Thread James Smart
Add support for reporting option_rom_version on newer adapters Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_attr.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index

[PATCH v3 05/20] lpfc: Linux lpfc driver doesn't re-establish the link after a cable pull on LPe12002

2015-04-07 Thread James Smart
Linux lpfc driver doesn't re-establish the link after a cable pull on LPe12002 Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_els.c | 3 +-- drivers/scsi/lpfc/lpfc_hbadisc.c | 6 ++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --

[PATCH v3 10/20] lpfc: Fix provide host name and OS name in RSNN-NN FC-GS command

2015-04-07 Thread James Smart
Fix provide host name and OS name in RSNN-NN FC-GS command Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_ct.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_ct.c b/drivers/scsi/lpfc

[PATCH v3 14/20] lpfc: Fix premature release of rpi bit in bitmask

2015-04-07 Thread James Smart
adapters have a different access pattern that requires us to wait for a later mailbox completion. This changes the put call location on the newer sli4 adapters. Symptoms of the error are "0110 ELS" and the "0372 iotag" errors. Signed-off-by: Dick Kennedy Signed-off-by: James

[PATCH v3 06/20] lpfc: Fix host reset escalation killing all IOs.

2015-04-07 Thread James Smart
scsi_host stays registered across the host_reset, but that will be a rather lengthy effort. In the short term, we had an immediate need to restore the SLI-3 devices to their working behavior, with the easiest path being to remove their host_reset handler. Signed-off-by: Dick Kennedy Signed-off-by: James

[PATCH v3 13/20] lpfc: Initiator sends wrong BBCredit value for either FLOGI or FLOGI_ACC

2015-04-07 Thread James Smart
Initiator sends wrong BBCredit value for either FLOGI or FLOGI_ACC Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_els.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index 9f3c74e..f73d58c

[PATCH v3 20/20] lpfc: Update version to 10.5.0.0 for upstream patch set

2015-04-07 Thread James Smart
Update version to 10.5.0.0 for upstream patch set 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 b/drivers/scsi/lpfc/lpfc_version.h index 9285a6d

[PATCH v3 09/20] lpfc: Parse the new 20G, 25G and 40G link speeds in the lpfc driver

2015-04-07 Thread James Smart
Parse the new 20G, 25G and 40G link speeds in the lpfc driver This patch is dependent upon the following patch to the FC transport which adds the 25G speed: http://www.spinics.net/lists/linux-scsi/msg83840.html Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc

[PATCH v3 07/20] lpfc: Fix setting of EQ (interrupt) delay Multiplier

2015-04-07 Thread James Smart
Fix setting of EQ (interrupt) delay Multiplier Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_init.c | 8 drivers/scsi/lpfc/lpfc_sli.c | 9 +++-- drivers/scsi/lpfc/lpfc_sli4.h | 2 +- 3 files changed, 12 insertions(+), 7 deletions(-) diff

[PATCH v3 12/20] lpfc: Fix null ndlp dereference in target_reset_handler

2015-04-07 Thread James Smart
Fix null ndlp dereference in target_reset_handler Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_scsi.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c index f623299

[PATCH v3 11/20] lpfc: Fix FDMI Fabric support in driver for Brocade

2015-04-07 Thread James Smart
Fix FDMI Fabric support in driver for Brocade Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc.h | 3 + drivers/scsi/lpfc/lpfc_attr.c| 16 +- drivers/scsi/lpfc/lpfc_ct.c | 715 +-- drivers/scsi/lpfc

[PATCH v3 18/20] lpfc: Fix for lun discovery issue with saturn adapter.

2015-04-07 Thread James Smart
Fix for lun discovery issue with saturn adapter. FCP_CMD payload was not always properly initialized on SLI-3 devices. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_scsi.c | 41 - 1 file changed, 20 insertions(+), 21

[PATCH v3 19/20] lpfc: Update copyright to 2015

2015-04-07 Thread James Smart
Update copyright to 2015 Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc.h | 2 +- drivers/scsi/lpfc/lpfc_attr.c | 2 +- drivers/scsi/lpfc/lpfc_bsg.c | 2 +- drivers/scsi/lpfc/lpfc_bsg.h | 2 +- drivers/scsi/lpfc/lpfc_crtn.h

[PATCH v3 15/20] lpfc: Fix internal loopback failure.

2015-04-07 Thread James Smart
Fix internal loopback failure. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_els.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index ba5da26..1003b5b 100644 --- a

[PATCH v3 16/20] lpfc: Fix OS crash when running loopback test in applications

2015-04-07 Thread James Smart
Fix OS crash when running loopback test in applications Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_bsg.c | 1 + drivers/scsi/lpfc/lpfc_sli.c | 12 drivers/scsi/lpfc/lpfc_sli.h | 1 + 3 files changed, 10 insertions(+), 4 deletions(-) diff

[PATCH v3 17/20] lpfc: Fix crash in device reset handler.

2015-04-07 Thread James Smart
Fix crash in device reset handler. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_scsi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c index 5612ba6..ea818f0 100644

Re: [PATCH 10/21] lpfc: Fix provide host name and OS name in RSNN-NN FC-GS command

2015-04-07 Thread James Smart
On 4/5/2015 8:07 AM, Sebastian Herbszt wrote: James Smart wrote: + /* Note :- OS name is "Linux" as per requirement BZ168199. */ + if (size < n) + return n; + n += snprintf(symbol + n, size - n, " OS:%s", init_utsname()->sysname); +

Re: [PATCH 15/21] lpfc: Implement support for wire-only DIF devices

2015-04-09 Thread James Smart
fyi - in the v3 of the lpfc 10.5.0.0 patches I just posted, I pulled the patch. We will see what to do with it. We may come back with a set of generic midlayer patches. -- james s On 4/5/2015 12:06 PM, Christoph Hellwig wrote: On Fri, Apr 03, 2015 at 05:13:00PM -0400, James Smart wrote

Re: [PATCH v3 10/20] lpfc: Fix provide host name and OS name in RSNN-NN FC-GS command

2015-04-18 Thread James Smart
Fixes those things that parse the result of what data is registered with the fabric. -- james On 4/14/2015 6:02 PM, Sebastian Herbszt wrote: James Smart wrote: Fix provide host name and OS name in RSNN-NN FC-GS command Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers

Re: lpfc: Unknown ELS command x18 received from NPORT xfffc2b

2015-04-18 Thread James Smart
This would silence it. However, I'm about to push a new patch set which adds full RDP support. -- james s On 4/14/2015 7:07 PM, Sebastian Herbszt wrote: We recently started to get [8043768.238110] lpfc :10:00.1: 1:(0):0115 Unknown ELS command x18 received from NPORT xfffc2b [8130462.560

Re: [PATCH v3 18/20] lpfc: Fix for lun discovery issue with saturn adapter.

2015-04-19 Thread James Smart
Thanks Sebastian. We will investigate it. -- james On 4/18/2015 6:57 PM, Sebastian Herbszt wrote: I wrote: James Smart wrote: Fix for lun discovery issue with saturn adapter. FCP_CMD payload was not always properly initialized on SLI-3 devices. Signed-off-by: Dick Kennedy Signed-off-by

[PATCH 00/14] lpfc: Update lpfc driver to revision 10.6.0.1

2015-04-19 Thread James Smart
This patch set updates the lpfc driver to revision 10.6.0.1 The patches were cut against scsi-misc -- james s James Smart (14): The lpfc driver does not issue RFF_ID and RFT_ID in the correct sequence Correct loss of target discovery after cable swap. Add support for ELS LCB

[PATCH 04/14] lpfc: Correct reference counting of rport

2015-04-20 Thread James Smart
Correct reference counting of rport Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_disc.h| 4 +- drivers/scsi/lpfc/lpfc_els.c | 12 +++- drivers/scsi/lpfc/lpfc_hbadisc.c | 144 +++ 3 files changed, 79 insertions

[PATCH 14/14] lpfc: Update driver version for upstream patch set 10.6.0.1.

2015-04-20 Thread James Smart
Update driver version for upstream patch set 10.6.0.1. 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 b/drivers/scsi/lpfc/lpfc_version.h index

[PATCH 01/14] lpfc: The lpfc driver does not issue RFF_ID and RFT_ID in the correct sequence

2015-04-20 Thread James Smart
The lpfc driver does not issue RFF_ID and RFT_ID in the correct sequence Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_hbadisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc

[PATCH 12/14] lpfc: Fix incorrect log message reported for empty FCF record.

2015-04-20 Thread James Smart
Fix incorrect log message reported for empty FCF record. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_hbadisc.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c

[PATCH 06/14] lpfc: Add support for RDP ELS command.

2015-04-20 Thread James Smart
Add support for RDP ELS command. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc.h | 1 + drivers/scsi/lpfc/lpfc_crtn.h | 2 + drivers/scsi/lpfc/lpfc_els.c | 415 ++ drivers/scsi/lpfc/lpfc_hw.h | 169

[PATCH 10/14] lpfc: Fix crash in vport_delete.

2015-04-20 Thread James Smart
Fix crash in vport_delete. We inadvertantly took the path to recreate the vport while in a driver teardown path Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_init.c | 8 +++- drivers/scsi/lpfc/lpfc_nportdisc.c | 8 +++- drivers/scsi/lpfc

[PATCH 07/14] lpfc: Correct reporting of vport state on fdisc command failure.

2015-04-20 Thread James Smart
Correct reporting of vport state on fdisc command failure. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_els.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index 455a5dd

[PATCH 11/14] lpfc: Correct loss of RSCNs during array takeaway/giveback testing.

2015-04-20 Thread James Smart
Correct loss of RSCNs during array takeaway/giveback testing. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_els.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c

[PATCH 05/14] lpfc: Fix ABORTs WQ selection in terminate_rport_io

2015-04-20 Thread James Smart
Fix ABORTs WQ selection in terminate_rport_io Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_sli.c | 32 +--- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc

[PATCH 02/14] lpfc: Correct loss of target discovery after cable swap.

2015-04-20 Thread James Smart
Correct loss of target discovery after cable swap. Fix incorrect reference counting Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_hbadisc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers

[PATCH 08/14] lpfc: Fix discovery issue when changing from Pt2Pt to Fabric.

2015-04-20 Thread James Smart
Fix discovery issue when changing from Pt2Pt to Fabric. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_hbadisc.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc

[PATCH 00/14] lpfc: Update lpfc driver to revision 10.6.0.1

2015-04-20 Thread James Smart
This patch set updates the lpfc driver to revision 10.6.0.1 The patches were cut against scsi-misc -- james s James Smart (14): The lpfc driver does not issue RFF_ID and RFT_ID in the correct sequence Correct loss of target discovery after cable swap. Add support for ELS LCB

[PATCH 03/14] lpfc: Add support for ELS LCB.

2015-04-20 Thread James Smart
Add support for ELS LCB. Also has a little whitespace fixing. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc.h | 1 + drivers/scsi/lpfc/lpfc_els.c | 239 +- drivers/scsi/lpfc/lpfc_hw.h | 32 ++ drivers

[PATCH 13/14] lpfc: Change buffer pool empty message to miscellaneous category

2015-04-20 Thread James Smart
Change buffer pool empty message to miscellaneous category Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c index cb73cf9

[PATCH 09/14] lpfc: Fix to remove IRQF_SHARED flag for MSI/MSI-X vectors.

2015-04-20 Thread James Smart
Fix to remove IRQF_SHARED flag for MSI/MSI-X vectors. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_init.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index

Re: [Bug 96921] New: NULL pointer dereference in lpfc_bus_reset_handler+0xd4/0x240

2015-04-20 Thread James Smart
This is a rather old kernel, thus old driver. Lots of changes since the driver was put out in 3.11. I recommend pulling down the source kits for RHEL7 (3.10 kernel): http://www.emulex.com/downloads/emulex/drivers/linux/rhel-7-centos-7/drivers/ Under FC/FCoE driver and install script - Source Dr

RE: [PATCH v3 10/20] lpfc: Fix provide host name and OS name in RSNN-NN FC-GS command

2015-04-21 Thread James Smart
, 2015 7:15 PM To: James Smart Cc: linux-scsi@vger.kernel.org; Sebastian Herbszt Subject: Re: [PATCH v3 10/20] lpfc: Fix provide host name and OS name in RSNN-NN FC-GS command James Smart wrote: > Fixes those things that parse the result of what data is registered with > the fabric. > &

Re: Error handling on FC devices

2012-11-26 Thread James Smart
On 11/19/2012 7:41 AM, Hannes Reinecke wrote: Hi all, just when we thought we'd finally nailed the error handling on FC ... A customer of ours recently hit this really nasty issue: He had a 'drain' on the SAN, in the sense that the link was still intact, but no commands were coming back from t

Re: Error handling on FC devices

2012-11-29 Thread James Smart
Always possible - but Our f/w works at the FCP level and below, which means it doesn't know/do SCSI commands - e.g what the cdb within the FCP CMD frame is; know anything about SCSI device classes and state; etc. And it shouldn't be required to do so. Anytime this has been there in the pa

Re: [PATCH -next] [SCSI] lpfc 8.3.36: fix potential NULL pointer dereference in lpfc_sli4_rq_put()

2012-12-06 Thread James Smart
Acked-By: James Smart Thanks -- james s On 12/2/2012 8:33 AM, Wei Yongjun wrote: From: Wei Yongjun The dereference to 'put_index' should be moved below the NULL test. Signed-off-by: Wei Yongjun --- drivers/scsi/lpfc/lpfc_sli.c | 3 ++- 1 file changed, 2 insertions(+),

[PATCH 0/11] lpfc 8.3.37: Update lpfc to revision 8.3.37

2013-01-03 Thread James Smart
ned-off-by: James Smart -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 1/11] lpfc 8.3.37: Provide support for change_queue_type

2013-01-03 Thread James Smart
Provide support for change_queue_type method in scsi_host_template Signed-off-by: James Smart --- lpfc_scsi.c | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) diff -upNr a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c --- a/drivers/scsi/lpfc

[PATCH 2/11] lpfc 8.3.37: Fixed ELS_REC received on the unsolicited receive queue

2013-01-03 Thread James Smart
Fixed not properly handle ELS_REC received on the unsolicited receive queue Signed-off-by: James Smart --- lpfc_els.c | 18 -- lpfc_hw.h |2 ++ 2 files changed, 18 insertions(+), 2 deletions(-) diff -upNr a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c

[PATCH 3/11] lpfc 8.3.37: Fixed exhausted retry for plogi to nameserver.

2013-01-03 Thread James Smart
Fixed exhausted retry for plogi to nameserver. Signed-off-by: James Smart --- lpfc_els.c |7 +++ 1 file changed, 7 insertions(+) diff -upNr a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c --- a/drivers/scsi/lpfc/lpfc_els.c 2013-01-02 13:13:02.680087643 -0500

[PATCH 4/11] lpfc 8.3.37: Removed use of NOP mailboxes for interrupt verification

2013-01-03 Thread James Smart
Removed use of NOP mailboxes for interrupt verification in pci_probe_one_s4 Signed-off-by: James Smart --- lpfc_init.c | 179 1 file changed, 26 insertions(+), 153 deletions(-) diff -upNr a/drivers/scsi/lpfc/lpfc_init.c b

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