[Bug 380409] New: Error "USBDEVFS_CONTROL failed cmd lsusb" reading device (USB-Dongle)
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c1 Summary: Error "USBDEVFS_CONTROL failed cmd lsusb" reading device (USB-Dongle) Product: openSUSE 10.3 Version: Final Platform: x86-64 OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jan@promo.de QAContact: qa@suse.de Found By: Customer Hello, we are using an USB-Dongle for a software. Sometimes there is an error like "kernel: usb 3-2.1: usbfs: USBDEVFS_CONTROL failed cmd machid rqt 161 rq 1 len 12 ret -110" in the /var/log/messages and the protected software aborted with an license-error. The command "machid" ist a tool from this software. I can reproduce this error with the Linux command "lsusb". If I call "lsusb -v -s 003:003" in a skript with a loop (call every 1 second), after a while (sometimes after 2 minutes, sometimes after 1 hour) I also become an error like "kernel: usb 3-2.1: usbfs: USBDEVFS_CONTROL failed cmd lsusb rqt 128 rq 6 len 255 ret -110" in the /var/log/messages. I can not exact say after which time the error comes, but the error comes sure !! May System is a SUN workstation with AMD-Opteron and openSuSE 10.3. uname -a says: Linux opteron 2.6.22.17-0.1-default #1 SMP 2008/02/10 20:01:04 UTC x86_64 x86_64 x86_64 GNU/Linux If I connect the usb-dongle, the system says : kernel: usb 4-2: new low speed USB device using ohci_hcd and address 2 kernel: usb 4-2: new device found, idVendor=07c0, idProduct=1001 kernel: usb 4-2: new device strings: Mfr=1, Product=2, SerialNumber=3 kernel: usb 4-2: Product: HeliosMachid kernel: usb 4-2: Manufacturer: Code Mercenaries kernel: usb 4-2: SerialNumber: EE0007F2 kernel: usb 4-2: configuration #1 chosen from 1 choice Greetings Jan -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 Robert Vojcik <rvojcik@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rvojcik@novell.com AssignedTo|bnc-team-screening@forge.provo.novell.com |kernel-maintainers@forge.provo.novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User gregkh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c1 Greg Kroah-Hartman <gregkh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |jan@promo.de --- Comment #1 from Greg Kroah-Hartman <gregkh@novell.com> 2008-04-16 08:56:51 MST --- Does this cause any problems when using the device? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c2 Jan Asmus <jan@promo.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jan@promo.de Status|NEEDINFO |NEW Info Provider|jan@promo.de | --- Comment #2 from Jan Asmus <jan@promo.de> 2008-04-16 23:53:39 MST --- Hello, yes there is a great problem !! This USB-Dongle is the copy-protection (it contain's a unique Serial Number) for the Software from Helios under Linux (www.helios.de). If this error come's, the software terminated with an license-error. Jan -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User gregkh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c3 Greg Kroah-Hartman <gregkh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gregkh@novell.com AssignedTo|kernel-maintainers@forge.provo.novell.com |oneukum@novell.com --- Comment #3 from Greg Kroah-Hartman <gregkh@novell.com> 2008-04-17 11:05:17 MST --- Oliver, can you look into this? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User oneukum@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c4 Oliver Neukum <oneukum@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #4 from Oliver Neukum <oneukum@novell.com> 2008-04-21 02:30:49 MST --- Error -110 is a timeout. The device didn't answer or at least the kernel thinks so. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User oneukum@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c5 Oliver Neukum <oneukum@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |jan@promo.de --- Comment #5 from Oliver Neukum <oneukum@novell.com> 2008-04-21 02:31:15 MST --- Can you repeat your lsusb test with another USB device, eg. a mouse? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c6 Jan Asmus <jan@promo.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|jan@promo.de | --- Comment #6 from Jan Asmus <jan@promo.de> 2008-04-21 02:50:56 MST --- Hello, I have tested an USB-Mouse (SUN Crossbow), there is no problem. I have tested an USB-Keyboard (Cherry), there is no problem. Only this USB Dongle has the problem with Linux. This USB Dongle makes no problem under MacOSX 10.4 and 10.5 and no problem under Windows. Jan -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 Jan Asmus <jan@promo.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |jan@promo.de -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c7 Jan Asmus <jan@promo.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|jan@promo.de | --- Comment #7 from Jan Asmus <jan@promo.de> 2008-04-21 02:54:09 MST --- Hello, all the test run for 8 hours and the lsusb command every second. Jan -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User oneukum@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c8 Oliver Neukum <oneukum@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |jan@promo.de --- Comment #8 from Oliver Neukum <oneukum@novell.com> 2008-04-22 02:39:57 MST --- OK, in this case we need to determine what went over the wire. The first step is to capture an usbmon trace of a failure. Do you know how to use usbmon? PKease attach the last kilobyte or so of the log. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c9 Jan Asmus <jan@promo.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|jan@promo.de | --- Comment #9 from Jan Asmus <jan@promo.de> 2008-04-22 03:43:56 MST --- Created an attachment (id=209519) --> (https://bugzilla.novell.com/attachment.cgi?id=209519) usbmon Trace Hello, here is the usbmon output (attached as jan.out.gz). A few minutes after starting the "lsusb -v -s 004:002" loop (every 1 second) ther comes the error in /var/log/messages: Apr 22 11:22:29 opteron kernel: usb 4-2: usbfs: USBDEVFS_CONTROL failed cmd lsusb rqt 128 rq 0 len 2 ret -110 The usbmon Trace is started as described in usbmon.txt. Greetings Jan -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User oneukum@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c10 Oliver Neukum <oneukum@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |jan@promo.de --- Comment #10 from Oliver Neukum <oneukum@novell.com> 2008-04-22 04:06:36 MST --- Very well. Can you apply a debugging kernel patch or do you need an RPM? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c11 Jan Asmus <jan@promo.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|jan@promo.de | --- Comment #11 from Jan Asmus <jan@promo.de> 2008-04-22 04:18:48 MST --- Yes, I can apply a debugging kernel patch. If you have an RPM, it is also ok. Jan -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User oneukum@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c12 Oliver Neukum <oneukum@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |jan@promo.de --- Comment #12 from Oliver Neukum <oneukum@novell.com> 2008-04-23 04:47:26 MST --- OK, before we do that could you load usbcore with the module parameter usbfs_snoop set to true and rerun your test? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c13 Jan Asmus <jan@promo.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|jan@promo.de | --- Comment #13 from Jan Asmus <jan@promo.de> 2008-04-23 05:46:12 MST --- Created an attachment (id=209862) --> (https://bugzilla.novell.com/attachment.cgi?id=209862) /var/log/messages with usbcore usbfs_snoop=1 Hello, here is the info in 2 parts. messages.gz shows the var/log/messages during the test. Error comes at: Apr 23 13:27:31 opteron kernel: usb 4-2: usbfs: USBDEVFS_CONTROL failed cmd lsusb rqt 128 rq 6 len 255 ret -110 The usbmon output comes in another upload. Jan -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c14 --- Comment #14 from Jan Asmus <jan@promo.de> 2008-04-23 05:47:20 MST --- Created an attachment (id=209866) --> (https://bugzilla.novell.com/attachment.cgi?id=209866) usbmon output with usbcore usbfs_snoop=1 usbmon output during the new test with usbcore usbfs_snoop=1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User oneukum@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c15 Oliver Neukum <oneukum@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |jan@promo.de --- Comment #15 from Oliver Neukum <oneukum@novell.com> 2008-04-23 07:07:41 MST --- It is necessary to check whether the device causes a timeout as a response to a specific command or at random. Can you please run the test with snoop until you get a second error? There's no need for a trace, just the syslog. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c16 Jan Asmus <jan@promo.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|jan@promo.de | --- Comment #16 from Jan Asmus <jan@promo.de> 2008-04-23 07:52:17 MST --- Created an attachment (id=209892) --> (https://bugzilla.novell.com/attachment.cgi?id=209892) messages with 2 errors Here the /var/log/messages with 2 errors: Apr 23 15:37:25 opteron kernel: usb 4-2: usbfs: USBDEVFS_CONTROL failed cmd lsusb rqt 128 rq 6 len 255 ret -110 and Apr 23 15:43:18 opteron kernel: usb 4-2: usbfs: USBDEVFS_CONTROL failed cmd lsusb rqt 128 rq 6 len 255 ret -110 Jan -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User oneukum@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c17 --- Comment #17 from Oliver Neukum <oneukum@novell.com> 2008-04-23 09:20:04 MST --- Created an attachment (id=209918) --> (https://bugzilla.novell.com/attachment.cgi?id=209918) debugging patch printing requested timeout -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User oneukum@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c18 Oliver Neukum <oneukum@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |jan@promo.de --- Comment #18 from Oliver Neukum <oneukum@novell.com> 2008-04-23 09:20:42 MST --- Please apply the patch from #17 and rerun the snoop test. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c19 Jan Asmus <jan@promo.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|jan@promo.de | --- Comment #19 from Jan Asmus <jan@promo.de> 2008-04-24 01:01:38 MST --- Hello, how can I apply the patch ? patch -d /usr/src/linux-2.6.22.17-0.1/drivers/usb/core/ dbg_state_timeout.diff Is this the correct way ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c20 --- Comment #20 from Jan Asmus <jan@promo.de> 2008-04-24 01:34:23 MST --- I have changed the devio.c with an editor. The new data from the snoop will come soon. Jan -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User oneukum@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c21 Oliver Neukum <oneukum@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |jan@promo.de --- Comment #21 from Oliver Neukum <oneukum@novell.com> 2008-04-24 01:39:08 MST --- For further use: patch -d /usr/src/linux-2.6.22.17-0.1 -p 1 < dbg_state_timeout.diff a patch may touch several files in a tree, so you must go to the uppermost level. -p1 is a convention for kernel patches. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c22 Jan Asmus <jan@promo.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|jan@promo.de | --- Comment #22 from Jan Asmus <jan@promo.de> 2008-04-24 02:45:54 MST --- Created an attachment (id=210095) --> (https://bugzilla.novell.com/attachment.cgi?id=210095) messages with changed devio.c Here the actual messages with the following errors: Apr 24 10:30:13 opteron kernel: usb 4-2: usbfs: USBDEVFS_CONTROL failed cmd lsusb rqt 128 rq 0 len 2 ret -110 tmo 5000 Apr 24 10:35:49 opteron kernel: usb 4-2: usbfs: USBDEVFS_CONTROL failed cmd lsusb rqt 128 rq 6 len 255 ret -110 tmo 1000 Apr 24 10:38:49 opteron kernel: usb 4-2: usbfs: USBDEVFS_CONTROL failed cmd lsusb rqt 128 rq 0 len 2 ret -110 tmo 5000 Apr 24 10:39:16 opteron kernel: usb 4-2: usbfs: USBDEVFS_CONTROL failed cmd lsusb rqt 128 rq 0 len 2 ret -110 tmo 5000 Jan -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User oneukum@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c23 Oliver Neukum <oneukum@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |jan@promo.de --- Comment #23 from Oliver Neukum <oneukum@novell.com> 2008-04-24 04:31:21 MST --- OK, before we try intrusive debugging patches it's worth checking whether your device needs extra long timeouts please change in devio.c the line i = usb_control_msg(dev, usb_rcvctrlpipe(dev, 0), ctrl.bRequest, ctrl.bRequestType, ctrl.wValue, ctrl.wIndex, tbuf, ctrl.wLength, tmo); to i = usb_control_msg(dev, usb_rcvctrlpipe(dev, 0), ctrl.bRequest, ctrl.bRequestType, ctrl.wValue, ctrl.wIndex, tbuf, ctrl.wLength, tmo*4); and recompile your kernel with CONFIG_USB_DEBUG -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c24 Jan Asmus <jan@promo.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|jan@promo.de | --- Comment #24 from Jan Asmus <jan@promo.de> 2008-04-24 05:09:49 MST --- This line comes 2 times in devio.c. I have changed both. Right ? snoop Test is now running. I have asked also several of our customers with Linux installations and usage of this dongle. They all have this errors in the messages files. Distributions are: openSuSE 10.3 SLES 9 SLES 10 RedHat Enterprise 4 RedHat Enterprise 5 Debian -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c25 --- Comment #25 from Jan Asmus <jan@promo.de> 2008-04-24 05:29:43 MST --- Created an attachment (id=210166) --> (https://bugzilla.novell.com/attachment.cgi?id=210166) messages with second changed devio.c Here the new messages with some errors. Now only "tmo 1000" errors and no "tmo 5000" errors. Apr 24 13:03:04 opteron kernel: usb 4-2: usbfs: USBDEVFS_CONTROL failed cmd lsusb rqt 128 rq 6 len 255 ret -110 tmo 1000 Apr 24 13:09:23 opteron kernel: usb 4-2: usbfs: USBDEVFS_CONTROL failed cmd lsusb rqt 128 rq 6 len 255 ret -110 tmo 1000 Apr 24 13:13:12 opteron kernel: usb 4-2: usbfs: USBDEVFS_CONTROL failed cmd lsusb rqt 128 rq 6 len 255 ret -110 tmo 1000 Apr 24 13:15:28 opteron kernel: usb 4-2: usbfs: USBDEVFS_CONTROL failed cmd lsusb rqt 128 rq 6 len 255 ret -110 tmo 1000 Apr 24 13:15:59 opteron kernel: usb 4-2: usbfs: USBDEVFS_CONTROL failed cmd lsusb rqt 128 rq 6 len 255 ret -110 tmo 1000 Apr 24 13:16:35 opteron kernel: usb 4-2: usbfs: USBDEVFS_CONTROL failed cmd lsusb rqt 128 rq 6 len 255 ret -110 tmo 1000 Apr 24 13:17:02 opteron kernel: usb 4-2: usbfs: USBDEVFS_CONTROL failed cmd lsusb rqt 128 rq 6 len 255 ret -110 tmo 1000 Apr 24 13:17:14 opteron kernel: usb 4-2: usbfs: USBDEVFS_CONTROL failed cmd lsusb rqt 128 rq 6 len 255 ret -110 tmo 1000 Apr 24 13:18:35 opteron kernel: usb 4-2: usbfs: USBDEVFS_CONTROL failed cmd lsusb rqt 128 rq 6 len 255 ret -110 tmo 1000 Apr 24 13:20:09 opteron kernel: usb 4-2: usbfs: USBDEVFS_CONTROL failed cmd lsusb rqt 128 rq 6 len 255 ret -110 tmo 1000 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c26 --- Comment #26 from Jan Asmus <jan@promo.de> 2008-04-24 05:31:40 MST --- Created an attachment (id=210167) --> (https://bugzilla.novell.com/attachment.cgi?id=210167) my edited and used devio.c This is the devio.c that I have used for the last snoop Test. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User gregkh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c27 --- Comment #27 from Greg Kroah-Hartman <gregkh@novell.com> 2008-04-24 11:27:45 MST --- (In reply to comment #24 from Jan Asmus)
I have asked also several of our customers with Linux installations and usage of this dongle. They all have this errors in the messages files.
Distributions are: openSuSE 10.3 SLES 9 SLES 10 RedHat Enterprise 4 RedHat Enterprise 5 Debian
That makes it sound more like a hardware problem with this dongle, than a specific SuSE bug in the system. Is there any way to just increase the timeout in the userspace program that checks the dongle? That is what the patch that Oliver sent you does, and it seems to help solve the issue. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c28 --- Comment #28 from Jan Asmus <jan@promo.de> 2008-04-25 00:10:16 MST --- It looks like a general Linux-problem for us. It is also possible, that it is a problem with the dongle hardware. No problems under MacOSX. No problems under Windows. Only problems with Linux. With this changed devio.c I become also errors with lsusb -v -s (look at #25 above). With the userspace program "machid" I also become with the changed devio.c the following error: Apr 24 13:39:03 opteron kernel: usb 4-2: usbfs: USBDEVFS_CONTROL failed cmd machid rqt 161 rq 1 len 12 ret -110 tmo 20 This morning I will call the developer of "machid" to ask him about the program-call he uses to read out the dongle. The tested hardware (and the linux distributions named in #24 above) with this problems are: SUN Fire X4200 SUN W1100z Thomas Krenn Server IBM xSeries 345 HP ProLiant DL385 G2 DELL PowerEdge 9250 VMware Cluster (ESX 3.5) on 2 SUN Fire X4200 with 2 DualCore Prozessoren 16GB RAM, 4 GigaNIC Jan -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c29 --- Comment #29 from Jan Asmus <jan@promo.de> 2008-04-25 01:50:58 MST --- Created an attachment (id=210410) --> (https://bugzilla.novell.com/attachment.cgi?id=210410) in userprogram machid used code to access Dongle Here is the used code in the command "machid" (see attachment). The dongle was read 100 times in 10ms. In the code I see ctrl.timeout = 20; I have asked Helios (Software Developer) to increase this timeout. They will test this next week. Jan -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User oneukum@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c30 Oliver Neukum <oneukum@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |jan@promo.de --- Comment #30 from Oliver Neukum <oneukum@novell.com> 2008-04-28 04:47:35 MST --- With a changed devio a tmo 1000 request really has a timeout of 4000 milisecons, which is still less than a 5 second timeout some requests failed with. Now it may be a coincidence, but 5 seconds turn into 20 seconds. It may be that Helios' coders are confused about the semantics considering the timeout to be in seconds although it is in miliseconds. If you feel adventurous try changing tmo*4 in devio.c to 20000 and run your test. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c31 Jan Asmus <jan@promo.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|jan@promo.de | --- Comment #31 from Jan Asmus <jan@promo.de> 2008-05-13 05:56:43 MST --- The kernel (and installation) is now back to a standard installation. With a shell skript we (our company an Helios, the developer) now trace the program (and test the error-routine). --- #!/bin/sh MID1=ee0007f2-bf echo "machid should be: -$MID1-" while true do MID2=`/usr/bin/strace -o machid.strace /usr/local/helios/bin/machid | grep -v PID` echo "got machid: -$MID2-" if (test "$MID1" != "$MID2") then echo "machid did not match, aborting" exit 1 fi sleep 1 done exit 0 --- I will report here if we have an result. Jan -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User oneukum@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c32 Oliver Neukum <oneukum@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |jan@promo.de --- Comment #32 from Oliver Neukum <oneukum@novell.com> 2008-05-19 01:39:23 MST --- Anything new? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c33 Jan Asmus <jan@promo.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|jan@promo.de | --- Comment #33 from Jan Asmus <jan@promo.de> 2008-05-19 02:52:14 MST --- On my system I can reproduce some times the errormessage: USBDEVFS_CONTROL failed cmd machid rqt 161 rq 1 len 12 ret -110" the strace of the command "machid" shows this error and after a nanosleep there is a successful retry. ioctl(6, USBDEVFS_CLAIMINTERFACE, 0xffc1af94) = 0 ioctl(6, USBDEVFS_CONTROL, 0xffc1b010) = -1 ETIMEDOUT (Connection timed out) ioctl(6, USBDEVFS_RELEASEINTERFACE, 0xffc1af94) = 0 ioctl(6, USBDEVFS_RESETEP, 0xffc1af94) = -1 ENOENT (No such file or directory) nanosleep({0, 10000000}, NULL) = 0 ioctl(6, USBDEVFS_CLAIMINTERFACE, 0xffc1af94) = 0 ioctl(6, USBDEVFS_CONTROL, 0xffc1b010) = 12 ioctl(6, USBDEVFS_RELEASEINTERFACE, 0xffc1af94) = 0 close(6) = 0 Now I have given our strace-script to our customers with the license-problem and I hope that I wil become soon an strace output that shows the license error complete. Jan -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c34 --- Comment #34 from Jan Asmus <jan@promo.de> 2008-05-22 00:28:38 MST --- Hello, another question. In the license-tool (updated usbmachid.so Library) we now run into an correction loop with the following USBDEVFS_CONTROL Errors: ETIMEDOUT EBUSY EPIPE Are there any other Errors ? What are the error-codes ? Is there a complete and actual list available ? Thanks and Greetings ! Jan -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User oneukum@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c35 --- Comment #35 from Oliver Neukum <oneukum@novell.com> 2008-05-26 05:25:44 MDT --- Other error codes exist. They are documented in $LINUXSRC/Documentation/usb/error-codes.txt -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User oneukum@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c36 Oliver Neukum <oneukum@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |jan@promo.de --- Comment #36 from Oliver Neukum <oneukum@novell.com> 2008-06-05 01:58:25 MDT --- Anything new? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c37 Jan Asmus <jan@promo.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|jan@promo.de | --- Comment #37 from Jan Asmus <jan@promo.de> 2008-06-05 06:30:43 MDT --- There is now a running test with a new usbmachid.so (Library for the machid tool from Helios) with some customers. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User oneukum@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c38 Oliver Neukum <oneukum@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |jan@promo.de --- Comment #38 from Oliver Neukum <oneukum@novell.com> 2008-06-17 05:46:03 MDT --- Anything new? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c39 Jan Asmus <jan@promo.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|jan@promo.de | --- Comment #39 from Jan Asmus <jan@promo.de> 2008-06-17 06:57:44 MDT --- At this point there is no license error in the installation who is testing this new library usbmachid.so (Preversion !!). In the past this error only occures every 4 weeks, but some times very often. We are waiting for the final update from Helios Software. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c40 --- Comment #40 from Jan Asmus <jan@promo.de> 2008-06-25 06:05:44 MDT --- Hello, the user who is testing the new Library from Helios runs into another problem. The strace-output shows ioctl(6, USBDEVFS_CLAIMINTERFACE, 0xffd7a6e4) = 0 ioctl(6, USBDEVFS_CONTROL, 0xffd7a760) = -1 EPIPE (Broken pipe) ioctl(6, USBDEVFS_RELEASEINTERFACE, 0xffd7a6e4) = 0 ioctl(6, USBDEVFS_RESETEP, 0xffd7a6e4) = -1 ENOENT (No such file or directory) nanosleep({42949672960000000, 14}, NULL) = 0 ioctl(6, USBDEVFS_CLAIMINTERFACE, 0xffd7a6e4) = 0 ioctl(6, USBDEVFS_CONTROL, 0xffd7a760) = -1 EPIPE (Broken pipe) ioctl(6, USBDEVFS_RELEASEINTERFACE, 0xffd7a6e4) = 0 ioctl(6, USBDEVFS_RESETEP, 0xffd7a6e4) = -1 ENOENT (No such file or directory) nanosleep({42949672960000000, 14}, NULL) = 0 There are 101 EPIPE Errors. The new Library only accepted 100 Errors. Why does the system generates su much EPIPE Error ? Under which conditions generates the system an EPIPE ? Thanks ! Jan -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User oneukum@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c41 --- Comment #41 from Oliver Neukum <oneukum@novell.com> 2008-06-25 07:30:07 MDT --- The system doesn't generate -EPIPE. That comes from the device and means that the device is stalled. And it will return a stall until the endpoint is cleared. According to the trace you are reacting with USBDEVFS_RESETEP to a stall condition. That's wrong. You must use USBDEVFS_CLEAR_HALT. It is not clear from the trace why the device stalls in the first place. It is allowed to do so if it finds the control request incomprehensible. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c42 --- Comment #42 from Jan Asmus <jan@promo.de> 2008-06-25 07:49:12 MDT --- Created an attachment (id=224313) --> (https://bugzilla.novell.com/attachment.cgi?id=224313) complete strace output Hello, here is the complete strace output with all EPIPE Errors. Thanks for your help !! Jan -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 Oliver Neukum <oneukum@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #224313|application/octet-stream |text/plain mime type| | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User oneukum@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c43 --- Comment #43 from Oliver Neukum <oneukum@novell.com> 2008-06-25 10:13:08 MDT --- Again, the trace only tells you that a control transfer stalled the interface. It doesn't tell you what's at 0xffd7a6e4. You'd need an usbmon trace for that. open("/dev/bus/usb/004/008", O_RDWR|O_LARGEFILE) = 6 read(6, "\22\1\0\1\0\0\0\10\300\7\1\20\0\20\1\2\3\1", 18) = 18 fstat64(0x6, 0xffd7a6f0) = 0 ioctl(6, USBDEVFS_CLAIMINTERFACE, 0xffd7a6e4) = 0 ioctl(6, USBDEVFS_CONTROL, 0xffd7a760) = -1 EPIPE (Broken pipe) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c44 --- Comment #44 from Jan Asmus <jan@promo.de> 2008-06-27 02:39:44 MDT --- Hello, the developer of the library usbmachid.so has changed the code. The error occures also: open("/dev/bus/usb/004/009", O_RDWR|O_LARGEFILE) = 6 read(6, "\22\1\0\1\0\0\0\10\300\7\1\20\0\20\1\2\3\1", 18) = 18 fstat64(0x6, 0xffa3cbc0) = 0 ioctl(6, USBDEVFS_CLAIMINTERFACE, 0xffa3cbb4) = 0 ioctl(6, USBDEVFS_CONTROL, 0xffa3cc30) = -1 EPIPE (Broken pipe) ioctl(6, USBDEVFS_RELEASEINTERFACE, 0xffa3cbb4) = 0 ioctl(6, USBDEVFS_CLEAR_HALT, 0xffa3cbb4) = -1 ENOENT (No such file or directory) nanosleep({42949672960000000, 14}, NULL) = 0 I think we need an usbmon trace.... I am talking with the developer. Jan -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User oneukum@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c45 --- Comment #45 from Oliver Neukum <oneukum@novell.com> 2008-06-27 02:55:43 MDT --- Clear the stall condition before you release the interface. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c46 --- Comment #46 from Jan Asmus <jan@promo.de> 2008-07-02 01:17:20 MDT --- Created an attachment (id=225477) --> (https://bugzilla.novell.com/attachment.cgi?id=225477) strace output Hello, here is another strace output. Also Error EPIPE: open("/dev/bus/usb/004/010", O_RDWR|O_LARGEFILE) = 6 read(6, "\22\1\0\1\0\0\0\10\300\7\1\20\0\20\1\2\3\1", 18) = 18 fstat64(0x6, 0xff8b7230) = 0 ioctl(6, USBDEVFS_CLAIMINTERFACE, 0xff8b7224) = 0 ioctl(6, USBDEVFS_CONTROL, 0xff8b72a0) = -1 EPIPE (Broken pipe) ioctl(6, USBDEVFS_CLEAR_HALT, 0xff8b7224) = -1 ENOENT (No such file or directory) ioctl(6, USBDEVFS_RELEASEINTERFACE, 0xff8b7224) = 0 nanosleep({42949672960000000, 14}, NULL) = 0 Attached is the complete strace output. I think we have to make an usbmon trace ? Jan -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User oneukum@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c47 --- Comment #47 from Oliver Neukum <oneukum@novell.com> 2008-07-02 05:59:25 MDT --- Yes, a trace is needed. -ENOENT suggests that you try to access an endpoint that doesn't exist. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User oneukum@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c48 Oliver Neukum <oneukum@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |WORKSFORME --- Comment #48 from Oliver Neukum <oneukum@novell.com> 2008-07-14 06:27:16 MDT --- Please reopen when you have news. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c49 Jan Asmus <jan@promo.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | --- Comment #49 from Jan Asmus <jan@promo.de> 2008-08-14 06:07:53 MDT --- Hello, you have written "Please reopen when you have news". I have news from the manufacturer of the dongle. They have analyzed the dongle with an elisys-analyzer and ther must be an error in the usb-stack of the dongle (single chip). They think this is a race condition and thes also think that they will not find the cause of this error because the chip is old (5 years) and the developer tools are also old and not very good or state of the art. They want to find the error but they do not have a large hope. Jan -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User oneukum@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c50 Oliver Neukum <oneukum@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID --- Comment #50 from Oliver Neukum <oneukum@novell.com> 2008-08-14 06:34:15 MDT --- In this case, there's nothing we can do. It's a faulty device. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=380409 User jan@promo.de added comment https://bugzilla.novell.com/show_bug.cgi?id=380409#c51 --- Comment #51 from Jan Asmus <jan@promo.de> 2008-08-14 06:37:49 MDT --- Hello, many thanks for your help !! Jan -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com