odroid kernel: urb_enqueue:urb issues

Post Reply
fab
Posts: 214
Joined: Mon Apr 28, 2014 3:51 pm
languages_spoken: english French
ODROIDs: Odroid W + Odroid C0 + Odroid C1 + Odroid C2
Location: France Orleans
Has thanked: 0
Been thanked: 0
Contact:

odroid kernel: urb_enqueue:urb issues

Post by fab »

Hi,

Looking to /var/log/syslog of my Odroid C1, I could not imagine, that I will got so many errors like this one "odroid kernel: [ 338.927703@3] urb_enqueue:urb(eb7ac580) had be
en killed". There are many posts on that issue since quite a long time, but this issues still exist, even on the latest version I installed (Ubuntu 16.04, kernel # 3.10.104-181 to see wether it is better than with the 14.04, but still the same, as it seems to be a kernel issue of the USB driver implementation).

The problem with this issue, is that many of my usb devices connected to the USB or OTG port, freeze very often, or are really unstable. It works nicely during 3 or 4 hours, and suddenly go down, and crashed.
(For the moment, I have one USB webcam connected to the USB port, and a HUAWEI 3G modem connected to the OTG port. So only ONE device per type of USB port).

EDIT1: I tried to separate 480M USB devices from 12M devices, but got the same errors....

Is there any patches available somewhere which could help?

(Note: On the Odroid C2, I never seen any of these messages in the syslog.... ;) )

fab
Posts: 214
Joined: Mon Apr 28, 2014 3:51 pm
languages_spoken: english French
ODROIDs: Odroid W + Odroid C0 + Odroid C1 + Odroid C2
Location: France Orleans
Has thanked: 0
Been thanked: 0
Contact:

Re: odroid kernel: urb_enqueue:urb issues

Post by fab »

What I did to solve this isssue, was to add an external USB hub.
With the hub, I no longer have any urb_enqueue isssues! :(

User avatar
odroid
Site Admin
Posts: 40074
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2841 times
Been thanked: 1602 times
Contact:

Re: odroid kernel: urb_enqueue:urb issues

Post by odroid »

Did you use "ondemand" governor?
Please test the USB devices with "performance" governor.
http://odroid.com/dokuwiki/doku.php?id= ... erformance

User avatar
rooted
Posts: 9723
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 767 times
Been thanked: 526 times
Contact:

Re: odroid kernel: urb_enqueue:urb issues

Post by rooted »

This makes me think the onboard USB hub wasn't providing adequate power, may want to look at upgrading your power supply also.

Glad you got it sorted.

fab
Posts: 214
Joined: Mon Apr 28, 2014 3:51 pm
languages_spoken: english French
ODROIDs: Odroid W + Odroid C0 + Odroid C1 + Odroid C2
Location: France Orleans
Has thanked: 0
Been thanked: 0
Contact:

Re: odroid kernel: urb_enqueue:urb issues

Post by fab »

@Odroid: Thx for your help again.
I moved back all my usb devices to the Odroid USB ports (Fast 480M devices onto the OTG port, and slow 12M devices hooked to the internal USB hub of the Odroid).
Then enabling the "performance" governor following your wiki.....and unfortunetely got again these kind of warning:

Code: Select all

Jan 31 20:58:41 odroid kernel: [32302.127184@2] urb_enqueue:urb(eb986280) had been killed
95% of the syslog is filled in with this error!

then revert back with my external powered USB hub, and this issue is gone!

So "performance" governor seems to have no effect on these USB issues.

Fab

User avatar
odroid
Site Admin
Posts: 40074
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2841 times
Been thanked: 1602 times
Contact:

Re: odroid kernel: urb_enqueue:urb issues

Post by odroid »

Thank you for the test.

Please show me "lsusb" and "lsusb -t" output with & without external USB hub.
We want to know the speed class of your USB devices and chipset in the external USB hub.

fab
Posts: 214
Joined: Mon Apr 28, 2014 3:51 pm
languages_spoken: english French
ODROIDs: Odroid W + Odroid C0 + Odroid C1 + Odroid C2
Location: France Orleans
Has thanked: 0
Been thanked: 0
Contact:

Re: odroid kernel: urb_enqueue:urb issues

Post by fab »

Hi @Odroid,

This is what you request:

Without external USB Hub:
lsusb
Bus 001 Device 005: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E230/E270/E870 HSDPA/HSUPA Modem
Bus 001 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 05a3:9310 ARC International
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 1: Dev 2, If 1, Class=Video, Driver=uvcvideo, 480M
|__ Port 1: Dev 2, If 2, Class=Audio, Driver=snd-usb-audio, 480M
|__ Port 1: Dev 2, If 3, Class=Audio, Driver=snd-usb-audio, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 2: Dev 3, If 0, Class=Vendor Specific Class, Driver=ftdi_sio, 12M
|__ Port 4: Dev 5, If 0, Class=Vendor Specific Class, Driver=option, 12M
|__ Port 4: Dev 5, If 1, Class=Vendor Specific Class, Driver=option, 12M
|__ Port 4: Dev 5, If 2, Class=Mass Storage, Driver=usb-storage, 12M
With external USB HUB (Powered or Not Powered does NOT change anything.)
lsusb
Bus 001 Device 007: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E230/E270/E870 HSDPA/HSUPA Modem
Bus 001 Device 010: ID 05a3:9310 ARC International
Bus 001 Device 009: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 4: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 1: Dev 9, If 0, Class=Vendor Specific Class, Driver=ftdi_sio, 12M
|__ Port 2: Dev 10, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 2: Dev 10, If 1, Class=Video, Driver=uvcvideo, 480M
|__ Port 2: Dev 10, If 2, Class=Audio, Driver=snd-usb-audio, 480M
|__ Port 2: Dev 10, If 3, Class=Audio, Driver=snd-usb-audio, 480M
|__ Port 4: Dev 7, If 0, Class=Vendor Specific Class, Driver=option, 12M
|__ Port 4: Dev 7, If 1, Class=Vendor Specific Class, Driver=option, 12M
|__ Port 4: Dev 7, If 2, Class=Mass Storage, Driver=usb-storage, 12M
Please note that when using external HUB, it is wired to the Odroid USB internal Hub, and not to the OTG port.

User avatar
odroid
Site Admin
Posts: 40074
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2841 times
Been thanked: 1602 times
Contact:

Re: odroid kernel: urb_enqueue:urb issues

Post by odroid »

Thank you for the valuable information.

We will try to find the specification of 05e3:0608 Genesys hub controller IC.

fab
Posts: 214
Joined: Mon Apr 28, 2014 3:51 pm
languages_spoken: english French
ODROIDs: Odroid W + Odroid C0 + Odroid C1 + Odroid C2
Location: France Orleans
Has thanked: 0
Been thanked: 0
Contact:

Re: odroid kernel: urb_enqueue:urb issues

Post by fab »

The external USB HUB I am using is a BLUESTORK USB 2.0 Hub, like this one:
http://www.ebay.fr/itm/BLUESTORK-Mini- ... wr81UTju1

User avatar
odroid
Site Admin
Posts: 40074
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2841 times
Been thanked: 1602 times
Contact:

Re: odroid kernel: urb_enqueue:urb issues

Post by odroid »

Sorry. I can't read French.
Is this identical thing?
http://www.bluestork.eu/products/hubs/i ... ed?lang=en

Would you please open the case and let me know the IC part number?
Or I will buy one to know the hub IC part number.

fab
Posts: 214
Joined: Mon Apr 28, 2014 3:51 pm
languages_spoken: english French
ODROIDs: Odroid W + Odroid C0 + Odroid C1 + Odroid C2
Location: France Orleans
Has thanked: 0
Been thanked: 0
Contact:

Re: odroid kernel: urb_enqueue:urb issues

Post by fab »

Yes This is the same one. :)

The IC reference is:
GL850G
HH1JBO2Y31
321S1C9913


I have a picture of the board, but it seems impossible to upload any picture onto the forum this morning. (Even after a big resize in order to have a very small picture size :( )

User avatar
odroid
Site Admin
Posts: 40074
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2841 times
Been thanked: 1602 times
Contact:

Re: odroid kernel: urb_enqueue:urb issues

Post by odroid »

That's more than enough. Really appreciate your help.
GL850G is what we needed to know.
We will buy some samples and replace it with onboard GL852G.

fab
Posts: 214
Joined: Mon Apr 28, 2014 3:51 pm
languages_spoken: english French
ODROIDs: Odroid W + Odroid C0 + Odroid C1 + Odroid C2
Location: France Orleans
Has thanked: 0
Been thanked: 0
Contact:

Re: odroid kernel: urb_enqueue:urb issues

Post by fab »

I find out, that I got hese URB_ENQUEUE:USB issues in the /var/log/syslog, ONLY when I am closing the serial port (Serial port used through USB converter. I am using an Huawei 3G dongle).


If I removed the serial close port from my application, I no longer have these issues. Of course the app crashes after a while, if I do not close the related port. :cry:

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 4 guests