host_linux: dsp: fix munmap length While switching the demo application memory allocation from CMEM to DMA-BUF HEAPS the wrong define was used for munmap length. Indeed, the two define may be confused but it is not the same amount of memory: BIGDATA_BUF_SIZE is 16384 BIG_DATA_POOL_SIZE is 0x1000000. BIG_DATA_POOL_SIZE should have been used since it was used previously by mmap(). Fixes 3dedbde2a539834ee8f4d0419888116ea80789d0 While at it, update the comment that seems to be duplicated from MessageQ_free() comment above. Signed-off-by: Romain Naour <romain.naour@smile.fr>
host_linux: dsp: Clear SharedRegion regionId1 set by the init message Calling app_host twice crash the DSP firmware: (Linux) ./app_host DSP1 [...] ./app_host DSP1 --> main: --> Main_main: --> App_create: App_create: Host is ready <-- App_create: --> App_exec: DMA-HEAP open success Mapping DMA-HEAP buffer success: Allocated buffer 0xb579f000 SharedRegion_setup success App_taskFxn: SR_1, base 0xb579f000, len=1000000 HeapMem_setup success HeapMem_create success App_taskFxn: SR_1 heap, totalSize=16777216,totalFreeSize=16777216,largestFreeSize=16777216 App_taskFxn: SR_1 heap, buf=0x0xb579f080,size=16777216 App_exec: sending message 1 Shared memory phys Addr a0000000 App_exec: sending message 2 App_exec: sending message 3 ^CIpc: Caught SIGINT, calling Ipc_stop... (dsp) [...] [ 49.047] Awaiting sync message from host... [ 56.350] [t=0x00000009:72525a68] ti.sdo.ipc.SharedRegion: ERROR: line 536: assertion failure: A_overlap: Shared region overlaps [ 56.350] ti.sdo.ipc.SharedRegion: line 536: assertion failure: A_overlap: Shared region overlaps [ 56.350] xdc.runtime.Error.raise: terminating execution Indeed, after the first run we have to call SharedRegion_clearEntry(regionId1) to avoid Shared region overlaps. It allows to execute the demo not just once! Signed-off-by: Romain Naour <romain.naour@smile.fr>
Merge pull request #3 in PROCESSOR-SDK/big-data-ipc-examples from PRSDK-3279 to master * commit '2ec6d9f314b6d1e50b8a7b81d183fc2adec156fe': PRSDK-3279 Add big data IPC support for AM574x
Merge pull request #2 in PROCESSOR-SDK/big-data-ipc-examples from PLSDK-1313 to master * commit '3e4ff006f700b50d46734cd890ce5e02dfc457e8': host_linux: Temporarily disable local lock host_linux: Add example for use case with host running linux
host_linux: Temporarily disable local lock Currently GateMutex on linux is not supported in IPC for certain platforms Note: Disabling of the local lock will prevent using the Sharedregion and Heapmem APIs to be used from multiple threads. But given the example only supports single thread currently does not affect functionality Signed-off-by: Sam Nelson <sam.nelson@ti.com>
host_linux: Add example for use case with host running linux Uses local Shared region, Heapmem, Cache modules for linux Signed-off-by: Sam Nelson <sam.nelson@ti.com>