Re: [Bug 8469] Bad EIP value on pentium3 SMP kernel-2.6.21.1

2007-05-12 Thread Andrew Morton
On Sat, 12 May 2007 19:40:14 -0700 [EMAIL PROTECTED] wrote: > http://bugzilla.kernel.org/show_bug.cgi?id=8469 OK, thanks. Mark, we have a post-2.6.21 oops in aacraid: > scsi 2:0:5:0: CD-ROMNEC CD-ROM DRIVE:466 1.06 PQ: 0 ANSI: 2 > target2:0:5: Beginning Domain Validation > ta

Re: [PATCH 1/19] add data buffer accessors

2007-05-12 Thread FUJITA Tomonori
From: Christoph Hellwig <[EMAIL PROTECTED]> Subject: Re: [PATCH 1/19] add data buffer accessors Date: Sat, 12 May 2007 16:31:51 +0100 > > +int scsi_dma_map(struct device *dev, struct scsi_cmnd *cmd) > > +{ > > + int nseg = 0; > > + > > + if (cmd->use_sg) { > > + struct scatterlist *s

Re: [PATCH 0/19] clean ups on the drivers

2007-05-12 Thread FUJITA Tomonori
From: Christoph Hellwig <[EMAIL PROTECTED]> Subject: Re: [PATCH 0/19] clean ups on the drivers Date: Sat, 12 May 2007 16:30:23 +0100 > On Sat, May 12, 2007 at 07:05:42PM +0900, FUJITA Tomonori wrote: > > There are two patches for each driver, removing the non-use-sg code > > and converting to use

Re: default y idiocy

2007-05-12 Thread James Bottomley
On Sat, 2007-05-12 at 20:58 +0100, Simon Arlott wrote: > On 12/05/07 19:23, Jens Axboe wrote: > > Hi, > > > > This has bothered me for a long time, and it just seems to be getting > > worse. Can people please STOP defaulting non-essential stuff to 'y'? > > Grrr. > > Is there a reason why various

Re: default y idiocy

2007-05-12 Thread Jens Axboe
On Sat, May 12 2007, Simon Arlott wrote: > On 12/05/07 19:23, Jens Axboe wrote: > >Hi, > > > >This has bothered me for a long time, and it just seems to be getting > >worse. Can people please STOP defaulting non-essential stuff to 'y'? > >Grrr. > > Is there a reason why various 10/100/1000Mbit net

Re: default y idiocy

2007-05-12 Thread Simon Arlott
On 12/05/07 19:23, Jens Axboe wrote: Hi, This has bothered me for a long time, and it just seems to be getting worse. Can people please STOP defaulting non-essential stuff to 'y'? Grrr. Is there a reason why various 10/100/1000Mbit network cards are 'y' too? There's even a default SCSI 'm' tha

Re: ata/scsi crash on halt

2007-05-12 Thread James Bottomley
On Sat, 2007-05-12 at 11:25 -0700, Andrew Morton wrote: > [ 715.196000] sd 2:0:0:0: [sda] Synchronizing SCSI cache > [ 715.196000] sd 2:0:0:0: [sda] Stopping disk > [ 715.196000] ata3.00: DISK MIGHT NOT BE SPUN DOWN PROPERLY. UPDATE SHUTDOWN > UTILITY > [ 715.196000] ata3.00: For more info, vi

ata/scsi crash on halt

2007-05-12 Thread Andrew Morton
This is current mainline plus a few patches which I've just sent to Linus: loop_probe-fix-return-value.patch fault-injection-disable-stacktrace-filter-for-x86-64.patch ntfs-use-zero_user_page.patch tty-flush-flip-buffer-on-ldisc-input-queue-flush.patch missing-include-file-in-tpm_atmelh.patch mai

Re: Proposals to change the way all drivers work with SCSI commands

2007-05-12 Thread Christoph Hellwig
On Sat, May 12, 2007 at 10:50:16AM -0500, James Bottomley wrote: > > I don't like it at all. It means we tange up dma mapping bits into > > a layer were they don't belong at all. > > Well ... libata already does this ... I don't remember you complaining > about it being a layering violation in li

Re: Proposals to change the way all drivers work with SCSI commands

2007-05-12 Thread James Bottomley
On Sat, 2007-05-12 at 16:29 +0100, Christoph Hellwig wrote: > On Fri, May 11, 2007 at 01:33:41PM -0500, James Bottomley wrote: > > Right at the moment, we're planning to clean up the way SCSI drivers > > process commands. The proposals are essentially: > > > > 1. Get rid of the now unnecessa

Re: [PATCH 1/19] add data buffer accessors

2007-05-12 Thread Christoph Hellwig
> +int scsi_dma_map(struct device *dev, struct scsi_cmnd *cmd) > +{ > + int nseg = 0; > + > + if (cmd->use_sg) { > + struct scatterlist *sg = > + (struct scatterlist *) cmd->request_buffer; > + > + nseg = dma_map_sg(dev, sg, cmd->use_sg, cmd->sc_d

Re: [PATCH 0/19] clean ups on the drivers

2007-05-12 Thread Christoph Hellwig
On Sat, May 12, 2007 at 07:05:42PM +0900, FUJITA Tomonori wrote: > There are two patches for each driver, removing the non-use-sg code > and converting to use the accessors. One patch would probably be fine aswell. - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the bod

Re: Proposals to change the way all drivers work with SCSI commands

2007-05-12 Thread Christoph Hellwig
On Fri, May 11, 2007 at 01:33:41PM -0500, James Bottomley wrote: > Right at the moment, we're planning to clean up the way SCSI drivers > process commands. The proposals are essentially: > > 1. Get rid of the now unnecessary map_single path (every command is > either zero transfer or

Re: [PATCH] FC Transport support for vports based on NPIV

2007-05-12 Thread Christoph Hellwig
On Thu, Apr 12, 2007 at 04:01:31PM -0400, James Smart wrote: > This patch provides support for FC virtual ports based on NPIV. > For information on the interfaces and design, please read the > Documentation/scsi/scsi_fc_transport.txt file enclosed within > the patch. Looks good to me. - To unsubs

Re: [PATCH 1/19] add data buffer accessors

2007-05-12 Thread James Bottomley
On Sat, 2007-05-12 at 19:05 +0900, FUJITA Tomonori wrote: > Add a set of accessors for the scsi data buffer. This is in > preparation for chaining sg lists and bidirectional requests (and > possibly, the mid-layer dma mapping). > > Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> > --- > driver

Re: Proposals to change the way all drivers work with SCSI commands

2007-05-12 Thread James Bottomley
On Sat, 2007-05-12 at 11:12 +0200, Heiko Carstens wrote: > I hope that doesn't mean that each architecture is required to > implement all the DMA mapping stuff? Yes, it will require this ... or at least dma_map_sg() and dma_unmap_sg(). > s390 doesn't have any support > for DMA at all. Well ...

[PATCH 0/19] clean ups on the drivers

2007-05-12 Thread FUJITA Tomonori
Hi, This patchset cleans up 9 scsi drivers, ipr, ibmvscsi, fusion, aic7xxx, qla2xxx, lpfc, aacraid, BusLogic and aic79xxx. - remove the now unnecessary map_single path. - convert to new accessors for the scsi data buffer, the sg lists, bufferlen, resid. There are two patches for each driver, re

[PATCH 14/19] aacraid: remove the non-use-sg case

2007-05-12 Thread FUJITA Tomonori
This removes the non-use-sg case. Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> --- drivers/scsi/aacraid/aachba.c | 64 - 1 files changed, 6 insertions(+), 58 deletions(-) diff --git a/drivers/scsi/aacraid/aachba.c b/drivers/scsi/aacraid/aachba.c in

[PATCH 15/19] aacraid: convert to use the data buffer accessors

2007-05-12 Thread FUJITA Tomonori
This converts aacraid to use the data buffer accessors. Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> --- drivers/scsi/aacraid/aachba.c | 96 +--- 1 files changed, 41 insertions(+), 55 deletions(-) diff --git a/drivers/scsi/aacraid/aachba.c b/drivers/sc

[PATCH 10/19] qla2xxx: remove the non-use-sg case

2007-05-12 Thread FUJITA Tomonori
This removes the non-use-sg case. Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> --- drivers/scsi/qla2xxx/qla_iocb.c | 192 +++ drivers/scsi/qla2xxx/qla_os.c |8 +- 2 files changed, 76 insertions(+), 124 deletions(-) diff --git a/drivers/scsi/qla2xx

[PATCH 13/19] lpfc: convert to use the data buffer accessors

2007-05-12 Thread FUJITA Tomonori
This converts lpfc to use the data buffer accessors. Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> --- drivers/scsi/lpfc/lpfc_scsi.c | 55 ++-- 1 files changed, 25 insertions(+), 30 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/

[PATCH 11/19] qla2xxx: convert to use the data buffer accessors

2007-05-12 Thread FUJITA Tomonori
This converts qla2xxx to use the data buffer accessors. Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> --- drivers/scsi/qla2xxx/qla_dbg.c |4 +- drivers/scsi/qla2xxx/qla_iocb.c | 96 +++ drivers/scsi/qla2xxx/qla_isr.c | 44 +- driv

[PATCH 1/19] add data buffer accessors

2007-05-12 Thread FUJITA Tomonori
Add a set of accessors for the scsi data buffer. This is in preparation for chaining sg lists and bidirectional requests (and possibly, the mid-layer dma mapping). Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> --- drivers/scsi/scsi_lib.c | 26 ++ include/scsi/scsi_

[PATCH 18/19] aic79xx: remove the non-use-sg case

2007-05-12 Thread FUJITA Tomonori
This removes the non-use-sg case. Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> --- drivers/scsi/aic7xxx/aic79xx_osm.c | 24 +++- 1 files changed, 3 insertions(+), 21 deletions(-) diff --git a/drivers/scsi/aic7xxx/aic79xx_osm.c b/drivers/scsi/aic7xxx/aic79xx_osm.c ind

[PATCH 6/19] fusion: remove the non-use-sg case

2007-05-12 Thread FUJITA Tomonori
This removes the non-use-sg case. Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> --- drivers/message/fusion/mptscsih.c | 35 +-- 1 files changed, 5 insertions(+), 30 deletions(-) diff --git a/drivers/message/fusion/mptscsih.c b/drivers/message/fusion/mptscs

[PATCH 17/19] BusLogic: convert to use the data buffer accessors

2007-05-12 Thread FUJITA Tomonori
This converts BusLogic to use the data buffer accessors. Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> --- drivers/scsi/BusLogic.c | 38 -- 1 files changed, 20 insertions(+), 18 deletions(-) diff --git a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c

[PATCH 5/19] ibmvscsi: convert to use the data buffer accessors

2007-05-12 Thread FUJITA Tomonori
This converts ibmvscsi to use the data buffer accessors. Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> --- drivers/scsi/ibmvscsi/ibmvscsi.c | 52 -- 1 files changed, 22 insertions(+), 30 deletions(-) diff --git a/drivers/scsi/ibmvscsi/ibmvscsi.c b/drive

[PATCH 19/19] aic79xx: convert to use the data buffer accessors

2007-05-12 Thread FUJITA Tomonori
This converts aic79xx to use the data buffer accessors. Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> --- drivers/scsi/aic7xxx/aic79xx_osm.c | 33 + drivers/scsi/aic7xxx/aic79xx_osm.h |4 ++-- 2 files changed, 15 insertions(+), 22 deletions(-) diff --gi

[PATCH 16/19] BusLogic: remove the non-use-sg case

2007-05-12 Thread FUJITA Tomonori
This removes the non-use-sg case. Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> --- drivers/scsi/BusLogic.c | 22 ++ 1 files changed, 6 insertions(+), 16 deletions(-) diff --git a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c index 96f4cab..9f2586f 100644 --- a/dri

[PATCH 12/19] lpfc: remove the non-use-sg case

2007-05-12 Thread FUJITA Tomonori
This removes the non-use-sg case. Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> --- drivers/scsi/lpfc/lpfc_scsi.c | 52 +--- 1 files changed, 2 insertions(+), 50 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c ind

[PATCH 7/19] fusion: convert to use the data buffer accessors

2007-05-12 Thread FUJITA Tomonori
This converts fusion to use the data buffer accessors. TODO: use scsi_for_each_sg() Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> --- drivers/message/fusion/mptscsih.c | 51 + 1 files changed, 18 insertions(+), 33 deletions(-) diff --git a/drivers/mess

[PATCH 4/19] ibmvscsi: remove the non-use-sg case

2007-05-12 Thread FUJITA Tomonori
This removes the non-use-sg case. Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> --- drivers/scsi/ibmvscsi/ibmvscsi.c | 36 +--- 1 files changed, 1 insertions(+), 35 deletions(-) diff --git a/drivers/scsi/ibmvscsi/ibmvscsi.c b/drivers/scsi/ibmvscsi/ibmvscsi.

[PATCH 9/19] aic7xxx: convert to use the data buffer accessors

2007-05-12 Thread FUJITA Tomonori
This converts aic7xxx to use the data buffer accessors. Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> --- drivers/scsi/aic7xxx/aic7xxx_osm.c | 25 + drivers/scsi/aic7xxx/aic7xxx_osm.h |4 ++-- 2 files changed, 11 insertions(+), 18 deletions(-) diff --git a/driv

[PATCH 3/19] ipr: convert to use the data buffer accessors

2007-05-12 Thread FUJITA Tomonori
This converts ipr to use the data buffer accessors. Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> --- drivers/scsi/ipr.c | 26 -- 1 files changed, 8 insertions(+), 18 deletions(-) diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index 8390bce..8002ecc 100644 --

[PATCH 8/19] aic7xxx: remove the non-use-sg case

2007-05-12 Thread FUJITA Tomonori
This removes the non-use-sg case. Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> --- drivers/scsi/aic7xxx/aic7xxx_osm.c | 36 ++-- 1 files changed, 2 insertions(+), 34 deletions(-) diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.c b/drivers/scsi/aic7xxx/aic7x

[PATCH 2/19] ipr: remove the non-use-sg case

2007-05-12 Thread FUJITA Tomonori
This removes the non-use-sg case. Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> --- drivers/scsi/ipr.c | 122 +-- 1 files changed, 41 insertions(+), 81 deletions(-) diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index 4baa79e..8390bce 1

Re: Proposals to change the way all drivers work with SCSI commands

2007-05-12 Thread Heiko Carstens
On Fri, May 11, 2007 at 01:33:41PM -0500, James Bottomley wrote: > It strikes me that in all of this, we could also consider doing the DMA > mapping inside the mid layer (instead of in every driver). This is > essentially what libata is already doing ... leading to confusion in > SCSI drivers that