Linux wireless drivers development
 help / color / mirror / Atom feed
From: Larry Finger <Larry.Finger@lwfinger.net>
To: Alexey Kardashevskiy <aik@amd.com>,
	Yan-Hsuan Chuang <tony0620emma@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: Slow RTL8822CE 802.11ac PCIe Wireless Network Adapter
Date: Wed, 3 May 2023 09:42:32 -0500	[thread overview]
Message-ID: <b7a59145-37b0-eade-3a9e-b565cc75de35@lwfinger.net> (raw)
In-Reply-To: <75906666-df37-988a-c448-a6338b8a1cff@amd.com>

On 5/3/23 02:13, Alexey Kardashevskiy wrote:
> Hi!
> 
> I am seeing dropouts in 5GHz and 2.5GHz wifi and seeking for help.
> 
> HP laptop with RTL8822CE 802.11ac PCIe Wireless Network Adapter, Fedora36 with 
> 6.2.9-100.fc36.x86_64, the AP is Ubiquity, it is 5m away behind a thin wall, a 
> house in low density area (I do not see neighbors APs in "iw dev scan").
> 
> Pinging a gateway (1gbit ethernet between AP and GW) suddenly goes from 3-5ms to 
>  >1000ms. Good and bad "iw" output is below. Moving laptop by 2cm (or its lid) 
> helps sometime.
> 
> These 2 observation made me suspect the linux driver:
> 
> 1) If I reboot the laptop to Windows10 without moving/touching it after it went 
> bad in linux - there pings are 1-2ms and occasionally may go up to hundreds but 
> for a very short time, feels like the driver notices something and fixes it.
> 
> 2) Two other laptops with Intel Wifi cards on the same spot with the same fedora 
> on the same network do not show the problem at all.
> 
> Changing txpower 10..23dBm (where 2300 is the maximum) does not help, done via 
> "iw dev wlp1s0 set txpower limit 2300", "iw dev wlp1s0 info" confirms that it 
> changes.
> 
> I have these in /etc/modprobe.d/50-rtw88.conf
> options rtw88_core disable_lps_deep=y
> options rtw88_pci disable_aspm=y
> no change either.
> 
> Is there anything else to try? Thanks,
> 
> 
> 64 bytes from _gateway (192.168.10.200): icmp_seq=26 ttl=64 time=6.97 ms
> 64 bytes from _gateway (192.168.10.200): icmp_seq=27 ttl=64 time=3.68 ms
> 64 bytes from _gateway (192.168.10.200): icmp_seq=28 ttl=64 time=3.44 ms
> 64 bytes from _gateway (192.168.10.200): icmp_seq=29 ttl=64 time=3.97 ms
> 64 bytes from _gateway (192.168.10.200): icmp_seq=30 ttl=64 time=3.68 ms
> 64 bytes from _gateway (192.168.10.200): icmp_seq=31 ttl=64 time=17.0 ms
> 64 bytes from _gateway (192.168.10.200): icmp_seq=32 ttl=64 time=33.1 ms
> 64 bytes from _gateway (192.168.10.200): icmp_seq=33 ttl=64 time=697 ms
> 64 bytes from _gateway (192.168.10.200): icmp_seq=34 ttl=64 time=1130 ms
> 64 bytes from _gateway (192.168.10.200): icmp_seq=35 ttl=64 time=114 ms
> 64 bytes from _gateway (192.168.10.200): icmp_seq=36 ttl=64 time=1796 ms
> 64 bytes from _gateway (192.168.10.200): icmp_seq=37 ttl=64 time=749 ms
> 
> Good status:
> 
> [root@aiemdeew wlp1s0]# iw dev wlp1s0 info ; iw wlp1s0 link
> Interface wlp1s0
>      ifindex 2
>      wdev 0x1
>      addr 50:c2:e8:5d:ba:fd
>      type managed
>      wiphy 0
>      channel 36 (5180 MHz), width: 80 MHz, center1: 5210 MHz
>      txpower 22.00 dBm
>      multicast TXQ:
>          qsz-byt    qsz-pkt    flows    drops    marks    overlmt    hashcol    
> tx-bytes    tx-packets
>          0    0    0    0    0    0    0    0        0
> Connected to f4:92:bf:04:1a:ce (on wlp1s0)
>      SSID: aikhomenet
>      freq: 5180
>      RX: 37035326 bytes (60439 packets)
>      TX: 2880943 bytes (14231 packets)
>      signal: -53 dBm
>      rx bitrate: 130.0 MBit/s VHT-MCS 7 VHT-NSS 2
>      tx bitrate: 390.0 MBit/s VHT-MCS 4 80MHz short GI VHT-NSS 2
> 
>      bss flags:    short-slot-time
>      dtim period:    2
>      beacon int:    100
> 
> 
> Bad status:
> 
> Interface wlp1s0
>          ifindex 2
>          wdev 0x1
>          addr 50:c2:e8:5d:ba:fd
>          type managed
>          wiphy 0
>          channel 36 (5180 MHz), width: 80 MHz, center1: 5210 MHz
>          txpower 22.00 dBm
>          multicast TXQ:
>                  qsz-byt qsz-pkt flows   drops   marks   overlmt hashcol 
> tx-bytes        tx-packets
>                  0    0    0    0    0    0    0    0               0
> Connected to f4:92:bf:04:1a:ce (on wlp1s0)
>          SSID: aikhomenet
>          freq: 5180
>          RX: 38078401 bytes (68758 packets)
>          TX: 3039702 bytes (15006 packets)
>          signal: -62 dBm
>          rx bitrate: 117.0 MBit/s VHT-MCS 6 VHT-NSS 2
>          tx bitrate: 433.3 MBit/s VHT-MCS 9 80MHz short GI VHT-NSS 1
> 
>          bss flags:    short-slot-time
>          dtim period:    2
>          beacon int:     100
> 

Something certainly changed for your signal strength to drop from -53 to -62 
dBm. The higher value is acceptable, but will not provide high data rates. The 
lower value is marginal.

There are some changes between kernel 6.2 and the current contents of the 
wireless-next repo, which is the code to be found in kernel 6.4 when it is 
released. Could you try the code in https://github.com/lwfinger/rtw88.git? This 
repo has the code found in wireless-next modified to build on older kernels. You 
would need to blacklist rtw88_8822ce. This sequence should do it for you:

sudo dnf install git kernel-headers kernel-devel
sudo dnf group install "C Development Tools and Libraries"
git clone https://github.com/lwfinger/rtw88.git
cd rtw88
make
sudo make install
sudo touch /usr/lib/modprobe.d/50-blacklist-8822ce.conf

As root, using your favorite editor, add the following line to the above file:
blacklist rtw88_8822ce

Then reboot. Report if there are any changes. This way, we will be able to 
determine if the problem has already been fixed.

Larry




  reply	other threads:[~2023-05-03 14:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-03  7:13 Slow RTL8822CE 802.11ac PCIe Wireless Network Adapter Alexey Kardashevskiy
2023-05-03 14:42 ` Larry Finger [this message]
2023-05-04  3:10   ` Alexey Kardashevskiy
2023-05-04 15:04     ` Larry Finger
2023-05-05  1:23       ` Alexey Kardashevskiy
2023-05-05  1:35         ` Larry Finger
2023-05-24  6:29           ` Alexey Kardashevskiy
2023-05-24 16:13             ` Larry Finger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b7a59145-37b0-eade-3a9e-b565cc75de35@lwfinger.net \
    --to=larry.finger@lwfinger.net \
    --cc=aik@amd.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=tony0620emma@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox