lwfinger / rtl8188eu

Repository for stand-alone RTL8188EU driver.
Other
1.69k stars 600 forks source link

Kernel Panic / Freeze on 32Bit ARM Linux 5.10.50 #437

Open DK999 opened 1 year ago

DK999 commented 1 year ago

Hi and first, thank you for the work of keeping this driver maintained! :) I've a nasty problem causing a freeze and posting the following message infinitely (master branch).

kernel: R8188EU: Firmware Version 11, SubVersion 1, Signature 0x88e1
...
kernel: softirq: huh, entered softirq 6 TASKLET 5afc36db with preempt_count 00000101, exited with ffffff00?
kernel[429]: [49113.544511] softirq: huh, entered softirq 6 TASKLET 5afc36db with preempt_count 00000101, exited with fffff
kernel: rcu: INFO: rcu_preempt self-detected stall on CPU
kernel: rcu:    1-....: (1 GPs behind) idle=736/1/0x40000002 softirq=11597400/11597401 fqs=2623 
kernel:     (t=5250 jiffies g=19108037 q=2142)
kernel: NMI backtrace for cpu 1
kernel: CPU: 1 PID: 581 Comm: RTW_CMD_THREAD Tainted: G           O      5.10.50 #1
kernel: Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
kernel: Backtrace: 
kernel: [<c010ca78>] (dump_backtrace) from [<c010cdc4>] (show_stack+0x20/0x24)
kernel:  r7:00000001 r6:600f0193 r5:00000000 r4:c112f378
kernel: [<c010cda4>] (show_stack) from [<c09fade4>] (dump_stack+0xa4/0xb8)
kernel: [<c09fad40>] (dump_stack) from [<c0556108>] (nmi_cpu_backtrace+0xdc/0xf4)
kernel:  r7:00000001 r6:c010e8ec r5:00000000 r4:00000001
kernel: [<c055602c>] (nmi_cpu_backtrace) from [<c0556288>] (nmi_trigger_cpumask_backtrace+0x168/0x1b4)
kernel:  r5:c100575c r4:ffffe000
kernel: [<c0556120>] (nmi_trigger_cpumask_backtrace) from [<c010fb44>] (arch_trigger_cpumask_backtrace+0x20/0x24)
kernel:  r9:c0d42234 r8:c0b023f8 r7:c10d9800 r6:c1004fd8 r5:c1005078 r4:00000001
kernel: [<c010fb24>] (arch_trigger_cpumask_backtrace) from [<c09ebab8>] (rcu_dump_cpu_stacks+0x114/0x14c)
kernel: [<c09eb9a4>] (rcu_dump_cpu_stacks) from [<c019f7dc>] (rcu_sched_clock_irq+0xa5c/0xf54)
kernel:  r10:c0fed9c0 r9:c1003d00 r8:c0fed9c0 r7:c1004f88 r6:eefad9c0 r5:c1181d40
kernel:  r4:c10d9800
kernel: [<c019ed80>] (rcu_sched_clock_irq) from [<c01aac14>] (update_process_times+0x70/0x94)
kernel:  r10:c01bef38 r9:eefa6940 r8:eefa6900 r7:00002cb0 r6:61003b11 r5:00000000
kernel:  r4:ffffe000
kernel: [<c01aaba4>] (update_process_times) from [<c01bed38>] (tick_sched_handle+0x64/0x68)
kernel:  r7:00002cb0 r6:91cd12c2 r5:c30f1e68 r4:eefa6c50
kernel: [<c01becd4>] (tick_sched_handle) from [<c01bef94>] (tick_sched_timer+0x5c/0xb8)
kernel: [<c01bef38>] (tick_sched_timer) from [<c01abd3c>] (__hrtimer_run_queues+0x1ac/0x428)
kernel:  r7:c1181e60 r6:c1181e40 r5:eefa6900 r4:eefa6c50
kernel: [<c01abb90>] (__hrtimer_run_queues) from [<c01acb6c>] (hrtimer_interrupt+0x100/0x29c)
kernel:  r10:eefa6a30 r9:eefa6a80 r8:ffffffff r7:7fffffff r6:00000003 r5:200f0193
kernel:  r4:eefa6900
kernel: [<c01aca6c>] (hrtimer_interrupt) from [<c01104a0>] (twd_handler+0x40/0x50)
kernel:  r10:bf2b42dc r9:c0febf40 r8:c203c000 r7:00000018 r6:c20d7180 r5:c1005774
kernel:  r4:00000001
kernel: [<c0110460>] (twd_handler) from [<c018ce5c>] (handle_percpu_devid_irq+0x9c/0x2a4)
kernel:  r5:c1005774 r4:c203a200
kernel: [<c018cdc0>] (handle_percpu_devid_irq) from [<c0186008>] (generic_handle_irq+0x44/0x54)
kernel:  r9:c0febf40 r8:c203c000 r7:00000001 r6:00000000 r5:00000000 r4:c0febf34
kernel: [<c0185fc4>] (generic_handle_irq) from [<c01866e8>] (__handle_domain_irq+0x6c/0xc4)
kernel: [<c018667c>] (__handle_domain_irq) from [<c010139c>] (gic_handle_irq+0x90/0xa4)
kernel:  r9:c0febf40 r8:c30f1e68 r7:f400010c r6:f4000100 r5:c112f438 r4:c1005774
kernel: [<c010130c>] (gic_handle_irq) from [<c0100b0c>] (__irq_svc+0x6c/0xa8)
kernel: Exception stack(0xc30f1e68 to 0xc30f1eb0)
kernel: 1e60:                   f0cd504c 00000000 000099c2 000099c3 f0cd5000 00000001
kernel: 1e80: f0cd66a4 f0d8c6dc 0000000c bf2cfa40 bf2b42dc c30f1ec4 c30f1ec8 c30f1eb8
kernel: 1ea0: bf246a50 c0a063d4 200f0013 ffffffff
kernel:  r9:c30f0000 r8:0000000c r7:c30f1e9c r6:ffffffff r5:200f0013 r4:c0a063d4
kernel: [<c0a06378>] (_raw_spin_lock_bh) from [<bf246a50>] (rtw_free_assoc_resources+0x198/0x1f8 [8188eu])
kernel: [<bf2468b8>] (rtw_free_assoc_resources [8188eu]) from [<bf249980>] (rtw_stadel_event_callback+0x144/0x310 [8188eu])
kernel:  r7:f0d8c6dc r6:c2a2c208 r5:f0cd5020 r4:f0cd5000
kernel: [<bf24983c>] (rtw_stadel_event_callback [8188eu]) from [<bf25700c>] (mlme_evt_hdl+0x11c/0x130 [8188eu])
kernel:  r7:f0cd5000 r6:0000000c r5:c2a2c200 r4:bf2af9ac
kernel: [<bf256ef0>] (mlme_evt_hdl [8188eu]) from [<bf2358a4>] (rtw_cmd_thread+0x25c/0x348 [8188eu])
kernel:  r9:bf2cfa40 r8:bf2b42e8 r7:f0cd6310 r6:f0cd6310 r5:f0cd5000 r4:c6417300
kernel: [<bf235648>] (rtw_cmd_thread [8188eu]) from [<c014a64c>] (kthread+0x1b4/0x1b8)
kernel:  r10:c2ff77fc r9:00000000 r8:f0cd5000 r7:bf235648 r6:c35e6f80 r5:c30f0000
kernel:  r4:c33f8cc0
kernel: [<c014a498>] (kthread) from [<c0100148>] (ret_from_fork+0x14/0x2c)
kernel: Exception stack(0xc30f1fb0 to 0xc30f1ff8)
kernel: 1fa0:                                     00000000 00000000 00000000 00000000
kernel: 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
kernel: 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
kernel:  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c014a498
kernel:  r4:c35e6f80

Blocking Linux module via modprobe.d echo "blacklist r8188eu" >> ${D}/etc/modprobe.d/50-8188eu.conf (from Yocto recipe). Current devconf

CONFIG_USB_RTL8150=m
CONFIG_USB_RTL8152=m
CONFIG_RTL8187=m
CONFIG_RTL_CARDS=m
CONFIG_RTL8192CU=m
CONFIG_RTLWIFI=m
CONFIG_RTLWIFI_USB=m
CONFIG_RTLWIFI_DEBUG=y
CONFIG_RTL8192C_COMMON=m
CONFIG_RTL8XXXU=m
# CONFIG_RTL8XXXU_UNTESTED is not set
# CONFIG_SERIAL_UARTLITE is not set
# CONFIG_RTLLIB is not set
# CONFIG_RTL8723BS is not set