Re: SYM8xx_2 driver ignores certain EEPROM settings

2005-04-08 Thread Peter Missel
Help! Help! I'm being ignored! I just found out that this problem (the driver no longer reading the user's adjustments from the SCSI BIOS EEPROM configuration data) not only removes the possibility to limit transfer speed and width for single devices or entire channels. It also makes the drive

Re: [PATCH] aacraid 2.6: Address sparse warnings

2005-04-08 Thread Al Viro
On Fri, Apr 08, 2005 at 02:41:58PM -0400, Salyzyn, Mark wrote: > As long as this is guaranteed on all platforms to do the right thing ... > paranoid about compiler optimizations. MarkH, this should be an easy > regroup :-) Well, let's see. cpu_to_le32(~0U) -> __cpu_to_le32(~0U) -> [on little-endi

RE: [PATCH] aacraid 2.6: Address sparse warnings

2005-04-08 Thread Salyzyn, Mark
Al Viro sez: > > > +#define LE32_ALL_ONES ((__force __le32)0x) > > I don't like having this in an actual driver. It might make sense to > > either have this in a common header or actually allowing to assign all > > ones to __l32*/__be* variables. Al? > It doesn't make sense, period. Use

flush barriers and SCSI/3w-xxxx with latest 2.6 kernels

2005-04-08 Thread Christophe Saout
Hi, I was just enabling flush barriers on machine using a 3ware controller (by adding barrier=flush to the filesystem options) since this is working wonderfully here at home. But when the filesystems are mounted, the filesystems turns them off because they are unsupported: Apr 8 19:59:46 websrv

Re: [PATCH] Hotplug support for BusLogic scsi controller

2005-04-08 Thread Juerg Billeter
On Fre, 2005-04-08 at 17:46 +0100, Matthew Wilcox wrote: > On Fri, Apr 08, 2005 at 06:22:57PM +0200, Juerg Billeter wrote: > > This patch adds hotplug support to the driver for BusLogic scsi > > controllers. It's required to boot from a BusLogic controller when using > > modular kernels with hotplu

Re: [PATCH] Hotplug support for BusLogic scsi controller

2005-04-08 Thread Matthew Wilcox
On Fri, Apr 08, 2005 at 06:22:57PM +0200, Juerg Billeter wrote: > This patch adds hotplug support to the driver for BusLogic scsi > controllers. It's required to boot from a BusLogic controller when using > modular kernels with hotplug-based initramfs. It's a start, I suppose. It's not really hot

Re: [PATCH] aacraid 2.6: Address sparse warnings

2005-04-08 Thread Al Viro
On Fri, Apr 08, 2005 at 08:13:51AM +0100, Christoph Hellwig wrote: > > + u32 temp = le32_to_cpu(psg->sg[i-1].count) - > > + (byte_count - scsicmd->request_bufflen); > > + psg->sg[i-1].count = cpu_to_le32(temp); > > You really want {be,

[PATCH] Hotplug support for BusLogic scsi controller

2005-04-08 Thread Juerg Billeter
Hi This patch adds hotplug support to the driver for BusLogic scsi controllers. It's required to boot from a BusLogic controller when using modular kernels with hotplug-based initramfs. Regards, Juerg -- Signed-off-by: Juerg Billeter <[EMAIL PROTECTED]> --- linux-2.6.10/drivers/scsi/BusLogic.c

Re: Proper handling of data underrun

2005-04-08 Thread Andreas Herrmann
Douglas Gilbert <[EMAIL PROTECTED]> wrote: > underflow- LLD should place (DID_ERROR << 16) in 'result' if > actual number of bytes transferred is less than this > figure. Not many LLDs implement this check and some > that do just

Re: [PATCH] Use proper seq_file api for /proc/scsi/scsi

2005-04-08 Thread Christoph Hellwig
On Fri, Apr 08, 2005 at 01:10:11AM -0700, Jeremy Higdon wrote: > Just as a sanity check, you meant "lsscsi" and not "lssci" in your original > reply, right? Yes. - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [EMAIL PROTECTED] More majordomo in

Re: [OOPS] 2.6.11 - NMI lockup with CFQ scheduler

2005-04-08 Thread Jens Axboe
On Fri, Apr 08 2005, James Bottomley wrote: > On Thu, 2005-04-07 at 16:45 +0200, Jens Axboe wrote: > > So clear ->request_queue instead. > > > Will do. Did you want me to look after your patch and add this, or do > you want to send it to Linus (after the purdah is over)? Just queue it with the

Re: [OOPS] 2.6.11 - NMI lockup with CFQ scheduler

2005-04-08 Thread James Bottomley
On Thu, 2005-04-07 at 16:45 +0200, Jens Axboe wrote: > So clear ->request_queue instead. Will do. Did you want me to look after your patch and add this, or do you want to send it to Linus (after the purdah is over)? James - To unsubscribe from this list: send the line "unsubscribe linux-scsi"

Re: Proper handling of data underrun

2005-04-08 Thread Douglas Gilbert
Andreas Herrmann wrote: Hi, Documentation/scsi/scsi_mid_low_api.txt says: resid- an LLD should set this signed integer to the ... underflow- LLD should place (DID_ERROR << 16) in 'result' if ... underflow- LLD should place (DID_ERROR << 16) in 'result' if

Proper handling of data underrun

2005-04-08 Thread Andreas Herrmann
Hi, Documentation/scsi/scsi_mid_low_api.txt says: resid- an LLD should set this signed integer to the ... underflow- LLD should place (DID_ERROR << 16) in 'result' if ... ZFCP is setting resid and DID_ERROR if an underrun is indicated in the FCP-response. In som

Re: [PATCH] Use proper seq_file api for /proc/scsi/scsi

2005-04-08 Thread Jeremy Higdon
On Fri, Apr 08, 2005 at 08:56:43AM +0100, Christoph Hellwig wrote: > On Fri, Apr 08, 2005 at 12:23:46AM -0700, Jeremy Higdon wrote: > > Even if it's deprecated, wouldn't it be good to fix it as long as > > it's there, unless it hurts something else? Or at least fix the > > out of memory error, eve

Re: proc_name in sysfs

2005-04-08 Thread Douglas Gilbert
Christoph Hellwig wrote: On Wed, Apr 06, 2005 at 01:40:04PM +0200, Frederic TEMPORELLI wrote: Hello, We are using HBAs modules names from "proc_name" interface in sysfs: /sys/class/scsi_host/hostX/proc_name. But with new Emulex drivers (8.0.21 and +), proc_name is reporting (previous drivers were

Re: [PATCH] Use proper seq_file api for /proc/scsi/scsi

2005-04-08 Thread Arjan van de Ven
On Fri, 2005-04-08 at 08:56 +0100, Christoph Hellwig wrote: > On Fri, Apr 08, 2005 at 12:23:46AM -0700, Jeremy Higdon wrote: > > > It works for those setups that already worked with 2.4.x, aka only a few > > > luns. > > > > Even if it's deprecated, wouldn't it be good to fix it as long as > > it's

[patch 1/1] drivers/scsi/: Use the DMA_32BIT_MASK constant

2005-04-08 Thread domen
The previous patch did not compile cleanly on all architectures so here's a fixed one. Use the DMA_32BIT_MASK constant from dma-mapping.h when calling pci_set_dma_mask() or pci_set_consistent_dma_mask() This patch includes dma-mapping.h explicitly because it caused errors on some architectures o

Re: [PATCH] Use proper seq_file api for /proc/scsi/scsi

2005-04-08 Thread Christoph Hellwig
On Fri, Apr 08, 2005 at 12:23:46AM -0700, Jeremy Higdon wrote: > > It works for those setups that already worked with 2.4.x, aka only a few > > luns. > > Even if it's deprecated, wouldn't it be good to fix it as long as > it's there, unless it hurts something else? Or at least fix the > out of me

Re: proc_name in sysfs

2005-04-08 Thread Frederic TEMPORELLI
Hi, Patrick Mansfield a écrit : On Thu, Apr 07, 2005 at 08:35:16AM +0200, Frederic TEMPORELLI wrote: Hi, Sorry, no such "driver" directory in /sys/class/scsi_host/hostX/ Doug answered that. thx, I've just try the script and it works... (mea culpa, I should have look in details to the symlinks) W

Re: [PATCH] Use proper seq_file api for /proc/scsi/scsi

2005-04-08 Thread Jeremy Higdon
On Thu, Apr 07, 2005 at 12:24:12PM +0100, Christoph Hellwig wrote: > On Thu, Apr 07, 2005 at 01:21:23PM +0200, Hannes Reinecke wrote: > > > /proc/scsi/scsi is deprecated and even only compiled in if > > > "legacy /proc/scsi/ support" is enabled. Please move over to lssci which > > > is using sysfs

Re: [PATCH] aacraid 2.6: Address sparse warnings

2005-04-08 Thread Christoph Hellwig
> + u32 temp = le32_to_cpu(psg->sg[i-1].count) - > + (byte_count - scsicmd->request_bufflen); > + psg->sg[i-1].count = cpu_to_le32(temp); You really want {be,le}*_{add,sub} helpers. I needed them on various occasions, too. Al,