Re: Inquiry data and emulated SG devices

2007-10-17 Thread Jeff Garzik
Robert Hancock wrote: This doesn't seem a very reliable way to identify an IDE device, as all that 0 means is that the device does not claim conformance to any standard. I would think it would be legitimate for an IDE device to put a value like 5 in there as well, if it complies with SPC-4.. Vi

Re: [PATCH 27/32] scsi_data_buffer

2007-10-17 Thread Matthew Wilcox
On Wed, Oct 17, 2007 at 08:21:15PM +0200, Boaz Harrosh wrote: > - Group all IO members of scsi_cmnd into a scsi_data_buffer > structure. > +struct scsi_data_buffer { > + unsigned length; > + int resid; > + unsigned short sg_count; > + unsigned short alloc_sg_count; > + st

Re: [patchset 0/33] scsi_data_buffer for after the last driver is converted

2007-10-17 Thread FUJITA Tomonori
On Wed, 17 Oct 2007 19:14:46 +0200 Boaz Harrosh <[EMAIL PROTECTED]> wrote: > This is a resend of all the remaining drivers rebased > to latest code. And once the entire tree is converted, > move to scsi_data_buffer in scsi_cmnd. > > The work is on top of Jens's for-linus branch which > is effecti

Re: [PATCH 27/32] scsi_data_buffer

2007-10-17 Thread FUJITA Tomonori
On Wed, 17 Oct 2007 20:21:15 +0200 Boaz Harrosh <[EMAIL PROTECTED]> wrote: > > In preparation for bidi we abstract all IO members of scsi_cmnd, > that will need to duplicate, into a substructure. > > - Group all IO members of scsi_cmnd into a scsi_data_buffer > structure. > - Adjust

Re: What still uses the block layer?

2007-10-17 Thread Bill Davidsen
Jeff Garzik wrote: But again, please remember that these USB devices are really SCSI devices. Same for SATA devices. There is a reason they are using the SCSI layer, and it isn't just because the developers felt like it :) /somewhat/ true I'm afraid: libata uses the SCSI layer for ATAPI de

Re: SCSI target drivers?

2007-10-17 Thread FUJITA Tomonori
On Wed, 17 Oct 2007 10:27:54 -0400 Jeff Garzik <[EMAIL PROTECTED]> wrote: > Where can one find patches/code that illustrates target mode support? I think that the srp class and ibmvstgt (drivers/ibmvscsi/ibmvstgt) are useful. The fc class and qla2xxx are useful too but more complicated than ibmv

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread FUJITA Tomonori
On Wed, 17 Oct 2007 20:37:58 +0900 FUJITA Tomonori <[EMAIL PROTECTED]> wrote: > On Wed, 17 Oct 2007 13:01:42 +0200 > Jens Axboe <[EMAIL PROTECTED]> wrote: > > > On Wed, Oct 17 2007, Jens Axboe wrote: > > > On Wed, Oct 17 2007, David Miller wrote: > > > > From: Jens Axboe <[EMAIL PROTECTED]> > > >

Re: [PATCH 22/32] qla1280: Indentation fix

2007-10-17 Thread Matthew Wilcox
On Wed, Oct 17, 2007 at 08:10:09PM +0200, Boaz Harrosh wrote: > > - Indentation fix of last patch. Don't be fooled by diff, > all I did was back-indent from open-bracket to close-bracket, > and remove the brackets. Applying 'qla1280: Indentation fix' Adds trailing whitespace. .dotest/p

Re: What still uses the block layer?

2007-10-17 Thread david
On Wed, 17 Oct 2007, Gabor Gombas wrote: On Tue, Oct 16, 2007 at 01:55:07PM -0700, [EMAIL PROTECTED] wrote: why is this any different from the external enclosures? they have always appeared as the type of device that connects them to the motherboard, (and even with SCSI, there are some control

Re: [Bug 3680] sym53c8xx_2 SMP deadlock on driver load

2007-10-17 Thread Matthew Wilcox
On Wed, Oct 17, 2007 at 08:46:48PM +0200, Willy Tarreau wrote: > Sincere thanks for your help and review. I'll apply this patch in > 2.4.36-pre2 and in next 2.4.35.X. An ugly fix is clearly better than > a massive change at this stage. You're most welcome. I have no desire to act as maintainer fo

Re: [Bug 3680] sym53c8xx_2 SMP deadlock on driver load

2007-10-17 Thread Willy Tarreau
On Wed, Oct 17, 2007 at 10:27:47AM -0600, Matthew Wilcox wrote: > On Wed, Oct 17, 2007 at 10:53:06AM -0400, Tony Battersby wrote: > > After looking at it carefully, this is true of pci_map_mem, but not > > pci_unmap_mem. pci_unmap_mem can be called from both ->detect and > > ->release. io_request

[PATCH 32/32] isd200.c - use of scsi_data_buffer

2007-10-17 Thread Boaz Harrosh
- This driver still bags on scsi_cmnd IO members, so need changing Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/usb/storage/isd200.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/storage/isd200.c b/drivers/usb/storage/isd200.c index

[PATCH 31/32] tgt: convert ibmvstgt and libsrp to use scsi_data_buffer

2007-10-17 Thread Boaz Harrosh
From: FUJITA Tomonori <[EMAIL PROTECTED]> Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> --- drivers/scsi/ibmvscsi/ibmvstgt.c |2 +- drivers/scsi/libsrp.c| 27 ++- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/drivers/scsi/ibmvscsi/

[PATCH 30/32] tgt: convert to use scsi_data_buffer

2007-10-17 Thread Boaz Harrosh
From: FUJITA Tomonori <[EMAIL PROTECTED]> Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/scsi_tgt_if.c |2 +- drivers/scsi/scsi_tgt_lib.c | 43 --- 2 files changed, 13 insertions(+)

[PATCH 29/32] scsi_data_buffer - sd.c and sr.c

2007-10-17 Thread Boaz Harrosh
- sd and sr would adjust IO size to align on device's block size so code needs to change once we move to scsi_data_buff implementation. - Convert code to use scsi_for_each_sg - Use data accessors where appropriate. - Remove dead code (req_data_dir() != READ && != WRITE) Signed-of

[PATCH 28/32] scsi_data_buffer - scsi_error.c

2007-10-17 Thread Boaz Harrosh
- Changed needed members of struct scsi_eh_save. - Careful considerations in scsi_eh_prep/restore_cmnd. Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/scsi_error.c | 28 ++-- include/scsi/scsi_eh.h|6 +- 2 files changed, 11 insertions(+)

[PATCH 27/32] scsi_data_buffer

2007-10-17 Thread Boaz Harrosh
In preparation for bidi we abstract all IO members of scsi_cmnd, that will need to duplicate, into a substructure. - Group all IO members of scsi_cmnd into a scsi_data_buffer structure. - Adjust accessors to new members. - scsi_{alloc,free}_sgtable receive a scsi_data_buffer instead

[PATCH 26/32] Remove of seagate.c driver

2007-10-17 Thread Boaz Harrosh
- Apparently no one wonts this driver, and no one is willing to fix it for future changes to SCSI. So remove it, and if someone wants it in the future He can revive it with the needed fixes. Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/Kconfig | 15 - driver

[PATCH 25/32] Remove psi240i driver from kernel

2007-10-17 Thread Boaz Harrosh
The psi240i driver is still written for cmnd->request_buffer as a char pointer to actual data. There was never any attempt to use the scatterlist option. - remove all source files (3) from drivers/scsi - Remove from Makefile and Kconfig Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> -

[PATCH 24/32] wd7000.c - proper fix for boards without sg support

2007-10-17 Thread Boaz Harrosh
- code used to set sg_tablesize to zero for board revision less than 6. This is no longer supported, therefore I use sg_tablesize=1 and open code the sg handling for that case. - Get rid of use of SG_NONE which will be removed soon. Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> ---

[PATCH 23/32] scsi_debug: convert to use the data buffer accessors

2007-10-17 Thread Boaz Harrosh
- remove the unnecessary map_single path. - convert to use the new accessors for the sg lists and the parameters. Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> Signed-off-by: Douglas Gilbert <[EMAIL PROTECTED]> --- drivers/scsi/scsi_de

[PATCH 22/32] qla1280: Indentation fix

2007-10-17 Thread Boaz Harrosh
- Indentation fix of last patch. Don't be fooled by diff, all I did was back-indent from open-bracket to close-bracket, and remove the brackets. Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/qla1280.c | 290 1 files c

[PATCH 21/32] qla1280: convert to use the data buffer accessors

2007-10-17 Thread Boaz Harrosh
From: FUJITA Tomonori <[EMAIL PROTECTED]> - remove the unnecessary map_single path. - convert to use the new accessors for the sg lists and the parameters. - NOTE: Indentation fix is in next patch. Otherwise this patch becomes totally impossible to read (and easily breakable) Signed-off

[PATCH 20/32] in2000.c: convert to accessors and !use_sg cleanup

2007-10-17 Thread Boaz Harrosh
- convert to accessors and !use_sg cleanup Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/in2000.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/scsi/in2000.c b/drivers/scsi/in2000.c index ab7cbf3..ced38de 100644 --- a/drivers/scsi/i

[PATCH 18/32] wd33c93.c: convert to accessors and !use_sg cleanup

2007-10-17 Thread Boaz Harrosh
- convert to accessors and !use_sg cleanup Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/wd33c93.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/scsi/wd33c93.c b/drivers/scsi/wd33c93.c index 0e8e642..1a772b8 100644 --- a/drivers/scs

[PATCH 19/32] qlogicpti.c: convert to accessors and !use_sg cleanup

2007-10-17 Thread Boaz Harrosh
- convert to accessors and !use_sg cleanup Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/qlogicpti.c | 29 +++-- 1 files changed, 7 insertions(+), 22 deletions(-) diff --git a/drivers/scsi/qlogicpti.c b/drivers/scsi/qlogicpti.c index 7a2e798..5bc883

[PATCH 17/32] ppa.c: convert to accessors and !use_sg cleanup

2007-10-17 Thread Boaz Harrosh
[PATCH 17/32] ppa.c: convert to accessors and !use_sg cleanup - convert to accessors and !use_sg cleanup Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/ppa.c | 12 +--- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/scsi/ppa.c b/drivers/scsi/p

[PATCH 16/32] imm.c: convert to accessors and !use_sg cleanup

2007-10-17 Thread Boaz Harrosh
- convert to accessors and !use_sg cleanup - Not ready for sg-chaining Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/imm.c | 13 + 1 files changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/imm.c b/drivers/scsi/imm.c index 74cdc1f..84bcc1d 1006

[PATCH 15/32] fd_mcs.c: convert to accessors and !use_sg cleanup

2007-10-17 Thread Boaz Harrosh
- convert to accessors and !use_sg cleanup - Not ready for sg-chaining Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/fd_mcs.c | 36 +++- 1 files changed, 11 insertions(+), 25 deletions(-) diff --git a/drivers/scsi/fd_mcs.c b/drivers/scsi/fd

[PATCH 14/32] atp870u.c: convert to accessors and !use_sg cleanup

2007-10-17 Thread Boaz Harrosh
- convert to accessors and !use_sg cleanup - Probably not ready for sg-chaining Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/atp870u.c | 102 1 files changed, 17 insertions(+), 85 deletions(-) diff --git a/drivers/scsi/atp8

[PATCH 13/32] aha1542.c: convert to accessors and !use_sg cleanup

2007-10-17 Thread Boaz Harrosh
- convert to accessors and !use_sg cleanup Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/aha1542.c | 46 ++ 1 files changed, 10 insertions(+), 36 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c index 961

[PATCH 12/32] a3000.c: convert to accessors and !use_sg cleanup

2007-10-17 Thread Boaz Harrosh
- convert to accessors and !use_sg cleanup Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/a3000.c | 15 +++ 1 files changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/scsi/a3000.c b/drivers/scsi/a3000.c index 796f1c4..d7255c8 100644 --- a/drivers/scs

[PATCH 11/32] a2091.c: convert to accessors and !use_sg cleanup

2007-10-17 Thread Boaz Harrosh
- convert to accessors and !use_sg cleanup Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/a2091.c | 36 +--- 1 files changed, 5 insertions(+), 31 deletions(-) diff --git a/drivers/scsi/a2091.c b/drivers/scsi/a2091.c index b7c5385..23f27c9 100

[PATCH 10/32] eata_pio.c: convert to accessors and !use_sg cleanup

2007-10-17 Thread Boaz Harrosh
- convert to accessors and !use_sg cleanup Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/eata_pio.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/eata_pio.c b/drivers/scsi/eata_pio.c index 96180bb..e6d5138 100644 --- a/driver

[PATCH 9/32] nsp_cs.c convert to data accessors and !use_sg cleanup

2007-10-17 Thread Boaz Harrosh
[PATCH 9/32] nsp_cs.c convert to data accessors and !use_sg cleanup - use scsi data accessors - cleanup !use_sg code paths - TODO: use next_sg() for Jens's sglist branch. Look for 2 places with "SCp.buffer++" Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/pcmcia/nsp_

[PATCH 8/32] arm: scsi convert to accessors and !use_sg cleanup

2007-10-17 Thread Boaz Harrosh
- convert to accessors and !use_sg cleanup Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/arm/acornscsi.c | 14 +++--- drivers/scsi/arm/scsi.h | 34 +++--- 2 files changed, 18 insertions(+), 30 deletions(-) diff --git a/drivers/scs

[PATCH 7/32] NCR5380 familly convert to accessors & !use_sg cleanup

2007-10-17 Thread Boaz Harrosh
- convert to accessors and !use_sg cleanup - FIXME: Not sg-chain ready look for ++cmd->SCp.buffer Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/NCR5380.c | 14 +++--- drivers/scsi/atari_NCR5380.c | 22 +++--- drivers/scsi/sun3_NCR5380.c |

[PATCH 6/32] usb: freecom.c & sddr09.c - convert to accessors and !use_sg cleanup

2007-10-17 Thread Boaz Harrosh
- Use scsi data accessors and remove of !use_sg code path - This patch is dependent on cleanup patch to usb transport.c/h Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/usb/storage/freecom.c | 14 ++ drivers/usb/storage/sddr09.c |9 +++-- 2 files changed, 9

[PATCH 5/32] usb: shuttle_usbat.c - convert to accessors and !use_sg code path removal

2007-10-17 Thread Boaz Harrosh
- functions that received char* but where passed scatterlist* mostly were changed to receive void* - Use scsi data accessors and remove of !use_sg code path Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/usb/storage/shuttle_usbat.c | 68 +- 1 f

[PATCH 4/32] usb: protocol.c - convert to accessors and !use_sg code path removal

2007-10-17 Thread Boaz Harrosh
- Use scsi data accessors and remove of !use_sg code path Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/usb/storage/protocol.c | 126 +--- 1 files changed, 53 insertions(+), 73 deletions(-) diff --git a/drivers/usb/storage/protocol.c b/drivers

[PATCH 3/32] usb: transport - convert to accessors and !use_sg code path removal

2007-10-17 Thread Boaz Harrosh
- Use scsi data accessors and remove of !use_sg code path. - New usb_stor_bulk_srb() for use by drivers Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/usb/storage/transport.c | 44 +++--- drivers/usb/storage/transport.h |2 + 2 files changed

Re: What still uses the block layer?

2007-10-17 Thread Stefan Richter
Gabor Gombas wrote: > On Tue, Oct 16, 2007 at 01:55:07PM -0700, [EMAIL PROTECTED] wrote: >> why is this any different from the external enclosures? they have always >> appeared as the type of device that connects them to the motherboard, (and >> even with SCSI, there are some controllers that don

[PATCH 2/32] isd200.c: use one-element sg list in issuing commands

2007-10-17 Thread Boaz Harrosh
- This patch should be commited before: usb: transport - convert to accessors and !use_sg code path removal - isd200_action() was still using direct liniar pointers in issuing commands to the USB transport level. This is no longer supported, use one-element scatterlist instead.

[PATCH 1/32] arm: fas216 Use scsi_eh API for REQUEST_SENSE invocation

2007-10-17 Thread Boaz Harrosh
- Use new scsi_eh_prep/restor_cmnd() for synchronous REQUEST_SENSE invocation. Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/arm/fas216.c | 16 +++- drivers/scsi/arm/fas216.h |3 +++ 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/driver

[patchset 0/33] scsi_data_buffer for after the last driver is converted

2007-10-17 Thread Boaz Harrosh
This is a resend of all the remaining drivers rebased to latest code. And once the entire tree is converted, move to scsi_data_buffer in scsi_cmnd. The work is on top of Jens's for-linus branch which is effectively sglist-arch (+ last minute fixes) This is because sglist-arch was already rebased t

Re: [patch 3/7] qla2xxx printk fixes

2007-10-17 Thread Andrew Vasquez
On Tue, 16 Oct 2007, [EMAIL PROTECTED] wrote: > From: Andrew Morton <[EMAIL PROTECTED]> > > drivers/scsi/qla2xxx/qla_sup.c: In function 'qla24xx_write_flash_data': > drivers/scsi/qla2xxx/qla_sup.c:655: warning: format '%llx' expects type 'long > long unsigned int', but argument 6 has type 'dma_a

Re: [Bug 3680] sym53c8xx_2 SMP deadlock on driver load

2007-10-17 Thread Matthew Wilcox
On Wed, Oct 17, 2007 at 10:53:06AM -0400, Tony Battersby wrote: > After looking at it carefully, this is true of pci_map_mem, but not > pci_unmap_mem. pci_unmap_mem can be called from both ->detect and > ->release. io_request_lock is held in ->detect but not in ->release. > So, your patch locks u

[PATCH] kill warnings in mptbase.h on parisc64

2007-10-17 Thread Kyle McMartin
Verified all the arches necessary select the CONFIG_64BIT symbol. This also kills the warning (since it was using the 32-bit case) on parisc64 and mips64. Signed-off-by: Kyle McMartin <[EMAIL PROTECTED]> --- Index: linux-2.6/drivers/message/fusion/mptbase.h ===

Re: [Bug 3680] sym53c8xx_2 SMP deadlock on driver load

2007-10-17 Thread Tony Battersby
This patch fixes two problems with sym53c8xx_2.o in 2.4.x kernels: 1) A system hang when loading sym53c8xx_2.o on a SMP system with two dual-channel LSI HBAs (http://bugzilla.kernel.org/show_bug.cgi?id=3680) 2) A function improperly marked __init. Signed-off-by: Tony Battersby <[EMAIL PROTECTED]

Re: [Bug 3680] sym53c8xx_2 SMP deadlock on driver load

2007-10-17 Thread Willy Tarreau
On Wed, Oct 17, 2007 at 11:44:08AM -0400, Tony Battersby wrote: > In 2.4, include/linux/init.h has the following: > > #ifndef MODULE > #define __init __attribute__ ((__section__ (".text.init"))) > #else > #define __init > #endif > > So __init has an effect only if it is built-in. Ah yes

Re: [Bug 3680] sym53c8xx_2 SMP deadlock on driver load

2007-10-17 Thread Willy Tarreau
On Wed, Oct 17, 2007 at 10:53:06AM -0400, Tony Battersby wrote: > > So we should unconditionally drop the lock (and re-enable > > interrupts) and re-acquire it. > > After looking at it carefully, this is true of pci_map_mem, but not > pci_unmap_mem. pci_unmap_mem can be called from both ->detect

Re: [Bug 3680] sym53c8xx_2 SMP deadlock on driver load

2007-10-17 Thread Tony Battersby
Willy Tarreau wrote: > On Wed, Oct 17, 2007 at 10:53:06AM -0400, Tony Battersby wrote: > >>> So we should unconditionally drop the lock (and re-enable >>> interrupts) and re-acquire it. >>> >> After looking at it carefully, this is true of pci_map_mem, but not >> pci_unmap_mem. pci_unmap

Re: [Bug 3680] sym53c8xx_2 SMP deadlock on driver load

2007-10-17 Thread Tony Battersby
> So we should unconditionally drop the lock (and re-enable > interrupts) and re-acquire it. After looking at it carefully, this is true of pci_map_mem, but not pci_unmap_mem. pci_unmap_mem can be called from both ->detect and ->release. io_request_lock is held in ->detect but not in ->release.

Re: [PATCH] Add suspend/resume support for aic7xxx/aic79xx

2007-10-17 Thread Jeff Garzik
Hannes Reinecke wrote: Hi James, due to popular demand I've clobbered together a patch for suspend/resume support in aic79xx/aic7xxx. Looks reasonable enough, boots, but now I'd need someone to actually test it :-) As usual, comments, results, fixes, etc. welcome. Looks good to me... nice w

Re: [PATCH] Add suspend/resume support for aic7xxx/aic79xx

2007-10-17 Thread Jens Axboe
On Wed, Oct 17 2007, Jens Axboe wrote: > On Wed, Oct 17 2007, Hannes Reinecke wrote: > > Hi James, > > > > due to popular demand I've clobbered together a patch for > > suspend/resume support in aic79xx/aic7xxx. > > > > Looks reasonable enough, boots, but now I'd need someone > > to actually test

Re: [PATCH] Add suspend/resume support for aic7xxx/aic79xx

2007-10-17 Thread Jens Axboe
On Wed, Oct 17 2007, Hannes Reinecke wrote: > Hi James, > > due to popular demand I've clobbered together a patch for > suspend/resume support in aic79xx/aic7xxx. > > Looks reasonable enough, boots, but now I'd need someone > to actually test it :-) > > As usual, comments, results, fixes, etc. w

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread Jens Axboe
On Wed, Oct 17 2007, FUJITA Tomonori wrote: > > I think that it would be better that IOMMU code handles uninitialized > > sg entries (sg list can be pretty large). Execpt for sparc64, the > > IOMMU code can do, I think. > > And I think that with this patch, sparc64 can handle it: > > http://marc.

SCSI target drivers?

2007-10-17 Thread Jeff Garzik
Where can one find patches/code that illustrates target mode support? Marvell 6440 ("mvsas") supports target mode for both SAS and SATA, and I would like to prepare the driver as best I can for target mode. Thanks, Jeff - To unsubscribe from this list: send the line "unsubscribe lin

[PATCH] Add suspend/resume support for aic7xxx/aic79xx

2007-10-17 Thread Hannes Reinecke
Hi James, due to popular demand I've clobbered together a patch for suspend/resume support in aic79xx/aic7xxx. Looks reasonable enough, boots, but now I'd need someone to actually test it :-) As usual, comments, results, fixes, etc. welcome. Cheers, Hannes -- Dr. Hannes Reinecke

[PATCH] qla1280: convert to use the data buffer accessors

2007-10-17 Thread FUJITA Tomonori
Any chance to send this for 2.6.24? This is a data buffer accessor cleanup dependent on sg chaining. Now it can cleanly applied to the latest Linus tree. qla1280: convert to use the data buffer accessors - remove the unnecessary map_single path. - convert to use the new accessors for the sg li

Re: [patch 1/7] git-scsi-misc gdth fix

2007-10-17 Thread James Bottomley
On Tue, 2007-10-16 at 14:28 -0700, [EMAIL PROTECTED] wrote: > From: James Bottomley <[EMAIL PROTECTED]> > > On Sun, 2007-10-14 at 12:21 -0700, Andrew Morton wrote: > > On Sun, 14 Oct 2007 22:45:47 +0400 "Dave Milter" <[EMAIL PROTECTED]> wrote: > > > > > I build linux-2.6.23-mm1 and try to boot it

Re: [GIT PATCH] SCSI updates for 2.6.24

2007-10-17 Thread James Bottomley
On Wed, 2007-10-17 at 13:20 +0900, FUJITA Tomonori wrote: > On Mon, 15 Oct 2007 00:09:41 -0400 > James Bottomley <[EMAIL PROTECTED]> wrote: > > > This is the accumulated updates queued for 2.6.24. It contains the > > usual slew of driver updates, plus some gdth and advansys rewrites. We > > stil

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread FUJITA Tomonori
On Wed, 17 Oct 2007 20:57:17 +0900 FUJITA Tomonori <[EMAIL PROTECTED]> wrote: > On Wed, 17 Oct 2007 13:41:17 +0200 > Jens Axboe <[EMAIL PROTECTED]> wrote: > > > On Wed, Oct 17 2007, FUJITA Tomonori wrote: > > > On Wed, 17 Oct 2007 13:01:42 +0200 > > > Jens Axboe <[EMAIL PROTECTED]> wrote: > > >

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread FUJITA Tomonori
On Wed, 17 Oct 2007 13:41:17 +0200 Jens Axboe <[EMAIL PROTECTED]> wrote: > On Wed, Oct 17 2007, FUJITA Tomonori wrote: > > On Wed, 17 Oct 2007 13:01:42 +0200 > > Jens Axboe <[EMAIL PROTECTED]> wrote: > > > > > On Wed, Oct 17 2007, Jens Axboe wrote: > > > > On Wed, Oct 17 2007, David Miller wrote:

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread Jens Axboe
On Wed, Oct 17 2007, FUJITA Tomonori wrote: > On Wed, 17 Oct 2007 13:01:42 +0200 > Jens Axboe <[EMAIL PROTECTED]> wrote: > > > On Wed, Oct 17 2007, Jens Axboe wrote: > > > On Wed, Oct 17 2007, David Miller wrote: > > > > From: Jens Axboe <[EMAIL PROTECTED]> > > > > Date: Wed, 17 Oct 2007 11:16:29

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread FUJITA Tomonori
On Wed, 17 Oct 2007 13:01:42 +0200 Jens Axboe <[EMAIL PROTECTED]> wrote: > On Wed, Oct 17 2007, Jens Axboe wrote: > > On Wed, Oct 17 2007, David Miller wrote: > > > From: Jens Axboe <[EMAIL PROTECTED]> > > > Date: Wed, 17 Oct 2007 11:16:29 +0200 > > > > > > > On Wed, Oct 17 2007, David Miller wro

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread Jens Axboe
On Wed, Oct 17 2007, David Miller wrote: > From: Jens Axboe <[EMAIL PROTECTED]> > Date: Wed, 17 Oct 2007 13:11:46 +0200 > > > On Wed, Oct 17 2007, David Miller wrote: > > > Jens, please also add the following on top of Fujita-san's most recent > > > sparc64 patch and we should be good to go. > >

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread David Miller
From: Jens Axboe <[EMAIL PROTECTED]> Date: Wed, 17 Oct 2007 13:11:46 +0200 > On Wed, Oct 17 2007, David Miller wrote: > > Jens, please also add the following on top of Fujita-san's most recent > > sparc64 patch and we should be good to go. > > Awesome, thanks. And sorry for messing up sparc64. D

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread Jens Axboe
On Wed, Oct 17 2007, Jens Axboe wrote: > On Wed, Oct 17 2007, FUJITA Tomonori wrote: > > On Wed, 17 Oct 2007 02:45:47 -0700 (PDT) > > David Miller <[EMAIL PROTECTED]> wrote: > > > > > From: FUJITA Tomonori <[EMAIL PROTECTED]> > > > Date: Wed, 17 Oct 2007 18:24:01 +0900 > > > > > > > On Wed, 17 Oc

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread Jens Axboe
On Wed, Oct 17 2007, FUJITA Tomonori wrote: > On Wed, 17 Oct 2007 02:45:47 -0700 (PDT) > David Miller <[EMAIL PROTECTED]> wrote: > > > From: FUJITA Tomonori <[EMAIL PROTECTED]> > > Date: Wed, 17 Oct 2007 18:24:01 +0900 > > > > > On Wed, 17 Oct 2007 11:16:29 +0200 > > > Jens Axboe <[EMAIL PROTECTE

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread Jens Axboe
On Wed, Oct 17 2007, David Miller wrote: > From: Jens Axboe <[EMAIL PROTECTED]> > Date: Wed, 17 Oct 2007 13:01:42 +0200 > > > Actually, just clearing AFTER sg_next() would be fine, since we know > > that is not a link entry. Duh... > > Yes and I'm running a kernel successfully with this fix. Gre

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread David Miller
From: Jens Axboe <[EMAIL PROTECTED]> Date: Wed, 17 Oct 2007 13:01:42 +0200 > Actually, just clearing AFTER sg_next() would be fine, since we know > that is not a link entry. Duh... Yes and I'm running a kernel successfully with this fix. Jens, please also add the following on top of Fujita-san's

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread FUJITA Tomonori
On Wed, 17 Oct 2007 02:45:47 -0700 (PDT) David Miller <[EMAIL PROTECTED]> wrote: > From: FUJITA Tomonori <[EMAIL PROTECTED]> > Date: Wed, 17 Oct 2007 18:24:01 +0900 > > > On Wed, 17 Oct 2007 11:16:29 +0200 > > Jens Axboe <[EMAIL PROTECTED]> wrote: > > > > > On Wed, Oct 17 2007, David Miller wrot

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread FUJITA Tomonori
On Wed, 17 Oct 2007 12:58:40 +0200 Jens Axboe <[EMAIL PROTECTED]> wrote: > On Wed, Oct 17 2007, David Miller wrote: > > From: Jens Axboe <[EMAIL PROTECTED]> > > Date: Wed, 17 Oct 2007 11:16:29 +0200 > > > > > On Wed, Oct 17 2007, David Miller wrote: > > > > From: Jens Axboe <[EMAIL PROTECTED]> >

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread David Miller
From: Jens Axboe <[EMAIL PROTECTED]> Date: Wed, 17 Oct 2007 12:58:40 +0200 > The problem is that you cannot zero the entire sg entry, because then > you'd potentially overwrite the chain pointer. > > I'd propose just adding a > > sg_dma_address(sg) = 0; > sg_dma_len(sg) = 0; > >

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread Jens Axboe
On Wed, Oct 17 2007, David Miller wrote: > From: Jens Axboe <[EMAIL PROTECTED]> > Date: Wed, 17 Oct 2007 12:58:40 +0200 > > > The problem is that you cannot zero the entire sg entry, because then > > you'd potentially overwrite the chain pointer. > > > > I'd propose just adding a > > > >

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread Jens Axboe
On Wed, Oct 17 2007, Jens Axboe wrote: > On Wed, Oct 17 2007, David Miller wrote: > > From: Jens Axboe <[EMAIL PROTECTED]> > > Date: Wed, 17 Oct 2007 11:16:29 +0200 > > > > > On Wed, Oct 17 2007, David Miller wrote: > > > > From: Jens Axboe <[EMAIL PROTECTED]> > > > > Date: Wed, 17 Oct 2007 10:45:

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread Jens Axboe
On Wed, Oct 17 2007, David Miller wrote: > From: Jens Axboe <[EMAIL PROTECTED]> > Date: Wed, 17 Oct 2007 11:16:29 +0200 > > > On Wed, Oct 17 2007, David Miller wrote: > > > From: Jens Axboe <[EMAIL PROTECTED]> > > > Date: Wed, 17 Oct 2007 10:45:28 +0200 > > > > > > > Righto, it's invalid to call

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread David Miller
From: Jens Axboe <[EMAIL PROTECTED]> Date: Wed, 17 Oct 2007 11:16:29 +0200 > On Wed, Oct 17 2007, David Miller wrote: > > From: Jens Axboe <[EMAIL PROTECTED]> > > Date: Wed, 17 Oct 2007 10:45:28 +0200 > > > > > Righto, it's invalid to call sg_next() on the last entry! > > > > Unfortunately, that

Re: What still uses the block layer?

2007-10-17 Thread Gabor Gombas
On Tue, Oct 16, 2007 at 01:55:07PM -0700, [EMAIL PROTECTED] wrote: > why is this any different from the external enclosures? they have always > appeared as the type of device that connects them to the motherboard, (and > even with SCSI, there are some controllers that don't generate sdX devices)

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread David Miller
From: FUJITA Tomonori <[EMAIL PROTECTED]> Date: Wed, 17 Oct 2007 18:24:01 +0900 > On Wed, 17 Oct 2007 11:16:29 +0200 > Jens Axboe <[EMAIL PROTECTED]> wrote: > > > On Wed, Oct 17 2007, David Miller wrote: > > > I would suggest that other sg_last() uses be audited for the same bug. > > > > Agree.

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread Jens Axboe
On Wed, Oct 17 2007, FUJITA Tomonori wrote: > On Wed, 17 Oct 2007 11:16:29 +0200 > Jens Axboe <[EMAIL PROTECTED]> wrote: > > > On Wed, Oct 17 2007, David Miller wrote: > > > From: Jens Axboe <[EMAIL PROTECTED]> > > > Date: Wed, 17 Oct 2007 10:45:28 +0200 > > > > > > > Righto, it's invalid to call

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread FUJITA Tomonori
On Wed, 17 Oct 2007 11:16:29 +0200 Jens Axboe <[EMAIL PROTECTED]> wrote: > On Wed, Oct 17 2007, David Miller wrote: > > From: Jens Axboe <[EMAIL PROTECTED]> > > Date: Wed, 17 Oct 2007 10:45:28 +0200 > > > > > Righto, it's invalid to call sg_next() on the last entry! > > > > Unfortunately, that's

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread Jens Axboe
On Wed, Oct 17 2007, David Miller wrote: > From: Jens Axboe <[EMAIL PROTECTED]> > Date: Wed, 17 Oct 2007 10:45:28 +0200 > > > Righto, it's invalid to call sg_next() on the last entry! > > Unfortunately, that's what the sparc64 code wanted to do, this > transformation in the sparc64 sg chaining pa

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread David Miller
From: Jens Axboe <[EMAIL PROTECTED]> Date: Wed, 17 Oct 2007 10:45:28 +0200 > Righto, it's invalid to call sg_next() on the last entry! Unfortunately, that's what the sparc64 code wanted to do, this transformation in the sparc64 sg chaining patch is not equilavent: - struct scatterlist *sg_

Re: [PATCH] IA64: iommu uses sg_next with an invalid sg element

2007-10-17 Thread Jens Axboe
On Wed, Oct 17 2007, FUJITA Tomonori wrote: > sg list elements might not be continuous. Thanks, applied. -- Jens Axboe - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-i

[PATCH] IA64: iommu uses sg_next with an invalid sg element

2007-10-17 Thread FUJITA Tomonori
sg list elements might not be continuous. Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> --- arch/ia64/hp/common/sba_iommu.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/ia64/hp/common/sba_iommu.c b/arch/ia64/hp/common/sba_iommu.c index 4338f41..3c95f41 100

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread Jens Axboe
On Wed, Oct 17 2007, David Miller wrote: > From: David Miller <[EMAIL PROTECTED]> > Date: Wed, 17 Oct 2007 01:33:25 -0700 (PDT) > > > sg_next() gives you a NULL after the last entry, but tests have been > > changed to compare against sg_last() which is likely not what we > > want for those checks.

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread David Miller
From: David Miller <[EMAIL PROTECTED]> Date: Wed, 17 Oct 2007 01:33:25 -0700 (PDT) > sg_next() gives you a NULL after the last entry, but tests have been > changed to compare against sg_last() which is likely not what we > want for those checks. This of course isn't true, ignore me as I'm still l

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread David Miller
From: Jens Axboe <[EMAIL PROTECTED]> Date: Wed, 17 Oct 2007 09:21:49 +0200 > On Wed, Oct 17 2007, FUJITA Tomonori wrote: > > Commit 2c941a204070ab32d92d40318a3196a7fb994c00 looks incomplete. The > > helper functions like prepare_sg() need to support sg chaining too. > > Thanks Tomo, applied. I'll

Re: [PATCH] swiotlb: fix map_sg failure handling

2007-10-17 Thread Jens Axboe
On Wed, Oct 17 2007, FUJITA Tomonori wrote: > sg list elements might not be continuous. > > Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> > --- > lib/swiotlb.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/lib/swiotlb.c b/lib/swiotlb.c > index c419ecf..752fd

[PATCH] swiotlb: fix map_sg failure handling

2007-10-17 Thread FUJITA Tomonori
sg list elements might not be continuous. Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> --- lib/swiotlb.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/swiotlb.c b/lib/swiotlb.c index c419ecf..752fd95 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c @@ -696,7 +6

Re: [PATCH] SPARC64: fix iommu sg chaining

2007-10-17 Thread Jens Axboe
On Wed, Oct 17 2007, FUJITA Tomonori wrote: > Commit 2c941a204070ab32d92d40318a3196a7fb994c00 looks incomplete. The > helper functions like prepare_sg() need to support sg chaining too. Thanks Tomo, applied. I'll get this pushed out later today with any other sg chaining fallout we may see. -- J