Re: PATCH: usb-storage-psc1350-v4.patch (was Linux scsi / usb-mass-storage and HP printer cardreader bug + fix)

2008-01-14 Thread Hans de Goede
Guillaume Bedot wrote: I have tested this time with two PSC 1610 printers, and two SD cards, the same bug occured without the patch. And is fixed with your new patch. Good work ! Hi, Thanks for testing! But it fixes only two models. Do you think other devices (hp or not) can be impacted ?

Re: PATCH: usb-storage-psc1350-v4.patch (was Linux scsi / usb-mass-storage and HP printer cardreader bug + fix)

2008-01-14 Thread Guillaume Bedot
Hello, On ven, 2008-01-11 at 21:14 +0100, Hans de Goede wrote: Boaz Harrosh wrote: Yes, you're right. in ULDs it is a much proper way to do this. So I guess you'll have to do that special host flag or device flag, and add a check for it in sd.c. You'll see that sd.c is already doing

Forcing use of sd driver on Suse 10.3 (2.6.22)

2008-01-14 Thread Bill Adair
I have a device reported as below. It is a PCMCIA card reader with SCSI-2 connections. I know the device can work as a direct access device when flash memory is present as I have connected it to an Akai sampler which can read the card. I am assuming here the sampler's SCSI stack is not very

RE: [PATCH 1/2] don't zero out sense_buffer in queuecommand

2008-01-14 Thread Salyzyn, Mark
ACK on ips bits. Sincerely -- Mark Salyzyn . . . diff --git a/drivers/scsi/ips.c b/drivers/scsi/ips.c index e54d30c..b1b2295 100644 --- a/drivers/scsi/ips.c +++ b/drivers/scsi/ips.c @@ -2736,8 +2736,6 @@ ips_next(ips_ha_t * ha, int intr) SC-result = DID_OK;

RE: [PATCH 2/2] replace sizeof sense_buffer with SCSI_SENSE_BUFFERSIZE

2008-01-14 Thread Salyzyn, Mark
ACK on ips, aacraid and dpt_i2o bits. Cursory inspection of other bits as well. Thanks Fujita, looks good! Will do a 'min()' cleanup on aacraid once patch propagates into scsi-misc-2.6 Sincerely -- Mark Salyzyn cur*so*ry - adjective going rapidly over something, without noticing

[PATCH] Convert drivers/scsi/ch.c to use unlocked_ioctl

2008-01-14 Thread Mathieu Segaud
As of now, compat_ioctl already runs without the BKL, whereas ioctl runs with the BKL. This patch first converts changer_fops to use a .unlocked_ioctl member. It applies the same locking rationale than ch_ioctl_compat() uses to ch_ioctl(). Signed-off-by: Mathieu Segaud [EMAIL PROTECTED] ---

Re: [PATCH 6/10] lpfc 8.2.4 : Add additional sysfs and module parameters

2008-01-14 Thread James Smart
They are - for display purposes. We have yet to make them settable via the transport. I'll look into it, as it does make sense. -- james s James Bottomley wrote: On Fri, 2008-01-11 at 01:53 -0500, James Smart wrote: Made link speed and link topology modifiable via sysfs Make scatter gather

Re: [PATCH] Convert drivers/scsi/ch.c to use unlocked_ioctl

2008-01-14 Thread Matthew Wilcox
On Mon, Jan 14, 2008 at 02:32:13PM +0100, Mathieu Segaud wrote: +#include linux/smp_lock.h You don't add any uses of lock_kernel() and there are none in the driver currently. - .owner= THIS_MODULE, - .open = ch_open, - .release = ch_release, - .ioctl

[PATCH] Convert drivers/scsi/ch.c to use unlocked_ioctl

2008-01-14 Thread Mathieu Segaud
As of now, compat_ioctl already runs without the BKL, whereas ioctl runs with the BKL. This patch first converts changer_fops to use a .unlocked_ioctl member. It applies the same locking rationale than ch_ioctl_compat() uses to ch_ioctl(). Signed-off-by: Mathieu Segaud [EMAIL PROTECTED] ---

Re: [PATCH] Convert drivers/scsi/ch.c to use unlocked_ioctl

2008-01-14 Thread Mathieu SEGAUD
Vous m'avez dit récemment : On Mon, Jan 14, 2008 at 02:32:13PM +0100, Mathieu Segaud wrote: +#include linux/smp_lock.h You don't add any uses of lock_kernel() and there are none in the driver currently. yep, it was before I noticed the locking semantics of ch_ioctl_compat() -.owner

Re: [PATCH] Convert drivers/scsi/ch.c to use unlocked_ioctl

2008-01-14 Thread Matthew Wilcox
On Mon, Jan 14, 2008 at 03:31:17PM +0100, Mathieu Segaud wrote: + .owner = THIS_MODULE, + .open = ch_open, + .release= ch_release, + .unlocked_ioctl = ch_ioctl, Do you have a tab setting that's not 8? You seem to have used

[PATCH] Convert drivers/scsi/ch.c to use unlocked_ioctl

2008-01-14 Thread Mathieu Segaud
As of now, compat_ioctl already runs without the BKL, whereas ioctl runs with the BKL. This patch first converts changer_fops to use a .unlocked_ioctl member. It applies the same locking rationale than ch_ioctl_compat() uses to ch_ioctl(). Signed-off-by: Mathieu Segaud [EMAIL PROTECTED]

aic94xx: failing on high load

2008-01-14 Thread Jan Sembera
Hi, we have array of 16 SAS disks connected to Adaptec controllers (we have ASC-58300 and on-board AIC-9410W, but this bug occurs on both of them). Controller initializes drives successfully and they seem to work normally, but when we perform some I/O intensive task (such as create md

[PATCH 1/1] aacraid: replace '?:' with min_t()

2008-01-14 Thread Salyzyn, Mark
The promised min_t() cleanup. Purely cosmetic. This attached patch is against current scsi-misc-2.6 *after* http://marc.info/?l=linux-scsim=120020681219191w=2 is applied. James, sorry if this patch is being submitted too early in the pipeline ... ObligatoryDisclaimer: Please accept my

[PATCH] Convert drivers/scsi/ch.c to use unlocked_ioctl

2008-01-14 Thread Mathieu Segaud
As of now, compat_ioctl already runs without the BKL, whereas ioctl runs with the BKL. This patch first converts changer_fops to use a .unlocked_ioctl member. It applies the same locking rationale than ch_ioctl_compat() uses to ch_ioctl(). Signed-off-by: Mathieu Segaud [EMAIL PROTECTED]

Re: PATCH: usb-storage-psc1350-v4.patch (was Linux scsi / usb-mass-storage and HP printer cardreader bug + fix)

2008-01-14 Thread Matthew Dharm
On Mon, Jan 14, 2008 at 10:46:56AM +0100, Hans de Goede wrote: Guillaume Bedot wrote: But it fixes only two models. Do you think other devices (hp or not) can be impacted ? There are hundreds of models with card readers only for hp :

Re: [PATCH] bsg : Add support for io vectors in bsg

2008-01-14 Thread Pete Wyckoff
[EMAIL PROTECTED] wrote on Fri, 11 Jan 2008 19:16 -0500: James Bottomley wrote: On Thu, 2008-01-10 at 16:46 -0500, Pete Wyckoff wrote: [EMAIL PROTECTED] wrote on Thu, 10 Jan 2008 14:55 -0600: On Thu, 2008-01-10 at 15:43 -0500, Pete Wyckoff wrote: [EMAIL PROTECTED] wrote on Wed, 09 Jan 2008

Re: [RFC 1/2] block: implement drain buffers

2008-01-14 Thread James Bottomley
Jens pointed out that I need to lower both phys and hw segments in the drain set up, so an updated patch is attached. James --- From 7d5cff0af8a2d4017d0b5246aaef33327b053495 Mon Sep 17 00:00:00 2001 From: James Bottomley [EMAIL PROTECTED] Date: Thu, 10 Jan 2008 11:30:36 -0600 Subject: block:

[PATCH] SG: work with the SCSI fixed maximum allocations

2008-01-14 Thread James Bottomley
Boaz pointed out that the current sg table code will bug in the SCSI index function because it assumes a larger sized allocator that SCSI possesses. This patch fixes the issue. James --- From 258aae00284d61786758d9e740df08cc4b916f96 Mon Sep 17 00:00:00 2001 From: James Bottomley [EMAIL

RE: MPT Fusion initialization in 2.6.23.12

2008-01-14 Thread Moore, Eric
On Friday, January 11, 2008 7:01 AM, Karen Shaeffer wrote: mptbase: ioc0: IOCStatus(0x0022): Config Page Invalid Page: type=08h, page=00h, action=01h, form=000Fh I've traced through the mptbase.c code and can see these invalid config pages are read from the controller during

Re: PATCH: usb-storage-psc1350-v4.patch (was Linux scsi / usb-mass-storage and HP printer cardreader bug + fix)

2008-01-14 Thread James Bottomley
On Mon, 2008-01-14 at 08:03 -0800, Matthew Dharm wrote: On Mon, Jan 14, 2008 at 10:46:56AM +0100, Hans de Goede wrote: Guillaume Bedot wrote: But it fixes only two models. Do you think other devices (hp or not) can be impacted ? There are hundreds of models with card readers only for hp

[PATCH] lpfc 8.2.4 fixup: always use stack waitqueue

2008-01-14 Thread James Smart
Found one area that needed to be fixed in the 8.2.4 patches. Remove incorrect use of #ifdef for an on stack waitqueue. Upstream driver always uses DECLARE_WAIT_QUEUE_HEAD_ONSTACK(); Signed-off-by: James Smart [EMAIL PROTECTED] diff -upNr a/drivers/scsi/lpfc/lpfc_scsi.c

Re: PATCH: usb-storage-psc1350-v4.patch (was Linux scsi / usb-mass-storage and HP printer cardreader bug + fix)

2008-01-14 Thread Hans de Goede
James Bottomley wrote: On Mon, 2008-01-14 at 08:03 -0800, Matthew Dharm wrote: On Mon, Jan 14, 2008 at 10:46:56AM +0100, Hans de Goede wrote: Guillaume Bedot wrote: But it fixes only two models. Do you think other devices (hp or not) can be impacted ? There are hundreds of models with card

Re: PATCH: usb-storage-psc1350-v4.patch (was Linux scsi / usb-mass-storage and HP printer cardreader bug + fix)

2008-01-14 Thread Stefan Richter
James Bottomley wrote: On Mon, 2008-01-14 at 08:03 -0800, Matthew Dharm wrote: On Mon, Jan 14, 2008 at 10:46:56AM +0100, Hans de Goede wrote: Guillaume Bedot wrote: Will this be possible to use LAST_SECTOR_BUG quirk for testing without recompiling a kernel ? This is not possible

Re: Forcing use of sd driver on Suse 10.3 (2.6.22)

2008-01-14 Thread Stefan Richter
Bill Adair wrote: Is there any way under Linux of forcing use of the sd driver for a device on the bus instead of sg? The INQUIRY data which the SCSI core gets from the device have to indicate that the device implements SBC or RBC (is of peripheral device type 00h or 0Eh). -- Stefan Richter

Re: PATCH: usb-storage-psc1350-v4.patch (was Linux scsi / usb-mass-storage and HP printer cardreader bug + fix)

2008-01-14 Thread Matthew Dharm
On Mon, Jan 14, 2008 at 10:33:08AM -0600, James Bottomley wrote: On Mon, 2008-01-14 at 08:03 -0800, Matthew Dharm wrote: We may be able to convince the SCSI people to enable it for all devices, regardless of HCD. No ... I'm not particularly keen to have enterprise vendors after my blood

Re: PATCH: usb-storage-psc1350-v4.patch (was Linux scsi / usb-mass-storage and HP printer cardreader bug + fix)

2008-01-14 Thread James Bottomley
On Mon, 2008-01-14 at 19:37 +0100, Hans de Goede wrote: James Bottomley wrote: On Mon, 2008-01-14 at 08:03 -0800, Matthew Dharm wrote: On Mon, Jan 14, 2008 at 10:46:56AM +0100, Hans de Goede wrote: Guillaume Bedot wrote: But it fixes only two models. Do you think other devices (hp or

Re: PATCH: usb-storage-psc1350-v4.patch (was Linux scsi / usb-mass-storage and HP printer cardreader bug + fix)

2008-01-14 Thread Hans de Goede
Matthew Dharm wrote: On Mon, Jan 14, 2008 at 10:33:08AM -0600, James Bottomley wrote: On Mon, 2008-01-14 at 08:03 -0800, Matthew Dharm wrote: We may be able to convince the SCSI people to enable it for all devices, regardless of HCD. No ... I'm not particularly keen to have enterprise vendors

RE: Checkpatch.pl failure

2008-01-14 Thread Salyzyn, Mark
Suppress one of the bogus checkpatch.pl error, the side-effect of the error highlighted that this constant should be replaced by an existing manifest. checkpatch.pl needs to be corrected to accept the comment style to deal with the other cases should they ever be touched by future patches. This

Re: [PATCH] libsas: fix sense_buffer overrun

2008-01-14 Thread Darrick J. Wong
Looks sane to me; Acked-by: Darrick J. Wong [EMAIL PROTECTED] --D On Sun, Jan 13, 2008 at 02:20:18AM +0900, FUJITA Tomonori wrote: Signed-off-by: FUJITA Tomonori [EMAIL PROTECTED] --- drivers/scsi/libsas/sas_scsi_host.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

Re: PATCH: usb-storage-psc1350-v4.patch (was Linux scsi / usb-mass-storage and HP printer cardreader bug + fix)

2008-01-14 Thread Hans de Goede
James Bottomley wrote: Plus what is the rq-nr_sectors sdp-sector_size / 512 test supposed to be doing? that being true is supposed to be a guarantee of the block layer (and if something goes wrong there's a check for this lower down). It first is was just: rq-nr_sectors 1 Then I changed it

Re: aic94xx: failing on high load

2008-01-14 Thread Darrick J. Wong
On Mon, Jan 14, 2008 at 03:49:16PM +0100, Jan Sembera wrote: Hi, we have array of 16 SAS disks connected to Adaptec controllers ... this elsewhere and I was recommended to send it to linux-scsi. Hmm... I think Peter Bogdanovic was hitting this error recently (cc'd). There are a lot of

Re: aic94xx: failing on high load

2008-01-14 Thread James Bottomley
On Mon, 2008-01-14 at 11:45 -0800, Darrick J. Wong wrote: On Mon, Jan 14, 2008 at 03:49:16PM +0100, Jan Sembera wrote: Hi, we have array of 16 SAS disks connected to Adaptec controllers ... this elsewhere and I was recommended to send it to linux-scsi. Hmm... I think Peter

Re: PATCH: usb-storage-psc1350-v4.patch (was Linux scsi / usb-mass-storage and HP printer cardreader bug + fix)

2008-01-14 Thread James Bottomley
On Mon, 2008-01-14 at 20:27 +0100, Hans de Goede wrote: James Bottomley wrote: Plus what is the rq-nr_sectors sdp-sector_size / 512 test supposed to be doing? that being true is supposed to be a guarantee of the block layer (and if something goes wrong there's a check for this lower

Re: aic94xx: failing on high load

2008-01-14 Thread Vojtech Pavlik
On Mon, Jan 14, 2008 at 02:03:45PM -0600, James Bottomley wrote: On Mon, 2008-01-14 at 11:45 -0800, Darrick J. Wong wrote: On Mon, Jan 14, 2008 at 03:49:16PM +0100, Jan Sembera wrote: Hi, we have array of 16 SAS disks connected to Adaptec controllers ... this elsewhere and I

panic in sg_add when class_device_create() fails

2008-01-14 Thread Michael Reed
We're seeing an occasional panic in sg_add() when class_device_create() fails. It's obvious in the code that it uses the pointer to sg_class_member even though it's invalid. We do see the class_device_create failed message. class_set_devdata(cl_dev, sdp); error = cdev_add(cdev,

Re: aic94xx: failing on high load

2008-01-14 Thread James Bottomley
On Mon, 2008-01-14 at 22:03 +0100, Vojtech Pavlik wrote: On Mon, Jan 14, 2008 at 02:03:45PM -0600, James Bottomley wrote: On Mon, 2008-01-14 at 11:45 -0800, Darrick J. Wong wrote: On Mon, Jan 14, 2008 at 03:49:16PM +0100, Jan Sembera wrote: Hi, we have array of 16

Re: panic in sg_add when class_device_create() fails

2008-01-14 Thread James Bottomley
On Mon, 2008-01-14 at 14:11 -0800, Michael Reed wrote: We're seeing an occasional panic in sg_add() when class_device_create() fails. It's obvious in the code that it uses the pointer to sg_class_member even though it's invalid. We do see the class_device_create failed message.

[PATCH] Fix compile warnings on x86_64 caused by OFC_DBG

2008-01-14 Thread Robert Love
Signed-off-by: Robert Love [EMAIL PROTECTED] --- drivers/scsi/ofc/fcoe/fcoe_dev.c | 10 ++ drivers/scsi/ofc/libfc/fc_print.c |2 +- drivers/scsi/ofc/libfc/fcs_state.c|4 ++-- drivers/scsi/ofc/libsa/sa_state.c | 14 +++---

Re: MPT Fusion initialization in 2.6.23.12

2008-01-14 Thread Grant Grundler
On Jan 11, 2008 6:01 AM, Karen Shaeffer [EMAIL PROTECTED] wrote: Hi, I have this server with an LSI Logic SAS1064 RAID enabled Ultra320 SCSI controller on the system board. Karen, The above doesn't make sense to me. How is SAS 1064 RAID related to Ultra320 SCSI? This card has both traditional

Problem with mptsas handling of ATA devices in a shared environment

2008-01-14 Thread James Bottomley
When the expander can manage it, shared devices are handled with affiliations. However, the 1068 firmware doesn't seem to be aware of this. It always seems to close connections with CLOSE(NORMAL) instead of CLOSE(CLEAR AFFILIATION). The upshot is that once mptsas sees an ATA device in a shared

RE: MPT Fusion initialization in 2.6.23.12

2008-01-14 Thread Moore, Eric
On Monday, January 14, 2008 5:42 PM, Grant Grundler wrote: mptbase: ioc0: IOCStatus(0x0022): Config Page Invalid Page: type=08h, page=00h, action=01h, form=0001h My interpretation of this (and Eric should know this alot better) is the host is attempting to read (action=01h) this page

RE: Open-FCoE on linux-scsi

2008-01-14 Thread Love, Robert W
-Original Message- From: Stefan Richter [mailto:[EMAIL PROTECTED] Sent: Friday, January 04, 2008 4:10 PM To: Dev, Vasu Cc: FUJITA Tomonori; Love, Robert W; [EMAIL PROTECTED]; Zou, Yi; Leech, Christopher; linux-scsi@vger.kernel.org Subject: Re: Open-FCoE on linux-scsi Stefan Richter wrote:

[BUG] The kernel thread for md RAID1 could cause a md RAID1 array deadlock

2008-01-14 Thread K.Tanaka
This message describes the details about md-RAID1 issue found by testing the md RAID1 using the SCSI fault injection framework. Abstract: Both the error handler for md RAID1 and write access request to the md RAID1 use raid1d kernel thread. The nr_pending flag could cause a race condition in

[RFC] A SCSI fault injection framework using SystemTap.

2008-01-14 Thread K.Tanaka
I would like to introduce a SCSI fault injection framework using SystemTap. Currently, kernel has Fault-injection framework and Faulty mode for md, which can also be used for testing the error handling. But, they could only produce fixed type of errors stochastically. In order to simulate more

Re: [RFC] A SCSI fault injection framework using SystemTap.

2008-01-14 Thread Matthew Wilcox
On Tue, Jan 15, 2008 at 12:04:09PM +0900, K.Tanaka wrote: I would like to introduce a SCSI fault injection framework using SystemTap. Currently, kernel has Fault-injection framework and Faulty mode for md, which can also be used for testing the error handling. But, they could only produce

[PATCH 1/2] sg: set class_data after success

2008-01-14 Thread FUJITA Tomonori
If cdev_add fails in sg_add, sg_remove crashes since class_data is bogus. Signed-off-by: FUJITA Tomonori [EMAIL PROTECTED] --- drivers/scsi/sg.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index f1871ea..92b4367 100644 ---

[PATCH 2/2] sg: handle class_device_create failure properly

2008-01-14 Thread FUJITA Tomonori
Signed-off-by: FUJITA Tomonori [EMAIL PROTECTED] --- drivers/scsi/sg.c | 11 +++ 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index 92b4367..527e2eb 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c @@ -1430,11 +1430,14 @@

Re: [PATCH 2/2] sg: handle class_device_create failure properly

2008-01-14 Thread Douglas Gilbert
FUJITA Tomonori wrote: Signed-off-by: FUJITA Tomonori [EMAIL PROTECTED] --- drivers/scsi/sg.c | 11 +++ 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index 92b4367..527e2eb 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c @@

Re: [PATCH 1/2] sg: set class_data after success

2008-01-14 Thread Douglas Gilbert
FUJITA Tomonori wrote: If cdev_add fails in sg_add, sg_remove crashes since class_data is bogus. Signed-off-by: FUJITA Tomonori [EMAIL PROTECTED] --- drivers/scsi/sg.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index

Re: panic in sg_add when class_device_create() fails

2008-01-14 Thread FUJITA Tomonori
On Mon, 14 Jan 2008 14:11:36 -0800 Michael Reed [EMAIL PROTECTED] wrote: We're seeing an occasional panic in sg_add() when class_device_create() fails. It's obvious in the code that it uses the pointer to sg_class_member even though it's invalid. We do see the class_device_create failed

Re: [PATCH] Only print SCSI data direction warning once for a command

2008-01-14 Thread Douglas Gilbert
Andi Kleen wrote: to the log because they come from printk_ratelimit(). So all you've done is halved the volume of flow to the logs and left a dangling printk suppressed message that keeps spewing, so I don't think the patch even does what you describe it as doing ... if you reverse the order