My encode programm can run correctly when configure the cmem like below:
#cmem:48m linux:80m
insmod cmemk.ko phys_start=0x85000000 phys_end=0x88000000 pools=128x56,20x1382400,1x6785280,1x3112704,4x921600,5x49152 allowOverlap=1 phys_start_1=0x00001000 phys_end_1=0x00008000 pools_1=1x28672
The CMEM loadmodule information:
ioremap_nocache(0x85000000, 50331648)=0xc6000000
allocated heap buffer 0xc6000000 of size 0x7e7000
cmem initialized 6 pools between 0x85000000 and 0x88000000
CMEM Range Overlaps Kernel Physical - allowing overlap
CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x85000000)
ioremap_nocache(0x1000, 28672)=0xc5990000
no remaining memory for heap, no heap created for memory block 1 (What it means ?????)
cmem initialized 1 pools between 0x1000 and 0x8000
IRQK module: built on Jul 20 2009 at 22:32:57
I want to add the decode programm into the encode programm , which means my whole programm can decode and encode separately. But
when the function : hDecode = VIDDEC2_create(hEngine, codecName, params) is called , the cmem is error:
CMEMK Error: ioctl: failed to allocate heap buffer of size 0x8c0150
CMEM Error: allocHeap: ioctl CMEM_IOCALLOCHEAPCACHED failed: -1
It's seems that i don't have enough memory for allocate buffer ,so i change the configuration like :
#cmem:60m linux:68m
insmod cmemk.ko phys_start=0x84400000 phys_end=0x88000000 pools=128x56,20x1382400,1x6785280,1x3112704,4x921600,5x49152,1x9175376 allowOverlap=1 phys_start_1=0x00001000 phys_end_1=0x00008000 pools_1=1x28672
#0x8c0150=9175376
The CMEM loadmodule information:
ioremap_nocache(0x84400000, 62914560)=0xc5000000
allocated heap buffer 0xc5000000 of size 0xb26000
cmem initialized 7 pools between 0x84400000 and 0x88000000
CMEM Range Overlaps Kernel Physical - allowing overlap
CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x84400000)
ioremap_nocache(0x1000, 28672)=0xc4990000
no remaining memory for heap, no heap created for memory block 1
cmem initialized 1 pools between 0x1000 and 0x8000
IRQK module: built on Jul 20 2009 at 22:32:57
But the error still exist, so i need your help . Any advice will be appreciate.
Best regards.
Katee