Bug 273621

Summary: rtw88, rtw89 meta-bug
Product: Base System Reporter: Bjoern A. Zeeb <bz>
Component: wirelessAssignee: Bjoern A. Zeeb <bz>
Status: Open ---    
Severity: Affects Some People CC: FreeBSDLouisville, bz, dadawin, dch, emaste, evfbsd
Priority: --- Keywords: tracking
Version: CURRENT   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273620
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282037
Bug Depends on: 268565, 272145, 281979, 281981, 283142, 283903, 248235, 272772, 274303, 281982, 282037    
Bug Blocks: 273622    

Description Bjoern A. Zeeb freebsd_committer freebsd_triage 2023-09-07 19:17:34 UTC

    
Comment 1 Bjoern A. Zeeb freebsd_committer freebsd_triage 2023-09-07 19:36:17 UTC
See also:

https://wiki.freebsd.org/WiFi/Rtw88
https://wiki.freebsd.org/WiFi/Rtw89
Comment 2 superium 2024-03-12 01:24:05 UTC
freeBSD 14 and 13 both crash on my laptop with rtw8822ce wifi card.
i have 16GB mem and applied compat.linuxkpi.skb.mem_limit=1 in loader.conf .
when transfer some data , it was slow, only 80kb/s, and the system auto reboot sometime while transfer.


i'm new to BSD. and not very clear how to find out more details. appoligize me.
Comment 3 FreeBSDLouisville 2024-05-26 01:44:07 UTC
I am running rtw88 on freebsd 14.1 with latest git pull.
I am getting the following errors:
wlan0: link state changed to DOWN
rtw880: lkpi_iv_newstate: error 95 during state transition 2 (AUTH) -> 2 (AUTH)
wlan0: link state changed to UP
wlan0: link state changed to DOWN
rtw880: lkpi_iv_newstate: error 95 during state transition 2 (AUTH) -> 2 (AUTH)
wlan0: link state changed to UP
wlan0: link state changed to DOWN
rtw880: lkpi_iv_newstate: error 95 during state transition 2 (AUTH) -> 2 (AUTH)
wlan0: link state changed to UP
wlan0: link state changed to DOWN
rtw880: lkpi_iv_newstate: error 95 during state transition 2 (AUTH) -> 2 (AUTH)
wlan0: link state changed to UP
wlan0: link state changed to DOWN
rtw880: lkpi_iv_newstate: error 95 during state transition 2 (AUTH) -> 2 (AUTH)
wlan0: link state changed to UP
wlan0: link state changed to DOWN
rtw880: lkpi_iv_newstate: error 95 during state transition 2 (AUTH) -> 2 (AUTH)
wlan0: link state changed to UP

Here are my tunables in loader.conf:
compat.linuxkpi.skb.mem_limit=1
# from freebsd forum
compat.linuxkpi.rtw88_pci_disable_aspm=1
compat.linuxkpi.rtw88_disable_lps_deep=1
i
Comment 4 Bjoern A. Zeeb freebsd_committer freebsd_triage 2024-05-26 16:09:01 UTC
(In reply to FreeBSDLouisville from comment #3)

Not really an issue here;  that's 13+ years old behavior in net80211 (which we will hopefully fix) but we are just logging and asserting it in LinuxKPI.
I cannot say about the frequencies of your link UP/DOWN but if they are frequent, please open a dedicated bug for it so we can track it.
Comment 5 Bjoern A. Zeeb freebsd_committer freebsd_triage 2024-05-26 16:11:54 UTC
For future reference:

this is a "meta-bug" which is a placeholder to collect all rtw88/rtw89 related bugs.

Please see if your problem is listed somewhere here:
https://bugs.freebsd.org/bugzilla/showdependencytree.cgi?id=273621&hide_resolved=0
or here:
https://bugs.freebsd.org/bugzilla/showdependencytree.cgi?id=277512&hide_resolved=0

If not and search doesn't yield anything else either, then please open a new problem report.

Thank you.
Comment 6 Bjoern A. Zeeb freebsd_committer freebsd_triage 2024-12-07 01:37:32 UTC
Before changing this PR please read:
https://lists.freebsd.org/archives/freebsd-wireless/2024-December/002586.html