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: Dual camera demo CMEM error

Part Number: AM5728

Tool/software: Linux

hi,

I am using the dual_camera demo,and there is something wrong when I allocate the cmem buf.

When my two camera is 720p,the allocation is running correctly.

But since I change 720p to 1080p,the bad allocation appears:

[  168.529393] CMEMK Error: ioctl: failed to allocate heap buffer of size 0x3f5000

[  168.541747] CMEMK Error: get_phys: Unable to find phys addr for 0x0

[  168.555045] CMEMK Error: get_phys: get_user_pages() failed: -14

[  168.565168] CMEMK Error: FREEHEAP: Failed to convert virtual 0x0 to physical

CMEM Error: allocHeap: ioctl CMEM_IOCALLOCHEAPCACHED failed: -1
allocating cmem buffer of size 0x3f4800CMEM allocation failed
CMEM Error: free: failed to free 0
Cannot export CMEM buffer
ERROR:get_vid_buffers_new:400: allocation failed


How do i fix this heap issue? I've viewed some threads e2e.ti.com/.../660967,someone have faced the similar issue as mine.

Please give me some insight