Skip to content
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

hard lockup with rtl8822bu #15

Open
alexdewar opened this issue Jan 17, 2021 · 2 comments
Open

hard lockup with rtl8822bu #15

alexdewar opened this issue Jan 17, 2021 · 2 comments

Comments

@alexdewar
Copy link

When I load the module it seems to work for a while, but my dmesg log is full of scheduling while atomic errors, then I generally get a hard lockup soon thereafter.

I'll try to probe into this a bit further, but I thought I'd open an issue in case anyone else is having the same problem.

@alexdewar
Copy link
Author

I should add that I'm on x86, using the 5.10.7 kernel.

@neojou
Copy link
Contributor

neojou commented Jan 21, 2021

It's because of the architecture of rtw88, and in some atomic area, USB read/write operations can not work as normal.
I changed the relative usb read/write code from waiting thread completion to polling the status in USB software IRQ,
and it works fine as the below submit.
( Please note that we cannot use spin_lock_irqsave() for rf_lock but spin_lock still )
I can help to pull request to this repository to see if it helps if you think it deserves a trial.
https://github.com/neojou/rtw88-usb/commit/8dafc4dec4b74b2b022c0b36a8b8150889848b0c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants