Gentoo Archives: gentoo-user

From: Volker Armin Hemmann <volkerarmin@××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Intermittent USB device failures
Date: Wed, 20 Aug 2014 16:55:51
Message-Id: 53F4D2D1.90800@googlemail.com
In Reply to: RE: [gentoo-user] Intermittent USB device failures by Mike Edenfield
1 Am 20.08.2014 um 02:28 schrieb Mike Edenfield:
2 >> From: Volker Armin Hemmann [mailto:volkerarmin@××××××××××.com]
3 >> Sent: Monday, August 18, 2014 8:01 PM
4 >>
5 >> Am 17.08.2014 um 12:33 schrieb Mick:
6 >>> On Sunday 17 Aug 2014 02:56:58 Mike Edenfield wrote:
7 >>>
8 >>>> When I `modprobe -r ochi_pci` while the system is operating normally,
9 >>>> I see all four modules (ohci-pci, ohci-hcd, ehci-pci, and ehci-hcd)
10 >>>> unloading
11 >>>> properly:
12 >>>>
13 >>>> [25603.370000] ohci-pci 0000:00:0b.0: remove, state 1 [25603.370395]
14 >>>> usb usb2: USB disconnect, device number 1 [25603.370414] usb 2-6: USB
15 >>>> disconnect, device number 2 [25603.383451] usb 2-7: USB disconnect,
16 >>>> device number 3 [25603.384217] ohci-pci 0000:00:0b.0: USB bus 2
17 >>>> deregistered [25603.384597] ehci-pci 0000:00:0b.1: remove, state 1
18 >>>> [25603.384611] usb usb1: USB disconnect, device number 1
19 >>>> [25603.386306] ehci-pci 0000:00:0b.1: USB bus 1 deregistered
20 >>>>
21 >>>> If I try to do the same thing after the mouse has locked up, modprobe
22 >>>> stalls trying to unload the first module:
23 >>>>
24 >>>> wombat kutulu # modprobe -r -v ohci_pci rmmod ohci_pci
25 >>>>
26 >>>> wombat kutulu # dmesg
27 >>>> [38091.627389] ohci-pci 0000:00:0b.0: remove, state 1 [38091.627400]
28 >>>> usb usb2: USB disconnect, device number 1
29 >>>>
30 >>>> Any ideas what's going wrong here? Any chance I can salvage this
31 >> hardware?
32 >>> Do you need ohci-pci? Have you tried running a kernel without it and
33 >>> check if your hardware still works as intended?
34 >>>
35 >> I would try that too,,,
36 >> From: Volker Armin Hemmann [mailto:volkerarmin@××××××××××.com]
37 >> Sent: Monday, August 18, 2014 8:01 PM
38 >>
39 >> Am 17.08.2014 um 12:33 schrieb Mick:
40 >>> On Sunday 17 Aug 2014 02:56:58 Mike Edenfield wrote:
41 >>>
42 >>>> When I `modprobe -r ochi_pci` while the system is operating normally,
43 >>>> I see all four modules (ohci-pci, ohci-hcd, ehci-pci, and ehci-hcd)
44 >>>> unloading
45 >>>> properly:
46 >>>>
47 >>>> [25603.370000] ohci-pci 0000:00:0b.0: remove, state 1 [25603.370395]
48 >>>> usb usb2: USB disconnect, device number 1 [25603.370414] usb 2-6: USB
49 >>>> disconnect, device number 2 [25603.383451] usb 2-7: USB disconnect,
50 >>>> device number 3 [25603.384217] ohci-pci 0000:00:0b.0: USB bus 2
51 >>>> deregistered [25603.384597] ehci-pci 0000:00:0b.1: remove, state 1
52 >>>> [25603.384611] usb usb1: USB disconnect, device number 1
53 >>>> [25603.386306] ehci-pci 0000:00:0b.1: USB bus 1 deregistered
54 >>>>
55 >>>> If I try to do the same thing after the mouse has locked up, modprobe
56 >>>> stalls trying to unload the first module:
57 >>>>
58 >>>> wombat kutulu # modprobe -r -v ohci_pci rmmod ohci_pci
59 >>>>
60 >>>> wombat kutulu # dmesg
61 >>>> [38091.627389] ohci-pci 0000:00:0b.0: remove, state 1 [38091.627400]
62 >>>> usb usb2: USB disconnect, device number 1
63 >>>>
64 >>>> Any ideas what's going wrong here? Any chance I can salvage this
65 >> hardware?
66 >>> Do you need ohci-pci? Have you tried running a kernel without it and
67 >>> check if your hardware still works as intended?
68 >>>
69 >> I would try that too,,,
70 > I booted a kernel without ohci-pci and no, it doesn't quite work, though I'm pretty confused by it. With OHCI removed from my kernel, neither my mouse nor my keyboard register as attached, but it doesn't seem to matter which ports I put them in. I have 6 USB ports, 2 pair on the motherboard and a third pair in the front of the case, and I expected that the back four would be OCHI and the front two EHCI (or something similr), but they don't seem to follow that pattern. Anywhere I plug my flash drive or camera in, it gets routed through the ECHI controller, while anywhere I plug my keyboard or mouse in gets routed through the OHCI controller. For example, I have my keyword and a flash drive plugged into the two front-mounted ports, and when I boot, I get this:
71 >
72 > With OHCI:
73 >
74 > kutulu@wombat ~ $ dmesg | grep usb
75 > [ 0.074276] usbcore: registered new interface driver usbfs
76 > [ 0.074460] usbcore: registered new interface driver hub
77 > [ 0.074658] usbcore: registered new device driver usb
78 > [ 0.245705] usbcore: registered new interface driver usbhid
79 > [ 0.245879] usbhid: USB HID core driver
80 > [ 7.420249] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
81 > [ 7.420426] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
82 > [ 7.420735] usb usb1: Product: EHCI Host Controller
83 > [ 7.420908] usb usb1: Manufacturer: Linux 3.16.0-gentoo-wombat-3 ehci_hcd
84 > [ 7.421089] usb usb1: SerialNumber: 0000:00:0b.1
85 > [ 7.631143] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
86 > [ 7.631328] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
87 > [ 7.631618] usb usb2: Product: OHCI PCI host controller
88 > [ 7.631789] usb usb2: Manufacturer: Linux 3.16.0-gentoo-wombat-3 ohci_hcd
89 > [ 7.631964] usb usb2: SerialNumber: 0000:00:0b.0
90 > [ 7.753477] usb 1-7: new high-speed USB device number 2 using ehci-pci
91 > [ 7.968033] usb 1-7: New USB device found, idVendor=14cd, idProduct=6500
92 > [ 7.968179] usb 1-7: New USB device strings: Mfr=1, Product=3, SerialNumber=2
93 > [ 7.968312] usb 1-7: Product: USB 2.0 Flash drive
94 > [ 7.968442] usb 1-7: Manufacturer: MOAI INC.
95 > [ 7.968568] usb 1-7: SerialNumber: 4FD30F4B00C5
96 > [ 8.165667] usb-storage 1-7:1.0: USB Mass Storage device detected
97 > [ 8.174052] scsi4 : usb-storage 1-7:1.0
98 > [ 8.174281] usbcore: registered new interface driver usb-storage
99 > [ 8.380031] usb 2-8: new low-speed USB device number 2 using ohci-pci
100 > [ 8.717028] usb 2-8: New USB device found, idVendor=413c, idProduct=2105
101 > [ 8.717058] usb 2-8: New USB device strings: Mfr=1, Product=2, SerialNumber=0
102 > [ 8.717068] usb 2-8: Product: Dell USB Keyboard
103 > [ 8.717075] usb 2-8: Manufacturer: Dell
104 > [ 8.746601] input: Dell Dell USB Keyboard as /devices/pci0000:00/0000:00:0b.0/usb2/2-8/2-8:1.0/0003:413C:2105.0001/input/input4
105 > [ 8.746836] hid-generic 0003:413C:2105.0001: input,hidraw0: USB HID v1.10 Keyboard [Dell Dell USB Keyboard] on usb-0000:00:0b.0-8/input0
106 > kutulu@wombat ~ $
107 >
108 > Without OHCI:
109 >
110 > kutulu@wombat ~ $ dmesg | grep usb
111 > [ 0.076245] usbcore: registered new interface driver usbfs
112 > [ 0.076428] usbcore: registered new interface driver hub
113 > [ 0.076626] usbcore: registered new device driver usb
114 > [ 0.247749] usbcore: registered new interface driver usbhid
115 > [ 0.247922] usbhid: USB HID core driver
116 > [ 6.991241] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
117 > [ 6.991417] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
118 > [ 6.991726] usb usb1: Product: EHCI Host Controller
119 > [ 6.991900] usb usb1: Manufacturer: Linux 3.16.0-gentoo-wombat-5 ehci_hcd
120 > [ 6.992078] usb usb1: SerialNumber: 0000:00:0b.1
121 > [ 7.295804] usb 1-7: new high-speed USB device number 2 using ehci-pci
122 > [ 7.413707] usb 1-7: New USB device found, idVendor=14cd, idProduct=6500
123 > [ 7.413881] usb 1-7: New USB device strings: Mfr=1, Product=3, SerialNumber=2
124 > [ 7.414047] usb 1-7: Product: USB 2.0 Flash drive
125 > [ 7.414205] usb 1-7: Manufacturer: MOAI INC.
126 > [ 7.414371] usb 1-7: SerialNumber: 4FD30F4B00C5
127 > [ 7.870672] usb-storage 1-7:1.0: USB Mass Storage device detected
128 > [ 7.871215] scsi4 : usb-storage 1-7:1.0
129 > [ 7.871425] usbcore: registered new interface driver usb-storage
130 > kutulu@wombat ~ $
131 >
132 > Is that normal?
133 >
134 >
135 >
136
137 well, today almost all usb controllers 'decide' what to use depending on
138 the device plugged in. There are no dedicated 1.1 or 2.0 ports.
139
140 And yes, not able to see the devices without ohci might be the norm.
141
142 Do you have the problems with all ports?

Replies

Subject Author
RE: [gentoo-user] Intermittent USB device failures Mike Edenfield <kutulu@××××××.org>