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>
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>
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>
host_linux: Convert memory allocation from CMEM to DMA-BUF HEAPS
Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Andrew Davis <afd@ti.com>
4 years agoMerge pull request #4 in PROCESSOR-SDK/big-data-ipc-examples from PRSDK-5811 to master 01.03.00.00 DEV.PROCESSOR-SDK.06.01.00.07
Merge pull request #4 in PROCESSOR-SDK/big-data-ipc-examples from PRSDK-5811 to master
* commit '55f20053be7ffd1fbb2446496fc1d997028c544e':
PRSDK-5811: Making the bin/obj file directory BOARD specific for parallel make
* commit '55f20053be7ffd1fbb2446496fc1d997028c544e':
PRSDK-5811: Making the bin/obj file directory BOARD specific for parallel make
PRSDK-5811: Making the bin/obj file directory BOARD specific for parallel make
6 years agoMerge pull request #3 in PROCESSOR-SDK/big-data-ipc-examples from PRSDK-3279 to master 01.02.00.00 DEV.PROCESSOR-SDK.05.01.00.11 DEV.PROCESSOR-SDK.05.02.00.07 DEV.PROCESSOR-SDK.05.03.00.05 DEV.PROCESSOR-SDK.06.00.00.05
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
* commit '2ec6d9f314b6d1e50b8a7b81d183fc2adec156fe':
PRSDK-3279 Add big data IPC support for AM574x
PRSDK-3279 Add big data IPC support for AM574x
Add support of Big Data IPC example for Am574X
Signed-off-by: Pratap Reddy <x0257344@ti.com>
Add support of Big Data IPC example for Am574X
Signed-off-by: Pratap Reddy <x0257344@ti.com>
makefile: Update linker uptions for new gcc version
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
readme: Update readme with host linux details
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
host_bios: Add config.bld for K2L platform
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
host_bios: Corrections in config.bld
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
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
* 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>
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>
Uses local Shared region, Heapmem, Cache modules for linux
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
host_bios: K2K cleanup
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
host_bios: Add K2L support
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
host_bios: Cleanup of printfs
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
host_bios: Update BigData buffer variables
Added _BUF_ to clarify
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Added _BUF_ to clarify
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
host_bios: Cleanup makefiles
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
docs: Update build procedure
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
7 years agoMerge pull request #1 in PROCESSOR-SDK/big-data-ipc-examples from dev_branch_1 to... 01.00.00.00
Merge pull request #1 in PROCESSOR-SDK/big-data-ipc-examples from dev_branch_1 to master
* commit 'd1de6e72a21f2d70a41cb0445048474fa755409f':
documentation: Update readme.txt
makefile: Update K2K platform name
makefile: Cleanup install rov makefile entries
makefile: Add install rov to allow debugging
idkAM571x: Add board config file for idkAM571x
Main: Update log prints for test completion
evmK2L: Add board config for evmK2L
am572x: Add board config file for evm572x
makefile: Cleanup to move host executable to board specific
simple_buffer_example: code cleanup
makefile: Remove tmp file
MainHost: Fix board init to avoid issues when running with SBL
App: Cleanup of comments
App: Update number of messages sent to match description in readme.txt
makefile: Add install_bin
makefile: Update configuro directory and comment debug build
host_bios: Update platform handling for board
host_bios: Add host_bios simple buffer example
* commit 'd1de6e72a21f2d70a41cb0445048474fa755409f':
documentation: Update readme.txt
makefile: Update K2K platform name
makefile: Cleanup install rov makefile entries
makefile: Add install rov to allow debugging
idkAM571x: Add board config file for idkAM571x
Main: Update log prints for test completion
evmK2L: Add board config for evmK2L
am572x: Add board config file for evm572x
makefile: Cleanup to move host executable to board specific
simple_buffer_example: code cleanup
makefile: Remove tmp file
MainHost: Fix board init to avoid issues when running with SBL
App: Cleanup of comments
App: Update number of messages sent to match description in readme.txt
makefile: Add install_bin
makefile: Update configuro directory and comment debug build
host_bios: Update platform handling for board
host_bios: Add host_bios simple buffer example
documentation: Update readme.txt
Updated readme.txt with build procedures
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Updated readme.txt with build procedures
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
makefile: Update K2K platform name
Only K2H is supported for ARM RTOS in IPC
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Only K2H is supported for ARM RTOS in IPC
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
makefile: Cleanup install rov makefile entries
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
makefile: Add install rov to allow debugging
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
idkAM571x: Add board config file for idkAM571x
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Main: Update log prints for test completion
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
evmK2L: Add board config for evmK2L
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
am572x: Add board config file for evm572x
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
makefile: Cleanup to move host executable to board specific
- Making the host binary to be board specific instead of platform
specific.
( Board library used is board specific)
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
- Making the host binary to be board specific instead of platform
specific.
( Board library used is board specific)
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
simple_buffer_example: code cleanup
- Added new bigdataxlat functions and common files
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
- Added new bigdataxlat functions and common files
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
makefile: Remove tmp file
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
MainHost: Fix board init to avoid issues when running with SBL
- Pinmux init is not needed with SBL and if called in Host can cause
issues with DSP running already
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
- Pinmux init is not needed with SBL and if called in Host can cause
issues with DSP running already
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
App: Cleanup of comments
Rearranged some code and added comments for clarity
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Rearranged some code and added comments for clarity
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
App: Update number of messages sent to match description in readme.txt
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
makefile: Add install_bin
- Also one minor cleanup
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
- Also one minor cleanup
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
makefile: Update configuro directory and comment debug build
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
host_bios: Update platform handling for board
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
host_bios: Add host_bios simple buffer example
Example demonstrate big size data buffers exchanged between cores
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Example demonstrate big size data buffers exchanged between cores
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Initial commit
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Sam Nelson <sam.nelson@ti.com>