Re: USB storage (pendrive) problems

From: Attila BODY
Date: Tue Dec 21 2004 - 02:50:35 EST


On Mon, 2004-12-20 at 15:21 -0800, Randy.Dunlap wrote:
> Andrew Walrond wrote:
> > On Monday 20 December 2004 21:54, Attila BODY wrote:
> >
> >>Hi,
> >>
> >>I have some weird problems with my pendrives recently. I just compile a
> >>2.6.9 to check if the problem is still exists there.
> >>
> >>current kernel is 2.6.10-rc3 and the situation is the following:
> >>
> >>If I copy more than few megabytes to the drive, the activity LED keeps
> >>flashing forever. sync, umount keeps runing forever, normal reboot is
> >>inpossible (alt+sysreq+b seems to work)
> >>
> >>Tested with usb 1.1 and 2.0 pendrives, behaviour is the same.
> >>
> >
> >
> > I'm doing exactly that with 2.6.10-rc3. umount does take a very long time (but
> > I had just written 600Mb+ over usb 1.1)
> >
> > Are you sure it doesn't come back if you leave it long enough?
> >
> > Do the throughput sums; you'll be suprised how long it takes to send more than
> > a few Mb over usb 1.1 (1.5Mb/s). Eg 600Mb = 7minutes
> >
> > Usb 2 should be much faster; Do you have EHCI loaded?
>
> and which usb driver are you using?
> ub or usb-storage? (what's the /dev name that you mount?)
Hi,

Here is the log snipet when plug the pendrive in, i thin It should be
clear from this that is uses ehci_hcd, ub, hotplug and udev. For 1.1 it
uses uhci_hcd

Dec 21 08:58:51 smiley kernel: ehci_hcd 0000:00:10.3: port 6 high speed
Dec 21 08:58:51 smiley kernel: ehci_hcd 0000:00:10.3: GetStatus port 6
status 001005 POWER sig=se0 PE CONNECT
Dec 21 08:58:51 smiley kernel: usb 1-6: new device strings: Mfr=2,
Product=3, SerialNumber=4
Dec 21 08:58:51 smiley kernel: usb 1-6: default language 0x0409
Dec 21 08:58:51 smiley kernel: usb 1-6: Product: Cruzer Mini
Dec 21 08:58:51 smiley kernel: usb 1-6: Manufacturer: SanDisk
Corporation
Dec 21 08:58:51 smiley kernel: usb 1-6: SerialNumber: 00567026
Dec 21 08:58:51 smiley kernel: usb 1-6: hotplug
Dec 21 08:58:51 smiley kernel: usb 1-6: adding 1-6:1.0 (config #1,
interface 0)
Dec 21 08:58:51 smiley kernel: usb 1-6:1.0: hotplug
Dec 21 08:58:51 smiley kernel: ub 1-6:1.0: usb_probe_interface
Dec 21 08:58:51 smiley kernel: ub 1-6:1.0: usb_probe_interface - got id
Dec 21 08:58:51 smiley usb.agent[6288]: ub: already loaded
Dec 21 08:58:52 smiley kernel: uba: device 3 capacity nsec 512000 bsize
512
Dec 21 08:58:52 smiley kernel: uba: device 3 capacity nsec 512000 bsize
512
Dec 21 08:58:52 smiley kernel: /dev/ub/a: p1
Dec 21 08:58:52 smiley udev[6328]: creating device node '/dev/uba1'
Dec 21 08:58:52 smiley udev[6321]: creating device node '/dev/uba'

The problem is reproducable with 2.6.9. Unfortunately I have no time
right now to check 2.6.8.1 if the problem already presists there.
It seems however that the 1.1 device recovers if I wait long enough, but
I left the 2.0 device here all night and it did not. To make it worse,
it seems that the whole USB 2.0 system went down, there was no activity
even if i reconnected the pen, had to reboot to be detected and powered
on again (normal reboot was not an option again, so I had to use
alt-sysrq-B).

Hope this helps to track down this problem.

compi

P.S.: Please cc, I'm not subscribed.

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