You are not logged in.

#1 2020-11-08 11:09:31

Dante777
Member
From: Greece
Registered: 2016-07-12
Posts: 18

[SOLVED] Realtek RTL8822BE WiFi Chipset Issue [SOLVED]

Hi everybody.
Please forgive my English, not my native language.
I've been getting headaches for a long time now, trying to make the Realtek RTL8822BE wifi adapter work on my Lenovo Ideapad S340 laptop.
Things are frequently changing kernel-wise, with regressions and all, and solutions that used to work before, did not work anymore.
Not being able to find any relevant info on how to remedy this situation, i forced myself to buy a linux compatible usb-wifi adapter, so i could still get internet connection on my machine (which comes with no ethernet port).

Relevant info below :

$ dmesg | grep rtw                                                                                                                                                                                            

[    5.449798] rtw_8822be 0000:02:00.0: Firmware version 27.2.0, H2C version 13
[    5.593615] rtw_8822be 0000:02:00.0 wlp2s0: renamed from wlan0
[    6.132151] WARNING: CPU: 1 PID: 346 at drivers/net/wireless/realtek/rtw88/rtw8822b.c:802 rtw8822b_config_trx_mode.constprop.0+0x9d6/0x9e0 [rtw88_8822b]
[    6.132152] Modules linked in: snd_hda_codec_hdmi cmac snd_sof_pci x86_pkg_temp_thermal intel_powerclamp snd_sof_intel_byt algif_hash coretemp snd_sof_intel_ipc snd_sof_intel_hda_common kvm_intel snd_soc_hdac_hda algif_skcipher af_alg snd_sof_xtensa_dsp snd_sof_intel_hda snd_hda_codec_realtek bnep snd_sof snd_hda_codec_generic rtw88_8822be ledtrig_audio rtw88_8822b hid_logitech_hidpp snd_soc_skl rtw88_pci btusb mousedev snd_soc_sst_ipc kvm snd_soc_sst_dsp btrtl rtw88_core btbcm btintel joydev snd_hda_ext_core bluetooth snd_soc_acpi_intel_match snd_soc_acpi hid_multitouch snd_soc_core i915 mei_hdcp hid_logitech_dj mac80211 snd_compress ac97_bus snd_pcm_dmaengine irqbypass crct10dif_pclmul crc32_pclmul snd_hda_intel snd_intel_dspcfg hid_generic intel_rapl_msr ghash_clmulni_intel snd_hda_codec intel_wmi_thunderbolt wmi_bmof ecdh_generic ecc snd_hda_core aesni_intel snd_hwdep uvcvideo crypto_simd videobuf2_vmalloc snd_pcm videobuf2_memops cryptd glue_helper cfg80211 videobuf2_v4l2 i2c_algo_bit
[    6.132210] RIP: 0010:rtw8822b_config_trx_mode.constprop.0+0x9d6/0x9e0 [rtw88_8822b]
[    6.132226]  rtw8822b_phy_set_param+0x1ba/0x4d0 [rtw88_8822b]
[    6.132232]  rtw_core_start+0xbe/0x160 [rtw88_core]
[    6.132236]  rtw_ops_start+0x24/0x40 [rtw88_core]
[    6.135464] rtw_8822be 0000:02:00.0: failed to send h2c command
[    6.138556] rtw_8822be 0000:02:00.0: failed to send h2c command
[    6.138564] rtw_8822be 0000:02:00.0: start vif c0:b5:d7:71:79:25 on port 0
[    6.146106] rtw_8822be 0000:02:00.0: failed to send h2c command
[    6.149204] rtw_8822be 0000:02:00.0: failed to send h2c command
[    8.910150] rtw_8822be 0000:02:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[    8.910444] WARNING: CPU: 0 PID: 346 at drivers/net/wireless/realtek/rtw88/pci.c:1171 rtw_dbi_read8.constprop.0+0xa0/0xb0 [rtw88_pci]
[    8.910445] Modules linked in: nls_iso8859_1 nls_cp437 vfat fat snd_hda_codec_hdmi cmac snd_sof_pci x86_pkg_temp_thermal intel_powerclamp snd_sof_intel_byt algif_hash coretemp snd_sof_intel_ipc snd_sof_intel_hda_common kvm_intel snd_soc_hdac_hda algif_skcipher af_alg snd_sof_xtensa_dsp snd_sof_intel_hda snd_hda_codec_realtek bnep snd_sof snd_hda_codec_generic rtw88_8822be ledtrig_audio rtw88_8822b hid_logitech_hidpp snd_soc_skl rtw88_pci btusb mousedev snd_soc_sst_ipc kvm snd_soc_sst_dsp btrtl rtw88_core btbcm btintel joydev snd_hda_ext_core bluetooth snd_soc_acpi_intel_match snd_soc_acpi hid_multitouch snd_soc_core i915 mei_hdcp hid_logitech_dj mac80211 snd_compress ac97_bus snd_pcm_dmaengine irqbypass crct10dif_pclmul crc32_pclmul snd_hda_intel snd_intel_dspcfg hid_generic intel_rapl_msr ghash_clmulni_intel snd_hda_codec intel_wmi_thunderbolt wmi_bmof ecdh_generic ecc snd_hda_core aesni_intel snd_hwdep uvcvideo crypto_simd videobuf2_vmalloc snd_pcm videobuf2_memops cryptd glue_helper
[    8.910506] RIP: 0010:rtw_dbi_read8.constprop.0+0xa0/0xb0 [rtw88_pci]
[    8.910522]  rtw_pci_link_ps+0x57/0x90 [rtw88_pci]
[    8.910528]  rtw_enter_ips+0x38/0x40 [rtw88_core]
[    8.910532]  rtw_ops_config+0xb8/0xc0 [rtw88_core]
[    8.910651] rtw_8822be 0000:02:00.0: failed to read ASPM, ret=-5
[    8.910913] rtw_8822be 0000:02:00.0: stop vif c0:b5:d7:71:79:25 on port 0
[   11.126724] rtw_8822be 0000:02:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[   13.248933] rtw_8822be 0000:02:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[   13.248938] rtw_8822be 0000:02:00.0: mac power on failed
[   13.248939] rtw_8822be 0000:02:00.0: failed to power on mac
[   15.636684] rtw_8822be 0000:02:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[   15.636687] rtw_8822be 0000:02:00.0: mac power on failed
[   15.636689] rtw_8822be 0000:02:00.0: failed to power on mac
[   17.775724] rtw_8822be 0000:02:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[   17.775729] rtw_8822be 0000:02:00.0: mac power on failed
[   17.775730] rtw_8822be 0000:02:00.0: failed to power on mac
[   30.132932] rtw_8822be 0000:02:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[   30.132937] rtw_8822be 0000:02:00.0: mac power on failed
[   30.132939] rtw_8822be 0000:02:00.0: failed to power on mac
[   32.254203] rtw_8822be 0000:02:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[   32.254209] rtw_8822be 0000:02:00.0: mac power on failed
[   32.254210] rtw_8822be 0000:02:00.0: failed to power on mac
[   45.129709] rtw_8822be 0000:02:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[   45.129715] rtw_8822be 0000:02:00.0: mac power on failed
[   45.129716] rtw_8822be 0000:02:00.0: failed to power on mac
[   47.251121] rtw_8822be 0000:02:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[   47.251126] rtw_8822be 0000:02:00.0: mac power on failed
[   47.251127] rtw_8822be 0000:02:00.0: failed to power on mac
[   59.132077] rtw_8822be 0000:02:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[   59.132083] rtw_8822be 0000:02:00.0: mac power on failed
[   59.132084] rtw_8822be 0000:02:00.0: failed to power on mac
[   61.253866] rtw_8822be 0000:02:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[   61.253872] rtw_8822be 0000:02:00.0: mac power on failed
[   61.253873] rtw_8822be 0000:02:00.0: failed to power on mac

......................................................................................................

$ sudo lspci -v -k

02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter (rev ff) (prog-if ff)
        !!! Unknown header type 7f
        Kernel driver in use: rtw_8822be
        Kernel modules: rtw88_8822be
        
.........................................................

$ sudo modinfo rtw88_8822be

filename:       /lib/modules/5.9.6-arch1-1/kernel/drivers/net/wireless/realtek/rtw88/rtw88_8822be.ko.xz
license:        Dual BSD/GPL
description:    Realtek 802.11ac wireless 8822be driver
author:         Realtek Corporation
srcversion:     8AF9BF6108F6001E463F5CF
alias:          pci:v000010ECd0000B822sv*sd*bc*sc*i*
depends:        rtw88_pci,rtw88_8822b
retpoline:      Y
intree:         Y
name:           rtw88_8822be
vermagic:       5.9.6-arch1-1 SMP preempt mod_unload 
sig_id:         PKCS#7
signer:         Build time autogenerated kernel key
sig_key:        51:6D:FC:75:0F:A1:BE:48:53:7C:52:2B:C4:16:85:7B:5F:35:DD:2B
sig_hashalgo:   sha512
signature:      02:70:C7:AB:88:42:68:41:D6:31:6C:9D:0B:61:74:94:74:F3:6A:92:
                27:4A:F8:A2:BF:B4:3A:BC:36:E4:12:77:88:61:F4:17:C6:76:57:A5:
                71:92:EC:67:B2:FA:35:32:A7:33:23:CF:C9:67:FD:E7:20:A6:0F:49:
                8D:46:5D:88:E2:E4:F8:D4:3D:E6:B1:89:1A:24:08:6F:90:24:B5:D1:
                50:64:FA:C6:81:9E:57:91:75:5D:FE:38:94:74:A3:D3:8C:54:BF:A5:
                9C:41:B3:41:48:10:33:EC:FD:E0:5E:32:45:0A:86:1F:9A:68:37:08:
                66:38:B4:AF:3E:8D:EB:EC:B4:E4:08:6A:38:5C:C7:80:2A:12:82:5C:
                67:F1:CB:08:4D:A6:97:4B:6F:10:C8:23:A7:53:B3:F5:D6:93:2B:F0:
                64:EC:35:8C:A5:AD:68:A9:E3:7C:7C:1E:EC:B5:6D:2E:C4:82:4F:45:
                33:9C:88:19:E1:25:D5:41:E5:DD:18:E7:DF:53:F0:96:00:42:7D:D6:
                A3:ED:47:02:6E:95:16:86:57:3F:D9:3E:35:92:8B:D0:AF:56:BB:1D:
                77:AF:98:9D:13:DE:13:DA:D7:E8:C2:01:70:01:89:30:11:16:5B:B6:
                A6:4D:52:56:2C:59:BC:11:C7:98:74:98:7E:C4:4C:5A:35:03:B0:92:
                76:53:18:65:44:F1:A1:62:4E:33:6D:98:A7:9E:26:FA:C7:4F:DE:9B:
                49:48:06:9A:CE:0A:4C:64:99:3C:F5:CC:E9:29:01:E3:06:3A:CC:8E:
                A2:29:D4:F5:4C:6C:5E:F5:00:49:0C:BB:82:BA:6D:6A:03:BC:EB:05:
                CD:E5:FB:42:02:E3:4B:E2:28:65:E3:85:6D:C2:22:E4:0A:B8:FF:55:
                A0:EB:06:91:0B:2F:06:30:16:0F:64:63:13:6F:4B:88:E1:FB:98:B2:
                E0:DB:9A:00:8B:57:49:9C:28:D2:96:32:6F:58:F0:5D:4E:EA:F4:F2:
                73:29:07:63:35:FF:02:77:CB:D7:BD:48:B5:00:38:83:33:19:73:FD:
                04:C6:6B:83:44:53:5D:DB:E5:F7:79:63:7A:4A:90:FB:44:5C:83:DC:
                00:2C:42:06:32:C1:1B:F8:92:5B:BC:E2:76:55:5B:4C:4C:99:06:06:
                70:2C:BD:EF:D9:00:85:0E:36:F2:83:BB:46:4E:6D:5A:28:53:99:33:
                7B:90:64:A3:E9:8D:D7:BB:25:3A:3D:D7:E9:5E:98:E8:52:3A:61:68:
                5C:52:48:50:74:D3:12:56:94:5F:31:6D:BA:1B:3A:FB:A5:F8:D5:6B:
                CA:F6:F6:E0:83:7E:28:8D:42:B7:A9:00
                
............................................................................

$ sudo systool -m rtw88_8822be -av


Module = "rtw88_8822be"

  Attributes:
    coresize            = "16384"
    initsize            = "0"
    initstate           = "live"
    refcnt              = "0"
    srcversion          = "8AF9BF6108F6001E463F5CF"
    taint               = ""
    uevent              = <store method only>

  Sections:
    .data               = "0xffffffffc0a0e000"
    .exit.text          = "0xffffffffc0a0c000"
    .gnu.linkonce.this_module= "0xffffffffc0a0e140"
    .init.text          = "0xffffffffc0993000"
    .note.Linux         = "0xffffffffc0a0d024"
    .note.gnu.build-id  = "0xffffffffc0a0d000"
    .orc_unwind         = "0xffffffffc0a0d0b0"
    .orc_unwind_ip      = "0xffffffffc0a0d0a0"
    .rodata             = "0xffffffffc0a0d040"
    .rodata.str1.1      = "0xffffffffc0a0d080"
    .strtab             = "0xffffffffc0994420"
    .symtab             = "0xffffffffc0994000"
    __mcount_loc        = "0xffffffffc0a0d098"
    
...................................................................

Recently, and while still searching for a solution, i came across this : https://access.redhat.com/documentation … guide/aspm

So, FINALLY, i made it work by permanently setting (via bootloader) either one of the parameters below, to the kernel cmdline:

pcie_aspm.policy=powersave
pcie_aspm.policy=performance

Seems that the default policy is to have it read/set directly from the bios, but obviously that doesn't always work.

Offline

Board footer

Powered by FluxBB