hi TI friends,
as you can see the following, we can kill dvr_rdk_demo_mcfw_api.out successfully.
root@dm816x:/opt/dvr_rdk/ti816x# ps
PID USER VSZ STAT COMMAND
1 root 1708 S init [5]
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
4 root 0 SW [kworker/0:0]
5 root 0 SW [kworker/u:0]
6 root 0 SW< [khelper]
7 root 0 SW [irq/72-serial i]
8 root 0 SW [irq/73-serial i]
9 root 0 SW [irq/74-serial i]
10 root 0 SW< [mboxd]
11 root 0 SW [sync_supers]
12 root 0 SW [bdi-default]
13 root 0 SW< [kblockd]
14 root 0 SW [khubd]
15 root 0 SW [kseriod]
16 root 0 SW< [musb-hdrc.0]
17 root 0 SW< [musb-hdrc.1]
18 root 0 SW< [rpciod]
19 root 0 SW [kswapd0]
20 root 0 SW [kworker/0:1]
21 root 0 SW< [aio]
22 root 0 SW< [nfsiod]
23 root 0 SW [kworker/u:1]
28 root 0 SW [mtdblock0]
29 root 0 SW [mtdblock1]
30 root 0 SW [mtdblock2]
31 root 0 SW [mtdblock3]
32 root 0 SW [mtdblock4]
33 root 0 SW [mtdblock5]
34 root 0 SW [mtdblock6]
35 root 0 SW [mtdblock7]
36 root 0 SW [mtdblock8]
41 root 0 SW< [usbhid_resumer]
193 messageb 3324 S /usr/bin/dbus-daemon --system
198 root 2936 S /usr/sbin/telnetd
203 root 3000 S /sbin/syslogd -n -C64 -m 20
205 root 2936 S /sbin/klogd -n
228 root 1752 S ./bin/remote_debug_client.out 0xdf000000
231 root 0 SW [flush-0:15]
269 root 0 SW< [HDMI WQ]
279 root 2516 S login -- root
280 root 3396 S -sh
285 root 490m S /opt/dvr_rdk/ti816x/bin/dvr_rdk_demo_mcfw_api.out
318 root 3128 R ps
root@dm816x:/opt/dvr_rdk/ti816x# killall dvr_rdk_demo_mcfw_api.out
mcfw Obtained signum 15, 5 stack frames.
/opt/dvr_rdk/ti816x/bin/dvr_rdk_demo_mcfw_api.out [0xc730]
/lib/libc.so.6(__default_rt_sa_restorer_v2+0) [0x2ace6630]
/lib/libc.so.6(__select+0x50) [0x2ad774b0]
/opt/dvr_rdk/ti816x/bin/dvr_rdk_demo_mcfw_api.out [0x10ed8]
/lib/libc.so.6(__libc_start_main+0x120) [0x2accffd4]
select error . errno=4 [Interrupted system call]
root@dm816x:/opt/dvr_rdk/ti816x# shutdownDsp...
accept: Invalid argument
accept: Invalid argument
accept: Invalid argument
accept: Invalid argument
[m3vpss ] 735633: CAPTURE: Stop in progress !!!
[m3vpss ] 735809: CAPTURE: Stop Done !!!
[m3vpss ] 735810: DEI : Stop in progress, 0 requests pending !!!
[m3vpss ] 735810: DEI : Stop Done !!!
[m3vpss ] 735810: DEI : Stop in progress, 0 requests pending !!!
[m3vpss ] 735810: DEI : Stop Done !!!
wait for enc thread exit.
wait for dec thread exit.
[m3video] 737811: DECODE: Stop in progress !!!
[m3vpss ] 737812: SCLR : Stop in progress, 0 requests pending !!!
[m3video] 737811: DECODE: Stop Done !!!
[m3vpss ] 737812: SCLR : Stop Done !!!
[m3vpss ] 737812: DISPLAY: Stop in progress !!!
[m3vpss ] 737868: DISPLAY: Stop Done !!!
[m3vpss ] 737868: DISPLAY: Stop in progress !!!
[m3vpss ] 737921: DISPLAY: Stop Done !!!
[m3video] 737922: ENCODE: CH-1:
[m3video] Stop in progress !!!
[m3vpss ]
[m3video] 737922: ENCODE: CH-1:
[m3video] Stop done !!!
[m3vpss ] *** Capture Driver Advanced Statistics ***
[m3vpss ]
[m3vpss ] VIP Parser Reset Count : 0
[c6xdsp ] 747500: IPCFRAMESIN:Link[17]:
[c6xdsp ] RECV:84160 FREE:84160,DROPPED:0,AVGLATENCY:0
[c6xdsp ] 747500: IPC_FRAMES_IN : Delete in progress !!!
[c6xdsp ] 747500: IPC_FRAMES_IN : Delete Done !!!
[m3vpss ]
[c6xdsp ] 747500: ALG : Delete in progress !!!
[c6xdsp ] 747500: SCD : Delete in progress !!!
[m3vpss ] | Total Even Odd Total Even Odd Min / Max Min / Max Dropped Fid Repeat Frame Error Y/C
[c6xdsp ] 747500: SCD: Process Tsk Stopping !!!
[c6xdsp ] 747500: SCD: Process Tsk Stopped !!!
[m3vpss ] CH | Fields Fields Fields FPS FPS FPS Width Height Fields Count (Desc Error Y/C)
[c6xdsp ] 747500: SCD: Process Tsk Stopping DONE !!!
[c6xdsp ] UTILS: DMA: Free'ed CH (TCC) = 30 (30)
[m3vpss ] ------------------------------------------------------------------------------------------------------------
[host] 536937: IPCBITSIN:Link[3000001b]:
[host] RECV:84160 FREE:84160,DROPPED:0,AVGLATENCY:0,AVG_APP_CB_TIME:0
[host] 536937: IPC_BITS_IN : Delete in progress !!!
[host] 536938: IPC_BITS_IN : Delete Done !!!
[host] 536944: IPC_BITS_OUT : Delete in progress !!!
[host]
536944: IPCBITSOUT:Link[30000018]:
[host] RECV:0 FREE:0,DROPPED:0,AVGLATENCY:0
[host] 536944: IPC_BITS_OUT : Delete Done !!!
[host] 536944: IPCBITSIN:Link[3000001a]:
[host] RECV:252584 FREE:252584,DROPPED:0,AVGLATENCY:5,AVG_APP_CB_TIME:5
[host] 536944: IPC_BITS_IN : Delete in progress !!!
[host] 536945: IPC_BITS_IN : Delete Done !!!
[c6xdsp ] 747502: SCD : Delete Done !!!
[m3video]
[m3vpss ] 000 | 31564 15782 15782 60 30 30 720 / 720 243 / 244 1 0 0/0 (0/0)
[c6xdsp ] 747502: UTILS: EDMA RM Closed
[m3video] 737959: LOAD: CPU: 24.9% HWI: 2.1%, SWI:2.6%
[c6xdsp ] 747502: UTILS: EDMA RM Deleted
[m3video]
[m3vpss ] 001 | 31564 15782 15782 60 30 30 720 / 720 243 / 244 1 0 0/0 (0/0)
[c6xdsp ] 747502: ALG : Delete Done !!!
[m3video] 737961: IPC_OUT_M3 : Delete in progress !!!
[c6xdsp ] 747502: IPC_BITS_OUT : Delete in progress !!!
[m3video] 737961: IPC_OUT_M3 : Delete Done !!!
[m3vpss ] 002 | 31564 15782 15782 60 30 30 720 / 720 243 / 244 1 0 0/0 (0/0)
[m3video] 737961: DECODE: Stop in progress !!!
[c6xdsp ] 747502: IPCBITSOUT:Link[19]:
[c6xdsp ] RECV:84160 FREE:84160,DROPPED:0,AVGLATENCY:0
[c6xdsp ] 747502: PRF : IPC_BITS_OUT1 : t: 906 ms, c: 11091, f: 84160, fps: 92891, fpc: 7
[m3video] 737961: DECODE: Stop Done !!!
[m3vpss ] 003 | 31564 15782 15782 60 30 30 720 / 720 243 / 244 1 0 0/0 (0/0)
[m3video] 737961: DECODE: Delete in progress !!!
[c6xdsp ] 747502: IPC_BITS_OUT : Delete Done !!!
[m3video] 737962: DECODE: CodecInst and OutFrm bufs were NOT created for CH0
[m3vpss ] 100 | 31563 15782 15781 60 30 30 720 / 720 243 / 244 1 1 0/0 (0/0)
[c6xdsp ]
[m3video] 737962: DECODE: CodecInst and OutFrm bufs were NOT created for CH1
[c6xdsp ] 747505: LOAD: CPU: 21.7% HWI: 0.4%, SWI:0.2%
[m3video] 737962: DECODE: CodecInst and OutFrm bufs were NOT created for CH2
[m3vpss ] 101 | 31563 15782 15781 60 30 30 720 / 720 243 / 244 1 1 0/0 (0/0)
[c6xdsp ]
[m3video] 737962: DECODE: CodecInst and OutFrm bufs were NOT created for CH3
[m3video] 737962: DECODE: CodecInst and OutFrm bufs were NOT created for CH4
[m3vpss ] 102 | 31563 15782 15781 60 30 30 720 / 720 243 / 244 1 1 0/0 (0/0)
[m3video] 737962: DECODE: CodecInst and OutFrm bufs were NOT created for CH5
[m3video] 737962: DECODE: CodecInst and OutFrm bufs were NOT created for CH6
[m3vpss ] 103 | 31563 15782 15781 60 30 30 720 / 720 243 / 244 1 1 0/0 (0/0)
[m3video] 737962: DECODE: CodecInst and OutFrm bufs were NOT created for CH7
[m3video] 737963: DECODE: Delete Done !!!
[m3vpss ] 200 | 31563 15782 15781 60 30 30 720 / 720 243 / 244 1 1 0/0 (0/0)
[m3video] 737963: SYSTEM : FREE SPACE : System Heap = 5893504 B, Mbx = 10239 msgs)
[m3vpss ] 201 | 31563 15782 15781 60 30 30 720 / 720 243 / 244 1 1 0/0 (0/0)
[host] Entered:Enc_ipcBitsExit...
[host] Leaving:Enc_ipcBitsExit... 537282: SYSTEM: System Common De-Init in progress !!!
[host] OSA_tskDelete:In progress...
[host] OSA_tskDelete:In progress...
[host] OSA_tskDelete:In progress...
[host] OSA_tskDelete:In progress...
[host] OSA_tskDelete:In progress...
[host] OSA_tskDelete:In progress...
[host] OSA_tskDelete:In progress...
[host] OSA_tskDelete:In progress...
[host] OSA_tskDelete:In progress...
[host] OSA_tskDelete:In progress... 537287: SYSTEM: IPC de-init in progress !!!
[m3video] 737963: IPCBITSIN:Link[1000001a]:
[m3video] RECV:0 FREE:0,DROPPED:0,AVGLATENCY:0
[m3video] 737963: IPC_BITS_IN : Delete in progress !!!
[m3vpss ] 202 | 31563 15782 15781 60 30 30 720 / 720 243 / 244 1 1 0/0 (0/0)
[m3video] 737963: IPC_BITS_IN : Delete Done !!!
[m3video] 737963: SYSTEM : FREE SPACE : SR0 Heap = 10811648 B (10 MB)
[m3vpss ] 203 | 31563 15782 15781 60 30 30 720 / 720 243 / 244 1 1 0/0 (0/0)
[m3video] 737963: SYSTEM : FREE SPACE : Frame Buffer = 1004462208 B (957 MB)
[m3vpss ] 300 | 31562 15781 15781 60 30 30 720 / 720 243 / 244 1 0 0/0 (0/0)
537312: SYSTEM: IPC de-init DONE !!!
537312: SYSTEM: System Common De-Init Done !!!
[m3video] 737964: SYSTEM : FREE SPACE : Bitstream Buffer = 188431744 B (179 MB)
[m3vpss ] 301 | 31562 15781 15781 60 30 30 720 / 720 243 / 244 1 0 0/0 (0/0)
[m3video] 737964: SYSTEM : FREE SPACE : Tiler 8-bit = 89128960 B (85 MB) - TILER ON
[m3vpss ] 302 | 31562 15781 15781 60 30 30 720 / 720 243 / 244 1 0 0/0 (0/0)
[m3video] 737964: SYSTEM : FREE SPACE : Tiler 16-bit = 44040192 B (42 MB) - TILER ON
[m3vpss ] 303 | 31562 15781 15781 60 30 30 720 / 720 243 / 244 1 0 0/0 (0/0)
[m3vpss ]
[m3video] 737965: HDVICP-ID:0
[m3video] 737965: IPC_BITS_OUT : Delete in progress !!!
[m3vpss ] VIP Capture Port 0 | DescMissMatch1 = 0, DescMissMatch2 = 0 , DescMissMatch3 = 0
[m3vpss ] VIP Capture Port 1 | DescMissMatch1 = 0, DescMissMatch2 = 0 , DescMissMatch3 = 0
[m3video] 737965: IPCBITSOUT:Link[10000018]:
[m3video] RECV:252584 FREE:252584,DROPPED:0,AVGLATENCY:11
[m3video] 737965: PRF : IPC_BITS_OUT0 : t: 4719 ms, c: 46950, f: 252584, fps: 53524, fpc: 5
[m3vpss ] VIP Capture Port 2 | DescMissMatch1 = 0, DescMissMatch2 = 0 , DescMissMatch3 = 0
[m3vpss ] VIP Capture Port 3 | DescMissMatch1 = 0, DescMissMatch2 = 0 , DescMissMatch3 = 0
[m3video] 737965: IPC_BITS_OUT : Delete Done !!!
[m3vpss ]
[m3video] All percentage figures are based off totalElapsedTime
[m3vpss ] *** Capture List Manager Advanced Statistics ***
[m3video] totalAcquire2wait :3 %
[m3video] totalWait2Isr :53 %
[m3video] totalIsr2Done :0 %
[m3video] totalWait2Done :53 %
[m3video] totalDone2Release :0 %
[m3video] totalAcquire2Release :60 %
[m3video] totalAcq2acqDelay :39 %
[m3video] totalElapsedTime in msec : 526506
[m3video] numAccessCnt: 464880
[m3vpss ]
[m3video] IVA-FPS : 883
[m3vpss ] List Post Count : 256710
[m3video] Average time spent per frame in microsec: 599
[m3vpss ] List Stall Count : 0
[m3video] 737966: HDVICP-ID:1
[m3video] All percentage figures are based off totalElapsedTime
[m3vpss ] List Post Time (ms) : Max = 2, Min = 0, Avg = 0, Total = 2065
[m3video] totalAcquire2wait :3 %
[m3video] totalWait2Isr :49 %
[m3video] totalIsr2Done :0 %
[m3video] totalWait2Done :50 %
[m3video] totalDone2Release :0 %
[m3video] totalAcquire2Release :54 %
[m3video] totalAcq2acqDelay :45 %
[m3video] totalElapsedTime in msec : 526505
[m3video] numAccessCnt: 468156
[m3vpss ] INTC Timeout Count : (0, 0) (Min timeout value = 917, 973)
[m3video] IVA-FPS : 890
[m3vpss ] Descriptor miss found count : 0
[m3video] Average time spent per frame in microsec: 550
[m3vpss ]
[m3video] 737967: HDVICP-ID:2
[m3vpss ]
[m3video] All percentage figures are based off totalElapsedTime
[m3vpss ] VIP and VPDMA registers,
[m3video] totalAcquire2wait :0 %
[m3video] totalWait2Isr :0 %
[m3video] totalIsr2Done :0 %
[m3video] totalWait2Done :0 %
[m3video] totalDone2Release :0 %
[m3video] totalAcquire2Release :0 %
[m3video] totalAcq2acqDelay :0 %
[m3video] totalElapsedTime in msec : 0
[m3video] numAccessCnt: 0
[m3vpss ] VIP0 : FIQ_STATUS : 0x4810551c = 0x00000000
[m3video] IVA-FPS : 0
[m3vpss ] VIP1 : FIQ_STATUS : 0x48105a1c = 0x00000000
[m3video] Average time spent per frame in microsec: 0
[m3vpss ] VPDMA: LIST_BUSY : 0x4810d00c = 0x00000000
[m3video] 737967: ENCODE: CH-1:
[m3video] Stop in progress !!!
[m3vpss ]
[m3video] 737967: ENCODE: CH-1:
[m3video] Stop done !!!
[m3vpss ]
[m3video] 737968: ENCODE: CH-1:
[m3video] ENC : Delete in progress !!!
[m3vpss ] 737929: CAPTURE: Fields = 504960 (fps = 958, CPU Load = 0)
[m3video] 737983: ENCODE: CH-1:
[m3video] ENC : Delete done !!!
[m3video] 737984: IPC_IN_M3 : Delete in progress !!!
[m3vpss ] 737929: CAPTURE: Num Resets = 0 (Avg 0 ms per reset)
[m3video] 737984: IPC_IN_M3 : Delete Done !!!
[m3vpss ] 737930: SYSTEM : FREE SPACE : System Heap = 5744 B, Mbx = 10239 msgs)
[m3vpss ] 737930: SYSTEM : FREE SPACE : SR0 Heap = 10811648 B (10 MB)
[m3vpss ] 737930: SYSTEM : FREE SPACE : Frame Buffer = 715878528 B (682 MB)
[m3vpss ] 737930: SYSTEM : FREE SPACE : Bitstream Buffer = 187596160 B (178 MB)
[m3vpss ] 737930: SYSTEM : FREE SPACE : Tiler 8-bit = 89128960 B (85 MB) - TILER ON
[m3vpss ] 737930: SYSTEM : FREE SPACE : Tiler 16-bit = 44040192 B (42 MB) - TILER ON
[m3vpss ] 737931: CAPTURE: Delete in progress !!!
[m3vpss ] UTILS: DMA: Free'ed CH (TCC) = 58 (58)
[m3vpss ] 737931: CAPTURE: Delete Done !!!
[m3vpss ] 737932: DEI : Fields = 252480 (fps = 703), !!!
[m3vpss ] 737932: DEI : Delete in progress !!!
[m3vpss ] 737934: DEI : Delete Done !!!
[m3vpss ] 737934: DEI : Fields = 252472 (fps = 687), !!!
[m3vpss ] 737935: DEI : Delete in progress !!!
[m3vpss ] 737937: DEI : Delete Done !!!
[m3vpss ] 737937: DUP : Delete Done !!!
[m3vpss ] 737937: MERGE : Delete Done !!!
[m3vpss ] 737938: SELECT : Delete Done !!!
[m3vpss ] 737938: SCLR : Stop in progress, 0 requests pending !!!
[m3vpss ] 737938: SCLR : Stop Done !!!
[m3vpss ] 737938: SCLR : Fields = 0 (fps = 0), FRAMES -> Total 0, skipped 0, fps = 0!!!
[m3vpss ] 737938: SCLR: Delete in progress !!!
[m3vpss ] 737938: SCLR: Delete Done !!!
[m3vpss ] 737939: NSF : Fields = 0 (fps = 0) !!!
[m3vpss ] 737939: NSF: Delete in progress !!!
[m3vpss ] 737939: NSF: Delete Done !!!
[m3vpss ] 737939: IPC_OUT_M3 : Delete in progress !!!
[m3vpss ] 737939: IPC_OUT_M3 : Delete Done !!!
[m3vpss ] 737940: IPC_IN_M3 : Delete in progress !!!
[m3vpss ] 737940: IPC_IN_M3 : Delete Done !!!
[m3vpss ] UTILS: DMA: Free'ed CH (TCC) = 59 (59)
[m3vpss ] UTILS: DMA: Free'ed CH (TCC) = 60 (60)
[m3vpss ] 737951: DISPLAY: Frames = 15870 (fps = 29) !!!
[m3vpss ] 737951: DISPLAY: Delete in progress !!!
[m3vpss ] 737951: DISPLAY: Delete Done !!!
[m3vpss ] 737951: DISPLAY: Frames = 15856 (fps = 29) !!!
[m3vpss ] 737951: DISPLAY: Delete in progress !!!
[m3vpss ] 737951: DISPLAY: Delete Done !!!
[m3vpss ] 737952: DUP : Delete Done !!!
[m3vpss ] 737952: DUP : Delete Done !!!
[m3vpss ] 737952: DUP : Delete Done !!!
[m3vpss ] 737953: MERGE : Delete Done !!!
[m3vpss ] 737953: MERGE : Delete Done !!!
[m3vpss ] 737953: MERGE : Delete Done !!!
[m3vpss ] 737953: MERGE : Delete Done !!!
[m3vpss ] 737954: IPC_FRAMES_OUT : Delete in progress !!!
[m3vpss ] 737954: IPCFRAMESOUT:Link[20000014]:
[m3vpss ] RECV:252476 FORWARD:0,DROPPED:168316,AVGLATENCY:0
[m3vpss ] 737954: PRF : IPC_FRAMES_OUT1 : t: 2849 ms, c: 34246, f: 252476, fps: 88619, fpc: 7
[m3vpss ] 737954: IPC_FRAMES_OUT : Delete Done !!!
[m3vpss ]
[m3vpss ] 737958: LOAD: CPU: 62.6% HWI: 7.0%, SWI:4.4%
[m3vpss ]
[m3vpss ] 737960: DISPLAY: UNDERFLOW COUNT: HDMI(BP0) 32085, HDDAC(BP0) 29568, DVO2(BP1) 29567, SDDAC(SEC1) 31082
root@dm816x:/opt/dvr_rdk/ti816x#
but sometimes we can't kill dvr_rdk_demo_mcfw_api.out successfully, just as below
root@dm816x:/opt/dvr_rdk/ti816x# killall dvr_rdk_demo_mcfw_api.out
mcfw Obtained signum 15, 9 stack frames.
/opt/dvr_rdk/ti816x/bin/dvr_rdk_demo_mcfw_api.out [0xc730]
/lib/libc.so.6(__default_rt_sa_restorer_v2+0) [0x2acd1630]
/lib/libpthread.so.0 [0x2ab5b808]
/lib/libpthread.so.0(pthread_mutex_lock+0x1a0) [0x2ab54c20]
/opt/dvr_rdk/ti816x/bin/dvr_rdk_demo_mcfw_api.out [0x5ba28]
/opt/dvr_rdk/ti816x/bin/dvr_rdk_demo_mcfw_api.out [0x50f04]
/opt/dvr_rdk/ti816x/bin/dvr_rdk_demo_mcfw_api.out [0x2c1c4]
/opt/dvr_rdk/ti816x/bin/dvr_rdk_demo_mcfw_api.out [0x11280]
/lib/libc.so.6(__libc_start_main+0x120) [0x2acbafd4]
root@dm816x:/opt/dvr_rdk/ti816x#
did you have any idea about this ??