Hi Darren, These are the contiguous memory pools (size and number of) that you want to configure for your application. In the standard dvevm setup, these are configured to support the requirements of the demos. The Memory_contigAlloc() as you mention below uses these pools to allocate the memory for sharing between ARM/DSP.
The demo apps use the following contig memory sizes, hence the configuration in the loadmodules.sh script for cmem. 3145728 - video bitstream buffer (READBUFSIZE = 3 * 1024 * 1024) - 1off 829440 - video buffers (D1_MAX_FRAME_SIZE = 720 * 576 * 2) - 3 off 61440 - audio bitstream buffer (READBUFSIZE = 60 * 1024) - 1 off 10240 - audio buffers (SOUNDBLKSIZE * 5 = 2 * 1024 * 5) - 1 off Hope this helps, Cheers, ~Rog -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Darren J Longhorn Sent: 13 February 2007 11:41 To: [email protected] Subject: CMEM Resent with a more appropriate subject. Sorry for duplication! Darren J Longhorn wrote: > Hi all, > > I have an app which is allocating contiguous memory using > Memory_contigAlloc(), but I'm running out of memory. It seems I can > specify how much memory will be available to CMEM when it is loaded into > the kernel. Currently, I load cmem.ko with the following parameters: > > insmod cmemk.ko phys_start=0x87800000 phys_end=0x88000000 > pools=1x3145728,3x829440,1x61440,1x10240 > > phys_start and phys_end are pretty clear, but what is the purpose of > pools? They also seem to be specifying memory sizes, but why are there > four? Is it related to alignment perhaps? > > Does anyone know where documentation for CMEM is located? > > Cheers > > Darren > > _______________________________________________ > Davinci-linux-open-source mailing list > [email protected] > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source > _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
