This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

App hangs when using DMAN3 in the universal_copy example

 

Hi, all

I'm using the DM6446 EVM. I've successfully realized the function of universal_copy by utilizing memcpy(), and now I want to accomplished it with DMAN3. By referencing the code downloaded from

http://processors.wiki.ti.com/index.php/C64x%2B_iUniversal_Codec_Creation_-_from_memcpy_to_Canny_Edge_Detector

 , in UNIVERSAL_process() I changed "memcpy()" into 

"ACPY3_activate(uniObj->dmaHandle1D1D8B);

ACPY3_Copy(uniObj->dmaHandle1D1D8B,(Uns)outBufs->descs[0].buf, (Uns)inBufs->descs[0].buf, numInBytes);

ACPY3_deactivate(uniObj->dmaHandle1D1D8B);"

and the corresponding codec and server are created. However, when the app runs, it hangs all the time with no video on the screen or error messages in HyperTerminal. There is no responses even "Ctrl-C" is pressed. Can any body help me? The CE_DEBUG=2 information is attached below.

Thanks in advance.

Yulin

 

MontaVista(R) Linux(R) Professional Edition 5.0.0 (0801921)

 

192.168.0.188 login: root

Last login: Thu Jan  1 12:01:50 2004 on console

Linux 192.168.0.188 2.6.18_pro500-davinci_evm-arm_v5t_le #1 PREEMPT Wed May 20 0

1:14:17 IST 2009 armv5tejl GNU/Linux

root@192.168.0.188:~# cd /opt

root@192.168.0.188:/opt# ./loadmodules.sh

CMEMK module: built on Apr 20 2009 at 16:28:10

  Reference Linux version 2.6.18

  File /db/atree/library/trees/ce/ce-m06x/imports/ti/sdo/linuxutils/cmem/src/mod

ule/cmemk.c

ioremap_nocache(0x87600000, 16777216)=0xc8000000

allocated heap buffer 0xc8000000 of size 0x5b1000

cmem initialized 6 pools between 0x87600000 and 0x88600000

dsplinkk: no version for "struct_module" found: kernel tainted.

DSPLINK Module (1.61.03) created on Date: Apr 16 2009 Time: 18:22:23

 

root@192.168.0.188:/opt# CE_DEBUG=2 ./encodedecode -r 300x300

Universal_copy demo started.

@0,261,908us: [+4 T:0x4001f930] OG - Global_init> This program was built with the following packages:

@0,262,483us: [+4 T:0x4001f930] OG -     package gnu.targets.rts470MV (/home/160syl/dvsdk_2_00_00_22/xdctools_3_10_05_61/packages/gnu/targets/rts470MV/) [1,0,0,0,1242339149665]

@0,262,651us: [+4 T:0x4001f930] OG -     package ti.sdo.ce.global (/home/160syl/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/global/) [1,0,0,1240276693464]

@0,262,784us: [+4 T:0x4001f930] OG -     package ti.xdais.dm (/home/160syl/dvsdk_2_00_00_22/xdais_6_23/packages/ti/xdais/dm/)[1,0,5,1236972452910]

@0,262,908us: [+4 T:0x4001f930] OG -     package ti.sdo.utils.trace (/home/160syl/dvsdk_2_00_00_22/framework_components_2_23_01/packages/ti/sdo/utils/trace/) [1,0,0,1240266922890]

@0,263,034us: [+4 T:0x4001f930] OG -     package ti.sdo.ce.utils.xdm (/home/160syl/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/utils/xdm/) [1,0,2,1240276919490]

@0,263,253us: [+4 T:0x4001f930] OG -     package dsplink.gpp (/home/160syl/dvsdk_2_00_00_22/dsplink-1_61_03-prebuilt/packages/dsplink/gpp/)[5,0,0,1239931267000]

@0,263,381us: [+4 T:0x4001f930] OG -     package ti.sdo.linuxutils.cmem (/home/160syl/dvsdk_2_00_00_22/linuxutils_2_23_01/packages/ti/sdo/linuxutils/cmem/) [2,2,0,1240253001679]

@0,263,507us: [+4 T:0x4001f930] OG -     package ti.xdais (/home/160syl/dvsdk_2_00_00_22/xdais_6_23/packages/ti/xdais/) [1,2,1,1236972427008]

@0,263,689us: [+4 T:0x4001f930] OG -     package ti.sdo.ce.node (/home/160syl/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/node/) [1,0,0,1240276734858]

@0,263,821us: [+4 T:0x4001f930] OG -     package ti.sdo.fc.global (/home/160syl/dvsdk_2_00_00_22/framework_components_2_23_01/packages/ti/sdo/fc/global/) [1,0,0,1240266696499]

@0,263,949us: [+4 T:0x4001f930] OG -     package ti.sdo.fc.dman3 (/home/160syl/dvsdk_2_00_00_22/framework_components_2_23_01/packages/ti/sdo/fc/dman3/) [1,0,4,1240266658662]

@0,264,071us: [+4 T:0x4001f930] OG -     package ti.sdo.fc.memutils (/home/160syl/dvsdk_2_00_00_22/framework_components_2_23_01/packages/ti/sdo/fc/memutils/) [1,0,0,1240266801007]

@0,264,197us: [+4 T:0x4001f930] OG -     package ti.sdo.fc.acpy3 (/home/160syl/dvsdk_2_00_00_22/framework_components_2_23_01/packages/ti/sdo/fc/acpy3/) [1,0,4,1240266659108]

@0,264,316us: [+4 T:0x4001f930] OG -     package gnu.targets (/home/160syl/dvsdk_2_00_00_22/xdctools_3_10_05_61/packages/gnu/targets/)[1,0,1,1242339114958]

@0,264,435us: [+4 T:0x4001f930] OG -     package ti.catalog.arm (/home/160syl/dvsdk_2_00_00_22/xdctools_3_10_05_61/packages/ti/catalog/arm/)[1,0,1,0,0]

@0,264,552us: [+4 T:0x4001f930] OG -     package ti.platforms.evmDM6446 (/home/160syl/dvsdk_2_00_00_22/xdctools_3_10_05_61/packages/ti/platforms/evmDM6446/) [1,0,0,1,0]

@0,264,669us: [+4 T:0x4001f930] OG -     package ti.sdo.ce.osal (/home/160syl/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/osal/) [2,0,2,1240276730877]

@0,264,788us: [+4 T:0x4001f930] OG -     package ti.sdo.ce.osal.linux (/home/160syl/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/osal/linux/) [2,0,1,1240276736840]

@0,264,907us: [+4 T:0x4001f930] OG -     package ti.sdo.ce.ipc (/home/160syl/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/ipc/) [2,0,1,1240276698961]

@0,265,027us: [+4 T:0x4001f930] OG -     package ti.sdo.ce.ipc.dsplink (/home/160syl/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/ipc/dsplink/) [2,0,1,1240276714152]

@0,265,153us: [+4 T:0x4001f930] OG -     package ti.sdo.ce.alg (/home/160syl/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/alg/) [1,0,1,1240276276798]

@0,265,272us: [+4 T:0x4001f930] OG -     package ti.sdo.ce (/home/160syl/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/)[1,0,6,1240276276491]

@0,265,389us: [+4 T:0x4001f930] OG -     package ti.sdo.ce.universal (/home/160syl/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/universal/) [1,0,0,1240276910780]

@0,265,508us: [+4 T:0x4001f930] OG -     package hit.irisrecognition (/home/160syl/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/codecs/hit/irisrecognition/) [1,0,0,0]

@0,649,883us: [+4 T:0x4001f930] OG -     package ti.sdo.ce.speech (/home/160syl/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/speech/) [1,0,2,1240276762193]

@0,650,157us: [+4 T:0x4001f930] OG -     package ti.sdo.ce.speech1 (/home/160syl/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/speech1/) [1,0,1,1240276763928]

@0,650,295us: [+4 T:0x4001f930] OG -     package ti.sdo.ce.audio (/home/160syl/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/audio/) [1,0,2,1240276296374]

@0,650,422us: [+4 T:0x4001f930] OG -     package ti.sdo.ce.audio1 (/home/160syl/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/audio1/) [1,0,1,1240276296900]

@0,650,545us: [+4 T:0x4001f930] OG -     package ti.sdo.ce.video (/home/160syl/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/video/) [1,0,3,1240276930771]

@0,650,664us: [+4 T:0x4001f930] OG -     package ti.sdo.ce.video1 (/home/160syl/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/video1/) [1,0,2,1240276935900]

@0,650,785us: [+4 T:0x4001f930] OG -     package ti.sdo.ce.video2 (/home/160syl/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/video2/) [1,0,2,1240276933444]

@0,650,904us: [+4 T:0x4001f930] OG -     package ti.sdo.ce.image (/home/160syl/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/image/) [1,0,3,1240276700525]

@0,651,023us: [+4 T:0x4001f930] OG -     package ti.sdo.ce.image1 (/home/160syl/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/image1/) [1,0,1,1240276698808]

@0,651,145us: [+4 T:0x4001f930] OG -     package ti.sdo.dmai (/home/160syl/dvsdk_2_00_00_22/dmai_1_20_00_06/packages/ti/sdo/dmai/) [1,0,0,1284866196000]

@0,651,300us: [+4 T:0x4001f930] OG -     package ti.sdo.simplewidget (/home/160syl/dvsdk_2_00_00_22/dvsdk_demos_revised_by_syl_2/packages/ti/sdo/simplewidget/)[]

@0,651,426us: [+4 T:0x4001f930] OG -     package ti.sdo.ce.bioslog (/home/160syl/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/bioslog/) [1,0,1,1240276303166]

@0,651,547us: [+4 T:0x4001f930] OG -     package ti.sdo.ce.utils.trace (/home/160syl/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/utils/trace/) [1,0,1,1240276915917]

@0,651,670us: [+4 T:0x4001f930] OG -     package encodedecode_config (/home/160syl/dvsdk_2_00_00_22/dvsdk_demos_revised_by_syl_2/dm6446/encodedecode/encodedecode_config/) []

@0,658,059us: [+0 T:0x4001f930] ti.sdo.ce.osal.Sem - Sem_create> count: 0

@0,658,375us: [+0 T:0x4001f930] ti.sdo.ce.osal.Sem - Leaving Sem_create> sem[0x651c0]

@0,658,533us: [+0 T:0x4001f930] ti.sdo.ce.osal.Sem - Sem_create> count: 0

@0,658,667us: [+0 T:0x4001f930] ti.sdo.ce.osal.Sem - Leaving Sem_create> sem[0x651d8]

@0,658,805us: [+0 T:0x4001f930] OT - Thread_create> Enter (fxn=0x2e55c, attrs=0x0)

@0,659,688us: [+0 T:0x4001f930] OT - Thread_create> Exit (task=0x65210)

@0,660,208us: [+1 T:0x40bc8490] OP - daemon> thread created.

@0,660,378us: [+0 T:0x40bc8490] OP - getCmd_d> Enter (proc=0x40bc7dfc)

@0,660,516us: [+0 T:0x40bc8490] ti.sdo.ce.osal.Sem - Entered Sem_pend> sem[0x651c0] timeout[0xffffffff]

@0,660,938us: [+0 T:0x4001f930] ti.sdo.ce.alg - ALG_init> Enter

@0,661,111us: [+0 T:0x4001f930] ti.sdo.ce.alg - ALG_init> Exit

@0,661,453us: [+6 T:0x4001f930] CE - Engine_init> CE debugging on (CE_DEBUG=2; allowed CE_DEBUG levels: 1=min, 2=good, 3=max)

@0,668,017us: [+0 T:0x4001f930] CS - Server_init()

@0,668,281us: [+0 T:0x4001f930] CS - Server_init> Global_useLinkArbiter = 0TraceUtil_start> note: CE_DEBUG env. var is set, so TraceUtil is not active (unset CE_DEBUG if you need TraceUtil)

@1,057,964us: [+2 T:0x4001f930] ti.sdo.dmai - [BufTab] Allocating BufTab for 1 buffers

@1,058,486us: [+2 T:0x4001f930] ti.sdo.dmai - [Buffer] Set user pointer 0x40bc9000 (physical 0x87200000)

@1,060,057us: [+2 T:0x4001f930] ti.sdo.dmai - [Display] Display buffer 0 mappedto 0x40bc9000 has physical address 0x40025000

@1,110,401us: [+2 T:0x413f5490] ti.sdo.dmai - [Display] Video output set to size 720x480 pitch 1440

@1,110,754us: [+2 T:0x413f5490] ti.sdo.dmai - [BufTab] Allocating BufTab for 3 buffers

@1,111,397us: [+2 T:0x413f5490] ti.sdo.dmai - [Buffer] Set user pointer 0x413f6000 (physical 0x86000000)

@1,127,918us: [+2 T:0x413f5490] ti.sdo.dmai - [Dmai] Driver buffer 0 mapped to 0x413f6000 has physical address 0x86000000

@1,128,579us: [+2 T:0x413f5490] ti.sdo.dmai - [Buffer] Set user pointer 0x417f2000 (physical 0x86400000)

@1,145,143us: [+2 T:0x413f5490] ti.sdo.dmai - [Dmai] Driver buffer 1 mapped to 0x417f2000 has physical address 0x86400000

@1,145,809us: [+2 T:0x413f5490] ti.sdo.dmai - [Buffer] Set user pointer 0x41bee000 (physical 0x86800000)

@1,162,512us: [+2 T:0x413f5490] ti.sdo.dmai - [Dmai] Driver buffer 2 mapped to 0x41bee000 has physical address 0x86800000

@1,184,159us: [+2 T:0x427e9490] ti.sdo.dmai - [Capture] Checking video standard

@1,210,516us: [+2 T:0x427e9490] ti.sdo.dmai - [Capture] Capture input set to COMPOSITE

@1,211,797us: [+0 T:0x42fe9490] CE - Engine_open> Enter('encodedecode', 0x0, 0x42fe88cc)

@1,212,076us: [+0 T:0x42fe9490] CE - rserverOpen('irisrecognitionserver.x64P'),count = 0

@1,212,244us: [+0 T:0x42fe9490] OP - Processor_create> Enter(imageName='irisrecognitionserver.x64P', linkCfg='(null)', attrs=0x42fe883c)

@1,213,155us: [+0 T:0x4001f930] CE - Engine_open> Enter('encodedecode', 0x0, 0xbea9eafc)

@1,214,570us: [+0 T:0x42fe9490] OP - doCmd> Enter (cmdId=1, proc=0x9d128)

@1,214,763us: [+0 T:0x42fe9490] ti.sdo.ce.osal.Sem - Entered Sem_post> sem[0x651c0]

@1,214,981us: [+0 T:0x42fe9490] ti.sdo.ce.osal.Sem - Leaving Sem_post> sem[0x651c0]

@1,215,133us: [+0 T:0x42fe9490] ti.sdo.ce.osal.Sem - Entered Sem_pend> sem[0x651d8] timeout[0xffffffff]

@1,215,492us: [+0 T:0x40bc8490] ti.sdo.ce.osal.Sem - Leaving Sem_pend> sem[0x651c0] status[0]

@1,215,658us: [+0 T:0x40bc8490] OP - getCmd_d> Exit (result=1)

@1,215,847us: [+0 T:0x40bc8490] OP - Processor_create_d> Enter(proc=0x9d128)

@1,216,012us: [+2 T:0x40bc8490] OP - Processor_create_d> Initializing DSP PROC...

@1,216,163us: [+2 T:0x40bc8490] OP - Processor_create_d> Using DspLink config data for entry #0 [server 'irisrecognitionserver.x64P']

@1,216,344us: [+2 T:0x40bc8490] OP - Processor_create_d> Adding DSP segment #0 to Link configuration: name='DDR2', startAddress=0x8fa00000, sizeInBytes=0x400000, shared=1, syncd=0

@1,216,523us: [+2 T:0x40bc8490] OP - Processor_create_d> Adding DSP segment #1 to Link configuration: name='DSPLINKMEM', startAddress=0x8fe00000, sizeInBytes=0x100000, shared=1, syncd=0

@1,216,695us: [+2 T:0x40bc8490] OP - Processor_create_d> Adding DSP segment #2 to Link configuration: name='RESET_VECTOR', startAddress=0x8ff00000, sizeInBytes=0x80, shared=1, syncd=0

@1,217,082us: [+2 T:0x40bc8490] OP - Processor_create_d> Adding DSP segment #3 to Link configuration: name='DDRALGHEAP', startAddress=0x88000000, sizeInBytes=0x7a00000, shared=0, syncd=0

@1,217,280us: [+2 T:0x40bc8490] OP - Processor_create_d> DODSPCTRL was=1; now=0

@1,230,540us: [+2 T:0x40bc8490] OP - Processor_create_d> Attaching to DSP PROC...

@1,238,266us: [+2 T:0x427e9490] ti.sdo.dmai - [Capture] Checking video standard

@1,242,450us: [+2 T:0x40bc8490] OP - Processor_create_d> Opening MSGQ pool...

@1,243,515us: [+2 T:0x40bc8490] OP - Processor_create_d> Loading irisrecognitionserver.x64P on DSP (1 args)...

@1,282,509us: [+2 T:0x427e9490] ti.sdo.dmai - [Capture] Capture input set to COMPOSITE

@1,283,870us: [+2 T:0x427e9490] ti.sdo.dmai - [Capture] Video input connected size 720x480 pitch 1440

@1,284,059us: [+2 T:0x427e9490] ti.sdo.dmai - [Capture] Setting capture cropping at 216x96 size 288x294

@1,284,401us: [+2 T:0x427e9490] ti.sdo.dmai - [BufTab] Allocating BufTab for 4 buffers

@1,284,843us: [+2 T:0x427e9490] ti.sdo.dmai - [Buffer] Set user pointer 0x4386a480 (physical 0x80a00480)

@1,289,079us: [+2 T:0x427e9490] ti.sdo.dmai - [Dmai] Driver buffer 0 mapped to 0x4386a480 has physical address 0x80a00480

@1,289,578us: [+2 T:0x427e9490] ti.sdo.dmai - [Buffer] Set user pointer 0x43942480 (physical 0x80c00480)

@1,293,932us: [+2 T:0x427e9490] ti.sdo.dmai - [Dmai] Driver buffer 1 mapped to 0x43942480 has physical address 0x80c00480

@1,294,386us: [+2 T:0x427e9490] ti.sdo.dmai - [Buffer] Set user pointer 0x43a1a480 (physical 0x80d00480)

@1,298,622us: [+2 T:0x427e9490] ti.sdo.dmai - [Dmai] Driver buffer 2 mapped to 0x43a1a480 has physical address 0x80d00480

@1,299,066us: [+2 T:0x427e9490] ti.sdo.dmai - [Buffer] Set user pointer 0x43af2480 (physical 0x85a00480)

@1,303,415us: [+2 T:0x427e9490] ti.sdo.dmai - [Dmai] Driver buffer 3 mapped to 0x43af2480 has physical address 0x85a00480

@1,375,485us: [+2 T:0x40bc8490] OP - Processor_create_d> Starting DSP PROC...

@1,409,822us: [+2 T:0x40bc8490] OP - Processor_create_d> Opening remote transport...

@1,411,008us: [+2 T:0x40bc8490] OP - Processor_create_d> return (1)

@1,411,202us: [+0 T:0x40bc8490] ti.sdo.ce.osal.Sem - Entered Sem_post> sem[0x651d8]

@1,411,404us: [+0 T:0x42fe9490] ti.sdo.ce.osal.Sem - Leaving Sem_pend> sem[0x651d8] status[0]

@1,411,560us: [+0 T:0x42fe9490] OP - doCmd> Exit (result=1)

@1,411,740us: [+0 T:0x42fe9490] OP - Processor_create> return (0x9d128)

@1,411,868us: [+0 T:0x42fe9490] CE - rserverOpen('irisrecognitionserver.x64P'):0x63cbc done.

@1,412,800us: [+0 T:0x40bc8490] ti.sdo.ce.osal.Sem - Leaving Sem_post> sem[0x651d8]

@1,412,990us: [+0 T:0x40bc8490] OP - getCmd_d> Enter (proc=0x40bc7dfc)

@1,413,162us: [+0 T:0x40bc8490] ti.sdo.ce.osal.Sem - Entered Sem_pend> sem[0x651c0] timeout[0xffffffff]

@1,413,357us: [+0 T:0x4001f930] CE - rserverOpen('irisrecognitionserver.x64P'),count = 1

@1,413,515us: [+0 T:0x4001f930] CE - rserverOpen('irisrecognitionserver.x64P'):0x63cbc done.

@1,414,542us: [+0 T:0x42fe9490] CE - checkServer(0x9d0c8)

@1,415,332us: [+0 T:0x42fe9490] CE - rmsInit> RMS initialized(0x9d0c8); CE_DEBUG on, setting DSP trace mask to*+01234567,CR=67,ti.sdo.fc.dman3-2,ti.sdo.fc.dskt2-2,GT_prefix=1235,GT_time=3

@1,415,549us: [+0 T:0x42fe9490] CE - Engine_setTrace> Enter(engine=0x9d0c8, mask='*+01234567,CR=67,ti.sdo.fc.dman3-2,ti.sdo.fc.dskt2-2,GT_prefix=1235,GT_time=3')

@1,415,730us: [+1 T:0x42fe9490] CE - Engine_setTrace> Requesting DSP set trace ...

@1,416,152us: [+0 T:0x4001f930] CE - checkServer(0x9d0f8)

@1,417,351us: [+0 T:0x42fe9490] CE - Engine_setTrace> return(0)

[DSP] @0x000001b1:[T:0x00000000] server - main> Welcome to DSP server's main().

[DSP] @0,013,801tk: [+0 T:0x8fa29124] OG - Global_setSpecialTrace> enter(mask='*+01234567,CR=67,ti.sdo.fc.dman3-2,ti.sdo.fc.dskt2-2,GT_prefix=1235,GT_time=3')

[DSP] @0,013,883tk: [+4 T:0x8fa29124] OG - Global_setSpecialTrace> This programwas built with the following packages:

[DSP] @0,013,935tk: [+4 T:0x8fa29124] OG -     package ti.targets.rts6000 (C:/Texas Instruments/xdctools_3_16_02_32/packages/ti/targets/rts6000/) [1, 0, 0, 0]

[DSP] @0,014,001tk: [+4 T:0x8fa29124] OG -     package ti.sdo.fc.global (C:/Texas Instruments/framework_components_2_23_01/packages/ti/sdo/fc/global/) [1, 0, 0]

[DSP] @0,014,068tk: [+4 T:0x8fa29124] OG -     package ti.sdo.fc.dman3 (C:/Texas Instruments/framework_components_2_23_01/packages/ti/sdo/fc/dman3/) [1, 0, 4]

[DSP] @0,014,135tk: [+4 T:0x8fa29124] OG -     package ti.rtdx (C:/Texas Instruments/bios_5_41_02_14/packages/ti/rtdx/) [2, 0, 0, 5]

[DSP] @0,014,191tk: [+4 T:0x8fa29124] OG -     package ti.psl (C:/Texas Instruments/bios_5_41_02_14/packages/ti/psl/) [5, 0, 0, 0]

[DSP] @0,014,247tk: [+4 T:0x8fa29124] OG -     package ti.pmi (C:/Texas Instruments/bios_5_41_02_14/packages/ti/pmi/) [1, 0, 0, 0]

[DSP] @0,014,303tk: [+4 T:0x8fa29124] OG -     package ti.pscl (C:/Texas Instruments/bios_5_41_02_14/packages/ti/pscl/) [1, 0, 0, 0]

[DSP] @0,014,360tk: [+4 T:0x8fa29124] OG -     package ti.bios (C:/Texas Instruments/bios_5_41_02_14/packages/ti/bios/) [5, 2, 5, 25]

[DSP] @0,014,417tk: [+4 T:0x8fa29124] OG -     package ti.sdo.fc.dskt2 (C:/Texas Instruments/framework_components_2_23_01/packages/ti/sdo/fc/dskt2/) [1, 0, 4]

[DSP] @0,014,484tk: [+4 T:0x8fa29124] OG -     package ti.sdo.ce.global (C:/Texas Instruments/codec_engine_2_26_01_09/packages/ti/sdo/ce/global/) [1, 0, 0]

[DSP] @0,014,549tk: [+4 T:0x8fa29124] OG -     package ti.xdais.dm (C:/Texas Instruments/xdais_6_25_01_08/packages/ti/xdais/dm/) [1, 0, 5]

[DSP] @0,014,608tk: [+4 T:0x8fa29124] OG -     package ti.xdais (C:/Texas Instruments/xdais_6_25_01_08/packages/ti/xdais/) [1, 2.0, 1]

[DSP] @0,014,665tk: [+4 T:0x8fa29124] OG -     package ti.sdo.ce.node (C:/Texas Instruments/codec_engine_2_26_01_09/packages/ti/sdo/ce/node/) [1, 0, 0]

[DSP] @0,014,729tk: [+4 T:0x8fa29124] OG -     package ti.sdo.ce.ipc.dsplink.dsp (C:/Texas Instruments/codec_engine_2_26_01_09/packages/ti/sdo/ce/ipc/dsplink/dsp/) [2, 0, 1]

[DSP] @0,014,844tk: [+4 T:0x8fa29124] OG -     package ti.sdo.utils.trace (C:/Texas Instruments/framework_components_2_23_01/packages/ti/sdo/utils/trace/) [1, 0, 0]

[DSP] @0,014,912tk: [+4 T:0x8fa29124] OG -     package ti.sdo.ce.utils.xdm (C:/Texas Instruments/codec_engine_2_26_01_09/packages/ti/sdo/ce/utils/xdm/) [1, 0, 2]

[DSP] @0,014,980tk: [+4 T:0x8fa29124] OG -     package ti.sdo.fc.memutils (C:/Texas Instruments/framework_components_2_23_01/packages/ti/sdo/fc/memutils/) [1, 0, 0]

[DSP] @0,015,048tk: [+4 T:0x8fa29124] OG -     package ti.sdo.fc.acpy3 (C:/Texas Instruments/framework_components_2_23_01/packages/ti/sdo/fc/acpy3/) [1, 0, 4]

[DSP] @0,015,114tk: [+4 T:0x8fa29124] OG -     package dsplink.dsp (C:/Texas Instruments/dsplink-1_61_03-prebuilt/packages/dsplink/dsp/) [1, 4, 0]

[DSP] @0,015,176tk: [+4 T:0x8fa29124] OG -     package ti.bios.utils (C:/Texas Instruments/cetools/packages/ti/bios/utils/) [2, 0, 2, 01]

[DSP] @0,015,235tk: [+4 T:0x8fa29124] OG -     package ti.catalog.c6000 (C:/Texas Instruments/xdctools_3_16_02_32/packages/ti/catalog/c6000/) [1, 0, 0, 0]

[DSP] @0,015,300tk: [+4 T:0x8fa29124] OG -     package ti.catalog (C:/Texas Instruments/xdctools_3_16_02_32/packages/ti/catalog/) [1, 0, 0]

[DSP] @0,015,360tk: [+4 T:0x8fa29124] OG -     package ti.platforms.evmDM6446 (C:/Texas Instruments/xdctools_3_16_02_32/packages/ti/platforms/evmDM6446/) [1, 0, 0, 1]

[DSP] @0,015,432tk: [+4 T:0x8fa29124] OG -     package ti.sdo.ce.osal (C:/TexasInstruments/codec_engine_2_26_01_09/packages/ti/sdo/ce/osal/) [2, 0, 2]

[DSP] @0,015,496tk: [+4 T:0x8fa29124] OG -     package ti.sdo.ce.osal.bios (C:/TexasInstruments/codec_engine_2_26_01_09/packages/ti/sdo/ce/osal/bios/) [2, 0, 1]

[DSP] @0,015,563tk: [+4 T:0x8fa29124] OG -     package ti.sdo.ce.ipc (C:/Texas Instruments/codec_engine_2_26_01_09/packages/ti/sdo/ce/ipc/) [2, 0, 1]

[DSP] @0,015,626tk: [+4 T:0x8fa29124] OG -     package ti.sdo.ce.ipc.bios (C:/Texas Instruments/codec_engine_2_26_01_09/packages/ti/sdo/ce/ipc/bios/) [2, 0, 1]

[DSP] @0,015,693tk: [+4 T:0x8fa29124] OG -     package ti.sdo.ce.alg (C:/Texas Instruments/codec_engine_2_26_01_09/packages/ti/sdo/ce/alg/) [1, 0, 1]

[DSP] @0,015,756tk: [+4 T:0x8fa29124] OG -     package ti.sdo.ce (C:/Texas Instruments/codec_engine_2_26_01_09/packages/ti/sdo/ce/) [1, 0, 6]

[DSP] @0,015,816tk: [+4 T:0x8fa29124] OG -     package ti.sdo.ce.bioslog (C:/Texas Instruments/codec_engine_2_26_01_09/packages/ti/sdo/ce/bioslog/) [1, 0, 1]

[DSP] @0,015,882tk: [+4 T:0x8fa29124] OG -     package ti.sdo.ce.universal (C:/Texas Instruments/codec_engine_2_26_01_09/packages/ti/sdo/ce/universal/) [1, 0, 0]

[DSP] @0,015,950tk: [+4 T:0x8fa29124] OG -     package hit.irisrecognition (C:/Texas Instruments/codecs/hit/irisrecognition/) [1, 0, 0]

[DSP] @0,016,011tk: [+4 T:0x8fa29124] OG -     package hit.irisrecognitionserver (C:/Texas Instruments/servers/hit/irisrecognitionserver/) [1, 0, 0]

[DSP] @0,016,073tk: [+0 T:0x8fa29124] OG - Global_setSpecialTrace> return

@2,109,182us: [+0 T:0x42fe9490] CE - Engine_fwriteTrace> returning count [5407]

@2,109,374us: [+0 T:0x42fe9490] CE - Engine_open> return(643272)

@2,109,609us: [+0 T:0x42fe9490] ti.sdo.ce.universal.UNIVERSAL - UNIVERSAL_create> Enter (engine=0x9d0c8, name='irisrecognition', params=0x42fe8b98 (size=0x0))

@2,109,863us: [+0 T:0x42fe9490] CV - VISA_create(0x9d0c8, 'irisrecognition', 0x42fe8b98, 0x3712, 'ti.sdo.ce.universal.IUNIVERSAL')

@2,110,175us: [+0 T:0x42fe9490] CV - VISA_create2(0x9d0c8, 'irisrecognition', 0x42fe8b98, 0x0, 0x3712, 'ti.sdo.ce.universal.IUNIVERSAL')

@2,110,465us: [+0 T:0x42fe9490] CE - Engine_createNode(0x9d0c8, 'irisrecognition', 3712, 0x42fe8b98, 0x0, 0x42fe882c)

@2,110,671us: [+0 T:0x42fe9490] CE - Engine> allocNode Enter(engine=0x9d0c8, impId='irisrecognition')

@2,110,911us: [+0 T:0x42fe9490] CE - Engine> allocNode(). Calling Comm_create(gppfromnode_764_2, 0xdd538, NULL)

[DSP] @1,554,439tk: [+0 T:0x8fa29124] OM - Memory_alloc> Enter(size=0x18)

[DSP] @1,554,482tk: [+0 T:0x8fa29124] OM - Memory_alloc> return (0x8fa2dbf8)

[DSP] @1,554,523tk: [+0 T:0x8fa29124] OM - Memory_alloc> Enter(size=0x12)

[DSP] @1,554,560tk: [+0 T:0x8fa29124] OM - Memory_alloc> return (0x8fa2dc10)

[DSP] @1,554,607tk: [+0 T:0x8fa29124] OM - Memory_alloc> Enter(size=0x20)

[DSP] @1,554,643tk: [+0 T:0x8fa29124] OM - Memory_alloc> return (0x8fa2dc28)

[DSP] @1,554,684tk: [+0 T:0x8fa29124] OM - Memory_alloc> Enter(size=0x24)

[DSP] @1,554,721tk: [+0 T:0x8fa29124] OM - Memory_alloc> return (0x8fa2dc48)

[DSP] @1,554,829tk: [+0 T:0x8fa29124] ti.sdo.ce.universal.UNIVERSAL - UNIVERSAL_create> Enter (engine=0x0, name='irisrecognition', params=0x0 (size=0x0))

[DSP] @1,554,905tk: [+0 T:0x8fa29124] CV - VISA_create(0x0, 'irisrecognition', 0x0, 0x648, 'ti.sdo.ce.universal.IUNIVERSAL')

[DSP] @1,554,964tk: [+0 T:0x8fa29124] CV - VISA_create2(0x0, 'irisrecognition',0x0, 0x0, 0x648, 'ti.sdo.ce.universal.IUNIVERSAL')

[DSP] @1,555,033tk: [+0 T:0x8fa29124] CE - Engine_open> Enter('local', 0x8fa2cdf4, 0x0)

[DSP] @1,555,078tk: [+0 T:0x8fa29124] OM - Memory_alloc> Enter(size=0x34)

[DSP] @1,555,115tk: [+0 T:0x8fa29124] OM - Memory_alloc> return (0x8fa2dcb8)

[DSP] @1,555,160tk: [+4 T:0x8fa29124] CE - Engine_open> engine->server = 0x0

[DSP] @1,555,197tk: [+0 T:0x8fa29124] CE - Engine_open> return(-1885152072)

[DSP] @1,555,256tk: [+0 T:0x8fa29124] OM - Memory_alloc> Enter(size=0x34)

[DSP] @1,555,294tk: [+0 T:0x8fa29124] OM - Memory_alloc> return (0x8fa2dcf0)

[DSP] @1,555,338tk: [+0 T:0x8fa29124] ti.sdo.ce.alg.Algorithm - Algorithm_create

> Enter(fxns=0x8fa51b3c, idma3Fxns=0x0, iresFxns=0x0, params=0x0, attrs=0x8fa2cf10)

[DSP] @1,555,423tk: [+0 T:0x8fa29124] OM - Memory_alloc> Enter(size=0x10)

[DSP] @1,555,460tk: [+0 T:0x8fa29124] OM - Memory_alloc> return (0x8fa2dd28)

@2,116,259us: [+4 T:0x42fe9490] CE - Engine_createNode> created node(stdIn=0x2,stdOut=0x10002, msgq=0xdd558, algName='irisrecognition', rmsNode=0x8fa2dbf8, algHandle=0x8fa2dcf0)

[DSP] @1,555,565tk: [+0 T:0x8fa29124] ti.sdo.ce.alg.Algorithm - Algorithm_create> return (0x8fa2dd28)

[DSP] @1,555,614tk: [+5 T:0x8fa29124] CV - VISA_create> local codec created (name='irisrecognition', handle=0x8fa2dd28)

[DSP] @1,555,670tk: [+0 T:0x8fa29124] ti.sdo.ce.universal.UNIVERSAL - UNIVERSAL_create> return (0x8fa2dcf0)

[DSP] @1,555,727tk: [+4 T:0x8fa29124] OT - Thread_create > name: "irisrecognition#0", pri:  -1, stack size:  10024, stack seg: 0

@2,458,158us: [+0 T:0x4001f930] CE - Engine_fwriteTrace> returning count [2331]

@2,458,566us: [+0 T:0x4001f930] CE - Engine_open> return(643320)

@2,459,263us: [+0 T:0x42fe9490] CE - Engine_fwriteTrace> returning count [0]

@2,459,465us: [+2 T:0x42fe9490] CE - Engine_createNode> Returning 0xdd530

@2,459,738us: [+5 T:0x42fe9490] CV - VISA_create> remote codec created (name='irisrecognition', localQueueID=0x10002, remoteQueueID=0x0002)

@2,460,055us: [+0 T:0x42fe9490] ti.sdo.ce.universal.UNIVERSAL - UNIVERSAL_create> return (0xdd4f8)

@2,460,415us: [+4 T:0x42fe9490] OM - Memory_contigAlloc> CMEM_alloc(165888) = 0x43bca000.

@2,460,653us: [+4 T:0x42fe9490] OM - Memory_contigAlloc> CMEM_getPhys(0x43bca000) = 0x87bb1000.

@2,460,844us: [+2 T:0x42fe9490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 165888 at 0x43bca000 (0x87bb1000 phys)

@2,462,794us: [+2 T:0x42fe9490] ti.sdo.dmai - [BufTab] Allocating BufTab for 4 buffers

@2,463,148us: [+4 T:0x42fe9490] OM - Memory_contigAlloc> CMEM_alloc(165888) = 0x43c45000.

@2,463,352us: [+4 T:0x42fe9490] OM - Memory_contigAlloc> CMEM_getPhys(0x43c45000) = 0x881c6000.

@2,463,544us: [+2 T:0x42fe9490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 165888 at 0x43c45000 (0x881c6000 phys)

@2,463,886us: [+4 T:0x42fe9490] OM - Memory_contigAlloc> CMEM_alloc(165888) = 0x43d10000.

@2,464,125us: [+4 T:0x42fe9490] OM - Memory_contigAlloc> CMEM_getPhys(0x43d10000) = 0x880fb000.

@2,464,318us: [+2 T:0x42fe9490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 165888 at 0x43d10000 (0x880fb000 phys)

@2,464,687us: [+4 T:0x42fe9490] OM - Memory_contigAlloc> CMEM_alloc(165888) = 0x43ddb000.

@2,464,895us: [+4 T:0x42fe9490] OM - Memory_contigAlloc> CMEM_getPhys(0x43ddb000) = 0x88030000.

@2,465,085us: [+2 T:0x42fe9490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 165888 at 0x43ddb000 (0x88030000 phys)

@2,465,430us: [+4 T:0x42fe9490] OM - Memory_contigAlloc> CMEM_alloc(165888) = 0x43ea6000.

@2,465,669us: [+4 T:0x42fe9490] OM - Memory_contigAlloc> CMEM_getPhys(0x43ea6000) = 0x87f65000.

@2,465,860us: [+2 T:0x42fe9490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 165888 at 0x43ea6000 (0x87f65000 phys)

@2,466,033us: [+2 T:0x42fe9490] ti.sdo.dmai - [BufTab] Allocating BufTab for 4 buffers

@2,466,384us: [+4 T:0x42fe9490] OM - Memory_contigAlloc> CMEM_alloc(165888) = 0x43f71000.

@2,466,588us: [+4 T:0x42fe9490] OM - Memory_contigAlloc> CMEM_getPhys(0x43f71000) = 0x87e9a000.

@2,466,778us: [+2 T:0x42fe9490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 165888 at 0x43f71000 (0x87e9a000 phys)

@2,467,180us: [+4 T:0x42fe9490] OM - Memory_contigAlloc> CMEM_alloc(165888) = 0x4403c000.

@2,467,381us: [+4 T:0x42fe9490] OM - Memory_contigAlloc> CMEM_getPhys(0x4403c000) = 0x87d6a000.

@2,467,570us: [+2 T:0x42fe9490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 165888 at 0x4403c000 (0x87d6a000 phys)

@2,467,962us: [+4 T:0x42fe9490] OM - Memory_contigAlloc> CMEM_alloc(165888) = 0x4416c000.

@2,468,164us: [+4 T:0x42fe9490] OM - Memory_contigAlloc> CMEM_getPhys(0x4416c000) = 0x87c3a000.

@2,468,386us: [+2 T:0x42fe9490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 165888 at 0x4416c000 (0x87c3a000 phys)

@2,468,920us: [+4 T:0x42fe9490] OM - Memory_contigAlloc> CMEM_alloc(165888) = 0x4429c000.

@2,469,128us: [+4 T:0x42fe9490] OM - Memory_contigAlloc> CMEM_getPhys(0x4429c000) = 0x88291000.

@2,809,801us: [+2 T:0x42fe9490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 165888 at 0x4429c000 (0x88291000 phys)

@2,810,504us: [+2 T:0x427e9490] ti.sdo.dmai - [Smooth] Configuring smooth job of size 288x288

@2,812,386us: [+0 T:0x42fe9490] ti.sdo.ce.universal.UNIVERSAL - UNIVERSAL_process> Enter (handle=0xdd4f8, inBufs=0x42fe8a70, outBufs=0x42fe89ac, inOutBufs=0x42fe8728, inArgs=0x42fe88d4, outArgs=0x42fe88d8)

@2,812,779us: [+5 T:0x42fe9490] CV - VISA_allocMsg> Allocating message for messageId=0x0002010b

@2,813,069us: [+0 T:0x42fe9490] CV - VISA_call(visa=0xdd4f8, msg=0x437fbc80): messageId=0x0002010b, command=0x0

@4,031,888us: [+0 T:0x4001f930] CE - Engine_getCpuLoad(0x9d0f8)

 

 

  • Could you also enable some framework components trace ?!

    http://processors.wiki.ti.com/index.php/Trace_in_Framework_Components

     

     

     

  • I think the issue here is that on DM6446 the IDMA memory needs to be allocated to internal memory for ACPY to work. The default configuration for DMAN3 in a server is to allocate it externally.

    So in your server.cfg file change the DMAN3.heapInternal  assignment to some internal memory. In this case  L1DHEAP

     *  By setting DMAN3.heapInternal = <external-heap>  DMAN3 *may not* supply
     *  ACPY3_PROTOCOL IDMA3 channels the protocol required internal memory for
     *  IDMA3 channel 'env' memory. To deal with this catch-22 situation we
     *  configure DMAN3 with hook-functions to obtain internal-scratch memory
     *  from the shared scratch pool for the associated algorithm's
     *  scratch-group (i.e. it first tries to get the internal scratch memory
     *  from DSKT2 shared allocation pool, hoping there is enough extra memory
     *  in the shared pool, if that doesn't work it will try persistent
     *  allocation from DMAN3.internalHeap).
     */
    DMAN3.heapInternal    = "L1DHEAP";       /* L1DHEAP is an internal segment */
    //DMAN3.heapInternal = "DDRALGHEAP";    /* DDRALGHEAP is an external segment */

     Iain

  • Thank you, Iain. You are right to the point. I'll pay more attention on the details of memory allocation. Thanks for your help again.

    -- Yulin