2022-06-10 13:11:29

by rtl8821cerfe2

[permalink] [raw]
Subject: rtw88_8821ce makes system freeze again since 5.18

Hi!

Since I updated the kernel to 5.18, the system has been freezing again, almost like in my previous report [0]. The only difference is that sometimes (rarely) I get some potentially useful messages right before the freeze. These two appeared together:

rtw_8821ce 0000:02:00.0: failed to dequeue 221 skb TX queue 1, BD=0x00000001, rp 33 -> 0
rtw_8821ce 0000:02:00.0: failed to dequeue 33 skb TX queue 1, BD=0x00230023, rp 0 -> 35

And this one appeared on a different occasion before a freeze:

rtw_8821ce 0000:02:00.0: failed to dequeue 3905 skb TX queue 1, BD <cut off by browser window on top of terminal>

Before I saw those messages, I thought maybe this change was at fault:

/* Disable PCIe ASPM L1 while doing NAPI poll for 8821CE */
- if (pdev->device == 0xc821 && bridge->vendor == PCI_VENDOR_ID_INTEL)
+ if (rtwdev->chip->id == RTW_CHIP_TYPE_8821C && bridge->vendor == PCI_VENDOR_ID_INTEL)
rtwpci->rx_no_aspm = true;

but it's not. I verified that the chip type is still detected correctly and rx_no_aspm is set to true. And yet the system freezes.

My laptop's wifi card is RTL8821CE, type RFE 2. My laptop is HP 250 G7, model 6MQ29EA.

It happens within a few minutes after booting if I don't do anything out of the ordinary. If I do a speed test at speedtest.net, the system usually freezes during the test. I have to hold the power button to shut it down.

disable_aspm=1 seems to help.

The freeze happens with the rtw88 driver from the 5.18-arch1-1 kernel from Arch Linux, and also with the rtw88 driver from lwfinger/rtw88, commit ce97958 ("rtw88: Bring code up to May 1 version of wireless-testing") [1].

I used the driver from the 5.17.1-arch1-1 kernel for a long time without problems.

The firmware version is 24.11.0. I downgraded it to 24.8.0, which is what I had before, but the system still froze.

I also tried kernel 5.17.1 with firmware 24.11.0 and the system did not freeze.

[0] https://lore.kernel.org/linux-wireless/vWuRjLpNOkVGXHNeCL6phN5YDcd6Oljm1WgEMO4vA9aufK8MxzN5itvDnRjPBWHZN0geAbRLAzgIj36kAiNtdHh5vg2RjUH_TzuqZ7WSYeE=@protonmail.com/T/#u
[1] https://github.com/lwfinger/rtw88/commit/ce979583dff5fc2f6cbce354c3e2dceafee454ca