I experienced the bug on my Lenovo IdeaPad L340-17IWL with Ubuntu 20.04 up to 
date and a Realtech rtw_8821ce.
I spend hours to try to find a setting, practicing the Computer Assisted Waste 
of Time.
I bought an external wifi dongle with another Realtech 81... chip (I've not it 
at hand now) and experienced also the failure of the wifi after some times.
As said by delfi above. I still experience the bug after a while after a fresh 
install of Ubuntu 22.04.
More than 2 years that the bug is known...

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1872984

Title:
  RTL8822BE [10ec:b822] network driver rtl_wifi crashes on boot in Focal
  Fossa 20.04 - 5.4.0-21-generic and mainline 5.7.0-050700rc1-generic

Status in linux package in Ubuntu:
  Fix Released

Bug description:
  RTL8822BE crashes after rtw_pci starts on boot after kernel update to
  5.4.0-21 (fails to read DBI register -- see attached dmesg). Issue is
  still present on latest mainline kernel version
  5.7.0-050700rc1-generic .

  [   10.627501] rtw_pci 0000:3a:00.0: start vif 5c:ea:1d:b6:17:11 on port 0
  [   10.714544] ------------[ cut here ]------------
  [   10.714545] failed to read DBI register, addr=0x0719
  [   10.714577] WARNING: CPU: 0 PID: 939 at 
drivers/net/wireless/realtek/rtw88/pci.c:1156 
rtw_dbi_read8.constprop.0+0xaa/0xc0 [rtwpci]
  [   10.714577] Modules linked in: (see attached dmesg)
  [   10.714614] CPU: 0 PID: 939 Comm: wpa_supplicant Not tainted 
5.7.0-050700rc1-generic #202004122032
  [   10.714614] Hardware name: LENOVO 81CU/LNVNB161216, BIOS 7KCN22WW(V1.03) 
01/23/2018
  [   10.714616] RIP: 0010:rtw_dbi_read8.constprop.0+0xaa/0xc0 [rtwpci]
  [   10.714617] Code: 03 00 00 48 8b 40 50 e8 24 c3 4b e0 5b 41 5c 41 88 45 00 
31 c0 41 5d 5d c3 be 19 07 00 00 48 c7 c7 70 73 94 c0 e8 bb de 75 df <0f> 0b b8 
fb ff ff ff 5b 41 5c 41 5d 5d c3 0f 1f 84 00 00 00 00 00
  [   10.714618] RSP: 0018:ffffb466007e7880 EFLAGS: 00010282
  [   10.714618] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 
0000000000000007
  [   10.714619] RDX: 0000000000000007 RSI: 0000000000000092 RDI: 
ffff933cc9e19c80
  [   10.714619] RBP: ffffb466007e7898 R08: 00000000000003d2 R09: 
0000000000000004
  [   10.714620] R10: 0000000000000000 R11: 0000000000000001 R12: 
ffff933cbdf31ea0
  [   10.714620] R13: ffffb466007e78af R14: ffff933cbdf35bc8 R15: 
0000000000000000
  [   10.714622] FS:  00007fbcedc6efc0(0000) GS:ffff933cc9e00000(0000) 
knlGS:0000000000000000
  [   10.714622] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  [   10.714623] CR2: 0000563278766000 CR3: 00000002be7a4002 CR4: 
00000000003606f0
  [   10.714623] Call Trace:
  [   10.714627]  rtw_pci_link_ps+0x4e/0x90 [rtwpci]
  [   10.714630]  ? _raw_spin_unlock_bh+0x1e/0x20
  [   10.714637]  rtw_leave_ips+0x1f/0x80 [rtw88]
  [   10.714640]  rtw_ops_config+0xa3/0xe0 [rtw88]
  [   10.714658]  ieee80211_hw_config+0x95/0x390 [mac80211]
  [   10.714669]  ieee80211_recalc_idle+0x27/0x30 [mac80211]
  [   10.714679]  __ieee80211_start_scan+0x334/0x750 [mac80211]
  [   10.714688]  ieee80211_request_scan+0x30/0x50 [mac80211]
  [   10.714699]  ieee80211_scan+0x5c/0xa0 [mac80211]
  [   10.714719]  nl80211_trigger_scan+0x59a/0x6c0 [cfg80211]
  [   10.714722]  genl_rcv_msg+0x1a8/0x470
  [   10.714724]  ? ep_poll_callback+0x2a0/0x2c0
  [   10.714725]  ? genl_family_rcv_msg_attrs_parse+0x100/0x100
  [   10.714726]  netlink_rcv_skb+0x50/0x120
  [   10.714728]  genl_rcv+0x29/0x40
  [   10.714729]  netlink_unicast+0x1a8/0x250
  [   10.714730]  netlink_sendmsg+0x233/0x460
  [   10.714739]  ? _copy_from_user+0x31/0x60
  [   10.714750]  sock_sendmsg+0x65/0x70
  [   10.714751]  ____sys_sendmsg+0x212/0x280
  [   10.714752]  ? copy_msghdr_from_user+0x5c/0x90
  [   10.714755]  ? __check_object_size+0x4d/0x150
  [   10.714756]  ___sys_sendmsg+0x81/0xc0
  [   10.714757]  ? __check_object_size+0x4d/0x150
  [   10.714759]  ? unix_ioctl+0x99/0x180
  [   10.714760]  ? sock_getsockopt+0x198/0xc04
  [   10.714761]  ? sock_do_ioctl+0x47/0x140
  [   10.714763]  ? __cgroup_bpf_run_filter_setsockopt+0xae/0x2c0
  [   10.714765]  ? _cond_resched+0x19/0x30
  [   10.714767]  ? aa_sk_perm+0x43/0x1b0
  [   10.714768]  __sys_sendmsg+0x5c/0xa0
  [   10.714770]  __x64_sys_sendmsg+0x1f/0x30
  [   10.714772]  do_syscall_64+0x57/0x1b0
  [   10.714773]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
  [   10.714774] RIP: 0033:0x7fbcedffb5b7
  [   10.714775] Code: 64 89 02 48 c7 c0 ff ff ff ff eb bb 0f 1f 80 00 00 00 00 
f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 2e 00 00 00 0f 05 <48> 3d 00 
f0 ff ff 77 51 c3 48 83 ec 28 89 54 24 1c 48 89 74 24 10
  [   10.714776] RSP: 002b:00007fff88e22288 EFLAGS: 00000246 ORIG_RAX: 
000000000000002e
  [   10.714777] RAX: ffffffffffffffda RBX: 00005632787355d0 RCX: 
00007fbcedffb5b7
  [   10.714777] RDX: 0000000000000000 RSI: 00007fff88e222c0 RDI: 
0000000000000006
  [   10.714778] RBP: 0000563278761380 R08: 0000000000000004 R09: 
0000563278761380
  [   10.714778] R10: 00007fff88e22394 R11: 0000000000000246 R12: 
00005632787354e0
  [   10.714779] R13: 00007fff88e222c0 R14: 00007fff88e22394 R15: 
0000563278766710
  [   10.714780] ---[ end trace f00c16109236af6f ]---
  [   10.714782] rtw_pci 0000:3a:00.0: failed to read ASPM, ret=-5

  Device is unable to scan for networks and error occurs when attempting
  to turn on/off wifi in settings:

  [  302.451636] rtw_pci 0000:3a:00.0: stop vif 5c:ea:1d:b6:17:11 on port 0
  [  308.820551] rtw_pci 0000:3a:00.0: mac power on failed
  [  308.820554] rtw_pci 0000:3a:00.0: failed to power on mac

  However, issue is NOT present for me on kernel version
  5.4.0-18-generic (but is present on 5.4.0-21-generic and 5.7.0- as
  mentioned above). Changing kernel versions with grub has been a
  temporary solution.

  Relevant log files are attached from tests in both kernel versions
  mentioned above (5.4.0-21 and 5.7.0-). Additional log files can be
  added upon request, as I am able to repeat this simply by changing
  kernel versions in grub.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1872984/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to