Re: [PATCH RESEND 0/1] AHCI: Optimize interrupt processing

2013-07-19 Thread Nicholas A. Bellinger
On Fri, 2013-07-19 at 14:01 -0700, Nicholas A. Bellinger wrote: > On Fri, 2013-07-19 at 08:33 -0700, James Bottomley wrote: > > On Thu, 2013-07-18 at 23:34 -0700, Nicholas A. Bellinger wrote: > > > diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c > > > index 0101af5..191bc15 10064

[PATCH v2 2/3] ufs: don't disable_irq() if the IRQ can be shared among devices

2013-07-19 Thread Akinobu Mita
When removing the UFS driver, disable_irq() is called and the IRQ is not enabled again. Unfortunately, the IRQ is requested with IRQF_SHARED and it can be shared among several devices. So disabling the IRQ in this way is just breaking other devices which are sharing the IRQ. Signed-off-by: Akino

[PATCH v2 3/3] ufs: don't stop controller before scsi_remove_host()

2013-07-19 Thread Akinobu Mita
scsi_remove_host() sends SYNCHRONIZE CACHE commands for write cache enabled scsi disk devices. So stopping controller working shouldn't be done before scsi_remove_host(). Signed-off-by: Akinobu Mita Cc: Vinayak Holikatti Cc: Santosh Y Cc: "James E.J. Bottomley" Cc: linux-scsi@vger.kernel.org

[PATCH v2 1/3] ufshcd-pci: release ioremapped region during removing driver

2013-07-19 Thread Akinobu Mita
Before commit 2953f850c3b80bdca004967c83733365d8aa0aa2 ("[SCSI] ufs: use devres functions for ufshcd"), UFSHCI register was ioremapped by each glue-driver (ufshcd-pltfrm and ufshcd-pci) during probing and it was iounmapped by core-driver during removing driver. The commit converted ufshcd-pltfrm t

[PATCH v2 0/3] ufs: fix bugs in probing and removing driver paths

2013-07-19 Thread Akinobu Mita
The changes in this patch set are almost same as the previous one that I send on Jul 8. But the previous version wasn't cleanly applied to the upstream kernel because it depend on my local work in progress patches. So this version fixes it and it also includes another bug fix in the same area. A

Re: [PATCH] mpt2sas: don't handle broadcast primitives

2013-07-19 Thread Jörn Engel
On Fri, 19 July 2013 18:06:59 -0400, Jörn Engel wrote: > > The handling of broadcast primitives involves > _scsih_block_io_all_device(), which does what the name implies. I have > observed cases with >60s of blocking io on all devices, caused by a > single bad device. The downsides of this code

[PATCH] mpt2sas: don't handle broadcast primitives

2013-07-19 Thread Jörn Engel
The handling of broadcast primitives involves _scsih_block_io_all_device(), which does what the name implies. I have observed cases with >60s of blocking io on all devices, caused by a single bad device. The downsides of this code are obvious, while the upsides are more elusive. Signed-off-by: J

Re: [PATCH v4 3/4] [SCSI] sg: checking sdp->detached isn't protected when open

2013-07-19 Thread Jörn Engel
On Wed, 17 July 2013 23:34:05 +0800, Vaughan Cao wrote: > > -static Sg_fd *sg_add_sfp(Sg_device * sdp, int dev); > +static Sg_fd *sg_add_sfp(Sg_device * sdp, int dev, int * reason); You can use ERR_PTR and friends instead of adding another parameter. > static void sg_remove_sfp(struct kref *); >

Re: [PATCH v4 4/4] [SCSI] sg: push file descriptor list locking down to per-device locking

2013-07-19 Thread Jörn Engel
On Wed, 17 July 2013 23:34:06 +0800, Vaughan Cao wrote: > Date: Wed, 17 Jul 2013 23:34:06 +0800 > From: Vaughan Cao > To: jo...@logfs.org > Cc: dgilb...@interlog.com, jbottom...@parallels.com, > linux-scsi@vger.kernel.org, linux-ker...@vger.kernel.org, > vaughan@oracle.com > Subjec

Re: [PATCH v4 2/4] [SCSI] sg: no need sg_open_exclusive_lock

2013-07-19 Thread Jörn Engel
On Wed, 17 July 2013 23:34:04 +0800, Vaughan Cao wrote: > Date: Wed, 17 Jul 2013 23:34:04 +0800 > From: Vaughan Cao > To: jo...@logfs.org > Cc: dgilb...@interlog.com, jbottom...@parallels.com, > linux-scsi@vger.kernel.org, linux-ker...@vger.kernel.org, > vaughan@oracle.com > Subjec

Re: [PATCH v4 1/4] [SCSI] sg: use rwsem to solve race during exclusive open

2013-07-19 Thread Jörn Engel
On Wed, 17 July 2013 23:34:03 +0800, Vaughan Cao wrote: > Date: Wed, 17 Jul 2013 23:34:03 +0800 > From: Vaughan Cao > To: jo...@logfs.org > Cc: dgilb...@interlog.com, jbottom...@parallels.com, > linux-scsi@vger.kernel.org, linux-ker...@vger.kernel.org, > vaughan@oracle.com > Subjec

Re: [Ksummit-2013-discuss] [ATTEND] scsi-mq prototype discussion

2013-07-19 Thread Nicholas A. Bellinger
On Fri, 2013-07-19 at 21:46 +, James Bottomley wrote: > On Fri, 2013-07-19 at 14:22 -0700, Nicholas A. Bellinger wrote: > > On Wed, 2013-07-17 at 04:52 +, James Bottomley wrote: > > > On Tue, 2013-07-16 at 15:15 -0600, Jens Axboe wrote: > > > > On Tue, Jul 16 2013, Nicholas A. Bellinger wro

Re: [Ksummit-2013-discuss] [ATTEND] scsi-mq prototype discussion

2013-07-19 Thread James Bottomley
On Fri, 2013-07-19 at 14:22 -0700, Nicholas A. Bellinger wrote: > On Wed, 2013-07-17 at 04:52 +, James Bottomley wrote: > > On Tue, 2013-07-16 at 15:15 -0600, Jens Axboe wrote: > > > On Tue, Jul 16 2013, Nicholas A. Bellinger wrote: > > > > On Sat, 2013-07-13 at 06:53 +, James Bottomley wro

Re: [Ksummit-2013-discuss] [ATTEND] scsi-mq prototype discussion

2013-07-19 Thread Nicholas A. Bellinger
On Wed, 2013-07-17 at 04:52 +, James Bottomley wrote: > On Tue, 2013-07-16 at 15:15 -0600, Jens Axboe wrote: > > On Tue, Jul 16 2013, Nicholas A. Bellinger wrote: > > > On Sat, 2013-07-13 at 06:53 +, James Bottomley wrote: > > > > Lets start with discussing this on the list, please, and

Re: [PATCH RESEND 0/1] AHCI: Optimize interrupt processing

2013-07-19 Thread Nicholas A. Bellinger
On Fri, 2013-07-19 at 09:58 -0600, Mike Christie wrote: > On 07/18/2013 06:23 PM, Nicholas A. Bellinger wrote: > >> Just saw this while trying out iscsi with the scsi-mq stuff :) > >> > > > Took at stab at this a while back, but ended getting distracted on other > > items. Do you have an initial

Re: [PATCH RESEND 0/1] AHCI: Optimize interrupt processing

2013-07-19 Thread Nicholas A. Bellinger
On Fri, 2013-07-19 at 08:33 -0700, James Bottomley wrote: > On Thu, 2013-07-18 at 23:34 -0700, Nicholas A. Bellinger wrote: > > diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c > > index 0101af5..191bc15 100644 > > --- a/drivers/ata/libata-scsi.c > > +++ b/drivers/ata/libata-scsi.

Re: [PATCH V3 4/4] scsi: ufs: Improve UFS fatal error handling

2013-07-19 Thread Sujit Reddy Thumma
On 7/19/2013 7:28 PM, Seungwon Jeon wrote: > On Tue, July 09, 2013, Sujit Reddy Thumma wrote: >> Error handling in UFS driver is broken and resets the host controller >> for fatal errors without re-initialization. Correct the fatal error >> handling sequence according to UFS Host Controller Interfa

Re: [PATCH V3 3/4] scsi: ufs: Fix device and host reset methods

2013-07-19 Thread Sujit Reddy Thumma
On 7/19/2013 7:27 PM, Seungwon Jeon wrote: > On Tue, July 09, 2013, Sujit Reddy Thumma wrote: >> As of now SCSI initiated error handling is broken because, >> the reset APIs don't try to bring back the device initialized and >> ready for further transfers. >> >> In case of timeouts, the scsi error

Re: [PATCH V3 2/4] scsi: ufs: Fix hardware race conditions while aborting a command

2013-07-19 Thread Sujit Reddy Thumma
On 7/19/2013 7:26 PM, Seungwon Jeon wrote: > On Tue, July 09, 2013, Sujit Reddy Thumma wrote: >> There is a possible race condition in the hardware when the abort >> command is issued to terminate the ongoing SCSI command as described >> below: >> >> - A bit in the door-bell register is set in the

Re: [PATCH V3 1/4] scsi: ufs: Fix broken task management command implementation

2013-07-19 Thread Sujit Reddy Thumma
On 7/19/2013 7:26 PM, Seungwon Jeon wrote: > On Tue, July 09, 2013 Sujit Reddy Thumma wrote: >> Currently, sending Task Management (TM) command to the card might >> be broken in some scenarios as listed below: >> >> Problem: If there are more than 8 TM commands the implementation >> retur

Re: [PATCH V3 1/2] scsi: ufs: Add support for sending NOP OUT UPIU

2013-07-19 Thread Sujit Reddy Thumma
On 7/19/2013 7:17 PM, Seungwon Jeon wrote: On Thu, July 18, 2013, Sujit Reddy Thumma wrote: + * ufshcd_wait_for_register - wait for register value to change + * @hba - per-adapter interface + * @reg - mmio register offset + * @mask - mask to apply to read register value + * @val - wait condition

Re: [PATCH V3 1/2] scsi: ufs: Add support for host assisted background operations

2013-07-19 Thread Sujit Reddy Thumma
I'm not sure that BKOPS with runtime-pm associates. Do you think it's helpful for power management? How about hibernation scheme for runtime-pm? I'm testing and I can introduce soon. Well, I am thinking on following approach when we introduce power management. ufshcd_runtime_suspend() {

Re: [PATCH RESEND 0/1] AHCI: Optimize interrupt processing

2013-07-19 Thread Mike Christie
On 07/18/2013 06:23 PM, Nicholas A. Bellinger wrote: >> Just saw this while trying out iscsi with the scsi-mq stuff :) >> > > Took at stab at this a while back, but ended getting distracted on other > items. Do you have an initial conversion running yet..? Not running well :) Have a patch but I

[Bug 59601] commit 97dec564fd4948e0e560869c80b76e166ca2a83e breaks communication with XYRATEX disk shelves

2013-07-19 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=59601 Jack Hill changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [PATCH 6/7] qla4xxx: Export more firmware info in sysfs

2013-07-19 Thread Mike Christie
On 07/17/2013 11:44 AM, Mike Christie wrote: > On 07/08/2013 06:33 AM, adheer.chandravan...@qlogic.com wrote: >> static ssize_t >> @@ -181,8 +179,8 @@ qla4xxx_iscsi_version_show(struct device *dev, struct >> device_attribute *attr, >> char *buf) >> { >> struct scsi_q

Re: [PATCH 2/2] qla2xxx: Properly set the tagging for commands.

2013-07-19 Thread Greg KH
On Fri, Jul 19, 2013 at 09:16:51AM +, Saurav Kashyap wrote: > This should go to stable also, added in to list. This fixes a BZ > https://bugzilla.kernel.org/show_bug.cgi?id=59601 > > Thanks, > ~Saurav > > > -Original Message- > From: Saurav Kashyap [mailto:saurav.kash...@qlogic.com]

Re: [PATCH 0/7] qla4xxx: Updates for scsi "misc" branch

2013-07-19 Thread Mike Christie
On 07/08/2013 06:33 AM, adheer.chandravan...@qlogic.com wrote: > From: Adheer Chandravanshi > > James, > > Please apply the following patches to the scsi tree at your earliest > convenience. > > Adheer Chandravanshi (7): > qla4xxx: Allow removal of failed session using logout. > qla

Re: [PATCH RESEND 0/1] AHCI: Optimize interrupt processing

2013-07-19 Thread James Bottomley
On Thu, 2013-07-18 at 23:34 -0700, Nicholas A. Bellinger wrote: > diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c > index 0101af5..191bc15 100644 > --- a/drivers/ata/libata-scsi.c > +++ b/drivers/ata/libata-scsi.c > @@ -1144,7 +1144,11 @@ static int ata_scsi_dev_config(struct scs

Re: [PATCH 1/2] qla2xxx: Fix sparse warnings in qlafx00_fxdisc_iocb function.

2013-07-19 Thread James Bottomley
On Fri, 2013-07-12 at 14:47 -0400, Saurav Kashyap wrote: > Signed-off-by: Saurav Kashyap > Signed-off-by: Giridhar Malavali This does not fix a bug ... therefore it's not really -rc fixes material. In early -rc this rule can be relaxed a bit ... but what's the reason to get this through the -rc

Re: [Ksummit-2013-discuss] [ATTEND] scsi-mq prototype discussion

2013-07-19 Thread Ric Wheeler
On 07/17/2013 12:52 AM, James Bottomley wrote: On Tue, 2013-07-16 at 15:15 -0600, Jens Axboe wrote: On Tue, Jul 16 2013, Nicholas A. Bellinger wrote: On Sat, 2013-07-13 at 06:53 +, James Bottomley wrote: On Fri, 2013-07-12 at 12:52 +0200, Hannes Reinecke wrote: On 07/12/2013 03:33 AM, Nic

RE: [PATCH V3 4/4] scsi: ufs: Improve UFS fatal error handling

2013-07-19 Thread Seungwon Jeon
On Tue, July 09, 2013, Sujit Reddy Thumma wrote: > Error handling in UFS driver is broken and resets the host controller > for fatal errors without re-initialization. Correct the fatal error > handling sequence according to UFS Host Controller Interface (HCI) > v1.1 specification. > > o Upon deter

RE: [PATCH V3 2/4] scsi: ufs: Fix hardware race conditions while aborting a command

2013-07-19 Thread Seungwon Jeon
On Tue, July 09, 2013, Sujit Reddy Thumma wrote: > There is a possible race condition in the hardware when the abort > command is issued to terminate the ongoing SCSI command as described > below: > > - A bit in the door-bell register is set in the controller for a > new SCSI command. > - In som

RE: [PATCH V3 3/4] scsi: ufs: Fix device and host reset methods

2013-07-19 Thread Seungwon Jeon
On Tue, July 09, 2013, Sujit Reddy Thumma wrote: > As of now SCSI initiated error handling is broken because, > the reset APIs don't try to bring back the device initialized and > ready for further transfers. > > In case of timeouts, the scsi error handler takes care of handling aborts > and reset

RE: [PATCH V3 1/4] scsi: ufs: Fix broken task management command implementation

2013-07-19 Thread Seungwon Jeon
On Tue, July 09, 2013 Sujit Reddy Thumma wrote: > Currently, sending Task Management (TM) command to the card might > be broken in some scenarios as listed below: > > Problem: If there are more than 8 TM commands the implementation > returns error to the caller. > Fix: Wait for one of

RE: [PATCH V3 1/2] scsi: ufs: Add support for host assisted background operations

2013-07-19 Thread Seungwon Jeon
On Thu, July 18, 2013, Sujit Reddy Thumma wrote: > >>> > >I'm not sure that BKOPS with runtime-pm associates. > >>> > >Do you think it's helpful for power management? > >>> > >How about hibernation scheme for runtime-pm? > >>> > >I'm testing and I can introduce soon. > >> > > >> >Well, I am thinkin

RE: [PATCH V3 2/2] scsi: ufs: Set fDeviceInit flag to initiate device initialization

2013-07-19 Thread Seungwon Jeon
On Thursday, July 18, 2013, Dolev Raviv wrote: > > Hi, > > > > Sorry for the late response. I had a few days off. > > > > On Thu, July 11, 2013, Dolev Raviv wrote: > >> > On Tuesday, July 09, 2013, Sujit Reddy Thumma wrote: > >> >> From: Dolev Raviv > >> >> Allow UFS device to complete its initial

RE: [PATCH V3 1/2] scsi: ufs: Add support for sending NOP OUT UPIU

2013-07-19 Thread Seungwon Jeon
On Thu, July 18, 2013, Sujit Reddy Thumma wrote: > + * ufshcd_wait_for_register - wait for register value to change > + * @hba - per-adapter interface > + * @reg - mmio register offset > + * @mask - mask to apply to read register value > + * @val - wait condition > + *

RE: [PATCH 2/2] qla2xxx: Properly set the tagging for commands.

2013-07-19 Thread Saurav Kashyap
This should go to stable also, added in to list. This fixes a BZ https://bugzilla.kernel.org/show_bug.cgi?id=59601 Thanks, ~Saurav -Original Message- From: Saurav Kashyap [mailto:saurav.kash...@qlogic.com] Sent: Saturday, July 13, 2013 12:18 AM To: jbottom...@parallels.com Cc: Giridhar

[Bug 59601] commit 97dec564fd4948e0e560869c80b76e166ca2a83e breaks communication with XYRATEX disk shelves

2013-07-19 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=59601 --- Comment #11 from Saurav Kashyap --- Hi Jack, This patch http://marc.info/?l=linux-scsi&m=137365649318663&w=2 is submitted to upstream. Please close this BZ. thanks, ~Saurav -- You are receiving this mail because: You are watching the assign

[PATCH] target: replace strict_strto*() with kstrto*()

2013-07-19 Thread Jingoo Han
The usage of strict_strtoul() and strict_strtoull() is not preferred, because strict_strtoul() and strict_strtoull() are obsolete. Thus, kstrtoul() and kstrtoull() should be used. Signed-off-by: Jingoo Han --- drivers/target/iscsi/iscsi_target_configfs.c |8 ++--- drivers/target/iscsi/iscs