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.

TDA4VM: Using Linux -> R5F shared memory with ION

Part Number: TDA4VM

Hi,

I am using TDA4VM with Linux+RTOS(FreeRTOS) and trying to setup shared memory.
PSDK version 08_02_00.


So far I am able to access ddr shared memory from every core on TDA4.
According to the documentation it is suggested to use ION on Linux side, since this way the physical memory will not be mapped via /dev/mem, which causes the memory region to not be cacheable.
TI suggests to use ION for it, but I don't find an explanation on how to use ION and setup the memory region with it.

I looked into the following threads already, but I can not find a proper explanation on how to actually use ION.
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/866463/tda4-shared-memory-between-a72---c66-a72---r5f-a72---c71/3218381#3218381

I am looking forward to your help!

Best regards,
Nico

  • Hi Nico,

    Starting from vision sdk8.0, we are using DMA-BUF framework for buffer management on Linux. ION framework is no longer being used in the OpenVX. 

    On which core are you trying to access this buffers? This is because, dma-buf is only on A72/Linux, on the other core, it is just shared flat memory, mapped on the local core, so can be directly accessed.. 

    Regards,

    Brijesh