02-05-2020 12:37 AM
Hi,
I'm using the 10G ethernet subsystem, but the axienet driver crashes during petalinux boot. I can read correctly the registers of the IP and the version register is correct.
Configuring network interfaces... [ 8.723500] xilinx_axienet a0090000.ethernet eth0: __axienet_device_reset: DMA reset timeout! [ 8.733509] xilinx_axienet a0090000.ethernet eth0: __axienet_device_reset: DMA reset timeout! [ 8.742954] Internal error: synchronous external abort: 96000210 [#1] SMP [ 8.749729] Modules linked in: al5e(O) al5d(O) allegro(O) xlnx_vcu_clk xlnx_vcu xilinx_hdmi_rx(O) video(O) xilinx_vphy(O) xlnx_vcu_core mali(O) uio_pdrv_genirq [ 8.763994] CPU: 3 PID: 2549 Comm: ip Tainted: G O 4.19.0-xilinx-v2019.1 #1 [ 8.772246] Hardware name: ZynqMP ZCU106 RevA (DT) [ 8.777022] pstate: 60000005 (nZCv daif -PAN -UAO) [ 8.781802] pc : axienet_device_reset+0x22c/0x2e0 [ 8.786493] lr : axienet_device_reset+0x21c/0x2e0 [ 8.791179] sp : ffffff80110bb210 [ 8.794477] x29: ffffff80110bb210 x28: ffffffc87a5b4600 [ 8.799781] x27: ffffff80110bb830 x26: ffffff80110bbaf0 [ 8.805077] x25: ffffff8008be0858 x24: 0000000000000000 [ 8.810372] x23: 0000000000000002 x22: ffffffc87a483048 [ 8.815667] x21: 00000002061e557f x20: ffffffc87a483000 [ 8.820963] x19: ffffffc87a4837c0 x18: 0000000000000400 [ 8.826258] x17: 0000000000000000 x16: 0000000000000000 [ 8.831553] x15: 0000000000000400 x14: ffffffc879dc5a00 [ 8.836849] x13: ffffffc879dc5900 x12: ffffffc879dc2000 [ 8.842144] x11: 0000000000000003 x10: ffffffc87ff37000 [ 8.847439] x9 : 0000000000000080 x8 : ffffffc87ff371f8 [ 8.852735] x7 : ffffffc87fef7000 x6 : 0000000075198c61 [ 8.858030] x5 : 00ffffffffffffff x4 : 002f71febe162cc8 [ 8.863325] x3 : 0000000000000018 x2 : 000000000a00417d [ 8.868621] x1 : 0000000000000e1c x0 : ffffff800b6b040c [ 8.873918] Process ip (pid: 2549, stack limit = 0x(____ptrval____)) [ 8.880253] Call trace: [ 8.882686] axienet_device_reset+0x22c/0x2e0 [ 8.887026] axienet_open+0x2ec/0x598 [ 8.890674] __dev_open+0xd4/0x150 [ 8.894066] __dev_change_flags+0x154/0x1b8 [ 8.898233] dev_change_flags+0x20/0x60 [ 8.902054] do_setlink+0x288/0xb90 [ 8.905534] rtnl_newlink+0x3d8/0x6b0 [ 8.909179] rtnetlink_rcv_msg+0x218/0x300 [ 8.913261] netlink_rcv_skb+0x58/0x118 [ 8.917088] rtnetlink_rcv+0x14/0x20 [ 8.920647] netlink_unicast+0x1c4/0x258 [ 8.924554] netlink_sendmsg+0x164/0x338 [ 8.928460] sock_sendmsg+0x18/0x30 [ 8.931932] ___sys_sendmsg+0x268/0x2a0 [ 8.935751] __sys_sendmsg+0x68/0xb8 [ 8.939310] __arm64_sys_sendmsg+0x20/0x28 [ 8.943392] el0_svc_common+0x84/0xd8 [ 8.947045] el0_svc_handler+0x68/0x80 [ 8.950778] el0_svc+0x8/0xc [ 8.953645] Code: 9143d015 910902b5 f9401260 91103000 (b9400000) [ 8.959729] ---[ end trace cd68ccec5853f132 ]---
Andrea
02-06-2020 12:40 AM
I have not yet been able to solve the error, but there is one thing that does not convince me in the 10G / 25G device-tree automatically generated by petalinux. In vivado I set
GT Selection to X0Y2
but in the device tree I get
xlnx,gt-group-select = "Quad X0Y0";
02-06-2020 12:57 AM
Hi andrea@ross
Would you make sure clock and reset tree in your design ?
Also, would you make sure device tree for clock and reset on xilinx_axienet, too ?
Best regards,
02-06-2020 03:05 AM
Hi @watari
I checked the clock and reset tree in the design and they're correct (validation also passes). Inside the ethernet verilog file I found that the C_GT_GROUP_SELECT is set to "Quad X0Y0" even if I put Quad X0Y2 in the "Re-customize IP"