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.

DRA72XEVM: DRA7xx PSDK IPC examples not working

Part Number: DRA72XEVM


Hi,

I am having PSDK version 3.04 . I tried to run IPC examples as mentioned in TI wiki.

processors.wiki.ti.com/index.php/DRA7xx_GLSDK_Software_Developers_Guide#Running_IPC_examples

LAD.txt before running example

-------------------------------------------------------
[0.867523]
Initializing LAD... [0.867743] NameServer_setup: entered, refCount=0
[0.867792] NameServer_setup: creating listener thread
[0.867903] NameServer_setup: exiting, refCount=1
[0.867950] NameServer_create(): 'GateMP'
[0.867972]
    opening FIFO: /tmp/LAD/LADCMDS
[0.868014] listener_cb: Entered Listener thread.
[0.868027] NameServer: waiting for unblockFd: 0, and socks: maxfd: 0

When i runs the example as mentioned in wiki

root@dra7xx-evm:~# MessageQApp 10 3
[ 3965.255722] NET: Registered protocol family 41
Using numLoops: 10; procId : 3
Entered MessageQApp_execute
Local MessageQId: 0x80

The application is stuck here and not continuing i have to issue CRTL+C to stop the application

^CIpc: Caught SIGINT, calling Ipc_stop...

Lad.txt after stopping

------------------------------

[0.867523]
Initializing LAD... [0.867743] NameServer_setup: entered, refCount=0
[0.867792] NameServer_setup: creating listener thread
[0.867903] NameServer_setup: exiting, refCount=1
[0.867950] NameServer_create(): 'GateMP'
[0.867972]
    opening FIFO: /tmp/LAD/LADCMDS
[0.868014] listener_cb: Entered Listener thread.
[0.868027] NameServer: waiting for unblockFd: 0, and socks: maxfd: 0
[3955.195272] Retrieving command...
[3955.195332]    EOF detected on FIFO, closing FIFO: /tmp/LAD/LADCMDS
[3955.195379]
    opening FIFO: /tmp/LAD/LADCMDS
[3955.195436] Retrieving command...
[3955.195593]
LAD_CONNECT:
[3955.195605]     client FIFO name = /tmp/LAD/1218
[3955.195614]     client PID = 1218
[3955.195623]     assigned client handle = 0
[3955.195657]     FIFO /tmp/LAD/1218 created
[3955.195803]     FIFO /tmp/LAD/1218 opened for writing
[3955.195845]     sent response
[3955.195855] DONE
[3955.195863] Retrieving command...
[3955.195900] Sending response...
[3955.195919] Retrieving command...
[3955.195955] LAD_MULTIPROC_GETCONFIG: calling MultiProc_getConfig()...
[3955.195969] MultiProc_getConfig() - 5 procs
[3955.195977] # processors in cluster: 5
[3955.195984] cluster baseId: 0
[3955.195991]     ProcId 0 - "HOST"
[3955.195999]     ProcId 1 - "IPU2"
[3955.196007]     ProcId 2 - "IPU1"
[3955.196014]     ProcId 3 - "DSP2"
[3955.196021]     ProcId 4 - "DSP1"
[3955.196029]     status = 0
[3955.196036] DONE
[3955.196042] Sending response...
[3955.196057] Retrieving command...
[3955.196096] LAD_NAMESERVER_SETUP: calling NameServer_setup()...
[3955.196106] NameServer_setup: entered, refCount=1
[3955.196114] NameServer_setup: already setup
[3955.196121] NameServer_setup: exiting, refCount=2
[3955.196129]     status = 1
[3955.196136] DONE
[3955.196143] Sending response...
[3955.196157] Retrieving command...
[3955.196190] LAD_MESSAGEQ_GETCONFIG: calling MessageQ_getConfig()...
[3955.196201]     status = 0
[3955.196208] DONE
[3955.196215] Sending response...
[3955.196229] Retrieving command...
[3955.196262] LAD_MESSAGEQ_SETUP: calling MessageQ_setup()...
[3955.196272] MessageQ_setup: entered, refCount=0
[3955.196281] NameServer_create(): 'MessageQ'
[3955.196293] MessageQ_setup: exiting, refCount=1
[3955.196301]     status = 0
[3955.196308] DONE
[3955.196315] Sending response...
[3955.196328] Retrieving command...
[3955.196504] NameServer_attach: --> procId=1, refCount=0
[3955.208701] NameServer_attach: created send socket: 6, procId 1
[3955.208764] NameServer_attach: connect failed: procId=1, errno=22 (Invalid argument)
[3955.208794]     closing send socket: 6
[3955.208828] NameServer_attach: <-- refCount=0, status=-1
[3955.208843] Sending response...
[3955.208874] Retrieving command...
[3955.208950] NameServer_attach: --> procId=2, refCount=0
[3955.208975] NameServer_attach: created send socket: 6, procId 2
[3955.208990] NameServer_attach: connect failed: procId=2, errno=22 (Invalid argument)
[3955.209003]     closing send socket: 6
[3955.209024] NameServer_attach: <-- refCount=0, status=-1
[3955.209038] Sending response...
[3955.209061] Retrieving command...
[3955.209105] NameServer_attach: --> procId=3, refCount=0
[3955.209127] NameServer_attach: created send socket: 6, procId 3
[3955.209141] NameServer_attach: connect failed: procId=3, errno=22 (Invalid argument)
[3955.209153]     closing send socket: 6
[3955.209174] NameServer_attach: <-- refCount=0, status=-1
[3955.209185] Sending response...
[3955.209202] Retrieving command...
[3955.209259] NameServer_attach: --> procId=4, refCount=0
[3955.209281] NameServer_attach: created send socket: 6, procId 4
[3955.209297] NameServer_attach: connect failed: procId=4, errno=22 (Invalid argument)
[3955.209310]     closing send socket: 6
[3955.209331] NameServer_attach: <-- refCount=0, status=-1
[3955.209341] Sending response...
[3955.209358] Retrieving command...
[3955.209403] LAD_GATEMP_ISSETUP: calling GateMP_isSetup()...
[3955.209414]     status = 0
[3955.209423] DONE
[3955.209431] Sending response...
[3955.209454] Retrieving command...
[3955.209496] LAD_GATEHWSPINLOCK_GETCONFIG: calling GateHWSpinlock_getConfig()...
[3955.209524] GateHWSpinlock_getConfig()    baseAddr = 0x4a0f6000
[3955.209536]     size = 0x1000
    offset = 0x800
[3955.209545]     status = 0
[3955.209553] DONE
[3955.209562] Sending response...
[3955.209585] Retrieving command...
[3955.209674] LAD_GATEMP_START: calling GateMP_start()...
[3955.209686]     status = 0
[3955.209693] DONE
[3955.209701] Sending response...
[3955.209718] Retrieving command...
[3955.209754] LAD_GATEMP_GETNUMRESOURCES: calling GateMP_getNumResources()...
[3955.209766]     status = 0
[3955.209774] DONE
[3955.209781] Sending response...
[3955.209802] Retrieving command...
[3955.209851] LAD_NAMESERVER_GET: calling NameServer_get(0x30228, '_GateMP_TI_dGate'[3955.209864] )...
[3955.209880] NameServer_getLocal: entry key: '_GateMP_TI_dGate' not found!
[3955.209892] NameServer_getRemote: no socket connection to processor 1
[3955.209901] NameServer_getRemote: no socket connection to processor 2
[3955.209909] NameServer_getRemote: no socket connection to processor 3
[3955.209916] NameServer_getRemote: no socket connection to processor 4
[3955.209924]     value = 0x10
[3955.209931]     status = -5
[3955.209939] DONE
[3955.209946] Sending response...
[3955.209961] Retrieving command...
[3955.210118] LAD_MESSAGEQ_CREATE: calling MessageQ_create(0x2f8a4, 0x2f8c4)...
[3955.210130] MessageQ_create: creating 'HOST'
[3955.210142] MessageQ_create: returning obj=0x30640, qid=0x80
root@dra7xx-evm:~#

What could be the problem with inter processor communication?