UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor baruchlerer
Visitor
336 Views
Registered: ‎05-10-2018

macb kernel driver bug at 10 mbps speed cause system to fail petalinux 2018.3 for zcu102 and custom board

Hello there:

When changing eth0 interface to 10 half or sometimes 10 full, the kernel prints:

[  185.785014] macb ff0e0000.ethernet eth0: BUG: halt tx timed out

This reproduce by changing the speed of connected switch or the interface itself.

seems that when network traffic presented  problem reproduced rapidly.

from zcu102 petalinux 2018.3 print :

[  185.785014] macb ff0e0000.ethernet eth0: BUG: halt tx timed out

from custom board petalinux 2018.1 print:

[  101.239800] macb ff0c0000.ethernet eth0: BUG: halt tx timed out

usually afterwords there is all sorts of kernel prints and system not responding any more even not to serial port.

probably due to irq masking.

it happen in evaluation board zcu102 and also on custom board.

it happens with petalinux 2018.3 and petalinux 2018.1.

Please advice how to avoid system lockout.

 

for instence print from serial port when lockout happens in our custom board:

 

PetaLinux 2018.1 xvchevc_C0D834000035 /dev/ttyPS0

xvchevc_C0D834000035 login: root
Password:
root@xvchevc_C0D834000035:~# ifconfig
eth0 Link encap:Ethernet HWaddr C0:D8:34:00:00:35
inet addr:192.168.7.7 Bcast:192.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::c2d8:34ff:fe00:35%4911272/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13989 errors:0 dropped:2433 overruns:0 frame:0
TX packets:7477 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1222547 (1.1 MiB) TX bytes:1003580 (980.0 KiB)
Interrupt:30

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1%4911272/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1972 (1.9 KiB) TX bytes:1972 (1.9 KiB)

root@xvchevc_C0D834000035:~#
ToggleHpd due to HdmiRx.State in DOWN for a long time
No sink device detected.
Connect a sink device to activate pass-through.

ToggleHpd due to HdmiRx.State in DOWN for a long time
No sink device detected.
Connect a sink device to activate pass-through.
[ 1238.840163] macb ff0c0000.ethernet eth0: link down

root@xvchevc_C0D834000035:~#
root@xvchevc_C0D834000035:~# [ 1241.912579] macb ff0c0000.ethernet eth0: link up (10/Half)

ToggleHpd due to HdmiRx.State in DOWN for a long time
No sink device detected.
Connect a sink device to activate pass-throu[ 1243.448386] cdns-i2c ff020000.i2c: timeout waiting on completion
gh.
[ 1244.472476] cdns-i2c ff020000.i2c: timeout waiting on completion
[ 1244.478411] leds pca963x:green03: Setting an LED's brightness failed (-110)

ToggleHpd due to HdmiRx.State in DOWN for a long time
No sink device detected.
Connect a sink device to activate pass-through.

ToggleHpd due to HdmiRx.State in DOWN for a long time
No sink device detected.
Connect a sink device to activate pass-through.
[ 1263.150176] INFO: rcu_sched detected stalls on CPUs/tasks:
[ 1263.155586] (detected by 2, t=5253 jiffies, g=39893, c=39892, q=3614)
[ 1263.162094] All QSes seen, last rcu_sched kthread activity 5252 (4295208055-4295202803), jiffies_till_next_fqs=1, roo
t ->qsmask 0x0
[ 1263.173902] swapper/2 R running task 0 0 1 0x00000000
[ 1263.180929] Call trace:
[ 1263.183365] [<ffffff8008088ae8>] dump_backtrace+0x0/0x360
[ 1263.188744] [<ffffff8008088e5c>] show_stack+0x14/0x20
[ 1263.193779] [<ffffff80080c2cbc>] sched_show_task+0x13c/0x168
[ 1263.199422] [<ffffff80080ed354>] rcu_check_callbacks+0x784/0x788
[ 1263.205412] [<ffffff80080f14b4>] update_process_times+0x2c/0x58
[ 1263.211315] [<ffffff8008100518>] tick_sched_handle.isra.5+0x30/0x50
[ 1263.217565] [<ffffff8008100578>] tick_sched_timer+0x40/0x90
[ 1263.223119] [<ffffff80080f203c>] __hrtimer_run_queues+0xec/0x168
[ 1263.229109] [<ffffff80080f22b8>] hrtimer_interrupt+0xa0/0x228
[ 1263.234840] [<ffffff8008734518>] arch_timer_handler_phys+0x28/0x40
[ 1263.241004] [<ffffff80080e1f98>] handle_percpu_devid_irq+0x80/0x138
[ 1263.247253] [<ffffff80080db934>] generic_handle_irq+0x24/0x38
[ 1263.252981] [<ffffff80080dbfcc>] __handle_domain_irq+0x5c/0xb0
[ 1263.258797] [<ffffff80080814e4>] gic_handle_irq+0x64/0xc0
[ 1263.264178] Exception stack(0xffffff800906bdd0 to 0xffffff800906bf10)
[ 1263.270603] bdc0: 0000000000000000 ffffffc07fe86e80
[ 1263.278418] bde0: 0000004077133000 00000000000163b3 0000000000000015 00ffffffffffffff
[ 1263.286231] be00: 000000002163875f 0000000000000f9a ffffffc07fe85e84 0000000000000f97
[ 1263.294044] be20: ffffffc07fe85e64 0000000000000f98 0000000000000000 0000000000000f9c
[ 1263.301857] be40: 071c71c71c71c71c ffffff8008d68000 ffffff80080f2698 0000007fa65c0298
[ 1263.309669] be60: ffffffc07fe86ee0 00000126199dfef3 0000000000000000 ffffffc078fc9000
[ 1263.317482] be80: 0000000000000000 ffffffc079028400 000001261961090d ffffffc079028400
[ 1263.325295] bea0: ffffffc0798aa300 0000000000000000 0000000000000000 ffffff800906bf10
[ 1263.333108] bec0: ffffff800870f054 ffffff800906bf10 ffffff800870f058 0000000060000145
[ 1263.340920] bee0: ffffffc079028400 0000000000000000 ffffffffffffffff 0000000000000000
[ 1263.348732] bf00: ffffff800906bf10 ffffff800870f058
[ 1263.353592] [<ffffff80080830f0>] el1_irq+0xb0/0x140
[ 1263.358455] [<ffffff800870f058>] cpuidle_enter_state+0x158/0x1f8
[ 1263.364445] [<ffffff800870f130>] cpuidle_enter+0x18/0x20
[ 1263.369740] [<ffffff80080d095c>] call_cpuidle+0x1c/0x38
[ 1263.374947] [<ffffff80080d0ba0>] do_idle+0x1a0/0x1d8
[ 1263.379895] [<ffffff80080d0d48>] cpu_startup_entry+0x20/0x28
[ 1263.385539] [<ffffff800808e8e0>] secondary_start_kernel+0x148/0x188
[ 1263.391791] rcu_sched kthread starved for 5310 jiffies! g39893 c39892 f0x2 RCU_GP_WAIT_FQS(3) ->state=0x200 ->cpu=0
[ 1263.402207] rcu_sched R 0 8 2 0x00000000
[ 1263.407672] Call trace:
[ 1263.410104] [<ffffff8008085800>] __switch_to+0x98/0xb0
[ 1263.415229] [<ffffff80089f5f40>] __schedule+0x1b0/0x5a0
[ 1263.420435] [<ffffff80089f6354>] schedule+0x24/0x80
[ 1263.425296] [<ffffff80089f9564>] schedule_timeout+0x144/0x260
[ 1263.431027] [<ffffff80080ec52c>] rcu_gp_kthread+0x4ac/0x748
[ 1263.436582] [<ffffff80080b9024>] kthread+0x12c/0x130
[ 1263.441530] [<ffffff8008084a60>] ret_from_fork+0x10/0x18

 

 

Thanks

Baruch

 

 

 

Tags (1)
0 Kudos