[rtw88]: RTL8821CE report

From: Oleg V. Nauman <oleg_at_theweb.org.ua>
Date: Sun, 03 Apr 2022 13:59:41 UTC
 Hello,

 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.

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

 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'

Please let me know if ou need some additional data.

Thank you