morrownr / 8821cu-20210916

Linux Driver for USB WiFi Adapters that are based on the RTL8811CU, RTL8821CU, RTL8821CUH and RTL8731AU Chipsets - v5.12.0.4
Other
580 stars 127 forks source link

[Issue]: Hang on linux-6.6.5.arch1-1 #131

Closed mozlima closed 9 months ago

mozlima commented 9 months ago

Hi, on the latest Arch kernel linux 6.6.5.arch1-1, the adapter is experiencing freezing and only reverting to linux-6.6.4.arch1-1 and linux-headers-6.6.4.arch1-1 fix the problem

I did test:

The computer only shuts down by pulling the power cable, since usb_modeswitch fail to shutdown.

The stats on working System:

Bus 001 Device 003: ID 0bda:c811 Realtek Semiconductor Corp. 802.11ac NIC

2: phy1: Wireless LAN
    Soft blocked: no
    Hard blocked: no

phy#1
    Interface wlan1
        ifindex 5
        wdev 0x100000001
        addr ca:65:58:bd:ea:80
        ssid NAME -5G
        type managed
        channel 149 (5745 MHz), width: 80 MHz, center1: 5775 MHz
        txpower 13.00 dBm
global
country BR: DFS-FCC
    (2400 - 2483 @ 40), (N/A, 30), (N/A)
    (5150 - 5250 @ 80), (N/A, 27), (N/A), NO-OUTDOOR, AUTO-BW
    (5250 - 5350 @ 80), (N/A, 27), (0 ms), NO-OUTDOOR, DFS, AUTO-BW
    (5470 - 5725 @ 160), (N/A, 27), (0 ms), DFS, AUTO-BW
    (5725 - 5850 @ 80), (N/A, 30), (N/A), AUTO-BW
    (5925 - 7125 @ 320), (N/A, 12), (N/A), NO-OUTDOOR, PASSIVE-SCAN
    (57000 - 71000 @ 2160), (N/A, 40), (N/A)

Some logs

dez 10 11:47:28 router kernel: 8821cu: loading out-of-tree module taints kernel.
dez 10 11:47:28 router kernel: 8821cu: module verification failed: signature and/or required key missing - tainting kernel
dez 10 11:47:28 router kernel: RTW: module init start
dez 10 11:47:28 router kernel: RTW: rtl8821cu v5.12.0.4-1-g9241a6516.20210916_COEX20200730-5151
dez 10 11:47:28 router kernel: RTW: rtl8821cu BT-Coex version = COEX20200730-5151
dez 10 11:47:28 router kernel: RTW: module init ret=0
dez 10 11:49:40 router kernel: rtw_8821cu 1-5:1.0: read register 0x5 failed with -110
dez 10 11:49:41 router kernel: rtw_8821cu 1-5:1.0: read register 0x5 failed with -110
dez 10 11:49:42 router kernel: rtw_8821cu 1-5:1.0: read register 0x5 failed with -110
------------------------------------------------------------------------------------------
[  429.546743] 8821cu: module verification failed: signature and/or required key missing - tainting kernel
[  429.842103] RTW: module init start
[  429.842105] RTW: rtl8821cu v5.12.0.4-1-g9241a6516.20210916_COEX20200730-5151
[  429.842106] RTW: rtl8821cu BT-Coex version = COEX20200730-5151
[  429.842157] RTW: [HALMAC]55772M
               HALMAC_MAJOR_VER = 1
               HALMAC_PROTOTYPE_VER = 6
               HALMAC_MINOR_VER = 6
               HALMAC_PATCH_VER = 22
[  429.877981] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  436.046251] RTW: HW EFUSE
[  436.046259] RTW: 0x000: 29 81 00 BC  09 00 31 00  6F 04 A4 10  12 00 30 0B  
[  436.046276] RTW: 0x010: FF FF FF FF  FF FF FF FF  FF FF FF 02  FF FF FF FF  
[  436.046290] RTW: 0x020: FF FF 2A 2A  2C 29 2B 2A  29 27 28 29  29 29 2C 2E  
[  436.046304] RTW: 0x030: 24 FF FF FF  FF FF 00 FF  FF FF 33 34  34 34 34 34  
[  436.046318] RTW: 0x040: 36 36 36 36  36 22 FF FF  FF FF FF FF  FF FF FF FF  
[  436.046332] RTW: 0x050: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  436.046345] RTW: 0x060: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  436.046359] RTW: 0x070: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  436.046372] RTW: 0x080: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  436.046386] RTW: 0x090: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  436.046399] RTW: 0x0A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  436.046412] RTW: 0x0B0: FF FF FF FF  FF FF FF FF  7F 0A 21 00  FF FF FF FF  
[  436.046426] RTW: 0x0C0: FF 01 00 41  00 00 00 00  00 FF 22 FF  FF FF FF FF  
[  436.046439] RTW: 0x0D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  436.046453] RTW: 0x0E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  436.046466] RTW: 0x0F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  436.046480] RTW: 0x100: DA 0B 11 C8  E3 46 02 A0  D7 68 40 4E  10 09 03 52  
[  436.046493] RTW: 0x110: 65 61 6C 74  65 6B 0E 03  38 30 32 2E  31 31 61 63  
[  436.046507] RTW: 0x120: 20 4E 49 43  08 03 31 32  33 34 35 36  FF FF FF FF  
[  436.046520] RTW: 0x130: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  436.046534] RTW: 0x140: FF FF FF FF  00 00 31 0F  FF FF FF FF  FF FF FF FF  
[  436.046547] RTW: 0x150: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  436.046561] RTW: 0x160: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  436.046574] RTW: 0x170: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  436.046587] RTW: 0x180: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  436.046601] RTW: 0x190: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  436.046614] RTW: 0x1A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  436.046628] RTW: 0x1B0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  436.046641] RTW: 0x1C0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  436.046654] RTW: 0x1D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  436.046668] RTW: 0x1E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  436.046681] RTW: 0x1F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  436.052238] RTW: hal_com_config_channel_plan chplan:0x7F
[  438.777361] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  438.783415] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  438.789406] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  438.795406] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  438.801407] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  438.807388] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  438.813406] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  438.819413] RTW: [RF_PATH] ver_id.RF_TYPE:RF_1T1R
[  438.819418] RTW: [RF_PATH] HALSPEC's rf_reg_trx_path_bmp:0x11, rf_reg_path_avail_num:1, max_tx_cnt:1
[  438.819421] RTW: [RF_PATH] PG's trx_path_bmp:0x00, max_tx_cnt:0
[  438.819424] RTW: [RF_PATH] Registry's trx_path_bmp:0x00, tx_path_lmt:0, rx_path_lmt:0
[  438.819426] RTW: [RF_PATH] HALDATA's trx_path_bmp:0x11, max_tx_cnt:1
[  438.819428] RTW: [RF_PATH] HALDATA's rf_type:RF_1T1R, NumTotalRFPath:1
[  438.819430] RTW: [TRX_Nss] HALSPEC - tx_nss:1, rx_nss:1
[  438.819432] RTW: [TRX_Nss] Registry - tx_nss:0, rx_nss:0
[  438.819433] RTW: [TRX_Nss] HALDATA - tx_nss:1, rx_nss:1
[  438.819435] RTW: txpath=0x1, rxpath=0x1
[  438.819437] RTW: txpath_1ss:0x1, num:1
[  438.822411] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[  439.037821] RTW: rtw_ndev_init(wlan1) if1 mac_addr=a0:d7:68:40:4e:10
[  439.038262] usbcore: registered new interface driver rtl8821cu
[  439.038268] RTW: module init ret=0
[  459.661284] RTW: ERROR [ACS] get_rst failed (rst = 0x00, clm_stamp:15:15, nhm_stamp:15:15)
[  460.051302] RTW: ERROR [ACS] get_rst failed (rst = 0x00, clm_stamp:16:16, nhm_stamp:16:16)
[  460.441321] RTW: ERROR [ACS] get_rst failed (rst = 0x00, clm_stamp:17:17, nhm_stamp:17:17)
[  460.831335] RTW: ERROR [ACS] get_rst failed (rst = 0x00, clm_stamp:18:18, nhm_stamp:18:18)
[  461.713375] RTW: ERROR [ACS] get_rst failed (rst = 0x00, clm_stamp:20:20, nhm_stamp:20:20)
[  462.103375] RTW: ERROR [ACS] get_rst failed (rst = 0x00, clm_stamp:21:21, nhm_stamp:21:21)
[  462.493376] RTW: ERROR [ACS] get_rst failed (rst = 0x00, clm_stamp:22:22, nhm_stamp:22:22)
[  462.883423] RTW: ERROR [ACS] get_rst failed (rst = 0x00, clm_stamp:23:23, nhm_stamp:23:23)
[  463.765430] RTW: ERROR [ACS] get_rst failed (rst = 0x00, clm_stamp:25:25, nhm_stamp:25:25)
[  464.155438] RTW: ERROR [ACS] get_rst failed (rst = 0x00, clm_stamp:26:26, nhm_stamp:26:26)
[  464.545468] RTW: ERROR [ACS] get_rst failed (rst = 0x00, clm_stamp:27:27, nhm_stamp:27:27)
[  464.935489] RTW: ERROR [ACS] get_rst failed (rst = 0x00, clm_stamp:28:28, nhm_stamp:28:28)
------------------------------------------------------------------------------------------
[  530.364450] RTW: 0x000: 29 81 00 BC  09 00 31 00  6F 04 A4 10  12 00 30 0B  
[  530.364469] RTW: 0x010: FF FF FF FF  FF FF FF FF  FF FF FF 02  FF FF FF FF  
[  530.364486] RTW: 0x020: FF FF 2A 2A  2C 29 2B 2A  29 27 28 29  29 29 2C 2E  
[  530.364503] RTW: 0x030: 24 FF FF FF  FF FF 00 FF  FF FF 33 34  34 34 34 34  
[  530.364519] RTW: 0x040: 36 36 36 36  36 22 FF FF  FF FF FF FF  FF FF FF FF  
[  530.364535] RTW: 0x050: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  530.364551] RTW: 0x060: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  530.364567] RTW: 0x070: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  530.364583] RTW: 0x080: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  530.364599] RTW: 0x090: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  530.364614] RTW: 0x0A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  530.364630] RTW: 0x0B0: FF FF FF FF  FF FF FF FF  7F 0A 21 00  FF FF FF FF  
[  530.364646] RTW: 0x0C0: FF 01 00 41  00 00 00 00  00 FF 22 FF  FF FF FF FF  
[  530.364662] RTW: 0x0D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  530.364678] RTW: 0x0E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  530.364694] RTW: 0x0F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  530.364709] RTW: 0x100: DA 0B 11 C8  E3 46 02 A0  D7 68 40 4E  10 09 03 52  
[  530.364725] RTW: 0x110: 65 61 6C 74  65 6B 0E 03  38 30 32 2E  31 31 61 63  
[  530.364741] RTW: 0x120: 20 4E 49 43  08 03 31 32  33 34 35 36  FF FF FF FF  
[  530.364757] RTW: 0x130: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  530.364773] RTW: 0x140: FF FF FF FF  00 00 31 0F  FF FF FF FF  FF FF FF FF  
[  530.364789] RTW: 0x150: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  530.364805] RTW: 0x160: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  530.364820] RTW: 0x170: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  530.364836] RTW: 0x180: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  530.364852] RTW: 0x190: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  530.364868] RTW: 0x1A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  530.364883] RTW: 0x1B0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  530.364899] RTW: 0x1C0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  530.364915] RTW: 0x1D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  530.364931] RTW: 0x1E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  530.364946] RTW: 0x1F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  530.365553] RTW: hal_com_config_channel_plan chplan:0x7F
[  530.713308] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  530.714057] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  530.714805] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  530.715555] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  530.716306] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  530.717055] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  530.717805] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  530.718560] RTW: [RF_PATH] ver_id.RF_TYPE:RF_1T1R
[  530.718563] RTW: [RF_PATH] HALSPEC's rf_reg_trx_path_bmp:0x11, rf_reg_path_avail_num:1, max_tx_cnt:1
[  530.718566] RTW: [RF_PATH] PG's trx_path_bmp:0x00, max_tx_cnt:0
[  530.718569] RTW: [RF_PATH] Registry's trx_path_bmp:0x00, tx_path_lmt:0, rx_path_lmt:0
[  530.718571] RTW: [RF_PATH] HALDATA's trx_path_bmp:0x11, max_tx_cnt:1
[  530.718573] RTW: [RF_PATH] HALDATA's rf_type:RF_1T1R, NumTotalRFPath:1
[  530.718575] RTW: [TRX_Nss] HALSPEC - tx_nss:1, rx_nss:1
[  530.718577] RTW: [TRX_Nss] Registry - tx_nss:0, rx_nss:0
[  530.718578] RTW: [TRX_Nss] HALDATA - tx_nss:1, rx_nss:1
[  530.718581] RTW: txpath=0x1, rxpath=0x1
[  530.718583] RTW: txpath_1ss:0x1, num:1
[  530.719208] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[  530.853252] RTW: rtw_ndev_init(wlan1) if1 mac_addr=a0:d7:68:40:4e:10
[  538.344613] RTW: wlan1- hw port(0) mac_addr =a0:d7:68:40:4e:10
[  543.849241] RTW: wlan1- hw port(0) mac_addr =a0:d7:68:40:4e:10
[  550.127746] RTW: wlan1- hw port(0) mac_addr =a0:d7:68:40:4e:10
[  564.572384] RTW: wlan1- hw port(0) mac_addr =a0:d7:68:40:4e:10
[  575.379926] RTW: ERROR Free disconnecting network of scanned_queue failed due to pwlan == NULL

Thanks!

morrownr commented 9 months ago

Hi @mozlima

the adapter is experiencing freezing and only reverting to linux-6.6.4.arch1-1 and linux-headers-6.6.4.arch1-1 fix the problem

Over the last few days, I have noticed an abnormal number of bug reports from arch users and all seem to be related to kernel 6.6.5. It is not yet clear to me what may be the problem but this very well could be an arch issue as I am not seeing this on the distros I currently have up for testing here. You might want to post on an arch forum to see if you can find additional info. If you get more info, please let me know.

ylxdzsw commented 9 months ago

I'm experiencing the same issue. Not sure if it is the exact same problem but this thread seems to suggest that it is an Arch kernel issue that affects more than this driver.

The fix on #25 of that thread works for me.

alkisg commented 9 months ago

Might be related:

https://www.phoronix.com/news/Linux-6.6.6-Released

mozlima commented 9 months ago

@morrownr Thanks!

Ill close this. The bug is already tracked here:

https://bbs.archlinux.org/viewtopic.php?id=290976 https://www.phoronix.com/news/Linux-6.6.6-Released