lwfinger / rtl8723au

Repo for RTL8723AU code before Linux Kernel commit
126 stars 46 forks source link

Driver crash after system wakeup when suspended #51

Closed hanez closed 10 years ago

hanez commented 10 years ago

After a lot of testing I found an error in the upstream module for the rtl8723au device. The code from this repo is working fine...

The following error occurs when using the upstream module from Linux kernel 3.15.5 running an up to date Arch distribution. I know, that this message does not show a trace to the r8723au module but when using the code from this repository I can not reproduce this error. The error is reproducable by suspending the system and wakening it up again. On my system it always happens. After this error, it is not possible to connect to any wireless network anymore. When unloading the module and modprobing it, it mostly works fine again.

[17258.696560] ------------[ cut here ]------------
[17258.696578] WARNING: CPU: 0 PID: 12808 at net/wireless/sme.c:654 __cfg80211_connect_result+0x421/0x480 [cfg80211]()
[17258.696580] Modules linked in: r8723au(C) fuse uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core videodev cfg80211 media rts5139(C) joydev mousedev iTCO_wdt iTCO_vendor_support coretemp hwmon intel_rapl x86_pkg_temp_thermal intel_powerclamp kvm_intel kvm i915 microcode snd_hda_codec_hdmi evdev mac_hid snd_hda_codec_conexant psmouse snd_hda_codec_generic serio_raw lpc_ich i2c_i801 drm_kms_helper snd_hda_intel thermal snd_hda_controller ideapad_laptop drm sparse_keymap rfkill wmi snd_hda_codec battery snd_hwdep snd_pcm intel_gtt snd_timer i2c_algo_bit snd i2c_core soundcore mei_me video mei ac button processor pci_stub vboxpci(O) vboxnetflt(O) vboxnetadp(O) vboxdrv(O) ext4 crc16 mbcache jbd2 algif_skcipher af_alg hid_sensor_hub hid_multitouch hid_generic usbhid hid dm_crypt dm_mod sd_mod crc_t10dif
[17258.696657]  atkbd libps2 crct10dif_pclmul crct10dif_common crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd ahci libahci ehci_pci libata xhci_hcd ehci_hcd scsi_mod usbcore usb_common i8042 serio [last unloaded: 8723au]
[17258.696704] CPU: 0 PID: 12808 Comm: kworker/u16:108 Tainted: G        WC O  3.15.5-2-ARCH #1
[17258.696707] Hardware name: LENOVO 20246/Yoga2, BIOS 77CN16WW 03/12/2013
[17258.696714] Workqueue: cfg80211 cfg80211_event_work [cfg80211]
[17258.696717]  0000000000000000 0000000042104844 ffff8801a5eebca0 ffffffff815081fe
[17258.696722]  0000000000000000 ffff8801a5eebcd8 ffffffff81069b1d ffff88017ca9fc00
[17258.696726]  0000000000000000 0000000000000000 ffff880209f70000 ffff88009f869818
[17258.696730] Call Trace:
[17258.696752]  [<ffffffff815081fe>] dump_stack+0x4d/0x6f
[17258.696757]  [<ffffffff81069b1d>] warn_slowpath_common+0x7d/0xa0
[17258.696761]  [<ffffffff81069c4a>] warn_slowpath_null+0x1a/0x20
[17258.696769]  [<ffffffffa0a9cad1>] __cfg80211_connect_result+0x421/0x480 [cfg80211]
[17258.696778]  [<ffffffffa0a76c0c>] cfg80211_process_wdev_events+0x18c/0x1c0 [cfg80211]
[17258.696787]  [<ffffffffa0a76c78>] cfg80211_process_rdev_events+0x38/0x70 [cfg80211]
[17258.696812]  [<ffffffffa0a7210e>] cfg80211_event_work+0x1e/0x30 [cfg80211]
[17258.696818]  [<ffffffff810861d8>] process_one_work+0x168/0x450
[17258.696822]  [<ffffffff81086c32>] worker_thread+0x132/0x3e0
[17258.696827]  [<ffffffff81086b00>] ? manage_workers.isra.23+0x2d0/0x2d0
[17258.696832]  [<ffffffff8108d43a>] kthread+0xea/0x100
[17258.696837]  [<ffffffff8108d350>] ? kthread_create_on_node+0x1b0/0x1b0
[17258.696843]  [<ffffffff81515efc>] ret_from_fork+0x7c/0xb0
[17258.696847]  [<ffffffff8108d350>] ? kthread_create_on_node+0x1b0/0x1b0
[17258.696850] ---[ end trace c135fc6de847e4b1 ]---

I have tried a lot of stuff like disabling other hardware, unloading everything not needed etc., but the only case this error occurs is when using the r8723au module from upstream.

Hopefully this report is helpful. If you need more information, please let me know.

hanez commented 10 years ago

Okay, I updated my Kernel to 3.15.8 today and I can not reproduce this error anymore. I am closing this issue and will maybe open it again if something like this fails again. Btw, thank You very much for providing this driver!