I would suggest hooking up CCS and looking at what's going on with the DSP when 
this happens.  The DSP server needs to get to a "handshake" point with the ARM, 
and it appears that the ARM is timing out after not receiving a response from 
the DSP (error code DSP_EBASE + 0x17 is a timeout error).

Perhaps you need to use a different power control option in CE, or use the LPM 
power manager from CE to turn on the DSP before running the ARM app.

Also, make sure you're using a recent CE/DSPLink combo that supports the 2.6.28 
kernel.

- Rob

________________________________
From: davinci-linux-open-source-bounces+rtivy=ti....@linux.davincidsp.com 
[mailto:davinci-linux-open-source-bounces+rtivy=ti....@linux.davincidsp.com] On 
Behalf Of Jeremy Larsen
Sent: Friday, April 10, 2009 2:08 PM
To: davinci-linux-open-source
Subject: Codec Engine DSP_ETIMEOUT When loading DSP

I am using a DM6446 on a custom board and with a custom 2.6.28 Kernel and 
trying to get Codec Engine working.
I have reconfigured the memory map for 64MB of RAM.
To change the memory map I have followed the directions found here 
http://focus.ti.com/lit/an/spraaq6/spraaq6.pdf
I can succesfully run DSPLINK and CMEM examples.
When I try to run the video_copy (or any other) example in codec engine I get 
the following:



@0x00046b00:[T:0x4001cf40] OG - Global_atexit> enter (fxn=0xad74)
@0x00046ca4:[T:0x4001cf40] OM - Memory_alloc> Enter(0x18)
@0x00046dfd:[T:0x4001cf40] OM - Memory_alloc> return (0x43890)
@0x000474a1:[T:0x4001cf40] OG - Global_atexit> enter (fxn=0x1790c)
@0x000475e3:[T:0x4001cf40] OM - Memory_alloc> Enter(0x18)
@0x0004768b:[T:0x4001cf40] OM - Memory_alloc> return (0x438e0)
@0x00047712:[T:0x4001cf40] OG - Global_atexit> enter (fxn=0x167b8)
@0x00047808:[T:0x4001cf40] OG - Global_atexit> enter (fxn=0x19040)
@0x00047918:[T:0x4001cf40] ti.sdo.ce.osal.Sem - Sem_create> count: 0
@0x000479b0:[T:0x4001cf40] OM - Memory_alloc> Enter(0x14)
@0x00047a36:[T:0x4001cf40] OM - Memory_alloc> return (0x43960)
@0x00047ad8:[T:0x4001cf40] ti.sdo.ce.osal.Sem - Leaving Sem_create> sem[0x43960]
@0x00047b61:[T:0x4001cf40] ti.sdo.ce.osal.Sem - Sem_create> count: 0
@0x00047bd6:[T:0x4001cf40] OM - Memory_alloc> Enter(0x14)
@0x00047c4f:[T:0x4001cf40] OM - Memory_alloc> return (0x43978)
@0x00047cc5:[T:0x4001cf40] ti.sdo.ce.osal.Sem - Leaving Sem_create> sem[0x43978]
@0x00047d37:[T:0x4001cf40] OM - Memory_alloc> Enter(0x18)
@0x00047db1:[T:0x4001cf40] OM - Memory_alloc> return (0x43990)
@0x00047e2b:[T:0x4001cf40] OT - Thread_create> Enter (fxn=0x14f90, attrs=0x0)
@0x00047ea2:[T:0x4001cf40] OM - Memory_alloc> Enter(0x64)
@0x00047f1f:[T:0x4001cf40] OM - Memory_alloc> return (0x439b0)
@0x000482dd:[T:0x40960490] OP - daemon> thread created.
@0x000483d3:[T:0x40960490] OP - getCmd_d> Enter (proc=0x4095fde0)
@0x00048470:[T:0x40960490] ti.sdo.ce.osal.Sem - Entered Sem_pend> sem[0x43960] 
timeout[0xffffffff]
@0x00048568:[T:0x4001cf40] OT - Thread_create> Exit (task=0x439b0)
@0x0004860e:[T:0x4001cf40] OG - Global_atexit> enter (fxn=0x14980)
@0x000486b2:[T:0x4001cf40] OG - Global_atexit> enter (fxn=0x16d04)
@0x000487a0:[T:0x4001cf40] ti.sdo.ce.alg - ALG_init> Enter
@0x0004882f:[T:0x4001cf40] OG - Global_atexit> enter (fxn=0x145cc)
@0x000488b9:[T:0x4001cf40] ti.sdo.ce.alg - ALG_init> Exit
@0x0004892c:[T:0x4001cf40] OG - Global_atexit> enter (fxn=0x139f8)
@0x000489bf:[T:0x4001cf40] OM - Memory_alloc> Enter(0x18)
@0x00048a48:[T:0x4001cf40] OM - Memory_alloc> return (0x43b90)
@0x00048acb:[T:0x4001cf40] OG - Global_atexit> enter (fxn=0x19530)
@0x00048bc8:[T:0x4001cf40] OG - Global_atexit> enter (fxn=0x10e8c)
@0x00048c6a:[T:0x4001cf40] OM - Memory_alloc> Enter(0x18)
@0x00048cf4:[T:0x4001cf40] OM - Memory_alloc> return (0x43bf0)
@0x00048d7a:[T:0x4001cf40] OM - Memory_alloc> Enter(0x18)
@0x00048dfb:[T:0x4001cf40] OM - Memory_alloc> return (0x43c10)
@0x00048e75:[T:0x4001cf40] OM - Memory_alloc> Enter(0x18)
@0x00048ef3:[T:0x4001cf40] OM - Memory_alloc> return (0x43c30)
@0x00048fd2:[T:0x4001cf40] CS - Server_init()
@0x0004905a:[T:0x4001cf40] CS - Server_init> Global_useLinkArbiter = 0
@0x000490dd:[T:0x4001cf40] OG - Global_atexit> enter (fxn=0xf16c)
@0x000494bb:[T:0x4001cf40] OG - Global_atexit> enter (fxn=0xcb90)
@0x000495e8:[T:0x4001cf40] CE - Engine_open> Enter('video_copy', 0x0, 
0xbecb8bf4)
@0x00049691:[T:0x4001cf40] OM - Memory_alloc> Enter(0x2c)
@0x0004971f:[T:0x4001cf40] OM - Memory_alloc> return (0x43cb0)
@0x000497a0:[T:0x4001cf40] CE - rserverOpen('video_copy.x64P'), count = 0
@0x00049821:[T:0x4001cf40] OP - Processor_create> 
Enter(imageName='video_copy.x64P', linkCfg='(null)', attrs=0xbecb8bd8)
@0x00049c98:[T:0x4001cf40] OM - Memory_alloc> Enter(0x24)
@0x00049d67:[T:0x4001cf40] OM - Memory_alloc> return (0x43ce0)
@0x00049dfb:[T:0x4001cf40] OP - doCmd> Enter (cmdId=1, proc=0x43ce0)
@0x00049e83:[T:0x4001cf40] ti.sdo.ce.osal.Sem - Entered Sem_post> sem[0x43960]
@0x00049f7b:[T:0x40960490] ti.sdo.ce.osal.Sem - Leaving Sem_pend> sem[0x43960] 
status[0]
@0x0004a038:[T:0x40960490] OP - getCmd_d> Exit (result=1)
@0x0004a0c4:[T:0x40960490] OP - Processor_create_d> Enter(proc=0x43ce0)
@0x0004a145:[T:0x40960490] OP - Processor_create_d> Initializing DSP PROC...
@0x0004a1cd:[T:0x40960490] OP - Processor_create_d> Using DspLink config data 
for entry #0 [server 'video_copy.x64P']
@0x0004a262:[T:0x40960490] OM - Memory_alloc> Enter(0xe0)
@0x0004a2f2:[T:0x40960490] OM - Memory_alloc> return (0x43d08)
@0x0004a3d4:[T:0x40960490] OP - Processor_create_d> Adding DSP segment #0 to 
Link configuration: name='DDR2', startAddress=0x83a00000, sizeInBytes=0x400000, 
shared=1, syncd=0
@0x0004a48c:[T:0x40960490] OP - Processor_create_d> Adding DSP segment #1 to 
Link configuration: name='DSPLINKMEM', startAddress=0x83f00080, 
sizeInBytes=0xfff80, shared=1, syncd=0
@0x0004a532:[T:0x40960490] OP - Processor_create_d> Adding DSP segment #2 to 
Link configuration: name='RESET_VECTOR', startAddress=0x83f00000, 
sizeInBytes=0x80, shared=1, syncd=0
@0x0004a5d3:[T:0x40960490] OP - Processor_create_d> Adding DSP segment #3 to 
Link configuration: name='DDRALGHEAP', startAddress=0x82800000, 
sizeInBytes=0x1200000, shared=0, syncd=0
@0x0004a671:[T:0x40960490] OP - Processor_create_d> DODSPCTRL was=1; now=0
@0x0004b115:[T:0x4001cf40] ti.sdo.ce.osal.Sem - Leaving Sem_post> sem[0x43960]
@0x0004b73c:[T:0x4001cf40] ti.sdo.ce.osal.Sem - Entered Sem_pend> sem[0x43978] 
timeout[0xffffffff]
@0x001362ba:[T:0x40960490] OP - Processor_create_d> Attaching to DSP PROC...
@0x0013f721:[T:0x40960490] OP - Processor_create_d> Opening MSGQ pool...
@0x0013fc33:[T:0x40960490] OP - Processor_create_d> Loading video_copy.x64P on 
DSP (1 args)...
@0x008076ef:[T:0x40960490] OP - Processor_create_d> Starting DSP PROC...
@0x01c3c638:[T:0x40960490] OP - Processor_create_d> Loading and starting DSP 
server 'video_copy.x64P' FAILED, status=[0x80008017] (look for error code 
'DSP_EBASE + 0x17' in dsplink*/packages/dsplink/gpp/inc/usr/errbase.h)
@0x01c3c7e3:[T:0x40960490] OP - Processor_delete_d> Enter (proc=0x43ce0)
@0x01c3d5e0:[T:0x40960490] OP - Processor_delete_d> Closing remote transport...
@0x01c3d6d1:[T:0x40960490] OP - Processor_delete_d> Closing remote transport 
FAILED, status=0x80008000.
@0x01c3d773:[T:0x40960490] OP - Processor_delete_d> Stopping DSP...
@0x01c3d817:[T:0x40960490] OP - Processor_delete_d> Stopping DSP FAILED, 
status=0x80008000
@0x01c3d8a0:[T:0x40960490] OP - Processor_delete_d> Closing pool...
@0x01c3dbdf:[T:0x40960490] OP - Processor_delete_d> Detaching from DSP...
@0x01c40638:[T:0x40960490] OP - Processor_delete_d> Destroying DSP... (object, 
that is)
@0x01c40c3a:[T:0x40960490] OM - Memory_free> Enter(0x43d08, 0x0)
@0x01c40d14:[T:0x40960490] OM - Memory_free> return (0x1)
@0x01c40da6:[T:0x40960490] OP - Processor_delete_d> return
@0x01c40e24:[T:0x40960490] OP - Processor_create_d> return (0)
@0x01c40eac:[T:0x40960490] ti.sdo.ce.osal.Sem - Entered Sem_post> sem[0x43978]
@0x01c40f7e:[T:0x4001cf40] ti.sdo.ce.osal.Sem - Leaving Sem_pend> sem[0x43978] 
status[0]
@0x01c4102a:[T:0x4001cf40] OP - doCmd> Exit (result=2)
@0x01c410b1:[T:0x4001cf40] OP - Processor_delete> Enter(proc=0x43ce0)
@0x01c41134:[T:0x4001cf40] OP - Processor_delete(0x43ce0) freeing object ...
@0x01c411b5:[T:0x4001cf40] OM - Memory_free> Enter(0x43ce0, 0x24)
@0x01c4123a:[T:0x4001cf40] OM - Memory_free> return (0x1)
@0x01c412b8:[T:0x4001cf40] OP - Processor_delete> return.
@0x01c4132e:[T:0x4001cf40] CE - rserverOpen: can't start 'video_copy.x64P'; 
Processor_create failed
@0x01c413ac:[T:0x4001cf40] CE - rserverOpen('video_copy.x64P'): 0x0 done.
@0x01c41426:[T:0x4001cf40] CE - Engine_close(0x43cb0)
@0x01c414a4:[T:0x4001cf40] OM - Memory_free> Enter(0x43cb0, 0x2c)
@0x01c41527:[T:0x4001cf40] OM - Memory_free> return (0x1)
@0x01c415a1:[T:0x4001cf40] CE - Engine_open> return(0)
@0x01c41adc:[T:0x4001cf40] OG - Global_exit> enter
@0x01c41b97:[T:0x4001cf40] OG - Global_exit> calling function *0xcb90()...
@0x01c41c4c:[T:0x4001cf40] OG - Global_exit> calling function *0xf16c()...
@0x01c41ce3:[T:0x4001cf40] OG - Global_exit> calling function *0x10e8c()...
@0x01c41d9b:[T:0x4001cf40] OM - Memory_free> Enter(0x43bf0, 0x18)
@0x01c41e36:[T:0x4001cf40] OM - Memory_free> return (0x1)
@0x01c41f66:[T:0x4001cf40] OM - Memory_free> Enter(0x43c10, 0x18)
@0x01c41ff9:[T:0x4001cf40] OM - Memory_free> return (0x1)
@0x01c4207d:[T:0x4001cf40] OM - Memory_free> Enter(0x43c30, 0x18)
@0x01c42103:[T:0x4001cf40] OM - Memory_free> return (0x1)
@0x01c42188:[T:0x4001cf40] OG - Global_exit> calling function *0x19530()...
@0x01c4225c:[T:0x4001cf40] OG - Global_exit> calling function *0x139f8()...
@0x01c422f9:[T:0x4001cf40] OG - Global_exit> calling function *0x145cc()...
@0x01c42382:[T:0x4001cf40] OG - Global_exit> calling function *0x16d04()...
@0x01c42403:[T:0x4001cf40] OG - Global_exit> calling function *0x14980()...
@0x01c42481:[T:0x4001cf40] OP - doCmd> Enter (cmdId=3, proc=0x0)
@0x01c42503:[T:0x4001cf40] ti.sdo.ce.osal.Sem - Entered Sem_post> sem[0x43960]
@0x01c42590:[T:0x4001cf40] ti.sdo.ce.osal.Sem - Leaving Sem_post> sem[0x43960]
@0x01c42613:[T:0x4001cf40] ti.sdo.ce.osal.Sem - Entered Sem_pend> sem[0x43978] 
timeout[0xffffffff]
@0x01c426d1:[T:0x40960490] ti.sdo.ce.osal.Sem - Leaving Sem_post> sem[0x43978]
@0x01c42778:[T:0x40960490] OP - getCmd_d> Enter (proc=0x4095fde0)
@0x01c42803:[T:0x40960490] ti.sdo.ce.osal.Sem - Entered Sem_pend> sem[0x43960] 
timeout[0xffffffff]
@0x01c4288b:[T:0x40960490] ti.sdo.ce.osal.Sem - Leaving Sem_pend> sem[0x43960] 
status[0]
@0x01c42912:[T:0x40960490] OP - getCmd_d> Exit (result=3)
@0x01c42994:[T:0x40960490] ti.sdo.ce.osal.Sem - Entered Sem_post> sem[0x43978]
@0x01c42a5f:[T:0x4001cf40] ti.sdo.ce.osal.Sem - Leaving Sem_pend> sem[0x43978] 
status[0]
@0x01c42b05:[T:0x4001cf40] OP - doCmd> Exit (result=1)
@0x01c42b89:[T:0x4001cf40] OT - Thread_delete> Enter (task=0x439b0)
@0x01c42c8c:[T:0x4001cf40] OT - Thread_delete> pthread_cancel (0x0)
@0x01c42f50:[T:0x4001cf40] OT - Thread_delete> pthread_join (0x0)
@0x01c43013:[T:0x4001cf40] OM - Memory_free> Enter(0x439b0, 0x64)
@0x01c430ae:[T:0x4001cf40] OM - Memory_free> return (0x1)
@0x01c43131:[T:0x4001cf40] OT - Thread_delete> Exit (task=0x439b0)
@0x01c431ad:[T:0x4001cf40] ti.sdo.ce.osal.Sem - Entered Sem_delete> sem[0x43960]
@0x01c43259:[T:0x4001cf40] OM - Memory_free> Enter(0x43960, 0x14)
@0x01c432f4:[T:0x4001cf40] OM - Memory_free> return (0x1)
@0x01c43374:[T:0x4001cf40] ti.sdo.ce.osal.Sem - Leaving Sem_delete>
@0x01c433e3:[T:0x4001cf40] ti.sdo.ce.osal.Sem - Entered Sem_delete> sem[0x43978]
@0x01c43461:[T:0x4001cf40] OM - Memory_free> Enter(0x43978, 0x14)
@0x01c434f3:[T:0x4001cf40] OM - Memory_free> return (0x1)
@0x01c43575:[T:0x4001cf40] ti.sdo.ce.osal.Sem - Leaving Sem_delete>
@0x01c435e7:[T:0x4001cf40] OM - Memory_free> Enter(0x43990, 0x18)
@0x01c43668:[T:0x4001cf40] OM - Memory_free> return (0x1)
@0x01c436ec:[T:0x4001cf40] OG - Global_exit> calling function *0x19040()...
@0x01c43798:[T:0x4001cf40] OG - Global_exit> calling function *0x167b8()...
@0x01c4382e:[T:0x4001cf40] OM - Memory_free> Enter(0x438e0, 0x18)
@0x01c438b6:[T:0x4001cf40] OM - Memory_free> return (0x1)
@0x01c43938:[T:0x4001cf40] OG - Global_exit> calling function *0x1790c()...
@0x01c439e3:[T:0x4001cf40] OM - Memory_free> Enter(0x43890, 0x18)
@0x01c43a7d:[T:0x4001cf40] OM - Memory_free> return (0x1)
@0x01c43b08:[T:0x4001cf40] OG - Global_exit> calling function *0xad74()...



Does anyone have suggestions as to where to start to dig first?



________________________________
Rediscover Hotmail(r): Get e-mail storage that grows with you. Check it 
out.<http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage1_042009>
_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to