The memory for buffers will allocated by the dma_alloc_coherent. But my assumption is dma_alloc_coherent is allocating memory from carveout 2MiB memory which is allocated by u-boot.
refs : u-boot-toradex.git - U-Boot bootloader for Apalis and Colibri modules
Could you please clarify my query.
Thank you for support
Dear @Yasir_NL
Your asking many questions about how the internal implementation of various software parts are done.
Could we please start on the other end: Please describe the actual problem you are facing, and we can focus on solving this.
Please understand that we don’t have the resources to educate each of our customers about the implementation of Linux and FreeRTOS. If you really want to learn about all this, the source code of UBoot, Linux and FreeRTOS is freely available.
Regards, Andy