Hi , Their are few doubts about CMEM 1)I can see their is fixed phys_start and phys_ end address in loadmodules.sh .So how decrement in Linux memory can be compensated with required pools of memory?
2)What is the maximum memory a pool can be allocated ? 3)How CMEM works while allocation ,does it select a best fit pool or first fit pool or anything else it follow? 4)In my case i tried with different possible configuration to satisfy the requirements .After satisfying one sequence of required memory pools , application asked another chunk of 4147200 and 8294400 memory .That it was not able to provide .My application corrctly work if i save a low resolution image (720 x 480) but i get such memory pool problems with high resolution image. Thanks , Ashish On Tue, 04 Nov 2008 Tivy,Robert wrote : >Your loadmodules.sh shows you giving 12MB to CMEM (although the insmod line >appears to be commented out). This amount will satisfy your specified needs of >My memory req are like >pool fitting a size 4147200 >pool fitting a size 8294400 >although enough for only one of each. However, you are partitioning the 12MB >with too many pools/buffers to allow your allocations to succeed. Try >specifying: >pools=1x8294400,1x4147200 > >If you need more than just those two buffers, you will need to give less >memory to Linux and more to CMEM. Linux kernel memory is specified on the >boot command. With your given loadmodules.sh, you would need to be specifying >mem=116M at a maximum, and to give more to CMEM you would need to specify less >than 116M. > >- Rob > >________________________________ > From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of ashish pareek [EMAIL > PROTECTED] >Sent: Monday, November 03, 2008 4:56 AM >To: Vladimir Pantelic >Cc: davinci >Subject: Re: Re: CMEM Error > > Hi, >Since i am new to linux can u let me know how i can exchange memory with linux >. >My loadmodules.sh script looks like > >#!/bin/sh > ># 12MB ># insmod cmemk.ko phys_start=0x87400000 phys_end=0x88000000 >pools=1x2097152,2x1529856,7x829440,1x524288,1x108680,1x81920,2x8192,6x4096 >./mapdmaq > >insmod dm350mmap.ko >rm -f /dev/dm350mmap >mknod /dev/dm350mmap c `awk "\\$2==\"dm350mmap\" {print \\$1}" /proc/devices` 0 > >My memory req are like >pool fitting a size 4147200 >pool fitting a size 8294400 > >Regard's >Ashish > > > > >On Mon, 03 Nov 2008 Vladimir Pantelic wrote : >ashish pareek wrote: >> Hi, >>I >tried to configure my memory requirements in loadmodules.sh script that >allocated memory pools , but i got error >>CMEMK Error :failed to get big >enough free block . > >increase the size of memory that you give to cmem and >reduce the size given to linux (mem=xxx). > >>Is it because my mem req are so >high ? How cud i find maxm memory supported ? > >I don't know your memory >requirements, but you exchange cmem for linux mem easily. > > >> >>Ashish >> >>> >>On Mon, 03 Nov 2008 Vladimir Pantelic wrote : >> >ashish pareek wrote: >> >>> >>Hi , >> >>Is it possible to have an jpg image of high resolution (i.e. >1920 x 1080) from jpeg engine using DM355 . Are their any kind of hardware >limitation in doing that ? >> >>My idea is to get an high resolution RAW and >YUV (i.e. 1920 x 1080) image and than convert YUV image to jpg using JPEG >engine . >> >> >> >>When i tried to have an image 1920 x 1080 resolution i >found following error >> >>CMEM Error : getPool : failed to get a pool fitting >a size 4147200 >> >>CMEM Error : getPool : failed to get a pool fitting a size >8294400 >> > >> >CMEM was not able to find a large enough buffer, check how it >is configured (when the modules is loaded) and increase the pool size. >> > >> >> >> > >> >_______________________________________________ >> >>Davinci-linux-open-source mailing list >> >>Davinci-linux-open-source@linux.davincidsp.com >> >>http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source >> >> >>> >>Rediff Shopping >> > > >_______________________________________________ >>Davinci-linux-open-source mailing list >>Davinci-linux-open-source@linux.davincidsp.com >>http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
_______________________________________________ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source