RE: [PATCH v5 3/6] scsi: ufs: Add ufs-bsg module

2018-09-20 Thread Avri Altman
t; Petersen ; linux-scsi@vger.kernel.org > Cc: Stanislav Nijnikov ; Avi Shchislowski > ; Alex Lemberg ; > Subhash Jadavani ; Vinayak Holikatti > > Subject: Re: [PATCH v5 3/6] scsi: ufs: Add ufs-bsg module > > On 9/17/18 9:08 AM, Avri Altman wrote: > > +*Caveat emptor*: The

Re: [PATCH 5/6] qla2xxx_nvmet: Add SysFS node for FC-NVMe Target

2018-09-19 Thread Madhani, Himanshu
Bart, > On Sep 15, 2018, at 9:57 PM, Bart Van Assche wrote: > > External Email > > On 09/14/18 14:28, Himanshu Madhani wrote: >> @@ -686,7 +686,7 @@ static void qla_nvmet_send_resp_ctio(struct qla_qpair >> *qpair, >> ctio->u.nvme_status_mode1.transfer_len = >>

Re: [PATCH] scsi: tcmu: setup one timeout timer for each cmd

2018-09-18 Thread Xiubo Li
On 2018/9/19 0:42, Mike Christie wrote: On 09/18/2018 05:32 AM, xiu...@redhat.com wrote: From: Xiubo Li Currently there has one cmd timeout timer for each udev, and whenever there has any new coming cmd it will update the timer. And for some corner case the timer is always working only for

Re: [PATCH v5 3/6] scsi: ufs: Add ufs-bsg module

2018-09-18 Thread Bart Van Assche
On 9/17/18 9:08 AM, Avri Altman wrote: +*Caveat emptor*: The driver makes no further input validations and sends the +UPIU to the device as it is. Open the bsg device in /dev/ufs-bsg-%0:0 and +send SG_IO with the applicable sg_io_v4: It's not clear to me what %0:0 stands for. Otherwise this

Re: [PATCH] scsi: tcmu: setup one timeout timer for each cmd

2018-09-18 Thread Mike Christie
On 09/18/2018 05:32 AM, xiu...@redhat.com wrote: > From: Xiubo Li > > Currently there has one cmd timeout timer for each udev, and whenever > there has any new coming cmd it will update the timer. And for some > corner case the timer is always working only for the ringbuffer's > newest cmd.

Re: [PATCH 2/6] qla2xxx_nvmet: Added Makefile and Kconfig changes

2018-09-17 Thread Madhani, Himanshu
> On Sep 17, 2018, at 1:03 PM, Bart Van Assche wrote: > > External Email > > On 9/17/18 12:07 PM, Madhani, Himanshu wrote: >> >>> On Sep 15, 2018, at 9:53 PM, Bart Van Assche wrote: >>> >>> External Email >>> >>> On 09/14/18 14:28, Himanshu Madhani wrote: diff --git

Re: [PATCH 2/6] qla2xxx_nvmet: Added Makefile and Kconfig changes

2018-09-17 Thread Bart Van Assche
On 9/17/18 12:07 PM, Madhani, Himanshu wrote: On Sep 15, 2018, at 9:53 PM, Bart Van Assche wrote: External Email On 09/14/18 14:28, Himanshu Madhani wrote: diff --git a/drivers/scsi/qla2xxx/Kconfig b/drivers/scsi/qla2xxx/Kconfig index 036cc3f217b1..f1539d8b68ef 100644 ---

Re: [PATCH 3/6] qla2xxx_nvmet: Add FC-NVMe Target LS request handling

2018-09-17 Thread Madhani, Himanshu
> On Sep 16, 2018, at 6:42 AM, Bart Van Assche wrote: > > External Email > > On 09/14/18 14:28, Himanshu Madhani wrote: >> From: Anil Gurumurthy >> >> This patch adds LS handling into driver > > Please make the patch description more clear. What does "LS" stand for? > What is the

Re: [PATCH 2/6] qla2xxx_nvmet: Added Makefile and Kconfig changes

2018-09-17 Thread Madhani, Himanshu
> On Sep 15, 2018, at 9:53 PM, Bart Van Assche wrote: > > External Email > > On 09/14/18 14:28, Himanshu Madhani wrote: >> diff --git a/drivers/scsi/qla2xxx/Kconfig b/drivers/scsi/qla2xxx/Kconfig >> index 036cc3f217b1..f1539d8b68ef 100644 >> --- a/drivers/scsi/qla2xxx/Kconfig >> +++

Re: [PATCH 1/6] qla2xxx_nvmet: Add files for FC-NVMe Target support

2018-09-17 Thread Madhani, Himanshu
Hi Bart, > On Sep 15, 2018, at 9:50 PM, Bart Van Assche wrote: > > External Email > > On 09/14/18 14:28, Himanshu Madhani wrote: >> diff --git a/drivers/scsi/qla2xxx/qla_nvmet.c >> b/drivers/scsi/qla2xxx/qla_nvmet.c >> new file mode 100644 >> [ ... ] >> +#if

RE: [PATCH v4 4/7] scsi: ufs: Add ufs-bsg module

2018-09-17 Thread Avri Altman
> > > @@ -5,6 +5,9 @@ obj-$(CONFIG_SCSI_UFS_DWC_TC_PLATFORM) += tc- > dwc-g210-pltfrm.o ufshcd-dwc.o tc-d > > obj-$(CONFIG_SCSI_UFS_QCOM) += ufs-qcom.o > > obj-$(CONFIG_SCSI_UFSHCD) += ufshcd-core.o > > ufshcd-core-objs := ufshcd.o ufs-sysfs.o > > +ifeq ($(CONFIG_SCSI_UFS_BSG),y) > >

Re: [PATCH -next] scsi: qla2xxx: Remove set but not used variable 'ptr_dma'

2018-09-17 Thread Martin K. Petersen
YueHaibing, > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/scsi/qla2xxx/qla_iocb.c: In function 'qla24xx_els_dcmd2_iocb': > drivers/scsi/qla2xxx/qla_iocb.c:2644:13: warning: > variable 'ptr_dma' set but not used [-Wunused-but-set-variable] Applied to 4.20/scsi-queue. Thanks! --

Re: [PATCH -next] scsi: lpfc: Remove set but not used variable 'sgl_size'

2018-09-17 Thread Martin K. Petersen
YueHaibing, > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/scsi/lpfc/lpfc_nvme.c: In function 'lpfc_new_nvme_buf': > drivers/scsi/lpfc/lpfc_nvme.c:2238:24: warning: > variable 'sgl_size' set but not used [-Wunused-but-set-variable] > int bcnt, num_posted, sgl_size; >

Re: [PATCH -next] scsi: bnx2fc: Remove set but not used variable 'oxid'

2018-09-17 Thread Martin K. Petersen
YueHaibing, > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/scsi/bnx2fc/bnx2fc_fcoe.c: In function 'bnx2fc_rcv': > drivers/scsi/bnx2fc/bnx2fc_fcoe.c:435:17: warning: > variable 'oxid' set but not used [-Wunused-but-set-variable] Applied to 4.20/scsi-queue, thanks! -- Martin K.

Re: [PATCH -next] scsi: aic7xxx: remove set but not used variable 'shared_scb_data'

2018-09-17 Thread Martin K. Petersen
YueHaibing, > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/scsi/aic7xxx/aic79xx_pci.c: In function 'ahd_pci_config': > drivers/scsi/aic7xxx/aic79xx_pci.c:291:19: warning: > variable 'shared_scb_data' set but not used [-Wunused-but-set-variable] Applied to 4.20/scsi-queue, thank

Re: [PATCH -next] scsi: pm80xx: Remove set but not used variable 'page_code'

2018-09-17 Thread Martin K. Petersen
YueHaibing, > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/scsi/pm8001/pm80xx_hwi.c: In function 'pm8001_set_phy_profile': > drivers/scsi/pm8001/pm80xx_hwi.c:4679:6: warning: > variable 'page_code' set but not used [-Wunused-but-set-variable] Applied to 4.20/scsi-queue, thanks!

Re: [PATCH -next] scsi: pm80xx: Remove set but not used variable 'device_id'

2018-09-17 Thread Martin K. Petersen
YueHaibing, > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/scsi/pm8001/pm8001_sas.c: In function > 'pm8001_I_T_nexus_event_handler': > drivers/scsi/pm8001/pm8001_sas.c:1052:6: warning: > variable 'device_id' set but not used [-Wunused-but-set-variable] > >

RE: [PATCH v4 0/7] scsi: ufs bsg endpoint

2018-09-16 Thread Avri Altman
> > On 09/15/18 23:41, Avri Altman wrote: > >> Since this patch series does not touch any include/uapi header and since no > >> uapi UFS header files already exist, how is user space software expected to > >> know which message format it should use for communicating over the UFS > BSG > >>

Re: [PATCH v4 0/7] scsi: ufs bsg endpoint

2018-09-16 Thread Bart Van Assche
On 09/15/18 23:41, Avri Altman wrote: Since this patch series does not touch any include/uapi header and since no uapi UFS header files already exist, how is user space software expected to know which message format it should use for communicating over the UFS BSG endpoint? I don't think that

Re: [PATCH 5/6] qla2xxx_nvmet: Add SysFS node for FC-NVMe Target

2018-09-16 Thread Bart Van Assche
On 09/14/18 14:28, Himanshu Madhani wrote: From: Anil Gurumurthy This patch adds SysFS node for NVMe Target configuration Please elaborate the description of this patch. Are NVMe initiator and target mode mutually exclusive or can both be enabled at the same time? What is the impact of

Re: [PATCH 3/6] qla2xxx_nvmet: Add FC-NVMe Target LS request handling

2018-09-16 Thread Bart Van Assche
On 09/14/18 14:28, Himanshu Madhani wrote: From: Anil Gurumurthy This patch adds LS handling into driver Please make the patch description more clear. What does "LS" stand for? What is the relationship between LS and NVMe target support? Thanks, Bart.

RE: [PATCH v4 0/7] scsi: ufs bsg endpoint

2018-09-16 Thread Avri Altman
Hi Bart, > Since this patch series does not touch any include/uapi header and since no > uapi UFS header files already exist, how is user space software expected to > know which message format it should use for communicating over the UFS BSG > endpoint? I don't think that "read the source" is an

Re: [PATCH 5/6] qla2xxx_nvmet: Add SysFS node for FC-NVMe Target

2018-09-15 Thread Bart Van Assche
On 09/14/18 14:28, Himanshu Madhani wrote: @@ -686,7 +686,7 @@ static void qla_nvmet_send_resp_ctio(struct qla_qpair *qpair, ctio->u.nvme_status_mode1.transfer_len = cpu_to_be32(ersp->xfrd_len); - ql_log(ql_log_info,

Re: [PATCH 2/6] qla2xxx_nvmet: Added Makefile and Kconfig changes

2018-09-15 Thread Bart Van Assche
On 09/14/18 14:28, Himanshu Madhani wrote: diff --git a/drivers/scsi/qla2xxx/Kconfig b/drivers/scsi/qla2xxx/Kconfig index 036cc3f217b1..f1539d8b68ef 100644 --- a/drivers/scsi/qla2xxx/Kconfig +++ b/drivers/scsi/qla2xxx/Kconfig @@ -3,6 +3,7 @@ config SCSI_QLA_FC depends on PCI && SCSI

Re: [PATCH 1/6] qla2xxx_nvmet: Add files for FC-NVMe Target support

2018-09-15 Thread Bart Van Assche
On 09/14/18 14:28, Himanshu Madhani wrote: diff --git a/drivers/scsi/qla2xxx/qla_nvmet.c b/drivers/scsi/qla2xxx/qla_nvmet.c new file mode 100644 [ ... ] +#ifIS_ENABLED(CONFIG_NVME_TARGET_FC) [ ... ] +#endif This style of using #if / #endif is not acceptable. Instead,

Re: [PATCH 4/6] qla2xxx_nvmet: Add FC-NVMe Target handling

2018-09-15 Thread kbuild test robot
Hi Anil, I love your patch! Perhaps something to improve: [auto build test WARNING on scsi/for-next] [also build test WARNING on next-20180913] [cannot apply to v4.19-rc3] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH -next] scsi: pm80xx: Remove set but not used variable 'page_code'

2018-09-14 Thread Jinpu Wang
On Fri, Sep 14, 2018 at 3:29 AM YueHaibing wrote: > > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/scsi/pm8001/pm80xx_hwi.c: In function 'pm8001_set_phy_profile': > drivers/scsi/pm8001/pm80xx_hwi.c:4679:6: warning: > variable 'page_code' set but not used [-Wunused-but-set-variable]

Re: [PATCH v5] target/iblock: split T10 PI SGL across command bios

2018-09-13 Thread Mike Christie
On 09/04/2018 12:19 PM, Greg Edwards wrote: > When T10 PI is enabled on a backing device for the iblock backstore, the > PI SGL for the entire command is attached to the first bio only. This > works fine if the command is covered by a single bio, but can result in > ref tag errors in the client

Re: [PATCH] lpfc: Synchronize access to remoteport via rport

2018-09-13 Thread James Smart
On 9/12/2018 4:28 PM, James Smart wrote: The driver currently uses the ndlp to get the local rport which is then used to get the nvme transport remoteport pointer. There can be cases where a stale remoteport pointer is obtained as synchronization isn't done through the different dereferences.

Re: [Patch v1 0/7] mpt3sas: Hot-Plug Surprise removal support on IOC.

2018-09-13 Thread Lukas Wunner
On Wed, Sep 12, 2018 at 03:31:07PM +0530, Sreekanth Reddy wrote: > On Wed, Sep 5, 2018 at 1:08 PM, Lukas Wunner wrote: > > On Wed, Sep 05, 2018 at 11:45:45AM +0530, Sreekanth Reddy wrote: > > > I have one more instance where still we need this poll kthread, i.e > > > during the device probe time

Re: [PATCH -next] scsi: pm80xx: Remove set but not used variable 'device_id'

2018-09-13 Thread Jinpu Wang
On Thu, Sep 13, 2018 at 3:44 AM YueHaibing wrote: > > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/scsi/pm8001/pm8001_sas.c: In function > 'pm8001_I_T_nexus_event_handler': > drivers/scsi/pm8001/pm8001_sas.c:1052:6: warning: > variable 'device_id' set but not used

Re: [PATCH -next] scsi: qla2xxx: Remove set but not used variable 'ptr_dma'

2018-09-12 Thread Madhani, Himanshu
> On Sep 12, 2018, at 7:40 PM, YueHaibing wrote: > > External Email > > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/scsi/qla2xxx/qla_iocb.c: In function 'qla24xx_els_dcmd2_iocb': > drivers/scsi/qla2xxx/qla_iocb.c:2644:13: warning: > variable 'ptr_dma' set but not used

Re: [Patch v1 0/7] mpt3sas: Hot-Plug Surprise removal support on IOC.

2018-09-12 Thread Sreekanth Reddy
On Wed, Sep 5, 2018 at 1:08 PM, Lukas Wunner wrote: > On Wed, Sep 05, 2018 at 11:45:45AM +0530, Sreekanth Reddy wrote: >> On Tue, Sep 4, 2018 at 3:12 PM, Lukas Wunner wrote: >> > Many scsi drivers call pci_channel_offline() to detect inaccessibility >> > of the device due to a PCI error: >> >

Re: [PATCH V2 0/4] pm0xx : Updates for driver version 0.1.39

2018-09-11 Thread Martin K. Petersen
Viswas, > This patch set include some bug fixes for pm80xx driver. Applied to 4.20/scsi-queue, thank you! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: qla2xxx: Fix an endian bug in fcpcmd_is_corrupted()

2018-09-11 Thread Martin K. Petersen
Dan, > We should first do the le16_to_cpu endian conversion and then apply > the FCP_CMD_LENGTH_MASK mask. Applied to 4.19/scsi-fixes, thank you! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH -next] scsi: libfc: remove set but not used variable 'rpriv'

2018-09-11 Thread Martin K. Petersen
YueHaibing, > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/scsi/libfc/fc_fcp.c: In function 'fc_queuecommand': > drivers/scsi/libfc/fc_fcp.c:1875:30: warning: > variable 'rpriv' set but not used [-Wunused-but-set-variable] Applied to 4.20/scsi-queue. Thank you! -- Martin K.

Re: [PATCH 00/11] lpfc updates for 12.0.0.7

2018-09-11 Thread Martin K. Petersen
James, > This patch contains lpfc bug fixes, a couple of performance mods, and > a new diagnostic ability Applied to 4.20/scsi-queue, thank you! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 00/16] qla2xxx: Driver updates for scsi-misc

2018-09-11 Thread Martin K. Petersen
Himanshu, > This patch series fixes issues found during our testing for qla2xxx. Also applied. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v2 00/14] qla2xxx: Driver updates for scsi-misc

2018-09-11 Thread Martin K. Petersen
Himanshu, > This series updates driver for ABTS handling and rport management. > > Please queue this patches to 4.20/scsi-misc at your earliest convenience. Applied to 4.20/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 00/13] qla2xxx: Updates for driver

2018-09-11 Thread Martin K. Petersen
Himanshu, > This series contains support for ZIO interrupt threashold and > cleanups. Applied! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH V2 1/4] pm80xx : Fix for phy enable/disable functionality.

2018-09-11 Thread Jinpu Wang
On Tue, Sep 11, 2018 at 10:48 AM Viswas G wrote: > > From: Deepak Ukey > > Added proper mask for phy id in mpi_phy_stop_resp(). > > V2: > -Initialized the PM8001F_RUN_TIME flag in > pm8001_pci_probe(). > -Differentiated PHY_LINK_UP state

Re: [PATCH] scsi: qla2xxx: Fix an endian bug in fcpcmd_is_corrupted()

2018-09-10 Thread Madhani, Himanshu
> On Sep 8, 2018, at 1:42 AM, Dan Carpenter wrote: > > External Email > > We should first do the le16_to_cpu endian conversion and then apply > the FCP_CMD_LENGTH_MASK mask. > > Fixes: 5f35509db179 ("qla2xxx: Terminate exchange if corrupted") > Signed-off-by: Dan Carpenter > --- > I just

Re: [PATCH] scsi: qla2xxx: Fix an endian bug in fcpcmd_is_corrupted()

2018-09-10 Thread Tran, Quinn
Dan, It looks good. Thanks. Regards, Quinn Tran -Original Message- From: Dan Carpenter Date: Saturday, September 8, 2018 at 1:42 AM To: Dept-Eng QLA2xxx Upstream , "Tran, Quinn" Cc: "James E.J. Bottomley" , "Martin K. Petersen" , "linux-scsi@vger.kernel.org" , "Madhani, Himanshu"

Re: [PATCH v4 4/7] scsi: ufs: Add ufs-bsg module

2018-09-10 Thread Christoph Hellwig
> @@ -5,6 +5,9 @@ obj-$(CONFIG_SCSI_UFS_DWC_TC_PLATFORM) += > tc-dwc-g210-pltfrm.o ufshcd-dwc.o tc-d > obj-$(CONFIG_SCSI_UFS_QCOM) += ufs-qcom.o > obj-$(CONFIG_SCSI_UFSHCD) += ufshcd-core.o > ufshcd-core-objs := ufshcd.o ufs-sysfs.o > +ifeq ($(CONFIG_SCSI_UFS_BSG),y) > +ufshcd-core-objs +=

Re: [PATCH v4 3/7] scsi: ufs: Allow ufshcd_issue_tm_cmd accept raw upiu

2018-09-10 Thread Christoph Hellwig
On Fri, Sep 07, 2018 at 12:49:39PM +0300, Avri Altman wrote: > Do that in order to re-use its code if the task request and response > UPIUs are given externally. This should not be needed. Instead any pass-though style caller should use the new lower-level __ufshcd_issue_tm_cmd function I added.

RE: [PATCH v3 3/7] scsi: ufs: Add fill task management request

2018-09-06 Thread Avri Altman
; Bart Van Assche > ; James E.J. Bottomley > ; Martin K. Petersen > ; linux-scsi@vger.kernel.org; Stanislav Nijnikov > ; Avi Shchislowski > ; Alex Lemberg ; > Subhash Jadavani ; Vinayak Holikatti > > Subject: Re: [PATCH v3 3/7] scsi: ufs: Add fill task management request >

Re: [PATCH 1/5] qedf: fixup bit operations

2018-09-06 Thread Martin Wilck
On Thu, 2018-09-06 at 09:03 +0200, Hannes Reinecke wrote: > On 09/05/2018 04:09 PM, Martin Wilck wrote: > > On Wed, 2018-09-05 at 15:53 +0200, Hannes Reinecke wrote: > > > test_bit() is atomic, test_bit() || test_bit() is not. > > > So protect consecutive bit tests with a lock to avoid races. > >

Re: [PATCH 1/5] qedf: fixup bit operations

2018-09-06 Thread Hannes Reinecke
On 09/05/2018 04:09 PM, Martin Wilck wrote: > On Wed, 2018-09-05 at 15:53 +0200, Hannes Reinecke wrote: >> test_bit() is atomic, test_bit() || test_bit() is not. >> So protect consecutive bit tests with a lock to avoid races. >> >> Signed-off-by: Hannes Reinecke >> --- >>

Re: [PATCH v3 3/7] scsi: ufs: Add fill task management request

2018-09-05 Thread Christoph Hellwig
On Wed, Sep 05, 2018 at 07:08:50PM +0200, Christoph Hellwig wrote: > On Wed, Sep 05, 2018 at 03:53:41PM +, Avri Altman wrote: > > But on the other hand, task management request and response UPIUs > > are honorable members of the ufs spec (JEDEC 220C paragraphs 10.7.6 & > > 10.7.7). > > and

Re: [PATCH v3 3/7] scsi: ufs: Add fill task management request

2018-09-05 Thread Christoph Hellwig
On Wed, Sep 05, 2018 at 03:53:41PM +, Avri Altman wrote: > But on the other hand, task management request and response UPIUs > are honorable members of the ufs spec (JEDEC 220C paragraphs 10.7.6 & 10.7.7). > and indeed they lives in ufs.h, where they should. There is no other use anywhere.

RE: [PATCH v3 3/7] scsi: ufs: Add fill task management request

2018-09-05 Thread Avri Altman
> On Wed, Sep 05, 2018 at 07:30:03AM +, Avri Altman wrote: > > Looking into the UFSHCI spec (JESD223C March 2016) paragraph 6.2, > > It doesn't specify any inner structure of the task management > > request or response, just a bunch of 8 DW each. > > I guess this is why it is defined as a

Re: [Patch v1 0/7] mpt3sas: Hot-Plug Surprise removal support on IOC.

2018-09-05 Thread Keith Busch
On Wed, Sep 05, 2018 at 09:38:16AM +0200, Lukas Wunner wrote: > On Wed, Sep 05, 2018 at 11:45:45AM +0530, Sreekanth Reddy wrote: > > On Tue, Sep 4, 2018 at 3:12 PM, Lukas Wunner wrote: > > > Many scsi drivers call pci_channel_offline() to detect inaccessibility > > > of the device due to a PCI

Re: [PATCH 1/5] qedf: fixup bit operations

2018-09-05 Thread Martin Wilck
On Wed, 2018-09-05 at 15:53 +0200, Hannes Reinecke wrote: > test_bit() is atomic, test_bit() || test_bit() is not. > So protect consecutive bit tests with a lock to avoid races. > > Signed-off-by: Hannes Reinecke > --- > drivers/scsi/qedf/qedf_els.c | 9 +++-- >

Re: [PATCH v3 3/7] scsi: ufs: Add fill task management request

2018-09-05 Thread Christoph Hellwig
On Wed, Sep 05, 2018 at 07:30:03AM +, Avri Altman wrote: > Looking into the UFSHCI spec (JESD223C March 2016) paragraph 6.2, > It doesn't specify any inner structure of the task management > request or response, just a bunch of 8 DW each. > I guess this is why it is defined as a __le32 array.

Re: [PATCH 4/4] pm80xx : Update driver version to 0.1.39

2018-09-05 Thread Jinpu Wang
On Wed, Sep 5, 2018 at 7:47 AM Viswas G wrote: > > From: Deepak Ukey > > Updated the driver version from 0.1.38 to 0.1.39. > > Signed-off-by: Deepak Ukey > Signed-off-by: Viswas G > --- > drivers/scsi/pm8001/pm8001_sas.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH 3/4] pm80xx : Fixed system hang issue during kexec boot.

2018-09-05 Thread Jinpu Wang
On Wed, Sep 5, 2018 at 7:47 AM Viswas G wrote: > > From: Deepak Ukey > > When the firmware is not responding, execution of kexec boot > causes a system hang. When firmware assertion happened, driver > get notified with interrupt vector updated in MPI configuration > table. Then, the driver will

RE: [PATCH v3 4/7] scsi: ufs: Allow ufshcd_issue_tm_cmd accept raw task upius

2018-09-05 Thread Avri Altman
> > --- > > drivers/scsi/ufs/ufshcd.c | 35 ++- > > 1 file changed, 26 insertions(+), 9 deletions(-) > > > > diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c > > index d18832a..15be103 100644 > > --- a/drivers/scsi/ufs/ufshcd.c > > +++

Re: [PATCH 2/4] pm80xx : Corrected dma_unmap_sg() parameter.

2018-09-05 Thread Jinpu Wang
On Wed, Sep 5, 2018 at 7:47 AM Viswas G wrote: > > From: Deepak Ukey > > For the function dma_unmap_sg(), the parameter should be > number of elements in the scatter list prior to the mapping, not > after the mapping. > > Signed-off-by: Deepak Ukey > Signed-off-by: Viswas G > --- >

Re: [PATCH 1/4] pm80xx : Fix for phy enable/disable functionality.

2018-09-05 Thread Jinpu Wang
On Wed, Sep 5, 2018 at 7:47 AM Viswas G wrote: > > From: Deepak Ukey > > Added proper mask for phy id in mpi_phy_stop_resp(). > > Signed-off-by: Deepak Ukey > Signed-off-by: Viswas G > --- > drivers/scsi/pm8001/pm8001_defs.h | 7 +++ > drivers/scsi/pm8001/pm8001_hwi.c | 4 ++-- >

Re: [Patch v1 0/7] mpt3sas: Hot-Plug Surprise removal support on IOC.

2018-09-05 Thread Lukas Wunner
On Wed, Sep 05, 2018 at 11:45:45AM +0530, Sreekanth Reddy wrote: > On Tue, Sep 4, 2018 at 3:12 PM, Lukas Wunner wrote: > > Many scsi drivers call pci_channel_offline() to detect inaccessibility > > of the device due to a PCI error: > >

RE: [PATCH v3 3/7] scsi: ufs: Add fill task management request

2018-09-05 Thread Avri Altman
. Bottomley > ; Martin K. Petersen > ; linux-scsi@vger.kernel.org; Stanislav Nijnikov > ; Avi Shchislowski > ; Alex Lemberg ; > Subhash Jadavani ; Vinayak Holikatti > > Subject: Re: [PATCH v3 3/7] scsi: ufs: Add fill task management request > > In general this looks good,

RE: [PATCH v3 1/7] scsi: ufs: Add ufs-bsg module

2018-09-05 Thread Avri Altman
> > + */ > > +#ifndef SCSI_BSG_UFS_H > > +#define SCSI_BSG_UFS_H > > + > > +/* > > + * This file intended to be included by both kernel and user space > > + */ > > + > > + > > +/** > > + * struct ufs_bsg_upiu - upiu transaction structure > > + * > > + * @header: upiu header > > + * @tsf:

Re: [Patch v1 0/7] mpt3sas: Hot-Plug Surprise removal support on IOC.

2018-09-05 Thread Sreekanth Reddy
l On Tue, Sep 4, 2018 at 3:12 PM, Lukas Wunner wrote: > On Tue, Sep 04, 2018 at 11:19:04AM +0530, Sreekanth Reddy wrote: >> On Fri, Aug 31, 2018 at 2:25 PM, Lukas Wunner wrote: >> > * Just reading the vendor ID may not be sufficient to detect unplug, >> > it may also read as "all ones" if

RE: [PATCH v3 1/7] scsi: ufs: Add ufs-bsg module

2018-09-05 Thread Avri Altman
@vger.kernel.org; Stanislav Nijnikov > ; Avi Shchislowski > ; Alex Lemberg ; > Subhash Jadavani ; Vinayak Holikatti > > Subject: Re: [PATCH v3 1/7] scsi: ufs: Add ufs-bsg module > > > +config SCSI_UFS_BSG > > + bool "Universal Flash Storage BSG device node" &

RE: [PATCH v3 2/7] scsi: ufs: Instantiate a ufs bsg if its available

2018-09-05 Thread Avri Altman
@vger.kernel.org; Stanislav Nijnikov > ; Avi Shchislowski > ; Alex Lemberg ; > Subhash Jadavani ; Vinayak Holikatti > > Subject: Re: [PATCH v3 2/7] scsi: ufs: Instantiate a ufs bsg if its available > > On Mon, Sep 03, 2018 at 01:33:11PM +0300, Avri Altman wrote: &

Re: [PATCH v3 1/7] scsi: ufs: Add ufs-bsg module

2018-09-04 Thread Bart Van Assche
On Mon, 2018-09-03 at 13:33 +0300, Avri Altman wrote: > [ ... ] > +++ b/include/uapi/scsi/scsi_bsg_ufs.h > @@ -0,0 +1,56 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * UFS Transport SGIO v4 BSG Message Support > + * > + * Copyright (C) 2018 Western Digital Corporation > + */ > +#ifndef

Re: [PATCH v3 1/7] scsi: ufs: Add ufs-bsg module

2018-09-04 Thread Christoph Hellwig
> +config SCSI_UFS_BSG > + bool "Universal Flash Storage BSG device node" So this a bool, > obj-$(CONFIG_SCSI_UFSHCD_PCI) += ufshcd-pci.o > obj-$(CONFIG_SCSI_UFSHCD_PLATFORM) += ufshcd-pltfrm.o > obj-$(CONFIG_SCSI_UFS_HISI) += ufs-hisi.o > +obj-$(CONFIG_SCSI_UFS_BSG) += ufs_bsg.o But

Re: [PATCH v3 4/7] scsi: ufs: Allow ufshcd_issue_tm_cmd accept raw task upius

2018-09-04 Thread Christoph Hellwig
On Mon, Sep 03, 2018 at 01:33:13PM +0300, Avri Altman wrote: > Do that in order to re-use its code if the task request and response > UPIUs are given externally. > > Signed-off-by: Avri Altman > --- > drivers/scsi/ufs/ufshcd.c | 35 ++- >

Re: [PATCH v3 3/7] scsi: ufs: Add fill task management request

2018-09-04 Thread Christoph Hellwig
In general this looks good, but a question below: > index ed37914..d18832a 100644 > --- a/drivers/scsi/ufs/ufshcd.c > +++ b/drivers/scsi/ufs/ufshcd.c > @@ -5598,6 +5598,32 @@ static int ufshcd_clear_tm_cmd(struct ufs_hba *hba, > int tag) > return err; > } > > +static void

Re: [PATCH v4] target/iblock: split T10 PI SGL across command bios

2018-09-04 Thread Mike Christie
On 09/04/2018 11:21 AM, Greg Edwards wrote: > static int > -iblock_alloc_bip(struct se_cmd *cmd, struct bio *bio) > +iblock_alloc_bip(struct se_cmd *cmd, struct bio *bio, > + struct sg_mapping_iter *miter) > { > struct se_device *dev = cmd->se_dev; > struct blk_integrity

Re: [PATCH v3] target/iblock: split T10 PI SGL across command bios

2018-09-04 Thread Greg Edwards
On Sat, Sep 01, 2018 at 08:42:16AM +0800, kbuild test robot wrote: > Hi Greg, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on target/for-next] > [also build test WARNING on v4.19-rc1 next-20180831] > [if your patch is applied to the wrong git tree, please

Re: [Patch v1 0/7] mpt3sas: Hot-Plug Surprise removal support on IOC.

2018-09-04 Thread Lukas Wunner
On Tue, Sep 04, 2018 at 11:19:04AM +0530, Sreekanth Reddy wrote: > On Fri, Aug 31, 2018 at 2:25 PM, Lukas Wunner wrote: > > * Just reading the vendor ID may not be sufficient to detect unplug, > > it may also read as "all ones" if the link is down due to error > > recovery by DPC. > > So, is

Re: [PATCH -next] scsi: libfc: remove set but not used variable 'rpriv'

2018-09-04 Thread Johannes Thumshirn
Acked-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) Key

Re: [Patch v1 0/7] mpt3sas: Hot-Plug Surprise removal support on IOC.

2018-09-03 Thread Sreekanth Reddy
On Fri, Aug 31, 2018 at 2:25 PM, Lukas Wunner wrote: > [cc += linux-pci, benh] > > On Fri, Aug 31, 2018 at 7:37 AM Suganath Prabu S > wrote: >> Posting below set of patches to support PCIe Hot Plug surprise removal, >> and few defect fixes. > > Please cross-post to linux-pci in the future. > >

Re: [PATCH v3] target/iblock: split T10 PI SGL across command bios

2018-08-31 Thread kbuild test robot
Hi Greg, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on target/for-next] [also build test WARNING on v4.19-rc1 next-20180831] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH 03/14] qla2xxx: Use correct qpair for ABTS/CMD

2018-08-31 Thread kbuild test robot
Hi Quinn, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on scsi/for-next] [also build test WARNING on v4.19-rc1 next-20180831] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [Patch v1 0/7] mpt3sas: Hot-Plug Surprise removal support on IOC.

2018-08-31 Thread Lukas Wunner
[cc += linux-pci, benh] On Fri, Aug 31, 2018 at 7:37 AM Suganath Prabu S wrote: > Posting below set of patches to support PCIe Hot Plug surprise removal, > and few defect fixes. Please cross-post to linux-pci in the future. Regarding [PATCH 1/7] mpt3sas: Introduce

Re: [Patch v1 0/7] mpt3sas: Hot-Plug Surprise removal support on IOC.

2018-08-31 Thread Andy Shevchenko
+Cc: Lukas (I think he might be interested to look at this) On Fri, Aug 31, 2018 at 7:37 AM Suganath Prabu S wrote: > > Posting below set of patches to support PCIe Hot Plug surprise removal, > and few defect fixes. > > This is NOT the normal PCIe Hot Plug support, whereby the user informs the >

Re: [PATCH v3] target/iblock: split T10 PI SGL across command bios

2018-08-30 Thread Mike Christie
On 08/30/2018 12:25 PM, Greg Edwards wrote: > When T10 PI is enabled on a backing device for the iblock backstore, the > PI SGL for the entire command is attached to the first bio only. This > works fine if the command is covered by a single bio, but can result in > ref tag errors in the client

Re: [PATCH 1/7] mpt3sas: Introduce mpt3sas_base_pci_device_is_unplugged (fwd)

2018-08-30 Thread Julia Lawall
Hello, The complaint is actually about line 6956. Has the mutex been released there? julia -- Forwarded message -- Date: Fri, 31 Aug 2018 00:37:52 +0800 From: kbuild test robot To: kbu...@01.org Cc: Julia Lawall Subject: Re: [PATCH 1/7] mpt3sas: Introduce

Re: [PATCH v2] target/iblock: split T10 PI SGL across command bios

2018-08-30 Thread Greg Edwards
On Wed, Aug 29, 2018 at 06:23:52PM -0500, Mike Christie wrote: > > Can you still hit the issue where t_prot_nents > BIO_MAX_PAGES so > bio_integrity_alloc fails or is t_prot_nents always going to be smaller. > Was wondering why you dropped that from the last patch. There was a vhost bug that was

Re: [PATCH] libfc: remove unnecessary condition check

2018-08-30 Thread Martin K. Petersen
Chengguang, > kmem_cache_destroy() can handle NULL pointer correctly, so there is > no need to check NULL pointer before calling kmem_cache_destroy() Applied to 4.20/scsi-queue, thank you. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: lpfc: remove an unnecessary NULL check

2018-08-30 Thread Martin K. Petersen
Dan, > Smatch complains about this code: > > drivers/scsi/lpfc/lpfc_scsi.c:1053 lpfc_get_scsi_buf_s4() > warn: variable dereferenced before check 'lpfc_cmd' (see line 1039) > > Fortunately the NULL check isn't required so I have removed it. Applied to 4.20/scsi-queue, thank you! --

Re: [PATCH] scsi: 53c700: Fix spelling of 'NEGOTIATION'

2018-08-30 Thread Martin K. Petersen
Faisal, > 'NEGOTIATION' was misspelled as 'NEGOTATION'. Fixed it. It is a coding > style change which should have no impact on runtime execution of code. Applied to 4.20/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] qedi: Add the CRC size within iSCSI NVM image

2018-08-30 Thread Martin K. Petersen
Nilesh, > The QED driver commit, 1ac4329 qed: Add configuration information to > register dump and debug data, removes the CRC length validation > causing nvm_get_image failure while loading qedi driver, > > [qed_mcp_get_nvm_image:2700(host_10-0)]Image [0] is too big - 6008 > bytes where

Re: [PATCH 0/2] iscsi target: login fixes

2018-08-30 Thread Martin K. Petersen
Mike, > The following patches are login fixes from the list. The set has been > rebased against Linus's current tree so they apply over the idr/ida > patches that have been merged. Applied to 4.19/scsi-fixes, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v2] target/iblock: split T10 PI SGL across command bios

2018-08-29 Thread Mike Christie
On 08/29/2018 03:36 PM, Greg Edwards wrote: > When T10 PI is enabled on a backing device for the iblock backstore, the > PI SGL for the entire command is attached to the first bio only. This > works fine if the command is covered by a single bio, but can result in > ref tag errors in the client

Re: [PATCH v2] virtio_scsi: remove unnecessary condition check

2018-08-29 Thread Greg Edwards
On Wed, Aug 29, 2018 at 10:04:04PM +0800, Chengguang Xu wrote: > kmem_cache_destroy()/mempool_destroy() can handle NULL pointer > correctly, so there is no need to check NULL pointer before calling > kmem_cache_destroy()/mempool_destroy(). Meanwhile, because this > is in the error case of init

Re: [PATCH] libfc: remove unnecessary condition check

2018-08-28 Thread Johannes Thumshirn
Acked-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) Key

Re: [PATCH 1/2] iscsi target: Set conn->sess to NULL when iscsi_login_set_conn_values fails

2018-08-27 Thread Matthew Wilcox
On Mon, Aug 27, 2018 at 02:45:15PM -0500, Mike Christie wrote: > Signed-off-by: Vincent Pelletier > [rebased against idr/ida changes and to handle ret review comments from > Matthew] > Signed-off-by: Mike Christie > Cc: Matthew Wilcox Reviewed-by: Matthew Wilcox

Re: [PATCH] scsi: aacraid: fix a signednes bug

2018-08-27 Thread Martin K. Petersen
Dan, > The problem is that ->reset_state is a u8 but it can be set to -1 or > -2 in aac_tmf_callback() and the error handling in > aac_eh_target_reset() relies on it to be signed. Applied to 4.19/scsi-fixes, thank you! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 0/3]: iscsi target login fixes

2018-08-27 Thread Martin K. Petersen
Mike, > I will remake and resend the last 2 patches against the current Linus > tree, because the second patch does not cleanly apply against the > idr/ida changes. Sounds good. Just getting the new SCSI trees ready... -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 0/3]: iscsi target login fixes

2018-08-27 Thread Mike Christie
On 08/27/2018 12:03 AM, Matthew Wilcox wrote: > On Fri, Aug 24, 2018 at 01:37:10PM -0500, Mike Christie wrote: >> The following patchset is a round up of login fixes that have been >> on the list and in Mathew's tree. They fix a couple of bugs in the >> iscsi login failure handling path. >> >> The

Re: [PATCH 0/3]: iscsi target login fixes

2018-08-26 Thread Matthew Wilcox
On Fri, Aug 24, 2018 at 01:37:10PM -0500, Mike Christie wrote: > The following patchset is a round up of login fixes that have been > on the list and in Mathew's tree. They fix a couple of bugs in the > iscsi login failure handling path. > > The patches were made against Martin's 4.19/scsi-queue

Re: SCSI regression

2018-08-24 Thread Ming Lei
On Fri, Aug 24, 2018 at 06:33:29PM -0600, Jens Axboe wrote: > On 8/24/18 6:21 PM, Jens Axboe wrote: > > On 8/24/18 5:16 PM, Ming Lei wrote: > >> Hi, > >> > >> On Fri, Aug 24, 2018 at 04:20:41PM -0600, Jens Axboe wrote: > >>> Hi, > >>> > >>> Was testing other things today, but ended up with this: >

Re: SCSI regression

2018-08-24 Thread Jens Axboe
On 8/24/18 6:21 PM, Jens Axboe wrote: > On 8/24/18 5:16 PM, Ming Lei wrote: >> Hi, >> >> On Fri, Aug 24, 2018 at 04:20:41PM -0600, Jens Axboe wrote: >>> Hi, >>> >>> Was testing other things today, but ended up with this: >>> >>> # echo "write through" >

Re: SCSI regression

2018-08-24 Thread Jens Axboe
On 8/24/18 5:16 PM, Ming Lei wrote: > Hi, > > On Fri, Aug 24, 2018 at 04:20:41PM -0600, Jens Axboe wrote: >> Hi, >> >> Was testing other things today, but ended up with this: >> >> # echo "write through" > /sys/block/sde/device/scsi_disk/4:0:0:0/cache_type >> >> hanging. Looking closer, the

Re: SCSI regression

2018-08-24 Thread Ming Lei
Hi, On Fri, Aug 24, 2018 at 04:20:41PM -0600, Jens Axboe wrote: > Hi, > > Was testing other things today, but ended up with this: > > # echo "write through" > /sys/block/sde/device/scsi_disk/4:0:0:0/cache_type > > hanging. Looking closer, the request is successfully queued and the > caller is

Re: [PATCH 2/3] iscsi target: Set conn->sess to NULL when iscsi_login_set_conn_values fails

2018-08-24 Thread Matthew Wilcox
On Fri, Aug 24, 2018 at 01:37:12PM -0500, Mike Christie wrote: > Also, let idr_alloc return value through instead of replacing it with -ENOMEM, > as it is already a negative value and caller checks sign, not exact value. I bet it's less code to just return -ENOMEM in all situations instead of

Re: [PATCH 0/3]: iscsi target login fixes

2018-08-24 Thread Matthew Wilcox
On Fri, Aug 24, 2018 at 01:37:10PM -0500, Mike Christie wrote: > The following patchset is a round up of login fixes that have been > on the list and in Mathew's tree. They fix a couple of bugs in the > iscsi login failure handling path. > > The patches were made against Martin's 4.19/scsi-queue

<    2   3   4   5   6   7   8   9   10   11   >