Re: [rtw88]: RTL8821CE report

From: Oleg V. Nauman <oleg_at_theweb.org.ua>
Date: Mon, 04 Apr 2022 04:44:58 UTC
On 2022 M04 4, Mon 02:30:18 EEST Bjoern A. Zeeb wrote:
> On Sun, 3 Apr 2022, Oleg V. Nauman wrote:
> 
> Hi,
> 
> thanks a lot for testing and feedbac.
> 
> > I have notebook with RTL8821CE pci adapter. My notebook running CURRENT
> > updated today ( FreeBSD 14.0-CURRENT #15 main-n254247-dadb9c70938c-dirty )
> > 
> > rtw880@pci0:2:0:0:      class=0x028000 rev=0x00 hdr=0x00 vendor=0x10ec
> > device=0xc821 subvendor=0x1a3b subdevice=0x3040
> > 
> >    vendor     = 'Realtek Semiconductor Co., Ltd.'
> >    device     = 'RTL8821CE 802.11ac PCIe Wireless Network Adapter'
> >    class      = network
> > 
> > RTL8821CE works if my notebook limited to hw.physmem="4G" but fails if
> > limit removed.
> 
> That is good news (even though obviously not yet the news we need).
> 
> > Some additional details that I collected during my tests:
> > 
> > a ) It loads firmware ane even able to attach/pass network traffic for
> > some
> > time when my notebook is not limited and use all of 20 GB of RAM but fails
> > during the next few mins with "failed to get tx report from firmware"
> > diagnostic
> > 
> > Apr  3 08:49:57 sigill kernel: rtw880: successfully loaded firmware image
> > 'rtw88/rtw8821c_fw.bin'
> > Apr  3 08:49:57 sigill kernel: rtw880: Firmware version 24.8.0, H2C
> > version 12 Apr  3 08:49:57 sigill kernel: rtw880: start vif
> > 80:91:33:4b:4a:d1 on port 0 Apr  3 08:49:57 sigill kernel: rtw880: failed
> > to get tx report from firmware Apr  3 08:49:57 sigill kernel: rtw880: sta
> > 80:91:33:4b:4a:d1 joined with macid 0
> > Apr  3 08:49:57 sigill kernel: rtw880: failed to get tx report from
> > firmware
> > 
> > b ) It was stable and running without warnings/errors during at least half
> > of hour while my notebook was limited to 4G
> > 
> > ifconfig wlan2 output while not associated:
> > 
> > wlan2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
> > 
> >        ether 80:91:33:4b:4a:d1
> >        groups: wlan
> >        ssid "" channel 1 (2412 MHz 11b)
> >        regdomain FCC country US authmode OPEN privacy OFF txpower 30 bmiss
> >        7
> >        scanvalid 60 wme bintval 0
> >        parent interface: rtw880
> >        media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
> >        status: no carrier
> > 
> > and negotiate 11g when associated
> 
> Can you try:
> 
> sysctl compat.linuxkpi.rtw88_pci_disable_aspm=1
> sysctl compat.linuxkpi.rtw88_disable_lps_deep=1

 No it does not help, it stuck after very short period of network activity.
To be precise: "network stuck after very short period of activity" happens 
when notebook is not limited to 4 GB 
When it is limited to 4 GB networking is fine ( well it was OK during at least 
30 minutes of network activity )

> 
> and see if that gives you more stability (no "failed to get tx report from
> firmware")?
> > I can not report compat.linuxkpi.lkpi_pci_nseg1_fail though
> > # sysctl compat.linuxkpi.lkpi_pci_nseg1_fail
> > sysctl: unknown oid 'compat.linuxkpi.lkpi_pci_nseg1_fail'
> 
> That one I jst comitted to CURRENT.

 I will try it tomorrow.

> 
> > Please let me know if ou need some additional data.
> > 
> > Thank you