Unable to change cache size in codec engine.

2009-05-21 Thread bhushan
Hello ,
   I am trying to build an application to encode video in mpeg4 format
and also integrate the scale example from the codec engine in the
encode combo server. During the integration fro performance reasons I
want to increase the L2 cache size  from 64k to 128k. My processor is
tms320dm6446.
On building the codec_server I get the error:
Error: Can't set cache to size: 128k
Following is the encode.tcf file:
/*
 * Setup platform-specific memory map, CLK rate, etc.
 */
var mem_ext = [
{
comment:DDRALGHEAP: memory for dynamic algmem allocation,
name:   DDRALGHEAP,
base:   0x8B80,
len:0x0420,// 66MB
space:  code/data
},
{
comment:L1DSRAM: memory for dynamic algmem allocation,
name:   L1DSRAM,
base:   0x11F04000,   //
len:0x1,   // 64k
space:  data
},
{
comment:CACHE_L2,
name:   CACHE_L2,
base:   0x1180,   //
len:0x20,   // 128k
space:  data
},
{
comment:H264ENCSEC1,
name:   H264ENCSEC1,
base:   0x8FA0,
len:0x4140,
space:  code/data
},
{
comment:H264ENCSEC2,
name:   H264ENCSEC2,
base:   0x8FA04140,
len:0x5080,
space:  code/data
},
{
comment:H264ENCSEC3,
name:   H264ENCSEC3,
base:   0x8FA09220,
len:0x6000,
space:  code/data
},
{
comment:H264ENCSEC4,
name:   H264ENCSEC4,
base:   0x8FA1,
len:0x5000,
space:  code/data
},
{
comment:H264ENCSEC5,
name:   H264ENCSEC5,
base:   0x8FA15000,
len:0x3000,
space:  code/data
},
{
comment:H264ENCSEC6,
name:   H264ENCSEC6,
base:   0x8FA18000,
len:0x4040,
space:  code/data
},
{
comment:H264ENCSEC7,
name:   H264ENCSEC7,
base:   0x8FA28000,
len:0x5400,
space:  code/data
},
{
comment:H264ENCSEC8,
name:   H264ENCSEC8,
base:   0x8FA2D400,
len:0x2c00,
space:  code/data
},
{
comment:MPEG4ENCSEC1,
name:   MPEG4ENCSEC1,
base:   0x8FA4,
len:0x0001,
space:  code/data
},
{
comment:MPEG4ENCSEC2,
name:   MPEG4ENCSEC2,
base:   0x8FA5,
len:0x8000,
space:  code/data
},
{
comment:MPEG4ENCSEC3,
name:   MPEG4ENCSEC3,
base:   0x8FA58000,
len:0x8000,
space:  code/data
},
{
comment:MPEG4ENCSEC4,
name:   MPEG4ENCSEC4,
base:   0x8FA6,
len:0x8000,
space:  code/data
},
{
comment:MPEG4ENCSEC5,
name:   MPEG4ENCSEC5,
base:   0x8FA68000,
len:0x8000,
space:  code/data
},
{
comment:MPEG4ENCSEC6,
name:   MPEG4ENCSEC6,
base:   0x8FA7,
len:0x8000,
space:  code/data
},
{
comment:MPEG4ENCSEC7,
name:   MPEG4ENCSEC7,
base:   0x8FA78000,
len:0x0001,
space:  code/data
},

{

comment:DDR: memory for code and data,
name:   DDR,
base:   0x8FB0,
len:0x0030,
space:  code/data
},


{
comment:DSPLINK: memory for DSPLINK code and data,
name:   DSPLINKMEM,
base:   0x8FE0,   // 254MB
len:0x0010,   //   1MB
space:  code/data
},
{
comment:RESET_VECTOR: memory for the reset vector table,
name:   RESET_VECTOR,
base:   0x8FF0,
len:0x0080,
space:  code/data
},
];

/* Specify the L2 memory setting */
var device_regs = {
l2Mode: 128k
};

var params = {
clockRate: 594,
catalogName: ti.catalog.c6000,
deviceName: DM6446,
regs: device_regs,
mem: mem_ext
};

/*
 * Customize generic platform with parameters specified above.
 */
utils.loadPlatform(ti.platforms.generic, params);

/*  ===
 *  Enable heaps and tasks
 *  ===
 */
bios.enableMemoryHeaps(prog);
bios.enableTskManager(prog);

/*  ===
 *  Create heaps in memory segments that are to have heap
 *  ===
 */
bios.DDR.createHeap = true;
bios.DDR.heapSize   = 0x1; // 256K

bios.DDRALGHEAP.createHeap = true;
bios.DDRALGHEAP.heapSize   = bios.DDRALGHEAP.len;

/*
 *  Enable heaps in the L1DSRAM (internal L1 cache ram, fixed size)
 *  and define the label for heap usage.
 */
bios.L1DSRAM.createHeap   = true;
bios.L1DSRAM.enableHeapLabel  = true;
bios.L1DSRAM.len  = 0x1;
bios.L1DSRAM[heapLabel] = prog.extern(L1DHEAP);

Re: Unable to change cache size in codec engine.

2009-05-21 Thread Jaya krishnan
Hello,
I remember 64x+  L2 cache  size is 64K (maximum).
Regards
Jayakrishnan

 
 

--- Original Message ---
Sender : bhushansaraf.bhus...@gmail.com
Date   : May 21, 2009 16:19 (GMT+09:00)
Title  : Unable to change cache size in codec engine.

Hello ,
   I am trying to build an application to encode video in mpeg4 format
and also integrate the scale example from the codec engine in the
encode combo server. During the integration fro performance reasons I
want to increase the L2 cache size  from 64k to 128k. My processor is
tms320dm6446.
On building the codec_server I get the error:
Error: Can#39;t set cache to size: 128k
Following is the encode.tcf file:
/*
 * Setup platform-specific memory map, CLK rate, etc.
 */
var mem_ext = [
{
comment:DDRALGHEAP: memory for dynamic algmem allocation,
name:   DDRALGHEAP,
base:   0x8B80,
len:0x0420,// 66MB
space:  code/data
},
{
comment:L1DSRAM: memory for dynamic algmem allocation,
name:   L1DSRAM,
base:   0x11F04000,   //
len:0x1,   // 64k
space:  data
},
{
comment:CACHE_L2,
name:   CACHE_L2,
base:   0x1180,   //
len:0x20,   // 128k
space:  data
},
{
comment:H264ENCSEC1,
name:   H264ENCSEC1,
base:   0x8FA0,
len:0x4140,
space:  code/data
},
{
comment:H264ENCSEC2,
name:   H264ENCSEC2,
base:   0x8FA04140,
len:0x5080,
space:  code/data
},
{
comment:H264ENCSEC3,
name:   H264ENCSEC3,
base:   0x8FA09220,
len:0x6000,
space:  code/data
},
{
comment:H264ENCSEC4,
name:   H264ENCSEC4,
base:   0x8FA1,
len:0x5000,
space:  code/data
},
{
comment:H264ENCSEC5,
name:   H264ENCSEC5,
base:   0x8FA15000,
len:0x3000,
space:  code/data
},
{
comment:H264ENCSEC6,
name:   H264ENCSEC6,
base:   0x8FA18000,
len:0x4040,
space:  code/data
},
{
comment:H264ENCSEC7,
name:   H264ENCSEC7,
base:   0x8FA28000,
len:0x5400,
space:  code/data
},
{
comment:H264ENCSEC8,
name:   H264ENCSEC8,
base:   0x8FA2D400,
len:0x2c00,
space:  code/data
},
{
comment:MPEG4ENCSEC1,
name:   MPEG4ENCSEC1,
base:   0x8FA4,
len:0x0001,
space:  code/data
},
{
comment:MPEG4ENCSEC2,
name:   MPEG4ENCSEC2,
base:   0x8FA5,
len:0x8000,
space:  code/data
},
{
comment:MPEG4ENCSEC3,
name:   MPEG4ENCSEC3,
base:   0x8FA58000,
len:0x8000,
space:  code/data
},
{
comment:MPEG4ENCSEC4,
name:   MPEG4ENCSEC4,
base:   0x8FA6,
len:0x8000,
space:  code/data
},
{
comment:MPEG4ENCSEC5,
name:   MPEG4ENCSEC5,
base:   0x8FA68000,
len:0x8000,
space:  code/data
},
{
comment:MPEG4ENCSEC6,
name:   MPEG4ENCSEC6,
base:   0x8FA7,
len:0x8000,
space:  code/data
},
{
comment:MPEG4ENCSEC7,
name:   MPEG4ENCSEC7,
base:   0x8FA78000,
len:0x0001,
space:  code/data
},

{

comment:DDR: memory for code and data,
name:   DDR,
base:   0x8FB0,
len:0x0030,
space:  code/data
},


{
comment:DSPLINK: memory for DSPLINK code and data,
name:   DSPLINKMEM,
base:   0x8FE0,   // 254MB
len:0x0010,   //   1MB
space:  code/data
},
{
comment:RESET_VECTOR: memory for the reset vector table,
name:   RESET_VECTOR,
base:   0x8FF0,
len:0x0080,
space:  code/data
},
];

/* Specify the L2 memory setting */
var device_regs = {
l2Mode: 128k
};

var params = {
clockRate: 594,
catalogName: ti.catalog.c6000,
deviceName: DM6446,
regs: device_regs,
mem: mem_ext
};

/*
 * Customize generic platform with parameters specified above.
 */
utils.loadPlatform(ti.platforms.generic, params);

/*  ===
 *  Enable heaps and tasks
 *  ===
 */
bios.enableMemoryHeaps(prog);
bios.enableTskManager(prog);

/*  ===
 *  Create heaps in memory segments that are to have heap
 *  ===
 */
bios.DDR.createHeap = true;
bios.DDR.heapSize   = 0x1; // 256K

bios.DDRALGHEAP.createHeap = true;
bios.DDRALGHEAP.heapSize   = bios.DDRALGHEAP.len;

/*
 *  Enable heaps in the L1DSRAM

Re: Unable to change cache size in codec engine.

2009-05-21 Thread Ondrej Pindroch
Refer to tms320dm6446.pdf /p14  (datasheet of TMS320DM6446) DSP has only 
64KB

The DSP Subsystem includes the following features:
· C64x+ DSP CPU
· 32KB L1 Program (L1P)/Cache (up to 32KB)
· 80KB L1 Data (L1D)/Cache (up to 32KB)
· 64KB Unified Mapped RAM/Cache (L2)
· Little endian

Best regards
Ondrej Pindroch



-Original Message-

From: bhushan saraf.bhus...@gmail.com

To: jaya.krish...@samsung.com

Cc: davinci-linux-open-source@linux.davincidsp.com 
davinci-linux-open-source@linux.davincidsp.com

Date: Thu, 21 May 2009 14:23:18 +0530

Subject: Re: Unable to change cache size in codec engine.




I am referring doc spru871j.pdf. In the section Level 2 memory and

cache it is mentioned that the L2 cache size can be configured for

32KB, 64KB, 128KB and 256KB. I presume the L2_CACHE  is same as this.

If there is any other doc whcih specifies that the cache size

configured is limited to 64KB please refer the same to me.



regards,

Bhushan



On Thu, May 21, 2009 at 1:30 PM, Jaya krishnan

jaya.krish...@samsung.com wrote:

 Hello,

 I remember 64x+  L2 cache  size is 64K (maximum).

 Regards

 Jayakrishnan









 --- Original Message ---

 Sender : bhushansaraf.bhus...@gmail.com

 Date   : May 21, 2009 16:19 (GMT+09:00)

 Title  : Unable to change cache size in codec engine.



 Hello ,

   I am trying to build an application to encode video in mpeg4 format

 and also integrate the scale example from the codec engine in the

 encode combo server. During the integration fro performance reasons I

 want to increase the L2 cache size  from 64k to 128k. My processor is

 tms320dm6446.

 On building the codec_server I get the error:

 Error: Can#39;t set cache to size: 128k

 Following is the encode.tcf file:

 /*

  * Setup platform-specific memory map, CLK rate, etc.

  */

 var mem_ext = [

 {

comment:DDRALGHEAP: memory for dynamic algmem allocation,

name:   DDRALGHEAP,

base:   0x8B80,

len:0x0420,// 66MB

space:  code/data

 },

 {

comment:L1DSRAM: memory for dynamic algmem allocation,

name:   L1DSRAM,

base:   0x11F04000,   //

len:0x1,   // 64k

space:  data

 },

 {

comment:CACHE_L2,

name:   CACHE_L2,

base:   0x1180,   //

len:0x20,   // 128k

space:  data

 },

 {

comment:H264ENCSEC1,

name:   H264ENCSEC1,

base:   0x8FA0,

len:0x4140,

space:  code/data

 },

 {

comment:H264ENCSEC2,

name:   H264ENCSEC2,

base:   0x8FA04140,

len:0x5080,

space:  code/data

 },

 {

comment:H264ENCSEC3,

name:   H264ENCSEC3,

base:   0x8FA09220,

len:0x6000,

space:  code/data

 },

 {

comment:H264ENCSEC4,

name:   H264ENCSEC4,

base:   0x8FA1,

len:0x5000,

space:  code/data

 },

 {

comment:H264ENCSEC5,

name:   H264ENCSEC5,

base:   0x8FA15000,

len:0x3000,

space:  code/data

 },

 {

comment:H264ENCSEC6,

name:   H264ENCSEC6,

base:   0x8FA18000,

len:0x4040,

space:  code/data

 },

 {

comment:H264ENCSEC7,

name:   H264ENCSEC7,

base:   0x8FA28000,

len:0x5400,

space:  code/data

 },

 {

comment:H264ENCSEC8,

name:   H264ENCSEC8,

base:   0x8FA2D400,

len:0x2c00,

space:  code/data

 },

 {

comment:MPEG4ENCSEC1,

name:   MPEG4ENCSEC1,

base:   0x8FA4,

len:0x0001,

space:  code/data

 },

 {

comment:MPEG4ENCSEC2,

name:   MPEG4ENCSEC2,

base:   0x8FA5,

len:0x8000,

space:  code/data

 },

 {

comment:MPEG4ENCSEC3,

name:   MPEG4ENCSEC3,

base:   0x8FA58000,

len:0x8000,

space:  code/data

 },

 {

comment:MPEG4ENCSEC4,

name:   MPEG4ENCSEC4,

base:   0x8FA6,

len:0x8000,

space:  code/data

 },

 {

comment:MPEG4ENCSEC5,

name:   MPEG4ENCSEC5,

base:   0x8FA68000,

len:0x8000,

space:  code/data

 },

 {

comment:MPEG4ENCSEC6,

name:   MPEG4ENCSEC6,

base:   0x8FA7,

len:0x8000,

space:  code/data

 },

 {

comment:MPEG4ENCSEC7,

name:   MPEG4ENCSEC7,

base:   0x8FA78000,

len:0x0001,

space:  code/data

 },



 {



comment:DDR: memory for code and data,

name:   DDR,

base:   0x8FB0,

len:0x0030,

space:  code/data

 },





 {

comment:DSPLINK: memory for DSPLINK code and data,

name:   DSPLINKMEM,

base

Re: Unable to change cache size in codec engine.

2009-05-21 Thread bhushan
thanks

On Thu, May 21, 2009 at 2:39 PM, Ondrej Pindroch opindr...@softhard.sk wrote:
 Refer to tms320dm6446.pdf /p14  (datasheet of TMS320DM6446) DSP has only
 64KB

 The DSP Subsystem includes the following features:
 · C64x+ DSP CPU
 · 32KB L1 Program (L1P)/Cache (up to 32KB)
 · 80KB L1 Data (L1D)/Cache (up to 32KB)
 · 64KB Unified Mapped RAM/Cache (L2)
 · Little endian
 Best regards

 Ondrej Pindroch


 -Original Message-
 From: bhushan saraf.bhus...@gmail.com
 To: jaya.krish...@samsung.com
 Cc: davinci-linux-open-source@linux.davincidsp.com
 davinci-linux-open-source@linux.davincidsp.com
 Date: Thu, 21 May 2009 14:23:18 +0530
 Subject: Re: Unable to change cache size in codec engine.

 I am referring doc spru871j.pdf. In the section Level 2 memory and
 cache it is mentioned that the L2 cache size can be configured for
 32KB, 64KB, 128KB and 256KB. I presume the L2_CACHE  is same as this.
 If there is any other doc whcih specifies that the cache size
 configured is limited to 64KB please refer the same to me.

 regards,
 Bhushan

 On Thu, May 21, 2009 at 1:30 PM, Jaya krishnan
 jaya.krish...@samsung.com wrote:
 Hello,
 I remember 64x+  L2 cache  size is 64K (maximum).
 Regards
 Jayakrishnan




 --- Original Message ---
 Sender : bhushansaraf.bhus...@gmail.com
 Date   : May 21, 2009 16:19 (GMT+09:00)
 Title  : Unable to change cache size in codec engine.

 Hello ,
   I am trying to build an application to encode video in mpeg4 format
 and also integrate the scale example from the codec engine in the
 encode combo server. During the integration fro performance reasons I
 want to increase the L2 cache size  from 64k to 128k. My processor is
 tms320dm6446.
 On building the codec_server I get the error:
 Error: Can#39;t set cache to size: 128k
 Following is the encode.tcf file:
 /*
  * Setup platform-specific memory map, CLK rate, etc.
  */
 var mem_ext = [
 {
    comment:    DDRALGHEAP: memory for dynamic algmem allocation,
    name:       DDRALGHEAP,
    base:       0x8B80,
    len:        0x0420,// 66MB
    space:      code/data
 },
 {
    comment:    L1DSRAM: memory for dynamic algmem allocation,
    name:       L1DSRAM,
    base:       0x11F04000,   //
    len:        0x1,   // 64k
    space:      data
 },
 {
    comment:    CACHE_L2,
    name:       CACHE_L2,
    base:       0x1180,   //
    len:        0x20,   // 128k
    space:      data
 },
 {
    comment:    H264ENCSEC1,
    name:       H264ENCSEC1,
    base:       0x8FA0,
    len:        0x4140,
    space:      code/data
 },
 {
    comment:    H264ENCSEC2,
    name:       H264ENCSEC2,
    base:       0x8FA04140,
    len:        0x5080,
    space:      code/data
 },
 {
    comment:    H264ENCSEC3,
    name:       H264ENCSEC3,
    base:       0x8FA09220,
    len:        0x6000,
    space:      code/data
 },
 {
    comment:    H264ENCSEC4,
    name:       H264ENCSEC4,
    base:       0x8FA1,
    len:        0x5000,
    space:      code/data
 },
 {
    comment:    H264ENCSEC5,
    name:       H264ENCSEC5,
    base:       0x8FA15000,
    len:        0x3000,
    space:      code/data
 },
 {
    comment:    H264ENCSEC6,
    name:       H264ENCSEC6,
    base:       0x8FA18000,
    len:        0x4040,
    space:      code/data
 },
 {
    comment:    H264ENCSEC7,
    name:       H264ENCSEC7,
    base:       0x8FA28000,
    len:        0x5400,
    space:      code/data
 },
 {
    comment:    H264ENCSEC8,
    name:       H264ENCSEC8,
    base:       0x8FA2D400,
    len:        0x2c00,
    space:      code/data
 },
 {
    comment:    MPEG4ENCSEC1,
    name:       MPEG4ENCSEC1,
    base:       0x8FA4,
    len:        0x0001,
    space:      code/data
 },
 {
    comment:    MPEG4ENCSEC2,
    name:       MPEG4ENCSEC2,
    base:       0x8FA5,
    len:        0x8000,
    space:      code/data
 },
 {
    comment:    MPEG4ENCSEC3,
    name:       MPEG4ENCSEC3,
    base:       0x8FA58000,
    len:        0x8000,
    space:      code/data
 },
 {
    comment:    MPEG4ENCSEC4,
    name:       MPEG4ENCSEC4,
    base:       0x8FA6,
    len:        0x8000,
    space:      code/data
 },
 {
    comment:    MPEG4ENCSEC5,
    name:       MPEG4ENCSEC5,
    base:       0x8FA68000,
    len:        0x8000,
    space:      code/data
 },
 {
    comment:    MPEG4ENCSEC6,
    name:       MPEG4ENCSEC6,
    base:       0x8FA7,
    len:        0x8000,
    space:      code/data
 },
 {
    comment:    MPEG4ENCSEC7,
    name:       MPEG4ENCSEC7,
    base:       0x8FA78000,
    len:        0x0001,
    space:      code/data
 },

 {

    comment:    DDR: memory for code and data,
    name:       DDR,
    base:       0x8FB0,
    len:        0x0030,
    space:      code/data
 },


 {
    comment:    DSPLINK: memory for DSPLINK code and data,
    name:       DSPLINKMEM,
    base:       0x8FE0,   // 254MB
    len:        0x0010,   //   1MB
    space:      code