Team
We are developing a custom application based on TI provided Vision SDK 02.12.0.0+RobustRVC 4.0 sources.
Several changes were made on U-Boot included at DRA7x Automitive Android SDK, according to https://git.ti.com/android-sdk/u-boot/commits/rvc-4.0 for running RVC application.
Commit https://git.ti.com/android-sdk/u-boot/commit/2e243b279215037a3cec85909c1bc6a6ccb6a90d
-#define DRA7_RPROC_CMA_SIZE_IPU2 0x03800000
+#define DRA7_RPROC_CMA_SIZE_IPU2 0x05000000
Running dra71x-ipu2-fw.xem4 provided by TI (Vision SDK 02.12.0.0+RobustRVC 4.0) or custom application building, the following error rise on boot time.
failed to allocate carveout rsc: da 94000000, pa 0, len 4400000, flags 0
Digging deeper by U-Boot debug traces in board/ti/dra7xx/lateattach.c
#ifdef CONFIG_LATE_ATTACH_DMA_POOL
void*alloc_mem(unsigned long len, unsigned long align){
...
debug("alloc_mem: ..
...
}
We realizes that pageno=0x10000, but mem_count=0x9000, so DRA7_RPROC_CMA_SIZE_IPU2 must be incresed to 0x20000000, to avoid error
Are we missing anything? 0x20000000=512MB is too much for CMA, isn't it?
Thanks in advance