tomaspinho / rtl8821ce

Other
1.6k stars 409 forks source link

Modules crashes on loading #156

Open onprem opened 4 years ago

onprem commented 4 years ago

When I boot the laptop, sometimes the module crashes during the initial load, and sometimes it gets loaded successfully but then after some time it crashes. I was able to capture the stacktrace. Let me know if you need something else.

stacktrace in dmesg logs ``` [ 208.671858] WARNING: CPU: 4 PID: 3449 at /var/lib/dkms/rtl8821ce/1.0.5.r100.g18c1f60/build/hal/rtl8821c/rtl8821c_halinit.c:93 rtl8821c_power_on+0x4b/0x8f [8821ce] [ 208.671858] Modules linked in: 8821ce(OE+) rfcomm fuse sr_mod cdrom cmac algif_hash algif_skcipher af_alg bnep uvcvideo btusb btrtl videobuf2_vmalloc videobuf2_memops btbcm videobuf2_v4l2 btintel uas videobuf2_common usb_storage bluetooth videodev usbhid mc ecdh_generic ecc joydev mousedev asus_nb_wmi hid_multitouch asus_wmi hid_generic sparse_keymap wmi_bmof uinput edac_mce_amd kvm_amd kvm snd_hda_codec_realtek irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel snd_hda_codec_generic crypto_simd cryptd amdgpu glue_helper ledtrig_audio snd_hda_codec_hdmi snd_hda_intel snd_intel_dspcfg pcspkr input_leds snd_hda_codec gpu_sched snd_hda_core i2c_algo_bit ttm snd_hwdep k10temp cfg80211 drm_kms_helper snd_pcm cec r8169 rc_core snd_timer sp5100_tco syscopyarea snd realtek sysfillrect tpm_crb sysimgblt ccp libphy i2c_piix4 soundcore fb_sys_fops rfkill wmi battery ac tpm_tis evdev tpm_tis_core i2c_hid mac_hid tpm hid rng_core pinctrl_amd asus_wireless acpi_cpufreq nls_iso8859_1 [ 208.671871] nls_cp437 vfat fat drm pkcs8_key_parser crypto_user acpi_call(OE) agpgart ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 serio_raw atkbd libps2 crc32c_intel xhci_pci xhci_hcd i8042 serio [last unloaded: 8821ce] [ 208.671875] CPU: 4 PID: 3449 Comm: modprobe Tainted: G W OE 5.7.10-arch1-1 #1 [ 208.671876] Hardware name: ASUSTeK COMPUTER INC. TUF Gaming FX505DY_FX505DY/FX505DY, BIOS FX505DY.313 09/03/2019 [ 208.671903] RIP: 0010:rtl8821c_power_on+0x4b/0x8f [8821ce] [ 208.671904] Code: 07 00 48 8b 6f 18 48 8d 54 24 07 be 37 00 00 00 e8 95 34 fe ff 0f b6 44 24 07 3c 01 74 13 48 89 ef e8 05 a0 00 00 85 c0 74 21 <0f> 0b b8 00 00 00 00 0f b6 c0 48 8b 4c 24 08 65 48 2b 0c 25 28 00 [ 208.671904] RSP: 0018:ffffb590013bf950 EFLAGS: 00010282 [ 208.671905] RAX: 00000000fffffffe RBX: ffffb59000555000 RCX: 000000000000001d [ 208.671905] RDX: 00000000fffffffe RSI: ffffffffc1551dd1 RDI: ffffb590013bf889 [ 208.671906] RBP: ffff9608d9b69000 R08: 000000000000001d R09: ffffb591013bf886 [ 208.671906] R10: ffffffffffffffff R11: ffffb590013bf87a R12: ffffb590013c1000 [ 208.671907] R13: 0000000000000000 R14: 0000000000008129 R15: 0000000000000001 [ 208.671907] FS: 00007f5621e7b740(0000) GS:ffff9609a6f00000(0000) knlGS:0000000000000000 [ 208.671908] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 208.671908] CR2: 00007f562114e000 CR3: 0000000111e04000 CR4: 00000000003406e0 [ 208.671908] Call Trace: [ 208.671937] rtw_hal_power_on+0x1f/0x42 [8821ce] [ 208.671964] rtw_halmac_dlfw+0x38/0xa2 [8821ce] [ 208.671992] rtl8821c_fw_dl+0x23/0x3d [8821ce] [ 208.672020] rtw_hal_fw_dl+0x15/0x16 [8821ce] [ 208.672048] hal_read_mac_hidden_rpt+0xfc/0x21c [8821ce] [ 208.672076] rtl8821c_read_efuse+0x336/0x568 [8821ce] [ 208.672102] read_adapter_info+0xa/0x10 [8821ce] [ 208.672130] rtw_hal_read_chip_info+0x6e/0x75 [8821ce] [ 208.672158] rtw_pci_primary_adapter_init+0x13e/0x33c [8821ce] [ 208.672185] rtw_drv_init+0x2d5/0x6de [8821ce] [ 208.672187] local_pci_probe+0x42/0x80 [ 208.672188] ? pci_match_device+0xd7/0x100 [ 208.672189] pci_device_probe+0xfa/0x1b0 [ 208.672191] really_probe+0x167/0x410 [ 208.672192] driver_probe_device+0xb6/0x100 [ 208.672194] device_driver_attach+0xa1/0xb0 [ 208.672195] __driver_attach+0x8a/0x150 [ 208.672196] ? device_driver_attach+0xb0/0xb0 [ 208.672197] ? device_driver_attach+0xb0/0xb0 [ 208.672198] bus_for_each_dev+0x89/0xd0 [ 208.672199] bus_add_driver+0x12b/0x1e0 [ 208.672201] driver_register+0x8b/0xe0 [ 208.672201] ? 0xffffffffc0a8e000 [ 208.672219] rtw_drv_entry+0x48/0x1000 [8821ce] [ 208.672220] do_one_initcall+0x59/0x240 [ 208.672222] do_init_module+0x5c/0x260 [ 208.672224] load_module+0x2137/0x23a0 [ 208.672227] __do_sys_init_module+0x172/0x1a0 [ 208.672229] do_syscall_64+0x49/0x90 [ 208.672230] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 208.672231] RIP: 0033:0x7f5621fa873e [ 208.672232] Code: 48 8b 0d 55 f7 0b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 49 89 ca b8 af 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 22 f7 0b 00 f7 d8 64 89 01 48 [ 208.672232] RSP: 002b:00007ffea7cb1f88 EFLAGS: 00000246 ORIG_RAX: 00000000000000af [ 208.672233] RAX: ffffffffffffffda RBX: 00005616ca673dc0 RCX: 00007f5621fa873e [ 208.672233] RDX: 00005616c95f1368 RSI: 00000000003764d8 RDI: 00007f5620dd8010 [ 208.672234] RBP: 00007f5620dd8010 R08: 0000000000000000 R09: 00000000003764e0 [ 208.672234] R10: 0000000000000001 R11: 0000000000000246 R12: 00005616c95f1368 [ 208.672235] R13: 0000000000000000 R14: 00005616ca673d10 R15: 00005616ca673dc0 [ 208.672236] ---[ end trace 1ba19e6dd6100b97 ]--- ```

Linux Kernel: 5.7.10-arch1-1 Distro: Arch Linux Laptop: Asus FX505DY

pqyptixa commented 4 years ago

Happens in my system too. In my case, it crashes on unload, and then crashes on load again.

From syslog: ``` Nov 30 10:57:50 hostname NetworkManager[851]: [1606744670.6532] devices removed (path: /sys/devices/pci0000:00/0000:00:01.3/0000:03:00.0/net/wlan0, iface: wlan0) Nov 30 10:57:50 hostname NetworkManager[851]: [1606744670.6773] radio killswitch /sys/devices/pci0000:00/0000:00:01.3/0000:03:00.0/ieee80211/phy0/rfkill1 disappeared Nov 30 10:57:50 hostname kernel: [389125.338745] ------------[ cut here ]------------ Nov 30 10:57:50 hostname kernel: [389125.338814] WARNING: CPU: 4 PID: 17639 at /var/lib/dkms/rtl8821ce/5.5.2.1/build/hal/rtl8821c/rtl8821c_halinit.c:122 rtl8821c_power_off+0x62/0x8d [rtl8821ce] Nov 30 10:57:50 hostname kernel: [389125.338815] Modules linked in: dm_crypt algif_skcipher af_alg usb_storage nfnetlink_queue nfnetlink_log nfnetlink rtl8821ce(OE-) cfg80211 vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) rfcomm bnep uvcvideo videobuf2_vmalloc videobuf2_memops btusb videobuf2_v4l2 btrtl btbcm videobuf2_common btintel bluetooth videodev mc ecdh_generic ecc appletalk psnap llc twofish_generic twofish_avx_x86_64 twofish_x86_64_3way twofish_x86_64 twofish_common camellia_generic camellia_aesni_avx2 camellia_aesni_avx_x86_64 camellia_x86_64 serpent_avx2 serpent_avx_x86_64 serpent_sse2_x86_64 serpent_generic blowfish_generic blowfish_x86_64 blowfish_common cast5_avx_x86_64 cast5_generic cast_common des_generic libdes cmac xcbc rmd160 af_key xfrm_algo joydev snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio binfmt_misc snd_hda_codec_hdmi edac_mce_amd kvm_amd ccp snd_hda_intel snd_intel_dspcfg kvm snd_hda_codec snd_hda_core snd_hwdep crct10dif_pclmul snd_pcm snd_seq_midi snd_seq_midi_event crc32_pclmul snd_rawmidi Nov 30 10:57:50 hostname kernel: [389125.338862] ghash_clmulni_intel aesni_intel snd_seq crypto_simd cryptd glue_helper input_leds snd_seq_device serio_raw wmi_bmof hid_multitouch snd_timer k10temp snd soundcore asus_wireless mac_hid sch_fq_codel cpuid msr faustus(OE) sparse_keymap parport_pc ppdev lp parport ip_tables x_tables autofs4 btrfs zstd_compress raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear hid_generic amdgpu amd_iommu_v2 gpu_sched i2c_algo_bit ttm drm_kms_helper ahci syscopyarea sysfillrect libahci i2c_piix4 sysimgblt fb_sys_fops r8169 drm nvme realtek nvme_core wmi i2c_hid video hid Nov 30 10:57:50 hostname kernel: [389125.338907] CPU: 4 PID: 17639 Comm: rmmod Tainted: G W OE 5.4.0-54-generic #60~18.04.1-Ubuntu Nov 30 10:57:50 hostname kernel: [389125.338909] Hardware name: ASUSTeK COMPUTER INC. TUF Gaming FX505DY_FX505DY/FX505DY, BIOS FX505DY.315 03/09/2020 Nov 30 10:57:50 hostname kernel: [389125.338969] RIP: 0010:rtl8821c_power_off+0x62/0x8d [rtl8821ce] Nov 30 10:57:50 hostname kernel: [389125.338972] Code: 80 7d e7 00 75 18 48 8b 45 e8 65 48 33 04 25 28 00 00 00 75 3b 48 83 c4 10 5b 41 5c 5d c3 4c 89 e7 e8 3b a4 00 00 85 c0 74 04 <0f> 0b eb d8 c6 45 e7 00 48 8d 55 e7 be 37 00 00 00 48 89 df e8 0f Nov 30 10:57:50 hostname kernel: [389125.338974] RSP: 0018:ffffb67cc3f87cf8 EFLAGS: 00010286 Nov 30 10:57:50 hostname kernel: [389125.338976] RAX: 00000000ffffffff RBX: ffffb67cc068b000 RCX: 0000000000000001 Nov 30 10:57:50 hostname kernel: [389125.338978] RDX: 0000000000000001 RSI: ffffffffc14697f0 RDI: 0000000000000000 Nov 30 10:57:50 hostname kernel: [389125.338979] RBP: ffffb67cc3f87d18 R08: 00000000ffffffff R09: 0000000000000000 Nov 30 10:57:50 hostname kernel: [389125.338980] R10: 0000000000000002 R11: 00000000000000f0 R12: ffff8df7cca36000 Nov 30 10:57:50 hostname kernel: [389125.338981] R13: ffffffffc1470160 R14: 0000000000000000 R15: 0000000000000000 Nov 30 10:57:50 hostname kernel: [389125.338983] FS: 00007f389ad48540(0000) GS:ffff8df7d6f00000(0000) knlGS:0000000000000000 Nov 30 10:57:50 hostname kernel: [389125.338985] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Nov 30 10:57:50 hostname kernel: [389125.338986] CR2: 000056098fc6afe8 CR3: 0000000496962000 CR4: 00000000003406e0 Nov 30 10:57:50 hostname kernel: [389125.338987] Call Trace: Nov 30 10:57:50 hostname kernel: [389125.339053] rtw_hal_power_off+0x3e/0x41 [rtl8821ce] Nov 30 10:57:50 hostname kernel: [389125.339109] rtw_halmac_deinit_hal+0x3c/0x52 [rtl8821ce] Nov 30 10:57:50 hostname kernel: [389125.339166] rtl8821c_hal_deinit+0x24/0x2e [rtl8821ce] Nov 30 10:57:50 hostname kernel: [389125.339222] rtl8821ce_hal_deinit+0xe/0x18 [rtl8821ce] Nov 30 10:57:50 hostname kernel: [389125.339283] rtw_hal_deinit+0x19/0x2e [rtl8821ce] Nov 30 10:57:50 hostname kernel: [389125.339342] rtw_dev_unload+0xd0/0xe4 [rtl8821ce] Nov 30 10:57:50 hostname kernel: [389125.339399] rtw_pci_primary_adapter_deinit+0x2c/0x6e [rtl8821ce] Nov 30 10:57:50 hostname kernel: [389125.339457] rtw_dev_remove+0x6b/0x9c [rtl8821ce] Nov 30 10:57:50 hostname kernel: [389125.339463] pci_device_remove+0x3e/0xc0 Nov 30 10:57:50 hostname kernel: [389125.339468] device_release_driver_internal+0xec/0x1c0 Nov 30 10:57:50 hostname kernel: [389125.339471] driver_detach+0x4c/0xa0 Nov 30 10:57:50 hostname kernel: [389125.339473] bus_remove_driver+0x5c/0xe0 Nov 30 10:57:50 hostname kernel: [389125.339475] driver_unregister+0x2f/0x50 Nov 30 10:57:50 hostname kernel: [389125.339477] pci_unregister_driver+0x22/0xa0 Nov 30 10:57:50 hostname kernel: [389125.339517] rtw_drv_halt+0x1a/0x127 [rtl8821ce] Nov 30 10:57:50 hostname kernel: [389125.339523] __x64_sys_delete_module+0x146/0x290 Nov 30 10:57:50 hostname kernel: [389125.339529] do_syscall_64+0x57/0x190 Nov 30 10:57:50 hostname kernel: [389125.339533] entry_SYSCALL_64_after_hwframe+0x44/0xa9 Nov 30 10:57:50 hostname kernel: [389125.339535] RIP: 0033:0x7f389a89b047 Nov 30 10:57:50 hostname kernel: [389125.339539] Code: 73 01 c3 48 8b 0d 41 8e 2c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 b0 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 11 8e 2c 00 f7 d8 64 89 01 48 Nov 30 10:57:50 hostname kernel: [389125.339540] RSP: 002b:00007ffea126ffd8 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0 Nov 30 10:57:50 hostname kernel: [389125.339542] RAX: ffffffffffffffda RBX: 00007ffea1270038 RCX: 00007f389a89b047 Nov 30 10:57:50 hostname kernel: [389125.339543] RDX: 000000000000000a RSI: 0000000000000800 RDI: 000055db60d2b868 Nov 30 10:57:50 hostname kernel: [389125.339544] RBP: 000055db60d2b800 R08: 00007ffea126ef51 R09: 0000000000000000 Nov 30 10:57:50 hostname kernel: [389125.339545] R10: 00007f389a917c40 R11: 0000000000000206 R12: 00007ffea1270200 Nov 30 10:57:50 hostname kernel: [389125.339546] R13: 00007ffea12717cb R14: 000055db60d2b260 R15: 000055db60d2b800 Nov 30 10:57:50 hostname kernel: [389125.339549] ---[ end trace 5a9f92a02c23aa39 ]--- Nov 30 10:57:59 hostname kernel: [389134.227128] ------------[ cut here ]------------ Nov 30 10:57:59 hostname kernel: [389134.227175] WARNING: CPU: 6 PID: 17672 at /var/lib/dkms/rtl8821ce/5.5.2.1/build/hal/rtl8821c/rtl8821c_halinit.c:93 rtl8821c_power_on+0x4c/0x8f [rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.227175] Modules linked in: rtl8821ce(OE+) dm_crypt algif_skcipher af_alg usb_storage nfnetlink_queue nfnetlink_log nfnetlink cfg80211 vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) rfcomm bnep uvcvideo videobuf2_vmalloc videobuf2_memops btusb videobuf2_v4l2 btrtl btbcm videobuf2_common btintel bluetooth videodev mc ecdh_generic ecc appletalk psnap llc twofish_generic twofish_avx_x86_64 twofish_x86_64_3way twofish_x86_64 twofish_common camellia_generic camellia_aesni_avx2 camellia_aesni_avx_x86_64 camellia_x86_64 serpent_avx2 serpent_avx_x86_64 serpent_sse2_x86_64 serpent_generic blowfish_generic blowfish_x86_64 blowfish_common cast5_avx_x86_64 cast5_generic cast_common des_generic libdes cmac xcbc rmd160 af_key xfrm_algo joydev snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio binfmt_misc snd_hda_codec_hdmi edac_mce_amd kvm_amd ccp snd_hda_intel snd_intel_dspcfg kvm snd_hda_codec snd_hda_core snd_hwdep crct10dif_pclmul snd_pcm snd_seq_midi snd_seq_midi_event crc32_pclmul snd_rawmidi Nov 30 10:57:59 hostname kernel: [389134.227203] ghash_clmulni_intel aesni_intel snd_seq crypto_simd cryptd glue_helper input_leds snd_seq_device serio_raw wmi_bmof hid_multitouch snd_timer k10temp snd soundcore asus_wireless mac_hid sch_fq_codel cpuid msr faustus(OE) sparse_keymap parport_pc ppdev lp parport ip_tables x_tables autofs4 btrfs zstd_compress raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear hid_generic amdgpu amd_iommu_v2 gpu_sched i2c_algo_bit ttm drm_kms_helper ahci syscopyarea sysfillrect libahci i2c_piix4 sysimgblt fb_sys_fops r8169 drm nvme realtek nvme_core wmi i2c_hid video hid [last unloaded: rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.227226] CPU: 6 PID: 17672 Comm: modprobe Tainted: G W OE 5.4.0-54-generic #60~18.04.1-Ubuntu Nov 30 10:57:59 hostname kernel: [389134.227227] Hardware name: ASUSTeK COMPUTER INC. TUF Gaming FX505DY_FX505DY/FX505DY, BIOS FX505DY.315 03/09/2020 Nov 30 10:57:59 hostname kernel: [389134.227256] RIP: 0010:rtl8821c_power_on+0x4c/0x8f [rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.227257] Code: 4c 8b 67 18 c6 45 e7 00 48 8d 55 e7 be 37 00 00 00 e8 fc 2a fe ff 0f b6 45 e7 3c 01 74 13 4c 89 e7 e8 2a a4 00 00 85 c0 74 22 <0f> 0b b8 00 00 00 00 0f b6 c0 48 8b 4d e8 65 48 33 0c 25 28 00 00 Nov 30 10:57:59 hostname kernel: [389134.227258] RSP: 0018:ffffb67cc8a478c8 EFLAGS: 00010282 Nov 30 10:57:59 hostname kernel: [389134.227259] RAX: 00000000fffffffe RBX: ffffb67cc068b000 RCX: 000000000000001d Nov 30 10:57:59 hostname kernel: [389134.227259] RDX: 00000000fffffffe RSI: ffffffffc1469a1c RDI: 0000000000000000 Nov 30 10:57:59 hostname kernel: [389134.227260] RBP: ffffb67cc8a478e8 R08: 0000000000000000 R09: ffffb67cc8a47838 Nov 30 10:57:59 hostname kernel: [389134.227260] R10: ffffb67dc8a477ee R11: ffffb67cc8a477e2 R12: ffff8df41c852000 Nov 30 10:57:59 hostname kernel: [389134.227261] R13: ffffb67cc2d01000 R14: 0000000000000000 R15: ffffb67cc2d0114e Nov 30 10:57:59 hostname kernel: [389134.227262] FS: 00007fd5ed6ac540(0000) GS:ffff8df7d6f80000(0000) knlGS:0000000000000000 Nov 30 10:57:59 hostname kernel: [389134.227262] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Nov 30 10:57:59 hostname kernel: [389134.227263] CR2: 0000561a6fc9b0ac CR3: 000000054caf2000 CR4: 00000000003406e0 Nov 30 10:57:59 hostname kernel: [389134.227263] Call Trace: Nov 30 10:57:59 hostname kernel: [389134.227295] rtw_hal_power_on+0x24/0x4a [rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.227323] hal_read_mac_hidden_rpt+0x150/0x226 [rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.227350] rtl8821c_read_efuse+0x35f/0x599 [rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.227376] read_adapter_info+0xe/0x15 [rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.227405] rtw_hal_read_chip_info+0x76/0x81 [rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.227432] rtw_pci_primary_adapter_init+0x148/0x36b [rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.227459] rtw_drv_init+0x2bb/0x66e [rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.227462] local_pci_probe+0x47/0xa0 Nov 30 10:57:59 hostname kernel: [389134.227464] pci_device_probe+0x10b/0x1b0 Nov 30 10:57:59 hostname kernel: [389134.227467] really_probe+0xf5/0x440 Nov 30 10:57:59 hostname kernel: [389134.227468] driver_probe_device+0x11b/0x130 Nov 30 10:57:59 hostname kernel: [389134.227469] device_driver_attach+0x58/0x60 Nov 30 10:57:59 hostname kernel: [389134.227470] __driver_attach+0xa3/0x140 Nov 30 10:57:59 hostname kernel: [389134.227471] ? device_driver_attach+0x60/0x60 Nov 30 10:57:59 hostname kernel: [389134.227472] ? device_driver_attach+0x60/0x60 Nov 30 10:57:59 hostname kernel: [389134.227473] bus_for_each_dev+0x74/0xb0 Nov 30 10:57:59 hostname kernel: [389134.227475] ? kmem_cache_alloc_trace+0x208/0x220 Nov 30 10:57:59 hostname kernel: [389134.227476] driver_attach+0x1e/0x20 Nov 30 10:57:59 hostname kernel: [389134.227476] bus_add_driver+0x14a/0x220 Nov 30 10:57:59 hostname kernel: [389134.227477] ? 0xffffffffc1512000 Nov 30 10:57:59 hostname kernel: [389134.227478] driver_register+0x60/0x100 Nov 30 10:57:59 hostname kernel: [389134.227479] ? 0xffffffffc1512000 Nov 30 10:57:59 hostname kernel: [389134.227480] __pci_register_driver+0x5a/0x60 Nov 30 10:57:59 hostname kernel: [389134.227496] rtw_drv_entry+0x4c/0x1000 [rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.227499] do_one_initcall+0x4a/0x1fa Nov 30 10:57:59 hostname kernel: [389134.227500] ? kfree+0x22b/0x240 Nov 30 10:57:59 hostname kernel: [389134.227504] ? _cond_resched+0x19/0x40 Nov 30 10:57:59 hostname kernel: [389134.227504] ? kmem_cache_alloc_trace+0x208/0x220 Nov 30 10:57:59 hostname kernel: [389134.227507] do_init_module+0x5f/0x226 Nov 30 10:57:59 hostname kernel: [389134.227508] load_module+0x1b46/0x2140 Nov 30 10:57:59 hostname kernel: [389134.227510] __do_sys_finit_module+0xfc/0x120 Nov 30 10:57:59 hostname kernel: [389134.227511] ? __do_sys_finit_module+0xfc/0x120 Nov 30 10:57:59 hostname kernel: [389134.227513] __x64_sys_finit_module+0x1a/0x20 Nov 30 10:57:59 hostname kernel: [389134.227514] do_syscall_64+0x57/0x190 Nov 30 10:57:59 hostname kernel: [389134.227515] entry_SYSCALL_64_after_hwframe+0x44/0xa9 Nov 30 10:57:59 hostname kernel: [389134.227516] RIP: 0033:0x7fd5ed1f8639 Nov 30 10:57:59 hostname kernel: [389134.227517] Code: 00 f3 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 1f f8 2c 00 f7 d8 64 89 01 48 Nov 30 10:57:59 hostname kernel: [389134.227518] RSP: 002b:00007ffc08f88278 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 Nov 30 10:57:59 hostname kernel: [389134.227519] RAX: ffffffffffffffda RBX: 0000559fe4498ff0 RCX: 00007fd5ed1f8639 Nov 30 10:57:59 hostname kernel: [389134.227519] RDX: 0000000000000000 RSI: 0000559fe2ef9cee RDI: 0000000000000003 Nov 30 10:57:59 hostname kernel: [389134.227520] RBP: 0000559fe2ef9cee R08: 0000000000000000 R09: 0000000000000000 Nov 30 10:57:59 hostname kernel: [389134.227520] R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000 Nov 30 10:57:59 hostname kernel: [389134.227521] R13: 0000559fe4498f60 R14: 0000000000040000 R15: 0000559fe4498ff0 Nov 30 10:57:59 hostname kernel: [389134.227522] ---[ end trace 5a9f92a02c23aa3a ]--- Nov 30 10:57:59 hostname kernel: [389134.227826] ------------[ cut here ]------------ Nov 30 10:57:59 hostname kernel: [389134.227853] WARNING: CPU: 6 PID: 17672 at /var/lib/dkms/rtl8821ce/5.5.2.1/build/hal/rtl8821c/rtl8821c_halinit.c:93 rtl8821c_power_on+0x4c/0x8f [rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.227854] Modules linked in: rtl8821ce(OE+) dm_crypt algif_skcipher af_alg usb_storage nfnetlink_queue nfnetlink_log nfnetlink cfg80211 vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) rfcomm bnep uvcvideo videobuf2_vmalloc videobuf2_memops btusb videobuf2_v4l2 btrtl btbcm videobuf2_common btintel bluetooth videodev mc ecdh_generic ecc appletalk psnap llc twofish_generic twofish_avx_x86_64 twofish_x86_64_3way twofish_x86_64 twofish_common camellia_generic camellia_aesni_avx2 camellia_aesni_avx_x86_64 camellia_x86_64 serpent_avx2 serpent_avx_x86_64 serpent_sse2_x86_64 serpent_generic blowfish_generic blowfish_x86_64 blowfish_common cast5_avx_x86_64 cast5_generic cast_common des_generic libdes cmac xcbc rmd160 af_key xfrm_algo joydev snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio binfmt_misc snd_hda_codec_hdmi edac_mce_amd kvm_amd ccp snd_hda_intel snd_intel_dspcfg kvm snd_hda_codec snd_hda_core snd_hwdep crct10dif_pclmul snd_pcm snd_seq_midi snd_seq_midi_event crc32_pclmul snd_rawmidi Nov 30 10:57:59 hostname kernel: [389134.227867] ghash_clmulni_intel aesni_intel snd_seq crypto_simd cryptd glue_helper input_leds snd_seq_device serio_raw wmi_bmof hid_multitouch snd_timer k10temp snd soundcore asus_wireless mac_hid sch_fq_codel cpuid msr faustus(OE) sparse_keymap parport_pc ppdev lp parport ip_tables x_tables autofs4 btrfs zstd_compress raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear hid_generic amdgpu amd_iommu_v2 gpu_sched i2c_algo_bit ttm drm_kms_helper ahci syscopyarea sysfillrect libahci i2c_piix4 sysimgblt fb_sys_fops r8169 drm nvme realtek nvme_core wmi i2c_hid video hid [last unloaded: rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.227878] CPU: 6 PID: 17672 Comm: modprobe Tainted: G W OE 5.4.0-54-generic #60~18.04.1-Ubuntu Nov 30 10:57:59 hostname kernel: [389134.227878] Hardware name: ASUSTeK COMPUTER INC. TUF Gaming FX505DY_FX505DY/FX505DY, BIOS FX505DY.315 03/09/2020 Nov 30 10:57:59 hostname kernel: [389134.227904] RIP: 0010:rtl8821c_power_on+0x4c/0x8f [rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.227905] Code: 4c 8b 67 18 c6 45 e7 00 48 8d 55 e7 be 37 00 00 00 e8 fc 2a fe ff 0f b6 45 e7 3c 01 74 13 4c 89 e7 e8 2a a4 00 00 85 c0 74 22 <0f> 0b b8 00 00 00 00 0f b6 c0 48 8b 4d e8 65 48 33 0c 25 28 00 00 Nov 30 10:57:59 hostname kernel: [389134.227906] RSP: 0018:ffffb67cc8a47878 EFLAGS: 00010282 Nov 30 10:57:59 hostname kernel: [389134.227907] RAX: 00000000fffffffe RBX: ffffb67cc068b000 RCX: 000000000000001d Nov 30 10:57:59 hostname kernel: [389134.227907] RDX: 00000000fffffffe RSI: ffffffffc1469a1c RDI: 0000000000000000 Nov 30 10:57:59 hostname kernel: [389134.227907] RBP: ffffb67cc8a47898 R08: 0000000000000000 R09: ffffb67cc8a477e8 Nov 30 10:57:59 hostname kernel: [389134.227908] R10: ffffb67dc8a4779e R11: ffffb67cc8a47792 R12: ffff8df41c852000 Nov 30 10:57:59 hostname kernel: [389134.227908] R13: ffffb67cc2d01000 R14: 0000000000000000 R15: ffffb67cc2d0114e Nov 30 10:57:59 hostname kernel: [389134.227909] FS: 00007fd5ed6ac540(0000) GS:ffff8df7d6f80000(0000) knlGS:0000000000000000 Nov 30 10:57:59 hostname kernel: [389134.227910] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Nov 30 10:57:59 hostname kernel: [389134.227910] CR2: 0000561a6fc9b0ac CR3: 000000054caf2000 CR4: 00000000003406e0 Nov 30 10:57:59 hostname kernel: [389134.227910] Call Trace: Nov 30 10:57:59 hostname kernel: [389134.227938] rtw_hal_power_on+0x24/0x4a [rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.227964] rtw_halmac_dlfw+0x3d/0xa9 [rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.227990] rtl8821c_fw_dl+0x27/0x42 [rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.228017] rtw_hal_fw_dl+0x19/0x1b [rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.228044] hal_read_mac_hidden_rpt+0x105/0x226 [rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.228070] rtl8821c_read_efuse+0x35f/0x599 [rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.228095] read_adapter_info+0xe/0x15 [rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.228122] rtw_hal_read_chip_info+0x76/0x81 [rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.228149] rtw_pci_primary_adapter_init+0x148/0x36b [rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.228175] rtw_drv_init+0x2bb/0x66e [rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.228176] local_pci_probe+0x47/0xa0 Nov 30 10:57:59 hostname kernel: [389134.228177] pci_device_probe+0x10b/0x1b0 Nov 30 10:57:59 hostname kernel: [389134.228179] really_probe+0xf5/0x440 Nov 30 10:57:59 hostname kernel: [389134.228180] driver_probe_device+0x11b/0x130 Nov 30 10:57:59 hostname kernel: [389134.228181] device_driver_attach+0x58/0x60 Nov 30 10:57:59 hostname kernel: [389134.228182] __driver_attach+0xa3/0x140 Nov 30 10:57:59 hostname kernel: [389134.228182] ? device_driver_attach+0x60/0x60 Nov 30 10:57:59 hostname kernel: [389134.228183] ? device_driver_attach+0x60/0x60 Nov 30 10:57:59 hostname kernel: [389134.228184] bus_for_each_dev+0x74/0xb0 Nov 30 10:57:59 hostname kernel: [389134.228185] ? kmem_cache_alloc_trace+0x208/0x220 Nov 30 10:57:59 hostname kernel: [389134.228186] driver_attach+0x1e/0x20 Nov 30 10:57:59 hostname kernel: [389134.228186] bus_add_driver+0x14a/0x220 Nov 30 10:57:59 hostname kernel: [389134.228187] ? 0xffffffffc1512000 Nov 30 10:57:59 hostname kernel: [389134.228188] driver_register+0x60/0x100 Nov 30 10:57:59 hostname kernel: [389134.228189] ? 0xffffffffc1512000 Nov 30 10:57:59 hostname kernel: [389134.228189] __pci_register_driver+0x5a/0x60 Nov 30 10:57:59 hostname kernel: [389134.228206] rtw_drv_entry+0x4c/0x1000 [rtl8821ce] Nov 30 10:57:59 hostname kernel: [389134.228207] do_one_initcall+0x4a/0x1fa Nov 30 10:57:59 hostname kernel: [389134.228207] ? kfree+0x22b/0x240 Nov 30 10:57:59 hostname kernel: [389134.228209] ? _cond_resched+0x19/0x40 Nov 30 10:57:59 hostname kernel: [389134.228209] ? kmem_cache_alloc_trace+0x208/0x220 Nov 30 10:57:59 hostname kernel: [389134.228211] do_init_module+0x5f/0x226 Nov 30 10:57:59 hostname kernel: [389134.228212] load_module+0x1b46/0x2140 Nov 30 10:57:59 hostname kernel: [389134.228214] __do_sys_finit_module+0xfc/0x120 Nov 30 10:57:59 hostname kernel: [389134.228215] ? __do_sys_finit_module+0xfc/0x120 Nov 30 10:57:59 hostname kernel: [389134.228216] __x64_sys_finit_module+0x1a/0x20 Nov 30 10:57:59 hostname kernel: [389134.228217] do_syscall_64+0x57/0x190 Nov 30 10:57:59 hostname kernel: [389134.228218] entry_SYSCALL_64_after_hwframe+0x44/0xa9 Nov 30 10:57:59 hostname kernel: [389134.228219] RIP: 0033:0x7fd5ed1f8639 Nov 30 10:57:59 hostname kernel: [389134.228220] Code: 00 f3 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 1f f8 2c 00 f7 d8 64 89 01 48 Nov 30 10:57:59 hostname kernel: [389134.228220] RSP: 002b:00007ffc08f88278 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 Nov 30 10:57:59 hostname kernel: [389134.228221] RAX: ffffffffffffffda RBX: 0000559fe4498ff0 RCX: 00007fd5ed1f8639 Nov 30 10:57:59 hostname kernel: [389134.228222] RDX: 0000000000000000 RSI: 0000559fe2ef9cee RDI: 0000000000000003 Nov 30 10:57:59 hostname kernel: [389134.228222] RBP: 0000559fe2ef9cee R08: 0000000000000000 R09: 0000000000000000 Nov 30 10:57:59 hostname kernel: [389134.228222] R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000 Nov 30 10:57:59 hostname kernel: [389134.228223] R13: 0000559fe4498f60 R14: 0000000000040000 R15: 0000559fe4498ff0 Nov 30 10:57:59 hostname kernel: [389134.228224] ---[ end trace 5a9f92a02c23aa3b ]--- ```

The driver crashes at 10:57:50, after running rmmod, then crashes again at 10:57:59. First crash shows "hal/rtl8821c/rtl8821c_halinit.c:122 rtl8821c_power_off+0x62/0x8d [rtl8821ce]" as the last call. Second crash shows "hal/rtl8821c/rtl8821c_halinit.c:93 rtl8821c_power_on+0x4c/0x8f [rtl8821ce]".

BTW @prmsrswt: we have the same hardware. Maybe this is something specific to these ASUS laptops?