Re: [PATCH] [RFC] [SCSI] mpt fusion: add support for 0x1000/0x0055

2012-07-27 Thread adam radford
On 7/27/12, Jiri Kosina wrote: ... > > So, what is the alternative? > > The only thing I know is that it works at least in basic mode (haven't > tested performance at all). The driver for your card is a closed source driver called 'megasr'. Here is a link to the LSI download page for this card/dr

Status update for tcm_vhost driver merge

2012-07-27 Thread Nicholas A. Bellinger
Hello folks, The RFC-v5 patch for tcm_vhost kernel code was sent out for review a bit less than 24 hours ago, and thus far there has not been any additional comments.. Thanks to everyone who has been participating in the various threads over the past week and giving their feedback! Also, just a

Re: [PATCH] [RFC] [SCSI] mpt fusion: add support for 0x1000/0x0055

2012-07-27 Thread Jiri Kosina
On Fri, 27 Jul 2012, adam radford wrote: > >> The device identifies itself as > >> > >> 0d:05.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1068 PCI-X > >> Fusion-MPT SAS (rev 01) Subsystem: NEC Corporation SAS1068 > >> > >> and seems to be functionally compatible with 0x0054 PID. > >> >

Re: [PATCH] [RFC] [SCSI] mpt fusion: add support for 0x1000/0x0055

2012-07-27 Thread adam radford
On 7/27/12, Jiri Kosina wrote: > On Sat, 21 Jul 2012, Jiri Kosina wrote: > >> The device identifies itself as >> >> 0d:05.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1068 PCI-X >> Fusion-MPT SAS (rev 01) Subsystem: NEC Corporation SAS1068 >> >> and seems to be functionally compatible w

[PATCH] scsi : Adding all the definitions of host bytes in hostbyte_table

2012-07-27 Thread Moger, Babu
Submitted this patch earlier. But it still did not make it to kernel tree. Resubmitting again(recreated on top of 3.5 kernel). Adding all the definitions of host bytes in hostbyte_table. Without this patch, scsi_show_result prints hostbyte as invalid for statuses that are not defined in hostbyte

Re: [dm-devel] [RESEND PATCH 3/3] dm mpath: add ability to disable partition creation

2012-07-27 Thread Hannes Reinecke
On 07/26/2012 07:03 PM, Benjamin Marzinski wrote: > On Wed, Jul 25, 2012 at 02:02:15PM +0200, Hannes Reinecke wrote: [ .. ] >> But that would mean one would have to maintain _two_ configuration >> files, one for multipath and one for kpartx. >> >> Also kpartx initially doesn't have any clue about d

Re: [RESEND PATCH] SCSI: scsi_lib: fix scsi_io_completion's SG_IO error propagation

2012-07-27 Thread Hannes Reinecke
On 07/25/2012 07:46 PM, Mike Snitzer wrote: > The following v3.4-rc1 commit unmasked an existing bug in > scsi_io_completion's SG_IO error handling: > 47ac56d [SCSI] scsi_error: classify some ILLEGAL_REQUEST sense as a permanent > TARGET_ERROR > > Given that certain ILLEGAL_REQUEST are now proper

Re: [PATCH] [RFC] [SCSI] mpt fusion: add support for 0x1000/0x0055

2012-07-27 Thread Jiri Kosina
On Sat, 21 Jul 2012, Jiri Kosina wrote: > The device identifies itself as > > 0d:05.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1068 PCI-X > Fusion-MPT SAS (rev 01) Subsystem: NEC Corporation SAS1068 > > and seems to be functionally compatible with 0x0054 PID. > > The request for s

Re: [PATCH] sd: do not set changed flag on all unit attention conditions

2012-07-27 Thread Hannes Reinecke
On 07/17/2012 11:59 PM, James Bottomley wrote: > On Tue, 2012-07-17 at 12:36 -0400, Christoph Hellwig wrote: >> On Tue, Jul 17, 2012 at 10:11:57AM +0100, James Bottomley wrote: >>> There's no such thing in the market today as a removable disk that's >>> resizeable. Removable disks are for things l

[PATCH v4 3/7] scsi: sr: support zero power ODD(ZPODD)

2012-07-27 Thread Aaron Lu
The ODD will be placed into suspend state when: 1 For tray type ODD, no media inside and door closed; 2 For slot type ODD, no media inside; And together with ACPI, when we suspend the ODD's parent(the port it attached to), we will omit the power altogether to reduce power consumption(done in libata

[PATCH v4 2/7] scsi: pm: add interface to autosuspend scsi device

2012-07-27 Thread Aaron Lu
Add a new interface scsi_autopm_put_device_autosuspend to mark last busy for the device and then put autosuspend the device. Signed-off-by: Aaron Lu --- drivers/scsi/scsi_pm.c | 7 +++ include/scsi/scsi_device.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/drivers/scsi/scsi_pm.

[PATCH v4 0/7] ZPODD patches

2012-07-27 Thread Aaron Lu
v4: Rebase on top of Linus' tree, due to this, the problem of a missing flag in v3 is gone; Add a new function scsi_autopm_put_device_autosuspend to first mark last busy for the device and then put autosuspend it as suggested by Oliver Neukum. Typo fix as pointed by Sergei Shtylyov. Check can_power

[PATCH v4 7/7] block: genhd: add an interface to set disk's poll interval

2012-07-27 Thread Aaron Lu
Set the ODD's in kernel poll interval to 2s for the user in case the user is using an old distro on which udev will not set the system wide block parameter events_dfl_poll_msecs. Signed-off-by: Aaron Lu --- block/genhd.c | 23 +-- drivers/scsi/sr.c | 1 + include

[PATCH v4 1/7] scsi: sr: check support for device busy class events

2012-07-27 Thread Aaron Lu
Signed-off-by: Aaron Lu --- drivers/scsi/sr.c | 23 +++ drivers/scsi/sr.h | 1 + include/linux/cdrom.h | 43 +++ 3 files changed, 67 insertions(+) diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c index 5fc97d2..abfefab 100644

[PATCH v4 5/7] scsi: pm: use runtime resume callback if available

2012-07-27 Thread Aaron Lu
When runtime resume a scsi device, if the device's driver has implemented runtime resume callback, use that. sr driver needs this to do different things for system resume and runtime resume. Signed-off-by: Aaron Lu --- drivers/scsi/scsi_pm.c | 15 ++- 1 file changed, 10 insertions(+

[PATCH v4 6/7] scsi: sr: balance sr disk events block depth

2012-07-27 Thread Aaron Lu
When the ODD is resumed, disk_unblock_events should be called when: 1 The ODD is runtime resumed; 2 System is resuming from S3 and the ODD is runtime suspended before S3; But not when the system is resuming from S3 and the ODD is runtime active before S3. So seperate the resume calls, one for syst

[PATCH v4 4/7] scsi: sr: block events when runtime suspended

2012-07-27 Thread Aaron Lu
When the ODD is runtime suspended, there is no need to poll it for events, so block events poll for it and unblock when resumed. Signed-off-by: Aaron Lu --- block/genhd.c | 2 ++ drivers/scsi/sr.c | 7 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/block/genhd.c b/blo

Re: virtio(-scsi) vs. chained sg_lists (was Re: [PATCH] scsi: virtio-scsi: Fix address translation failure of HighMem pages used by sg list)

2012-07-27 Thread Paolo Bonzini
Il 27/07/2012 08:27, Rusty Russell ha scritto: >> > +int virtqueue_add_buf_sg(struct virtqueue *_vq, >> > + struct scatterlist *sg_out, >> > + unsigned int out, >> > + struct scatterlist *sg_in, >> > + unsigned int in, >> > +

Re: virtio(-scsi) vs. chained sg_lists (was Re: [PATCH] scsi: virtio-scsi: Fix address translation failure of HighMem pages used by sg list)

2012-07-27 Thread Rusty Russell
On Thu, 26 Jul 2012 15:05:39 +0200, Paolo Bonzini wrote: > Il 26/07/2012 09:58, Paolo Bonzini ha scritto: > > > >> > Please CC me on the "convert to sg copy-less" patches, It looks > >> > interesting > > Sure. > > Well, here is the gist of it (note it won't apply on any public tree, > hence no