cilynx / rtl88x2bu

rtl88x2bu driver updated for current kernels.
http://www.wolfteck.com/2018/02/22/wsky_1200mbps_wireless_usb_wifi_adapter/
GNU General Public License v2.0
1.63k stars 318 forks source link

Fault reported in /var/log/syslog, related to occasional system lock-ups? #38

Open MgFrobozz opened 4 years ago

MgFrobozz commented 4 years ago

I've had issues since I bought a realtek wifi usb adapter and started running it on my system (a system lockup every 1-3 days, requiring a cold boot, with nulls written into /var/log/syslog at the time of the crash). The fault below appeared yesterday; I don't know if it's related to the lockups.

Ubuntu 18.04.4 LTS Linux 4.15.0-96-generic #97-Ubuntu SMP Wed Apr 1 03:25:46 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Last commit in https://github.com/cilynx/rtl88x2bu.git for my driver: 0fcf304956

In /var/log/syslog:

[Sat Apr 25 15:25:28 2020] ------------[ cut here ]------------ [Sat Apr 25 15:25:28 2020] WARNING: CPU: 3 PID: 1453 at /usr/src/rtl88x2bu-5.6.1/hal/hal_com.c:11513 rtw_lps_state_chk+0x45/0x4e [88x2bu] [Sat Apr 25 15:25:28 2020] Modules linked in: cdc_acm vmnet(OE) vmw_vsock_vmci_transport vsock vmw_vmci vmmon(OE) ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_log_ipv4 nf_log_common xt_LOG ipt_REJECT nf_reject_ipv4 nf_conntrack_ipv4 nf_defrag_ipv4 xt_tcpudp xt_conntrack nf_conntrack iptable_filter sch_fq_codel amdgpu snd_hda_codec_realtek chash s5h1411 snd_hda_codec_generic snd_hda_codec_hdmi cx25840 eeepc_wmi asus_wmi cx23885 sparse_keymap wmi_bmof video altera_ci tda18271 altera_stapl m88ds3103 tveeprom cx2341x videobuf2_dvb dvb_core rc_core snd_hda_intel edac_mce_amd v4l2_common snd_hda_codec kvm_amd i2c_mux radeon snd_hda_core videobuf2_dma_sg kvm snd_hwdep videobuf2_memops snd_seq_midi irqbypass ttm videobuf2_v4l2 snd_seq_midi_event crct10dif_pclmul snd_rawmidi videobuf2_core drm_kms_helper [Sat Apr 25 15:25:28 2020]  crc32_pclmul 88x2bu(OE) ghash_clmulni_intel snd_seq videodev pcbc drm media i2c_algo_bit snd_pcm snd_seq_device aesni_intel fb_sys_fops input_leds snd_timer syscopyarea aes_x86_64 sysfillrect crypto_simd snd glue_helper sysimgblt soundcore cfg80211 ccp cryptd shpchp k10temp wmi mac_hid lm78 hwmon_vid parport_pc ppdev lp parport ip_tables x_tables autofs4 raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid0 multipath linear raid1 hid_generic usbhid hid i2c_piix4 r8169 ahci mii libahci gpio_amdpt gpio_generic [Sat Apr 25 15:25:28 2020] CPU: 3 PID: 1453 Comm: RTW_CMD_THREAD Tainted: G        W  OE    4.15.0-96-generic #97-Ubuntu [Sat Apr 25 15:25:28 2020] Hardware name: System manufacturer System Product Name/PRIME B450M-A, BIOS 1820 09/12/2019 [Sat Apr 25 15:25:28 2020] RIP: 0010:rtw_lps_state_chk+0x45/0x4e [88x2bu] [Sat Apr 25 15:25:28 2020] RSP: 0018:ffff989888533c90 EFLAGS: 00010286 [Sat Apr 25 15:25:28 2020] RAX: 0000000000000024 RBX: 0000000000000000 RCX: 0000000000000006 [Sat Apr 25 15:25:28 2020] RDX: 0000000000000000 RSI: ffff88b79e8d6498 RDI: ffff88b79e8d6490 [Sat Apr 25 15:25:28 2020] RBP: ffff989888533ca0 R08: 00000000000005ff R09: 0000000000000004 [Sat Apr 25 15:25:28 2020] R10: 0000000000000000 R11: 0000000000000001 R12: ffff989883fed000 [Sat Apr 25 15:25:28 2020] R13: ffff989888533d6c R14: ffff98988841d000 R15: ffff88b76cc8dbe0 [Sat Apr 25 15:25:28 2020] FS:  0000000000000000(0000) GS:ffff88b79e8c0000(0000) knlGS:0000000000000000 [Sat Apr 25 15:25:28 2020] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [Sat Apr 25 15:25:28 2020] CR2: 00003cccbd4f7ff0 CR3: 00000006ce7c0000 CR4: 00000000003406e0 [Sat Apr 25 15:25:28 2020] Call Trace: [Sat Apr 25 15:25:28 2020]  SetHwReg+0x704/0x726 [88x2bu] [Sat Apr 25 15:25:28 2020]  rtl8822b_sethwreg+0xdec/0xe02 [88x2bu] [Sat Apr 25 15:25:28 2020]  sethwreg+0x134/0x13b [88x2bu] [Sat Apr 25 15:25:28 2020]  rtw_hal_set_hwreg+0x19/0x1b [88x2bu] [Sat Apr 25 15:25:28 2020]  rtw_set_ps_mode+0xf3/0x223 [88x2bu] [Sat Apr 25 15:25:28 2020]  LPS_Leave+0xd0/0xd7 [88x2bu] [Sat Apr 25 15:25:28 2020]  rtl8822b_phy_haldm_watchdog+0x16b/0x191 [88x2bu] [Sat Apr 25 15:25:28 2020]  rtw_hal_dm_watchdog+0x21/0x24 [88x2bu] [Sat Apr 25 15:25:28 2020]  rtw_dynamic_chk_wk_hdl+0x37/0x52 [88x2bu] [Sat Apr 25 15:25:28 2020]  rtw_drvextra_cmd_hdl+0x2a0/0x496 [88x2bu] [Sat Apr 25 15:25:28 2020]  ? _rtw_up_sema+0xe/0x10 [88x2bu] [Sat Apr 25 15:25:28 2020]  rtw_cmd_thread+0x1ba/0x454 [88x2bu] [Sat Apr 25 15:25:28 2020]  ? session_tracker_cmd_hdl+0x1df/0x1df [88x2bu] [Sat Apr 25 15:25:28 2020]  kthread+0x121/0x140 [Sat Apr 25 15:25:28 2020]  ? rtw_stop_cmd_thread+0x3f/0x3f [88x2bu] [Sat Apr 25 15:25:28 2020]  ? kthread_create_worker_on_cpu+0x70/0x70 [Sat Apr 25 15:25:28 2020]  ret_from_fork+0x22/0x40 [Sat Apr 25 15:25:28 2020] Code: 04 06 00 00 4c 89 e7 e8 6c 24 f9 ff 84 c0 79 1d bf 01 00 00 00 e8 b9 69 fd ff 80 eb 01 75 e0 48 c7 c7 78 db b0 c0 e8 2a 55 ea ea <0f> 0b 5b 41 5c 5d c3 f3 c3 0f 1f 44 00 00 55 48 89 e5 41 54 53 [Sat Apr 25 15:25:28 2020] ---[ end trace d4e0b0b3e9b81459 ]---

MgFrobozz commented 4 years ago

Continuing to have this problem; a lock-up followed shortly after, requiring a cold reboot.

May 30 17:11:03 localhost kernel: [ 3830.255022] ------------[ cut here ]------------ May 30 17:11:03 localhost kernel: [ 3830.255126] WARNING: CPU: 4 PID: 1396 at /usr/src/rtl88x2bu-5.6.1/hal/hal_com.c:11513 rtw_lps_state_chk+0x45/0x4e [88x2bu] May 30 17:11:03 localhost kernel: [ 3830.255127] Modules linked in: vmw_vsock_vmci_transport vsock vmw_vmci ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_log_ipv4 nf_log_common xt_LOG ipt_REJECT nf_reject_ipv4 nf_conntrack_ipv4 nf_defrag_ipv4 xt_tcpudp xt_conntrack nf_conntrack iptable_filter amdgpu sch_fq_codel snd_hda_codec_realtek snd_hda_codec_generic chash snd_hda_codec_hdmi s5h1411 cx25840 cx23885 altera_ci tda18271 altera_stapl eeepc_wmi m88ds3103 asus_wmi tveeprom sparse_keymap cx2341x wmi_bmof video videobuf2_dvb dvb_core rc_core snd_hda_intel v4l2_common radeon i2c_mux snd_hda_codec videobuf2_dma_sg snd_hda_core videobuf2_memops ttm videobuf2_v4l2 snd_hwdep drm_kms_helper videobuf2_core snd_seq_midi snd_seq_midi_event videodev drm snd_rawmidi media i2c_algo_bit snd_seq snd_pcm input_leds fb_sys_fops May 30 17:11:03 localhost kernel: [ 3830.255154] snd_seq_device snd_timer snd syscopyarea soundcore sysfillrect sysimgblt edac_mce_amd kvm_amd kvm ccp irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel wmi aes_x86_64 crypto_simd glue_helper k10temp cryptd shpchp mac_hid 88x2bu(OE) cfg80211 lm78 hwmon_vid parport_pc ppdev lp parport ip_tables x_tables autofs4 raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid0 multipath linear raid1 hid_generic usbhid hid i2c_piix4 r8169 ahci mii libahci gpio_amdpt gpio_generic May 30 17:11:03 localhost kernel: [ 3830.255184] CPU: 4 PID: 1396 Comm: RTW_CMD_THREAD Tainted: G OE 4.15.0-101-generic #102-Ubuntu May 30 17:11:03 localhost kernel: [ 3830.255185] Hardware name: System manufacturer System Product Name/PRIME B450M-A, BIOS 1820 09/12/2019 May 30 17:11:03 localhost kernel: [ 3830.255237] RIP: 0010:rtw_lps_state_chk+0x45/0x4e [88x2bu] May 30 17:11:03 localhost kernel: [ 3830.255238] RSP: 0018:ffffa99248757c90 EFLAGS: 00010286 May 30 17:11:03 localhost kernel: [ 3830.255240] RAX: 0000000000000024 RBX: 0000000000000000 RCX: 0000000000000006 May 30 17:11:03 localhost kernel: [ 3830.255242] RDX: 0000000000000000 RSI: ffff99769e916498 RDI: ffff99769e916490 May 30 17:11:03 localhost kernel: [ 3830.255243] RBP: ffffa99248757ca0 R08: 000000000000045d R09: 0000000000000004 May 30 17:11:03 localhost kernel: [ 3830.255244] R10: 0000000000000000 R11: 0000000000000001 R12: ffffa99243bf9000 May 30 17:11:03 localhost kernel: [ 3830.255245] R13: ffffa99248757d6c R14: ffffa99248179000 R15: ffff997677399be0 May 30 17:11:03 localhost kernel: [ 3830.255247] FS: 0000000000000000(0000) GS:ffff99769e900000(0000) knlGS:0000000000000000 May 30 17:11:03 localhost kernel: [ 3830.255248] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 May 30 17:11:03 localhost kernel: [ 3830.255249] CR2: 00002d190cbcb000 CR3: 0000000768330000 CR4: 00000000003406e0 May 30 17:11:03 localhost kernel: [ 3830.255250] Call Trace: May 30 17:11:03 localhost kernel: [ 3830.255301] SetHwReg+0x704/0x726 [88x2bu] May 30 17:11:03 localhost kernel: [ 3830.255357] rtl8822b_sethwreg+0xdec/0xe02 [88x2bu] May 30 17:11:03 localhost kernel: [ 3830.255407] sethwreg+0x134/0x13b [88x2bu] May 30 17:11:03 localhost kernel: [ 3830.255456] rtw_hal_set_hwreg+0x19/0x1b [88x2bu] May 30 17:11:03 localhost kernel: [ 3830.255497] rtw_set_ps_mode+0xf3/0x223 [88x2bu] May 30 17:11:03 localhost kernel: [ 3830.255537] LPS_Leave+0xd0/0xd7 [88x2bu] May 30 17:11:03 localhost kernel: [ 3830.255584] rtl8822b_phy_haldm_watchdog+0x16b/0x191 [88x2bu] May 30 17:11:03 localhost kernel: [ 3830.255631] rtw_hal_dm_watchdog+0x21/0x24 [88x2bu] May 30 17:11:03 localhost kernel: [ 3830.255657] rtw_dynamic_chk_wk_hdl+0x37/0x52 [88x2bu] May 30 17:11:03 localhost kernel: [ 3830.255682] rtw_drvextra_cmd_hdl+0x2a0/0x496 [88x2bu] May 30 17:11:03 localhost kernel: [ 3830.255731] ? _rtw_up_sema+0xe/0x10 [88x2bu] May 30 17:11:03 localhost kernel: [ 3830.255756] rtw_cmd_thread+0x1ba/0x454 [88x2bu] May 30 17:11:03 localhost kernel: [ 3830.255781] ? session_tracker_cmd_hdl+0x1df/0x1df [88x2bu] May 30 17:11:03 localhost kernel: [ 3830.255787] kthread+0x121/0x140 May 30 17:11:03 localhost kernel: [ 3830.255811] ? rtw_stop_cmd_thread+0x3f/0x3f [88x2bu] May 30 17:11:03 localhost kernel: [ 3830.255813] ? kthread_create_worker_on_cpu+0x70/0x70 May 30 17:11:03 localhost kernel: [ 3830.255818] ret_from_fork+0x22/0x40 May 30 17:11:03 localhost kernel: [ 3830.255820] Code: 04 06 00 00 4c 89 e7 e8 6c 24 f9 ff 84 c0 79 1d bf 01 00 00 00 e8 b9 69 fd ff 80 eb 01 75 e0 48 c7 c7 78 ab 62 c0 e8 1a 88 d8 e8 <0f> 0b 5b 41 5c 5d c3 f3 c3 0f 1f 44 00 00 55 48 89 e5 41 54 53 May 30 17:11:03 localhost kernel: [ 3830.255846] ---[ end trace f0170ef9a2cd4b57 ]---