Re: [LSF/MM TOPIC] iSCSI MQ adoption via MCS discussion

2015-01-11 Thread Sagi Grimberg
On 1 9/2015 3:31 PM, Bart Van Assche wrote: On 01/09/15 12:39, Sagi Grimberg wrote: On 1/8/2015 4:11 PM, Bart Van Assche wrote: On 01/08/15 14:45, Sagi Grimberg wrote: Actually I started with that approach, but the independent connections under a single session (I-T-Nexus) violates the

Re: [PATCH] vhost-scsi: Add missing virtio-scsi - TCM attribute conversion

2015-01-11 Thread Christoph Hellwig
On Tue, Jan 06, 2015 at 08:18:05PM +, Nicholas A. Bellinger wrote: From: Nicholas Bellinger n...@linux-iscsi.org While looking at hch's recent conversion to drop the MSG_*_TAG definitions, I noticed a long standing bug in vhost-scsi where the VIRTIO_SCSI_S_* attribute definitions where

Re: [Lsf-pc] [LSF/MM TOPIC] iSCSI MQ adoption via MCS discussion

2015-01-11 Thread Sagi Grimberg
On 1/9/2015 10:19 PM, Mike Christie wrote: On 01/09/2015 12:28 PM, Hannes Reinecke wrote: On 01/09/2015 07:00 PM, Michael Christie wrote: On Jan 8, 2015, at 11:03 PM, Nicholas A. Bellinger n...@linux-iscsi.org wrote: On Thu, 2015-01-08 at 15:22 -0800, James Bottomley wrote: On Thu,

Re: [Lsf-pc] [LSF/MM TOPIC] iSCSI MQ adoption via MCS discussion

2015-01-11 Thread Sagi Grimberg
On 1/9/2015 8:00 PM, Michael Christie wrote: SNIP Session wide command sequence number synchronization isn't something to be removed as part of the MQ work. It's a iSCSI/iSER protocol requirement. That is, the expected + maximum sequence numbers are returned as part of every response PDU,

Re: [PATCH v5 1/4] phy: qcom-ufs: add support for 20nm phy

2015-01-11 Thread ygardi
On Jan 7, 2015, at 9:43 AM, Yaniv Gardi yga...@qti.qualcomm.com wrote: This change adds a support for a 20nm qcom-ufs phy that is required in platforms that use ufs-qcom controller. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/phy/Makefile| 2 +

[PATCH v3 1/4] scsi: add ability to adjust module reference for scsi host

2015-01-11 Thread Akinobu Mita
While accessing a scsi_device, the use count of the underlying LLDD module is incremented. The module reference is retrieved through .module field of struct scsi_host_template. This mapping between scsi_device and underlying LLDD module works well except ufs, unusual usb storage drivers, and sub

[PATCH v6 1/4] phy: qcom-ufs: add support for 20nm phy

2015-01-11 Thread Yaniv Gardi
This change adds a support for a 20nm qcom-ufs phy that is required in platforms that use ufs-qcom controller. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/phy/Kconfig | 7 + drivers/phy/Makefile| 2 + drivers/phy/phy-qcom-ufs-i.h| 159

[PATCH v6 4/4] scsi: ufs-qcom-ice: add Inline Crypto Engine (ICE) support for UFS

2015-01-11 Thread Yaniv Gardi
From: Yaniv Gardi yga...@qti.qualcomm.com In-order to enhance storage encryption performance, an Inline Cryptographic Engine is introduced to UFS. This patch adds in-line encryption capabilities to the UFS driver. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/Kconfig

[PATCH v6 3/4] phy: qcom-ufs: add support for 14nm phy

2015-01-11 Thread Yaniv Gardi
This change adds a support for a 14nm qcom-ufs phy that is required in platforms that use ufs-qcom controller. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/phy/Makefile| 1 + drivers/phy/phy-qcom-ufs-qmp-14nm.c | 201

[PATCH v6 0/4] *** add support for UFS in Qualcomm Technologies

2015-01-11 Thread Yaniv Gardi
*** BLURB HERE *** Yaniv Gardi (4): phy: qcom-ufs: add support for 20nm phy scsi: ufs-qcom: add support for Qualcomm Technologies Inc platforms phy: qcom-ufs: add support for 14nm phy scsi: ufs-qcom-ice: add Inline Crypto Engine (ICE) support for UFS drivers/phy/Kconfig

[PATCH v6 2/4] scsi: ufs-qcom: add support for Qualcomm Technologies Inc platforms

2015-01-11 Thread Yaniv Gardi
This change adds support for Qualcomm Technologies Inc platforms that use UFS driver. for example, it adds : - PM specific operations during hibern8, suspend, resume, clock setup - qcom-ufs generic phy driver initialization, calibration, power-on/off sequence, etc. - UFS Controller specific

[PATCH v3 4/4] scsi: esp_scsi: adjust module reference for scsi host

2015-01-11 Thread Akinobu Mita
While accessing a scsi device on host adapter supported by sub driver for the ESP chip (mac_esp, am53c974, sun_esp, jazz_esp, sun3x_esp), the module reference count is not incremented. Because these drivers allocate scsi hosts with scsi_esp_template defined in ESP SCSI driver core module. So

[PATCH v3 3/4] usb: storage: adjust module reference for scsi host

2015-01-11 Thread Akinobu Mita
While accessing a unusual usb storage (ums-alauda, ums-cypress, ...), the module reference count is not incremented. Because these drivers allocate scsi hosts with usb_stor_host_template defined in usb-storage module. So these drivers always can be unloaded. This fixes it by passing correct

[PATCH v3 2/4] scsi: ufs: adjust module reference for scsi host

2015-01-11 Thread Akinobu Mita
While accessing a UFS device, the module reference count for core driver (ufshcd) is incremented but not incremented for the actual glue driver (ufshcd-pci or ufshcd-pltfrm). Because these drivers allocate scsi hosts with scsi_host_template defined in ufshcd module. So these drivers always can

[PATCH v3 0/4] scsi: ufs ums-* esp_scsi: fix module reference counting

2015-01-11 Thread Akinobu Mita
While accessing a scsi_device, the use count of the underlying LLDD module is incremented. The module reference is retrieved through .module field of struct scsi_host_template. This mapping between scsi_device and underlying LLDD module works well except ufs, unusual usb storage drivers, and sub

Re: [PATCH v3 4/4] scsi: esp_scsi: adjust module reference for scsi host

2015-01-11 Thread David Miller
From: Akinobu Mita akinobu.m...@gmail.com Date: Sun, 11 Jan 2015 22:50:06 +0900 While accessing a scsi device on host adapter supported by sub driver for the ESP chip (mac_esp, am53c974, sun_esp, jazz_esp, sun3x_esp), the module reference count is not incremented. Because these drivers

Re: [PATCH 9/9] scsi_error: do not display kernel pointer in message logs

2015-01-11 Thread Douglas Gilbert
On 15-01-10 02:17 PM, Elliott, Robert (Server Storage) wrote: -Original Message- From: linux-scsi-ow...@vger.kernel.org [mailto:linux-scsi- ow...@vger.kernel.org] On Behalf Of Hannes Reinecke Sent: Thursday, January 08, 2015 12:44 AM To: James Bottomley Cc: Christoph Hellwig;

[GIT PULL] target fixes for v3.19-rc4

2015-01-11 Thread Nicholas A. Bellinger
Hi Linus, Here are the target pending fixes for v3.19-rc4. Please go ahead and pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git master Mostly minor fixes this time, including: - Add missing virtio-scsi - TCM attribute conversion in vhost-scsi. - Fix

Re: [PATCH 1/1] csiostor:fix sparse warnings

2015-01-11 Thread David Miller
From: Praveen Madhavan prave...@chelsio.com Date: Fri, 9 Jan 2015 21:25:16 +0530 This patch fixes sparse warning reported by kbuild. Apply this on net-next since it depends on previous commit. drivers/scsi/csiostor/csio_hw.c:259:17: sparse: cast to restricted __le32

[PATCH 00/10] mpt2sas: Phase19 and Phase20 patch set

2015-01-11 Thread Sreekanth Reddy
Please consider this mpt2sas drivers Phase19 and Phase20 patch series. All these patches are reviewed by Martin K. Petersen. Some of these features are exists for both mpt2sas mpt3sas drives, so some of these patches contains code changes for both mpt2sas mpt3sas drivers. Sreekanth Reddy (10):

[PATCH v2 09/22] [SCSI] mpt2sas, mpt3sas: Added a support to set cpu affinity for each MSIX vector enabled by the HBA

2015-01-11 Thread Sreekanth Reddy
Added a support to set cpu affinity mask for each MSIX vector enabled by the HBA. So that, running the irqbalancer will balance interrupts among the cpus. Change_set: 1. Added affinity_hint varable of type cpumask_var_t in adapter_reply_queue structure. And allocated a memory for this varable

[PATCH v2 02/22] [SCSI] mpt2sas, mpt3sas: Added support to log message when Temperature Threshold exceeds for any Sensor

2015-01-11 Thread Sreekanth Reddy
This patch will log a message when driver receives Temperature Threshold exceeded event from any temperature sensor. The message will look similar to like mpt3sas0: Temperature Threshold flags a b c d exceeded for Sensor: x !!! mpt3sas0: Current Temp In Celsius: y where a b c d are threshold

[PATCH v2 10/22] [SCSI] mpt2sas: Bump driver version to 20.100.00.00

2015-01-11 Thread Sreekanth Reddy
Bump mpt2sas driver version to 20.100.00.00. Signed-off-by: Sreekanth Reddy sreekanth.re...@avagotech.com Reviewed-by: Martin K. Petersen martin.peter...@oracle.com --- drivers/scsi/mpt2sas/mpt2sas_base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v2 06/22] [SCSI] mpt2sas, mpt3sas: Removing uppper boundary restriction for the module parameter max_sgl_entries

2015-01-11 Thread Sreekanth Reddy
Change Set: 1. Extended the upper boundary restriction for the module parameter max_sgl_entries. Earlier, the max_sgl_entries was capped at the SCSI_MAX_SG_SEGMENTS kernel definition. With this change, the user would be able to set the max_sgl_entries to any value which is greater than

[PATCH v2 05/22] [SCSI] mpt2sas: MPI2 Rev BB (2.00.20) specification and 2.00.35 header files

2015-01-11 Thread Sreekanth Reddy
Change List in this MPI2 specification, 1. Added SSUTimeout field to MPI2_CONFIG_PAGE_BIOS_1, and more defines for the BiosOptions field. Signed-off-by: Sreekanth Reddy sreekanth.re...@avagotech.com Reviewed-by: Martin K. Petersen martin.peter...@oracle.com ---

[PATCH v2 03/22] [SCSI] mpt2sas, mpt3sas: Fail the host reset initiated due to discovery related I/O timeouts at driver load time

2015-01-11 Thread Sreekanth Reddy
When a flaky disk is there in a topology then during driver load, discovery related I/O times out; which results in SCSI error recovery initiating host reset and then the controller won't see any disk. In this patch, The driver would return FAILED status to the host reset initiated due to

[PATCH v2 01/22] [SCSI] mpt2sas: MPI2 Rev AA (2.00.19) specifications

2015-01-11 Thread Sreekanth Reddy
Below is the changeset from the MPI specification and 2.00.34 header files 1) Defined additional bits in the BiosOptions field of BIOS Page 1 to allow for finer control of X86 BIOS and UEFI BSD. 2) For the Clean Tool, reserved bit 26 of the Flags field for product specific use. Signed-off-by:

[PATCH 08/22] [SCSI] mpt2sas, mpt3sas: Update Attribution Language to Avago

2015-01-11 Thread Sreekanth Reddy
Copyright, Trademark Confidentiality legal statements throughout source code changed from LSI to Avago. Signed-off-by: Sreekanth Reddy sreekanth.re...@avagotech.com Reviewed-by: Martin K. Petersen martin.peter...@oracle.com --- drivers/scsi/mpt2sas/mpt2sas_base.c | 3 ++-

[PATCH v2 07/22] [SCSI] mpt2sas: Complete the SCSI command with DID_RESET status for log_info value 0x0x32010081

2015-01-11 Thread Sreekanth Reddy
For any SCSI command, if the driver receives IOC status = SCSI_IOC_TERMINATED and log info = 0x32010081 then that command will be completed with DID_RESET host status. The definition of this log info value is Virtual IO has failed and has to be retried. Firmware will provide this log info