Bug 5231
Summary: | usb mass storage (mp3-player) i/o errors while read or write | ||
---|---|---|---|
Product: | Drivers | Reporter: | Florian Mickler (florian) |
Component: | USB | Assignee: | Alan Stern (stern) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | greg, stern |
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.12.5, 2.6.13.1, 2.6.14.1 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Bug Depends on: | |||
Bug Blocks: | 5089 | ||
Attachments: |
dmesg after boot - _BEFORE_ plugging in the device
relevant debug info (i hope) with usb-storage verbose debug enabled /proc/bus/usb/devices with mp3-player pluged in /proc/bus/usb/devices with mp3-player pluged in Add unusual_devs entry for the TrekStor i.Beat mp3 player |
Description
Florian Mickler
2005-09-12 10:14:41 UTC
by the way, i just remembered, that on my pals windows-machine the stick was said to "be on a usb-1.0 port, and that it could pe more performant on a high-speed port" or how they name it at microsoft, besides that he was sticking at an usb-2.0 highspeed port (seen it myself with an usb-disk) ... so perhaps there is some issue with the usb-2.0 and usb-1.0 thing.. Can you try 2.6.13 or 2.6.13.1 to see if that solve the problem? ok, sorry that i didnt had it verified right on but the bug is also present in 2.6.13.1 with no change at all We need to get more information. Try turning on the USB Mass Storage verbose debugging option in the kernel configuration (CONFIG_USB_STORAGE_DEBUG). Then attach the dmesg log showing all the debugging messages for when you try to do I/O to the device. Created attachment 6271 [details]
dmesg after boot - _BEFORE_ plugging in the device
dont know if it is interesting
Created attachment 6272 [details]
relevant debug info (i hope)
here is what i did:
- 0th booted kernel 2.6.13.3 (dmesg_boot)
- 1st plugged the device in (dmesg_plug)
- 2nd mounted the device (dmesg_mount)
- 3rd cp'ed a file from the device to my hd (dmesg_cp, shell_cp)
- 4th umounted the device (dmesg_umount)
- 5th unplugged the device (dmesg_unplug)
after each step i dumped the dmesg via dmesg -c > filename
also in the archive is lscpi -v, lsusb -v and the relevant part of the system
log
if you need more info or me doing smth plz just say it, i'll glad to help and i
do appreciate your efforts.
Unfortunately those logs don't help enough. It looks like you turned on USB verbose debugging (CONFIG_USB_DEBUG) and not USB Mass Storage verbose debugging (CONFIG_USB_STORAGE_DEBUG). The mass-storage debugging is what we need. Created attachment 6279 [details]
with usb-storage verbose debug enabled
The log shows that your device has a common bug: It sends invalid Residue values. I can create a kernel patch to take care of it, but first I need one more piece of information. With the player plugged in, please send a copy of /proc/bus/usb/devices. Created attachment 6281 [details]
/proc/bus/usb/devices with mp3-player pluged in
proc/bus/usb/devices with mp3player plugged in
Created attachment 6282 [details]
/proc/bus/usb/devices with mp3-player pluged in
proc/bus/usb/devices with mp3player plugged in
Created attachment 6283 [details]
Add unusual_devs entry for the TrekStor i.Beat mp3 player
I think this patch will fix your problem. If it doesn't, provide another dmesg
log for when you plug in the player.
the patch fixes the problem. thank you do you know why it did go with 2.4 kernel? Okay, I'll submit this change for inclusion in the kernel. Your player worked under 2.4 because the 2.4 driver doesn't check the Residue value sent by the device. This ended up causing a problem because some devices give no indication that an operation has failed, except that the Residue is non-zero. But always checking the Residue leads to the opposite problem, as you saw -- many devices report garbage values for the Residue. it seems that the patch is not yet applied to the kernel... is 4 month normal for such a small fix??? I don't know what you mean. The patch is already in 2.6.15. Well, not exactly the patch I sent you, but an equivalent one submitted back in September by Stefan Werner. See http://marc.theaimsgroup.com/?l=linux-usb-devel&m=112733253530235&w=2 Hi! Ok, I'm sorry! That's my fault. I greped the source for the wrong keyword :| thx! greets, Florian |