Re: [PATCH 3/4] esp_scsi: use strong typing for the dev field

2018-10-10 Thread Finn Thain
On Wed, 10 Oct 2018, Christoph Hellwig wrote: > esp->dev is a void pointer that points either to a struct device, or a > struct platform_device. As we can easily get from the device to the > platform_device if needed change it to always point to a struct device > and properly type the pointer to

Re: [possible bug] critical target error (out of range) when sending UNMAP on lsi2308 (mpt3sas) for the last sector of the drive

2018-10-10 Thread James Bottomley
On Wed, 2018-10-10 at 16:55 +0200, Michal Soltys wrote: > Hi, > > I have a server with old server with lsi2308 ("it" mode) and sas2x36 > expander in front. I've been testing how it handles ssd drives (among > those if/how it copes with unmap). And it looks like > stomped on a bug (it's 100%

Re: aic7xxx DMA overflow error

2018-10-09 Thread Christoph Hellwig
On Mon, Oct 01, 2018 at 04:57:39PM -0400, tedheadster wrote: > Christoph, > I was able to bisect this to your patch "scsi: reduce use of block > bounce buffers". I am getting the error on a 32-bit Dell PowerEdge > 6650. It has the aic7xxx integrated onto the motherboard. > > Again, here is the

Re: [PATCH] lpfc: fixup crash in lpfc_els_unsol_buffer()

2018-10-09 Thread Ewan D. Milne
On Tue, 2018-10-09 at 08:30 +0200, Hannes Reinecke wrote: > lpfc_nlp_get() in lpfc_els_unsol_buffer() is not running under a > lock, so there is a chance that it might actually fail. But as we > never check the return value we'll get a crash in lpfc_nlp_put() > later on trying to free an invalid

Re: [PATCH] lpfc: fixup crash in lpfc_els_unsol_buffer()

2018-10-09 Thread Johannes Thumshirn
Looks good, Reviewed-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

Re: [PATCH 1/3] scsi: Allow state transitions from OFFLINE to BLOCKED

2018-10-09 Thread Hannes Reinecke
On 10/8/18 10:22 PM, Ewan D. Milne wrote: This change would permit a device that was OFFLINE (for any reason) to go back to RUNNING via: OFFLINE -> BLOCKED -> RUNNING Correct. Obviously that was your intention, but e.g. if a device was put OFFLINE due to exceeding max_medium_access_timeouts

Re: [PATCH 1/3] scsi: Allow state transitions from OFFLINE to BLOCKED

2018-10-08 Thread Ewan D. Milne
This change would permit a device that was OFFLINE (for any reason) to go back to RUNNING via: OFFLINE -> BLOCKED -> RUNNING Obviously that was your intention, but e.g. if a device was put OFFLINE due to exceeding max_medium_access_timeouts a fabric event and recovery would put it back online.

Re: [PATCH 3/3] libfc: retry PRLI if we cannot analyse the payload

2018-10-08 Thread Easi, Arun
On Sun, 7 Oct 2018, 1:35am, Hannes Reinecke wrote: > External Email > > From: Hannes Reinecke > > When we fail to analyse the payload of a PRLI response we should > reset the state machine to retry the PRLI; eventually we will be > getting a proper frame. > Not doing so will result in a stuck

Re: [PATCH 2/3] libfc: check fc_frame_payload_get() return value for null

2018-10-08 Thread Easi, Arun
On Sun, 7 Oct 2018, 1:35am, Hannes Reinecke wrote: > External Email > > From: Thomas Abraham > > We should not assume the payload of a PRLI or PLOGI > respons is always present. > > Signed-off-by: Thomas Abraham > Reviewed-by: Hannes Reinecke > --- > drivers/scsi/libfc/fc_rport.c | 14

RE: [PATCH v8 0/8] scsi: Add ufs bsg endpoint

2018-10-07 Thread Avri Altman
ecke; > >Bart Van Assche; James E.J. Bottomley; Martin K. Petersen; linux- > >s...@vger.kernel.org > >Cc: Stanislav Nijnikov; Avi Shchislowski; Alex Lemberg; Subhash Jadavani; > >Vinayak Holikatti > >Subject: RE: [PATCH v8 0/8] scsi: Add ufs bsg endpoint > > >

RE: [PATCH v8 1/8] scsi: ufs: cleanup struct utp_task_req_desc

2018-10-06 Thread Avri Altman
> On Thu, Oct 04, 2018 at 08:20:30AM +0300, Avri Altman wrote: > > From: Christoph Hellwig > > > > Remove the pointless task_req_upiu and task_rsp_upiu indirections, > > which are __le32 arrays always cast to given structures and just add > > the members directly. Also clean up variables names

RE: [PATCH v8 3/8] uapi: ufs: Make utp_upiu_req visible to user space

2018-10-06 Thread Avri Altman
> > > > diff --git a/include/uapi/scsi/scsi_bsg_ufs.h > > b/include/uapi/scsi/scsi_bsg_ufs.h > > new file mode 100644 > > index 000..4108ce3 > > --- /dev/null > > +++ b/include/uapi/scsi/scsi_bsg_ufs.h > > @@ -0,0 +1,74 @@ > > +/* SPDX-License-Identifier: GPL-2.0 */ > > +/* > > + * TBD - UFS

RE: [PATCH v8 4/8] scsi: ufs: Add ufs-bsg module

2018-10-06 Thread Avri Altman
> > Add a bsg endpoint that supports UPIUs. > > This should probably go into the subject line. Done. > > > > > For now, just provide an API to allocate and remove > > ufs-bsg node. We will use this framework to > > manage ufs devices by sending UPIU transactions. > > Please use up to 73

Re: Looking for some help understanding error handling

2018-10-06 Thread Hannes Reinecke
On 10/5/18 5:51 PM, chris.mo...@microchip.com wrote: > Thanks Hannes, > > After some pointers from Shane Seymour I found that the FC and SRP transport > layers > have a devloss timer, so that when a device disappears they hold on to the > target > information for a time waiting to see if it

RE: Looking for some help understanding error handling

2018-10-05 Thread Chris.Moore
2018 8:01 AM > To: Chris Moore - C33997 ; linux- > s...@vger.kernel.org > Subject: Re: Looking for some help understanding error handling > > On 10/2/18 11:04 PM, chris.mo...@microchip.com wrote: > > I'm working on LLDD for a SAS/SATA host adapter, and trying to understand >

Re: Looking for some help understanding error handling

2018-10-05 Thread Hannes Reinecke
On 10/2/18 11:04 PM, chris.mo...@microchip.com wrote: I'm working on LLDD for a SAS/SATA host adapter, and trying to understand how the system handles link loss and recovery. Say I have a device that gets recognized and attached as sd 12:0:4:0, at /dev/sdb. The drive goes offline temporarily,

Re: [PATCH v8 0/8] scsi: Add ufs bsg endpoint

2018-10-05 Thread Bean Huo (beanhuo)
x- >s...@vger.kernel.org >Cc: Stanislav Nijnikov; Avi Shchislowski; Alex Lemberg; Subhash Jadavani; >Vinayak Holikatti >Subject: RE: [PATCH v8 0/8] scsi: Add ufs bsg endpoint > >Hi, Avri > >>We tested it on a Hikey-960 platform with a V4.14 kernel, "modernized"

Re: [PATCH v8 4/8] scsi: ufs: Add ufs-bsg module

2018-10-05 Thread Christoph Hellwig
On Thu, Oct 04, 2018 at 08:20:33AM +0300, Avri Altman wrote: > Add a bsg endpoint that supports UPIUs. This should probably go into the subject line. > > For now, just provide an API to allocate and remove > ufs-bsg node. We will use this framework to > manage ufs devices by sending UPIU

Re: [PATCH v8 3/8] uapi: ufs: Make utp_upiu_req visible to user space

2018-10-05 Thread Christoph Hellwig
On Thu, Oct 04, 2018 at 08:20:32AM +0300, Avri Altman wrote: > in preparation to send UPIU requests via bsg. > > Signed-off-by: Avri Altman > Reviewed-by: Bart Van Assche > --- > drivers/scsi/ufs/ufs.h | 61 + > drivers/scsi/ufs/ufshcd.c| 6

Re: [PATCH v8 1/8] scsi: ufs: cleanup struct utp_task_req_desc

2018-10-05 Thread Christoph Hellwig
On Thu, Oct 04, 2018 at 08:20:30AM +0300, Avri Altman wrote: > From: Christoph Hellwig > > Remove the pointless task_req_upiu and task_rsp_upiu indirections, > which are __le32 arrays always cast to given structures and just add > the members directly. Also clean up variables names in use in

Re: [PATCH v8 0/8] scsi: Add ufs bsg endpoint

2018-10-05 Thread Avri Altman
12:28 AM To: Avri Altman; Christoph Hellwig; Johannes Thumshirn; Hannes Reinecke; Bart Van Assche; James E.J. Bottomley; Martin K. Petersen; linux-scsi@vger.kernel.org Cc: Stanislav Nijnikov; Avi Shchislowski; Alex Lemberg; Subhash Jadavani; Vinayak Holikatti Subject: RE: [PATCH v8 0/8] scsi: Add

RE: [PATCH v8 0/8] scsi: Add ufs bsg endpoint

2018-10-04 Thread Bean Huo (beanhuo)
Hi, Avri >We tested it on a Hikey-960 platform with a V4.14 kernel, "modernized" by >recent bsg and ufs patches. Which kernel version is V8 based on? I patched to 4.14-rc7, it failed.

Re: aacraid: latest driver results in Host adapter abort request. / Outstanding commands on (0,0,0,0):

2018-10-03 Thread Stefan Priebe - Profihost AG
Hi Dave, Am 03.10.2018 um 19:32 schrieb dave.carr...@microchip.com: >> Am 27.09.2018 um 12:59 schrieb Emmanuel Florac: >>> Le Wed, 19 Sep 2018 08:10:41 +0200 >>> Stefan Priebe - Profihost AG écrivait: >>> Hello, after upgrading the aacraid driver / kernel from aacraid 50792 to

RE: aacraid: latest driver results in Host adapter abort request. / Outstanding commands on (0,0,0,0):

2018-10-03 Thread Dave.Carroll
> Am 27.09.2018 um 12:59 schrieb Emmanuel Florac: > > Le Wed, 19 Sep 2018 08:10:41 +0200 > > Stefan Priebe - Profihost AG écrivait: > > > >> Hello, > >> > >> after upgrading the aacraid driver / kernel from aacraid 50792 to > >> aacraid 50877. > >> > >> I get aborted comands every night. > >> > >

RE: [PATCH v7 3/8] uapi: ufs: Make utp_upiu_req visible to user space

2018-10-01 Thread Avri Altman
> > + > > +/* > > + * This file intended to be included by both kernel and user space > > + */ > > + > > +#define MAX_CDB_SIZE 16 > > Please rename this constant such that it has either "UFS" or "UTP" in its > name. This name is too generic for a protocol-specific header file. Done.

Re: aic7xxx DMA overflow error

2018-10-01 Thread tedheadster
Christoph, I was able to bisect this to your patch "scsi: reduce use of block bounce buffers". I am getting the error on a 32-bit Dell PowerEdge 6650. It has the aic7xxx integrated onto the motherboard. Again, here is the error: aic7xxx :00:03.0: dma_direct_map_sg: overflow

Re: aic7xxx DMA overflow error

2018-10-01 Thread Christoph Hellwig
On Sun, Sep 30, 2018 at 07:28:50PM -0400, tedheadster wrote: > Hannes, > I'm getting the following error in a custom configured 4.18 32-bit > x86 kernel supporting PAE, with 16GiB physical memory. It loops > infinitely on the error. > > aic7xxx :00:03.0: dma_direct_map_sg: overflow >

Re: [PATCH v4 3/6] mpt3sas: Introdude _scsih_get_shost_and_ioc.

2018-10-01 Thread Suganath Prabu Subramani
On Thu, Sep 27, 2018 at 2:39 AM Bjorn Helgaas wrote: > > On Wed, Sep 26, 2018 at 09:52:36AM +0530, Suganath Prabu S wrote: > > The code for getting shost and IOC is redundant so > > moved that to function "scsih_get_shost_and_ioc". > > Also checks for NULL are added to IOC and shost. > > > >

Re: [PATCH v7 3/8] uapi: ufs: Make utp_upiu_req visible to user space

2018-09-30 Thread Bart Van Assche
On Sun, 2018-09-30 at 08:45 +0300, Avri Altman wrote: > +++ b/include/uapi/scsi/scsi_bsg_ufs.h > @@ -0,0 +1,74 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * TBD - UFS Transport SGIO v4 BSG Message Support > + * > + * Copyright (C) 2011-2013 Samsung India Software Operations > + */ >

Re: [PATCH] qla2xxx: Return switch command on a timeout

2018-09-28 Thread Martin K. Petersen
Himanshu, > This patch fixes commit bcc71cc3cde1468958a3ea859276d8d1a1a68265 which > misplaced code in worng routines. > > Also updated the use of WARN_ON() to WARN_ON_ONCE() to prevent > flooding log messages. Applied to 4.20/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux

Re: [PATCH 00/10] NCR5380: Various improvements

2018-09-28 Thread Martin K. Petersen
Finn, > This series addresses issues which became apparent when Michael > Schmitz tried to use an AztecMonster II SATA/SCSI adapter with a 5380 > host. > > That target seems to have some bugs which thoroughly exercise driver > error paths and EH. > > The patch by Hannes Reinecke was

Re: [PATCH 0/8] qla2xxx: Bug fixes for the driver

2018-09-28 Thread Martin K. Petersen
Himanshu, > This series fixes issues found during out last test cycle. > > Patch 1,2 and 5 fixes misc NVMe discovery and unload hang in the driver. > > Patch 3 fixes issue discovered during BFS test setup resulting into > installation failure and hand because driver could not discover BFS

Re: [PATCH] qedi: Initialize the stats mutex lock

2018-09-28 Thread Martin K. Petersen
Nilesh, > Fix kernel NULL pointer dereference, Applied to 4.19/scsi-fixes, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: qla2xxx: don't allow negative thresholds

2018-09-27 Thread Martin K. Petersen
Dan, > We shouldn't allow negative thresholds. I don't know what it would do > but it can't be good. Applied to 4.20/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: qla2xxx: Fix comment in MODULE_PARM_DESC in qla2xxx

2018-09-27 Thread Martin K. Petersen
Masanari, > Default value of ql2xasynctmfenable for qla2xxx driver was set to 1 in > commit 043dc1d7e8501. But comment in MODULE_PARAM_DESC was not > modified. Applied to 4.20/scsi-queue. Thank you! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: bfa: Avoid implicit enum conversion in bfad_im_post_vendor_event

2018-09-27 Thread Nathan Chancellor
On Thu, Sep 27, 2018 at 04:35:37PM -0700, Nick Desaulniers wrote: > On Tue, Sep 25, 2018 at 9:58 PM Nathan Chancellor > wrote: > > > > Clang warns when one enumerated type is implicitly converted to another. > > > > drivers/scsi/bfa/bfa_fcs_lport.c:379:26: warning: implicit conversion > > from

Re: [PATCH] scsi: bfa: Avoid implicit enum conversion in bfad_im_post_vendor_event

2018-09-27 Thread Nick Desaulniers
On Tue, Sep 25, 2018 at 9:58 PM Nathan Chancellor wrote: > > Clang warns when one enumerated type is implicitly converted to another. > > drivers/scsi/bfa/bfa_fcs_lport.c:379:26: warning: implicit conversion > from enumeration type 'enum bfa_lport_aen_event' to different > enumeration type 'enum

Re: [PATCH v4] scsi: ufs: Make sysfs attributes writable

2018-09-27 Thread Evan Green
On Thu, Sep 27, 2018 at 7:01 AM Christoph Hellwig wrote: > > On Thu, Sep 27, 2018 at 06:32:47AM +, Avri Altman wrote: > > Also, in this context there is the series in > > https://www.spinics.net/lists/linux-scsi/msg123479.html > > which allows to send UPIUs via a bsg device. > > > > It's not

Re: [PATCH 0/8] qla2xxx: Bug fixes for the driver

2018-09-27 Thread Ewan D. Milne
> query commands > qla2xxx: Move log messages before issuing command to firmware > > Himanshu Madhani (1): > qla2xxx: Fix driver hang when FC-NVMe LUNs are configured > > Quinn Tran (5): > qla2xxx: fix nvme session hang on unload > qla2xxx: Fix NVMe Target dis

Re: [PATCH v4 1/6] mpt3sas: Introduce mpt3sas_base_pci_device_is_available

2018-09-27 Thread Lukas Wunner
On Thu, Sep 27, 2018 at 01:47:46PM -0500, Bjorn Helgaas wrote: > mpt3sas_wait_for_commands_to_complete(...) > { > ... > + if (!mpt3sas_base_pci_device_is_available(ioc)) > +return; > > # In the definitive case, we returned above. If we get here, we > # think the device

Re: [PATCH v4 1/6] mpt3sas: Introduce mpt3sas_base_pci_device_is_available

2018-09-27 Thread Bjorn Helgaas
[+cc Ben, Russell, Sam, Oliver in case they have pertinent experience from powerpc error handling; thread begins at https://lore.kernel.org/linux-pci/1537935759-14754-1-git-send-email-suganath-prabu.subram...@broadcom.com/] On Thu, Sep 27, 2018 at 09:03:27AM +0200, Lukas Wunner wrote: > On Wed,

Re: [PATCH v6 3/7] scsi: ufs: Add ufs-bsg module

2018-09-27 Thread Christoph Hellwig
On Thu, Sep 27, 2018 at 06:16:44AM +, Avri Altman wrote: > In V6, we removed the host and device indices from the bsg device name, > But I have some seconds thoughts about it. > > We are using the bsg device in passthrough mode (bsg_transport_ops), > But the device name: "ufs-bsg" does not

Re: [PATCH v4] scsi: ufs: Make sysfs attributes writable

2018-09-27 Thread Christoph Hellwig
On Thu, Sep 27, 2018 at 06:32:47AM +, Avri Altman wrote: > Also, in this context there is the series in > https://www.spinics.net/lists/linux-scsi/msg123479.html > which allows to send UPIUs via a bsg device. > > It's not a provisioning series per-se like Evan's and Sayali's. > It covers the

RE: [PATCH v6 7/7] scsi: ufs-bsg: Add support for uic commands in ufs_bsg_request()

2018-09-27 Thread Avri Altman
> > > -ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) > > +int ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command > *uic_cmd) > > { > > int ret; > > unsigned long flags; > > @@ -2081,6 +2080,7 @@ static inline u8 ufshcd_get_upmcrs(struct ufs_hba > *hba) >

RE: [PATCH v6 6/7] scsi: ufs-bsg: Add support for raw upiu in ufs_bsg_request()

2018-09-27 Thread Avri Altman
> > > + case UPIU_TRANSACTION_QUERY_REQ: > > + qr = _request->upiu_req.qr; > > + if (qr->opcode == UPIU_QUERY_OPCODE_READ_DESC) > > + goto not_supported; > > + > > + if (ufs_bsg_get_query_desc_size(hba, qr, _len)) > > + goto

Re: [PATCH v6 6/7] scsi: ufs-bsg: Add support for raw upiu in ufs_bsg_request()

2018-09-27 Thread Christoph Hellwig
> + case UPIU_TRANSACTION_QUERY_REQ: > + qr = _request->upiu_req.qr; > + if (qr->opcode == UPIU_QUERY_OPCODE_READ_DESC) > + goto not_supported; > + > + if (ufs_bsg_get_query_desc_size(hba, qr, _len)) > + goto

Re: [PATCH v6 7/7] scsi: ufs-bsg: Add support for uic commands in ufs_bsg_request()

2018-09-27 Thread Christoph Hellwig
> -ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) > +int ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd) > { > int ret; > unsigned long flags; > @@ -2081,6 +2080,7 @@ static inline u8 ufshcd_get_upmcrs(struct ufs_hba *hba) >

Re: aacraid: latest driver results in Host adapter abort request. / Outstanding commands on (0,0,0,0):

2018-09-27 Thread Stefan Priebe - Profihost AG
Am 27.09.2018 um 12:59 schrieb Emmanuel Florac: > Le Wed, 19 Sep 2018 08:10:41 +0200 > Stefan Priebe - Profihost AG écrivait: > >> Hello, >> >> after upgrading the aacraid driver / kernel from aacraid 50792 to >> aacraid 50877. >> >> I get aborted comands every night. >> > > I have exactly

RE: [PATCH] scsi: qla4xxx: remove redundant check on drvr_wait

2018-09-27 Thread Rangankar, Manish
> -Original Message- > From: Colin King > Sent: Wednesday, September 26, 2018 6:39 PM > To: Dept-Eng QLogic Storage Upstream upstr...@cavium.com>; James E . J . Bottomley ; > Martin K . Petersen ; linux-scsi@vger.kernel.org > Cc: kernel-janit...@vger.kernel.org;

Re: aacraid: latest driver results in Host adapter abort request. / Outstanding commands on (0,0,0,0):

2018-09-27 Thread Emmanuel Florac
Le Mon, 24 Sep 2018 08:11:20 +0200 Stefan Priebe - Profihost AG écrivait: > all series 6 controllers are those with problems when high load > happens. > As I mentioned in my messages to the ML since late june, the driver doesn't work either with 7xx5 and 8xx5 controllers. Who's maintaining

Re: aacraid: latest driver results in Host adapter abort request. / Outstanding commands on (0,0,0,0):

2018-09-27 Thread Emmanuel Florac
Le Sun, 23 Sep 2018 20:22:56 +0200 Stefan Priebe - Profihost AG écrivait: > Am 22.09.2018 um 23:40 schrieb Bart Van Assche: > > On 9/18/18 11:10 PM, Stefan Priebe - Profihost AG wrote: > >> after upgrading the aacraid driver / kernel from aacraid 50792 to > >> aacraid 50877. > > > > The

Re: aacraid: latest driver results in Host adapter abort request. / Outstanding commands on (0,0,0,0):

2018-09-27 Thread Emmanuel Florac
Le Wed, 19 Sep 2018 08:10:41 +0200 Stefan Priebe - Profihost AG écrivait: > Hello, > > after upgrading the aacraid driver / kernel from aacraid 50792 to > aacraid 50877. > > I get aborted comands every night. > I have exactly the same problem since 4.15 was out, and nobody answered...

Re: [PATCH v4 2/6] mpt3sas: Separate out mpt3sas_wait_for_ioc_to_operational

2018-09-27 Thread Suganath Prabu Subramani
Hi Bjorn, Thanks for reviewing. On Thu, Sep 27, 2018 at 2:33 AM Bjorn Helgaas wrote: > > On Wed, Sep 26, 2018 at 09:52:35AM +0530, Suganath Prabu S wrote: > > Introduce mpt3sas_wait_for_ioc_to_operational. > > > > This section of code "wait for IOC to be operational" > > is used in many places

RE: [PATCH v6 3/7] scsi: ufs: Add ufs-bsg module

2018-09-27 Thread Avri Altman
Bart/Christoph, > + */ > +int ufs_bsg_probe(struct ufs_hba *hba) > +{ > + struct device *bsg_dev = >bsg_dev; > + struct Scsi_Host *shost = hba->host; > + struct device *parent = >shost_gendev; > + struct request_queue *q; > + int ret; > + > + device_initialize(bsg_dev); >

RE: [PATCH v6 3/7] scsi: ufs: Add ufs-bsg module

2018-09-26 Thread Avri Altman
> > Avri, > > > this looks generally good to me, but I'd suggest two small tweaks: > > > > - please split out a new prep patch that creates > >include/uapi/scsi/scsi_bsg_ufs.h with the structures move there > > - pleae keep the copyrights from drivers/scsi/ufs/ufs.h in this > >new file

RE: [PATCH v6 5/7] scsi: ufs: Add API to execute raw upiu commands

2018-09-26 Thread Avri Altman
> > + > > +/** > > + * ufshcd_exec_raw_upiu_cmd - API function for sending raw upiu > commands > > + * @hba: per-adapter instance > > + * @req_upiu: upiu request > > + * @rsp_upiu: upiu reply - only 8 DW as we do not support scsi > commands > > + * @msgcode: message code, one of

RE: [PATCH v6 3/7] scsi: ufs: Add ufs-bsg module

2018-09-26 Thread Avri Altman
> Hi Avri, > > this looks generally good to me, but I'd suggest two small tweaks: > > - please split out a new prep patch that creates >include/uapi/scsi/scsi_bsg_ufs.h with the structures move there > - pleae keep the copyrights from drivers/scsi/ufs/ufs.h in this >new file Done.

[PATCH 4/8] qla2xxx: Fix re-using LoopID when handle is in use

2018-09-26 Thread Himanshu Madhani
From: Quinn Tran This patch fixes issue where driver clears Nport ID map instead of marking handle in use. Once driver clears NPort ID from the database, it can reuse same NPort ID resulting in a PLOGI failure. Fixes: a084fd68e1d2 ("scsi: qla2xxx: Fix re-login for Nport Handle in use

Re: [PATCH v4 3/6] mpt3sas: Introdude _scsih_get_shost_and_ioc.

2018-09-26 Thread Bjorn Helgaas
Trivial nits/questions. In subject: s/Introdude/Introduce/ s/ / / (remove double space) s/\.//(remove trailing period, also appears in patches 4, 5, 6) On Wed, Sep 26, 2018 at 09:52:36AM +0530, Suganath Prabu S wrote: > The code for getting shost and IOC is redundant so > moved

Re: [PATCH v4 3/6] mpt3sas: Introdude _scsih_get_shost_and_ioc.

2018-09-26 Thread Bjorn Helgaas
On Wed, Sep 26, 2018 at 09:52:36AM +0530, Suganath Prabu S wrote: > The code for getting shost and IOC is redundant so > moved that to function "scsih_get_shost_and_ioc". > Also checks for NULL are added to IOC and shost. > > Signed-off-by: Suganath Prabu S > --- >

Re: [PATCH v4 2/6] mpt3sas: Separate out mpt3sas_wait_for_ioc_to_operational

2018-09-26 Thread Bjorn Helgaas
On Wed, Sep 26, 2018 at 09:52:35AM +0530, Suganath Prabu S wrote: > Introduce mpt3sas_wait_for_ioc_to_operational. > > This section of code "wait for IOC to be operational" > is used in many places across the driver, > and hence moved this section of code in to the function >

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

2018-09-26 Thread kbuild test robot
Hi Anil, I love your patch! Yet something to improve: [auto build test ERROR on mkp-scsi/for-next] [also build test ERROR on v4.19-rc5 next-20180926] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

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

2018-09-26 Thread kbuild test robot
Hi Anil, I love your patch! Yet something to improve: [auto build test ERROR on mkp-scsi/for-next] [also build test ERROR on v4.19-rc5 next-20180926] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH v6 3/7] scsi: ufs: Add ufs-bsg module

2018-09-26 Thread Martin K. Petersen
Avri, > this looks generally good to me, but I'd suggest two small tweaks: > > - please split out a new prep patch that creates >include/uapi/scsi/scsi_bsg_ufs.h with the structures move there > - pleae keep the copyrights from drivers/scsi/ufs/ufs.h in this >new file Also, when you

Re: [PATCH] scsi: qla2xxx: don't allow negative thresholds

2018-09-26 Thread Madhani, Himanshu
> On Sep 20, 2018, at 3:02 AM, Dan Carpenter wrote: > > External Email > > We shouldn't allow negative thresholds. I don't know what it would do > but it can't be good. > > Fixes: 8b4673ba3a1b ("scsi: qla2xxx: Add support for ZIO6 interrupt > threshold") > Signed-off-by: Dan Carpenter >

Re: [PATCH v2 0/5] qla2xxx: Add FC-NVMe Target support

2018-09-26 Thread Madhani, Himanshu
> On Sep 26, 2018, at 7:34 AM, Christoph Hellwig wrote: > > External Email > > Please send this to linux-nvme and CC the nvme-fc maintainer. > > Without an ACK from the latter, I'll have to NACK it with my nvme > maintainer hat on. Sure. will send series to the requested maintainers.

Re: [PATCH v6 5/7] scsi: ufs: Add API to execute raw upiu commands

2018-09-26 Thread Christoph Hellwig
On Fri, Sep 21, 2018 at 12:44:22PM +0300, Avri Altman wrote: > The UFS host software uses a combination of a host register set, > and Transfer Request Descriptors in system memory to communicate > with host controller hardware. In its mmio space, a separate places > are assigned to UTP Transfer

Re: [PATCH v6 5/7] scsi: ufs: Add API to execute raw upiu commands

2018-09-26 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH v6 4/7] scsi: ufs: Use data structure size in pointer arithmetic

2018-09-26 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH v6 3/7] scsi: ufs: Add ufs-bsg module

2018-09-26 Thread Christoph Hellwig
Hi Avri, this looks generally good to me, but I'd suggest two small tweaks: - please split out a new prep patch that creates include/uapi/scsi/scsi_bsg_ufs.h with the structures move there - pleae keep the copyrights from drivers/scsi/ufs/ufs.h in this new file

Re: [PATCH v2 0/5] qla2xxx: Add FC-NVMe Target support

2018-09-26 Thread Christoph Hellwig
Please send this to linux-nvme and CC the nvme-fc maintainer. Without an ACK from the latter, I'll have to NACK it with my nvme maintainer hat on.

Re: [PATCH] scsi: sd: Use info prints if no write cache

2018-09-25 Thread Martin K. Petersen
Per, >>We have it at error level because many consumer devices lie about >>having caches and we would like the users to know that their data >>integrity may be at risk. > > There are users that get confused by these errors thinking something > is broken. Something is broken: Their hardware! >

Re: [PATCH v3 1/6] mpt3sas: Introduce mpt3sas_base_pci_device_is_available

2018-09-25 Thread Andy Shevchenko
On Tue, Sep 25, 2018 at 1:29 PM Suganath Prabu Subramani wrote: > > On Tue, Sep 25, 2018 at 3:22 PM Andy Shevchenko > wrote: > > > > On Tue, Sep 25, 2018 at 12:46 PM Suganath Prabu Subramani > > wrote: > > > > > > > + pr_err(MPT3SAS_FMT > > > > > + "%s: pci error

Re: [PATCH v3 1/6] mpt3sas: Introduce mpt3sas_base_pci_device_is_available

2018-09-25 Thread Suganath Prabu Subramani
On Tue, Sep 25, 2018 at 3:22 PM Andy Shevchenko wrote: > > On Tue, Sep 25, 2018 at 12:46 PM Suganath Prabu Subramani > wrote: > > > > > + pr_err(MPT3SAS_FMT > > > > + "%s: pci error recovery reset or" > > > > + " pci device unplug occurred\n", >

Re: [PATCH v3 1/6] mpt3sas: Introduce mpt3sas_base_pci_device_is_available

2018-09-25 Thread Andy Shevchenko
On Tue, Sep 25, 2018 at 12:46 PM Suganath Prabu Subramani wrote: > > > + pr_err(MPT3SAS_FMT > > > + "%s: pci error recovery reset or" > > > + " pci device unplug occurred\n", > > > > This should be just one line. > Above line crosses over 80

Re: [PATCH v3 1/6] mpt3sas: Introduce mpt3sas_base_pci_device_is_available

2018-09-25 Thread Suganath Prabu Subramani
Hi Andy, I forgot to add Lukas in last patch CC list, But i have sent a note regarding the updated patch to him. Also added linux-pci On Tue, Sep 25, 2018 at 2:10 PM Andy Shevchenko wrote: > > On Mon, Sep 24, 2018 at 9:36 AM Suganath Prabu S > wrote: > > > > * Driver uses

Re: [PATCH v3 1/6] mpt3sas: Introduce mpt3sas_base_pci_device_is_available

2018-09-25 Thread Andy Shevchenko
On Mon, Sep 24, 2018 at 9:36 AM Suganath Prabu S wrote: > > * Driver uses "pci_device_is_present" to check whether > If Hot unplugged: > the outstanding IOs with 'DID_NO_CONNECT' before removing the drives > attached to the HBA. > "DID_NO_CONNECT" status and free the smid, if driver detects that

Re: [PATCH v3 0/6] mpt3sas: Hot-Plug Surprise removal support on IOC.

2018-09-25 Thread Andy Shevchenko
On Mon, Sep 24, 2018 at 9:36 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 > OS that a hot removal is desired, the OS does an orderly

Re: [PATCH V14 0/2] Add UFS provisioning support in driver

2018-09-24 Thread Avri Altman
>Configuration descriptor buffer consists of Device and Unit >descriptor configurable parameters which are parsed from vendor >specific provisioning file and then passed via configfs node at >runtime to provision ufs device. Can you describe your test setup? Will try to re-test i

Re: aacraid: latest driver results in Host adapter abort request. / Outstanding commands on (0,0,0,0):

2018-09-24 Thread Stefan Priebe - Profihost AG
Am 23.09.2018 um 20:22 schrieb Stefan Priebe - Profihost AG: > > Am 22.09.2018 um 23:40 schrieb Bart Van Assche: >> On 9/18/18 11:10 PM, Stefan Priebe - Profihost AG wrote: >>> after upgrading the aacraid driver / kernel from aacraid 50792 to >>> aacraid 50877. >> >> The aacraid driver version

Re: aacraid: latest driver results in Host adapter abort request. / Outstanding commands on (0,0,0,0):

2018-09-23 Thread Stefan Priebe - Profihost AG
Am 22.09.2018 um 23:40 schrieb Bart Van Assche: > On 9/18/18 11:10 PM, Stefan Priebe - Profihost AG wrote: >> after upgrading the aacraid driver / kernel from aacraid 50792 to >> aacraid 50877. > > The aacraid driver version was updated to 50792 in commit 0662cc968ace > ("scsi: aacraid: Update

Re: aacraid: latest driver results in Host adapter abort request. / Outstanding commands on (0,0,0,0):

2018-09-22 Thread Bart Van Assche
On 9/18/18 11:10 PM, Stefan Priebe - Profihost AG wrote: after upgrading the aacraid driver / kernel from aacraid 50792 to aacraid 50877. The aacraid driver version was updated to 50792 in commit 0662cc968ace ("scsi: aacraid: Update driver version") and to 50877 in commit 1cdb74b80f93

Re: aacraid: latest driver results in Host adapter abort request. / Outstanding commands on (0,0,0,0):

2018-09-22 Thread Stefan Priebe - Profihost AG
nobody? Greets, Stefan Am 19.09.2018 um 08:10 schrieb Stefan Priebe - Profihost AG: > Hello, > > after upgrading the aacraid driver / kernel from aacraid 50792 to > aacraid 50877. > > I get aborted comands every night. > > kern-20180830.gz:Aug 30 01:55:26 server1044-han kernel: [63693.009056]

Re: [PATCH] ipr: System hung while dlpar adding primary ipr adapter back

2018-09-21 Thread Brian King
On 09/20/2018 07:32 PM, wenxi...@linux.vnet.ibm.com wrote: > + > + list_for_each_entry(res, _cfg->used_res_q, queue) { > + if (res->add_to_ml) { > + bus = res->bus; > + target = res->target; > + lun = res->lun; > +

Re: [PATCH] ib_srp: Remove WARN_ON in srp_terminate_io()

2018-09-21 Thread Bart Van Assche
On 9/21/18 5:15 AM, Hannes Reinecke wrote: The WARN_ON() is pointless as the rport is placed in SDEV_TRANSPORT_OFFLINE at that time, so no new commands can be submitted via srp_queuecomment() Signed-off-by: Hannes Reinecke --- drivers/infiniband/ulp/srp/ib_srp.c | 7 --- 1 file changed,

Re: [PATCH] ib_srp: Remove WARN_ON in srp_terminate_io()

2018-09-21 Thread Johannes Thumshirn
On Fri, Sep 21, 2018 at 02:15:05PM +0200, Hannes Reinecke wrote: > The WARN_ON() is pointless as the rport is placed in SDEV_TRANSPORT_OFFLINE > at that time, so no new commands can be submitted via srp_queuecomment() s/srp_queuecomment/srp_queuecommand/ -- Johannes Thumshirn

Re: [PATCH] scsi: sd: Use info prints if no write cache

2018-09-21 Thread Per Förlin
Thanks for your reponse and feedback, >> If the disk has no write cache the following errors are being logged. >> * sd 1:0:0:0: [sdb] No Caching mode page found >> * sd 1:0:0:0: [sdb] Assuming drive cache: write through >> >> Lower the severity from error to info. >> The absence of a write cache

Re: [PATCH v2 1/6] mpt3sas: Introduce mpt3sas_base_pci_device_is_available

2018-09-21 Thread Sreekanth Reddy
On Thu, Sep 20, 2018 at 4:37 PM Christoph Hellwig wrote: > > > +u8 > > +mpt3sas_base_pci_device_is_available(struct MPT3SAS_ADAPTER *ioc) > > +{ > > + if (ioc->pci_error_recovery || > > + (!pci_device_is_present(ioc->pdev))) > > + return 0; > > + > > + return 1; >

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

2018-09-20 Thread Martin K. Petersen
Greg, > Split the PI SGL across the bios in the command, so each bio's > bio_integrity_payload contains the protection information for the data > in the bio. That is indeed how the bio integrity code is intended to be used. I have queued it up. Thanks! -- Martin K. Petersen Oracle Linux

Re: [PATCH] scsi: sd: Use info prints if no write cache

2018-09-20 Thread Martin K. Petersen
Per, > If the disk has no write cache the following errors are being logged. > * sd 1:0:0:0: [sdb] No Caching mode page found > * sd 1:0:0:0: [sdb] Assuming drive cache: write through > > Lower the severity from error to info. > The absence of a write cache should not be treated as an error. >

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

2018-09-20 Thread Martin K. Petersen
James, > 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. > > Correct by using locks

Re: sd 6:0:0:0: [sdb] Unaligned partial completion

2018-09-20 Thread Ted Cabeen
On 06/11/2018 04:08 PM, James Bottomley wrote: On Mon, 2018-06-11 at 14:59 -0700, Ted Cabeen wrote: On 06/11/2018 02:40 PM, James Bottomley wrote: On Mon, 2018-06-11 at 12:20 -0400, Douglas Gilbert wrote: I have also seen Aborted Command sense when doing heavy testing on one or more SAS disks

Re: [PATCH v5 4/6] scsi: ufs: Add API to execute raw upiu commands

2018-09-20 Thread Christoph Hellwig
On Thu, Sep 20, 2018 at 08:30:29AM +, Avri Altman wrote: > > > + > > > + hba->dev_cmd.complete = > > > + > > > + /* Make sure descriptors are ready before ringing the doorbell */ > > > + wmb(); > > > + spin_lock_irqsave(hba->host->host_lock, flags); > > > + ufshcd_send_command(hba, tag); > >

RE: [PATCH v5 5/6] scsi: ufs-bsg: Add support for raw upiu in ufs_bsg_request()

2018-09-20 Thread Avri Altman
> > +static inline struct ufs_hba *dev_to_ufs_hba(struct device *d) > > +{ > > + struct Scsi_Host *shost = dev_to_shost(d->parent); > > + > > + return shost_priv(shost); > > This just has one caller that culd directly do: > > struct ufs_hba *hba =

Re: [PATCH v2 1/6] mpt3sas: Introduce mpt3sas_base_pci_device_is_available

2018-09-20 Thread Christoph Hellwig
> +u8 > +mpt3sas_base_pci_device_is_available(struct MPT3SAS_ADAPTER *ioc) > +{ > + if (ioc->pci_error_recovery || > + (!pci_device_is_present(ioc->pdev))) > + return 0; > + > + return 1; > +} This should simplify be: bool

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

2018-09-20 Thread Dan Carpenter
Hi Anil, I love your patch! Perhaps something to improve: url: https://github.com/0day-ci/linux/commits/Himanshu-Madhani/qla2xxx-Add-FC-NVMe-Target-support/20180916-090108 base: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next smatch warnings:

RE: [PATCH v5 4/6] scsi: ufs: Add API to execute raw upiu commands

2018-09-20 Thread Avri Altman
> > + lrbp->command_type = hba->ufs_version == UFSHCI_VERSION_10 || > > +hba->ufs_version == UFSHCI_VERSION_11 ? > > +UTP_CMD_TYPE_DEV_MANAGE : > > +UTP_CMD_TYPE_UFS_STORAGE; > > I think a good old if/self or even a switch

Re: [PATCH v5 5/6] scsi: ufs-bsg: Add support for raw upiu in ufs_bsg_request()

2018-09-20 Thread Christoph Hellwig
On Mon, Sep 17, 2018 at 07:08:55PM +0300, Avri Altman wrote: > Do that for the currently supported UPIUs: > query, nop out, and task management. > > We do not support UPIU of type scsi command yet, while > we are using the job's request and reply pointers to hold > the payload. We will look into

Re: [PATCH v5 4/6] scsi: ufs: Add API to execute raw upiu commands

2018-09-20 Thread Christoph Hellwig
> + lrbp->command_type = hba->ufs_version == UFSHCI_VERSION_10 || > + hba->ufs_version == UFSHCI_VERSION_11 ? > + UTP_CMD_TYPE_DEV_MANAGE : > + UTP_CMD_TYPE_UFS_STORAGE; I think a good old if/self or even a switch

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

2018-09-20 Thread Christoph Hellwig
This looks generally fine to me (module comments from Bart).

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