-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
dwc_otg driver causing complete system freeze in stable 6.6.28 kernel (Home Assistant OS, RPi OS) #6172
Comments
Is this a regression? i.e. has this ever been reliable with an older kernel? |
It is definitely a regression on Home Assistant OS, it is resolved by reverting back (HAOS uses A/B boot mechanism) to build using kernel tag I'll test an older RPi OS kernel and report back shortly. |
I downgraded 32bit RPi OS to 6.1 from the stable branch (6.1.73) using |
If the first works and the second fails, then it's likely the switch to 6.6 tree. |
Possibly the boot failure is due to 4a8f7f7 |
Moved a bit forward in the Git history and re-tested with hash (FWIW USB enumeration errors are another known issue of this particular USB device: home-assistant/operating-system#2995) |
Yes, looks like So seems it started with move to 6.6 tree (which doesn't narrow it down too much). |
Where can i download an older version that works outside of the raspberry pi imager and flash to the device? |
An older version of RPiOS? |
yes, I have been having lots of other zwave issues so kept installing updates in an attempt to fix it. Then i think I am stuck because of this issue. So, was trying to restore a backup, by flashing device from imager (version from 5/8/2024). Unplugged usb devices and the system starts. Is there a command from the console to rollback, without having to image an older version? |
You can revert bootloader/firmware/kernel with rpi-update. |
reflashed 12.2 to the sd card. will install a backup before the 12.3 upgrade. And then wait for a fix. update |
If I remember correctly, at least one of the Z-Wave dongles is/was seriously non-USB standards-compliant. @P33M? |
Ah yes, the stick I have the issue with is mentioned in https://forums.raspberrypi.com/viewtopic.php?f=28&t=245031#p1502030 and #3027. However, this was causing problems with Pi4 and not the Pi3, on which the current problem presents. It would be interesting to see if adding a hub in between solves the issue or not. The USB stick from sairon is a different one though. |
The last kernel do not fix the issue for me. the dwc2 driver fix it for zwave stick, but break another think. |
It was an Aeotec dongle and the symptom there was "failure to enumerate" not a hang during use. |
Wondering what's the current status on this (obviously kind of major) issue after a silence of 2 months? |
For what its worth, I have a similar problem with an ethernet-usb adapter. Raspberry Pi 4 Bookwork Desktop (64-bit) with The Pluto always connects, but the Dongle does not. pi@txtouch:~ $ uname -a pi@txtouch:~ $ lsusb pi@txtouch:~ $ nmcli device pi@txtouch:~ $ nmcli monitor |
I saw that 13.0 released today. Any idea if this issue has been resolved? |
Since i have updated to HA OS 13 i have this problem. before the update mine was running fine with a ZigBee stick and RPI3B+. |
What version did you run before updating to HA OS 13.0? |
12.3 or 12.4 can't remember wich one exactly... anyway i fixed it by doing a fresh install of HAOS 13.0. Now its running like before even with 13.0. |
Hello, I decided to jump to 13.1 to see how it's going on: so the host restarted and same problem appeared again, restart loop only when z2m add-on start. So, this is how I overcame it after tests, I have to respect these steps:
My conclusion is for now, the host must not restart when dongle is plugged, I suppose for the next host update I will have to replay these steps before update and only at the end, plug the dongle. |
Describe the bug
With the upgrade of Home Assistant OS to latest stable 6.6 kernel, we started to get reports of boot loops when some USB devices are connected: home-assistant/operating-system#3362
Further investigation shown it's caused by the default
dwc_otg
driver which causes a complete system freeze, with watchdog restarting the device shortly after. I managed to reproduce the same issue on RPi OS (both 32bit and 64bit) using steps described below, with kernel 6.6.20 from the current OS image and latest 6.6.28 from the APT repo. It's still not completely clear to me if it's only reproducible with FIQ enabled, because in my testing it seemed stable without it, however, changing todwc2
seems to reliably resolve the issue.There are some reports that also some other USB devices (Zigbee sticks) trigger the same issue. RPi 3B seems to be the most common but there's anecdotal evidence of it happening on RPi 4B as well. We also have reports of downgraded performance of ZB sticks on RPi 4 and 5 (not leading to freeze/boot loop) but it's unclear yet if this is related: home-assistant/operating-system#3352
I'll be happy to perform any further tests or ask other people for more details to get this one sorted out.
Steps to reproduce the behaviour
Alternatively, on RPi OS:
docker run --rm -it -p 8091:8091 -p 3000:3000 --device=/dev/serial/by-id/usb-0658_0200-if00:/dev/zwave --mount source=zwave-js-ui,target=/usr/src/app/store zwavejs/zwave-js-ui:latest
Device (s)
Raspberry Pi 3 Mod. B
System
Logs
Additional context
Might be closely related to #6100 but unlike there, even latest kernel from the 6.6.y branch (6.6.30) did not fix the issue.
The text was updated successfully, but these errors were encountered: