public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* USB broken in 2.4.0
@ 2001-01-05 17:38 Heitzso
  2001-01-05 18:00 ` Greg KH
  0 siblings, 1 reply; 10+ messages in thread
From: Heitzso @ 2001-01-05 17:38 UTC (permalink / raw)
  To: 'antirez@invece.org',
	'linux-kernel@vger.kernel.org',
	'Johannes Erdfelt'

I just tested with fresh-out-of-the-box
2.4.0 and using the newer libusb 0.1.2 
as suggested by antirez  (see email chain
below for more info).  I compiled libusb
and s10sh code this AM under 2.4.0. 

It blows up BAD by finding increasingly
larger photo images in the camera over
the usb link and extracting them to disk.
So by the third file you're trying to
extract gig sized files.  Obviously the
filesystem files up, the sytem chokes, etc.

This is the same code that works fine
under 2.2.18 kernel (I use it all of the
time there).


Heitzso

-----Original Message-----
From: antirez [mailto:antirez@invece.org]
Sent: Wednesday, January 03, 2001 6:00 PM
To: Heitzso
Cc: 'Johannes Erdfelt'; 'antirez@invece.org'
Subject: Re: usb broken in 2.4.0 prerelease versus 2.2.18


On Wed, Jan 03, 2001 at 12:33:34PM -0500, Heitzso wrote:

Hi Heitzso!

> (Salvatore Sanfilippo ... I'm cc'ing you
> to note that s10sh -u (usb mode) works fine
> with 2.2.18 but is breaking under 2.4.0 prerelease.

Too bad. The problem can't be of s10sh itself I guess.
It's more likely that some USB userspace ioctl() changed
so the USB subsystem isn't access without problems,
even if it's possible that some s10sh bug grow up
with a more robust USB implementation in 2.4.0.
I tested s10sh in 2.4.0-testxxx and it worked:
I suggest to try the new libusb 0.1.2 at
http://sourceforge.net/project/showfiles.php?group_id=1674&release_id=13538
and try to make s10sh working with this updated library.
I'll try. If you is able to fix s10sh or to make it working
using modified libusb version please drop me a mail!

thanks for your effort,
regars,
antirez

-- 
Salvatore Sanfilippo              |
<antirez@invece.org>
http://www.kyuzz.org/antirez      |      PGP: finger
antirez@tella.alicom.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: USB broken in 2.4.0
@ 2001-01-06  0:48 Dunlap, Randy
  2001-01-06  3:50 ` antirez
  0 siblings, 1 reply; 10+ messages in thread
From: Dunlap, Randy @ 2001-01-06  0:48 UTC (permalink / raw)
  To: 'antirez@invece.org'
  Cc: Greg KH, Heitzso, 'linux-kernel@vger.kernel.org',
	'Johannes Erdfelt'

This rings a small bell with me.
There was a change by Dan Streetman IIRC to limit
usbdevfs bulk transfers to PAGE_SIZE (4 KB for x86,
or 0x1000).  Anything larger than that returns
an error (-EINVAL).

~Randy
_______________________________________________
|randy.dunlap_at_intel.com        503-677-5408|
|NOTE: Any views presented here are mine alone|
|& may not represent the views of my employer.|
-----------------------------------------------

> -----Original Message-----
> From: antirez [mailto:antirez@invece.org]
> Sent: Friday, January 05, 2001 6:40 PM
> To: antirez
> Cc: Greg KH; Heitzso; 'linux-kernel@vger.kernel.org'; 
> 'Johannes Erdfelt'
> Subject: Re: USB broken in 2.4.0
> 
> 
> On Sat, Jan 06, 2001 at 12:04:29AM +0100, antirez wrote:
> > I'll do some test with the new 2.4 kernel to find if there 
> is a problem
> > in s10sh itself. A good test can be to try if the equivalent driver
> > of gphoto works without problems using the 2.4 kernel 
> (however it also
> > uses the libusb). The s10sh bug may be not necessarly 
> related to the USB
> > subsystem.
> 
> Ok, the problem is the same that I ecountered developing the file
> upload for the powershot USB driver performing a bulk write with
> a big data size, but this time it is present even reading.
> 
> s10sh reads 0x1400 bytes at once downloading jpges from the
> digicam, but the ioctl() that performs the bulk read fails with 2.4
> using this size. If I resize it (for example to 0x300) it 
> works without
> problems (with high performace penality, of course, 60% of slow-down).
> I don't know why. I checked at the time of the file upload the kernel
> code finding nothing.
> 
> Anyway with the old releases of the USB subsystem libusb failed to
> initialize the camera some time, now it seems fixed.
> 
> For the users: just edit usb.c and check the function USB_get_data(),
> substituting all the occurrence of 0x1400 to 0x300 as a work-around.
> 
> Please CC: me since I'm not subscribed to the list.
> 
> regards,
> antirez
> 
> -- 
> Salvatore Sanfilippo              |                      
> <antirez@invece.org>
> http://www.kyuzz.org/antirez      |      PGP: finger 
> antirez@tella.alicom.com
> -
> To unsubscribe from this list: send the line "unsubscribe 
> linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> Please read the FAQ at http://www.tux.org/lkml/
> 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: USB broken in 2.4.0
@ 2001-01-08 15:38 Heitzso
  2001-01-08 17:54 ` antirez
  0 siblings, 1 reply; 10+ messages in thread
From: Heitzso @ 2001-01-08 15:38 UTC (permalink / raw)
  To: 'Greg KH', Heitzso
  Cc: 'antirez@invece.org',
	'linux-kernel@vger.kernel.org',
	'Johannes Erdfelt'

There's a flurry of emails I haven't read yet.
I wanted to answer the direction question first

 test9 OK
 test10 OK
 test11 BROKEN

so that's where the break occurred.

I've gotta admit I was scared running the older
test kernels because somewhere in the series
the filesystem could be damaged and it bit me
bad on the first pass a couple of months ago.
I compiled the kernels under current full 2.4.0
and when rebooting to the test kernels tried
to get in, do the test, and get out as fast
as possible.

Heitzso


-----Original Message-----
From: Greg KH [mailto:greg@wirex.com]
Sent: Friday, January 05, 2001 1:01 PM
To: Heitzso
Cc: 'antirez@invece.org'; 'linux-kernel@vger.kernel.org'; 'Johannes
Erdfelt'
Subject: Re: USB broken in 2.4.0


On Fri, Jan 05, 2001 at 12:38:25PM -0500, Heitzso wrote:
> I just tested with fresh-out-of-the-box
> 2.4.0 and using the newer libusb 0.1.2 
> as suggested by antirez  (see email chain
> below for more info).  I compiled libusb
> and s10sh code this AM under 2.4.0. 
> 
> It blows up BAD by finding increasingly
> larger photo images in the camera over
> the usb link and extracting them to disk.
> So by the third file you're trying to
> extract gig sized files.  Obviously the
> filesystem files up, the sytem chokes, etc.
> 
> This is the same code that works fine
> under 2.2.18 kernel (I use it all of the
> time there).

I made the same request to Jordan Mendelson yesterday, who has the same
problem.  Could you be so kind as to try to narrow down which kernel
version this broke on?  I have reports that it used to work on -test9
but doesn't now.  Could you try -test10, etc and let me know?

thanks,

greg k-h

-- 
greg@(kroah|wirex).com
http://immunix.org/~greg
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2001-01-08 15:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-05 17:38 USB broken in 2.4.0 Heitzso
2001-01-05 18:00 ` Greg KH
2001-01-05 23:04   ` antirez
2001-01-06  2:39     ` antirez
2001-01-06  3:40       ` antirez
  -- strict thread matches above, loose matches on Subject: below --
2001-01-06  0:48 Dunlap, Randy
2001-01-06  3:50 ` antirez
2001-01-06  1:53   ` Johannes Erdfelt
2001-01-08 15:38 Heitzso
2001-01-08 17:54 ` antirez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox