Re: [PATCH 0/2] target: 64-bit LUN support

2015-06-10 Thread Hannes Reinecke
On 06/10/2015 06:45 PM, Andy Grover wrote: > On 06/09/2015 11:41 PM, Hannes Reinecke wrote: >> Hi Nic, >> >> here's now the patchset for making LIO-target support 64-bit LUNs. >> Pretty straightforward, plus an additional patch to remove the >> now obsolete limitation on 256 LUNs per TPG. There had

Re: [dm-devel] ALUA - rescan device capacity on zero sized block devices

2015-06-10 Thread Hannes Reinecke
On 06/10/2015 05:02 PM, Ewan Milne wrote: > On Mon, 2015-04-20 at 07:58 +0200, Hannes Reinecke wrote: >> On 04/19/2015 12:56 AM, Christophe Varoqui wrote: >>> About five years ago, we faced a somewhat simular issue with >>> Symmetrix arrays, where the replicated LU of a SRDF pair (R2) was >>> flagg

Re: [PATCH 10/10] qla2xxx: Fix indentation

2015-06-10 Thread Himanshu Madhani
On 6/4/15, 3:58 PM, "Bart Van Assche" wrote: >Detected by smatch. > >Signed-off-by: Bart Van Assche >Cc: Himanshu Madhani >Cc: Quinn Tran >Cc: Saurav Kashyap >--- > drivers/scsi/qla2xxx/qla_init.c | 2 +- > drivers/scsi/qla2xxx/qla_iocb.c | 8 > drivers/scsi/qla2xxx/qla_isr.c | 4

Re: [PATCH 09/10] qla2xxx: Comment out unreachable code

2015-06-10 Thread Himanshu Madhani
On 6/4/15, 3:57 PM, "Bart Van Assche" wrote: >Comment out the code that is never reached in qla83xx_idc_unlock() >and also in qlt_set_data_offset() to avoid that static source code >analysis tools report warnings for this code. > >Signed-off-by: Bart Van Assche >Cc: Himanshu Madhani >Cc: Quin

[Patch V2 9/9] [SCSI] aacraid: Update driver version

2015-06-10 Thread rajinikanth.pandurangan
From: Rajinikanth Pandurangan Signed-off-by: Rajinikanth Pandurangan --- drivers/scsi/aacraid/aacraid.h | 2 +- drivers/scsi/aacraid/linit.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/aacraid.h index 7b95227..73

[Patch V2 8/9] [SCSI] aacraid: Send commit-config to controller firmware

2015-06-10 Thread rajinikanth.pandurangan
From: Rajinikanth Pandurangan Description: Controller BIOS/UEFI driver used to send this request. But for IBM-Power system there is no BIOS/UEFI driver. So this change is required for IBM, otherwise controller will be read-only mode. Signed-off-by: Rajinikanth Pandurang

[Patch V2 6/9] [SCSI] aacraid: Reset irq affinity hints before releasing irq

2015-06-10 Thread rajinikanth.pandurangan
From: Rajinikanth Pandurangan Description: Reset irq affinity hints before releasing IRQ Removed duplicate code of IRQ acquire/release Signed-off-by: Rajinikanth Pandurangan --- drivers/scsi/aacraid/aacraid.h | 2 + drivers/scsi/aacraid/commsup.c | 113 +++

[Patch V2 7/9] [SCSI] aacraid: Unblock IOCTLs to controller once system resumed from suspend

2015-06-10 Thread rajinikanth.pandurangan
From: Rajinikanth Pandurangan Description: Driver blocks ioctls once it received shutdown/suspend request during suspend/hybernation. This patch unblocks ioctls on resume path. Signed-off-by: Rajinikanth Pandurangan --- drivers/scsi/aacraid/linit.c | 5 + 1 file changed, 5

[Patch V2 5/9] [SCSI] aacraid: Tune response path if IsFastPath bit set

2015-06-10 Thread rajinikanth.pandurangan
From: Rajinikanth Pandurangan Description: If 'IsFastPath' bit is set, then response path assumes no error and skips error check. Signed-off-by: Rajinikanth Pandurangan --- drivers/scsi/aacraid/aachba.c | 259 ++ 1 file changed, 137 inser

[Patch V2 3/9] [SCSI] aacraid: Enable MSI interrupt for series-6 controller

2015-06-10 Thread rajinikanth.pandurangan
From: Rajinikanth Pandurangan Description: Enable MSI interrupt mode for series-6 controller. Signed-off-by: Rajinikanth Pandurangan --- drivers/scsi/aacraid/src.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/aacraid/src.c b/drivers/scsi/aacraid/src.

[Patch V2 0/9] [SCSI] aacraid: Patchset for aacraid driver version 41010

2015-06-10 Thread rajinikanth.pandurangan
From: Rajinikanth Pandurangan This patchset includes the following changes (bug fixes and new feature support) specific to aacraid driver. V2: * Removed IRQF_DISABLED * Removed unwanted macro definition "sa_writeq" * Replaced pci_enable_msix()with "pci_enable_msix_exact()" Rajinikanth Panduran

[Patch V2 2/9] [SCSI] aacraid: Add Power Management support

2015-06-10 Thread rajinikanth.pandurangan
From: Rajinikanth Pandurangan Description: * .suspend() and .resume() routines implemented in the driver * aac_release_resources() initiates firmware shutdown * aac_acquire_resources re-initializes the host interface Signed-off-by: Rajinikanth Pandurangan --- drivers/sc

[Patch V2 1/9] [SCSI] aacraid: Fix for logical device name and UID not exposed to the OS

2015-06-10 Thread rajinikanth.pandurangan
From: Rajinikanth Pandurangan Description: Driver sends the right size of the response buffer. Signed-off-by: Rajinikanth Pandurangan --- drivers/scsi/aacraid/aachba.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/aacraid/aachba.c b/drivers/scsi/a

[Patch V2 4/9] [SCSI] aacraid: Enable 64-bit write to controller register

2015-06-10 Thread rajinikanth.pandurangan
From: Rajinikanth Pandurangan Description: If writeq() not supported, then do atomic two 32bit write Signed-off-by: Rajinikanth Pandurangan --- drivers/scsi/aacraid/aacraid.h | 9 + drivers/scsi/aacraid/comminit.c | 1 + drivers/scsi/aacraid/src.c | 12 ++-- 3 f

[Patch V2 0/9] [SCSI] aacraid: Patchset for aacraid driver version 41010

2015-06-10 Thread rajinikanth.pandurangan
From: Rajinikanth Pandurangan This patchset includes the following changes (bug fixes and new feature support) specific to aacraid driver. V2: * Removed IRQF_DISABLED * Removed unwanted macro definition "sa_writeq" * Replaced pci_enable_msix()with "pci_enable_msix_exact()" Rajinikanth Panduran

Re: [PATCH 0/2] target: 64-bit LUN support

2015-06-10 Thread Andy Grover
On 06/09/2015 11:41 PM, Hannes Reinecke wrote: Hi Nic, here's now the patchset for making LIO-target support 64-bit LUNs. Pretty straightforward, plus an additional patch to remove the now obsolete limitation on 256 LUNs per TPG. There had been a comment in the header that REPORT LUN emulation w

[PATCH 2/9] qla2xxx: Enable target mode for ISP27XX

2015-06-10 Thread Himanshu Madhani
Signed-off-by: Himanshu Madhani Signed-off-by: Giridhar Malavali --- drivers/scsi/qla2xxx/qla_attr.c |2 +- drivers/scsi/qla2xxx/qla_def.h|8 drivers/scsi/qla2xxx/qla_init.c |4 ++-- drivers/scsi/qla2xxx/qla_mbx.c|7 --- drivers/scsi/qla2xxx/qla_os.c

[PATCH 0/9] qla2xxx: Patches for scsi "misc" branch.

2015-06-10 Thread Himanshu Madhani
Hi James, Please apply the following patches to the scsi tree at your earliest convenience for inclusion in the next mainline merge window. Thanks, Himanshu Himanshu Madhani (3): qla2xxx: Enable target mode for ISP27XX qla2xxx: Remove msleep in qlt_send_term_exchange qla2xxx: Enable Target

[PATCH 3/9] qla2xxx: Add flush after updating ATIOQ consumer index.

2015-06-10 Thread Himanshu Madhani
From: Quinn Tran After updating the consumer index of ATIO Q, a read is required to flush the write to the adapter register. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_target.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a

re: lpfc: Fix rport leak.

2015-06-10 Thread Dan Carpenter
Hello James Smart, This is a semi-automatic email about new static checker warnings. The patch 466e840b7809: "lpfc: Fix rport leak." from May 21, 2015, leads to the following Smatch complaint: drivers/scsi/lpfc/lpfc_hbadisc.c:3905 lpfc_register_remote_port() error: we previously assume

[PATCH 9/9] qla2xxx: Add FW resource count in DebugFS.

2015-06-10 Thread Himanshu Madhani
From: Quinn Tran DebugFS now will show fw_resource_count node. FW Resource count Original TGT exchg count[0] current TGT exchg count[0] original Initiator Exchange count[2048] Current Initiator Exchange count[2048] Original IOCB count[2078] Current IOCB count[2067] MAX VP count[254] MAX FCF cou

[PATCH 6/9] qla2xxx: Remove msleep in qlt_send_term_exchange

2015-06-10 Thread Himanshu Madhani
Remove unnecessary msleep from qlt_send_term_exchange as it adds latency of 250 msec while sending terminate exchange to an aborted task. Signed-off-by: Himanshu Madhani Signed-off-by: Giridhar Malavali --- drivers/scsi/qla2xxx/qla_target.c | 13 +++-- 1 files changed, 7 insertions(+)

[PATCH 5/9] qla2xxx: adjust debug flags

2015-06-10 Thread Himanshu Madhani
From: Quinn Tran Adjust debug flag to match debug comment. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_target.c |7 --- drivers/scsi/qla2xxx/qla_target.h |3 +++ drivers/scsi/qla2xxx/tcm_qla2xxx.c |3 +-- 3 files changed, 8 insertio

[PATCH 8/9] qla2xxx: Enable Target counters in DebugFS.

2015-06-10 Thread Himanshu Madhani
Following counters are added in target mode to help debugging efforts. Target Counters qla_core_sbt_cmd = 0 qla_core_ret_sta_ctio = 0 qla_core_ret_ctio = 0 core_qla_que_buf = 0 core_qla_snd_status = 0 core_qla_free_cmd = 0 num alloc iocb failed = 0 num term exchange sent = 0 num Q full sent = 0

[PATCH 1/9] qla2xxx: Fix hardware lock/unlock issue causing kernel panic.

2015-06-10 Thread Himanshu Madhani
From: Saurav Kashyap [ Upstream commit ef86cb2059a14b4024c7320999ee58e938873032 ] This patch fixes a kernel panic for qla2xxx Target core Module driver introduced by a fix in the qla2xxx initiator code. Commit ef86cb2 ("qla2xxx: Mark port lost when we receive an RSCN for it.") introduced the re

[PATCH 4/9] qla2xxx: release request queue reservation.

2015-06-10 Thread Himanshu Madhani
From: Quinn Tran Request IOCB queue element(s) is reserved during good path IO. Under error condition such as unable to allocate IOCB handle condition, the IOCB count that was reserved is not released. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_tar

[PATCH 7/9] qla2xxx: fix command initialization in target mode.

2015-06-10 Thread Himanshu Madhani
From: Kanoj Sarcar Signed-off-by: Kanoj Sarcar Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_target.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index b72cda6..7c43cf8 1

re: lpfc: Add support for RDP ELS command.

2015-06-10 Thread Dan Carpenter
Hello James Smart, The patch 86478875eb4d: "lpfc: Add support for RDP ELS command." from May 21, 2015, leads to the following static checker warning: drivers/scsi/lpfc/lpfc_mbox.c:2307 lpfc_mbx_cmpl_rdp_page_a2() error: dereferencing freed memory 'mp' drivers/scsi/lpfc/lpfc_mbox.

re: lpfc: Add support for ELS LCB.

2015-06-10 Thread Dan Carpenter
Hello James Smart, The patch 8b017a30a313: "lpfc: Add support for ELS LCB." from May 21, 2015, leads to the following static checker warning: drivers/scsi/lpfc/lpfc_els.c:5243 lpfc_els_rcv_lcb() error: potential null dereference 'lcb_context'. (kmalloc returns null) drivers/scsi

Re: [dm-devel] ALUA - rescan device capacity on zero sized block devices

2015-06-10 Thread Ewan Milne
On Mon, 2015-04-20 at 07:58 +0200, Hannes Reinecke wrote: > On 04/19/2015 12:56 AM, Christophe Varoqui wrote: > > About five years ago, we faced a somewhat simular issue with > > Symmetrix arrays, where the replicated LU of a SRDF pair (R2) was > > flagged read-only by the kernel upon discovery. Sp

Re: [PATCH v6] cxlflash: Base support for IBM CXL Flash Adapter

2015-06-10 Thread Brian King
Looks good. Reviewed-by: Brian King -Brian -- Brian King Power Linux I/O IBM Linux Technology Center -- 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.ht

[PATCH] megaraid_sas : Pass driver version to firmware inside IOC init frame

2015-06-10 Thread Sumit.Saxena
Signed-off-by: Sumit Saxena --- drivers/scsi/megaraid/megaraid_sas.h| 10 +++--- drivers/scsi/megaraid/megaraid_sas_base.c | 18 ++ drivers/scsi/megaraid/megaraid_sas_fusion.c |7 +++ 3 files changed, 32 insertions(+), 3 deletions(-) diff --git a/driver

Re: [PATCH 0/2] target: 64-bit LUN support

2015-06-10 Thread Nicholas A. Bellinger
Hi Hannes, On Wed, 2015-06-10 at 08:41 +0200, Hannes Reinecke wrote: > Hi Nic, > > here's now the patchset for making LIO-target support 64-bit LUNs. > Pretty straightforward, plus an additional patch to remove the > now obsolete limitation on 256 LUNs per TPG. There had been a > comment in the h

Re: [RFC 0/2] target: Add TFO->complete_irq queue_work bypass

2015-06-10 Thread Nicholas A. Bellinger
On Tue, 2015-06-09 at 09:19 +0200, Christoph Hellwig wrote: > On Thu, Jun 04, 2015 at 12:06:09AM -0700, Nicholas A. Bellinger wrote: > > So I've been using tcm_loop + RAMDISK backends for prototyping, but this > > patch is intended for vhost-scsi so it can avoid the unnecessary > > queue_work() con