Re: [PATCH] USB: storage: add "no SYNCHRONIZE CACHE" quirk

2015-06-26 Thread Stefan Richter
-on card, but plenty of USB headers available on the mainboard. Similarly, some NASes have their operating system located on a USB-attached device. Small offices use USB-attached disks for backup and won't detach such a disk until rotation for off-site deposit. Not to mention embedded compu

Re: [PATCH] USB: storage: add "no SYNCHRONIZE CACHE" quirk

2015-06-26 Thread Stefan Richter
On Jun 26 James Bottomley wrote: > On Fri, 2015-06-26 at 11:43 +0200, Stefan Richter wrote: > > On Jun 22 James Bottomley wrote: [...] > > > Perhaps it might be wise to do this to every USB device ... for external > > > devices, the small performance gain doe

Re: [PATCH] firewire: sbp2: allow WRITE SAME and REPORT SUPPORTED OPERATION CODES

2013-12-15 Thread Stefan Richter
On Dec 02 2012 Stefan Richter wrote: > On Nov 26 Martin K. Petersen wrote: > > >>>>> "Stefan" == Stefan Richter writes: > > Stefan> I did not try "sg_write_same" on any of the devices; but since > > Stefan> the two SPC-3 devices are

[PATCH v3.13-rc3] firewire: sbp2: bring back WRITE SAME support

2013-12-15 Thread Stefan Richter
DES", it is not required to blacklist WRITE SAME. Bring the feature back by reverting the sbp2.c hunk of commit 54b2b50c20a6. Signed-off-by: Stefan Richter Cc: sta...@kernel.org --- drivers/firewire/sbp2.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/firewire/sbp2.c +++ b/drivers/firewi

Re: [PATCH] firewire: sbp2: allow WRITE SAME and REPORT SUPPORTED OPERATION CODES

2013-12-22 Thread Stefan Richter
On Dec 16 Douglas Gilbert wrote: > On 13-12-15 09:52 AM, Stefan Richter wrote: > > On Dec 02 2012 Stefan Richter wrote: > >> Of course it remains to be seen what happens with ATA TRIM enabled SSDs > >> behind the newer SPC-3 compliant bridges, but at this time the ris

Re: [PATCH 4/9] firewire: don't use PREPARE_DELAYED_WORK

2014-02-21 Thread Stefan Richter
te the users to set the > ->workfn fields instead of overriding work functions using > PREPARE_DELAYED_WORK(). > > It would probably be best to route this with other related updates > through the workqueue tree. > > Compile tested. > > Signed-off-by: Tejun Heo > Cc: Ste

memory-barriers.txt again (was Re: [PATCH 4/9] firewire: don't use PREPARE_DELAYED_WORK)

2014-02-22 Thread Stefan Richter
So rather than deadlock, "the UNLOCK would simply complete". But /why/ does it complete? It is left unclear (to me at least), why it would do so. IOW, what mechanism will make it always proceed to the UNLOCK? Without knowing that, it is left entirely unclear (to me) why the dea

Re: memory-barriers.txt again (was Re: [PATCH 4/9] firewire: don't use PREPARE_DELAYED_WORK)

2014-02-23 Thread Stefan Richter
only the first of these two alternatives can > +occur. ^^^ ...these {,three} alternatives... -- Stefan Richter -=-- --=- ==--- http://arcgraph.de/sr/ -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of

Re: [PATCH 07/17] sbp2: Fix bidi command test

2015-01-23 Thread Stefan Richter
On Jan 23 Bart Van Assche wrote: > The SCSI core never sets sc_data_direction to DMA_BIDIRECTIONAL. > > Signed-off-by: Bart Van Assche > Cc: Stefan Richter > --- > drivers/firewire/sbp2.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: Partitions not detected with firewire - 36 bytes offset - PL-3507

2016-06-07 Thread Stefan Richter
ther there are potential issues with these bridges, but to me your problem looks like it happens on a lot higher level (i.e. transport protocol and how the buggy PL-3507 firmware handles it). > > * versions of libraries (libraw1394...), application or utility (if > applicable)

[PATCH] firewire: sbp2: allow WRITE SAME and REPORT SUPPORTED OPERATION CODES

2012-11-25 Thread Stefan Richter
no_write_same blacklist flags so that these commands can be used on respectively capable targets. I guess the Linux sbp-target could be such a target. Signed-off-by: Stefan Richter --- drivers/firewire/sbp2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/firewire/sbp2.c b/dr

Re: [PATCH] firewire: sbp2: allow WRITE SAME and REPORT SUPPORTED OPERATION CODES

2012-12-02 Thread Stefan Richter
On Nov 26 Martin K. Petersen wrote: > >>>>> "Stefan" == Stefan Richter writes: > Stefan> I did not try "sg_write_same" on any of the devices; but since > Stefan> the two SPC-3 devices are correctly identified as "fully > S

Re: [Suggestion] drivers/target/sbp/ : set tport->tpg to NULL when clean up for failure.

2012-12-13 Thread Stefan Richter
y this weekend. I'll try to get the patch sent > > out today. > > > > Have you sent ? > > I am already in linux-scsi@vger.kernel.org mailing list, but it seems > not find your patch. It was posted at target-devel: http://thread.gmane.org/gmane.linux.scsi.target.d

Re: [PATCH] [SCSI] sr: Fix multi-drive performance by using per-device mutexes

2013-01-04 Thread Stefan Richter
whether I can do some tests tomorrow. I can easily test master and slave PATA drives on a single cable behind a PATA-to-1394 bridge; but testing two drives on a single cable behind a PATA-to-PCI controller would be a bit more involved because the case of my PATA-equipped Linux PC is rath

Re: /dev/sda with 8 byte offset

2007-09-29 Thread Stefan Richter
On 27 Sep, Stefan Rutzinger wrote: > On Wed, 26 Sep 2007, Stefan Richter wrote: >> By the way, in addition to the 8 bytes offset which you found, there is >> also a difference in the reported disk size. The USB firmware says >> 390721969 sectors, the FireWire firmware says 39

Re: What still uses the block layer?

2007-10-14 Thread Stefan Richter
e is out for a fight rather than interested in help. -- Stefan Richter -=-=-=== =-=- -===- http://arcgraph.de/sr/ - 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-info.html

Re: What still uses the block layer?

2007-10-14 Thread Stefan Richter
SBP-2 is a SCSI transport protocol, hence ieee1394/sbp2 and firewire/fw-sbp2 are Linux SCSI low-level drivers. Anything else would be just wrong and infeasible in this particular case. -- Stefan Richter -=-=-=== =-=- - http://arcgraph.de/sr/ - To unsubscribe from this list: send the line &q

Re: What still uses the block layer?

2007-10-15 Thread Stefan Richter
-0 - a USB CD-ROM, /dev/st-fw-0- a FireWire tape drive, /dev/sda- a device whose transport driver didn't propose a name Of course the really interesting names will still be provided by udev-generated symlinks. -- Stefan Richter -=-=-=== =-=- - http://arcgraph.de/sr/ - To un

Re: What still uses the block layer?

2007-10-15 Thread Stefan Richter
[EMAIL PROTECTED] wrote: > On Mon, 15 Oct 2007, Stefan Richter wrote: >> Low-level networking drivers suggest a default interface name (per >> interface or as a template like eth%d into which the networking core >> inserts a lowest spare number). ... >> Could low-level S

Re: What still uses the block layer?

2007-10-15 Thread Stefan Richter
driver make use of the new naming functions in lib/, providing either just "sd", "sr" etc. or "sd-$transport-" as name prefix No patch yet, and alas I'm currently short of spare time. -- Stefan Richter -=-=-=== =-=- = http://arcgraph.de/sr

Re: What still uses the block layer?

2007-10-16 Thread Stefan Richter
ose once PATA went into the SCSI namespace and then this namespace is divided again, it's not a big issue anymore whether PATA and SATA share an ATA namespace or are distinct, except perhaps for people with IDE drive and eSATA slots. -- Stefan Richter -=-=-=== =-=- = http://arcgraph.de/

Re: What still uses the block layer?

2007-10-16 Thread Stefan Richter
iding speaking default names for device files, just like we already provide speaking default names for network interfaces. (Not for all, but for many.) -- Stefan Richter -=-=-=== =-=- = http://arcgraph.de/sr/ - To unsubscribe from this list: send the line "unsubscribe linux-scsi"

Re: What still uses the block layer?

2007-10-17 Thread Stefan Richter
in common. The only thing that could be common in the best case is the symlink to the partition's device file, based on filesystem UUID or filesystem label. ¹) unless you write your own rule specific to this on particular enclosure -- Stefan Richter -=-=-=== =-=- =---= http://arcgra

Re: [PATCH 4/4] Replace scmd->transfersize with scsi_transfer_size()

2007-10-19 Thread Stefan Richter
ed int scsi_transfer_size(struct scsi_cmnd *cmd) > +{ > + struct request *req = cmd->request; Whitespace police says: Here goes a blank line. > + if (req->cmd_type == REQ_TYPE_BLOCK_PC) > + return req->data_len; > + return cmd->device->sect

Re: What layer are "transport classes" in?

2007-10-26 Thread Stefan Richter
uld be documented on their own. They're basically service > libraries and sysfs export helpers for drivers. ^^^ (Rob, in case it's not already clear from context, James is referring with "drivers" only to low-le

Re: [patch 1/1] scsi: fix a few misleading comments in scsi.c

2007-10-26 Thread Stefan Richter
marc.info/?l=linux-scsi&m=114279682717770 -- Stefan Richter -=-=-=== =-=- ==-=- http://arcgraph.de/sr/ - 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-info.html

Re: [PATCH] Documentation/DocBook/scsi_midlayer.tmpl

2007-10-26 Thread Stefan Richter
Rob Landley wrote: > drivers/scsi/scsi.c | 181 - Also have a look at this: "Fix a few misleading comments in scsi.c" http://marc.info/?l=linux-scsi&m=119340708627893 "scsi.c: fix some typos in comments" http://marc.info/?l=linux-scsi&a

Re: [PATCH] sysfs: add filter function to groups

2007-10-29 Thread Stefan Richter
ed. How about this: int (*is_visible)(...); or bool (*shall_be_shown)(...); or bool (*should_be_displayed)(...); or whatever, so that it indicates that this function merely answers a question, but doesn't filter nor show anything. -- Stefan Richter -=-=-===

Re: [PATCH] sysfs: add filter function to groups

2007-10-30 Thread Stefan Richter
James Bottomley wrote: > OK, so is this latest revision acceptable to everyone? No complaint from me. (I'm more or less by accident in this thread anyway. Once this feature is available in mainline, I may have use for it in drivers/firewire/ though.) Thanks, -- Stefan

Re: [PATCH] sysfs: add filter function to groups

2007-10-31 Thread Stefan Richter
urn the meaning of the callback > around? > > for (...) { > if (grp->mask_out && grp->mask_out(kobj, *attr, i)) > continue; > error |= sysfs_add_file(...); > } if (!grp->is_visible || grp->is_visib

Re: [PATCH] sysfs: add filter function to groups

2007-10-31 Thread Stefan Richter
Cornelia Huck wrote: > On Wed, 31 Oct 2007 10:52:35 +0100, > Stefan Richter <[EMAIL PROTECTED]> wrote: >> if (!grp->is_visible || >> grp->is_visible(kobj, *attr, i)) >> add or remove(); >>

[PATCH 1/3] firewire: fw-sbp2: enable s/g chaining

2007-11-04 Thread Stefan Richter
Signed-off-by: Stefan Richter <[EMAIL PROTECTED]> --- drivers/firewire/fw-sbp2.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) Index: linux/drivers/firewire/fw-sbp2.c === --- linux.orig/drivers/firewire/fw-

[PATCH 2/3] ieee1394: sbp2: enable s/g chaining

2007-11-04 Thread Stefan Richter
Signed-off-by: Stefan Richter <[EMAIL PROTECTED]> --- drivers/ieee1394/sbp2.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Index: linux/drivers/ieee1394/sbp2.c === --- linux.orig/drivers/ieee1394/sbp2.c +++

[PATCH 3/3] ieee1394: sbp2: s/g list access cosmetics

2007-11-04 Thread Stefan Richter
Replace sg->length by sg_dma_len(sg). Rename a variable for shorter line lengths and eliminate some superfluous local variables. Signed-off-by: Stefan Richter <[EMAIL PROTECTED]> --- drivers/ieee1394/sbp2.c | 26 -- 1 file changed, 12 insertions(+), 14

Re: usage of max_sectors in scsi_host_template

2007-11-06 Thread Stefan Richter
/ll_rw_blk.c::blk_queue_max_sectors(). http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=block/ll_rw_blk.c;h=75c98d58f4ddf7252e2717e0924b9d6a8925b4e5#l590 -- Stefan Richter -=-=-=== =-== --==- http://arcgraph.de/sr/ - To unsubscribe from this list: send the line "

Re: usage of max_sectors in scsi_host_template

2007-11-07 Thread Stefan Richter
ctors trickles through the layers via LXR: http://lxr.free-electrons.com/ident?i=max_sectors (Not all of the LXR sites out there support search for struct members but free-electrons' does.) -- Stefan Richter -=-=-=== =-== --=== http://arcgraph.de/sr/ - To unsubscribe from this list: send th

Re: scsi_wait_scan Kconfig option

2007-12-08 Thread Stefan Richter
SCAN and let any driver which is integrated with it select it. (Not that I'm a friend of select, but here is a case where it won't hurt too much.) -- Stefan Richter -=-=-=== ==-- -=--- http://arcgraph.de/sr/ - To unsubscribe from this list: send the line "unsubscribe lin

[PATCH] ieee1394: sbp2: raise default transfer size limit

2007-12-16 Thread Stefan Richter
. Fw-sbp2 only remains faster on 1394a buses due to fw-core's gap count optimization. Signed-off-by: Stefan Richter <[EMAIL PROTECTED]> --- drivers/ieee1394/sbp2.c | 26 +++--- drivers/ieee1394/sbp2.h |1 - 2 files changed, 15 insertions(+), 12 deletions(-) I

Re: Open-FCoE on linux-scsi

2008-01-04 Thread Stefan Richter
ndeed be dedicated FCoE HBAs in the future, the following stack could exist in addition to the one above: - SCSI core, scsi_transport_fc - FCoE HBA driver(s) -- Stefan Richter -=-==--- ---= --=-- http://arcgraph.de/sr/ - To unsubscribe from this list: send the line "unsubscribe linu

Re: Open-FCoE on linux-scsi

2008-01-04 Thread Stefan Richter
ents, instead of struct fc_xyz * arguments.) ²) I'm using the term interconnect from the SCSI perspective, not from the FC perspective. -- Stefan Richter -=-==--- ---= --=-= http://arcgraph.de/sr/ - 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-info.html

Re: Open-FCoE on linux-scsi

2008-01-04 Thread Stefan Richter
Stefan Richter wrote: > The interconnect layer could be split further: > SCSI command set layer -- SCSI core -- SCSI transport layer (FCP) -- > Fibre Channel core -- Fibre Channel card drivers, FCoE drivers. > > But this would only really make sense if anybody would implement &g

Re: Open-FCoE on linux-scsi

2008-01-04 Thread Stefan Richter
Stefan Richter wrote: > I.e. you have SCSI command set layer -- SCSI core -- SCSI transport > layer -- interconnect layer. The interconnect layer could be split further: SCSI command set layer -- SCSI core -- SCSI transport layer (FCP) -- Fibre Channel core -- Fibre Channel card drivers

Re: [PATCH 0/7] convert semaphore to mutex in struct class

2008-01-06 Thread Stefan Richter
t; You don't need the second line because it says the same as the first line. Either kill it, or replace it by an explanation _why_ the semaphore is to be replaced by mutex. (I guess you do it because they are lighter-weight, both in semantics and in implementation, and because there ar

Re: [PATCH 0/7] convert semaphore to mutex in struct class

2008-01-07 Thread Stefan Richter
t iterations. But this would complicate the API because of the additional locking requirements, and hence would invariably result in buggy usages of the API. -- Stefan Richter -=-==--- ---= --=== http://arcgraph.de/sr/ - To unsubscribe from this list: send the line "unsubscribe linux-scsi&q

Re: [PATCH 0/7] convert semaphore to mutex in struct class

2008-01-07 Thread Stefan Richter
vitable. I agree. Sem2mutex conversion should not be mixed with API conversion, even if one or both seem trivial. -- Stefan Richter -=-==--- ---= --=== http://arcgraph.de/sr/ - 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-info.html

Re: [PATCH 0/7] convert semaphore to mutex in struct class

2008-01-07 Thread Stefan Richter
Greg KH wrote: > On Mon, Jan 07, 2008 at 02:23:33PM +0100, Stefan Richter wrote: >> David Brownell wrote: >> > On Monday 07 January 2008, Greg KH wrote: >> >> Most of the non-driver core code should be converted to not use the >> >> lock in the class at

Re: Buggy Firewire bridge 'Prolific PL3507'

2008-01-08 Thread Stefan Richter
t all like to see a respective workaround added to the sbp2 driver. Sbp2 is a transport layer which does not touch commands. Maybe an in-kernel workaround would be considered by whoever maintains the point where that extra INQUIRY is injected (via sd or sg, I don't know which). -- Stefan Richter -==

Re: [RFC] Implementation of SCSI dynamic power management

2008-01-08 Thread Stefan Richter
utosuspend method has been called again. > * Return 0 if the resume was successful, otherwise a negative > * error code. Who prevents them? The autoresume() implementation, or its caller? -- Stefan Richter -=-==--- ---= -=--- http://arcgraph.de/sr/ - To unsubscribe from thi

Re: Buggy Firewire bridge 'Prolific PL3507'

2008-01-08 Thread Stefan Richter
ke such a filtering, leave the workaround to userspace. And the latter is IMO most preferrable, like James already wrote: Don't let hald issue INQUIRY in the first place. -- Stefan Richter -=-==--- ---= -=--- http://arcgraph.de/sr/ - To unsubscribe from this list: send the line "

Re: AHCI finds disks; no /dev/sd inodes bound?

2008-01-09 Thread Stefan Richter
users definitely never had that problem. The "select SCSI" in libata's Kconfig option is not of great help with that issue and is misguided and unnecessary as well. -- Stefan Richter -=-==--- ---= -=--= http://arcgraph.de/sr/ - 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-info.html

Re: AHCI finds disks; no /dev/sd inodes bound?

2008-01-09 Thread Stefan Richter
Stefan Richter wrote: >>> On Wed, 2008-01-09 at 09:21 -0800, Jon Watte wrote: >>> > I wonder if it's possible to magically turn that on when selecting >>> > AHCI support in menuconfig? That way, it'd be harder for someone else >>> > t

Re: AHCI finds disks; no /dev/sd inodes bound?

2008-01-09 Thread Stefan Richter
Stefan Richter wrote: > The "select SCSI" in libata's Kconfig option is not of great > help with that issue and is misguided and unnecessary as well. +comment "Serial and Parallel ATA need SCSI command sets" + depends on SCSI=n menuconfig ATA

Re: AHCI finds disks; no /dev/sd inodes bound?

2008-01-09 Thread Stefan Richter
texts and prompts aren't changed¹ to say what they really do, your BLK_DEV_ATA_SD and BLK_DEV_ATA_SR are actually very nice to have. --- ¹) No patch attached. I posted something a while ago. -- Stefan Richter -=-==--- ---= -=--= http://arcgraph.de/sr/ - To unsubscribe from this list: s

Re: AHCI finds disks; no /dev/sd inodes bound?

2008-01-09 Thread Stefan Richter
Andi Kleen wrote: > On Wed, Jan 09, 2008 at 10:41:59PM +0100, Stefan Richter wrote: >> However, this further obfuscates the fact that libata uses Linux' SCSI >> midlayer and highlevel. Which is a bad thing. For example, there are > > People are not interested in

Re: AHCI finds disks; no /dev/sd inodes bound?

2008-01-09 Thread Stefan Richter
Stefan Richter wrote: > The Kconfig menu layouts, prompts, and help texts are there to inform/ > "educate"/ guide the user when configuring the build environment, with > the goal that he safely and efficiently gets to a working software > configuration. It might have been n

Re: AHCI finds disks; no /dev/sd inodes bound?

2008-01-09 Thread Stefan Richter
Andi Kleen wrote: > On Thu, Jan 10, 2008 at 12:03:59AM +0100, Stefan Richter wrote: >>> Kconfig is also not an educational facility or high level >>> design description of the code, but a pragmatic tool to get the job >>> done. >> I did not talk about educati

Re: [PATCH 0/7] convert semaphore to mutex in struct class

2008-01-10 Thread Stefan Richter
mutex_lock(&class->mutex); > + list_for_each_entry(dev, &class->children, node) > + if (match(dev, data) && class_device_get(dev)) > + break; > + mutex_unlock(&class->mutex); > + > + return dev; > +} Here too? -- Stefan

Re: [Bug 9734] New: I/O error when inserting a second firewire sata disk

2008-01-13 Thread Stefan Richter
commands during that time at all. The time from bus reset to successful reconnect is typically circa a second, on bigger buses with lots of protocol activity after bus reset perhaps a few seconds. (Could IMO still be optimized, in both of the drivers/ieee1394 and drivers/firewire implementations.) -

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
you can tell the SCSI core driver at boot time (or module insertion time) and/or at runtime to - switch on default quirk flags, - add quirk flags for selected devices per name matching. Alas I don't know of a good documention how to do either of this, and I am not familiar enough with the

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 R

[PATCH] firewire: fw-sbp2: prepare for s/g chaining

2008-01-15 Thread Stefan Richter
Signed-off-by: Stefan Richter <[EMAIL PROTECTED]> --- Replacement of patch "firewire: fw-sbp2: enable s/g chaining". It's the same, minus '+ .use_sg_chaining = ENABLE_SG_CHAINING,' hunk to prevent conflicts when James is going to remove .use_sg_chaining. dr

[PATCH] ieee1394: sbp2: prepare for s/g chaining

2008-01-15 Thread Stefan Richter
Signed-off-by: Stefan Richter <[EMAIL PROTECTED]> --- Replacement of patch "ieee1394: sbp2: enable s/g chaining". It's the same, minus '+ .use_sg_chaining = ENABLE_SG_CHAINING,' hunk to prevent conflicts when James is going to remove .use_sg_chaining. driver

Re: [PATCH] ieee1394: sbp2: prepare for s/g chaining

2008-01-15 Thread Stefan Richter
Stefan Richter wrote: >> drivers/firewire/fw-sbp2.c |7 --- >> 1 file changed, 4 insertions(+), 3 deletions(-) > drivers/ieee1394/sbp2.c |3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Never mind the diffstats. I forgot to refresh them.

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

2008-01-17 Thread Stefan Richter
Perhaps from a kmem_cache. > > List of drivers/files: > drivers/firewire/fw-sbp2.c > drivers/ieee1394/sbp2.[ch] > > Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]> Acked-by: Stefan Richter <[EMAIL PROTECTED]> > --- > drivers/firewire/fw-sbp2.c

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

2008-01-17 Thread Stefan Richter
Boaz Harrosh wrote: > Those that meant SG_ALL == 255: > > [PATCH 1/8] firewire: ieee1394: Move away from SG_ALL They simply mean SG_ALL == something, as long as it isn't unreasonably small or large. -- Stefan Richter -=-==--- ---= =---= http://arcgraph.de/sr/ - To unsubsc

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

2008-01-18 Thread Stefan Richter
Stefan Richter wrote: > My guess is that there won't be conflicts of this with linux1394-2.6.git > anytime soon, so taking it into any other tree should be fine. Wrong, there should already be a (trivial) conflict due to a patch from December. Another (trivially) conflicting patch

Re: [Bug 9734] New: I/O error when inserting a second firewire sata disk

2008-01-19 Thread Stefan Richter
We need to do something there, because this situation is not too unusual (e.g. when several FireWire devices are being powered up together). I will proceed to experiment with this as spare time permits. Of course any advice on how to best interact with the SCSI core while the tra

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

2008-01-19 Thread Stefan Richter
t; scsi-bidi-2.6.git tree. That one's built on top of all the currently > conflicting trees, and is scheduled to be the last thing merged in the > merge window (or at least to wait until the others its built on have > gone in). Good, everything should come together nicely then. -- Stef

Re: [Bug 9734] New: I/O error when inserting a second firewire sata disk

2008-01-19 Thread Stefan Richter
Stefan Richter wrote: > However, the first thing I shall try is to insert a "return > SCSI_MLQUEUE_HOST_BUSY" early in sbp2_scsi_queuecommand, depending on a > check of the logical unit's generation. Doesn't help. Even worse, it's deadlocky. -- Stefan Ri

Re: [PATCH] firewire: fw-sbp2: prepare for s/g chaining

2008-01-19 Thread Stefan Richter
FUJITA Tomonori wrote: > On Tue, 15 Jan 2008 21:10:50 +0100 (CET) > Stefan Richter <[EMAIL PROTECTED]> wrote: >> +++ linux/drivers/firewire/fw-sbp2.c >> @@ -1107,9 +1107,9 @@ sbp2_map_scatterlist(struct sbp2_command >> * elements larger than 65535 bytes, som

Re: udev hangs USB-storage (HP r707 camera)

2008-01-19 Thread Stefan Richter
t's what I wrote down on a piece of paper a long time ago; don't ask me what it means in detail. :-) -- Stefan Richter -=-==--- ---= =-=-- http://arcgraph.de/sr/ - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [EMAIL PR

Re: [SCSI] scsi.h: add macro for enclosure bit of inquiry data

2008-01-20 Thread Stefan Richter
xisting similar functions in scsi_device.h which don't have expressive names. -- Stefan Richter -=-==--- ---= =-=-- http://arcgraph.de/sr/ - 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-info.html

Re: PATCH: usb-storage-set-last-sector-bug-flag.patch

2008-01-24 Thread Stefan Richter
on-buggy ones. The only cost of this workaround is (1.) the code, (2.) the runtime/ bandwidth/ latency overhead for accesses which reach the last sector. Somebody correct me if I got something wrong. -- Stefan Richter -=-==--- ---= ==--- http://arcgraph.de/sr/ - To unsubscribe from

Re: PATCH: usb-storage-set-last-sector-bug-flag.patch

2008-01-24 Thread Stefan Richter
ce for the new flag. No wonder that it is confused with the (well named) "fix_capacity" flag. How about "read_last_sector_separately" or something in the way? -- Stefan Richter -=-==--- ---= ==--- http://arcgraph.de/sr/ - To unsubscribe from this list: send the line &q

on patch "[SCSI] relax scsi dma alignment"

2008-01-26 Thread Stefan Richter
5 files changed, 34 insertions(+), 11 deletions(-) No, FireWire only requires 4 bytes alignment. I will channel a reversion of the firewire and ieee1394 hunks through linux1394-2.6.git for 2.6.26. -- Stefan Richter -=-==--- ---= ==-=- http://arcgraph.de/sr/ - To unsubscribe from this list: send th

[PATCH 2.6.24-git3] firewire: fw-sbp2: relax SCSI DMA alignment

2008-01-27 Thread Stefan Richter
Signed-off-by: Stefan Richter <[EMAIL PROTECTED]> --- Not run-time tested yet. drivers/firewire/fw-sbp2.c |7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) Index: linux-2.6.24-git3/drivers/firewire/fw-

[PATCH 2.6.24-git3] ieee1394: sbp2: relax SCSI DMA alignment

2008-01-27 Thread Stefan Richter
Signed-off-by: Stefan Richter <[EMAIL PROTECTED]> --- Not run-time tested yet. drivers/ieee1394/sbp2.c |7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) Index: linux-2.6.24-git3/drivers/ieee1394/sbp2.c === ---

Re: [Bug 9734] New: I/O error when inserting a second firewire sata disk

2008-02-02 Thread Stefan Richter
i_Host for each target. Hence there are difficulties with targets with multiple logical units, but I probably got them sorted out now. There remain frequent problems with reconnection + re-login failures though. These failures don't happen with exactly the same bus topology if I don'

Re: [PATCH 4/24][RFC] firewire & ieee1394: Simple convert to new scsi_eh_cpy_sense.

2008-02-04 Thread Stefan Richter
itten in-place in sbp2_status. But I don't know if this is a worthwhile optimization; it would reduce readability. -- Stefan Richter -=-==--- --=- --=-- http://arcgraph.de/sr/ - 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-info.html

no INQUIRY from userspace please (was Re: [PATCH 7/9] scsi_dh: Add support for SDEV_PASSIVE)

2008-02-07 Thread Stefan Richter
e will never be more than one INQUIRY sent. They start to return garbled data or crash if they get a second INQUIRY. -- Stefan Richter -=-==--- --=- --=== http://arcgraph.de/sr/ - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [EMAIL

Re: no INQUIRY from userspace please

2008-02-07 Thread Stefan Richter
(adding Cc linux-hotplug) James Bottomley wrote: > On Thu, 2008-02-07 at 11:08 +0100, Stefan Richter wrote: >> Mike Anderson wrote: >> > A number of user apps like lvm scanning that execute media access commands >> > already have filter capability to filter device

Re: no INQUIRY from userspace please

2008-02-07 Thread Stefan Richter
e non-udev distros slowly went out of fashion on the desktop, there was a certain frequency of reports of the latter kind of FireWire devices, but this was before I became aware of that kind of firmware bug, therefore I don't have any data whether it played a role for these cases. -- Stefan Ri

Re: [PATCH 11/9] firewire: fw-sbp2: enforce a retry of __scsi_add_device if bus generation changed

2008-02-08 Thread Stefan Richter
(Adding Cc: LSML) Jarod Wilson wrote: > On Wednesday 06 February 2008 04:09:47 pm Stefan Richter wrote: >> take care that __scsi_add_device does not return success >> even though the SCSI high-level driver probing failed (sd READ_CAPACITY >> and friends) due to bus reset.

[PATCH 11/9 update] firewire: fw-sbp2: enforce a retry of __scsi_add_device if bus generation changed

2008-02-08 Thread Stefan Richter
Date: From: Stefan Richter <[EMAIL PROTECTED]> Subject: firewire: fw-sbp2: enforce a retry of __scsi_add_device if bus generation changed fw-sbp2 is unable to reconnect while performing __scsi_add_device because there is only a single workqueue thread context available for both at the

Re: [PATCH 11/9 update] firewire: fw-sbp2: enforce a retry of __scsi_add_device if bus generation changed

2008-02-16 Thread Stefan Richter
se > and all that good stuff. FYI, I now committed this patch to linux1394-2.6.git after folding patch "firewire: fw-sbp2: retry login if scsi_device was offlined early" into it. -- Stefan Richter -=-==--- --=- = http://arcgraph.de/sr/ - To unsubscribe from this list: send the li

[PATCH] firewire: fw-sbp2: fix NULL pointer deref in slave_alloc

2008-02-17 Thread Stefan Richter
Fix a kernel bug when running rescan-scsi-bus while a FireWire disk is connected: http://bugzilla.kernel.org/show_bug.cgi?id=10008 Signed-off-by: Stefan Richter <[EMAIL PROTECTED]> --- drivers/firewire/fw-sbp2.c |4 1 file changed, 4 insertions(+) Index: linux/drivers/firewire/f

[PATCH] ieee1394: sbp2: fix rescan-scsi-bus

2008-02-17 Thread Stefan Richter
rescan-scsi-bus used to add SBP-2 targets which weren't there. Signed-off-by: Stefan Richter <[EMAIL PROTECTED]> --- drivers/ieee1394/sbp2.c |3 +++ 1 file changed, 3 insertions(+) Index: linux/drivers/ieee

Re: [PATCH] firewire: fw-sbp2: fix NULL pointer deref in slave_alloc

2008-02-17 Thread Stefan Richter
On 17 Feb, Stefan Richter wrote: > Fix a kernel bug when running rescan-scsi-bus while a FireWire disk is > connected: http://bugzilla.kernel.org/show_bug.cgi?id=10008 > > Signed-off-by: Stefan Richter <[EMAIL PROTECTED]> > --- > drivers/firewire/fw-sbp2.c |4 +

Re: [PATCH] ieee1394: sbp2: fix rescan-scsi-bus

2008-02-17 Thread Stefan Richter
James Bottomley wrote: > On Sun, 2008-02-17 at 14:57 +0100, Stefan Richter wrote: >> rescan-scsi-bus used to add SBP-2 targets which weren't there. ... >> +++ linux/drivers/ieee1394/sbp2.c >> @@ -1974,6 +1974,9 @@ static int sbp2scsi_slave_alloc(struct s >> { >

[PATCH] firewire: fw-sbp2: fix NULL pointer deref in scsi_remove_device

2008-02-17 Thread Stefan Richter
c > [] ? :firewire_sbp2:sbp2_remove+0x10/0x14 ... > ---[ end trace 2a9c61e9883e29d2 ]--- > Fix a kernel bug when unplugging an SBP-2 device after having its scsi_device already removed via the "delete" sysfs attribute. Signed-off-by: Stefan Richter <[EMAIL PROTECTED

Re: [PATCH] ieee1394: sbp2: fix rescan-scsi-bus

2008-02-17 Thread Stefan Richter
>> On Sun, 2008-02-17 at 14:57 +0100, Stefan Richter wrote: >>> rescan-scsi-bus used to add SBP-2 targets which weren't there. PS: It probably wasn't clear: rescan-scsi-bus.sh is *not* necessary for sbp2 (under Linux 2.6, that is). The patch merely prevents weird thi

[PATCH update] firewire: fw-sbp2: fix NULL pointer deref in scsi_remove_device

2008-02-19 Thread Stefan Richter
Fix a kernel bug when unplugging an SBP-2 device after having its scsi_device already removed via the "delete" sysfs attribute. Signed-off-by: Stefan Richter <[EMAIL PROTECTED]> --- Update: A _put was missing in a failure path. drivers/firewire/fw-sbp2.c |8 1

Re: [PATCH] USB enclosures seem to require read(16) with >2TB drives

2012-11-11 Thread Stefan Richter
ther testing for INQUIRY_data.VERSION >= something is a sufficiently safe test. > 2. if 16-byte CDBs are supported, then use them; only drop down to 10-byte > CDBs if 16-byte CDBs are unavailable. Don't make the decision by comparing > the LBA on every IO. -- Stefan Richter

Re: [PATCH] USB enclosures seem to require read(16) with >2TB drives

2012-11-12 Thread Stefan Richter
On Nov 11 Stefan Richter wrote: > On Nov 09 Elliott, Robert (Server Storage) wrote: > > I recommend broadening this patch. T10 is discussing making READ (10), > > WRITE (10), etc. obsolete in SBC-4 in favor of their 16-byte CDB > > counterparts. > > > > The a

Re: dead CONFIG_ variables: drivers/scsi/

2007-05-03 Thread Stefan Richter
tivation switch is also documented by a comment. Of course we should restrain ourselves WRT the use of #if 0 ... #endif blocks in in-tree code, but sometimes they have sensible applications. -- Stefan Richter -=-=-=== -=-= ---== http://arcgraph.de/sr/ - To unsubscribe from this list: send the

Re: [RFC] [PATCH 0/5] qla4xxx: Add IPv6 support and misc

2007-05-03 Thread Stefan Richter
ch an own descriptive patch title (instead of naming them all "qla4xxx: Add IPv6 support and misc"). Also, you could put the above descriptions into the individual patch descriptions. -- Stefan Richter -=-=-=== -=-= ---== http://arcgraph.de/sr/ - To unsubscribe from this list: send t

use_sg != 0 assumption (was Re: [PATCH 5/9] Drop single buffer request support.)

2007-05-10 Thread Stefan Richter
d_orb_map_scatterlist(orb) < 0) > goto fail_map_payload; > - } else if (cmd->request_bufflen > 0) { > - if (sbp2_command_orb_map_buffer(orb) < 0) > - goto fail_map_payload; > - } > > fw_memcpy_to_be32(&

Re: [PATCH 6/9] Make scsi_host_template::proc_name const char * instead of char *.

2007-05-10 Thread Stefan Richter
csi_host.h > +++ b/include/scsi/scsi_host.h > @@ -343,7 +343,7 @@ struct scsi_host_template { > /* >* Name of proc directory >*/ > - char *proc_name; > + const char *proc_name; > > /* >* Used to store th

Re: use_sg != 0 assumption (was Re: [PATCH 5/9] Drop single buffer request support.)

2007-05-10 Thread Stefan Richter
Christoph Hellwig wrote: > On Thu, May 10, 2007 at 12:38:31PM +0200, Stefan Richter wrote: >> Would a BUG_ON(cmd->use_sg == 0); be in order? > > I don't think we should put this into every driver. If you want to > be sure this doesn't happen anymore put it ju

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

2007-05-11 Thread Stefan Richter
o in short, moving the DMA mapping into mid layer should also be fine with the old and the new SBP-2 driver. -- Stefan Richter -=-=-=== -=-= -=-== http://arcgraph.de/sr/ - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [EMAIL PROTECTE

  1   2   3   >