[PATCH 10/17] lpfc: Make write check error processing more resilient

2015-12-16 Thread James Smart
Make write check error processing more resilient. Checks to catch writes that fw reports weren't fully complete yet SCSI status indicated fine needed correction. Signed-off-by: Dick Kennedy Signed-off-by: James Smart ---

[PATCH 05/17] lpfc: Fix driver crash when module parameter lpfc_fcp_io_channel set to 16

2015-12-16 Thread James Smart
Fix driver crash when module parameter lpfc_fcp_io_channel set to 16 Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_init.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git

[PATCH 16/17] lpfc: Use kzalloc instead of kmalloc

2015-12-16 Thread James Smart
From: Punit Vara This patch is to the lpfc_els.c which resolves following warning reported by coccicheck: WARNING: kzalloc should be used for rdp_context, instead of kmalloc/memset Signed-off-by: Punit Vara Signed-off-by: James Smart

[PATCH 01/17] lpfc: Fix FCF Infinite loop in lpfc_sli4_fcf_rr_next_index_get.

2015-12-16 Thread James Smart
Fix FCF Infinite loop in lpfc_sli4_fcf_rr_next_index_get. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_sli.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[PATCH 1/3] scsi_debug: Increase the reported optimal transfer length

2015-12-16 Thread Martin K. Petersen
The OPTIMAL TRANSFER LENGTH reported by scsi_debug is 64 blocks which translates to 32KB with the default logical block size. That's much lower than what real storage devices typically report (256KB to 1MB). Bump the optimal transfer length to 1024 blocks. Signed-off-by: Martin K. Petersen

[PATCH 3/3] block: Export max_dev_sectors_kb in sysfs

2015-12-16 Thread Martin K. Petersen
Some storage devices report a maximum transfer length which indicates the maximum size of an I/O request that the device can process. This limit is enforced in combination with the controller's max_hw_sectors and DMA constraints to ensure that we do not issue a command too big for the device.

[PATCH 2/3] sd: Reject optimal transfer length smaller than page size

2015-12-16 Thread Martin K. Petersen
Eryu Guan reported that loading scsi_debug would fail. This turned out to be caused by scsi_debug reporting an optimal I/O size of 32KB which is smaller than the 64KB page size on the PowerPC system in question. Add a check to ensure that we only use the device-reported OPTIMAL TRANSFER LENGTH if

Re: [RFC PATCH] lpfc: Add lockdep assertions

2015-12-16 Thread James Smart
Johannes, Thank you for the time and effort on the patch. At this time, as it doesn't functionally change anything, I did not include the patch. I will consider it if we see additional issues it can help resolve. -- james s On 11/20/2015 4:37 AM, Johannes Thumshirn wrote: Several

[PATCH 07/17] lpfc: Modularize and cleanup FDMI code in driver

2015-12-16 Thread James Smart
Modularize, cleanup, add comments - for FDMI code in driver Note: I don't like the comments with leading # - but as we have a lot if present, I'm deferring to handle it in one big fix later. Signed-off-by: Dick Kennedy Signed-off-by: James Smart

[PATCH 17/17] lpfc: Update version to 11.0.0.10 for upstream patch set

2015-12-16 Thread James Smart
Update version to 11.0.0.10 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

[PATCH 03/17] lpfc: Added throttle logging support.

2015-12-16 Thread James Smart
Implemented a throttle on error logging. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc.h | 5 +++ drivers/scsi/lpfc/lpfc_attr.c| 18 +++ drivers/scsi/lpfc/lpfc_crtn.h| 1 +

[PATCH 13/17] lpfc: Fix external loopback failure.

2015-12-16 Thread James Smart
Fix external loopback failure. Rx sequence reassembly was incorrect. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_sli.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff

[PATCH 11/17] lpfc: Use new FDMI speed definitions for 10G, 25G and 40G FCoE.

2015-12-16 Thread James Smart
Use new FDMI speed definitions for 10G, 25G and 40G FCoE. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_attr.c| 2 +- drivers/scsi/lpfc/lpfc_ct.c | 146 ++-

[PATCH 09/17] lpfc: Fix RDP ACC being too long.

2015-12-16 Thread James Smart
Fix RDP ACC being too long. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_els.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/scsi/lpfc/lpfc_els.c

[PATCH 15/17] lpfc: Delete unnecessary checks before the function call "mempool_destroy"

2015-12-16 Thread James Smart
From: Markus Elfring The mempool_destroy() function tests whether its argument is NULL and then returns immediately. Thus the test around the calls is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring

[PATCH 08/17] lpfc: Fix RDP Speed reporting.

2015-12-16 Thread James Smart
Fix RDP Speed reporting. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_els.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_els.c

[PATCH 00/17] lpfc: Update to revision 11.0.0.10

2015-12-16 Thread James Smart
This patch set updates the lpfc driver to revision 11.0.0.10 The patches were cut against scsi-misc James Smart (17): Fix FCF Infinite loop in lpfc_sli4_fcf_rr_next_index_get. Fix the FLOGI discovery logic to comply with T11 standards Added throttle logging support. Fix RegLogin failed

[PATCH 06/17] lpfc: Fix crash in fcp command completion path.

2015-12-16 Thread James Smart
Fix crash in fcp command completion path. Missed null check. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_scsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 12/17] lpfc: Fix mbox reuse in PLOGI completion

2015-12-16 Thread James Smart
Fix mbox reuse in PLOGI completion. Moved allocations so that buffer properly init'd. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_nportdisc.c | 31 +-- 1 file changed, 21

[PATCH 14/17] lpfc: Add logging for misconfigured optics.

2015-12-16 Thread James Smart
Add logging for misconfigured optics acqe reported by fw. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_hw4.h | 51 drivers/scsi/lpfc/lpfc_init.c | 67

[PATCH 04/17] lpfc: Fix RegLogin failed error seen on Lancer FC during port bounce

2015-12-16 Thread James Smart
Fix RegLogin failed error seen on Lancer FC during port bounce Fix the statemachine and ref counting. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_els.c | 14 +-

Re: [PATCH] SCSI-lpfc: Delete unnecessary checks before the function call "mempool_destroy"

2015-12-16 Thread James Smart
fyi - this patch was just pushed in our 11.0.0.10 patch set - patch 15/17 -- james s On 11/17/2015 12:44 AM, SF Markus Elfring wrote: From: Markus Elfring Date: Tue, 17 Nov 2015 09:34:27 +0100 The mempool_destroy() function tests whether its argument is NULL

Re: [PATCH v2] lpfc: replaced kmalloc + memset with kzalloc

2015-12-16 Thread James Smart
fyi - this patch was just pushed in our 11.0.0.10 patch set - patch 16/17 Note: Patch 16 contains the exact same patch submitted by Punit Vara. I posted Punit's change only as it arrived earlier. -- james s On 11/18/2015 11:34 PM, Saurabh Sengar wrote: replacing kmalloc and memset by a

Re: [PATCH v2 1/2] scsi: lpfc: Use kzalloc instead of kmalloc

2015-12-16 Thread James Smart
fyi - this patch was just pushed in our 11.0.0.10 patch set - patch 16/17 -- james s On 10/24/2015 8:25 PM, Matthew R. Ochs wrote: On Oct 24, 2015, at 2:06 AM, Punit Vara wrote: This patch is to the lpfc_els.c which resolves following warning reported by coccicheck:

Re: [patch] qla2xxx: fix a timeout loop

2015-12-16 Thread Martin K. Petersen
> "Dan" == Dan Carpenter writes: Dan> After the loop we test for "if (!retries) " as a failure, but Dan> actually the post-op here will end with retries set to -1. I have Dan> fixed this by using a pre-op instead. Applied to 4.4/scsi-fixes. -- Martin K. Petersen

Re: [PATCH 1/3] scsi_debug: Increase the reported optimal transfer length

2015-12-16 Thread Douglas Gilbert
On 15-12-16 05:53 PM, Martin K. Petersen wrote: The OPTIMAL TRANSFER LENGTH reported by scsi_debug is 64 blocks which translates to 32KB with the default logical block size. That's much lower than what real storage devices typically report (256KB to 1MB). Bump the optimal transfer length to

Re: [PATCH 2/3] sd: Reject optimal transfer length smaller than page size

2015-12-16 Thread Douglas Gilbert
On 15-12-16 05:53 PM, Martin K. Petersen wrote: Eryu Guan reported that loading scsi_debug would fail. This turned out to be caused by scsi_debug reporting an optimal I/O size of 32KB which is smaller than the 64KB page size on the PowerPC system in question. Add a check to ensure that we only

Re: [RFC PATCH] lpfc: Add lockdep assertions

2015-12-16 Thread Bart Van Assche
On 11/20/2015 01:37 PM, Johannes Thumshirn wrote: Several functions in lpfc have comments stating that the function must be called with the hbalock (or hostlock, or ringlock) held. Add lockdep_assert_held() annotations to these functions, so one can actually verify the locks are held. [ ... ]

Re: [PATCH 16/17] lpfc: Use kzalloc instead of kmalloc

2015-12-16 Thread Matthew R. Ochs
Reviewed-by: Matthew R. Ochs -- 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

Note to driver maintainers

2015-12-16 Thread Martin K. Petersen
When somebody posts a patch to a piece of code you maintain it is your responsibility to respond to it. That's what being a maintainer means. There are a ton of trivial/Coccinelle fixes posted that nobody has done anything about. I'm not talking about spelling fixes or whitespace churn. Many of

RE: [PATCH 3/3] block: Export max_dev_sectors_kb in sysfs

2015-12-16 Thread Elliott, Robert (Persistent Memory)
> -Original Message- > From: linux-block-ow...@vger.kernel.org [mailto:linux-block- > ow...@vger.kernel.org] On Behalf Of Martin K. Petersen > Sent: Wednesday, December 16, 2015 4:54 PM > To: linux-scsi@vger.kernel.org; linux-bl...@vger.kernel.org > Cc: Martin K. Petersen

Re: [patch] qla2xxx: fix a timeout loop

2015-12-16 Thread Himanshu Madhani
Hi Dan, On 12/16/15, 3:07 AM, "linux-scsi-ow...@vger.kernel.org on behalf of Dan Carpenter" wrote: >After the loop we test for "if (!retries) " as a failure, but actually >the post-op here will end with retries set to -1.

Re: [PATCH v2] hisi_sas: use platform_get_irq()

2015-12-16 Thread Martin K. Petersen
> "John" == John Garry writes: John> It is preferred that drivers use platform_get_irq() instead of John> irq_of_parse_and_map(), so replace. Applied to 4.5/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the

Re: [patch] qla2xxx: fix a timeout loop

2015-12-16 Thread Johannes Thumshirn
On Wed, Dec 16, 2015 at 02:07:46PM +0300, Dan Carpenter wrote: > After the loop we test for "if (!retries) " as a failure, but actually > the post-op here will end with retries set to -1. I have fixed this by > using a pre-op instead. > > Fixes: 7ec0effd30bb ('[SCSI] qla2xxx: Add support for

[patch] qla2xxx: fix a timeout loop

2015-12-16 Thread Dan Carpenter
After the loop we test for "if (!retries) " as a failure, but actually the post-op here will end with retries set to -1. I have fixed this by using a pre-op instead. Fixes: 7ec0effd30bb ('[SCSI] qla2xxx: Add support for ISP8044.') Signed-off-by: Dan Carpenter diff