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.

Linux/AM5728: DSP access to buffer allocated by CMEM

Part Number: AM5728

Tool/software: Linux

We are using AM5728 EVM, I allocate a new buffer about 2M bytes to store image on ddr3 by CMEM in linux ,and I have gotten the physical address of this buffer, then I need send this buffer to dsp so that dsp can analyze image, but dsp mmu is enable, dsp use virtual address to visit ddr3 , physical address of the buffer cann’t be visited by dsp, so we must build a new TLB for this buffer on dsp. There are  two problems:

1,Do linux driver build TLB for dsp mmu when firmware of dsp is loaded ? if it don’t, who build the TLB for dsp mmu?
2, How can TLB be built for this 2M  buffer so that dsp can visit this buffer from linux. Or there is another way for dsp to visit buffer allocated by linux CMEM?

I have ever read IPC document,but SharedRegion cannot work in linux:

The SharedRegion Module is only supported in SYS/BIOS environments. It is not provided on HLOS's. For HLOS environments, we suggest using native shared memory APIs when available, for example ION on Android. Other alternatives include CMEM (for Linux) and the QNX-specific SharedMemoryAlloctor, provided in IPC's qnx/ directory.