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
605 stars 133 forks source link

urb crashes reported while rtl-8821cu is active, ssh etc loses connection (openSUSE TW 20231108) #128

Closed IlgazC closed 7 months ago

IlgazC commented 12 months ago

The rtw88 inline kernel driver is totally broken here so I installed this one via https://build.opensuse.org/package/show/home%3ASauerland%3Ahardware/rtl8821cu to openSUSE Tumbleweed. It was working perfectly before however I noticed ssh connection drops after sometime. Web/Video streaming aren't really effected so you have to run something like ssh, wireguard to notice it.

I sometimes have to use Win10 in the same configuration, device doesn't have problems.

Here is the crash (usb details follow)

[10162.454431] ------------[ cut here ]------------ [10162.454436] URB 0000000000000000 submitted while active [10162.454488] WARNING: CPU: 2 PID: 1622 at drivers/usb/core/urb.c:379 usb_submit_urb+0x6a1/0x6c0 [usbcore] [10162.454532] Modules linked in: snd_seq_dummy snd_hrtimer snd_seq snd_seq_device xt_conntrack nft_chain_nat xt_MASQUERADE nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xfrm_user xfrm_algo xt_addrtype nft_compat nf_tables nfnetlink br_netfilter bridge stp llc overlay af_packet wireguard libchacha20poly1305 chacha_x86_64 poly1305_x86_64 curve25519_x86_64 libcurve25519_generic libchacha ip6_udp_tunnel udp_tunnel qrtr hid_logitech_hidpp hid_logitech_dj ext4 ntfs3 mbcache jbd2 8821cu(O) hid_sensor_rotation hid_sensor_incl_3d hid_sensor_magn_3d hid_sensor_accel_3d hid_sensor_gyro_3d hid_sensor_trigger hid_sensor_iio_common industrialio_triggered_buffer kfifo_buf industrialio hid_sensor_custom hid_multitouch hid_sensor_hub cfg80211 hid_generic uvcvideo videobuf2_vmalloc uvc videobuf2_memops videobuf2_v4l2 videodev videobuf2_common mc usbhid binfmt_misc squashfs nls_iso8859_1 nls_cp437 loop vfat fat intel_rapl_msr intel_rapl_common spi_nor x86_pkg_temp_thermal intel_powerclamp coretemp mtd at24 spi_intel_platform kvm_intel [10162.454583] snd_ctl_led snd_hda_codec_realtek iTCO_wdt mei_hdcp intel_pmc_bxt joydev snd_hda_codec_generic mei_pxp spi_intel iTCO_vendor_support kvm ledtrig_audio irqbypass snd_hda_codec_hdmi hp_wmi snd_hda_intel pcspkr r8169 sparse_keymap wmi_bmof platform_profile rfkill i2c_i801 snd_intel_dspcfg snd_intel_sdw_acpi realtek i2c_smbus snd_hda_codec snd_hda_core mdio_devres libphy snd_hwdep mei_me snd_pcm snd_timer thermal lpc_ich snd mei soundcore tiny_power_button hp_accel lis3lv02d acpi_pad button ac fuse configfs efi_pstore dmi_sysfs ip_tables x_tables uas usb_storage crct10dif_pclmul crc32_pclmul polyval_clmulni polyval_generic gf128mul ghash_clmulni_intel sha512_ssse3 i915 ahci libahci xhci_pci rtsx_pci_sdmmc xhci_pci_renesas mmc_core ehci_pci i2c_algo_bit xhci_hcd ehci_hcd drm_buddy ttm aesni_intel libata crypto_simd cryptd drm_display_helper usbcore rtsx_pci cec rc_core battery video wmi serio_raw btrfs blake2b_generic libcrc32c crc32c_intel xor raid6_pq dm_multipath dm_mod scsi_dh_rdac scsi_dh_emc scsi_dh_alua [10162.454640] sd_mod t10_pi sg scsi_mod scsi_common msr efivarfs [10162.454646] CPU: 2 PID: 1622 Comm: wpa_supplicant Tainted: G W IO 6.5.9-1-default #1 openSUSE Tumbleweed eb5faaeb0a34bed614de16eec67e50ac769ec453 [10162.454650] Hardware name: Hewlett-Packard HP Pavilion 13 x360 PC /2341, BIOS F.41 06/21/2018 [10162.454651] RIP: 0010:usb_submit_urb+0x6a1/0x6c0 [usbcore] [10162.454684] Code: c6 79 c0 e8 91 e7 53 f2 eb 96 b8 fe ff ff ff e9 d0 fc ff ff 48 89 fe 48 c7 c7 68 b8 7c c0 c6 05 c8 a9 01 00 01 e8 ff e2 f3 f1 <0f> 0b e9 4d ff ff ff b8 f8 ff ff ff e9 a9 fc ff ff 66 2e 0f 1f 84 [10162.454686] RSP: 0000:ffffb285c0c173b8 EFLAGS: 00010286 [10162.454688] RAX: 0000000000000000 RBX: ffff99f004fb10c0 RCX: 0000000000000027 [10162.454690] RDX: ffff99f156d274c8 RSI: 0000000000000001 RDI: ffff99f156d274c0 [10162.454691] RBP: ffffb285c039f000 R08: 0000000000000000 R09: ffffb285c0c17260 [10162.454692] R10: 0000000000000003 R11: ffffffffb4558568 R12: ffff99f003064000 [10162.454693] R13: ffff99f004fb10c0 R14: ffff99f007bc6800 R15: ffff99f018f70048 [10162.454695] FS: 00007f873d0cb800(0000) GS:ffff99f156d00000(0000) knlGS:0000000000000000 [10162.454696] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [10162.454698] CR2: 000055740bfadb60 CR3: 000000013b7ce005 CR4: 00000000003706e0 [10162.454699] Call Trace: [10162.454702] [10162.454703] ? usb_submit_urb+0x6a1/0x6c0 [usbcore 81a8f053081309c8413cd94ec981cfd6191883a7] [10162.454731] ? warn+0x81/0x130 [10162.454736] ? usb_submit_urb+0x6a1/0x6c0 [usbcore 81a8f053081309c8413cd94ec981cfd6191883a7] [10162.454762] ? report_bug+0x171/0x1a0 [10162.454766] ? handle_bug+0x3c/0x80 [10162.454770] ? exc_invalid_op+0x17/0x70 [10162.454771] ? asm_exc_invalid_op+0x1a/0x20 [10162.454776] ? usb_submit_urb+0x6a1/0x6c0 [usbcore 81a8f053081309c8413cd94ec981cfd6191883a7] [10162.454800] ? usb_submit_urb+0x6a1/0x6c0 [usbcore 81a8f053081309c8413cd94ec981cfd6191883a7] [10162.454825] usb_read_port+0x128/0x210 [8821cu c668c53ab3e6055aeb08b58e280f6f24580b9528] [10162.455091] ? pfx_usb_read_port+0x10/0x10 [8821cu c668c53ab3e6055aeb08b58e280f6f24580b9528] [10162.455357] rtl8821cu_inirp_init+0x67/0xb0 [8821cu c668c53ab3e6055aeb08b58e280f6f24580b9528] [10162.455683] rtw_hal_inirp_init+0x15/0x20 [8821cu c668c53ab3e6055aeb08b58e280f6f24580b9528] [10162.455996] usb_intf_start+0x16/0x30 [8821cu c668c53ab3e6055aeb08b58e280f6f24580b9528] [10162.456309] rtw_intf_start+0x1e/0x40 [8821cu c668c53ab3e6055aeb08b58e280f6f24580b9528] [10162.456613] _halmac_init_hal+0xad/0x190 [8821cu c668c53ab3e6055aeb08b58e280f6f24580b9528] [10162.456919] rtw_halmac_init_hal_fw+0xe/0x20 [8821cu c668c53ab3e6055aeb08b58e280f6f24580b9528] [10162.457222] rtl8821c_hal_init_main+0x33/0x120 [8821cu c668c53ab3e6055aeb08b58e280f6f24580b9528] [10162.457531] rtl8821c_hal_init+0x1a/0x70 [8821cu c668c53ab3e6055aeb08b58e280f6f24580b9528] [10162.457845] rtl8821cu_hal_init+0x20/0xc0 [8821cu c668c53ab3e6055aeb08b58e280f6f24580b9528] [10162.458145] rtw_hal_init+0x39/0x1a0 [8821cu c668c53ab3e6055aeb08b58e280f6f24580b9528] [10162.458468] ips_netdrv_open+0x3a/0xc0 [8821cu c668c53ab3e6055aeb08b58e280f6f24580b9528] [10162.458806] rtw_ips_pwr_up+0x31/0x90 [8821cu c668c53ab3e6055aeb08b58e280f6f24580b9528] [10162.459118] _ips_leave+0x6c/0xf0 [8821cu c668c53ab3e6055aeb08b58e280f6f24580b9528] [10162.459402] ips_leave+0x2b/0x70 [8821cu c668c53ab3e6055aeb08b58e280f6f24580b9528] [10162.459725] _rtw_pwr_wakeup+0x224/0x490 [8821cu c668c53ab3e6055aeb08b58e280f6f24580b9528] [10162.460052] cfg80211_rtw_scan+0x155/0x840 [8821cu c668c53ab3e6055aeb08b58e280f6f24580b9528] [10162.460389] ? update_load_avg+0x7e/0x780 [10162.460399] ? update_curr+0x69/0x1e0 [10162.460404] ? set_next_entity+0xe2/0x160 [10162.460409] ? switch_to_asm+0x3e/0x70 [10162.460417] ? finish_task_switch.isra.0+0x94/0x2f0 [10162.460424] ? schedule+0x3e6/0x14b0 [10162.460431] ? schedule+0x3e6/0x14b0 [10162.460436] ? timerqueue_add+0x66/0xb0 [10162.460442] ? timerqueue_del+0x2e/0x50 [10162.460446] ? remove_hrtimer+0x39/0x90 [10162.460456] ? hrtimer_try_to_cancel.part.0+0x50/0xf0 [10162.460463] ? schedule_hrtimeout_range_clock+0xc3/0x130 [10162.460470] ? remove_wait_queue+0x16/0x50 [10162.460475] ? poll_freewait+0x3f/0xa0 [10162.460484] ? packet_poll+0xd5/0x120 [af_packet 842dfb2cb91dc6ad194416ea3cc318a95a69b037] [10162.460497] ? sock_poll+0x55/0xf0 [10162.460509] ? do_select+0x768/0x860 [10162.460514] ? kmem_cache_alloc_node+0x190/0x390 [10162.460520] ? nl80211_trigger_scan+0x163/0x7e0 [cfg80211 91180286e714c942003abd215ef62acf8a4ede96] [10162.460703] rdev_scan+0x28/0xd0 [cfg80211 91180286e714c942003abd215ef62acf8a4ede96] [10162.460827] nl80211_trigger_scan+0x409/0x7e0 [cfg80211 91180286e714c942003abd215ef62acf8a4ede96] [10162.460948] genl_family_rcv_msg_doit.isra.0+0xce/0x120 [10162.460958] genl_rcv_msg+0x181/0x290 [10162.460962] ? __pfx_nl80211_pre_doit+0x10/0x10 [cfg80211 91180286e714c942003abd215ef62acf8a4ede96] [10162.461057] ? pfx_nl80211_trigger_scan+0x10/0x10 [cfg80211 91180286e714c942003abd215ef62acf8a4ede96] [10162.461163] ? pfx_nl80211_post_doit+0x10/0x10 [cfg80211 91180286e714c942003abd215ef62acf8a4ede96] [10162.461264] ? pfx_genl_rcv_msg+0x10/0x10 [10162.461271] netlink_rcv_skb+0x5b/0x110 [10162.461280] genl_rcv+0x28/0x40 [10162.461286] netlink_unicast+0x19e/0x290 [10162.461293] netlink_sendmsg+0x254/0x4d0 [10162.461299] __sys_sendmsg+0x339/0x360 [10162.461306] ? copy_msghdr_fromuser+0x6d/0xa0 [10162.461312] sys_sendmsg+0x86/0xd0 [10162.461318] ? _sys_recvmsg+0x87/0xd0 [10162.461324] ? seccomp_filter+0x31b/0x4e0 [10162.461330] ? _copy_from_user+0x2f/0x70 [10162.461339] ? netlink_setsockopt+0x272/0x360 [10162.461344] ? __sys_setsockopt+0xea/0x1c0 [10162.461349] __sys_sendmsg+0x5b/0xb0 [10162.461355] do_syscall_64+0x60/0x90 [10162.461361] ? exit_to_user_mode_prepare+0x19a/0x1f0 [10162.461367] ? syscall_exit_to_user_mode+0x2b/0x40 [10162.461372] ? do_syscall_64+0x6c/0x90 [10162.461376] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [10162.461381] RIP: 0033:0x7f873c91aed4 [10162.461437] Code: 00 00 00 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 90 90 80 3d 55 eb 0d 00 00 74 13 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 54 c3 0f 1f 00 48 83 ec 28 89 54 24 1c 48 89 [10162.461440] RSP: 002b:00007ffc75616618 EFLAGS: 00000202 ORIG_RAX: 000000000000002e [10162.461446] RAX: ffffffffffffffda RBX: 0000560cbd83a050 RCX: 00007f873c91aed4 [10162.461449] RDX: 0000000000000000 RSI: 00007ffc75616650 RDI: 0000000000000006 [10162.461452] RBP: 0000560cbd8cd630 R08: 0000000000000004 R09: 0000000000000001 [10162.461454] R10: 00007ffc75616730 R11: 0000000000000202 R12: 0000560cbd83c080 [10162.461456] R13: 00007ffc75616650 R14: 0000000000000000 R15: 00007ffc75616730 [10162.461462] [10162.461464] ---[ end trace 0000000000000000 ]---

The hardware details of USB device Bus 002 Device 003: ID 0bda:c811 Realtek Semiconductor Corp. 802.11ac NIC Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x0bda Realtek Semiconductor Corp. idProduct 0xc811 bcdDevice 2.00 iManufacturer 1 Realtek iProduct 2 802.11ac NIC iSerial 3 123456 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 0x0035 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xa0 (Bus Powered) Remote Wakeup MaxPower 500mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 5 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol iInterface 2 802.11ac NIC Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x84 EP 4 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x05 EP 5 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x06 EP 6 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x87 EP 7 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 3 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x08 EP 8 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Device Qualifier (for other device speed): bLength 10 bDescriptorType 6 bcdUSB 2.00 bDeviceClass 0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 bNumConfigurations 1 Device Status: 0x0000 (Bus Powered)

morrownr commented 7 months ago

Is this still a problem? I guess I accidentally missed this report.