RE: [scsi 5/7 RESEND] scsi_debug: schedule_resp fix input variable check

2015-08-30 Thread Winkler, Tomas
I'm just not sure why the patches are not merged or even rejected. Because ideally I want a Maintainer ack. That's Doug Gilbert. James The patches were discussed and the ACked by Doug in February and reviewed again after resend by Martin Petersen I'm submitting patches to

[PATCH-v2 0/2] mpt3sas: Reference counting fixes from for-next mpt2sas

2015-08-30 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org Hi all, This series is a mpt3sas LLD forward port of Calvin Owens' for-next reference counting bugfix series for mpt2sas LLD code. His latest patch series can be found here: [PATCH v4 0/2] Fixes for memory corruption in mpt2sas

[PATCH-v2 1/2] mpt3sas: Refcount sas_device objects and fix unsafe list usage

2015-08-30 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org These objects can be referenced concurrently throughout the driver, we need a way to make sure threads can't delete them out from under each other. This patch adds the refcount, and refactors the code to use it. Additionally, we cannot iterate over

[PATCH-v2 2/2] mpt3sas: Refcount fw_events and fix unsafe list usage

2015-08-30 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org The fw_event_work struct is concurrently referenced at shutdown, so add a refcount to protect it, and refactor the code to use it. Additionally, refactor _scsih_fw_event_cleanup_queue() such that it no longer iterates over the list without holding

Re: [PATCH 0/2] mpt3sas: Reference counting fixes from in-flight mpt2sas

2015-08-30 Thread Nicholas A. Bellinger
On Fri, 2015-08-28 at 13:25 -0700, James Bottomley wrote: On Thu, 2015-08-27 at 12:15 -0700, Nicholas A. Bellinger wrote: On Thu, 2015-08-27 at 07:40 -0700, James Bottomley wrote: On Thu, 2015-08-27 at 10:37 +0530, Sreekanth Reddy wrote: HI Nicholas Calvin, Thanks for the

Re: [PATCH v1 14/15] scsi: ufs: commit descriptors before setting the doorbell

2015-08-30 Thread ygardi
On Thu, Aug 27, 2015 at 7:11 AM, yga...@codeaurora.org wrote: On Tue, Aug 25, 2015 at 7:36 AM, yga...@codeaurora.org wrote: On Aug 21, 2015 3:10 PM, Yaniv Gardi yga...@codeaurora.org wrote: Add a write memory barrier to make sure descriptors prepared are actually written to memory before

[PATCH v4 7/8] scsi: ufs-qcom: add debug prints for test bus

2015-08-30 Thread Yaniv Gardi
Adds support for configuring and reading the test bus and debug registers. This change also adds another vops in order to print the debug registers. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufs-qcom.c | 165 +++-

[PATCH v4 1/8] phy: qcom-ufs: fix build error when the component is built as a module

2015-08-30 Thread Yaniv Gardi
Export the following functions in order to avoid build errors when the component PHY_QCOM_UFS is compiled as a module: ERROR: ufs_qcom_phy_disable_ref_clk [drivers/scsi/ufs/ufs-qcom.ko] undefined! ERROR: ufs_qcom_phy_enable_ref_clk [drivers/scsi/ufs/ufs-qcom.ko] undefined! ERROR:

[PATCH v4 0/8] Fix error message and present UFS variant

2015-08-30 Thread Yaniv Gardi
V4: add file Documentation/devicetree/bindings/ufs/ufs-qcom.txt and modify the compatible strings in Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt V3: fixes a few minor issues. V2: fixes a few issues of unnecessary EXPORT_SYMBOL, types of parameters in routine definition, build errors

[PATCH v4 3/8] scsi: ufs-qcom: update configuration option of SCSI_UFS_QCOM component

2015-08-30 Thread Yaniv Gardi
This change is required in order to be able to build the component as a module. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/Kconfig b/drivers/scsi/ufs/Kconfig index

Re: [PATCH v3 6/8] scsi: ufs: make the UFS variant a platform device

2015-08-30 Thread Rob Herring
On Sun, Aug 30, 2015 at 3:43 AM, yga...@codeaurora.org wrote: On Sun, Aug 23, 2015 at 8:09 AM, Yaniv Gardi yga...@codeaurora.org wrote: This change turns the UFS variant (SCSI_UFS_QCOM) into a UFS a platform device. In order to do so a few additional changes are required: 1. The

[PATCH v4 8/8] scsi: ufs-qcom: add QUniPro hardware support and power optimizations

2015-08-30 Thread Yaniv Gardi
New revisions of UFS host controller supports the new UniPro hardware controller (referred as QUniPro). This patch adds the support to enable this new UniPro controller hardware. This change also adds power optimization for bus scaling feature, as well as support for HS-G3 power mode.

[PATCH v4 6/8] scsi: ufs: make the UFS variant a platform device

2015-08-30 Thread Yaniv Gardi
This change turns the UFS variant (SCSI_UFS_QCOM) into a UFS a platform device. In order to do so a few additional changes are required: 1. The ufshcd-pltfrm is no longer serves as a platform device. Now it only serves as a group of platform APIs such as PM APIs (runtime suspend/resume,

[PATCH v4 4/8] add ufshcd_get_variant ufshcd_set_variant

2015-08-30 Thread Yaniv Gardi
Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufs-qcom.c | 34 +- drivers/scsi/ufs/ufshcd.h | 21 + 2 files changed, 38 insertions(+), 17 deletions(-) diff --git a/drivers/scsi/ufs/ufs-qcom.c

[PATCH v4 5/8] scsi: ufs: creates wrapper functions for vops

2015-08-30 Thread Yaniv Gardi
In order to simplify the code a set of wrapper functions is created to test and call each of the variant operations. Signed-off-by: Yaniv Gardi yga...@codeaurora.org --- drivers/scsi/ufs/ufs-qcom.c | 1 - drivers/scsi/ufs/ufshcd.c | 104 +---