Code: Select all
Bus 003 Device 027: ID 0781:554f SanDisk Corp.
Code: Select all
Bus 003 Device 026: ID 0204:6025 Chipsbank Microelectronics Co., Ltd CBM2080 Flash drive controller If you're asking me, 1) I'm running an amd base board using ohci_hcd and ehci_hcd not uhci_hcd, 2) the flash drives are connected through ehci_hcd, and 3) I'm not about to turn off ohci_hcd because my UPS is connected to that. IMNHO, the original poster either has bad hardware or has screwed up his kernel configuration. I doubt that there's anything inherenly wrong with Linux USB support.dmpogo wrote:So what happened if you unload uhci_hcd ?
No, I was asking the person who asked the original question and we discussed ehci/uhci issue on the previous page of commentsdoctork wrote:If you're asking me, 1) I'm running an amd base board using ohci_hcd and ehci_hcd not uhci_hcd, 2) the flash drives are connected through ehci_hcd, and 3) I'm not about to turn off ohci_hcd because my UPS is connected to that. IMNHO, the original poster either has bad hardware or has screwed up his kernel configuration. I doubt that there's anything inherenly wrong with Linux USB support.dmpogo wrote:So what happened if you unload uhci_hcd ?
--
doc

If all gentoo users are affected by it, you could expect to find in the forum the problem report many times. So it seems not (i didn't search, but i suppose you've done it before opening a new thread, don't you ?)MarcusXP wrote:So guys.. whoever is reading this thread, PLEASE make some similar tests if you have a USB flash drive at home, and report your results.. I need to know if the problem is related to my configuration, or this problem is common to most of Linux (or only Gentoo) users?
On the system I'm currently messing with, the physical USB port I'm connected to does not determine whether EHCI or OHCI controls the device. For example, with a USB 2.0 flash drive connected, the relevant sections of /proc/bus/usb/devices reads:NeddySeagoon wrote:MarcusXP,
[...]
Get usbview and use it to ensure your USB2 devices are all on EHCI ports and your USB1 devices are all on OHCI/UHCI ports.
Further, each root hub can only supply 500mA total for all connected devices. usbview will show you the power required by each device. Add them up and keep the total under 500mA.
Breaching any of these rules results in suboptimal USB performace.
Code: Select all
T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh=10
B: Alloc= 0/800 us ( 0%), #Int= 4, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 2.06
S: Manufacturer=Linux 2.6.30-gentoo-r6 ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=0000:00:13.5
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms
T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 31 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0781 ProdID=554f Rev= 2.00
S: Manufacturer=Best Buy
S: Product=Geek Squad
S: SerialNumber=1101300EB9409EB1
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=200mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0msCode: Select all
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 41/900 us ( 5%), #Int= 2, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev= 2.06
S: Manufacturer=Linux 2.6.30-gentoo-r6 ohci_hcd
S: Product=OHCI Host Controller
S: SerialNumber=0000:00:13.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=32 #Cfgs= 1
P: Vendor=046d ProdID=c526 Rev= 5.00
S: Manufacturer=Logitech
S: Product=USB Receiver
C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr= 98mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=1ms
I:* If#= 1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
E: Ad=82(I) Atr=03(Int.) MxPS= 20 Ivl=1msI did find some similar posts but none seem to describe my exact problem.krinn wrote:If all gentoo users are affected by it, you could expect to find in the forum the problem report many times. So it seems not (i didn't search, but i suppose you've done it before opening a new thread, don't you ?)MarcusXP wrote:So guys.. whoever is reading this thread, PLEASE make some similar tests if you have a USB flash drive at home, and report your results.. I need to know if the problem is related to my configuration, or this problem is common to most of Linux (or only Gentoo) users?
did you try to reproduce with gentoo livecd/dvd or with another distro (just to try with a kernel you didn't made)
I know that write speed is limited, but I clearly have an issue here, since the very same flash drive writes WAY faster on Windows - compare up to1MB/sec on Gentoo with 12-15MB/sec on Windows XP.NeddySeagoon wrote:MarcusXP,
FLASH write speeds are limited by the FLASH chips used in the device.
You have clearly been moving things around between USB ports as your dmesg shows one arrangement of devices and your /proc/bus/usb/devices shows another. There is another speed limitation on USB storage - DMA cannot be used as USB does not support DMA.
Get usbview and use it to ensure your USB2 devices are all on EHCI ports and your USB1 devices are all on OHCI/UHCI ports.
Further, each root hub can only supply 500mA total for all connected devices. usbview will show you the power required by each device. Add them up and keep the total under 500mA.
Breaching any of these rules results in suboptimal USB performace.
The bug was reporting the problem in kernel 2.6.12-gentoo-r4krinn wrote:they infact told you the problem, some regression bug in the kernel. And you have the link to lkvm.
So the solution is simple, if it's fix, upgrade your kernel, if not yet fix, wait for an update kernel or use a kernel lower the version they report the bug appears.
Code: Select all
Marcus ~ # uname -a
Linux Marcus 2.6.31-gentoo #1 SMP Thu Sep 10 22:20:05 EDT 2009 x86_64 Intel(R) Xeon(R) CPU L5420 @ 2.50GHz GenuineIntel GNU/Linuxhttp://bugs.gentoo.org/99039 wrote:I am have USB Flash drive (size is 1Gb, filesystem VFAT). Kernel detects it as:
Vendor: Kingston Model: DataTraveler II+ Rev: 1.13
-> might not be related, but as my flash drive works nice and that bug "seems" to affect few users, i suppose it's not good publicity for kingston datatraveler series...MarcusXP wrote:For now, I've formatted a Kingston DataTraveler 150 32GB to NTFS.
Code: Select all
T61p ~ # uname -a
Linux T61p 2.6.30-gentoo-r6 #2 SMP Thu Sep 17 23:06:58 EDT 2009 x86_64 Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz GenuineIntel GNU/LinuxCode: Select all
Server / # uname -a
Linux Server 2.6.31-gentoo #2 SMP Thu Sep 17 20:12:16 EDT 2009 x86_64 Genuine Intel(R) CPU @ 2.50GHz GenuineIntel GNU/LinuxNo it's not related, as I also have one Sandisk Cruzer micro 16GB and a Sony 16GB and they have the same behaviorkrinn wrote:http://bugs.gentoo.org/99039 wrote:I am have USB Flash drive (size is 1Gb, filesystem VFAT). Kernel detects it as:
Vendor: Kingston Model: DataTraveler II+ Rev: 1.13-> might not be related, but as my flash drive works nice and that bug "seems" to affect few users, i suppose it's not good publicity for kingston datatraveler series...MarcusXP wrote:For now, I've formatted a Kingston DataTraveler 150 32GB to NTFS.
that's what I am doing right now.. I will have a report ready in a few minutesdmpogo wrote:MarcusXP
This thread is very frustrating to a side observer like me, since from two pages of comments it is still impossible to get a clear description what does not work where and what is the diagnistics when things break. Could you please be a bit more systematic in describing your set up.
As the first step, could you unplug all other USB storage devices (you need your keyboard and mouse of course), take one USB stick, say Kingston 32GB, and report after clean reboot
1) Laptop in Gentoo - report (sustained after caching) transfer rates, dmesg, cat /proc/bus/usb/devices
2) Laptop in Windows - report transfer rates
3) Desktop in Gentoo - report (sustained after caching) transfer rates, dmesg, cat /proc/bus/usb/devices
Code: Select all
T: Bus=01 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 11 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1058 ProdID=0705 Rev= 1.75
S: Manufacturer=Western Digital
S: Product=External HDD
S: SerialNumber=57442D57584E583038535543333639
C:* #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr= 2mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
E: Ad=83(I) Atr=03(Int.) MxPS= 64 Ivl=4msCode: Select all
T: Bus=01 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 6 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1058 ProdID=0705 Rev= 1.75
S: Manufacturer=Western Digital
S: Product=External HDD
S: SerialNumber=57442D57584E583038535543333639
C:* #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr= 2mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
E: Ad=83(I) Atr=03(Int.) MxPS= 64 Ivl=4msCode: Select all
T: Bus=01 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 6 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1058 ProdID=0705 Rev= 1.75
S: Manufacturer=Western Digital
S: Product=External HDD
S: SerialNumber=57442D57584E583038535543333639
C:* #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr= 2mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
E: Ad=83(I) Atr=03(Int.) MxPS= 64 Ivl=4msCode: Select all
usb 1-3: new high speed USB device using ehci_hcd and address 6
usb 1-3: New USB device found, idVendor=1058, idProduct=0705
usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-3: Product: External HDD
usb 1-3: Manufacturer: Western Digital
usb 1-3: SerialNumber: 57442D57584E583038535543333639
usb 1-3: configuration #1 chosen from 1 choice
scsi6 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
input: Western Digital External HDD as /class/input/input8
generic-usb 0003:1058:0705.0008: input: USB HID v1.10 Device [Western Digital External HDD ] on usb-0000:00:1d.7-3/input1
scsi 6:0:0:0: Direct-Access WD 5000BEV External 1.75 PQ: 0 ANSI: 4
sd 6:0:0:0: Attached scsi generic sg19 type 0
sd 6:0:0:0: [sdd] 976773168 512-byte logical blocks: (500 GB/465 GiB)
sd 6:0:0:0: [sdd] Write Protect is off
sd 6:0:0:0: [sdd] Mode Sense: 23 00 00 00
sd 6:0:0:0: [sdd] Assuming drive cache: write through
usb-storage: device scan complete
sd 6:0:0:0: [sdd] Assuming drive cache: write through
sdd: sdd1
sd 6:0:0:0: [sdd] Assuming drive cache: write through
sd 6:0:0:0: [sdd] Attached SCSI diskCode: Select all
usb 1-8: new high speed USB device using ehci_hcd and address 7
usb 1-8: New USB device found, idVendor=1058, idProduct=0705
usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-8: Product: External HDD
usb 1-8: Manufacturer: Western Digital
usb 1-8: SerialNumber: 57442D57584E583038535543333639
usb 1-8: configuration #1 chosen from 1 choice
scsi7 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 7
usb-storage: waiting for device to settle before scanning
input: Western Digital External HDD as /class/input/input9
generic-usb 0003:1058:0705.0009: input: USB HID v1.10 Device [Western Digital External HDD ] on usb-0000:00:1d.7-8/input1
scsi 7:0:0:0: Direct-Access WD 5000BEV External 1.75 PQ: 0 ANSI: 4
sd 7:0:0:0: Attached scsi generic sg19 type 0
sd 7:0:0:0: [sdd] 976773168 512-byte logical blocks: (500 GB/465 GiB)
sd 7:0:0:0: [sdd] Write Protect is off
sd 7:0:0:0: [sdd] Mode Sense: 23 00 00 00
sd 7:0:0:0: [sdd] Assuming drive cache: write through
usb-storage: device scan complete
sd 7:0:0:0: [sdd] Assuming drive cache: write through
sdd: sdd1
sd 7:0:0:0: [sdd] Assuming drive cache: write through
sd 7:0:0:0: [sdd] Attached SCSI disk