Hi Ben,
To increase the size of the heap in "DDR" (or "DDR2" as renamed in the more recent examples), you can add the following line to your BIOS .tcf file if it does not already exists: bios.DDR.heapSize = 0x10000; Set the size to a value larger than the amount of memory you are trying to allocate. If you want to know how much heap memory your application is using at run-time, you can visualize all the heaps using the Kernel Object View in CCS under the "MEM" category. This way you can tell how much memory was already allocated from the DDR heap when you call Memory_contigAlloc and how much space is left. Vincent ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ring, Chris Sent: Monday, November 05, 2007 6:28 AM To: Ben White; davinci-linux-open-source@linux.davincidsp.com Subject: RE: Memory_contigAlloc - how to configure for DSP-only CE app Good question - we should help clarify this in the docs. As you know, on the ARM, Memory_allocContig() is handled by CMEM - and you "give it memory" via insmod config params. On the DSP-side Memory_allocContig() is implemented on top of DSP/BIOS - and you "give it memory" via the BIOS .tcf script. There are better BIOS experts on this list than me that can hopefully help, but basically you'll need to ensure there is enough heap memory configured into the BIOS OS. The heap which memory is allocated from can be configured via the osalGlobal.defaultMemSegId config param. By default, it's "DDR" - and in many of the example .tcf scripts, "DDR" is only 256kB. Chris ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben White Sent: Monday, November 05, 2007 7:07 AM To: davinci-linux-open-source@linux.davincidsp.com Subject: Memory_contigAlloc - how to configure for DSP-only CE app Hi, I have a codec engine app, that runs DSP-side only. I am using the Memory_contigAlloc function to allocate some memory in my DSP-side client app. This works fine for small amounts of memory, but when I try to allocate a frame's worth (720x576x2 - PAL here folks!) it fails. Presumably this is because there isn't enough memory. I can't find out where this is configured in the DSP-side only scenario. In the dual-CPU configuration, the loadmodules.sh specifies this data to the CMEMk.ko module. As we don't use this for DSP-side only apps, where can I configure the settings for the Memory_contigAlloc? Thanks! Ben
_______________________________________________ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source