-
Notifications
You must be signed in to change notification settings - Fork 182
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
Loading driver problem #113
Comments
Also there is some additional info:
|
I'm seeing this same issue with an 8811cu. I've add some telemetry to the drive and am working through it. |
That other thread is 3 years old, and predates the development of the USB drivers for rtw88. You added a complaint about a USB device onto a thread started for a PCIe device. The liklihood of the same answer applying to both devices is vanishingly small. Run the command 'sudo dmesg > dmesg.txt' and attach dmesg.txt to a new issue. Also run the command 'lsusb' and attach the output. |
The thread I linked is to a fork of the rtw88 driver pre mainline merge. It's not exactly the same code as this, but it's definitely part of the same family tree. As I mentioned, I added a bunch of telemetry to the driver. It's failing check_hw_ready in download_firmware_validate, which I believe the same problem being discussed in that other thread. My dmesg is the same as this one and the linked one, except for the telemetry I added to mine.
|
I added an output to check_hw_ready that prints the register value it finds. The board I'm testing on has two radios and conveniently, sometimes one works and the other doesn't. Looks like bit 15 in REG_MCUFW_CTRL is the magic one. If that's set, everything is good. [ 29.321310] check_hw_ready failed 4078 |
As you can see in lines 283 and following in file mac.c, value 0xc048 in REG_MCUFW_CTRL indicates that the firmware is running. Unfortunately, it does not tell us why the firmware load failed. All of the 802.11ac (Wifi 5) chips have two radios - one for 2.4 GHz and one for 5GHz. My Wifi 5 router uses different SSIDs for the two bands, thus I can control which radio is active. I just pushed a change that will give us some logging when firmware upload fails. Do a pull and try again. |
Thanks! I added prints to those before and didn't get any errors. I believe I have found the culprit. I'm testing a minimized patch now. What's the normal flow for patches to this driver? Should I submit it upstream first? |
I am glad for the news. The flow for patches to rtw88 is to prepare them for the wireless-next source and send them to Kalle Vaio (the maintainer for wireless-next), Ping-Ke Shih (the codes author) and [email protected]. The subject should be "wifi: rtw88: ....". As to other requirements, look at process/submitting-patches.rst in the source tree. Usually I do not pick up such packages for rtw88 until they have been accepted into wireless-next, but I do make exceptions. Once you have the patch ready, send it to me at [email protected]. I will check it for problems in formatting, etc. |
Thanks a bunch, I'll put it together this weekend probably and get it submitted. |
I am having the same problem,
|
Do you have a Lenovo or HP laptop? You need to read the section from README.md that describes adding the options to rtw_pci, and do those actions. |
Yes, I have an HP Laptop. Ok thanks I will try and revert back. |
Can you tell me which part of the readme are you talking about? |
Section #4. Option information |
I tried adding |
Run the commands 'sudo modprobe -rv rtw_8822ce' and 'sudo modprobe -v rtw_8822ce'. Post the output of the second command. |
This is the output of second command after running the first one. |
There is something wrong with your /etc/modprobe.d/rtl8822ce.conf. The load message above only shows that disable_aspm is set, but nothing of disable_msi. |
No, I tried all possible configurations as I mentioned above but none works. |
This is the output after adding both disable_msi and disable_aspm |
We have one other option: Add this line Then reboot. |
I tried adding this to |
Adding it to /etc/modprobe.d/rtl8822ce.conf is fine. I am sorry, but I have no more suggestions, |
No problem, thanks for your help! |
Hey! I have a problem trying to load the driver rtw_8822ce. Just after shutting down.
Here is dmesg logs:
I tried several times restarting the module with modprobe but didn't work. Any suggestions?
The text was updated successfully, but these errors were encountered: