Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(solved) RTW: ERROR [HALMAC][ERR]Dump efuse in suspend #20

Closed
mlewus opened this issue Jan 5, 2022 · 10 comments
Closed

(solved) RTW: ERROR [HALMAC][ERR]Dump efuse in suspend #20

mlewus opened this issue Jan 5, 2022 · 10 comments

Comments

@mlewus
Copy link

mlewus commented Jan 5, 2022

I built a new kernel for the Raspberry pi 4 then built and installed the 88x2bu-20210702 driver, for a TP-Link USB Wi-Fi adapter I have never used before. It seems to work fine as a wifi interface (no AP mode, no 867 MHz, no concurrent mode, USB2). But I’m getting kernel error messages in /var/log/messages and dmesg when the driver is loaded at boot.

The adapter is a TP-Link Archer 3U Plus, connected to a USB2 hub. I know USB2 is not ideal, but it would be difficult to replace it with a USB3 hub in my existing project. I am connected to a 2.4 GHz AP so throughput should not be an issue.

Thanks in advance for any help you can offer.

——- Config & Requested Info ——-
Pi 4, 4GB Ram, Pi OS 10 ‘Buster’ with upgraded kernel 5.10.89.
System was updated before kernel & driver build with
sudo apt update && sudo apt full-upgrade
Then kernel 5.10.89 was installed from the rpi-5.10.y branch at https://github.com/raspberrypi/linux
No errors in kernel or driver build. No other non-standard drivers have been installed.

Config: contents of /etc/modprobe.d/88x2bu.conf:
options 88x2bu rtw_drv_log_level=2 rtw_led_ctrl=2 rtw_vht_enable=0 rtw_power_mgnt=0 rtw_beamform_cap=0 rtw_dfs_region_domain=1 rtw_sel_p2p_iface=1 rtw_switch_usb_mode=2

Internal wifi disabled in /boot/config.txt with:
dtoverlay=disable-wifi

gcc version:
gcc version 7.3.0 (Raspbian 7.3.0-19)

Here is the information requested in the README:

$ uname -a
Linux magic-mirror 5.10.89-v7l+ #1 SMP Mon Jan 3 20:47:31 EST 2022 armv7l GNU/Linux

$ mokutil --sb-state
EFI variables are not supported on this system

$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 005: ID 0556:0001 Asahi Kasei Microsystems Co., Ltd AK5370 I/F A/D Converter Bus 001 Device 007: ID 2357:0138 TP-Link Bus 001 Device 006: ID 046d:c52b Logitech, Inc. Unifying Receiver Bus 001 Device 004: ID 1a40:0101 Terminus Technology Inc. Hub Bus 001 Device 003: ID 041e:324d Creative Technology, Ltd Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

$ rfkill list all
0: phy0: Wireless LAN Soft blocked: no Hard blocked: no

$ dkms status
rtl88x2bu, 5.13.1, 5.10.89-v7l+, armv7l: installed

$ iw dev
phy#0 Interface wlx984827ea0ed6 ifindex 3 wdev 0x1 addr 98:48:27:ea:0e:d6 ssid xxxxxxxx type managed channel 11 (2462 MHz), width: 20 MHz, center1: 2462 MHz txpower 23.00 dBm

——— ERROR Messages ———
There are numerous instances of
[HALMAC][ERR]Dump efuse in suspend
and
[HALMAC][ALWAYS]shall R reg twice!!
in /var/log/messages at startup. This is all of the output related to RTW:
Jan 4 11:03:42 magic-mirror kernel: [ 50.211837] RTW: module init start
Jan 4 11:03:42 magic-mirror kernel: [ 50.211858] RTW: rtl88x2bu v5.13.1-20-gbd7c7eb9d.20210702_COEX20210316-18317b7b
Jan 4 11:03:42 magic-mirror kernel: [ 50.211874] RTW: rtl88x2bu BT-Coex version = COEX20210316-18317b7b
Jan 4 11:03:42 magic-mirror kernel: [ 50.212337] RTW: [HALMAC]55772M
Jan 4 11:03:42 magic-mirror kernel: [ 50.212337] HALMAC_MAJOR_VER = 1
Jan 4 11:03:42 magic-mirror kernel: [ 50.212337] HALMAC_PROTOTYPE_VER = 6
Jan 4 11:03:42 magic-mirror kernel: [ 50.212337] HALMAC_MINOR_VER = 6
Jan 4 11:03:42 magic-mirror kernel: [ 50.212337] HALMAC_PATCH_VER = 23
Jan 4 11:03:42 magic-mirror kernel: [ 50.227151] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
Jan 4 11:03:43 magic-mirror kernel: [ 50.863847] RTW: HW EFUSE
Jan 4 11:03:43 magic-mirror kernel: [ 50.863900] RTW: 0x000: 29 81 00 3C 09 00 A1 00 B6 04 64 10 00 00 A3 00
Jan 4 11:03:43 magic-mirror kernel: [ 50.864160] RTW: 0x010: 2B 2B 2C 2C 2C 2C 2A 2B 2B 2B 2B 14 00 00 FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.864415] RTW: 0x020: FF FF 26 25 24 23 20 20 21 21 23 24 26 24 24 24
Jan 4 11:03:43 magic-mirror kernel: [ 50.864669] RTW: 0x030: 13 00 FF FF 00 FF 1C 00 FF FF 2A 2B 2B 2C 2C 2C
Jan 4 11:03:43 magic-mirror kernel: [ 50.864951] RTW: 0x040: 2B 2B 2B 2B 2B 14 00 00 FF FF FF FF 25 25 25 24
Jan 4 11:03:43 magic-mirror kernel: [ 50.865254] RTW: 0x050: 21 21 21 21 22 24 26 26 26 26 13 00 FF FF 00 FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.865527] RTW: 0x060: 1C 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.865966] RTW: 0x070: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.866221] RTW: 0x080: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.866473] RTW: 0x090: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.866723] RTW: 0x0A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.866974] RTW: 0x0B0: FF FF FF FF FF FF FF FF A5 27 1D 00 FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.867224] RTW: 0x0C0: FF 01 00 11 00 00 00 00 00 FF 03 FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.867475] RTW: 0x0D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.867725] RTW: 0x0E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.867976] RTW: 0x0F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.868227] RTW: 0x100: 57 23 38 01 E1 67 02 98 48 27 EA 0E D6 09 03 52
Jan 4 11:03:43 magic-mirror kernel: [ 50.868480] RTW: 0x110: 65 61 6C 74 65 6B 0E 03 38 30 32 2E 31 31 61 63
Jan 4 11:03:43 magic-mirror kernel: [ 50.868734] RTW: 0x120: 20 4E 49 43 08 03 31 32 33 34 35 36 FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.868986] RTW: 0x130: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.869238] RTW: 0x140: 33 0A 1F 01 00 00 21 0F FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.869492] RTW: 0x150: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.869744] RTW: 0x160: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.869996] RTW: 0x170: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.870251] RTW: 0x180: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.870504] RTW: 0x190: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.870758] RTW: 0x1A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.871012] RTW: 0x1B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.871267] RTW: 0x1C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.871519] RTW: 0x1D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.871771] RTW: 0x1E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.872023] RTW: 0x1F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.872275] RTW: 0x200: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.872528] RTW: 0x210: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.872783] RTW: 0x220: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.873034] RTW: 0x230: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.873286] RTW: 0x240: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.873541] RTW: 0x250: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.873793] RTW: 0x260: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.874046] RTW: 0x270: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.874299] RTW: 0x280: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.874553] RTW: 0x290: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.874804] RTW: 0x2A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.875055] RTW: 0x2B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.875307] RTW: 0x2C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.875560] RTW: 0x2D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.875871] RTW: 0x2E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.876195] RTW: 0x2F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Jan 4 11:03:43 magic-mirror kernel: [ 50.876538] RTW: hal_com_config_channel_plan chplan:0x25
Jan 4 11:03:43 magic-mirror kernel: [ 50.892863] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
Jan 4 11:03:43 magic-mirror kernel: [ 50.915602] RTW: [HALMAC][ALWAYS]shall R reg twice!!
Jan 4 11:03:43 magic-mirror udisksd[387]: Acquired the name org.freedesktop.UDisks2 on the system message bus
Jan 4 11:03:43 magic-mirror kernel: [ 51.045469] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
Jan 4 11:03:43 magic-mirror kernel: [ 51.045727] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
Jan 4 11:03:43 magic-mirror kernel: [ 51.046061] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
Jan 4 11:03:43 magic-mirror kernel: [ 51.046334] RTW: [RF_PATH] ver_id.RF_TYPE:RF_2T2R
Jan 4 11:03:43 magic-mirror kernel: [ 51.046353] RTW: [RF_PATH] HALSPEC's rf_reg_trx_path_bmp:0x33, rf_reg_path_avail_num:2, max_tx_cnt:2
Jan 4 11:03:43 magic-mirror kernel: [ 51.046371] RTW: [RF_PATH] PG's trx_path_bmp:0x00, max_tx_cnt:0
Jan 4 11:03:43 magic-mirror kernel: [ 51.046388] RTW: [RF_PATH] Registry's trx_path_bmp:0x00, tx_path_lmt:0, rx_path_lmt:0
Jan 4 11:03:43 magic-mirror kernel: [ 51.046405] RTW: [RF_PATH] HALDATA's trx_path_bmp:0x33, max_tx_cnt:2
Jan 4 11:03:43 magic-mirror kernel: [ 51.046421] RTW: [RF_PATH] HALDATA's rf_type:RF_2T2R, NumTotalRFPath:2
Jan 4 11:03:43 magic-mirror kernel: [ 51.046438] RTW: [TRX_Nss] HALSPEC - tx_nss:2, rx_nss:2
Jan 4 11:03:43 magic-mirror kernel: [ 51.046454] RTW: [TRX_Nss] Registry - tx_nss:0, rx_nss:0
Jan 4 11:03:43 magic-mirror kernel: [ 51.046469] RTW: [TRX_Nss] HALDATA - tx_nss:2, rx_nss:2
Jan 4 11:03:43 magic-mirror kernel: [ 51.046488] RTW: txpath=0x3, rxpath=0x3
Jan 4 11:03:43 magic-mirror kernel: [ 51.046506] RTW: txpath_1ss:0x1, num:1
Jan 4 11:03:43 magic-mirror kernel: [ 51.046522] RTW: txpath_2ss:0x3, num:2
Jan 4 11:03:43 magic-mirror kernel: [ 51.048164] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
Jan 4 11:03:43 magic-mirror kernel: [ 51.050290] RTW: rtw_ndev_init(wlan0) if1 mac_addr=98:48:27:ea:0e:d6
Jan 4 11:03:43 magic-mirror kernel: [ 51.052850] usbcore: registered new interface driver rtl88x2bu
Jan 4 11:03:43 magic-mirror kernel: [ 51.052873] RTW: module init ret=0
Jan 4 11:03:43 magic-mirror mtp-probe: checking bus 1, device 7: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2/1-1.2.3"
Jan 4 11:03:43 magic-mirror mtp-probe: bus: 1, device: 7 was not an MTP device
Jan 4 11:03:43 magic-mirror kernel: [ 51.119655] rtl88x2bu 1-1.2.3:1.0 wlx984827ea0ed6: renamed from wlan0
Jan 4 11:03:43 magic-mirror kernel: [ 51.454094] RTW: [HALMAC][ALWAYS]shall R reg twice!!
Jan 4 11:03:44 magic-mirror kernel: [ 52.510207] start_addr=(0x20000), end_addr=(0x40000), buffer_size=(0x20000), smp_number_max=(16384)
Jan 4 11:03:44 magic-mirror kernel: [ 52.541755] IPv6: ADDRCONF(NETDEV_CHANGE): wlx984827ea0ed6: link becomes ready
Jan 4 11:03:49 magic-mirror kernel: [ 57.042693] RTW: rtw_set_802_11_connect(wlx984827ea0ed6) fw_state=0x00000008
Jan 4 11:03:49 magic-mirror kernel: [ 57.204203] RTW: start auth
Jan 4 11:03:49 magic-mirror kernel: [ 57.209342] RTW: auth success, start assoc
Jan 4 11:03:49 magic-mirror kernel: [ 57.220243] RTW: assoc success
Jan 4 11:03:49 magic-mirror kernel: [ 57.222835] RTW: ============ STA [98:da:c4:7c:df:e0] ===================
Jan 4 11:03:49 magic-mirror kernel: [ 57.222855] RTW: mac_id : 0
Jan 4 11:03:49 magic-mirror kernel: [ 57.222870] RTW: wireless_mode : 0x0b
Jan 4 11:03:49 magic-mirror kernel: [ 57.222886] RTW: mimo_type : 2
Jan 4 11:03:49 magic-mirror kernel: [ 57.222901] RTW: static smps : N
Jan 4 11:03:49 magic-mirror kernel: [ 57.222919] RTW: bw_mode : 20MHz, ra_bw_mode : 20MHz
Jan 4 11:03:49 magic-mirror kernel: [ 57.222936] RTW: rate_id : 2
Jan 4 11:03:49 magic-mirror kernel: [ 57.222952] RTW: rssi : -1 (%), rssi_level : 0
Jan 4 11:03:49 magic-mirror kernel: [ 57.222968] RTW: is_support_sgi : Y, is_vht_enable : N
Jan 4 11:03:49 magic-mirror kernel: [ 57.222985] RTW: disable_ra : N, disable_pt : N
Jan 4 11:03:49 magic-mirror kernel: [ 57.223000] RTW: is_noisy : N
Jan 4 11:03:49 magic-mirror kernel: [ 57.223015] RTW: txrx_state : 0
Jan 4 11:03:49 magic-mirror kernel: [ 57.223032] RTW: curr_tx_rate : CCK_1M (L)
Jan 4 11:03:49 magic-mirror kernel: [ 57.223047] RTW: curr_tx_bw : 20MHz
Jan 4 11:03:49 magic-mirror kernel: [ 57.223062] RTW: curr_retry_ratio : 0
Jan 4 11:03:49 magic-mirror kernel: [ 57.223078] RTW: ra_mask : 0x000000000fffffff
Jan 4 11:03:49 magic-mirror kernel: [ 57.223078]
Jan 4 11:03:49 magic-mirror kernel: [ 57.223270] RTW: recv eapol packet 1/4
Jan 4 11:03:49 magic-mirror kernel: [ 57.225426] RTW: send eapol packet 2/4
Jan 4 11:03:49 magic-mirror kernel: [ 57.233492] RTW: recv eapol packet 3/4
Jan 4 11:03:49 magic-mirror kernel: [ 57.234239] RTW: send eapol packet 4/4
Jan 4 11:03:49 magic-mirror kernel: [ 57.234619] RTW: set pairwise key camid:0, addr:98:da:c4:7c:df:e0, kid:0, type:AES
Jan 4 11:03:49 magic-mirror kernel: [ 57.237709] RTW: set group key camid:1, addr:98:da:c4:7c:df:e0, kid:1, type:AES

——— dmesg ERROR Output ———
[ 49.951868] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[ 49.952929] bcmgenet fd580000.ethernet eth0: Link is Down
[ 50.017841] 88x2bu: loading out-of-tree module taints kernel.
[ 50.208297] 88x2bu: unknown parameter 'rtw_sel_p2p_iface' ignored
[ 50.211837] RTW: module init start
[ 50.211858] RTW: rtl88x2bu v5.13.1-20-gbd7c7eb9d.20210702_COEX20210316-18317b7b
[ 50.211874] RTW: rtl88x2bu BT-Coex version = COEX20210316-18317b7b
[ 50.212337] RTW: [HALMAC]55772M
HALMAC_MAJOR_VER = 1
HALMAC_PROTOTYPE_VER = 6
HALMAC_MINOR_VER = 6
HALMAC_PATCH_VER = 23
[ 50.227151] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 50.863847] RTW: HW EFUSE
[ 50.863900] RTW: 0x000: 29 81 00 3C 09 00 A1 00 B6 04 64 10 00 00 A3 00
[ 50.864160] RTW: 0x010: 2B 2B 2C 2C 2C 2C 2A 2B 2B 2B 2B 14 00 00 FF FF
[ 50.864415] RTW: 0x020: FF FF 26 25 24 23 20 20 21 21 23 24 26 24 24 24
[ 50.864669] RTW: 0x030: 13 00 FF FF 00 FF 1C 00 FF FF 2A 2B 2B 2C 2C 2C
[ 50.864951] RTW: 0x040: 2B 2B 2B 2B 2B 14 00 00 FF FF FF FF 25 25 25 24
[ 50.865254] RTW: 0x050: 21 21 21 21 22 24 26 26 26 26 13 00 FF FF 00 FF
[ 50.865527] RTW: 0x060: 1C 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.865966] RTW: 0x070: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.866221] RTW: 0x080: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.866473] RTW: 0x090: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.866723] RTW: 0x0A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.866974] RTW: 0x0B0: FF FF FF FF FF FF FF FF A5 27 1D 00 FF FF FF FF
[ 50.867224] RTW: 0x0C0: FF 01 00 11 00 00 00 00 00 FF 03 FF FF FF FF FF
[ 50.867475] RTW: 0x0D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.867725] RTW: 0x0E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.867976] RTW: 0x0F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.868227] RTW: 0x100: 57 23 38 01 E1 67 02 98 48 27 EA 0E D6 09 03 52
[ 50.868480] RTW: 0x110: 65 61 6C 74 65 6B 0E 03 38 30 32 2E 31 31 61 63
[ 50.868734] RTW: 0x120: 20 4E 49 43 08 03 31 32 33 34 35 36 FF FF FF FF
[ 50.868986] RTW: 0x130: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.869238] RTW: 0x140: 33 0A 1F 01 00 00 21 0F FF FF FF FF FF FF FF FF
[ 50.869492] RTW: 0x150: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.869744] RTW: 0x160: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.869996] RTW: 0x170: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.870251] RTW: 0x180: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.870504] RTW: 0x190: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.870758] RTW: 0x1A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.871012] RTW: 0x1B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.871267] RTW: 0x1C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.871519] RTW: 0x1D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.871771] RTW: 0x1E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.872023] RTW: 0x1F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.872275] RTW: 0x200: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.872528] RTW: 0x210: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.872783] RTW: 0x220: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.873034] RTW: 0x230: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.873286] RTW: 0x240: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.873541] RTW: 0x250: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.873793] RTW: 0x260: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.874046] RTW: 0x270: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.874299] RTW: 0x280: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.874553] RTW: 0x290: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.874804] RTW: 0x2A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.875055] RTW: 0x2B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.875307] RTW: 0x2C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.875560] RTW: 0x2D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.875871] RTW: 0x2E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.876195] RTW: 0x2F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 50.876538] RTW: hal_com_config_channel_plan chplan:0x25
[ 50.892863] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 50.915602] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[ 51.045469] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 51.045727] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 51.046061] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 51.046334] RTW: [RF_PATH] ver_id.RF_TYPE:RF_2T2R
[ 51.046353] RTW: [RF_PATH] HALSPEC's rf_reg_trx_path_bmp:0x33, rf_reg_path_avail_num:2, max_tx_cnt:2
[ 51.046371] RTW: [RF_PATH] PG's trx_path_bmp:0x00, max_tx_cnt:0
[ 51.046388] RTW: [RF_PATH] Registry's trx_path_bmp:0x00, tx_path_lmt:0, rx_path_lmt:0
[ 51.046405] RTW: [RF_PATH] HALDATA's trx_path_bmp:0x33, max_tx_cnt:2
[ 51.046421] RTW: [RF_PATH] HALDATA's rf_type:RF_2T2R, NumTotalRFPath:2
[ 51.046438] RTW: [TRX_Nss] HALSPEC - tx_nss:2, rx_nss:2
[ 51.046454] RTW: [TRX_Nss] Registry - tx_nss:0, rx_nss:0
[ 51.046469] RTW: [TRX_Nss] HALDATA - tx_nss:2, rx_nss:2
[ 51.046488] RTW: txpath=0x3, rxpath=0x3
[ 51.046506] RTW: txpath_1ss:0x1, num:1
[ 51.046522] RTW: txpath_2ss:0x3, num:2
[ 51.048164] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[ 51.050290] RTW: rtw_ndev_init(wlan0) if1 mac_addr=98:48:27:ea:0e:d6
[ 51.052850] usbcore: registered new interface driver rtl88x2bu
[ 51.052873] RTW: module init ret=0
[ 51.119655] rtl88x2bu 1-1.2.3:1.0 wlx984827ea0ed6: renamed from wlan0
[ 51.454094] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[ 52.510207] start_addr=(0x20000), end_addr=(0x40000), buffer_size=(0x20000), smp_number_max=(16384)
[ 52.541755] IPv6: ADDRCONF(NETDEV_CHANGE): wlx984827ea0ed6: link becomes ready
[ 57.042693] RTW: rtw_set_802_11_connect(wlx984827ea0ed6) fw_state=0x00000008
[ 57.204203] RTW: start auth
[ 57.209342] RTW: auth success, start assoc
[ 57.220243] RTW: assoc success
[ 57.222835] RTW: ============ STA [98:da:c4:7c:df:e0] ===================
[ 57.222855] RTW: mac_id : 0
[ 57.222870] RTW: wireless_mode : 0x0b
[ 57.222886] RTW: mimo_type : 2
[ 57.222901] RTW: static smps : N
[ 57.222919] RTW: bw_mode : 20MHz, ra_bw_mode : 20MHz
[ 57.222936] RTW: rate_id : 2
[ 57.222952] RTW: rssi : -1 (%), rssi_level : 0
[ 57.222968] RTW: is_support_sgi : Y, is_vht_enable : N
[ 57.222985] RTW: disable_ra : N, disable_pt : N
[ 57.223000] RTW: is_noisy : N
[ 57.223015] RTW: txrx_state : 0
[ 57.223032] RTW: curr_tx_rate : CCK_1M (L)
[ 57.223047] RTW: curr_tx_bw : 20MHz
[ 57.223062] RTW: curr_retry_ratio : 0
[ 57.223078] RTW: ra_mask : 0x000000000fffffff

[ 57.223270] RTW: recv eapol packet 1/4
[ 57.225426] RTW: send eapol packet 2/4
[ 57.233492] RTW: recv eapol packet 3/4
[ 57.234239] RTW: send eapol packet 4/4
[ 57.234619] RTW: set pairwise key camid:0, addr:98:da:c4:7c:df:e0, kid:0, type:AES
[ 57.237709] RTW: set group key camid:1, addr:98:da:c4:7c:df:e0, kid:1, type:AES
[ 67.024755] broken atomic modeset userspace detected, disabling atomic
[ 70.699163] fuse: init (API version 7.32)

@PieGuy314
Copy link

try rtw_switch_usb_mode=1 in '/etc/modprobe.d/88x2bu.conf'

@mlewus
Copy link
Author

mlewus commented Jan 5, 2022

I tried that, it just breaks it. It crashes multiple times and gives up, with no wifi interface. Anyone have any other ideas? Or should I just disregard the error messages on startup?

@PieGuy314
Copy link

PieGuy314 commented Jan 5, 2022

Is the USB hub powered?

@mlewus
Copy link
Author

mlewus commented Jan 5, 2022

Good question :) The hub is buried inside a magic mirror, and I don't remember if it was a powered hub. I'm really trying to not have to open it up. But I don't think it's a power problem because once it gets started it works fine. I just get the initial two or three crashes at startup, and then it initializes and works after that. Maybe I should just leave well enough alone and forget it.

@PieGuy314
Copy link

The errors are consistent with the Wi-Fi adaptor failing during boot. The initial current draw on these adaptors is high. Having an unjuiced hub isn't going to help. The fact that it eventually works suggests a power supply issue.

It's wrong to assume a USB port can power a hub with a load of gadgets hanging off it. Been there; learnt that.

@morrownr
Copy link
Owner

morrownr commented Jan 6, 2022

Hi @mlewus

I tried that, it just breaks it. It crashes multiple times and gives up, with no wifi interface.

Ouch. Not a good idea to force USB3 when the adapter is not in a USB3 capable port.

Or should I just disregard the error messages on startup?

This. I did not see any unknown entries and I did not see anything that looked like an operational bug report. Realtek's logging with this driver is not going to win them any prizes. I suggest:

rtw_drv_log_level=0

...and press on. This is actually a pretty good driver for a Realtek out-of-kernel driver but that **** it spews in the log is just noise. I ignore it.

@PieGuy314
Copy link

try rtw_switch_usb_mode=1 in '/etc/modprobe.d/88x2bu.conf'

I think I meant to write 'rtw_switch_usb_mode=0'

Apologies.

@mlewus
Copy link
Author

mlewus commented Jan 6, 2022

i’ll try mode 0 but failing that, as long as it keeps working I’ll just ignore it.

@morrownr
Copy link
Owner

morrownr commented Jan 6, 2022

Hey @PieGuy314

Long time, no see. How is it going? I'm still waiting for you to rewrite the logging code in this driver... he he

@morrownr morrownr changed the title RTW: ERROR [HALMAC][ERR]Dump efuse in suspend (solved) RTW: ERROR [HALMAC][ERR]Dump efuse in suspend Jan 6, 2022
@mlewus
Copy link
Author

mlewus commented Jan 6, 2022

Changing the USB mode from 2 to 0, no effect. But other than startup messages the adapter is reliable, which is way more than I can say for the internal Wi-Fi chip on the pi 4. That one was crashing on a daily basis, requiring me to rmmod/modprobe the driver to get it back up. This is way better. Thanks for all the work will you guys put into this!

@mlewus mlewus closed this as completed Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants