This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Ethernet conflict in ARM Core and DSP Core (66AK2HK14)

Other Parts Discussed in Thread: 66AK2H14

Hi,

We have designed a PCB with 66AK2HK14 and also have Ethernet switch connected to 66AK2H14.

Ethernet switch is configured in u-boot and ported kernel 4.4.12 (from latest SDK) in arm core which has NETCP support enabled.

But our kernel get crashed, when we tried to run hello world project in dsp core 0 through mpmcl utility.

Our application need Ethernet support in ARM core as well as in DSP core.

Please suggest how to initialize the Ethernet in both arm and dsp,



Attached kernel crash log

crash.txt
IP Address:

[  OK  ] Started parse-ip.service.
         Starting gplv3-notice.service...
[  OK  ] Started gplv3-notice.service.


 _____                    _____           _         _   
|  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
|     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
|__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
              |___|                    |___|            

Arago Project http://arago-project.org k2hk-evm ttyS0

Arago 2016.05 k2hk-evm ttyS0

k2hk-evm login: root

78root@k2hk-evm:~# cd /
root@k2hk-evm:/#  
root@k2hk-evm:/# 
root@k2hk-evm:/# ls
0246.mpmsrv_keystone2_example.out  5.Read.out                         dev                                lib                                sbin                               www
1.i2c_probe.out                    ARM-ATP.out                        etc                                media                              srv
1.init_enable.out                  PCIE_K2HC66BiosExampleProject.out  helloWorld_evmk2h.out              mnt                                sys
2.Write.out                        bin                                home                               opt                                tmp
3.App.out                          boot                               include                            proc                               usr
3.init_enable.out                  boot.ubifs                         ipaddr                             run                                var
root@k2hk-evm:/#  
root@k2hk-evm:/# 
root@k2hk-evm:/# 
root@k2hk-evm:/# mpm
mpmcl   mpmsrv  
root@k2hk-evm:/# mpm
mpmcl   mpmsrv  
root@k2hk-evm:/# mpmcl load dsp[   31.815905] keystone-rapidio 2900000.rapidio: RIO port register timeout, port mask 0x1 not ready
0 helloWorld_evmk2h.out 
load succeeded
root@k2hk-evm:/# mpmcl load dsp0 helloWorld_evmk2h.out                                 run dsp0
[   43.463190]  remoteproc0: powering up 10800000.dsp0
[   43.468124]  remoteproc0: Booting unspecified pre-loaded fw image
[   43.475693]  remoteproIc0: remoten processor 10800000.dsp0 is now up
it_SGMII (macPortNum - 0)
Init_SGMII (macPortNum - 0) Done
Init_SGMII (macPortNum - 1)
Init_SGMII (macPortNum - 1) Done
Uart successfully initialized 
QMSS successfully initialized 
CPPI successfully initialized 

TCP/IP Stack 'Hello World!' Application


TCP/IP Stack 'Hello World!' Application

PASS successfully initialized run succeeded

Ethernet subsystem successfully initialized 
Ethernet eventId : 48 and vectId (Interrupt) : 7 
Verify_Init: Expected 0 entry count for Queue number = 4000, found 256 entries
Verify_Init: Expected 0 entry count for Queue number = 4001, found 96 entries
Verify_Init: Expected 0 entry count for Queue number = 4002, found 128 entries
Verify_Init: Expected 0 entry count for Queue number = 4003, found 32 entries
Verify_Init: Expected 0 entry count for Queue number = 4004, found 768 entries
Verify_Init: Expected 0 entry count for Queue number = 4005, found 1024 entries
root@k2hk-evm:/#V erify_Init: Expected 0 entry count for Queue number = 4006, found 64 entries
Verify_Init: Expected 0 entry count for Queue number = 4007, found 64 entries
Verify_Init: Expected 0 entry count for Queue number = 4008, found 64 entries
Verify_Init: Expected 0 entry count for Queue number = 4009, found 64 entries
Verify_Init: Expected 0 entry count for Queue number = 4010, found 64 entries
Verify_Init: Expected 0 entry count for Queue number = 4011, found 64 entries
Verify_Init: Expected 0 entry count for Queue number = 4012, found 128 entries
Verify_Init: Expected 0 entry count for Queue number = 4013, found 128 entries
Verify_Init: Expected 0 entry count for Queue number = 4014, found 192 entries
Verify_Init: Expected 0 entry count for Queue number = 4015, found 512 entries
Verify_Init: Expected 0 entry count for Queue number = 4016, found 256 entries
Verify_Init: Expected 0 entry count for Queue number = 4017, found 64 entries
Registration of the EMAC Successful, waiting for link up ..
[   45.269077] net eth0: out of TX desc
[   53.055875] ------------[ cut here ]------------
[   53.060520] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:306 dev_watchdog+0x26c/0x278()
[   53.069005] NETDEV WATCHDOG: eth0 (netcp-1.0): transmit queue 0 timed out
[   53.075815] Modules linked in: dwc3 udc_core extcon keystone_dsp_mem dwc3_keystone davinci_wdt keystone_sa_driver rng_core authenc aes_arm keystone_remoteproc uio sch_fq_codel rpmsg_proto virtio_rpmsg_bus remoteproc virtio virtio_ring
[   53.096800] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.4.12-g3639bea54a #40
[   53.103871] Hardware name: Keystone
[   53.107367] Backtrace: 
[   53.109832] [<c001303c>] (dump_backtrace) from [<c0013238>] (show_stack+0x18/0x1c)
[   53.117427]  r7:c05ce964 r6:200f0113 r5:00000000 r4:c096ea8c
[   53.123130] [<c0013220>] (show_stack) from [<c0295124>] (dump_stack+0x90/0xa4)
[   53.130384] [<c0295094>] (dump_stack) from [<c00241a0>] (warn_slowpath_common+0x88/0xb8)
[   53.138502]  r7:c05ce964 r6:00000132 r5:00000009 r4:c095bd58
[   53.144200] [<c0024118>] (warn_slowpath_common) from [<c0024208>] (warn_slowpath_fmt+0x38/0x40)
[   53.152928]  r8:de710000 r7:00000007 r6:c095c100 r5:de25b000 r4:c08c260c
[   53.159675] [<c00241d4>] (warn_slowpath_fmt) from [<c05ce964>] (dev_watchdog+0x26c/0x278)
[   53.167879]  r3:de25b000 r2:c08c260c
[   53.171469]  r4:00000000
[   53.174015] [<c05ce6f8>] (dev_watchdog) from [<c0077e58>] (call_timer_fn+0x30/0x9c)
[   53.181696]  r10:c05ce6f8 r9:de25b000 r8:dea133a0 r7:c05ce6f8 r6:00000101 r5:dea13380
[   53.189574]  r4:ffffe000
[   53.192117] [<c0077e28>] (call_timer_fn) from [<c0078054>] (run_timer_softirq+0x190/0x208)
[   53.200407]  r7:00000200 r6:00000000 r5:dea13380 r4:de25b264
[   53.206104] [<c0077ec4>] (run_timer_softirq) from [<c0027c00>] (__do_softirq+0x11c/0x234)
[   53.214308]  r10:40000001 r9:00000001 r8:c095c080 r7:00000101 r6:c095a000 r5:c095c084
[   53.222186]  r4:000000a0
[   53.224729] [<c0027ae4>] (__do_softirq) from [<c002800c>] (irq_exit+0xbc/0x11c)
[   53.232061]  r10:c095c4f8 r9:c06baa74 r8:de008000 r7:00000000 r6:00000000 r5:00000012
[   53.239938]  r4:ffffe000
[   53.242483] [<c0027f50>] (irq_exit) from [<c0067f48>] (__handle_domain_irq+0x68/0xbc)
[   53.250338]  r5:00000012 r4:c09553d4
[   53.253932] [<c0067ee0>] (__handle_domain_irq) from [<c00093f4>] (gic_handle_irq+0x40/0x7c)
[   53.262310]  r9:c06baa74 r8:f0805000 r7:f0804000 r6:c095bef0 r5:f080400c r4:c095c8a4
[   53.270103] [<c00093b4>] (gic_handle_irq) from [<c0013d80>] (__irq_svc+0x40/0x74)
[   53.277610] Exception stack(0xc095bef0 to 0xc095bf38)
[   53.282677] bee0:                                     00000001 00000000 00000000 c001fd20
[   53.290883] bf00: c095a000 c095c4ac 00000000 00000000 c095bf60 c06baa74 c095c4f8 c095bf4c
[   53.299089] bf20: c095bf50 c095bf40 c00104d4 c00104d8 600f0013 ffffffff
[   53.305723]  r9:c06baa74 r8:c095bf60 r7:c095bf24 r6:ffffffff r5:600f0013 r4:c00104d8
[   53.313523] [<c0010498>] (arch_cpu_idle) from [<c005e2f8>] (default_idle_call+0x28/0x34)
[   53.321646] [<c005e2d0>] (default_idle_call) from [<c005e55c>] (cpu_startup_entry+0x204/0x264)
[   53.330294] [<c005e358>] (cpu_startup_entry) from [<c06b1fc8>] (rest_init+0x90/0x94)
[   53.338062]  r7:00000000
[   53.340610] [<c06b1f38>] (rest_init) from [<c090dd88>] (start_kernel+0x400/0x40c)
[   53.348116]  r5:00000001 r4:c099c040
[   53.351709] [<c090d988>] (start_kernel) from [<80008090>] (0x80008090)
[   53.358272] ---[ end trace 701721bccd98932a ]---
[   53.362904] net eth0: transmit timed out
[   53.366882] Unable to handle kernel paging request at virtual address 50852c8c
[   53.374128] pgd = c0003000
[   53.376854] [50852c8c] *pgd=80000800005003, *pmd=00000000
[   53.382283] Internal error: Oops: a06 [#1] PREEMPT SMP ARM
[   53.387784] Modules linked in: dwc3 udc_core extcon keystone_dsp_mem dwc3_keystone davinci_wdt keystone_sa_driver rng_core authenc aes_arm keystone_remoteproc uio sch_fq_codel rpmsg_proto virtio_rpmsg_bus remoteproc virtio virtio_ring
[   53.408724] CPU: 0 PID: 3 Comm: ksoftirqd/0 Tainted: G        W       4.4.12-g3639bea54a #40
[   53.417189] Hardware name: Keystone
[   53.420686] task: de068a00 ti: de07c000 task.ti: de07c000
[   53.426106] PC is at netcp_ndo_start_xmit+0x13c/0x830
[   53.431177] LR is at knav_pool_desc_get+0x20/0x44
[   53.435895] pc : [<c043c118>]    lr : [<c030dbdc>]    psr: 000f0013
[   53.435895] sp : de07dd38  ip : de07dd1c  fp : de07ddd4
[   53.447414] r10: c001a9a0  r9 : de25b000  r8 : 0000003c
[   53.452653] r7 : dd036000  r6 : 00000000  r5 : de25b000  r4 : de196210
[   53.459201] r3 : 9d1ba002  r2 : 50852c80  r1 : 00000000  r0 : 50852c80
[   53.465749] Flags: nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
[   53.473082] Control: 30c5387d  Table: 1d500600  DAC: fffffffd
[   53.478846] Process ksoftirqd/0 (pid: 3, stack limit = 0xde07c218)
[   53.485045] Stack: (0xde07dd38 to 0xde07e000)
[   53.489413] dd20:                                                       00000001 00000000
[   53.497619] dd40: 00000000 00000000 00000000 00000000 de25b4c0 00000000 00000000 00000000
[   53.505826] dd60: 50852c80 00000000 00000000 00000001 00000000 0000003c 9d1ba002 c09542f8
[   53.514032] dd80: 1e0bf000 dea16f00 de035540 00000002 00000000 dea16f00 de07de64 de07dda8
[   53.522237] dda0: c0057000 c0056570 de07ddd4 dd00aa00 de710000 dd036000 de25b000 00000000
[   53.530443] ddc0: dd036000 02080020 de07de2c de07ddd8 c05b1f08 c043bfe8 de07de34 c095c100
[   53.538649] dde0: c095d3e4 de710000 00000000 00000000 de25b000 de036280 00000000 00000000
[   53.546855] de00: 00000000 dd00aa00 de710000 dd036000 de25b000 00000000 00000002 00000000
[   53.555062] de20: de07de5c de07de30 c05cec74 c05b1ca4 c0053088 00000010 0000000a dd00aa00
[   53.563268] de40: 00000001 dd036000 00000040 de07c000 de07de94 de07de60 c05ceec4 c05cebac
[   53.571473] de60: dd00aa68 00000000 ffffffff dd00aa00 dd00ac00 dd00aa68 c0958940 de07de98
[   53.579679] de80: 00000002 40000000 de07debc de07de98 c05ada2c c05cedc8 00000050 c095c088
[   53.587885] dea0: de07c000 00000100 c095c088 00000002 de07df1c de07dec0 c0027c00 c05ad8d0
[   53.596091] dec0: de07df14 de07ded0 c06b3b80 04208040 c095c100 ffff9fa9 0000000a c06baa80
[   53.604297] dee0: c099cb40 c095c080 de07dec0 c09542c8 de024980 de07c000 de024980 00000001
[   53.612503] df00: c09615ec ffffe000 00000000 00000000 de07df2c de07df20 c0027d58 c0027af0
[   53.620708] df20: de07df5c de07df30 c0041f18 c0027d24 de068a00 00000000 de0249c0 de024980
[   53.628914] df40: c0041dc4 00000000 00000000 00000000 de07dfac de07df60 c003ec28 c0041dd0
[   53.637121] df60: 00000000 00000001 00000000 de024980 00000000 00030003 de07df78 de07df78
[   53.645326] df80: 00000000 00000000 de07df88 de07df88 de0249c0 c003eb44 00000000 00000000
[   53.653532] dfa0: 00000000 de07dfb0 c000fa48 c003eb50 00000000 00000000 00000000 00000000
[   53.661737] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   53.669943] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[   53.678146] Backtrace: 
[   53.680607] [<c043bfdc>] (netcp_ndo_start_xmit) from [<c05b1f08>] (dev_hard_start_xmit+0x270/0x334)
[   53.689683]  r10:02080020 r9:dd036000 r8:00000000 r7:de25b000 r6:dd036000 r5:de710000
[   53.697560]  r4:dd00aa00
[   53.700106] [<c05b1c98>] (dev_hard_start_xmit) from [<c05cec74>] (sch_direct_xmit+0xd4/0x21c)
[   53.708659]  r10:00000000 r9:00000002 r8:00000000 r7:de25b000 r6:dd036000 r5:de710000
[   53.716539]  r4:dd00aa00
[   53.719085] [<c05ceba0>] (sch_direct_xmit) from [<c05ceec4>] (__qdisc_run+0x108/0x190)
[   53.727028]  r8:de07c000 r7:00000040 r6:dd036000 r5:00000001 r4:dd00aa00
[   53.733777] [<c05cedbc>] (__qdisc_run) from [<c05ada2c>] (net_tx_action+0x168/0x178)
[   53.741545]  r10:40000000 r9:00000002 r8:de07de98 r7:c0958940 r6:dd00aa68 r5:dd00ac00
[   53.749424]  r4:dd00aa00
[   53.751967] [<c05ad8c4>] (net_tx_action) from [<c0027c00>] (__do_softirq+0x11c/0x234)
[   53.759822]  r9:00000002 r8:c095c088 r7:00000100 r6:de07c000 r5:c095c088 r4:00000050
[   53.767618] [<c0027ae4>] (__do_softirq) from [<c0027d58>] (run_ksoftirqd+0x40/0x58)
[   53.775300]  r10:00000000 r9:00000000 r8:ffffe000 r7:c09615ec r6:00000001 r5:de024980
[   53.783178]  r4:de07c000
[   53.785722] [<c0027d18>] (run_ksoftirqd) from [<c0041f18>] (smpboot_thread_fn+0x154/0x26c)
[   53.794017] [<c0041dc4>] (smpboot_thread_fn) from [<c003ec28>] (kthread+0xe4/0xfc)
[   53.801610]  r10:00000000 r9:00000000 r8:00000000 r7:c0041dc4 r6:de024980 r5:de0249c0
[   53.809490]  r4:00000000 r3:de068a00
[   53.813085] [<c003eb44>] (kthread) from [<c000fa48>] (ret_from_fork+0x14/0x2c)
[   53.820330]  r7:00000000 r6:00000000 r5:c003eb44 r4:de0249c0
[   53.826026] Code: e51b305c e50b2084 e51b1070 e51b2074 (e582800c) 
[   53.832160] ---[ end trace 701721bccd98932b ]---
[   53.836802] Kernel panic - not syncing: Fatal exception in interrupt
[   53.843180] CPU3: stopping
[   53.845896] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G      D W       4.4.12-g3639bea54a #40
[   53.854188] Hardware name: Keystone
[   53.857683] Backtrace: 
[   53.860145] [<c001303c>] (dump_backtrace) from [<c0013238>] (show_stack+0x18/0x1c)
[   53.867740]  r7:de099f40 r6:200f0193 r5:00000000 r4:c096ea8c
[   53.873442] [<c0013220>] (show_stack) from [<c0295124>] (dump_stack+0x90/0xa4)
[   53.880693] [<c0295094>] (dump_stack) from [<c0015704>] (handle_IPI+0x188/0x19c)
[   53.888112]  r7:de099f40 r6:00000000 r5:00000003 r4:c09553d4
[   53.893809] [<c001557c>] (handle_IPI) from [<c000942c>] (gic_handle_irq+0x78/0x7c)
[   53.901402]  r7:f0804000 r6:de099f40 r5:f080400c r4:c095c8a4
[   53.907098] [<c00093b4>] (gic_handle_irq) from [<c0013d80>] (__irq_svc+0x40/0x74)
[   53.914605] Exception stack(0xde099f40 to 0xde099f88)
[   53.919672] 9f40: 00000001 00000000 00000000 c001fd20 de098000 c095c4ac 00000000 00000000
[   53.927880] 9f60: de099fb0 c06baa74 c095c4f8 de099f9c de099fa0 de099f90 c00104d4 c00104d8
[   53.936084] 9f80: 600f0013 ffffffff
[   53.939580]  r9:c06baa74 r8:de099fb0 r7:de099f74 r6:ffffffff r5:600f0013 r4:c00104d8
[   53.947376] [<c0010498>] (arch_cpu_idle) from [<c005e2f8>] (default_idle_call+0x28/0x34)
[   53.955498] [<c005e2d0>] (default_idle_call) from [<c005e55c>] (cpu_startup_entry+0x204/0x264)
[   53.964142] [<c005e358>] (cpu_startup_entry) from [<c00152e8>] (secondary_start_kernel+0x16c/0x178)
[   53.973217]  r7:c099c448
[   53.975761] [<c001517c>] (secondary_start_kernel) from [<800094cc>] (0x800094cc)
[   53.983180]  r7:c099c448 r6:30c0387d r5:00000008 r4:1e024940
[   53.988874] CPU1: stopping
[   53.991590] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D W       4.4.12-g3639bea54a #40
[   53.999882] Hardware name: Keystone
[   54.003378] Backtrace: 
[   54.005839] [<c001303c>] (dump_backtrace) from [<c0013238>] (show_stack+0x18/0x1c)
[   54.013434]  r7:de095f40 r6:20070193 r5:00000000 r4:c096ea8c
[   54.019136] [<c0013220>] (show_stack) from [<c0295124>] (dump_stack+0x90/0xa4)
[   54.026386] [<c0295094>] (dump_stack) from [<c0015704>] (handle_IPI+0x188/0x19c)
[   54.033806]  r7:de095f40 r6:00000000 r5:00000001 r4:c09553d4
[   54.039504] [<c001557c>] (handle_IPI) from [<c000942c>] (gic_handle_irq+0x78/0x7c)
[   54.047098]  r7:f0804000 r6:de095f40 r5:f080400c r4:c095c8a4
[   54.052793] [<c00093b4>] (gic_handle_irq) from [<c0013d80>] (__irq_svc+0x40/0x74)
[   54.060301] Exception stack(0xde095f40 to 0xde095f88)
[   54.065369] 5f40: 00000001 00000000 00000000 c001fd20 de094000 c095c4ac 00000000 00000000
[   54.073574] 5f60: de095fb0 c06baa74 c095c4f8 de095f9c de095fa0 de095f90 c00104d4 c00104d8
[   54.081779] 5f80: 60070013 ffffffff
[   54.085274]  r9:c06baa74 r8:de095fb0 r7:de095f74 r6:ffffffff r5:60070013 r4:c00104d8
[   54.093071] [<c0010498>] (arch_cpu_idle) from [<c005e2f8>] (default_idle_call+0x28/0x34)
[   54.101193] [<c005e2d0>] (default_idle_call) from [<c005e55c>] (cpu_startup_entry+0x204/0x264)
[   54.109838] [<c005e358>] (cpu_startup_entry) from [<c00152e8>] (secondary_start_kernel+0x16c/0x178)
[   54.118914]  r7:c099c448
[   54.121457] [<c001517c>] (secondary_start_kernel) from [<800094cc>] (0x800094cc)
[   54.128877]  r7:c099c448 r6:30c0387d r5:00000008 r4:1e024940
[   54.134572] CPU2: stopping
[   54.137289] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G      D W       4.4.12-g3639bea54a #40
[   54.145583] Hardware name: Keystone
[   54.149079] Backtrace: 
[   54.151540] [<c001303c>] (dump_backtrace) from [<c0013238>] (show_stack+0x18/0x1c)
[   54.159135]  r7:de097f40 r6:20080193 r5:00000000 r4:c096ea8c
[   54.164838] [<c0013220>] (show_stack) from [<c0295124>] (dump_stack+0x90/0xa4)
[   54.172088] [<c0295094>] (dump_stack) from [<c0015704>] (handle_IPI+0x188/0x19c)
[   54.179507]  r7:de097f40 r6:00000000 r5:00000002 r4:c09553d4
[   54.185206] [<c001557c>] (handle_IPI) from [<c000942c>] (gic_handle_irq+0x78/0x7c)
[   54.192800]  r7:f0804000 r6:de097f40 r5:f080400c r4:c095c8a4
[   54.198497] [<c00093b4>] (gic_handle_irq) from [<c0013d80>] (__irq_svc+0x40/0x74)
[   54.206005] Exception stack(0xde097f40 to 0xde097f88)
[   54.211073] 7f40: 00000001 00000000 00000000 c001fd20 de096000 c095c4ac 00000000 00000000
[   54.219279] 7f60: de097fb0 c06baa74 c095c4f8 de097f9c de097fa0 de097f90 c00104d4 c00104d8
[   54.227485] 7f80: 60080013 ffffffff
[   54.230980]  r9:c06baa74 r8:de097fb0 r7:de097f74 r6:ffffffff r5:60080013 r4:c00104d8
[   54.238778] [<c0010498>] (arch_cpu_idle) from [<c005e2f8>] (default_idle_call+0x28/0x34)
[   54.246901] [<c005e2d0>] (default_idle_call) from [<c005e55c>] (cpu_startup_entry+0x204/0x264)
[   54.255546] [<c005e358>] (cpu_startup_entry) from [<c00152e8>] (secondary_start_kernel+0x16c/0x178)
[   54.264622]  r7:c099c448
[   54.267164] [<c001517c>] (secondary_start_kernel) from [<800094cc>] (0x800094cc)
[   54.274585]  r7:c099c448 r6:30c0387d r5:00000008 r4:1e024940
[   54.280284] ---[ end Kernel panic - not syncing: Fatal exception in interrupt
,