[PATCH 19/20] scsi_dh_alua: update 'access_state' field

2015-12-07 Thread Hannes Reinecke
Track attached SCSI devices and update the 'access_state' field whenever an ALUA state change has been detected. Signed-off-by: Hannes Reinecke --- drivers/scsi/device_handler/scsi_dh_alua.c | 29 + 1 file changed, 29 insertions(+) diff --git

[PATCH 12/20] scsi_dh_alua: Allow workqueue to run synchronously

2015-12-07 Thread Hannes Reinecke
Some arrays may only capable of handling one STPG at a time, so this patch implements a module option 'sync_stpg' to have STPGs submitted synchronously. Signed-off-by: Hannes Reinecke --- drivers/scsi/device_handler/scsi_dh_alua.c | 10 -- 1 file changed, 8 insertions(+),

[PATCH 11/20] scsi_dh_alua: Use workqueue for RTPG

2015-12-07 Thread Hannes Reinecke
The current ALUA device_handler has two drawbacks: - We're sending a 'SET TARGET PORT GROUP' command to every LUN, disregarding the fact that several LUNs might be in a port group and will be automatically switched whenever _any_ LUN within that port group receives the command. - Whenever a

[PATCH v2 78/71] ncr5380: Add support for HP 53C400A-based cards (C2502)

2015-12-07 Thread Ondrej Zary
HP C2502 cards (based on 53C400A chips) use different magic numbers for software-based I/O address configuration than other cards. The configuration is also extended to allow setting the IRQ. Move the configuration to a new function magic_configure() and move magic the magic numbers into an

[PATCH 07/20] scsi_dh_alua: allocate RTPG buffer separately

2015-12-07 Thread Hannes Reinecke
The RTPG buffer will only evaluated within alua_rtpg(), so we can allocate it locally there and avoid having to put it into the global structure. Reviewed-by: Ewan Milne Reviewed-by: Christoph Hellwig Signed-off-by: Hannes Reinecke ---

[PATCH 13/20] scsi_dh_alua: Recheck state on unit attention

2015-12-07 Thread Hannes Reinecke
When we receive a unit attention code of 'ALUA state changed' we should recheck the state, as it might be due to an implicit ALUA state transition. This allows us to return NEEDS_RETRY instead of ADD_TO_MLQUEUE, allowing to terminate the retries after a certain time. At the same time a workqueue

[PATCH 09/20] scsi_dh_alua: simplify alua_initialize()

2015-12-07 Thread Hannes Reinecke
Rework alua_check_vpd() to use scsi_vpd_get_tpg() and move the port group selection into the function, too. With that we can simplify alua_initialize() to just call alua_check_tpgs() and alua_check_vpd(); Signed-off-by: Hannes Reinecke ---

[PATCH 10/20] revert commit a8e5a2d593cb ("[SCSI] scsi_dh_alua: ALUA handler attach should succeed while TPG is transitioning")

2015-12-07 Thread Hannes Reinecke
Obsoleted by the next patch. Reviewed-by: Ewan Milne Signed-off-by: Hannes Reinecke --- drivers/scsi/device_handler/scsi_dh_alua.c | 31 -- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git

[PATCH 04/20] scsi_dh_alua: call alua_rtpg() if stpg fails

2015-12-07 Thread Hannes Reinecke
If the call to SET TARGET PORT GROUPS fails we have no idea what state the array is left in, so we need to issue a call to REPORT TARGET PORT GROUPS in these cases. Signed-off-by: Hannes Reinecke --- drivers/scsi/device_handler/scsi_dh_alua.c | 2 ++ 1 file changed, 2

[PATCH 20/20] scsi_dh_alua: Update version to 2.0

2015-12-07 Thread Hannes Reinecke
Signed-off-by: Hannes Reinecke --- drivers/scsi/device_handler/scsi_dh_alua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/device_handler/scsi_dh_alua.c b/drivers/scsi/device_handler/scsi_dh_alua.c index d01c86407..1f97b65 100644 ---

[PATCH 08/20] scsi_dh_alua: use unique device id

2015-12-07 Thread Hannes Reinecke
Use scsi_vpd_lun_id() to assign a unique device identification to the alua port group structure. Signed-off-by: Hannes Reinecke --- drivers/scsi/device_handler/scsi_dh_alua.c | 64 -- 1 file changed, 61 insertions(+), 3 deletions(-) diff --git

[PATCH 16/20] scsi_dh: add 'rescan' callback

2015-12-07 Thread Hannes Reinecke
If a device needs to be rescanned the device_handler might need to be rechecked, too. So add a 'rescan' callback to the device handler and call it upon scsi_rescan_device(). Signed-off-by: Hannes Reinecke --- drivers/scsi/device_handler/scsi_dh_alua.c | 8

[PATCH 03/20] scsi_dh_alua: Make stpg synchronous

2015-12-07 Thread Hannes Reinecke
The 'activate_complete' function needs to be executed after stpg has finished, so we can as well execute stpg synchronously and call the function directly. Signed-off-by: Hannes Reinecke --- drivers/scsi/device_handler/scsi_dh_alua.c | 156 ++--- 1 file

[PATCH 06/20] scsi_dh_alua: Use separate alua_port_group structure

2015-12-07 Thread Hannes Reinecke
The port group needs to be a separate structure as several LUNs might belong to the same group. Reviewed-by: Ewan Milne Signed-off-by: Hannes Reinecke --- drivers/scsi/device_handler/scsi_dh_alua.c | 221 - include/scsi/scsi_dh.h

[PATCH 05/20] scsi_dh_alua: switch to scsi_execute_req_flags()

2015-12-07 Thread Hannes Reinecke
All commands are issued synchronously, so no need to open-code scsi_execute_req_flags() anymore. And we can get rid of the static sense code structure element. scsi_execute_req_flags() will be setting REQ_QUIET and REQ_PREEMPT, but that is perfectly fine as we're evaluating and logging any errors

[PATCH 15/20] scsi_dh_alua: Send TEST UNIT READY to poll for transitioning

2015-12-07 Thread Hannes Reinecke
Sending a 'REPORT TARGET PORT GROUP' command is a costly operation, as the array has to gather information about all ports. So instead of using RTPG to poll for a status update when a port is in transitioning we should be sending a TEST UNIT READY, and wait for the sense code to report success.

[PATCH 14/20] scsi_dh_alua: update all port states

2015-12-07 Thread Hannes Reinecke
When we read in the target port group state we should be updating all affected port groups, otherwise we risk running out of sync. Signed-off-by: Hannes Reinecke --- drivers/scsi/device_handler/scsi_dh_alua.c | 31 +- 1 file changed, 22 insertions(+), 9

[PATCH 02/20] scsi_dh_alua: separate out alua_stpg()

2015-12-07 Thread Hannes Reinecke
Separate out SET TARGET PORT GROUP functionality into a separate function alua_stpg(). Signed-off-by: Hannes Reinecke --- drivers/scsi/device_handler/scsi_dh_alua.c | 95 +++--- 1 file changed, 61 insertions(+), 34 deletions(-) diff --git

[PATCH 18/20] scsi_dh_alua: use common definitions for ALUA state

2015-12-07 Thread Hannes Reinecke
scsi_proto.h now contains definitions for the ALUA state, so we don't have to carry them in the device handler. Signed-off-by: Hannes Reinecke --- drivers/scsi/device_handler/scsi_dh_alua.c | 62 +- 1 file changed, 27 insertions(+), 35 deletions(-)

[PATCH 17/20] scsi: Add 'access_state' attribute

2015-12-07 Thread Hannes Reinecke
Add an 'access_state' attribute to struct scsi_device to display the asymmetric LUN access state. Signed-off-by: Hannes Reinecke --- drivers/scsi/scsi_scan.c | 1 + drivers/scsi/scsi_sysfs.c | 49 ++ include/scsi/scsi_device.h | 1 +

[PATCH 00/20] ALUA device handler update, part II

2015-12-07 Thread Hannes Reinecke
Hi all, as promised here is now the second part of my ALUA device handler update. This contains a major rework of the ALUA device handler as execution is moved onto a workqueue. This has the advantage that we avoid having to do multiple calls to the same LUN (as happens frequently when failing

[PATCH 01/20] scsi_dh_alua: Pass buffer as function argument

2015-12-07 Thread Hannes Reinecke
Pass in the buffer as a function argument for submit_rtpg(). Reviewed-by: Martin K. Petersen Reviewed-by: Christoph Hellwig Reviewed-by: Bart Van Assche Signed-off-by: Hannes Reinecke ---

[Bug 108771] scsi: ses: kasan: ses_enclosure_data_process use after free on boot SAS2X28

2015-12-07 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=108771 --- Comment #1 from Pavel Tikhomirov --- Aditional info about enclosue(from that node, but older 3.10 based kernel): [root@p9 crash]# modprobe sg [root@p9 crash]# sg_map -i /dev/sg0 LSI SAS2X28 0e12

Re: [PATCH 04/10] aacraid: Fix memory leak in aac_fib_map_free

2015-12-07 Thread Tomas Henzl
On 5.12.2015 01:40, Raghava Aditya Renukunta wrote: > Hello Tomas, > > >> -Original Message- >> From: Tomas Henzl [mailto:the...@redhat.com] >> Sent: Friday, December 4, 2015 6:35 AM >> To: Raghava Aditya Renukunta; jbottom...@parallels.com; linux- >> s...@vger.kernel.org >> Cc: Mahesh

[PATCH] scsi_transport_fc: cancel scan work always before freeing fc_rport.

2015-12-07 Thread Arkadiusz Bubała
Hello, on my FC environment target machine hanged always while rebooting the initiator machine. I was able to capture the following call trace: [19236.146988] rport-11:0-0: blocked FC remote port time out: removing target and saving binding [19236.157185] rport-10:0-0: blocked FC remote

Re: [PATCH v2 77/71] ncr5380: Fix wait for 53C80 registers registers after PDMA

2015-12-07 Thread Ondrej Zary
On Monday 07 December 2015 04:16:14 Finn Thain wrote: > > On Mon, 7 Dec 2015, Ondrej Zary wrote: > > > The check for 53C80 registers accessibility was commented out because > > it was broken (inverted). Fix and enable it. > > > > Signed-off-by: Ondrej Zary > > --- >

transakce~

2015-12-07 Thread Juin
napiste mi na e-mailovou adresu pro podrobnosti o vzájemne spoluprace. jng.ch...@gmail.com -- 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

Re: [PATCH 05/20] qla2xxx: Added interface to send ELS commands from driver.

2015-12-07 Thread kbuild test robot
Hi Himanshu, [auto build test WARNING on target/master] [also build test WARNING on v4.4-rc4 next-20151207] [cannot apply to scsi/for-next] url: https://github.com/0day-ci/linux/commits/Himanshu-Madhani/qla2xxx-Patches-for-target-pending-branch/20151208-093328 base: https://git.kernel.org

[PATCH] qla2xxx: fix ifnullfree.cocci warnings

2015-12-07 Thread kbuild test robot
drivers/scsi/qla2xxx/qla_iocb.c:2022:2-7: WARNING: NULL check before freeing functions like kfree, debugfs_remove, debugfs_remove_recursive or usb_free_urb is not needed. Maybe consider reorganizing relevant code to avoid passing NULL values. NULL check before some freeing functions is not

Re: [PATCH 13/20] qla2xxx: Remove dependency on hardware_lock to reduce lock contention.

2015-12-07 Thread Julia Lawall
r.kernel.org, n...@linux-iscsi.org > CC: giridhar.malav...@qlogic.com, linux-scsi@vger.kernel.org, > himanshu.madh...@qlogic.com > > Hi Quinn, > > [auto build test WARNING on target/master] > [also build test WARNING on v4.4-rc4 next-20151207] > [cannot apply to scsi/for-next]

Re: [PATCH 09/20] qla2xxx: Change check_stop_free to always return 1

2015-12-07 Thread Christoph Hellwig
On Mon, Dec 07, 2015 at 07:48:56PM -0500, Himanshu Madhani wrote: > From: Quinn Tran > > change tcm_qla2xxx_check_stop_free to always return 1 > to prevent transport_cmd_finish_abort from accidently > taking extra kref_put. This looks a bit fishy. Even if this was the

Re: [PATCH 10/20] qla2xxx: Fix interaction issue between qla2xxx and Target Core Module

2015-12-07 Thread Christoph Hellwig
> -void qlt_abort_cmd(struct qla_tgt_cmd *cmd) > +int qlt_abort_cmd(struct qla_tgt_cmd *cmd) > { > struct qla_tgt *tgt = cmd->tgt; > struct scsi_qla_host *vha = tgt->vha; > struct se_cmd *se_cmd = >se_cmd; > + unsigned long flags,refcount; > > ql_dbg(ql_dbg_tgt_mgt,

Re: [PATCH 11/20] qla2xxx: Add TAS detection for kernel 3.15 n newer

2015-12-07 Thread Christoph Hellwig
> diff --git a/drivers/scsi/qla2xxx/tcm_qla2xxx.c > b/drivers/scsi/qla2xxx/tcm_qla2xxx.c > index 842fcca..2e9c194 100644 > --- a/drivers/scsi/qla2xxx/tcm_qla2xxx.c > +++ b/drivers/scsi/qla2xxx/tcm_qla2xxx.c > @@ -617,6 +617,26 @@ static int tcm_qla2xxx_queue_status(struct se_cmd > *se_cmd) >

Re: [PATCH 12/20] target/tmr: LUN reset cause cmd premature free.

2015-12-07 Thread Christoph Hellwig
On Mon, Dec 07, 2015 at 07:48:59PM -0500, Himanshu Madhani wrote: > From: Quinn Tran > > During LUN/Target reset, the TMR code attempt to intercept > cmds and try to aborted them. Current code assume cmds are > always intercepted at the back end device. The cleanup code

[PATCH v2 1/3] badblocks: Add core badblock management code

2015-12-07 Thread Vishal Verma
Take the core badblocks implementation from md, and make it generally available. This follows the same style as kernel implementations of linked lists, rb-trees etc, where you can have a structure that can be embedded anywhere, and accessor functions to manipulate the data. The only changes in

[PATCH v2 3/3] md: convert to use the generic badblocks code

2015-12-07 Thread Vishal Verma
Retain badblocks as part of rdev, but use the accessor functions from include/linux/badblocks for all manipulation. Signed-off-by: Vishal Verma --- drivers/md/md.c | 516 +++- drivers/md/md.h | 40 + 2 files

[PATCH v2 0/3] Badblock tracking for gendisks

2015-12-07 Thread Vishal Verma
v3: - Add kernel-doc style comments to all exported functions in badblocks.c (James) - Make return values from badblocks functions consistent with themselves and the kernel style. Change the polarity of badblocks_set, and update all callers accordingly (James) - In gendisk, don't

[PATCH v2 2/3] block: Add badblock management for gendisks

2015-12-07 Thread Vishal Verma
NVDIMM devices, which can behave more like DRAM rather than block devices, may develop bad cache lines, or 'poison'. A block device exposed by the pmem driver can then consume poison via a read (or write), and cause a machine check. On platforms without machine check recovery features, this would

Re: [PATCH v2 0/3] Badblock tracking for gendisks

2015-12-07 Thread Verma, Vishal L
Oops, sorry, should've been PATCH v3.. The contents are right, just the subject line is off. -Vishal On Mon, 2015-12-07 at 19:52 -0700, Vishal Verma wrote: > v3: >   - Add kernel-doc style comments to all exported functions in > badblocks.c (James) >   - Make return values from

[PATCH 10/13] IB/srp: use the new CQ API

2015-12-07 Thread Christoph Hellwig
This also moves recv completion handling from hardirq context into softirq context. Signed-off-by: Christoph Hellwig --- drivers/infiniband/ulp/srp/ib_srp.c | 173 +--- drivers/infiniband/ulp/srp/ib_srp.h | 7 +- 2 files changed, 86 insertions(+),

[PATCH 09/13] IB/srpt: use the new CQ API

2015-12-07 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- drivers/infiniband/ulp/srpt/ib_srpt.c | 327 +- drivers/infiniband/ulp/srpt/ib_srpt.h | 28 +-- 2 files changed, 88 insertions(+), 267 deletions(-) diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c

[PATCH 08/13] IB/srpt: chain RDMA READ/WRITE requests

2015-12-07 Thread Christoph Hellwig
Remove struct rdma_iu and instead allocate the struct ib_rdma_wr array early and fill out directly. This allows us to chain the WRs, and thus archive both less lock contention on the HCA workqueue as well as much simpler error handling. Signed-off-by: Christoph Hellwig ---

[PATCH 11/13] IB/iser: Use a dedicated descriptor for login

2015-12-07 Thread Christoph Hellwig
From: Sagi Grimberg We'll need it later with the new CQ abstraction. also switch login bufs to void pointers. Signed-off-by: Sagi Grimberg Signed-off-by: Christoph Hellwig --- drivers/infiniband/ulp/iser/iscsi_iser.h | 30 +--

[PATCH 13/13] IB/iser: Convert to CQ abstraction

2015-12-07 Thread Christoph Hellwig
From: Sagi Grimberg Use the new CQ abstraction to simplify completions in the iSER initiator. Signed-off-by: Sagi Grimberg Signed-off-by: Christoph Hellwig --- drivers/infiniband/ulp/iser/iscsi_iser.h | 72 +---

[PATCH 12/13] IB/iser: Use helper for container_of

2015-12-07 Thread Christoph Hellwig
From: Sagi Grimberg Nicer this way. Signed-off-by: Sagi Grimberg Signed-off-by: Christoph Hellwig --- drivers/infiniband/ulp/iser/iscsi_iser.h | 6 ++ drivers/infiniband/ulp/iser/iser_initiator.c | 3 +--

[PATCH 05/13] irq_poll: mark __irq_poll_complete static

2015-12-07 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/linux/irq_poll.h | 1 - lib/irq_poll.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/include/linux/irq_poll.h b/include/linux/irq_poll.h index c3145c7..ce9e1db 100644 --- a/include/linux/irq_poll.h +++

[PATCH 06/13] irq_poll: remove unused data and max fields

2015-12-07 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/linux/irq_poll.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/irq_poll.h b/include/linux/irq_poll.h index ce9e1db..7527c03 100644 --- a/include/linux/irq_poll.h +++ b/include/linux/irq_poll.h @@ -7,9 +7,7 @@ typedef

[PATCH 02/13] irq_poll: don't disable new irq_poll instances

2015-12-07 Thread Christoph Hellwig
There is no good reason to start out disabled - drivers can control if the poll instance can be scheduled by simply not scheduling it yet. Signed-off-by: Christoph Hellwig --- drivers/scsi/be2iscsi/be_main.c | 2 -- drivers/scsi/ipr.c | 2 -- lib/irq_poll.c

[PATCH 03/13] irq_poll: fold irq_poll_sched_prep into irq_poll_sched

2015-12-07 Thread Christoph Hellwig
There is no good reason to keep them apart, and this makes using the API a bit simpler. Signed-off-by: Christoph Hellwig --- drivers/scsi/be2iscsi/be_main.c | 6 ++ drivers/scsi/ipr.c | 3 +-- include/linux/irq_poll.h| 13 - lib/irq_poll.c

[PATCH 04/13] irq_poll: fold irq_poll_disable_pending into irq_poll_softirq

2015-12-07 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/linux/irq_poll.h | 5 - lib/irq_poll.c | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/include/linux/irq_poll.h b/include/linux/irq_poll.h index 73d7c20..c3145c7 100644 --- a/include/linux/irq_poll.h

[PATCH 01/13] irq_poll: make blk-iopoll available outside the block layer

2015-12-07 Thread Christoph Hellwig
The new name is irq_poll as iopoll is already taken. Better suggestions welcome. Signed-off-by: Christoph Hellwig --- Documentation/kernel-per-CPU-kthreads.txt | 2 +- block/Makefile| 2 +- block/blk-iopoll.c| 224

RE: [PATCH 08/10] aacraid: Disable device ID wildcard

2015-12-07 Thread Raghava Aditya Renukunta
Hello Christoph, > -Original Message- > From: Christoph Hellwig [mailto:h...@infradead.org] > Sent: Friday, December 4, 2015 12:33 AM > To: Raghava Aditya Renukunta > Cc: Tomas Henzl; jbottom...@parallels.com; linux-scsi@vger.kernel.org; > Mahesh Rajashekhara; Murthy Bhat; Santosh Akula;

RE: [PATCH 04/10] aacraid: Fix memory leak in aac_fib_map_free

2015-12-07 Thread Raghava Aditya Renukunta
Hello Tomas, > -Original Message- > From: Tomas Henzl [mailto:the...@redhat.com] > Sent: Monday, December 7, 2015 6:06 AM > To: Raghava Aditya Renukunta; jbottom...@parallels.com; linux- > s...@vger.kernel.org > Cc: Mahesh Rajashekhara; Murthy Bhat; Santosh Akula; Gana Sridaran; >

Re: [PATCH] scsi_dh_alua: Remove stale variables

2015-12-07 Thread Martin K. Petersen
> "Hannes" == Hannes Reinecke writes: Hannes> With commit 83ea0e5e3501 these variables became obsolete, but Hannes> weren't removed. Applied to 4.5/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe

[PATCH 09/20] qla2xxx: Change check_stop_free to always return 1

2015-12-07 Thread Himanshu Madhani
From: Quinn Tran change tcm_qla2xxx_check_stop_free to always return 1 to prevent transport_cmd_finish_abort from accidently taking extra kref_put. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani ---

[PATCH 06/20] qla2xxx: Delete session if initiator is gone from FW

2015-12-07 Thread Himanshu Madhani
From: Alexei Potashnik 1. Initiator A is logged in with fc_id(1)/loop_id(1) 2. Initiator A re-logs in with fc_id(2)/loop_id(2) 3. Part of old session deletion async logoout for 1/1 is queued 4. Initiator B logs in with fc_id(1)/loop_id(1), starts passing data and

[PATCH 10/20] qla2xxx: Fix interaction issue between qla2xxx and Target Core Module

2015-12-07 Thread Himanshu Madhani
From: Quinn Tran During lun reset, TMR thread from TCM would issue abort to qla driver. At abort time, each command is in different state. Depending on the state, qla will use the TMR thread to trigger a command free(cmd_kref--) if command is not down at firmware.

[PATCH 03/20] qla2xxx: Enable Target counters in DebugFS.

2015-12-07 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 18/20] qla2xxx: Set all queues to 4k

2015-12-07 Thread Himanshu Madhani
From: Quinn Tran set ATIO/Request/Response Queues and Default number of outstanding command to 4k. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_def.h |3 ++-

[PATCH 19/20] qla2xxx: Add bulk send for atio & ctio completion paths.

2015-12-07 Thread Himanshu Madhani
From: Quinn Tran At high traffic, the work queue can become a bottle neck. Instead of putting each command on the work queue as 1 work element, the fix would daisy chain a list of commands that came from FW/interrupt under 1 work element to reduce lock contention.

[PATCH 14/20] qla2xxx: Add irq affinity notification

2015-12-07 Thread Himanshu Madhani
From: Quinn Tran Register to receive notification of when irq setting change occured. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_def.h|6 +++

[PATCH 07/20] qla2xxx: Wait for all conflicts before ack'ing PLOGI

2015-12-07 Thread Himanshu Madhani
From: Alexei Potashnik Until now ack'ing of a new PLOGI has only been delayed if there was an existing session for the same WWN. Ack was released when the session deletion completed. If there was another WWN session with the same fc_id/loop_id pair (aka "conflicting

[PATCH 05/20] qla2xxx: Added interface to send ELS commands from driver.

2015-12-07 Thread Himanshu Madhani
Signed-off-by: Himanshu Madhani Signed-off-by: Giridhar Malavali --- drivers/scsi/qla2xxx/qla_attr.c | 36 +++ drivers/scsi/qla2xxx/qla_dbg.c|5 +- drivers/scsi/qla2xxx/qla_def.h| 19 -

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

2015-12-07 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

[PATCH 01/20] qla2xxx: Enable Extended Login support

2015-12-07 Thread Himanshu Madhani
Signed-off-by: Himanshu Madhani Signed-off-by: Giridhar Malavali --- drivers/scsi/qla2xxx/qla_dbg.c |9 +-- drivers/scsi/qla2xxx/qla_def.h | 13 - drivers/scsi/qla2xxx/qla_gbl.h |7 ++ drivers/scsi/qla2xxx/qla_init.c |

[PATCH 20/20] qla2xxx: Check for online flag instead of active reset when transmitting responses

2015-12-07 Thread Himanshu Madhani
From: Dilip Kumar Uppugandla Driver has following initialization sequence for Target mode 1. Driver initialization starts 2. ISP Abort is scheduled when the target is enabled. qla2xxx [:04:00.0]-4807:25: ISP abort scheduled qla2xxx [:04:00.0]-00af:25: Performing

[PATCH 02/20] qla2xxx: Enable Exchange offload support.

2015-12-07 Thread Himanshu Madhani
Signed-off-by: Himanshu Madhani Signed-off-by: Giridhar Malavali --- drivers/scsi/qla2xxx/qla_dbg.c |9 +-- drivers/scsi/qla2xxx/qla_def.h | 12 - drivers/scsi/qla2xxx/qla_gbl.h |6 ++ drivers/scsi/qla2xxx/qla_init.c |

[PATCH 00/20] qla2xxx: Patches for target-pending branch

2015-12-07 Thread Himanshu Madhani
Hi Nic, This patch series adds performance improvement for qla2xxx target mode driver. Please apply this series to target-pending for next mainline merge window. Thanks, Himanshu Alexei Potashnik (2): qla2xxx: Delete session if initiator is gone from FW qla2xxx: Wait for all conflicts

[PATCH 17/20] qla2xxx: Disable ZIO at start time.

2015-12-07 Thread Himanshu Madhani
From: Quinn Tran Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_target.c | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git

[PATCH 12/20] target/tmr: LUN reset cause cmd premature free.

2015-12-07 Thread Himanshu Madhani
From: Quinn Tran During LUN/Target reset, the TMR code attempt to intercept cmds and try to aborted them. Current code assume cmds are always intercepted at the back end device. The cleanup code would issue a "queue_status() & check_stop_free()" to terminate the command.

[PATCH 15/20] qla2xxx: Add selective command queuing

2015-12-07 Thread Himanshu Madhani
From: Quinn Tran queue work element to specific process lessen cache miss Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_isr.c |2 +-

[PATCH 11/20] qla2xxx: Add TAS detection for kernel 3.15 n newer

2015-12-07 Thread Himanshu Madhani
From: Quinn Tran For kernel 3.15 and newer with TCM API change, add detection for TCM support of TAS. Instead of default command terminate for LUN/TARGET reset error handling, allow SCSI status to go out if we know sequece Initiative is own by FW (cmd_sent_to_fw=0)

[PATCH 16/20] qla2xxx: Move atioq to a different lock to reduce lock contention

2015-12-07 Thread Himanshu Madhani
From: Quinn Tran 99% of the time the ATIOQ has SCSI command. The other 1% of time is something else. Most of the time this interrupt does not need to hold the hardware_lock. We're moving the ATIO interrupt thread to a different lock to reduce lock contention.

[PATCH 08/20] qla2xxx: Replace QLA_TGT_STATE_ABORTED with a bit.

2015-12-07 Thread Himanshu Madhani
From: Quinn Tran Replace QLA_TGT_STATE_ABORTED state with a bit because the current state of the command is lost when an abort is requested by upper layer. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani ---

[PATCH 13/20] qla2xxx: Remove dependency on hardware_lock to reduce lock contention.

2015-12-07 Thread Himanshu Madhani
From: Quinn Tran Sessions management (add, deleted, modify) currently are serialized through the hardware_lock. Hardware_lock is a high traffic lock. This lock is accessed by both the transmit & receive sides. Sessions management is now moved off to another lock call

Re: [PATCH 06/20] qla2xxx: Delete session if initiator is gone from FW

2015-12-07 Thread kbuild test robot
Hi Alexei, [auto build test WARNING on target/master] [also build test WARNING on v4.4-rc4 next-20151207] [cannot apply to scsi/for-next] url: https://github.com/0day-ci/linux/commits/Himanshu-Madhani/qla2xxx-Patches-for-target-pending-branch/20151208-093328 base: https://git.kernel.org

Re: [PATCH v2 74/71] ncr5380: Enable PDMA for NCR53C400A

2015-12-07 Thread Finn Thain
On Sun, 6 Dec 2015, Ondrej Zary wrote: > Add I/O register mapping for NCR53C400A and enable PDMA mode to > improve performance and fix non-working IRQ. > > Tested with HP C2502 (and user-space enabler). > > Signed-off-by: Ondrej Zary > --- >