Bug 11509 - USB-2 devices are initialised as USB-1.1 devices
Summary: USB-2 devices are initialised as USB-1.1 devices
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 3
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: Thomas Backlund
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-22 21:58 CEST by Christian C
Modified: 2015-03-31 16:06 CEST (History)
1 user (show)

See Also:
Source RPM: kernel
CVE:
Status comment:


Attachments

Description Christian C 2013-10-22 21:58:48 CEST
Description of problem:
When a USB-2 device is plugged in, the following messages are displayed in the dmesg says :
[111993.801050] usb 7-2: new high-speed USB device number 3 using ehci-pci
[111998.304068] usb 3-2: new full-speed USB device number 3 using ohci_hcd
[111998.442999] usb 3-2: not running at top speed; connect to a high speed hub
[111998.458040] usb 3-2: New USB device found, idVendor=0930, idProduct=6545
[111998.458046] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[111998.458049] usb 3-2: Product: DataTraveler G2 
[111998.458051] usb 3-2: Manufacturer: Kingston
[111998.458053] usb 3-2: SerialNumber: 0013729828EEBA4045FF0223
[111998.464033] scsi9 : usb-storage 3-2:1.0

So, the USB-2 device is initialised as a USB-1.1 device that results in a low speed transmission.

# hdparm -t /dev/sde
/dev/sde:
 Timing buffered disk reads:   4 MB in  4.42 seconds = 927.10 kB/sec

If found the following work around (that I don't understand) that is a little tricky on :http://www.geekdevs.com/2010/04/solved-unable-to-enumerate-usb-device-disabling-ehci_hcd/

# cd /sys/bus/pci/drivers/ehci_hcd/
# ls
0000:00:12.2@  0000:00:13.2@  bind  module@  new_id  remove_id  uevent  unbind
# echo -n "0000:00:13.2" > unbind
# echo -n "0000:00:13.2" > bind

Now, dmesg says :
[114689.723154] usb usb7: New USB device found, idVendor=1d6b, idProduct=0002
[114689.723158] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[114689.723161] usb usb7: Product: EHCI Host Controller
[114689.723163] usb usb7: Manufacturer: Linux 3.8.13.4-desktop-1.mga3 ehci_hcd
[114689.723165] usb usb7: SerialNumber: 0000:00:13.2
[114690.025041] usb 7-2: new high-speed USB device number 2 using ehci-pci
[114690.144607] usb 7-2: New USB device found, idVendor=0930, idProduct=6545
[114690.144613] usb 7-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[114690.144616] usb 7-2: Product: DataTraveler G2 
[114690.144619] usb 7-2: Manufacturer: Kingston
[114690.144621] usb 7-2: SerialNumber: 0013729828EEBA4045FF0223
[114690.153046] scsi10 : usb-storage 7-2:1.0

And the speed is correct :
# hdparm -t /dev/sde
/dev/sde:
 Timing buffered disk reads:  54 MB in  3.03 seconds =  17.79 MB/sec


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Plug an USB-2 device
2. Check the transmission speed by transfering a file or typing hdparm -t
3.


Reproducible: 

Steps to Reproduce:
Comment 1 Manuel Hiebel 2013-10-24 23:43:57 CEST
(I don't know if kernel 3.10 from the testing repo could help)

Component: Release (media or process) => RPM Packages
Assignee: bugsquad => tmb
Source RPM: (none) => kernel

Comment 2 Thomas Backlund 2013-10-25 09:07:30 CEST
check in /etc/modprobe.conf or /etc/modprobe.d/* if there is a reference to ochi-hcd, and if it's listed before echi-hcd.
Comment 3 Christian C 2013-10-25 12:54:01 CEST
I found :
$ cat /etc/modprobe.d/01_mga-config.conf 
install scsi_hostadapter /sbin/modprobe pata_atiixp; /bin/true
install usb-interface /sbin/modprobe ohci_hcd; /sbin/modprobe ehci_hcd; /sbin/modprobe ehci_pci; /bin/true
alias sound-slot-0 snd_hda_intel
alias sound-slot-1 snd_hda_intel

and :
$ cat /etc/modprobe.conf 
install scsi_hostadapter /sbin/modprobe pata_atiixp; /bin/true
install usb-interface /sbin/modprobe ohci_hcd; /sbin/modprobe ehci_hcd; /sbin/modprobe ehci_pci; /bin/true
alias sound-slot-0 snd_hda_intel
alias sound-slot-1 snd_hda_intel

This is strange. I have another computer under mga-3 (where USB-2 works fine) where ohci_hcd does not appear in /etc/modprobe.conf and /etc/modprobe.d/01_mga-config.conf :
# cat /etc/modprobe.conf
install scsi_hostadapter /sbin/modprobe pata_via; /bin/true
install usb-interface /sbin/modprobe ehci_hcd; /sbin/modprobe ehci_pci; /sbin/modprobe uhci_hcd; /bin/true

I'd like to know who configure these 2 files becauses they are 2 fresh install (one from x86_64 DVD, the other from i586).

As the 1st computer is a remote one and I have no-one to make the test this week-end, I'll try to remove ohci_hcd from modprobe and check the result next week.
Comment 4 Christian C 2013-10-29 12:00:55 CET
After removing /sbin/modprobe ohci_hcd from /etc/modprobe.conf :
# cat /etc/modprobe.conf
install scsi_hostadapter /sbin/modprobe pata_atiixp; /bin/true
install usb-interface /sbin/modprobe ehci_hcd; /sbin/modprobe ehci_pci; /bin/true
alias sound-slot-0 snd_hda_intel
alias sound-slot-1 snd_hda_intel

and rebooting, I get :
# dmesg
[  109.661050] usb 7-1: new high-speed USB device number 3 using ehci-pci
[  109.781840] usb 7-1: New USB device found, idVendor=0930, idProduct=6545
[  109.781848] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  109.781852] usb 7-1: Product: DataTraveler G2
[  109.781855] usb 7-1: Manufacturer: Kingston
[  109.781857] usb 7-1: SerialNumber: 0013729828EEBA4045FF0223
[  109.794254] scsi9 : usb-storage 7-1:1.0
[  110.831731] scsi 9:0:0:0: Direct-Access     Kingston DataTraveler G2  PMAP PQ: 0 ANSI: 0 CCS
[  111.845328] sd 9:0:0:0: [sdd] 7827456 512-byte logical blocks: (4.00 GB/3.73 GiB)

# hdparm -t /dev/sdd
/dev/sdd:
 Timing buffered disk reads:  50 MB in  3.02 seconds =  16.54 MB/sec

But it seems that ohci_hcd is still loaded automatically :
# lsmod|grep ohci_hcd
ohci_hcd               37653  0
usbcore               218676  5 usb_storage,ohci_hcd,ehci_hcd,ehci_pci,usbhid

and is required by the mouse.
"rmmod ohci_hcd" makes the remote mouse unusable.
Comment 5 Christian C 2013-10-31 23:47:24 CET
In fact, it works sometimes only.
Connecting a harddisk on another device (a TV) and then reconnecting it on the computer sets it at low speed. 
dmesg :
[261663.561074] usb 7-1: new high-speed USB device number 8 using ehci-pci
[261668.632116] hub 7-0:1.0: unable to enumerate USB device on port 1
[261668.922083] usb 3-1: new full-speed USB device number 4 using ohci_hcd
[261669.064109] usb 3-1: Parent hub missing LPM exit latency info.  Power management will be impacted.
[261669.066105] usb 3-1: not running at top speed; connect to a high speed hub
[261669.078110] usb 3-1: New USB device found, idVendor=1058, idProduct=10a2
[261669.078123] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[261669.078130] usb 3-1: Product: Elements 10A2
[261669.078135] usb 3-1: Manufacturer: Western Digital
[261669.078140] usb 3-1: SerialNumber: 575837314139323232343238
[261669.081100] scsi16 : usb-storage 3-1:1.0
[261670.197194] scsi 16:0:0:0: Direct-Access     WD       Elements 10A2    1033 PQ: 0 ANSI: 6
[261670.207252] sd 16:0:0:0: [sdd] 976707584 512-byte logical blocks: (500 GB/465 GiB)

# hdparm -t /dev/sdd
/dev/sdd:
 Timing buffered disk reads:   4 MB in  4.47 seconds = 917.04 kB/sec
Comment 6 Christian C 2013-11-01 18:53:18 CET
I can't test with kernel 3.10 because it requires too much change in the present configuration (kernel-firmware*)
Comment 7 Marja Van Waes 2015-03-31 16:06:07 CEST
Mageia 3 changed to end-of-life (EOL) status 4 months ago.
http://blog.mageia.org/en/2014/11/26/lets-say-goodbye-to-mageia-3/ 

Mageia 3 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of Mageia
please feel free to click on "Version" change it against that version of Mageia
and reopen this bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

--
The Mageia Bugsquad

Status: NEW => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.