Re: [linux-usb-devel] Re: reduce max_sectors permanently or no

2004-03-18 Thread Matthew Dharm
On Thu, Mar 18, 2004 at 08:17:00PM -0800, David Brownell wrote: > Pat LaVarre wrote: > >Agreed, shattering a read/ write stream into miniscule pieces improves > >interop at small cost to typical usage of much storage. > > It improves interop, yes ... but that cost would only be small > for full s

Re: [linux-usb-devel] need help: usb IrDA

2004-03-18 Thread Andrew Zabolotny
On Thu, 18 Mar 2004 19:19:05 +0530 (IST) "navtez" <[EMAIL PROTECTED]> wrote: > i have just started work on USB IrDA. the device on whih i m working has > bulk in end pt: 82 and bulk out end pt: 1. A bit off-topic: is there a way to work with a USB IrDA dongle like with a simple serial port (e.g. l

Re: [linux-usb-devel] Re: reduce max_sectors permanently or no

2004-03-18 Thread David Brownell
Pat LaVarre wrote: Agreed, shattering a read/ write stream into miniscule pieces improves interop at small cost to typical usage of much storage. It improves interop, yes ... but that cost would only be small for full speed devices. It's called "de-tuning", or "pessimizing" (contrast "optimizing"

[linux-usb-devel] Re: reduce max_sectors permanently or no

2004-03-18 Thread Pat LaVarre
Agreed, shattering a read/ write stream into miniscule pieces improves interop at small cost to typical usage of much storage. Sorry I mistook the words "I wonder if we shouldn't reduce max_sectors permanently" as a disavowal of your cogent discussion: We should let people who want more perform

Re: Culprit found? (was: [linux-usb-devel] Re: USB on Via KT600 massive trouble in Linux 2.6 (quite fresh BK version))

2004-03-18 Thread Matthias Andree
On Fri, 19 Mar 2004, Matthias Andree wrote: > I'll now see what 2.4 does and spam Yet Another Log into this list. Linux 2.4 doesn't create hotplug events, unlike 2.6, so it doesn't get to run usbmodules, hence no control junk on the wire while bulk transfers are in progress. Looking forward to e

Culprit found? (was: [linux-usb-devel] Re: USB on Via KT600 massive trouble in Linux 2.6 (quite fresh BK version))

2004-03-18 Thread Matthias Andree
On Thu, 18 Mar 2004, Alan Stern wrote: > On Thu, 18 Mar 2004, David Brownell wrote: > > > Matthias Andree wrote: > > > I call it excessive because I wonder if it's correct to feed a hotplug > > > event just because $USER_SPACE_PROGRAM has decided to open a > > > /proc/bus/usb/MMM/NNN device. > >

[linux-usb-devel] Re: [PATCH]race in ati_remote and small cleanup

2004-03-18 Thread Greg KH
On Thu, Mar 18, 2004 at 06:49:01PM +0100, Oliver Neukum wrote: > > > So, the attached patch against 2.6.5-rc1-mm1 includes a mutex to lock > > the open/disconnect paths, modelled after the usb-skeleton driver. It > > includes Oliver Neukum's fixes and other cleanups as well. > > > > Greg, if Oliv

[linux-usb-devel] Re: need help: usb IrDA

2004-03-18 Thread Greg KH
On Thu, Mar 18, 2004 at 07:19:05PM +0530, navtez wrote: > i have just started work on USB IrDA. the device on whih i m working has > bulk in end pt: 82 and bulk out end pt: 1. > i want to know that is there any need to intialize a IrDA (using IOCTL) > or it will work fine just using reading or wri

Re: [linux-usb-devel] Re: USB on Via KT600 massive trouble in Linux 2.6 (quite fresh BK version)

2004-03-18 Thread Matthias Andree
On Thu, 18 Mar 2004, Alan Stern wrote: > > Are you sure that's what's making it happen? Or is your > > software maybe trying to set the configuration? That would > > get rid of the old devices, and create new ones. > > Something definitely is setting the configuration. The interface > registr

Re: [linux-usb-devel] Re: USB on Via KT600 massive trouble in Linux 2.6 (quite fresh BK version)

2004-03-18 Thread Matthias Andree
On Thu, 18 Mar 2004, Alan Stern wrote: > > Are you sure that's what's making it happen? Or is your > > software maybe trying to set the configuration? That would > > get rid of the old devices, and create new ones. > > Something definitely is setting the configuration. The interface > registr

[linux-usb-devel] Storage device warning in dmesg.

2004-03-18 Thread Urban Borstnik
The 2.6.4 and 2.6.3 (and possibly some earlier) kernels log the following message when I plug in a Lexar CompactFlash Reader: usb-storage: This device (05dc,b002,0113 S 06 P 50) has unneeded SubClass and Protocol entries in unusual_devs.h Please send a copy of this message to <[EMAIL PROTECTED]

Re: [linux-usb-devel] Re: USB on Via KT600 massive trouble in Linux 2.6 (quite fresh BK version)

2004-03-18 Thread Alan Stern
On Thu, 18 Mar 2004, David Brownell wrote: > Matthias Andree wrote: > > I call it excessive because I wonder if it's correct to feed a hotplug > > event just because $USER_SPACE_PROGRAM has decided to open a > > /proc/bus/usb/MMM/NNN device. > > Are you sure that's what's making it happen? Or is

Re: [linux-usb-devel] Re: USB on Via KT600 massive trouble in Linux 2.6 (quite fresh BK version)

2004-03-18 Thread David Brownell
Matthias Andree wrote: 2. You observe an excessive amount of hotplug activity. I call it excessive because I wonder if it's correct to feed a hotplug event just because $USER_SPACE_PROGRAM has decided to open a /proc/bus/usb/MMM/NNN device. Are you sure that's what's making it happen? Or is

[linux-usb-devel] Re: USB on Via KT600 massive trouble in Linux 2.6 (quite fresh BK version)

2004-03-18 Thread Matthias Andree
On Thu, 18 Mar 2004, Alan Stern wrote: > > Hotplug would be the only interesting one running at the same time. > > Of course! Just put the clues together, Watson! > > 1. Problem is caused by control messages, but strace shows iscan > only uses bulk messages. > > 2. You observe

[linux-usb-devel] USB: gphoto2 hangs, device disconnection oddity (was Re: 2.6.5-rc1-mm2)

2004-03-18 Thread Sean Neakums
On one machine (a Dell Inspiron 4100 laptop), with 2.6.5-rc1-mm2 and 2.6.5-rc1-mm1, but not with 2.6.5-rc1, gphoto2 hangs trying to talk to my camera: $ ps -C gphoto2 -o comm,s,wchan COMMAND S WCHAN gphoto2 D usb_disable_device However, I was able to connect, mount a

Re: [linux-usb-devel] 2.6.5rc1bk2, 2.6.3, 2.6.0: USB HDD (sd_mod) spams my syslog + crashes

2004-03-18 Thread Alan Stern
On Thu, 18 Mar 2004, Jens Benecke wrote: > Hi, > > I have an external HDD (200G) in a case that has both FW and USB2 outputs. > FW work great since 2.6.2, connecting the USB to a machine running 2.4.23 > instantly rebooted the machine, and in 2.6 (currently 2.6.5rc1bk2) it > doesn't work ei

Re: [linux-usb-devel] GeneSys lockups not so random after all.

2004-03-18 Thread Alan Stern
On Thu, 18 Mar 2004, Brad Campbell wrote: > G'day all, > > I have been beating this GeneSys adaptor to death and have found out it > appears to be a certain data sequence/packet that kills it. > > Attached it a gzipped 1024 byte file. (It's gzipped just to add a crc to > it, it's out of an .avi

Re: [linux-usb-devel] oops when using USB CDROM

2004-03-18 Thread Alan Stern
On Thu, 18 Mar 2004, Anton Blanchard wrote: > Hi, > > I mounted a cdrom and hot unplugged it without unmounting. It didnt oops > until I tried to unmount it, then got a NULL pointer in cdrom_release. > This is on a ppc64 blade. > > It looks like cdo->lock_door is NULL. > > Anton > > 0:mon> e >

Re: [linux-usb-devel] unneeded subclass error in driver

2004-03-18 Thread Alan Stern
On Thu, 18 Mar 2004, Not Zed wrote: > Hi guys, > > Just following driver/kernel directions. > > This happens when plugging in the camera listed in the output that > follows the directions. > > Kernel is 2.6.4 with no other patches. > > Let me know if you need any other info/help. > > BTW even

[linux-usb-devel] Re: reduce max_sectors permanently or no

2004-03-18 Thread Matthew Dharm
On Thu, Mar 18, 2004 at 12:09:45PM -0700, Pat LaVarre wrote: > Matt D: > > >>>Subject: Re: [usb-storage] Re: [linux-usb-devel] unneeded subclass > >>>error in driv er > >>>Try changing max_sectors in linux/drivers/usb/storage/scsiglue.c to a > >>>smaller number (i.e. 16 or 32 or 64) and see if th

Re: [linux-usb-devel] UHCI

2004-03-18 Thread Alan Stern
On Thu, 18 Mar 2004, Malcolm Blaney wrote: > Alan Stern wrote: > > There's nothing obviously wrong here. You can try using the patch for > > Linux 2.6.4 below, which will print out information to the system log when > > certain key events occur. Also, you should make sure the log is echoed to >

[linux-usb-devel] Re: USB on Via KT600 massive trouble in Linux 2.6 (quite fresh BK version)

2004-03-18 Thread Alan Stern
On Wed, 17 Mar 2004, Matthias Andree wrote: > On Wed, 17 Mar 2004, Alan Stern wrote: > > > Another possibility (should have thought of this before) is that the > > control transfers come from a different process, maybe a child of the one > > you're tracing. Not that it really matters... > > H

Re: [linux-usb-devel] Re: [PATCH]race in ati_remote and small cleanup

2004-03-18 Thread Oliver Neukum
Am Thursday 18 March 2004 19:57 schrieb Juergen Stuber: > Hi, > > Oliver Neukum <[EMAIL PROTECTED]> writes: > > Am Thursday 18 March 2004 17:27 schrieb Stephen Hemminger: > >> > >> Wouldn't this be a good place to use wait_event_interruptible macro? > > > > If you find a way to use it with a time

[linux-usb-devel] reduce max_sectors permanently or no

2004-03-18 Thread Pat LaVarre
Matt D: Subject: Re: [usb-storage] Re: [linux-usb-devel] unneeded subclass error in driv er Try changing max_sectors in linux/drivers/usb/storage/scsiglue.c to a smaller number (i.e. 16 or 32 or 64) and see if that improves the transfer speed. Cool, 32 or 64, about 5x faster than when i went to

[linux-usb-devel] Re: [PATCH]race in ati_remote and small cleanup

2004-03-18 Thread Juergen Stuber
Hi, Oliver Neukum <[EMAIL PROTECTED]> writes: > Am Thursday 18 March 2004 17:27 schrieb Stephen Hemminger: >> >> Wouldn't this be a good place to use wait_event_interruptible macro? > > If you find a way to use it with a timeout, yes it would. what's wrong with wait_event_interruptible_timeout()

[linux-usb-devel] Re: [PATCH]race in ati_remote and small cleanup

2004-03-18 Thread Oliver Neukum
> So, the attached patch against 2.6.5-rc1-mm1 includes a mutex to lock > the open/disconnect paths, modelled after the usb-skeleton driver. It > includes Oliver Neukum's fixes and other cleanups as well. > > Greg, if Oliver's patches have already been applied I can send along a > smaller patch w

[linux-usb-devel] Re: [PATCH]race in ati_remote and small cleanup

2004-03-18 Thread Torrey Hoffman
On Thu, 2004-03-18 at 07:44, Oliver Neukum wrote: > Hi, > > you must use set_current_state() only after usb_submit_urb() with GFP_KERNEL > as second argument, because it may sleep to allocate memory and is woken up > resetting the state to TASK_RUNNING. In that case you had a busy polling loop. >

[linux-usb-devel] 2.6.5rc1bk2, 2.6.3, 2.6.0: USB HDD (sd_mod) spams my syslog + crashes

2004-03-18 Thread Jens Benecke
Hi, I have an external HDD (200G) in a case that has both FW and USB2 outputs. FW work great since 2.6.2, connecting the USB to a machine running 2.4.23 instantly rebooted the machine, and in 2.6 (currently 2.6.5rc1bk2) it doesn't work either: I tried on a 3 year old P3-700 laptop with

[linux-usb-devel] [PATCH]disconnect race in ati_remote

2004-03-18 Thread Oliver Neukum
Hi, there's a race condition between close and disconnect in that driver leading to a possible double kfree(). It can be prevented by use of a semaphore. Regards Oliver You can import this changeset into BK by piping this whole message to: '| bk receive [path to repositor

Re: [linux-usb-devel] [PATCH]race in ati_remote and small cleanup

2004-03-18 Thread Oliver Neukum
Am Thursday 18 March 2004 17:27 schrieb Stephen Hemminger: > On Thu, 18 Mar 2004 16:44:39 +0100 > Oliver Neukum <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > you must use set_current_state() only after usb_submit_urb() with GFP_KERNEL > > as second argument, because it may sleep to allocate memory

Re: [linux-usb-devel] [PATCH]race in ati_remote and small cleanup

2004-03-18 Thread Stephen Hemminger
On Thu, 18 Mar 2004 16:44:39 +0100 Oliver Neukum <[EMAIL PROTECTED]> wrote: > Hi, > > you must use set_current_state() only after usb_submit_urb() with GFP_KERNEL > as second argument, because it may sleep to allocate memory and is woken up > resetting the state to TASK_RUNNING. In that case you

[linux-usb-devel] [PATCH]race in ati_remote and small cleanup

2004-03-18 Thread Oliver Neukum
Hi, you must use set_current_state() only after usb_submit_urb() with GFP_KERNEL as second argument, because it may sleep to allocate memory and is woken up resetting the state to TASK_RUNNING. In that case you had a busy polling loop. Furthermore, always use wake_up unconditionally. It checkes an

[linux-usb-devel] Re: MS Optical Wheel Mouse freezes after several hours

2004-03-18 Thread Andreas Schildbach
Alan Stern wrote: The UHCI driver still has a couple of races against the hardware. It's not totally unexpected that you might see this sort of thing, although I would expect it not to be quite so frequent. Of course, the problem might be something completely different. A failure in the HID

[linux-usb-devel] GeneSys lockups not so random after all.

2004-03-18 Thread Brad Campbell
G'day all, I have been beating this GeneSys adaptor to death and have found out it appears to be a certain data sequence/packet that kills it. Attached it a gzipped 1024 byte file. (It's gzipped just to add a crc to it, it's out of an .avi and incompressible) By doing zcat lockup.file.gz | dd of

[linux-usb-devel] need help: usb IrDA

2004-03-18 Thread navtez
i have just started work on USB IrDA. the device on whih i m working has bulk in end pt: 82 and bulk out end pt: 1. i want to know that is there any need to intialize a IrDA (using IOCTL) or it will work fine just using reading or writing through endpoints ( as described in usb-skeleton.c by greg

[linux-usb-devel] Re: Re: Document

2004-03-18 Thread starmail
Your file is attached. Norton AntiVirus Deleted1.txt Description: plain/text

[linux-usb-devel] need help: Regarding USB Drivers

2004-03-18 Thread navtez
i have just started working on USB myDev Device Drivers. I have some Problem with DevFS.would u pls help me... this driver compiles successfully and runs successfully but i m unable to create dir using devfs_mk_dir and register with defs_register. I have also read rubini's book and ur documentat

[linux-usb-devel] MDaemon Warning - Virus Found

2004-03-18 Thread postmaster
The following message had attachment(s) which contained viruses: >From : [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject : Re: Document Date : Thu, 18 Mar 2004 12:37:14 +0300 Message-ID: AttachmentVirus name Action taken -

[linux-usb-devel] ALERT - GroupShield ticket number OA4437_1079598665_NTRTEX1_1 wa s generated

2004-03-18 Thread GroupShield for Exchange (NTRTEX1)
Action Taken: The attachment was quarantined from the message and replaced with a text file informing the recipient of the action taken. To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> From: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Sent: 128627456,29625539 Subject: Re: Here Attachment Details:- Attach

Re: [linux-usb-devel] unneeded subclass error in driver

2004-03-18 Thread Matthew Dharm
On Thu, Mar 18, 2004 at 12:16:15PM +0800, Not Zed wrote: > On Wed, 2004-03-17 at 19:53 -0800, Matthew Dharm wrote: > > > Try changing max_sectors in linux/drivers/usb/storage/scsiglue.c to a > > smaller number (i.e. 16 or 32 or 64) and see if that improves the transfer speed. > > Cool, 32 or 64,