[PATCH] sr/sd: Remove simple dead code

2007-12-13 Thread Boaz Harrosh
if (rq_data_dir() == WRITE) else if() else chain had an extra "else" since the if() is on a value of 1 bit. Also with a bidi request rq_data_dir() == WRITE and blk_bidi_rq() == true. Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/sd.c |5 + d

Re: [PATCH 20/24] iscsi_tcp: enable sg chaining

2007-12-16 Thread Boaz Harrosh
On Thu, Dec 13 2007 at 20:43 +0200, [EMAIL PROTECTED] wrote: > From: Mike Christie <[EMAIL PROTECTED]> > > The previous patches converted iscsi_tcp to support sg chaining. > This patch sets the proper flags and sets sg_table size to > 4096. This allows fs io to be capped at max_sectors, but passth

Re: [PATCH 07/24] arm: scsi convert to accessors and !use_sg cleanup

2007-12-16 Thread Boaz Harrosh
On Sat, Dec 15 2007 at 2:27 +0200, James Bottomley <[EMAIL PROTECTED]> wrote: > On Tue, 2007-09-18 at 17:04 +0200, Boaz Harrosh wrote: >> On Wed, Sep 12 2007 at 10:42 +0300, Russell King <[EMAIL PROTECTED]> wrote: >>> On Wed, Sep 12, 2007 at 02:55:19AM +0300, Boaz Har

Re: INITIO scsi driver fails to work properly

2007-12-17 Thread Boaz Harrosh
On Mon, Dec 17 2007 at 13:41 +0200, "Filippos Papadopoulos" <[EMAIL PROTECTED]> wrote: > On Dec 17, 2007 1:18 PM, Andrew Morton <[EMAIL PROTECTED]> wrote: >> On Mon, 17 Dec 2007 11:39:47 +0200 "Filippos Papadopoulos" <[EMAIL >> PROTECTED]> wrote: >> >>> Hi, >>> I have got an INITIO 9100 UW SCSI C

Re: INITIO scsi driver fails to work properly

2007-12-17 Thread Boaz Harrosh
On Mon, Dec 17 2007 at 14:18 +0200, Boaz Harrosh <[EMAIL PROTECTED]> wrote: > On Mon, Dec 17 2007 at 13:41 +0200, "Filippos Papadopoulos" <[EMAIL > PROTECTED]> wrote: >> On Dec 17, 2007 1:18 PM, Andrew Morton <[EMAIL PROTECTED]> wrote: >>> On Mon,

Re: INITIO scsi driver fails to work properly

2007-12-17 Thread Boaz Harrosh
On Mon, Dec 17 2007 at 15:05 +0200, Alan Cox <[EMAIL PROTECTED]> wrote: >> initio doesn't seem to have a maintainer... >> >> Are you able to identify any earlier kernel which worked OK? >> >> Maybe it's a new device? If you can get the `lspci -vvxx' output >> for that device we can take a look. >

Re: INITIO scsi driver fails to work properly

2007-12-17 Thread Boaz Harrosh
On Mon, Dec 17 2007 at 17:03 +0200, James Bottomley <[EMAIL PROTECTED]> wrote: > On Mon, 2007-12-17 at 14:36 +, Alan Cox wrote: >> On Mon, 17 Dec 2007 16:40:53 +0200 >> Boaz Harrosh <[EMAIL PROTECTED]> wrote: >> >>> On Mon, Dec 17 2007 at 15:05

Re: INITIO scsi driver fails to work properly

2007-12-17 Thread Boaz Harrosh
On Mon, Dec 17 2007 at 18:20 +0200, Olivier Galibert <[EMAIL PROTECTED]> wrote: > On Mon, Dec 17, 2007 at 06:08:59PM +0200, Boaz Harrosh wrote: >> Below fixes a deadly typo. Might as well be included in 2.6.24 > > You're sure ? scsi_for_each_sg

[PATCHSET 0/3] varlen extended and vendor-specific cdbs

2007-12-18 Thread Boaz Harrosh
Submitted is a patchset for adding support for variable-length, extended, and vendor specific CDBs. It should now cover the entire range of the SCSI standard. They are based on scsi-misc + the submitted bidi patches. Difference from last time, is at struct request. I did a smallish hack to save

[PATCH 1/3] Let scsi_cmnd->cmnd use request->cmd buffer

2007-12-18 Thread Boaz Harrosh
the same infrastructure used for VARLEN CDB's. So in effect MAX_COMMAND_SIZE means the maximum size command scsi-ml supports without specifying a cmd_len by ULD's Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/firewire/fw-sbp2.c |2 +- drivers/s390/scsi/zfcp_dbf.

[PATCH 2/2] block layer varlen-cdb

2007-12-18 Thread Boaz Harrosh
varlen_cdb's. - Note that this patch does not add any size to struct request since the unsigned cmd_len is split here to 2 ushorts, which is more then enough. Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- block/ll_rw_blk.c |2 ++ include/linux/blkd

[PATCH 3/3] scsi: varlen extended and vendor-specific cdbs

2007-12-18 Thread Boaz Harrosh
tches). - clean-up some code paths that did not expect commands to be larger than 16, and change cmd_len members' type to short as char is not enough. - Add support for varlen_cdb in scsi_execute. Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> Signed-off-by: Benny Halevy &

Re: INITIO scsi driver fails to work properly

2007-12-19 Thread Boaz Harrosh
On Wed, Dec 19 2007 at 10:48 +0200, "Filippos Papadopoulos" <[EMAIL PROTECTED]> wrote: > On Dec 17, 2007 2:18 PM, Boaz Harrosh <[EMAIL PROTECTED]> wrote: >> I have found one problem. Please try patch [2] below and report. >> If it still fails try to enab

Re: Strange code in initio.c?

2007-12-19 Thread Boaz Harrosh
On Thu, Dec 20 2007 at 9:22 +0200, Rusty Russell <[EMAIL PROTECTED]> wrote: > Hi Alan, > > Was looking through initio.c to convert it to sg_ring, and noticed this > code: > > initio_build_scb() around 2616: > sg = &cblk->sglist[0]; > scsi_for_each_sg(cmnd, sglis

Re: [PATCH 0/5] sg_ring for scsi

2007-12-20 Thread Boaz Harrosh
On Thu, Dec 20 2007 at 9:58 +0200, Jens Axboe <[EMAIL PROTECTED]> wrote: > On Thu, Dec 20 2007, Rusty Russell wrote: >> On Thursday 20 December 2007 18:07:41 FUJITA Tomonori wrote: >>> On Thu, 20 Dec 2007 16:45:18 +1100 >>> >>> Rusty Russell <[EMAIL PROTECTED]> wrote: OK, some fixes since last

[PATCH 1/3] SG: Move functions to lib/scatterlist.c and add sg chaining allocator helpers

2007-12-20 Thread Boaz Harrosh
Manually doing chained sg lists is not trivial, so add some helpers to make sure that drivers get it right. Signed-off-by: Jens Axboe <[EMAIL PROTECTED]> --- include/linux/scatterlist.h | 125 --- lib/Makefile|2 +- lib/scatterlist.c | 281

[PATCH 2/3] SG: Convert SCSI to use scatterlist helpers for sg chaining

2007-12-20 Thread Boaz Harrosh
From: Jens Axboe <[EMAIL PROTECTED]> Signed-off-by: Jens Axboe <[EMAIL PROTECTED]> --- drivers/scsi/libsrp.c|2 +- drivers/scsi/scsi_error.c|4 +- drivers/scsi/scsi_lib.c | 150 +- drivers/usb/storage/isd200.c |4 +- include/sc

[PATCH 3/3] SG: Update ide/ to use sg_table

2007-12-20 Thread Boaz Harrosh
From: Jens Axboe <[EMAIL PROTECTED]> Signed-off-by: Jens Axboe <[EMAIL PROTECTED]> --- drivers/ide/arm/icside.c |6 +++--- drivers/ide/cris/ide-cris.c |2 +- drivers/ide/ide-dma.c |8 drivers/ide/ide-io.c |2 +- drivers/ide/ide-probe.c |6

Re: [PATCH 1/3] SG: Move functions to lib/scatterlist.c and add sg chaining allocator helpers

2007-12-20 Thread Boaz Harrosh
A small comment in body On Thu, Dec 20 2007 at 16:00 +0200, Boaz Harrosh <[EMAIL PROTECTED]> wrote: > Manually doing chained sg lists is not trivial, so add some helpers > to make sure that drivers get it right. > > Signed-off-by: Jens Axboe <[EMAIL PROTECTED]>

Re: [PATCH 2/3] SG: Convert SCSI to use scatterlist helpers for sg chaining

2007-12-20 Thread Boaz Harrosh
On Thu, Dec 20 2007 at 16:03 +0200, Boaz Harrosh <[EMAIL PROTECTED]> wrote: > From: Jens Axboe <[EMAIL PROTECTED]> > > Signed-off-by: Jens Axboe <[EMAIL PROTECTED]> > --- > drivers/scsi/libsrp.c|2 +- > drivers/scsi/scsi_error.c|4 +- &g

Re: [PATCHSET 0/3] varlen extended and vendor-specific cdbs

2007-12-20 Thread Boaz Harrosh
On Tue, Dec 18 2007 at 15:33 +0200, Boaz Harrosh <[EMAIL PROTECTED]> wrote: > Submitted is a patchset for adding support for variable-length, extended, and > vendor specific CDBs. It should now cover the entire range of the > SCSI standard. > ping James. I understand tha

Re: bidi, varlen, bsg success report

2007-12-23 Thread Boaz Harrosh
On Sat, Dec 22 2007 at 22:15 +0200, Pete Wyckoff <[EMAIL PROTECTED]> wrote: > I spent the last couple of days rebasing my working set of kernel > patches from 2.6.22-rc5 to 2.6.24-rc6. I want to use the BSG > interface from userspace to submit variable-length bidirectional > SCSI commands to targe

Re: [PATCH 2/2] scsi: Use new __dma_buffer to align sense buffer in scsi_cmnd

2007-12-23 Thread Boaz Harrosh
On Fri, Dec 21 2007 at 4:30 +0200, Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > The sense buffer ins scsi_cmnd can nowadays be DMA'ed into directly > by some low level drivers (that typically happens with USB mass > storage). > > This is a problem on non cache coherent architectures such a

Re: Maybe Sorry for that but where should i write .)

2007-12-30 Thread Boaz Harrosh
On Sat, Dec 29 2007 at 3:50 +0200, thanatos <[EMAIL PROTECTED]> wrote: > I got a sata controller ignitio > > 00:11.0 SATA controller: Initio Corporation INI-1623 PCI SATA-II > Controller (rev 02) (prog-if 00 [Vendor specific]) > Subsystem: Initio Corporation INI-1623 PCI SATA-II Control

Re: [PATCH 1/3] scsi: Convert everyone to scsi_sglist and scsi_sg_count

2008-01-03 Thread Boaz Harrosh
On Thu, Jan 03 2008 at 10:50 +0200, Rusty Russell <[EMAIL PROTECTED]> wrote: > This patch simply converts direct uses of ->use_sg and ->request_buffer to > use the wrapper macros. This removes the assumption that the sg list is > overloaded on request_buffer, and that there's an explicit use_sg fi

Re: [PATCH 0/2] sg_ring: Gentler scsi merge

2008-01-03 Thread Boaz Harrosh
On Thu, Jan 03 2008 at 9:00 +0200, Rusty Russell <[EMAIL PROTECTED]> wrote: > OK, after wading through many scsi drivers, I decided to change tack and try > to provide a transition path. This is in two stages: > > 1) These two patches. sg_ring used underneath, but if any driver asks for > scsi

Re: [PATCH 1/2] replace sizeof sense_buffer with SCSI_SENSE_BUFFERSIZE

2008-01-03 Thread Boaz Harrosh
On Thu, Jan 03 2008 at 6:56 +0200, FUJITA Tomonori <[EMAIL PROTECTED]> wrote: > To remove sense_buffer array in scsi_cmnd structure, this replaces > sizeof sense_buffer with SCSI_SENSE_BUFFERSIZE in several LLDs. > > Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]> > --- > drivers/ata/libata-sc

[PATCH 0/1] Remove of old NCR53C9x/esp family of drivers

2008-01-03 Thread Boaz Harrosh
James Could you at least put the following patch in scsi-pending so it can attract some acknowledgment, and retract futile attempts from people at coding these drivers. (And also git is better than me in maintaining it synced) Christoph Hellwig! I need your Recommended-by: on this. I had my r

Re: [PATCH] tgt: Use scsi_init_io instead of scsi_alloc_sgtable

2008-01-06 Thread Boaz Harrosh
On Sat, Jan 05 2008 at 1:02 +0200, James Bottomley <[EMAIL PROTECTED]> wrote: > On Thu, 2007-12-13 at 13:44 +0200, Boaz Harrosh wrote: >> - If we export scsi_init_io()/scsi_release_buffers() instead of >> scsi_{alloc,free}_sgtable() from scsi_lib than tgt code is >&

Re: [PATCH 2/2] scsi: Use new __dma_buffer to align sense buffer in scsi_cmnd

2008-01-07 Thread Boaz Harrosh
On Mon, Jan 07 2008 at 8:53 +0200, FUJITA Tomonori <[EMAIL PROTECTED]> wrote: > On Sun, 23 Dec 2007 13:09:05 +0200 > Boaz Harrosh <[EMAIL PROTECTED]> wrote: > >> On Fri, Dec 21 2007 at 4:30 +0200, Benjamin Herrenschmidt <[EMAIL >> PROTECTED]> wrote:

Re: Linux scsi / usb-mass-storage and HP printer cardreader bug + fix

2008-01-10 Thread Boaz Harrosh
- Original Message - *From:* Hans de Goede <[EMAIL PROTECTED]> *To:* USB Storage list <[EMAIL PROTECTED]> *CC:* [EMAIL PROTECTED], USB development list <[EMAIL PROTECTED]>, David Brown <[EMAIL PROTECTED]>, Guillaume Bedot <[EMAIL PROTECTED]>, linux-scsi@vger.kernel.org, [EMAIL PROTECTED] *S

Re: Linux scsi / usb-mass-storage and HP printer cardreader bug + fix

2008-01-10 Thread Boaz Harrosh
On Thu, Jan 10 2008 at 12:52 +0200, Hans de Goede <[EMAIL PROTECTED]> wrote: > Boaz Harrosh wrote: >> - Original Message - >> *From:* Hans de Goede <[EMAIL PROTECTED]> >> *To:* USB Storage list <[EMAIL PROTECTED]> >> *CC:* [EMAIL PROTECTE

Re: memory allocation in sg_io()

2008-01-10 Thread Boaz Harrosh
On Thu, Jan 10 2008 at 14:33 +0200, Oliver Neukum <[EMAIL PROTECTED]> wrote: > Hi, > > could you explain to me why this code can get away with allocating the > sense buffer on the stack? > > static int sg_io(struct file *file, struct request_queue *q, > struct gendisk *bd_disk, stru

Re: memory allocation in sg_io()

2008-01-10 Thread Boaz Harrosh
On Thu, Jan 10 2008 at 15:06 +0200, Jens Axboe <[EMAIL PROTECTED]> wrote: > On Thu, Jan 10 2008, Boaz Harrosh wrote: >> On Thu, Jan 10 2008 at 14:33 +0200, Oliver Neukum <[EMAIL PROTECTED]> wrote: >>> Hi, >>> >>> could you explain to me why this

Re: [patch 1/1] Switch ioctl functions of drivers/scsi/sg.c to unlocked_ioctl

2008-01-10 Thread Boaz Harrosh
On Thu, Jan 10 2008 at 21:45 +0200, Andre Noll <[EMAIL PROTECTED]> wrote: > On 20:29, Andi Kleen wrote: > >>> Sure, I can do that if James likes the idea. Since not all case >>> statements need the BKL, we could add it only to those for which it >>> isn't clear that it is unnecessary. >>> >>> And

Re: [PATCH v2] use dynamically allocated sense buffer

2008-01-15 Thread Boaz Harrosh
On Tue, Jan 15 2008 at 11:23 +0200, FUJITA Tomonori <[EMAIL PROTECTED]> wrote: > This is the second version of > > http://marc.info/?l=linux-scsi&m=119933628210006&w=2 > > I gave up once, but I found that the performance loss is negligible > (within 1%) by using kmem_cache_alloc instead of mempoo

Re: [PATCH v2] use dynamically allocated sense buffer

2008-01-15 Thread Boaz Harrosh
On Tue, Jan 15 2008 at 17:08 +0200, FUJITA Tomonori <[EMAIL PROTECTED]> wrote: > On Tue, 15 Jan 2008 15:56:56 +0200 > Boaz Harrosh <[EMAIL PROTECTED]> wrote: > >> On Tue, Jan 15 2008 at 11:23 +0200, FUJITA Tomonori <[EMAIL PROTECTED]> >> wrote: >>

Re: [PATCH v2] use dynamically allocated sense buffer

2008-01-15 Thread Boaz Harrosh
On Tue, Jan 15 2008 at 17:20 +0200, James Bottomley <[EMAIL PROTECTED]> wrote: > On Tue, 2008-01-15 at 18:23 +0900, FUJITA Tomonori wrote: >> This is the second version of >> >> http://marc.info/?l=linux-scsi&m=119933628210006&w=2 >> >> I gave up once, but I found that the performance loss is negli

Re: Actually using the sg table/chain code

2008-01-15 Thread Boaz Harrosh
On Tue, Jan 15 2008 at 17:52 +0200, James Bottomley <[EMAIL PROTECTED]> wrote: > I thought, now we had this new shiny code to increase the scatterlist > table size I'd try it out. It turns out there's a pretty vast block > conspiracy that prevents us going over 128 entries in a scatterlist. > > T

Re: Actually using the sg table/chain code

2008-01-15 Thread Boaz Harrosh
On Tue, Jan 15 2008 at 18:49 +0200, James Bottomley <[EMAIL PROTECTED]> wrote: > On Tue, 2008-01-15 at 18:09 +0200, Boaz Harrosh wrote: >> On Tue, Jan 15 2008 at 17:52 +0200, James Bottomley <[EMAIL PROTECTED]> >> wrote: >>> I thought, now we had this new sh

Re: Actually using the sg table/chain code

2008-01-16 Thread Boaz Harrosh
On Tue, Jan 15 2008 at 19:35 +0200, Boaz Harrosh <[EMAIL PROTECTED]> wrote: > On Tue, Jan 15 2008 at 18:49 +0200, James Bottomley <[EMAIL PROTECTED]> wrote: >> On Tue, 2008-01-15 at 18:09 +0200, Boaz Harrosh wrote: >>> On Tue, Jan 15 2008 at 17:52 +0200, Jam

Re: Actually using the sg table/chain code

2008-01-16 Thread Boaz Harrosh
On Wed, Jan 16 2008 at 17:09 +0200, James Bottomley <[EMAIL PROTECTED]> wrote: > On Wed, 2008-01-16 at 16:01 +0200, Boaz Harrosh wrote: >> On Tue, Jan 15 2008 at 19:35 +0200, Boaz Harrosh <[EMAIL PROTECTED]> wrote: >>> On Tue, Jan 15 2008 at 18:49 +0200, Jam

Re: Actually using the sg table/chain code

2008-01-16 Thread Boaz Harrosh
On Wed, Jan 16 2008 at 18:11 +0200, Boaz Harrosh <[EMAIL PROTECTED]> wrote: > On Wed, Jan 16 2008 at 17:09 +0200, James Bottomley <[EMAIL PROTECTED]> wrote: >> On Wed, 2008-01-16 at 16:01 +0200, Boaz Harrosh wrote: >>> On Tue, Jan 15 2008 at 19:35 +0200, Boaz Har

[PATCH 8/8] Change SG_ALL to mean "any size"

2008-01-17 Thread Boaz Harrosh
removed because it is no longer supported. Note: SG_ALL can not be used as an allocation size anymore. FIXME: Important/capable drivers like iscsi have moved away from SG_ALL to hard coded numbers like 4096. They should reuse SG_ALL now. Signed-off-by: Boaz Harrosh <[EM

[PATCH 7/8] a100u2w: advansys: initio: Wrong use of SG_ALL

2008-01-17 Thread Boaz Harrosh
These drivers used the SG_ALL constant, But actually meant some other define. Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/a100u2w.c |3 +-- drivers/scsi/advansys.c |8 +++- drivers/scsi/initio.c |2 +- 3 files changed, 5 insertions(+), 8 del

[PATCH 5/8] arm/scsi: Not sg-chain ready

2008-01-17 Thread Boaz Harrosh
arm-scsi core is not sg-chain ready, so maximum scatterlist supported is SCSI_MAX_SG_SEGMENTS. Define it so, in core, and let all drivers use it for the sg_tablesize in host templates. Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/arm/acornscsi.c |2 +- driver

[PATCH 4/8] wd33c93: Not sg-chain ready

2008-01-17 Thread Boaz Harrosh
wd33c93 core is not sg-chain ready, so maximum scatterlist supported is SCSI_MAX_SG_SEGMENTS. Define it so, in core, and let all drivers use it for the sg_tablesize in host templates. Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/a2091.c |2 +- drivers/scsi

[PATCH 3/8] NCR5380: Not sg-chain ready

2008-01-17 Thread Boaz Harrosh
NCR5380 core is not sg-chain ready, so maximum scatterlist supported is SCSI_MAX_SG_SEGMENTS. Define it so, in core, and let all drivers use it for the sg_tablesize in host templates. Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/NCR5380.h |3 +++ driver

[PATCH 2/8] scsi-drivers Don't use SG_ALL as allocation size

2008-01-17 Thread Boaz Harrosh
a2xxx/qla_os.c drivers/scsi/qla4xxx/ql4_def.h Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/atari_scsi.c|8 drivers/scsi/atari_scsi.h|4 ++-- drivers/scsi/eata_pio.c |5 - drivers/scsi/ibmvscsi/ibmvsc

[PATCH 1/8] firewire: ieee1394: Move away from SG_ALL

2008-01-17 Thread Boaz Harrosh
vers/files: drivers/firewire/fw-sbp2.c drivers/ieee1394/sbp2.[ch] Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/firewire/fw-sbp2.c |6 -- drivers/ieee1394/sbp2.c|2 +- drivers/ieee1394/sbp2.h|4 +++- 3 files changed, 8 insertions(+), 4 deletions(

[patch 0/8] Change SG_ALL to mean "any size"

2008-01-17 Thread Boaz Harrosh
I have scanned through the scsi tree and checked all places that used SG_ALL. Those drivers that where not ready for SG_ALL to mean "any size" where changed to what ever is appropriate for this driver. Mainly 3 groups. Those that meant SG_ALL == 255: [PATCH 1/8] firewire: ieee1394: Move away f

scsi: Drivers not ready for sg-chaining

2008-01-17 Thread Boaz Harrosh
drivers/scsi/in2000.h drivers/scsi/pcmcia/nsp_cs.c drivers/scsi/ppa.c drivers/scsi/tmscsim.c Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/aha152x.c |5 - drivers/scsi/esp_scsi.c |2 +- drivers/scsi/esp_scsi.h |3 +++ d

Re: [PATCH 2/8] scsi-drivers Don't use SG_ALL as allocation size

2008-01-17 Thread Boaz Harrosh
On Thu, Jan 17 2008 at 19:47 +0200, Andrew Vasquez <[EMAIL PROTECTED]> wrote: > On Thu, 17 Jan 2008, Boaz Harrosh wrote: > >> below list of drivers have used SG_ALL as a size to >> preallocate maximum possible command's sg-count. >> This is no longe

Re: [PATCH 2/8 ver2] scsi-drivers Don't use SG_ALL as allocation size

2008-01-17 Thread Boaz Harrosh
ivers/scsi/nsp32.h drivers/scsi/qla1280.c Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/atari_scsi.c|8 drivers/scsi/atari_scsi.h|4 ++-- drivers/scsi/eata_pio.c |5 - drivers/scsi/ibmvscsi/ibmvscsi.c |8 +-

Re: [PATCH v3] use dynamically allocated sense buffer

2008-01-20 Thread Boaz Harrosh
On Wed, Jan 16 2008 at 6:32 +0200, FUJITA Tomonori <[EMAIL PROTECTED]> wrote: > This is the third version of: > > http://marc.info/?l=linux-scsi&m=120038907123706&w=2 > > The changes from the second version are: > > - Fixed the memory leak bug that Boaz pointed out. > > shots->backup_sense_buff

Re: [PATCH] remove use_sg_chaining

2008-01-20 Thread Boaz Harrosh
On Tue, Jan 15 2008 at 19:52 +0200, James Bottomley <[EMAIL PROTECTED]> wrote: > this patch depends on the sg branch of the block tree > > James > > --- > From: James Bottomley <[EMAIL PROTECTED]> > Date: Tue, 15 Jan 2008 11:11:46 -0600 > Subject: remove use_sg_chaining > > With the sg table cod

Re: [PATCH] remove use_sg_chaining

2008-01-20 Thread Boaz Harrosh
On Sun, Jan 20 2008 at 21:24 +0200, James Bottomley <[EMAIL PROTECTED]> wrote: > On Sun, 2008-01-20 at 21:18 +0200, Boaz Harrosh wrote: >> On Tue, Jan 15 2008 at 19:52 +0200, James Bottomley <[EMAIL PROTECTED]> >> wrote: >>> this patch depends on the sg br

Re: [PATCH] remove use_sg_chaining

2008-01-20 Thread Boaz Harrosh
On Sun, Jan 20 2008 at 21:29 +0200, Jens Axboe <[EMAIL PROTECTED]> wrote: > On Sun, Jan 20 2008, James Bottomley wrote: >> On Sun, 2008-01-20 at 21:18 +0200, Boaz Harrosh wrote: >>> On Tue, Jan 15 2008 at 19:52 +0200, James Bottomley <[EMAIL PROTECTED]> >>>

Re: [PATCH] remove use_sg_chaining

2008-01-21 Thread Boaz Harrosh
On Sun, Jan 20 2008 at 22:59 +0200, James Bottomley <[EMAIL PROTECTED]> wrote: > On Sun, 2008-01-20 at 21:01 +0100, Jens Axboe wrote: >> On Sun, Jan 20 2008, Jens Axboe wrote: >>> On Sun, Jan 20 2008, Boaz Harrosh wrote: >>>> On Sun, Jan 20 2008 at 21:29 +0200,

Re: [PATCH] remove use_sg_chaining

2008-01-21 Thread Boaz Harrosh
On Mon, Jan 21 2008 at 11:31 +0200, Jens Axboe <[EMAIL PROTECTED]> wrote: > On Mon, Jan 21 2008, Boaz Harrosh wrote: >> On Sun, Jan 20 2008 at 22:59 +0200, James Bottomley <[EMAIL PROTECTED]> >> wrote: >>> On Sun, 2008-01-20 at 21:01 +0100, Jens Axboe wrote:

Re: [PATCH 0/3] update bidirectional series to sit on top of sg_table

2008-01-23 Thread Boaz Harrosh
On Tue, Jan 22 2008 at 18:31 +0200, FUJITA Tomonori <[EMAIL PROTECTED]> wrote: > From: James Bottomley <[EMAIL PROTECTED]> > Subject: [PATCH 0/3] update bidirectional series to sit on top of sg_table > Date: Fri, 11 Jan 2008 21:09:00 -0600 > >> OK, I suppose in the scheme of things, it's my turn t

Re: [PATCH v3] use dynamically allocated sense buffer

2008-01-23 Thread Boaz Harrosh
omonori <[EMAIL PROTECTED]> Date: Wed, 23 Jan 2008 19:56:04 +0200 Subject: [PATCH] use dynamically allocated sense buffer This removes static array sense_buffer in scsi_cmnd and uses dynamically allocated DMA able sense_buffer. The reason for doing this is that some architectures need c

qla_sup.c: compilation warning

2008-01-24 Thread Boaz Harrosh
With gcc 4.1.2 on fedora7 x86_64, cross compiling an i386 kernel i get the following compilation warning: CC [M] drivers/scsi/qla2xxx/qla_sup.o /usr0/export/dev/bharrosh/git/pub/scsi-misc/drivers/scsi/qla2xxx/qla_sup.c: In function ‘qla2x00_beacon_blink’: /usr0/export/dev/bharrosh/git/pub/scsi-mi

Re: [BUG] 2.6.24-git usb reset problems

2008-01-29 Thread Boaz Harrosh
Greg KH wrote: > On Mon, Jan 28, 2008 at 09:49:35PM +0100, Jens Axboe wrote: >> Hi, >> >> Running latest -git (head 91525300baf162e83e923b09ca286f9205e21522) and >> connecting my cf usb storage device yields and endless stream of: >> >> Initializing USB Mass Storage driver... >> scsi6 : SCSI emulat

Re: [BUG] 2.6.24-git usb reset problems

2008-01-29 Thread Boaz Harrosh
On Tue, Jan 29 2008 at 16:11 +0200, Jens Axboe <[EMAIL PROTECTED]> wrote: > On Tue, Jan 29 2008, Boaz Harrosh wrote: >> On Tue, Jan 29 2008 at 15:54 +0200, Jens Axboe <[EMAIL PROTECTED]> wrote: >>> On Tue, Jan 29 2008, Boaz Harrosh wrote: >>>> Greg KH

Re: [BUG] 2.6.24-git usb reset problems

2008-01-29 Thread Boaz Harrosh
On Tue, Jan 29 2008 at 16:06 +0200, Boaz Harrosh <[EMAIL PROTECTED]> wrote: > On Tue, Jan 29 2008 at 15:54 +0200, Jens Axboe <[EMAIL PROTECTED]> wrote: >> On Tue, Jan 29 2008, Boaz Harrosh wrote: >>> Greg KH wrote: >>>> On Mon, Jan 28, 2008 at 09

Re: [BUG] 2.6.24-git usb reset problems

2008-01-29 Thread Boaz Harrosh
On Tue, Jan 29 2008 at 17:36 +0200, Alan Stern <[EMAIL PROTECTED]> wrote: > On Tue, 29 Jan 2008, Boaz Harrosh wrote: > >> --- a/drivers/usb/storage/transport.c >> +++ b/drivers/usb/storage/transport.c >> @@ -462,18 +462,24 @@ static int usb_stor_bulk_transfer

Re: [BUG] 2.6.24-git usb reset problems

2008-01-29 Thread Boaz Harrosh
On Tue, Jan 29 2008 at 16:31 +0200, Oliver Neukum <[EMAIL PROTECTED]> wrote: > Am Dienstag, 29. Januar 2008 15:11:08 schrieb Jens Axboe: >> On Tue, Jan 29 2008, Boaz Harrosh wrote: >>> On Tue, Jan 29 2008 at 15:54 +0200, Jens Axboe <[EMAIL PROTECTED]> wrote: >>

Re: [BUG] 2.6.24-git usb reset problems

2008-01-29 Thread Boaz Harrosh
On Tue, Jan 29 2008 at 15:54 +0200, Jens Axboe <[EMAIL PROTECTED]> wrote: > On Tue, Jan 29 2008, Boaz Harrosh wrote: >> Greg KH wrote: >>> On Mon, Jan 28, 2008 at 09:49:35PM +0100, Jens Axboe wrote: >>>> Hi, >>>> >>>> Running lat

Re: [BUG] 2.6.24-git usb reset problems

2008-01-29 Thread Boaz Harrosh
On Tue, Jan 29 2008 at 22:24 +0200, James Bottomley <[EMAIL PROTECTED]> wrote: > On Tue, 2008-01-29 at 21:06 +0100, Jens Axboe wrote: >>> I will ... but it will cause an explosion in the bidirectional tree >>> again. I think the bidi updates also fix this. However, give me time >>> to rebase and

Re: [BUG] 2.6.24-git usb reset problems

2008-01-29 Thread Boaz Harrosh
PM +0100, Jens Axboe wrote: >>>>> On Tue, Jan 29 2008, Jens Axboe wrote: >>>>>> On Tue, Jan 29 2008, Oliver Neukum wrote: >>>>>>> Am Dienstag, 29. Januar 2008 15:11:08 schrieb Jens Axboe: >>>>>>>> On Tue, Jan 29 2008,

Re: [BUG] 2.6.24-git usb reset problems

2008-01-29 Thread Boaz Harrosh
On Tue, Jan 29 2008 at 20:39 +0200, Jens Axboe <[EMAIL PROTECTED]> wrote: > On Tue, Jan 29 2008, Jens Axboe wrote: >> On Tue, Jan 29 2008, Oliver Neukum wrote: >>> Am Dienstag, 29. Januar 2008 15:11:08 schrieb Jens Axboe: >>>> On Tue, Jan 29 2008, Boaz Harrosh

Re: [BUG] 2.6.24-git usb reset problems

2008-01-29 Thread Boaz Harrosh
On Tue, Jan 29 2008 at 18:34 +0200, James Bottomley <[EMAIL PROTECTED]> wrote: > On Tue, 2008-01-29 at 10:36 -0500, Alan Stern wrote: >> On Tue, 29 Jan 2008, Boaz Harrosh wrote: >> >>> --- a/drivers/usb/storage/transport.c >>> +++ b/drivers/usb/storage/trans

Re: [BUG] 2.6.24-git usb reset problems

2008-01-29 Thread Boaz Harrosh
On Tue, Jan 29 2008 at 21:17 +0200, James Bottomley <[EMAIL PROTECTED]> wrote: > On Tue, 2008-01-29 at 20:58 +0200, Boaz Harrosh wrote: >>> Your new code does >>> >>> int partial; <- stack uninitialised >>> sb_stor_bulk_transfer_sglist(..., &par

Re: [BUG] 2.6.24-git usb reset problems

2008-01-29 Thread Boaz Harrosh
On Tue, Jan 29 2008 at 20:48 +0200, James Bottomley <[EMAIL PROTECTED]> wrote: > On Tue, 2008-01-29 at 20:27 +0200, Boaz Harrosh wrote: >> On Tue, Jan 29 2008 at 18:34 +0200, James Bottomley <[EMAIL PROTECTED]> >> wrote: >>> On Tue, 2008-01-29 at 10:36 -0500, A

Re: [BUG] 2.6.24-git usb reset problems

2008-01-29 Thread Boaz Harrosh
>> > Ok this is not in Linus tree is it? Hence I did not have that failure. > > Boaz > > actually James bidi tree has a fix for this in the scsi_data_buffer patch. what you sent is not enough there are other places. look at this patch I sent to the list. http://www.spinics.net/lists/linux-scs

Re: [BUG] 2.6.24-git usb reset problems

2008-01-29 Thread Boaz Harrosh
On Tue, Jan 29 2008 at 22:13 +0200, Jens Axboe <[EMAIL PROTECTED]> wrote: > On Tue, Jan 29 2008, Boaz Harrosh wrote: >>> Ok this is not in Linus tree is it? Hence I did not have that failure. >>> >>> Boaz >>> >>> >> actually Jame

Re: [BUG?] GDTH driver not working after upgrade to 2.6.24

2008-01-31 Thread Boaz Harrosh
On Wed, Jan 30 2008 at 21:47 +0200, Sven Köhler <[EMAIL PROTECTED]> wrote: > Hi, > > so i have upgraded a system to kernel 2.6.24. After that, it failed to > boot with the usual message telling, that the rootfs on device /dev/sda1 > cannot be mounted (a raid1 run by the controller below). > >

Re: [BUG?] GDTH driver not working after upgrade to 2.6.24

2008-01-31 Thread Boaz Harrosh
On Thu, Jan 31 2008 at 13:07 +0200, Sven Köhler <[EMAIL PROTECTED]> wrote: >> Yes the gdth driver passed an open hart surgery in kernel 2.6.24. The bad >> thing >> about it is that all three of the Coders that did that did not have any HW >> to work >> on. One of them is me. We did cry for tester

Re: [linux-usb-devel] 2.6.24: NULL scatter-gather pointer in usb_storage:usb_stor_access_xfer_buf?

2008-01-31 Thread Boaz Harrosh
On Thu, Jan 31 2008 at 17:08 +0200, Mark Glines <[EMAIL PROTECTED]> wrote: > On Thu, 31 Jan 2008 11:27:39 +0200 > Boaz Harrosh <[EMAIL PROTECTED]> wrote: > >> Please check the below patch. >> >> one thing that I can see is that the isd200 does an INQUARY tr

Re: [BUG?] GDTH driver not working after upgrade to 2.6.24

2008-01-31 Thread Boaz Harrosh
On Thu, Jan 31 2008 at 18:39 +0200, Jan Engelhardt <[EMAIL PROTECTED]> wrote: > Hi, > > On Jan 31 2008 14:35, Boaz Harrosh wrote: >> Thanks, Perhaps someone else then. >> Anyone with gdth HW that can test patches? > > Is bisecting down the existing chain and fin

[PATCH] bugfix for an underflow condition in usb storage & isd200.c

2008-01-31 Thread Boaz Harrosh
usb_stor_set_xfer_buf() should report this condition as a negative resid. Should we also set cmnd->status in the underflow condition? Then also isd200.c is fixed to only return the type of INQUIRY && SENSE the upper layer asked for. Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- dr

Re: [linux-usb-devel] 2.6.24: NULL scatter-gather pointer in usb_storage:usb_stor_access_xfer_buf?

2008-01-31 Thread Boaz Harrosh
On Thu, Jan 31 2008 at 18:45 +0200, Alan Stern <[EMAIL PROTECTED]> wrote: > On Thu, 31 Jan 2008, Boaz Harrosh wrote: > >>>> Please check the below patch. >>>> >>>> one thing that I can see is that the isd200 does an INQUARY transfer >>>

Re: [build bug] drivers/scsi/NCR53C9x.c:913: error: 'Scsi_Cmnd' has no member named 'use_sg'

2008-01-31 Thread Boaz Harrosh
On Thu, Jan 31 2008 at 19:29 +0200, Ingo Molnar <[EMAIL PROTECTED]> wrote: > FYI, automated testing found the following build breakage: > > drivers/scsi/NCR53C9x.c: In function 'esp_get_dmabufs': > drivers/scsi/NCR53C9x.c:913: error: 'Scsi_Cmnd' has no member named 'use_sg' > drivers/scsi/NCR53C9x

[PATCH 0/3] iscsi bidi & varlen support

2008-01-31 Thread Boaz Harrosh
Cheers after 1.3 years these can go in. [PATCH 1/3] iscsi: extended cdb support The varlen support is not yet in mainline for block and scsi-ml. But the API for drivers will not change. All LLD need to do is max_command to the it's maximum and be ready for bigger commands. This is what'

Re: [PATCH] bugfix for an underflow condition in usb storage & isd200.c

2008-01-31 Thread Boaz Harrosh
On Thu, Jan 31 2008 at 20:00 +0200, Greg KH <[EMAIL PROTECTED]> wrote: > On Thu, Jan 31, 2008 at 07:19:57PM +0200, Boaz Harrosh wrote: >> scsi_scan is issuing a 36-byte INQUIRY request to llds. isd200 would >> volunteer 96 bytes of INQUIRY. This caused an underflow conditi

Re: [PATCH] bugfix for an underflow condition in usb storage & isd200.c

2008-01-31 Thread Boaz Harrosh
On Thu, Jan 31 2008 at 19:49 +0200, Alan Stern <[EMAIL PROTECTED]> wrote: > On Thu, 31 Jan 2008, Boaz Harrosh wrote: > >> @@ -228,9 +228,14 @@ void usb_stor_set_xfer_buf(unsigned char *buffer, >> { >> unsigned int offset = 0; >> struct scatterlist *s

Re: [PATCH 1/1] Remove of old NCR53C9x/esp family of drivers

2008-01-31 Thread Boaz Harrosh
u, 3 Jan 2008, James Bottomley wrote: >>>>> On Thu, 2008-01-03 at 17:40 +0200, Boaz Harrosh wrote: >>>>>> As recommended by Christoph Hellwig. There is no use >>>>>> of Fixing these drivers, since there is a much simpler >>>>>&

[PATCH 2.6.24] bugfix for an overflow condition in usb storage & isd200.c

2008-01-31 Thread Boaz Harrosh
nderflow conditions. Then usb_stor_set_xfer_buf() should report this condition as a negative resid. Should we also set cmnd->status in the overflow condition? Then also isd200.c is fixed to only return the type of INQUIRY && SENSE the upper layer asked for. Signed-off-by: Boaz Harros

Re: [PATCH] bugfix for an underflow condition in usb storage & isd200.c

2008-01-31 Thread Boaz Harrosh
On Thu, Jan 31 2008 at 21:34 +0200, Alan Stern <[EMAIL PROTECTED]> wrote: > On Thu, 31 Jan 2008, Boaz Harrosh wrote: > >> On Thu, Jan 31 2008 at 19:49 +0200, Alan Stern <[EMAIL PROTECTED]> wrote: >>> On Thu, 31 Jan 2008, Boaz Harrosh wrote: >>> >>&g

Re: [PATCH 2.6.24] bugfix for an overflow condition in usb storage & isd200.c

2008-01-31 Thread Boaz Harrosh
On Thu, Jan 31 2008 at 21:49 +0200, Matthew Dharm <[EMAIL PROTECTED]> wrote: > No. No no no. > > The ISD200 code was written by the ISD200 developers. I really don't want > to go mucking about changing what commands actually get send to the ISD200 > parts. We have no idea if the will reliably a

[PATCH 1/3] iscsi: extended cdb support

2008-01-31 Thread Boaz Harrosh
Support for extended CDBs in iscsi. All we need is to check if command spills over 16 bytes then allocate an iscsi-extended-header for the leftovers. Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/iscsi_tcp.c |2 +- drivers/scsi/libiscsi.c

[PATCH 2/3] iscsi: bidi support - libiscsi

2008-01-31 Thread Boaz Harrosh
iscsi bidi support at the generic libiscsi level - prepare the additional bidi_read rlength header. - access the right scsi_in() and/or scsi_out() side of things. also for resid. - Handle BIDI underflow overflow from target Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- d

[PATCH 3/3] iscsi: bidi support - iscsi_tcp

2008-01-31 Thread Boaz Harrosh
bidi support for iscsi_tcp - access the right scsi_in() and/or scsi_out() side of things. also for resid Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/iscsi_tcp.c | 31 +-- 1 files changed, 17 insertions(+), 14 deletions(-) diff -

Re: [PATCH] bugfix for an underflow condition in usb storage & isd200.c

2008-02-03 Thread Boaz Harrosh
On Thu, Jan 31 2008 at 22:56 +0200, Alan Stern <[EMAIL PROTECTED]> wrote: > On Thu, 31 Jan 2008, Boaz Harrosh wrote: > >>>> The code in usb_stor_access_xfer_buf() will >>>> now correctly attempt to transfer according to buflen and what ever is >>>

Re: [PATCH] bugfix for an underflow condition in usb storage & isd200.c

2008-02-03 Thread Boaz Harrosh
On Sun, Feb 03 2008 at 18:01 +0200, Alan Stern <[EMAIL PROTECTED]> wrote: > Sorry, I understood only about half of what you wrote -- maybe less! > > On Sun, 3 Feb 2008, Boaz Harrosh wrote: > >> On Thu, Jan 31 2008 at 22:56 +0200, Alan Stern <[EMAIL PROTECTED]&g

Re: [PATCH] bugfix for an underflow condition in usb storage & isd200.c

2008-02-04 Thread Boaz Harrosh
On Sun, Feb 03 2008 at 21:23 +0200, Matthew Dharm <[EMAIL PROTECTED]> wrote: > On Sun, Feb 03, 2008 at 06:28:48PM +0200, Boaz Harrosh wrote: >> >From 3610cfa93c990bbbafb296134ac01ef6d426eb8d Mon Sep 17 00:00:00 2001 >> From: Boaz Harrosh <[EMAIL PROTECTED]> >> D

Re: [PATCH 6/24][RFC] gdth: Use of scsi_eh API and sense accessors

2008-02-04 Thread Boaz Harrosh
On Mon, Feb 04 2008 at 18:11 +0200, Jeff Garzik <[EMAIL PROTECTED]> wrote: > Boaz Harrosh wrote: >> Use of new scsi_eh API for setting sense information into >> the scsi command. >> >> Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]>

[PATCH 5/24][RFC] dpt_i2o: Use new scsi_eh_cpy_sense()

2008-02-04 Thread Boaz Harrosh
ide REQUEST_SENSE would never go through. If this is intended then comment and check should change. Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- drivers/scsi/dpt_i2o.c | 25 +++-- 1 files changed, 7 insertions(+), 18 deletions(-) diff --git a/drivers/scsi/dp

[PATCH 2/24][RFC] scsi-drivers: Move to new sense API. The Trevial case

2008-02-04 Thread Boaz Harrosh
/scsi/scsi_debug.c drivers/scsi/sym53c8xx_2/sym_glue.c Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> --- arch/ia64/hp/sim/simscsi.c |8 ++-- drivers/block/cciss_scsi.c |8 +++- drivers/infiniband/ulp/srp/ib_srp.c |6 +++--- drivers/mes

<    1   2   3   4   5   6   7   >