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.

我使用8168的demo程序中的 VdecVdis 例子,在run.sh中堵塞了,请教



在使用8168的demo中的 VdecVdis的时候 ,run.sh时,在调用 AvsyncLink_init 的时候发生堵塞,表现在 

AvsyncLink_init ()

               --〉 System_linkControl(SYSTEM_LINK_ID_AVSYNC,AVSYNC_LINK_CMD_INIT,&initParams,sizeof(initParams),TRUE);

                         --〉System_ipcMsgQSendMsg(linkId, cmd, pPrm, prmSize, waitAck, OSA_TIMEOUT_FOREVER);

                            ---〉status = MessageQ_get(gSystem_ipcObj.selfAckMsgQ, (MessageQ_Msg*)&pAckMsg, timeout);   这里 一直没有返回。

下面是config_1G_256MLinux.bld中的memory 和 init.sh   load.sh   run.sh的启动信息。  请问是什么情况。


/* first 512MB */
LINUX_SIZE = 256*MB;
SR1_SIZE = 200*MB - 1*MB - 512*KB;
SR3_INTRADUCATI_IPC_SIZE = 124*KB;
VIDEO_M3_CODE_SIZE = 2*MB + 512*KB + 512*KB;
VIDEO_M3_BSS_SIZE = 11*MB + 512*KB + 512*KB;
VIDEO_M3_DATA_SIZE = 2*MB + 512*KB + 512*KB;
DSS_M3_CODE_SIZE = 1*MB + 512*KB;
DSS_M3_BSS_SIZE = 16*MB + 512*KB;
DSS_M3_DATA_SIZE = 5*MB + 512*KB;
DSP_CODE_SIZE = 1*MB;/*800*KB;*//*1*MB;*/
DSP_DATA_SIZE = 14*MB + 900*KB;/*100*KB;*/

/* second 512MB */

/* Tiler Buffers in the bottom 512MB */
TILER_SIZE = 128*MB + 96*MB + 24*MB; /* (128+128) - MUST be aligned on 128MB boundary */
SR2_FRAME_BUFFER_SIZE = 234*MB + 32*MB - 24*MB - 256*KB - 1*MB - 4*MB - 768*KB;
SR0_SIZE = 15*MB + 4*MB;
VIDEO_M3_EXCEPTION_CTX_SIZE = 128*KB + 384*KB;
VPSS_M3_EXCEPTION_CTX_SIZE = 128*KB + 384*KB;
HDVPSS_DESC_SIZE = 2*MB;
HDVPSS_SHARED_SIZE = 2*MB;
NOTIFY_SHARED_SIZE = 2*MB;
REMOTE_DEBUG_SIZE = 1*MB + 1*MB;

./init.sh 
*** Bootargs Validated for mem param ***
*** Bootargs Validated for notifyk.vpssm3 params ***
*** Kernel Base address validated ***
Kernel bootargs validated
numid=101,iface=MIXER,name='Left DAC Mux'
; type=ENUMERATED,access=rw------,values=1,items=3
; Item #0 'DAC_L1'
; Item #1 'DAC_L3'
; Item #2 'DAC_L2'
: values=2
numid=99,iface=MIXER,name='Right DAC Mux'
; type=ENUMERATED,access=rw------,values=1,items=3
; Item #0 'DAC_R1'
; Item #1 'DAC_R3'
; Item #2 'DAC_R2'
: values=2
[c6xdsp ] Remote Debug Shared Memory @ 0xbeb00000
[m3video] Remote Debug Shared Memory @ 0xbeb10820
[m3vpss ] Remote Debug Shared Memory @ 0xbeb21040
SysLink version : 2.20.02.20
SysLink module created on Date:Jul 9 2014 Time:09:03:29
Trace enabled
Trace SetFailureReason enabled
Setting DMM priority for [DUCATI ] to [0] ( 0x4e000624 = 0x08000000 )
Setting DMM priority for [HDVICP0 ] to [2] ( 0x4e000634 = 0x0000000a )
Setting DMM priority for [HDVICP1 ] to [2] ( 0x4e000634 = 0x000a0000 )
Setting DMM priority for [HDVICP2 ] to [2] ( 0x4e000634 = 0x00a00000 )
/opt/dvr_rdk/ti816x
============= init.sh end ============
root@dm816x:/opt/dvr_rdk/ti816x#
root@dm816x:/opt/dvr_rdk/ti816x#
root@dm816x:/opt/dvr_rdk/ti816x#
root@dm816x:/opt/dvr_rdk/ti816x#
root@dm816x:/opt/dvr_rdk/ti816x# ./load.sh
Attached to slave procId 2.
Loaded file ../firmware/dvr_rdk_fw_m3vpss_1024M_256M.xem3 on slave procId 2.
Started slave procId 2.
After Ipc_loadcallback status [0x00000000]
[m3vpss ] ***** VPSS Firmware build time 09:12:48 Jul 9 2014 EDG gcc 3.0 mode
[m3vpss ] ***** SYSTEM : Frequency <ORG> - 250000000, <NEW> - 274909088
[m3vpss ] notify_attach rtnVal 0
[m3vpss ] initProxyServer rtnVal 0
[m3vpss ] -=- SYSTEM : System_main start !!! links_common/system/system_common.c 70
[m3vpss ] -=- utils/src/utils.c Utils_getCurTimeInMsec 173
[m3vpss ]
[m3vpss ] *** UTILS: CPU KHz = 549818 Khz ***
[m3vpss ]
[m3vpss ] 35: SYSTEM : System Common Init in progress !!!
[m3vpss ] 35: SYSTEM: IPC init in progress !!!
[m3vpss ] 35: SYSTEM: Attaching to [HOST] ...
[m3vpss ] 38: SYSTEM: Attaching to [HOST] ... SUCCESS !!!
After Ipc_startcallback status [0x00000000]
=============1: load_vpss end ============
Attached to slave procId 1.
Loaded file ../firmware/dvr_rdk_fw_m3video_1024M_256M.xem3 on slave procId 1.
Started slave procId 1.
After Ipc_loadcallback status [0x00000000]
After Ipc_startcallback status [0x00000000]
[m3video] ***** VIDEO Firmware build time 09:13:31 Jul 9 2014 EDG gcc 3.0 mode
[m3video] ***** SYSTEM : Frequency <ORG> - 250000000, <NEW> - 274909088
[m3video] -=- SYSTEM : System_main start !!! links_common/system/system_common.c 70
[m3video] -=- utils/src/utils.c Utils_getCurTimeInMsec 173
[m3video]
[m3video] *** UTILS: CPU KHz = 549818 Khz ***
[m3video]
[m3video] 429: SYSTEM : System Common Init in progress !!!
[m3video] 430: SYSTEM: IPC init in progress !!!
[m3video] 430: SYSTEM: Attaching to [HOST] ...
[m3video] 433: SYSTEM: Attaching to [HOST] ... SUCCESS !!!
=============2: load_video end ============
Attached to slave procId 0.
Loaded file ../firmware/dvr_rdk_fw_c6xdsp_1024M_256M.xe674 on slave procId 0.
Started slave procId 0.
After Ipc_loadcallback status [0x00000000]
[c6xdsp ] ***** VIDEO Firmware build time 09:11:54 Jul 9 2014 EDG gcc 3.0 mode
[c6xdsp ] ***** SYSTEM : Frequency <ORG> - 800000000, <NEW> - 1000000000
[c6xdsp ] -=- SYSTEM : System_main start !!! links_common/system/system_common.c 70
[c6xdsp ] -=- utils/src/utils.c Utils_getCurTimeInMsec 173
[c6xdsp ]
[c6xdsp ] *** UTILS: CPU KHz = 1000000 Khz ***
[c6xdsp ]
[c6xdsp ] 5: SYSTEM : System Common Init in progress !!!
[c6xdsp ] 5: SYSTEM: IPC init in progress !!!
[c6xdsp ] 5: SYSTEM: Attaching to [HOST] ...
[c6xdsp ] 8: SYSTEM: Attaching to [HOST] ... SUCCESS !!!
After Ipc_startcallback status [0x00000000]
[c6xdsp ] 11: SYSTEM: Attaching to [VIDEO-M3] ... SUCCESS !!!
[m3video] 610: SYSTEM: Attaching to [DSP] ... SUCCESS !!!
[m3vpss ] 612: SYSTEM: Attaching to [DSP] ... SUCCESS !!!
[c6xdsp ] 13: SYSTEM: Attaching to [VPSS-M3] ... SUCCESS !!!
[m3video] 614: SYSTEM: Attaching to [VPSS-M3] ... SUCCESS !!!
[m3vpss ] 614: SYSTEM: Attaching to [VIDEO-M3] ... SUCCESS !!!
[c6xdsp ] 13: SYSTEM: Creating MsgQ Heap [IPC_MSGQ_MSG_HEAP_0] ...
[m3video] 614: SYSTEM: Creating MsgQ Heap [IPC_MSGQ_MSG_HEAP_1] ...
[m3vpss ] 614: SYSTEM: Creating MsgQ Heap [IPC_MSGQ_MSG_HEAP_2] ...
[c6xdsp ] 13: SYSTEM: Creating MsgQ [DSP_MSGQ] ...
[m3video] 615: SYSTEM: Creating MsgQ [VIDEO-M3_MSGQ] ...
[m3vpss ] 615: SYSTEM: Creating MsgQ [VPSS-M3_MSGQ] ...
[c6xdsp ] 13: SYSTEM: Creating MsgQ [DSP_ACK_MSGQ] ...
[m3video] 615: SYSTEM: Creating MsgQ [VIDEO-M3_ACK_MSGQ] ...
[m3vpss ] 615: SYSTEM: Creating MsgQ [VPSS-M3_ACK_MSGQ] ...
[c6xdsp ] 13: SYSTEM: Notify register to [HOST] line 0, event 15 ...
[m3video] 616: SYSTEM: Notify register to [HOST] line 0, event 15 ...
[m3vpss ] 616: SYSTEM: Notify register to [HOST] line 0, event 15 ...
[c6xdsp ] 13: SYSTEM: Notify register to [VIDEO-M3] line 0, event 15 ...
[m3video] 617: SYSTEM: Notify register to [DSP] line 0, event 15 ...
[m3vpss ] 617: SYSTEM: Notify register to [DSP] line 0, event 15 ...
[c6xdsp ] 13: SYSTEM: Notify register to [VPSS-M3] line 0, event 15 ...
[m3video] 617: SYSTEM: Notify register to [VPSS-M3] line 0, event 15 ...
[m3vpss ] 617: SYSTEM: Notify register to [VIDEO-M3] line 0, event 15 ...
[c6xdsp ] 13: SYSTEM: IPC init DONE !!!
[m3video] 617: SYSTEM: IPC init DONE !!!
[m3vpss ] 617: SYSTEM: IPC init DONE !!!
[c6xdsp ] 15: MEM: Shared Region 2: Base = 0xaf800000, Length = 0x0ec00000 (236 MB)
[c6xdsp ] 15: MEM: ERROR: SharedRegion_setEntry (2, 0x9fedfb9c) FAILED !!! (status=-1)
=============3: load_c6xdsp end ============
[m3video] 622: MEM: Shared Region 2: Base = 0xaf800000, Length = 0x0ec00000 (236 MB)
[m3vpss ] 622: MEM: Shared Region 2: Base = 0xaf800000, Length = 0x0ec00000 (236 MB)
[m3video] 623: MEM: Shared Region 1: Base = 0x90000000, Length = 0x0c680000 (198 MB)
[m3vpss ] 623: MEM: Shared Region 1: Base = 0x90000000, Length = 0x0c680000 (198 MB)
[m3video] 624: SYSTEM : System Common Init Done !!!
[m3vpss ] 624: SYSTEM : System Common Init Done !!!
[m3video] -=- SYSTEM : System_main step 1 System_initCommon() !!! links_common/system/system_common.c 72
[m3vpss ] -=- SYSTEM : System_main step 1 System_initCommon() !!! links_common/system/system_common.c 72
[m3video] 625: SYSTEM : System Video Init in progress !!!
[m3vpss ] 625: SYSTEM : System VPSS Init in progress !!!
[m3video] 625: SYSTEM : System Video Init Done !!!
[m3video] 625: SYSTEM: Creating ListMP [VIDEO-M3_IPC_OUT_0] in region 0 ...
[m3video] 626: SYSTEM: Creating ListMP [VIDEO-M3_IPC_IN_0] in region 0 ...
[m3video] 626: SYSTEM: ListElem Shared Addr = 0xbee73e00
[m3video] -=- 626: System_ipcListMPAllocListElemMem : Done !!!
[m3video] -=- 626: IpcOutM3Link_allocListElem : Done !!!
[m3video] 628: SYSTEM: Creating ListMP [VIDEO-M3_IPC_OUT_1] in region 0 ...
[m3video] 628: SYSTEM: Creating ListMP [VIDEO-M3_IPC_IN_1] in region 0 ...
[m3video] 628: SYSTEM: ListElem Shared Addr = 0xbee77300
[m3video] -=- 628: System_ipcListMPAllocListElemMem : Done !!!
[m3video] -=- 628: IpcOutM3Link_allocListElem : Done !!!
[m3video] 634: SYSTEM: Creating ListMP [VIDEO-M3_IPC_OUT_19] in region 0 ...
[m3vpss ] === HDVPSS Clocks are enabled ===
[m3video] 634: SYSTEM: Creating ListMP [VIDEO-M3_IPC_IN_19] in region 0 ...
[m3vpss ] === HDVPSS is fully functional ===
[m3video] 635: SYSTEM: ListElem Shared Addr = 0xbee7dd00
DMA: Module install successful, device major num = 251
DRV: Module install successful
DRV: Module built on Jul 9 2014 09:03:48
=============4: osa_kermod_load end ============
=============5: wait_cmd start ============
[c6xdsp ] Remote Debug Shared Memory @ 0xbeb00000
[m3video] Remote Debug Shared Memory @ 0xbeb10820
[m3vpss ] Remote Debug Shared Memory @ 0xbeb21040
=============6: wait_cmd m3vpss end ============
[c6xdsp ] Remote Debug Shared Memory @ 0xbeb00000
[m3video] Remote Debug Shared Memory @ 0xbeb10820
[m3vpss ] Remote Debug Shared Memory @ 0xbeb21040
=============7: wait_cmd m3video end ============
[c6xdsp ] Remote Debug Shared Memory @ 0xbeb00000
[m3video] Remote Debug Shared Memory @ 0xbeb10820
[m3vpss ] Remote Debug Shared Memory @ 0xbeb21040
=============8: wait_cmd c6xdsp end ============
/opt/dvr_rdk/ti816x
=============9: insmod start ============
[module] vpss probe done.
=============10: insmod vpss.ko end ============
[module] ti81xxfb probe done.
=============11: insmod ti81xxfb.ko end ============
root@dm816x:/opt/dvr_rdk/ti816x#
root@dm816x:/opt/dvr_rdk/ti816x#
root@dm816x:/opt/dvr_rdk/ti816x#
root@dm816x:/opt/dvr_rdk/ti816x#
root@dm816x:/opt/dvr_rdk/ti816x#
root@dm816x:/opt/dvr_rdk/ti816x#
root@dm816x:/opt/dvr_rdk/ti816x# ./run.sh
-=-demo.c main 159 ->

=========
Main Menu
=========

1: VCAP + VENC + VDEC + VDIS - Progressive SD Encode + Decode
2: VCAP + VENC + VDIS - SD Encode ONLY
3: VCAP + VENC + VDEC + VDIS - Progressive HD Encode + Decode
4: VDEC + VDIS - SD/HD Decode ONLY
a: 960H DVR usecase

e: Exit

Enter Choice: 4
-=-demo_vdec_vdis.c VdecVdis_start 72 ->
-=-demo_vdec_vdis_bits_rd.c VdecVdis_bitsRdInit 657 ->
-=-demo_vdec_vdis_bits_rd.c VdecVdis_bitsRdGetFileInfoFromIniFile 578 ->
-=-demo_vdec_vdis_bits_rd.c VdecVdis_bitsRdParseIniFile 252 ->

Sample ini files available in ./demo_ini folder.
Enter the .ini filename with full path : /opt/dvr_rdk/ti816x/demo_ini/1280x720_00_12CH.ini
*** a new param codec is needed for ini, if you not sure about this
*** please reference demo_ini/704x576_02_32CH.ini
*** H264: codec = h264
*** MPEG4: codec = mpeg4
*** MJPEG: codec = mjpeg
*** Four new params numbuf ,displaydelay,tilerEnable,fieldPicture has been added for ini, if not defaults are set

*** Generate header files *** 


This will take very long time if the file is large.
- For first time you MUST select YES.
- If you already have the header file on disk, you can select NO.

Do you want to generate header ? (YES - y, NO - n) : y

0: Opening file [/data/1280x720_00.h264] of 1280 x 720 Codec: h264...
Input file [/data/1280x720_00.h264] opened successfully !!!
Output file [/data/1280x720_00.h264.hdr] opened successfully !!!
gVdecVdis_config.numChannels : 1 gVdecVdis_config.chBufSize[0] : 921600


File open ... DONE !!!

-=-demo_vdec_vdis_bits_rd.c VdecVdis_bitsRdInitThrObj 627 ->
--------------- CHANNEL DETAILS-------------
Dec Channels => 1
Disp Channels => 1
-------------------------------------------
0: SYSTEM: System Common Init in progress !!!
0: SYSTEM: IPC init in progress !!!
12: SYSTEM: CPU [DSP] syslink proc ID is [0] !!!
12: SYSTEM: CPU [VIDEO-M3] syslink proc ID is [1] !!!
12: SYSTEM: CPU [VPSS-M3] syslink proc ID is [2] !!!
12: SYSTEM: CPU [HOST] syslink proc ID is [3] !!!
13: SYSTEM: Creating MsgQ Heap [IPC_MSGQ_MSG_HEAP_3] ...
15: SYSTEM: Creating MsgQ [HOST_MSGQ] ...
17: SYSTEM: Creating MsgQ [HOST_ACK_MSGQ] ...
-=- 18: SYSTEM: Opening MsgQ [DSP_MSGQ] : system_ipc_msgq.c System_ipcMsgQCreate 281
-=- 28: SYSTEM: Opening MsgQ [VIDEO-M3_MSGQ] : system_ipc_msgq.c System_ipcMsgQCreate 281
-=- 29: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] : system_ipc_msgq.c System_ipcMsgQCreate 281
30: SYSTEM: Notify register to [DSP] line 0, event 15 ...
30: SYSTEM: Notify register to [VIDEO-M3] line 0, event 15 ...
31: SYSTEM: Notify register to [VPSS-M3] line 0, event 15 ...
32: SYSTEM: IPC init DONE !!!
-=- 33: SYSTEM: Creating ListMP [HOST_IPC_OUT_24] in region 0 ...
35: SYSTEM: Creating ListMP [HOST_IPC_IN_24] in region 0 ...
36: SYSTEM: ListElem Shared Addr = 0x40f60880

[host] -=- 36: IpcBitsOutLink_allocListElem : Done !!!
-=- 37: SYSTEM: Creating ListMP [HOST_IPC_OUT_25] in region 0 ...
40: SYSTEM: Creating ListMP [HOST_IPC_IN_25] in region 0 ...
41: SYSTEM: ListElem Shared Addr = 0x40f95a80

[host] -=- 41: IpcBitsOutLink_allocListElem : Done !!!
-=- 42: SYSTEM: System_init IpcFramesInLink_init end !!! system_common.c 77
-=- 43: SYSTEM: Creating ListMP [HOST_IPC_OUT_19] in region 0 ...
45: SYSTEM: Creating ListMP [HOST_IPC_IN_19] in region 0 ...
46: SYSTEM: ListElem Shared Addr = 0x40fcac80

[host] -=- 46: IpcFramesOutLink_allocListElem : Done !!! ipcFramesOutLink_tsk.c 557
-=- 47: SYSTEM: Creating ListMP [HOST_IPC_OUT_20] in region 0 ...
49: SYSTEM: Creating ListMP [HOST_IPC_IN_20] in region 0 ...
51: SYSTEM: ListElem Shared Addr = 0x4100df80

[host] -=- 51: IpcFramesOutLink_allocListElem : Done !!! ipcFramesOutLink_tsk.c 557
-=- 52: SYSTEM: Creating ListMP [HOST_IPC_OUT_21] in region 0 ...
54: SYSTEM: Creating ListMP [HOST_IPC_IN_21] in region 0 ...
56: SYSTEM: ListElem Shared Addr = 0x41051280

[host] -=- 56: IpcFramesOutLink_allocListElem : Done !!! ipcFramesOutLink_tsk.c 557
-=- 56: SYSTEM: System_init !!! system_common.c 80

[host] -=- AvsyncLink_init start --- avsync.c 920
-=- System_linkControl start procId = 2 --- system_linkApi.c 38
-=- System_linkControl System_getSelfProcId = 3 --- system_linkApi.c 46
-=- System_ipcMsgQSendMsg start--- system_ipc_msgq.c 448
-=- System_ipcMsgQSendMsg procId = 2 --- system_ipc_msgq.c 452
-=- System_ipcMsgQSendMsg step 1 --- system_ipc_msgq.c 492
-=- System_ipcMsgQSendMsg step 2 waitAck --- system_ipc_msgq.c 521