Briefly, you have the freedom to set this up to meet your system's memory constraints. You'll have to identify your application's memory constraints and configure CMEM appropriately. And some background to help you better understand what's going on in CMEM... Some details in this thread: http://www.mail-archive.com/davinci-linux-open-source@linux.davincidsp.com/msg01171.html Also, I've attached an internal document describing some of the details of CMEM. I scanned it quickly, and it seems to be up to date - though I reserve the right to say "oops" once or twice and send a corrected version. :) If you're a Codec Engine user, you should know that calls to Memory_allocContig() - ON THE ARM - will result in calls to CMEM_alloc() (and likewise the "free" variants). That's essentially the loose binding between CE and CMEM - you configure the memory pools available to Memory_allocContig() via cmem.ko's command line. [ If you're a Codec Engine application, it's recommended to use the portable Memory_allocContig() rather than calling CMEM_alloc() directly. Memory_allocContig() is supported on all OS's (e.g. WinCE) and devices (e.g. DM643x, which has no ARM) that Codec Engine is ported to. ] And finally (if you have "doxygen" in your path), you can generate the CMEM documentation, including many of these details, by following the instructions in CMEM's "readme.txt" and building CMEM with "make docs". Chris
________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Beny Zhang Sent: Friday, January 19, 2007 1:07 AM To: davinci-linux-open-source Subject: About the "pools" while insmoding cmem.ko Hi All Usually we insmod the cmem.ko module with such commands: insmod cmemk.ko phys_start=0x81C00000 phys_end=0x82400000 pools=1x3145728,1x202752,1x10240 I know we should specify pools to math the buffer here, but what exactly the meaning is here? How to calculate them? Thanks for any reply! Regards! Beny Zhang [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 2007-01-19
CmemModule.pdf
Description: CmemModule.pdf
_______________________________________________ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source