Open onprem opened 4 years ago
Happens in my system too. In my case, it crashes on unload, and then crashes on load again.
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?
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