-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem when plugging several USB devices at once #2097
Comments
This is unlikely to be supportable due to the inherent limitations of the DWC USB host on Pi. That said, what is the first firmware revision that fails in a worse way than previously? Run https://github.com/Hexxeh/rpi-firmware/commits/master and report back with the first "bad" version. |
This is the firmware version of the first "bad" version, corresponding to Kernel version 4.4.50-v7+: https://github.com/hexxeh/rpi-firmware/tree/1fdc3a06af325159cf1ed88b5bbd1bae85346d0a With this one, I am able to poll up to 30 devices for around 20 hours, once every minute. The longer between polling, the longer the rpi will run correctly. After that, I encounter the issue #830 (I guess!). Here is a screenshot of a typical kernel stack trace that I get when this situation occurs: |
Sorry, I misunderstood what you asked me. I'm trying to find the first commit where it fails in the worse way, as described at the top of this issue... |
@slaadvak Did you have a chance to determine which commit caused a performance regression? Or is the issue solved? |
Closing due to lack of activity. Reopen if you feel this issue is still relevant. |
In my case the problem was caused by a USB keyboard. I've disconnected it and everything became fine. Active USB hub and USB-modem wasn't a problem for rPi3. |
I make a test bench using a lot of USB peripherals. Everything was working fine with kernel 4.4.50-v7+, except for a sporadic problem (#830). So, I've decided to upgrade my kernel with the
dist-upgrade
command, because of this recent pull request in kernel 4.9.28: #2010. But since then, I'm running into important issues which have for effect of preventing using most of my USB peripherals, keyboard included.I'm using a RasPi 3 with Raspian.
cat /etc/os-release:
uname -r:
My setup is made of two independently powered USB hubs and a keyboard. Each hub have 10 ports and each port is filled with a USB ACM device.
The idVendor of the hubs is
1a40
. The idVendor of the ACM devices is15a2
.All the devices, except for the keyboard are initialy unplugged.
If I only plug the first hub (path is
1.1.2
) everything works fine. You can see this at around 46 seconds in thedmesg
excerpt below.Then, if I plug the second USB hub (path is
1.1.4
) the USB keyboard stops working. I can however still connect to my RasPi with SSH. I see that all the USB peripherals appear corrrectly in/dev
, but slower than usual. When I try to connect to these devices (through some serial API) it doesn't work, or if it finally works, I receive a lot of garbage.You can see in the
dmesg
below the connection of the second USB hub at around 68 seconds. You will see a lot of errors about clock problems and then, finally an error inassign_and_init_hc
. Even if I try to unplug/replug the hubs, in the same or in another port, I won't be able to recover from that weird state.The text was updated successfully, but these errors were encountered: