Other Parts Discussed in Thread: AM5716, AM62L
Hi,TI
We are currently using the prueth driver's Ethernet port to send TCP or UDP protocol data. However, during communication, plugging or unplugging the Ethernet cable causes the system to crash.
The Linux kernel only responds to break signals. This issue occurs only in SDK version 06.03.00.106; the same hardware and application run without any problems in SDK version 08.02.01.00.
Since SDK version 06.03.00.106 has already been deployed in production, could this issue be fixed in this version instead of requiring an upgrade to a newer SDK version?
Below is the output printed after sending the "w" command following a break signal when the system becomes unresponsive:
[ 222.783511] rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
[ 222.783516] rcu: (detected by 0, t=8407 jiffies, g=51273, q=29372)
[ 222.783526] rcu: All QSes seen, last rcu_preempt kthread activity 8407 (-7722--16129), jiffies_till_next_fqs=1, root ->qsmask 0x0
[ 222.783530] ktimersoftd/0 R running task 0 10 2 0x00001000
[ 222.783538] Backtrace:
[ 222.783555] [<c020d164>] (dump_backtrace) from [<c020d4cc>] (show_stack+0x20/0x24)
[ 222.783561] r7:c0e1f594 r6:00000002 r5:c0e06888 r4:cb524000
[ 222.783573] [<c020d4ac>] (show_stack) from [<c025730c>] (sched_show_task.part.2+0xec/0x108)
[ 222.783581] [<c0257220>] (sched_show_task.part.2) from [<c0252044>] (sched_show_task+0x24/0x28)
[ 222.783586] r6:c0e1f1c4 r5:c0e1f838 r4:c0e1f1c4
[ 222.783596] [<c0252020>] (sched_show_task) from [<c0287a0c>] (rcu_check_callbacks+0x934/0xa88)
[ 222.783607] [<c02870d8>] (rcu_check_callbacks) from [<c028f1b0>] (update_process_times+0x44/0x74)
[ 222.783612] r10:c02a0e04 r9:ffffffff r8:c0e6a520 r7:00000033 r6:00000000 r5:cb524000
[ 222.783614] r4:ffffe000
[ 222.783625] [<c028f16c>] (update_process_times) from [<c02a0af0>] (tick_sched_handle+0x3c/0x78)
[ 222.783629] r7:00000033 r6:deb90dd4 r5:cb529e40 r4:c0e22540
[ 222.783638] [<c02a0ab4>] (tick_sched_handle) from [<c02a0e5c>] (tick_sched_timer+0x58/0xb4)
[ 222.783641] r5:cb529e40 r4:c0e22540
[ 222.783650] [<c02a0e04>] (tick_sched_timer) from [<c0290138>] (__hrtimer_run_queues.constprop.3+0x118/0x410)
[ 222.783654] r7:ffffe000 r6:c0e21800 r5:c0e22540 r4:c0e21850
[ 222.783662] [<c0290020>] (__hrtimer_run_queues.constprop.3) from [<c0290c74>] (hrtimer_interrupt+0x128/0x340)
[ 222.783668] r10:ffffe000 r9:ffffffff r8:7fffffff r7:00000003 r6:20070193 r5:ffffe000
[ 222.783670] r4:c0e21800
[ 222.783679] [<c0290b4c>] (hrtimer_interrupt) from [<c06c748c>] (arch_timer_handler_phys+0x38/0x40)
[ 222.783684] r10:ffffe000 r9:fa213000 r8:cb420000 r7:c0e070a4 r6:00000013 r5:cb4ef200
[ 222.783687] r4:cb41f600
[ 222.783696] [<c06c7454>] (arch_timer_handler_phys) from [<c027994c>] (handle_percpu_devid_irq+0x88/0x244)
[ 222.783705] [<c02798c4>] (handle_percpu_devid_irq) from [<c0273c3c>] (generic_handle_irq+0x34/0x44)
[ 222.783710] r10:ffffe000 r9:fa213000 r8:cb420000 r7:00000000 r6:00000001 r5:00000000
[ 222.783713] r4:c0e65eac r3:c02798c4
[ 222.783720] [<c0273c08>] (generic_handle_irq) from [<c0274544>] (__handle_domain_irq+0x64/0xb8)
[ 222.783727] [<c02744e0>] (__handle_domain_irq) from [<c02021fc>] (gic_handle_irq+0x5c/0x90)
[ 222.783732] r9:fa213000 r8:cb529e40 r7:fa212000 r6:fa21200c r5:c0e43304 r4:c0e070a4
[ 222.783737] [<c02021a0>] (gic_handle_irq) from [<c02019b8>] (__irq_svc+0x58/0xa0)
[ 222.783741] Exception stack(0xcb529e40 to 0xcb529e88)
[ 222.783746] 9e40: ca03f290 00000000 cb524000 00000003 ca03f200 00000000 00000000 ca03f290
[ 222.783751] 9e60: 00000002 00000108 ffffe000 cb529e9c cb529e90 cb529e90 c080de1c c0285528
[ 222.783754] 9e80: 20070013 ffffffff
[ 222.783759] r9:cb528000 r8:00000002 r7:cb529e74 r6:ffffffff r5:20070013 r4:c0285528
[ 222.783772] [<c080ddb4>] (rt_spin_unlock) from [<c0717b34>] (net_tx_action+0x1bc/0x2c8)
[ 222.783782] [<c0717978>] (net_tx_action) from [<c022e438>] (do_current_softirqs+0x1f0/0x3d0)
[ 222.783788] r10:ffffe000 r9:00000108 r8:00000002 r7:00000040 r6:04208140 r5:c0e16378
[ 222.783790] r4:00000008
[ 222.783798] [<c022e248>] (do_current_softirqs) from [<c022e654>] (run_ksoftirqd+0x3c/0x5c)
[ 222.783803] r10:cb503de0 r9:00000000 r8:c0e06888 r7:c0e16024 r6:00000001 r5:ffffe000
[ 222.783805] r4:ffffe000
[ 222.783815] [<c022e618>] (run_ksoftirqd) from [<c024ee50>] (smpboot_thread_fn+0x2c8/0x2f4)
[ 222.783818] r5:ffffe000 r4:cb4eff80
[ 222.783825] [<c024eb88>] (smpboot_thread_fn) from [<c024a54c>] (kthread+0x164/0x16c)
[ 222.783830] r9:c024eb88 r8:cb4eff80 r7:cb528000 r6:00000000 r5:cb50a000 r4:cb50a040
[ 222.783836] [<c024a3e8>] (kthread) from [<c02010b4>] (ret_from_fork+0x14/0x20)
[ 222.783838] Exception stack(0xcb529fb0 to 0xcb529ff8)
[ 222.783842] 9fa0: 00000000 00000000 00000000 00000000
[ 222.783846] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 222.783850] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 222.783855] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c024a3e8
[ 222.783857] r4:cb50a000
[ 222.783864] rcu: rcu_preempt kthread starved for 8407 jiffies! g51273 f0x2 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=0
[ 222.783866] rcu: RCU grace-period kthread stack dump:
[ 222.783868] rcu_preempt R running task 0 11 2 0x00001000
[ 222.783875] Backtrace:
[ 222.783884] [<c0809048>] (__schedule) from [<c0809770>] (schedule+0x70/0x134)
[ 222.783890] r10:c0e206c0 r9:c0e1fa80 r8:00000000 r7:c0e06888 r6:cb52becc r5:ffffe000
[ 222.783892] r4:cb524700
[ 222.783900] [<c0809700>] (schedule) from [<c080ca64>] (schedule_timeout+0x204/0x464)
[ 222.783903] r5:c0e206c0 r4:ffffc100
[ 222.783912] [<c080c860>] (schedule_timeout) from [<c0286450>] (rcu_gp_kthread+0x624/0xcec)
[ 222.783916] r10:c0e69dab r9:c0e1f304 r8:00000001 r7:c0e1fa80 r6:cb52a000 r5:c0e1f1c4
[ 222.783918] r4:00000001
[ 222.783925] [<c0285e2c>] (rcu_gp_kthread) from [<c024a54c>] (kthread+0x164/0x16c)
[ 222.783927] r7:cb52a000
[ 222.783932] [<c024a3e8>] (kthread) from [<c02010b4>] (ret_from_fork+0x14/0x20)
[ 222.783935] Exception stack(0xcb52bfb0 to 0xcb52bff8)
[ 222.783938] bfa0: 00000000 00000000 00000000 00000000
[ 222.783942] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 222.783946] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 222.783951] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c024a3e8
[ 222.783953] r4:cb50a000
[ 224.665707] sysrq: SysRq : Show Blocked State
[ 225.190516] task PC stack pid father