Gentoo Archives: gentoo-user

From: Mike Edenfield <kutulu@××××××.org>
To: gentoo-user@l.g.o
Subject: RE: [gentoo-user] Intermittent USB device failures
Date: Wed, 20 Aug 2014 00:29:16
Message-Id: 01fd01cfbc0d$b9544c60$2bfce520$@kutulu.org
In Reply to: Re: [gentoo-user] Intermittent USB device failures by Volker Armin Hemmann
1 > From: Volker Armin Hemmann [mailto:volkerarmin@××××××××××.com]
2 > Sent: Monday, August 18, 2014 8:01 PM
3 >
4 > Am 17.08.2014 um 12:33 schrieb Mick:
5 > > On Sunday 17 Aug 2014 02:56:58 Mike Edenfield wrote:
6 > >
7 > >> When I `modprobe -r ochi_pci` while the system is operating normally,
8 > >> I see all four modules (ohci-pci, ohci-hcd, ehci-pci, and ehci-hcd)
9 > >> unloading
10 > >> properly:
11 > >>
12 > >> [25603.370000] ohci-pci 0000:00:0b.0: remove, state 1 [25603.370395]
13 > >> usb usb2: USB disconnect, device number 1 [25603.370414] usb 2-6: USB
14 > >> disconnect, device number 2 [25603.383451] usb 2-7: USB disconnect,
15 > >> device number 3 [25603.384217] ohci-pci 0000:00:0b.0: USB bus 2
16 > >> deregistered [25603.384597] ehci-pci 0000:00:0b.1: remove, state 1
17 > >> [25603.384611] usb usb1: USB disconnect, device number 1
18 > >> [25603.386306] ehci-pci 0000:00:0b.1: USB bus 1 deregistered
19 > >>
20 > >> If I try to do the same thing after the mouse has locked up, modprobe
21 > >> stalls trying to unload the first module:
22 > >>
23 > >> wombat kutulu # modprobe -r -v ohci_pci rmmod ohci_pci
24 > >>
25 > >> wombat kutulu # dmesg
26 > >> [38091.627389] ohci-pci 0000:00:0b.0: remove, state 1 [38091.627400]
27 > >> usb usb2: USB disconnect, device number 1
28 > >>
29 > >> Any ideas what's going wrong here? Any chance I can salvage this
30 > hardware?
31 > > Do you need ohci-pci? Have you tried running a kernel without it and
32 > > check if your hardware still works as intended?
33 > >
34 > I would try that too,,,
35
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
71 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:
72
73 With OHCI:
74
75 kutulu@wombat ~ $ dmesg | grep usb
76 [ 0.074276] usbcore: registered new interface driver usbfs
77 [ 0.074460] usbcore: registered new interface driver hub
78 [ 0.074658] usbcore: registered new device driver usb
79 [ 0.245705] usbcore: registered new interface driver usbhid
80 [ 0.245879] usbhid: USB HID core driver
81 [ 7.420249] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
82 [ 7.420426] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
83 [ 7.420735] usb usb1: Product: EHCI Host Controller
84 [ 7.420908] usb usb1: Manufacturer: Linux 3.16.0-gentoo-wombat-3 ehci_hcd
85 [ 7.421089] usb usb1: SerialNumber: 0000:00:0b.1
86 [ 7.631143] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
87 [ 7.631328] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
88 [ 7.631618] usb usb2: Product: OHCI PCI host controller
89 [ 7.631789] usb usb2: Manufacturer: Linux 3.16.0-gentoo-wombat-3 ohci_hcd
90 [ 7.631964] usb usb2: SerialNumber: 0000:00:0b.0
91 [ 7.753477] usb 1-7: new high-speed USB device number 2 using ehci-pci
92 [ 7.968033] usb 1-7: New USB device found, idVendor=14cd, idProduct=6500
93 [ 7.968179] usb 1-7: New USB device strings: Mfr=1, Product=3, SerialNumber=2
94 [ 7.968312] usb 1-7: Product: USB 2.0 Flash drive
95 [ 7.968442] usb 1-7: Manufacturer: MOAI INC.
96 [ 7.968568] usb 1-7: SerialNumber: 4FD30F4B00C5
97 [ 8.165667] usb-storage 1-7:1.0: USB Mass Storage device detected
98 [ 8.174052] scsi4 : usb-storage 1-7:1.0
99 [ 8.174281] usbcore: registered new interface driver usb-storage
100 [ 8.380031] usb 2-8: new low-speed USB device number 2 using ohci-pci
101 [ 8.717028] usb 2-8: New USB device found, idVendor=413c, idProduct=2105
102 [ 8.717058] usb 2-8: New USB device strings: Mfr=1, Product=2, SerialNumber=0
103 [ 8.717068] usb 2-8: Product: Dell USB Keyboard
104 [ 8.717075] usb 2-8: Manufacturer: Dell
105 [ 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
106 [ 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
107 kutulu@wombat ~ $
108
109 Without OHCI:
110
111 kutulu@wombat ~ $ dmesg | grep usb
112 [ 0.076245] usbcore: registered new interface driver usbfs
113 [ 0.076428] usbcore: registered new interface driver hub
114 [ 0.076626] usbcore: registered new device driver usb
115 [ 0.247749] usbcore: registered new interface driver usbhid
116 [ 0.247922] usbhid: USB HID core driver
117 [ 6.991241] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
118 [ 6.991417] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
119 [ 6.991726] usb usb1: Product: EHCI Host Controller
120 [ 6.991900] usb usb1: Manufacturer: Linux 3.16.0-gentoo-wombat-5 ehci_hcd
121 [ 6.992078] usb usb1: SerialNumber: 0000:00:0b.1
122 [ 7.295804] usb 1-7: new high-speed USB device number 2 using ehci-pci
123 [ 7.413707] usb 1-7: New USB device found, idVendor=14cd, idProduct=6500
124 [ 7.413881] usb 1-7: New USB device strings: Mfr=1, Product=3, SerialNumber=2
125 [ 7.414047] usb 1-7: Product: USB 2.0 Flash drive
126 [ 7.414205] usb 1-7: Manufacturer: MOAI INC.
127 [ 7.414371] usb 1-7: SerialNumber: 4FD30F4B00C5
128 [ 7.870672] usb-storage 1-7:1.0: USB Mass Storage device detected
129 [ 7.871215] scsi4 : usb-storage 1-7:1.0
130 [ 7.871425] usbcore: registered new interface driver usb-storage
131 kutulu@wombat ~ $
132
133 Is that normal?

Replies

Subject Author
Re: [gentoo-user] Intermittent USB device failures Volker Armin Hemmann <volkerarmin@××××××××××.com>