-
Notifications
You must be signed in to change notification settings - Fork 349
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
Waking up from suspend freezes if MediaTek MT7610U wifi is plugged in #290
Comments
Installing |
We should handle usb errors better to do not hung the system. But the root of the issue most likely is in usb hcd driver. There is pending know problem with xhci_hcd: https://bugzilla.kernel.org/show_bug.cgi?id=202541 You can try to revert: commit f8f80be501aa2f10669585c3e328fad079d8cb3a and see if that will help. To clarify , suspend/resume doest not work for you on 4.19 bit it didn't hung the system, on 4.20 and upwards system hung? Or suspend/resume fully works on 4.19 ? |
Well, on 4.19 after some period of time with a great probability I am able to get to tty2-6. X server becomes unusable and I have to restart the whole session. On 5.1 I didn't succeed to get access to PC. I even plugged out wifi adapter during this freeze and got kernel panic ( caps lock and scroll lock were blinking). I also noticed that the bug with connect on boot exists on Windows too. After start of windows 10 I had to replug adapter to connect to network. Today I'll try to return this adapter to store. |
I was able to reproduce the problem on one of my machines (with ehci-hcd , other machines with xhci-hcd work fine). It turned out we can avoid hung by do not reset rf on resume like in the patch below: |
Fix posted: |
Thanks The issue that device is not always properly configured after boot will be always solved in this patch? |
If you see also 'xhci_hcd 0000:15:00.0: WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state' in dmesg , it is xhci driver issue: If there is no xhci_hcd warning, this could be similar problem like on resume . Patch does not address it, but you can easily make similar change on init: change reset to false in mt76x0u_register_device(), and check if that helps (I'm not able to reproduce boot problem by myself). |
Kernel.org issue
I have the following device plugged in:
Bus 001 Device 011: ID 0586:3425 ZyXEL Communications Corp. NWD6505 802.11a/b/g/n/ac Wireless Adapter [MediaTek MT7610U]
When I wake up from suspend I see only underscore in the top left corner of the screen. Only SysRq+B works, so I have nothing to do but reboot.
This device is often not detected on boot and I have to replug it in, otherwise lsusb does not show it.
lsmod gives
On 4.19 I did manage to get input devices working after waking up in a minute or so. Here is a dmesg.
Graphical subsystem died, I had to manually stop display manager and kill all my user processes.
The most notable lines:
On 5.1 I see following errors right after boot (maybe on 4.19 too). I have to reconnect usb device to make i appear:
The text was updated successfully, but these errors were encountered: