[PATCH 0/4] qla4xxx: Updates for scsi misc branch

2013-03-22 Thread vikas . chaudhary
From: Vikas Chaudhary vikas.chaudh...@qlogic.com James, Please apply the following patches to the scsi tree at your earliest convenience. Nilesh Javali (1): qla4xxx: Skip retry of initialize_adapter only for ISP8XXX Vikas Chaudhary (3): qla4xxx: Added missing check for ISP83XX in

[PATCH 1/4] qla4xxx: Added missing check for ISP83XX in CHAP related functions

2013-03-22 Thread vikas . chaudhary
From: Vikas Chaudhary vikas.chaudh...@qlogic.com Signed-off-by: Vikas Chaudhary vikas.chaudh...@qlogic.com --- drivers/scsi/qla4xxx/ql4_mbx.c | 2 +- drivers/scsi/qla4xxx/ql4_os.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/qla4xxx/ql4_mbx.c

[PATCH 2/4] qla4xxx: Assign correct CHAP table address to FLT

2013-03-22 Thread vikas . chaudhary
From: Vikas Chaudhary vikas.chaudh...@qlogic.com Issue: If flash read for FLT fails, we are assigning wrong default address for CHAP table in FLT, which will cause CHAP table read/write to wrong address. Fix: Assign correct default CHAP table address to FLT. Signed-off-by: Vikas Chaudhary

[PATCH 4/4] qla4xxx: Update driver version to 5.03.00-k6

2013-03-22 Thread vikas . chaudhary
From: Vikas Chaudhary vikas.chaudh...@qlogic.com Signed-off-by: Vikas Chaudhary vikas.chaudh...@qlogic.com --- drivers/scsi/qla4xxx/ql4_version.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla4xxx/ql4_version.h b/drivers/scsi/qla4xxx/ql4_version.h index

[PATCH 3/4] qla4xxx: Skip retry of initialize_adapter for ISP80XX

2013-03-22 Thread vikas . chaudhary
From: Nilesh Javali nilesh.jav...@qlogic.com While probe Skip retry of initialize_adapter only for ISP82XX and ISP83XX. We need to retry initialize_adapter for ISP40XX. Signed-off-by: Nilesh Javali nilesh.jav...@qlogic.com Signed-off-by: Vikas Chaudhary vikas.chaudh...@qlogic.com ---

[PATCH 0/4] qla4xxx: Patches for iSCSI flash node mgmt support

2013-03-22 Thread vikas . chaudhary
From: Vikas Chaudhary vikas.chaudh...@qlogic.com James, Following patches allows iscsiadm to manage iSCSI target information stored on adapter flash on per host basis and and perform various operations like add, delete, login, logout, and update the target information. Please apply these

[PATCH 1/4] scsi_transport_iscsi: Add flash node mgmt support

2013-03-22 Thread vikas . chaudhary
From: Adheer Chandravanshi adheer.chandravan...@qlogic.com This patch allows iscsiadm to manage iSCSI target information stored on adapter flash on per host basis. The sysfs entries will look as cited below: /sys/bus/iscsi_flashnode/devices/flashnode_sess-host_no:flashnode_id/session

[PATCH 2/4] libiscsi: export function iscsi_switch_str_param

2013-03-22 Thread vikas . chaudhary
From: Adheer Chandravanshi adheer.chandravan...@qlogic.com Signed-off-by: Adheer Chandravanshi adheer.chandravan...@qlogic.com Signed-off-by: Vikas Chaudhary vikas.chaudh...@qlogic.com --- drivers/scsi/libiscsi.c |3 ++- include/scsi/libiscsi.h |1 + 2 files changed, 3 insertions(+), 1

Re: [PATCH RESEND v11 0/4] block layer runtime pm

2013-03-22 Thread Jens Axboe
On Fri, Mar 15 2013, Aaron Lu wrote: In August 2010, Jens and Alan discussed about Runtime PM and the block layer. http://marc.info/?t=12825910841r=1w=2 And then Alan has given a detailed implementation guide: http://marc.info/?l=linux-scsim=133727953625963w=2 To test: # ls -l

Re: [PATCH 2/3] PCI: Handle device quirks when accessing sysfs resourceN entries

2013-03-22 Thread Myron Stowe
On Thu, Mar 21, 2013 at 6:51 PM, Robert Hancock hancock...@gmail.com wrote: On 03/20/2013 10:35 PM, Myron Stowe wrote: Sysfs includes entries to memory regions that back a PCI device's BARs. The pci-sysfs entries backing I/O Port BARs can be accessed by userspace, providing direct access to

Re: [PATCH 2/3] PCI: Handle device quirks when accessing sysfs resourceN entries

2013-03-22 Thread Robert Hancock
On Fri, Mar 22, 2013 at 9:39 AM, Myron Stowe myron.st...@gmail.com wrote: On Thu, Mar 21, 2013 at 6:51 PM, Robert Hancock hancock...@gmail.com wrote: On 03/20/2013 10:35 PM, Myron Stowe wrote: Sysfs includes entries to memory regions that back a PCI device's BARs. The pci-sysfs entries

Re: [PATCH 2/3] PCI: Handle device quirks when accessing sysfs resourceN entries

2013-03-22 Thread Myron Stowe
On Fri, Mar 22, 2013 at 9:55 AM, Robert Hancock hancock...@gmail.com wrote: On Fri, Mar 22, 2013 at 9:39 AM, Myron Stowe myron.st...@gmail.com wrote: On Thu, Mar 21, 2013 at 6:51 PM, Robert Hancock hancock...@gmail.com wrote: On 03/20/2013 10:35 PM, Myron Stowe wrote: Sysfs includes entries

Re: [RFC 01/11] iscsi-target: Add iscsit_transport API template

2013-03-22 Thread Andy Grover
On 03/07/2013 05:45 PM, Nicholas A. Bellinger wrote: From: Nicholas Bellinger n...@linux-iscsi.org Add basic struct iscsit_transport API template to allow iscsi-target for running with external transport modules using existing iscsi_target_core.h code. For all external modules, this calls

Re: [RFC 02/11] iscsi-target: Initial traditional TCP conversion to iscsit_transport

2013-03-22 Thread Andy Grover
On 03/07/2013 05:45 PM, Nicholas A. Bellinger wrote: From: Nicholas Bellinger n...@linux-iscsi.org This patch performs the initial conversion of existing traditional iscsi to use iscsit_transport API callers. This includes: - iscsi-np cleanups for iscsit_transport_type - Add iscsi-np

Re: [RFC 03/11] iscsi-target: Add iser-target parameter keys + setup during login

2013-03-22 Thread Andy Grover
On 03/07/2013 05:45 PM, Nicholas A. Bellinger wrote: From: Nicholas Bellinger n...@linux-iscsi.org This patch adds RDMAExtensions, InitiatorRecvDataSegmentLength and TargetRecvDataSegmentLength parameters keys necessary for iser-target login to occur. This includes setting the necessary

Re: [RFC 04/11] iscsi-target: Add per transport iscsi_cmd alloc/free

2013-03-22 Thread Andy Grover
On 03/07/2013 05:45 PM, Nicholas A. Bellinger wrote: From: Nicholas Bellinger n...@linux-iscsi.org This patch converts struct iscsi_cmd memory allocation + free to use -iscsit_alloc_cmd() + -iscsit_free_cmd() iscsit_transport API caller, and export iscsit_allocate_cmd() + iscsit_free_cmd()

Re: [RFC 05/11] iscsi-target: Refactor RX PDU logic + export request PDU handling

2013-03-22 Thread Andy Grover
On 03/07/2013 05:45 PM, Nicholas A. Bellinger wrote: From: Nicholas Bellinger n...@linux-iscsi.org This patch refactors existing traditional iscsi RX side PDU handling to use iscsit_transport, and exports the necessary logic for external transport modules. This includes: - Refactor

Re: [PATCH 0/4] qla2xxx: Patches for 3.9-rc.

2013-03-22 Thread Saurav Kashyap
Hi James, Please disregard this patch set we had submitted as the sender was wrong, we will send the correct patch set soon. Thanks, ~Saurav Hi James, Please apply the following patches for 3.9-rc. Thanks, ~Saurav Arun Easi (1): qla2xxx: Fix crash during firmware dump procedure. Joe

RE: [PATCH 2/3] PCI: Handle device quirks when accessing sysfs resourceN entries

2013-03-22 Thread Elliott, Robert (Server Storage)
On Fri, Mar 22, 2013 at 9:55 AM, Robert Hancock hancock...@gmail.com wrote: On Fri, Mar 22, 2013 at 9:39 AM, Myron Stowe myron.st...@gmail.com wrote: On Thu, Mar 21, 2013 at 6:51 PM, Robert Hancock hancock...@gmail.com wrote: On 03/20/2013 10:35 PM, Myron Stowe wrote: Sysfs

Re: [RFC 01/11] iscsi-target: Add iscsit_transport API template

2013-03-22 Thread Nicholas A. Bellinger
On Fri, 2013-03-22 at 10:23 -0700, Andy Grover wrote: On 03/07/2013 05:45 PM, Nicholas A. Bellinger wrote: From: Nicholas Bellinger n...@linux-iscsi.org Add basic struct iscsit_transport API template to allow iscsi-target for running with external transport modules using existing

PING^2 Re: [PATCH v2 00/14] Corrections and customization of the SG_IO command whitelist (CVE-2012-4542)

2013-03-22 Thread Paolo Bonzini
Il 20/02/2013 17:12, Paolo Bonzini ha scritto: Il 06/02/2013 16:15, Paolo Bonzini ha scritto: This series regards the whitelist that is used for the SG_IO ioctl. This whitelist has three problems: * the bitmap of allowed commands is designed for MMC devices (roughly, play/burn CDs without

Re: [RFC 02/11] iscsi-target: Initial traditional TCP conversion to iscsit_transport

2013-03-22 Thread Nicholas A. Bellinger
On Fri, 2013-03-22 at 10:23 -0700, Andy Grover wrote: On 03/07/2013 05:45 PM, Nicholas A. Bellinger wrote: From: Nicholas Bellinger n...@linux-iscsi.org This patch performs the initial conversion of existing traditional iscsi to use iscsit_transport API callers. This includes: -

Re: [RFC 03/11] iscsi-target: Add iser-target parameter keys + setup during login

2013-03-22 Thread Nicholas A. Bellinger
On Fri, 2013-03-22 at 10:23 -0700, Andy Grover wrote: On 03/07/2013 05:45 PM, Nicholas A. Bellinger wrote: From: Nicholas Bellinger n...@linux-iscsi.org This patch adds RDMAExtensions, InitiatorRecvDataSegmentLength and TargetRecvDataSegmentLength parameters keys necessary for iser-target

Re: [RFC 04/11] iscsi-target: Add per transport iscsi_cmd alloc/free

2013-03-22 Thread Nicholas A. Bellinger
On Fri, 2013-03-22 at 10:23 -0700, Andy Grover wrote: On 03/07/2013 05:45 PM, Nicholas A. Bellinger wrote: From: Nicholas Bellinger n...@linux-iscsi.org This patch converts struct iscsi_cmd memory allocation + free to use -iscsit_alloc_cmd() + -iscsit_free_cmd() iscsit_transport API

Re: [RFC 05/11] iscsi-target: Refactor RX PDU logic + export request PDU handling

2013-03-22 Thread Nicholas A. Bellinger
On Fri, 2013-03-22 at 10:23 -0700, Andy Grover wrote: On 03/07/2013 05:45 PM, Nicholas A. Bellinger wrote: From: Nicholas Bellinger n...@linux-iscsi.org This patch refactors existing traditional iscsi RX side PDU handling to use iscsit_transport, and exports the necessary logic for

[RFC-v2 00/12] Add support for iSCSI Extensions for RDMA (ISER) target

2013-03-22 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org Hi folks, This series is the second RFC for iSCSI Extensions for RDMA (ISER) target support with existing iscsi-target TCP based socket code, planned for a future v3.10 merge. This includes a basic iscsit_transport API that allows different

[RFC-v2 01/12] target: Add export of target_get_sess_cmd symbol

2013-03-22 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org Export target_get_sess_cmd() symbol so that it can be used by iscsi-target. Signed-off-by: Nicholas Bellinger n...@linux-iscsi.org --- drivers/target/target_core_transport.c |4 ++-- include/target/target_core_fabric.h|2 +- 2 files

[RFC-v2 02/12] iscsi-target: Add iscsit_transport API template

2013-03-22 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org Add basic struct iscsit_transport API template to allow iscsi-target for running with external transport modules using existing iscsi_target_core.h code. For all external modules, this calls try_module_get() and module_put() to obtain + release an

[RFC-v2 04/12] iscsi-target: Add iser-target parameter keys + setup during login

2013-03-22 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org This patch adds RDMAExtensions, InitiatorRecvDataSegmentLength and TargetRecvDataSegmentLength parameters keys necessary for iser-target login to occur. This includes setting the necessary parameters during login path code within

[RFC-v2 05/12] iscsi-target: Add per transport iscsi_cmd alloc/free

2013-03-22 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org This patch converts struct iscsi_cmd memory allocation + free to use -iscsit_alloc_cmd() iscsit_transport API caller, and export iscsit_allocate_cmd() symbols Also add iscsi_cmd-release_cmd() to be used seperately from iscsit_transport for

[RFC-v2 07/12] iscsi-target: Refactor TX queue logic + export response PDU creation

2013-03-22 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org This patch refactors TX immediate + response queue handling to use the new iscsit_transport API callers, and exports the necessary traditional iscsi PDU response creation functions for iser-target to utilize. This includes: - Add

[RFC-v2 08/12] iscsi-target: Add iser network portal attribute

2013-03-22 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org This patch adds a new network portal attribute for iser, that lives under existing iscsi-target configfs layout at: /sys/kernel/config/target/iscsi/$TARGETNAME/$TPGT/np/$PORTAL/iser When lio_target_np_store_iser() is enabled,

[RFC-v2 10/12] iser-target: Add logic for verbs

2013-03-22 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org v2 changes: - Drop unused ISERT_ADDR_ROUTE_TIMEOUT define - Add rdma_notify() call for IB_EVENT_COMM_EST in isert_qp_event_callback() - Make isert_query_device() less verbose - Drop unused RDMA_CM_EVENT_ADDR_ERROR and RDMA_CM_EVENT_ROUTE_ERROR

[RFC-v2 12/12] iser-target: Add Makefile + Kconfig

2013-03-22 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org Signed-off-by: Nicholas Bellinger n...@linux-iscsi.org --- drivers/infiniband/Kconfig|1 + drivers/infiniband/Makefile |1 + drivers/infiniband/ulp/isert/Kconfig |6 ++ drivers/infiniband/ulp/isert/Makefile |

[RFC-v2 11/12] iser-target: Add logic for core

2013-03-22 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org v2 changes: - Drop misleading isert_dump_ib_wc() usage - Drop unused rdma/ib_fmr_pool.h include - Use proper xfer_len for login PDUs in isert_rx_completion() - Add isert_release_cmd() usage - Change isert_alloc_cmd() to setup iscsi_cmd.release_cmd()

[RFC-v2 03/12] iscsi-target: Initial traditional TCP conversion to iscsit_transport

2013-03-22 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org This patch performs the initial conversion of existing traditional iscsi to use iscsit_transport API callers. This includes: - iscsi-np cleanups for iscsit_transport_type - Add iscsi-np transport calls w/ -iscsit_setup_up() and -iscsit_free_np() -

[PATCH v12 5/5] sd: change to auto suspend mode

2013-03-22 Thread Aaron Lu
From: Lin Ming ming.m@intel.com Uses block layer runtime pm helper functions in scsi_runtime_suspend/resume for devices that take advantage of it. Remove scsi_autopm_* from sd open/release path and check_events path. Signed-off-by: Lin Ming ming.m@intel.com Signed-off-by: Aaron Lu

[PATCH v12 4/5] block: implement runtime pm strategy

2013-03-22 Thread Aaron Lu
From: Lin Ming ming.m@intel.com When a request is added: If device is suspended or is suspending and the request is not a PM request, resume the device. When the last request finishes: Call pm_runtime_mark_last_busy(). When pick a request: If device is resuming/suspending,

[PATCH v12 0/5] block layer runtime pm

2013-03-22 Thread Aaron Lu
In August 2010, Jens and Alan discussed about Runtime PM and the block layer. http://marc.info/?t=12825910841r=1w=2 And then Alan has given a detailed implementation guide: http://marc.info/?l=linux-scsim=133727953625963w=2 To test: # ls -l /sys/block/sda

[PATCH v12 2/5] scsi: use REQ_PM in sd's runtime suspend operation

2013-03-22 Thread Aaron Lu
From: Lin Ming ming.m@intel.com With the introduction of REQ_PM, modify sd's runtime suspend operation functions to use that flag so that the operations to put the device into runtime suspended state(i.e. sync cache and stop device) will not affect its runtime PM status. Signed-off-by: Lin

[PATCH v12 1/5] block: add a flag to identify PM request

2013-03-22 Thread Aaron Lu
From: Lin Ming ming.m@intel.com Add a flag REQ_PM to identify the request is PM related, such requests will not change the device request queue's runtime status. It is intended to be used in driver's runtime PM callback, so that driver can perform some IO to the device there with the queue's

Re: [PATCH v12 0/5] block layer runtime pm

2013-03-22 Thread Jens Axboe
On Sat, Mar 23 2013, Aaron Lu wrote: In August 2010, Jens and Alan discussed about Runtime PM and the block layer. http://marc.info/?t=12825910841r=1w=2 And then Alan has given a detailed implementation guide: http://marc.info/?l=linux-scsim=133727953625963w=2 To test: # ls -l

Re: [PATCH 05/15] be2iscsi: Fix freeing CXN specific driver resources.

2013-03-22 Thread Mike Christie
On 03/11/2013 11:39 PM, jayamoh...@gmail.com wrote: From: Jayamohan.Kallickal jayamohan.kallic...@emulex.com Free CXN specific resource held by driver when login redirection or connection retry happens. Login redirection was failing because WRB/SGL were not allocated from the CID on which