Tool/software: Linux
hi,
I have a question about CMEM and omap_bo. What is the background of CMEM and omap_bo? What is the difference between the two? Where are they used?
Thanks
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.
Tool/software: Linux
hi,
I have a question about CMEM and omap_bo. What is the background of CMEM and omap_bo? What is the difference between the two? Where are they used?
Thanks
CMEM memory is contiguous memory having support for buffer caching operation by the CMEM driver. OMAP_BO is omapdrm buffer manager and typically allocates memory from TILED memory pool limited to 128 MB in size.
Typically CMEM pool is used for DSP memory need/openCL franework. It is also recommended to use CMEM pool for capture/display other IPs when the buffer is accessed by ARM also for software processing. Since OMAP_BO buffers aren't cached, the software processing on those buffers is very slow. When allocated through CMEM, the cached operations can be managed and the buffers can be exported to linux driver using DMABUF API protocol.
Refer to dual camera example application loopback.c file to see the CMEM buffer and OMAP_BO buffer allocation and usage.
Hello,
As Manisha said you could refer dual camera demo for omap_bo and cmem usage.
For example, IVAHD case all buffers are expected in TILER and omap_bo is the only way to allocate buffer in TILER.
Rest all can work from CMEM.
Hope this helps.
BR
Margarita
Hi Margarita:
Thanks, I have see
Just now we have two new questions
1 where is the TILED memory configured in the linux kernel or in the device tree? we can not find it.
2 what 's the size of the linux kernel manager's memory.
Thands
Margarita