Part Number: AM62A7
Hi TI-Team
We are currently attempting to read frame buffer data from shared memory at address 0xa1800000 on the A53 processor, utilizing the open(/dev/mem,...) API. From the DMR5 side, the frame buffer data is written at intervals of approximately 33ms for DMS frames and 200ms for OMS frames.
The A53 reads from the same shared memory location and supplies this data to the perception library.However, after feeding frames to the perception library, we observe frame drops and a reduction in output FPS.Our debugging efforts revealed that when using aligned malloc, the expected performance is achieved. Specifically, reading a single frame from shared memory via DMA heap takes approximately 300ms, whereas accessing heap memory allocated with aligned malloc takes around 5ms.
Please note that the shared memory region 0xa1800000 is configured as cacheable, as the no_map property is not included in its region definition inside dts file. We seek your guidance to understand why the dma_heap_carveout area exhibits significantly higher read latency compared to heap memory allocated with aligned malloc, despite both being heap-based memory regions.Your insights will be valuable in optimizing our memory access strategy.Thank you for your support.
Best regards,
Vishvajeet
