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.

Can't capture video from camera after enable SGX in DM8168

Hi, Our platform is DM8168 with RDK4.0 and Graphics_SDK_4_06_00_03. We can capture video from camera, but if enable SGX on DM8168, we encountered the issue. ​ error logs --------------------------------------------------------------------------- root@HDMTerm:~# [m3vpss ] 3076636: CAPTURE: Create in progress !!! [m3vpss ] 3076666: CAPTURE: VIP0 PortA capture mode is [16-bit, Non-mux Discrete Sync - ACTVID_VSYNC] !!! [m3vpss ] 3076896: CAPTURE: VIP1 PortA capture mode is [16-bit, Non-mux Discrete Sync - ACTVID_VSYNC] !!! [m3vpss ] UTILS: DMA: Allocated CH (TCC) = 58 (58) [m3vpss ] UTILS: DMA: 0 of 4: Allocated PaRAM = 58 (0x49004740) [m3vpss ] UTILS: DMA: 1 of 4: Allocated PaRAM = 64 (0x49004800) [m3vpss ] UTILS: DMA: 2 of 4: Allocated PaRAM = 65 (0x49004820) [m3vpss ] UTILS: DMA: 3 of 4: Allocated PaRAM = 66 (0x49004840) [m3vpss ] CAPTURE::HEAPID:0 USED:520 [m3vpss ] CAPTURE::HEAPID:4 USED:103680000 [m3vpss ] 3077127: CAPTURE: Create Done !!! [m3vpss ] 3077132: DUP : Create Done !!! [m3vpss ] 3077132: DEI : Create in progress !!! [m3vpss ] 3077335: DEI : Loading Down-scaling Co-effs [m3vpss ] 3077335: DEI : Co-effs Loading ... DONE !!! [m3vpss ] 3077335:DEI:Resolution LinkId[0x20000026],ChId[0],inW[1920],inH[1080],outW[1920],outH[1080] [m3vpss ] 3077335:DEI:Resolution LinkId[0x20000026],ChId[1],inW[1920],inH[1080],outW[1920],outH[1080] [m3vpss ] 3077335:DEI:ScalerCoeff LinkId[0x20000026],VIP_SC :HorzCoeff:VPS_SC_SET_1_1,VertCoeff:VPS_SC_SET_1_1 [m3vpss ] DEI:HEAPID:0 USED:64 [m3vpss ] DEI:HEAPID:1 USED:6144 [m3vpss ] DEI:HEAPID:4 USED:43545600 [m3vpss ] 3077336: DEI : Create Done !!! [m3vpss ] 3077336: IPC_OUT_M3 : Create in progress !!! [m3vpss ] 3077337: IPC_OUT_M3 : Create Done !!! [m3vpss ] 3077338: CAPTURE: Start in progress !!! [m3vpss ] 3077438: CAPTURE: Enabled Time Stamping !!! [m3video] 3077454: IPC_IN_M3 : Create in progress !!! [m3vpss ] 3077446: CAPTURE: Enabled Time Stamping !!! [m3video] 3077455: SYSTEM: Opening ListMP [VPSS-M3_IPC_OUT_0] ... [m3vpss ] 3077454: CAPTURE: Start Done !!! [m3video] 3077455: SYSTEM: Opening ListMP [VPSS-M3_IPC_IN_0] ... [m3video] 3077457: IPC_IN_M3 : Create Done !!! [m3video] 3077457: ENCODE: Create in progress ... !!! [m3video] 3077518: ENCODE: Creating CH0 of 1920 x 1080, pitch = (1920, 1920) [PROGRESSIVE] [NON-TILED ], bitrate = 2000 Kbps ... [m3video] ENCLINK_H264:HEAPID:0 USED:13808 [m3video] ENCLINK_H264:HEAPID:3 USED:7176192 [m3video] 3077552: ENCODE: Creating CH1 of 1920 x 1080, pitch = (1920, 1920) [PROGRESSIVE] [NON-TILED ], bitrate = 2000 Kbps ... [m3video] ENCLINK_H264:HEAPID:0 USED:11912 [m3video] ENCLINK_H264:HEAPID:3 USED:7176192 [m3video] 3077587: ENCODE: All CH Create ... DONE !!! [m3vpss ] 3077619: IPC_IN_M3 : Create in progress !!! [m3video] ENCLINK:HEAPID:0 USED:25840 [m3vpss ] 3077619: SYSTEM: Opening ListMP [VIDEO-M3_IPC_OUT_0] ... [m3video] ENCLINK:HEAPID:2 USED:12441600 [m3vpss ] 3077619: SYSTEM: Opening ListMP [VIDEO-M3_IPC_IN_0] ... [m3video] ENCLINK:HEAPID:3 USED:14352384 [m3vpss ] 3077620: SYSTEM: Opening MsgQ [VIDEO-M3_MSGQ] ... [m3video] 3077588: ENCODE: Create ... DONE !!! [m3vpss ] 3077622: IPC_IN_M3 : Create Done !!! [m3video] 3077589: IPC_BITS_OUT : Create in progress !!! [m3vpss ] 3077623: MERGE : Create Done !!! [m3vpss ] 3077628: DUP : Create Done !!! [m3video] 3077590: IPC_BITS_OUT : Create Done !!! [m3vpss ] 3077629: SWMS: Create in progress !!! [m3video] 3077602: IPC_BITS_IN : Create in progress !!! [m3video] 3077602: SYSTEM: Opening ListMP [HOST_IPC_OUT_24] ... [m3video] 3077602: SYSTEM: Opening ListMP [HOST_IPC_IN_24] ... [m3video] 3077603: SYSTEM: Opening MsgQ [HOST_MSGQ] ... [m3video] 3077605: IPC_BITS_IN : Create Done !!! [m3video] 3077605: DECODE: Create in progress ... !!! [m3video] 3077606: DECODE: CodecInst and OutFrm bufs are NOT created for CH0 [m3video] 3077607: DECODE: Creating CH0 of 352 x 288 [PROGRESSIVE] [NON-TILED ],target bitrate = 2000 Kbps ... [m3video] 3077607: DECODE: CodecInst and OutFrm bufs are NOT created for CH1 [m3video] 3077607: DECODE: Creating CH1 of 352 x 288 [PROGRESSIVE] [NON-TILED ],target bitrate = 2000 Kbps ... [m3video] 3077607: DECODE: CodecInst and OutFrm bufs are NOT created for CH2 [m3video] 3077607: DECODE: Creating CH2 of 352 x 288 [PROGRESSIVE] [NON-TILED ],target bitrate = 2000 Kbps ... [m3video] 3077607: DECODE: CodecInst and OutFrm bufs are NOT created for CH3 [m3video] 3077607: DECODE: Creating CH3 of 352 x 288 [PROGRESSIVE] [NON-TILED ],target bitrate = 2000 Kbps ... [m3video] 3077608: DECODE: CodecInst and OutFrm bufs are NOT created for CH4 [m3video] 3077608: DECODE: Creating CH4 of 352 x 288 [PROGRESSIVE] [NON-TILED ],target bitrate = 2000 Kbps ... [m3video] 3077608: DECODE: CodecInst and OutFrm bufs are NOT created for CH5 [m3video] 3077608: DECODE: Creating CH5 of 352 x 288 [PROGRESSIVE] [NON-TILED ],target bitrate = 2000 Kbps ... [m3video] 3077608: DECODE: CodecInst and OutFrm bufs are NOT created for CH6 [m3video] 3077608: DECODE: Creating CH6 of 352 x 288 [PROGRESSIVE] [NON-TILED ],target bitrate = 2000 Kbps ... [m3video] 3077609: DECODE: CodecInst and OutFrm bufs are NOT created for CH7 [m3video] 3077609: DECODE: Creating CH7 of 352 x 288 [PROGRESSIVE] [NON-TILED ],target bitrate = 2000 Kbps ... [m3video] 3077609: DECODE: CodecInst and OutFrm bufs are NOT created for CH8 [m3video] 3077609: DECODE: Creating CH8 of 352 x 288 [PROGRESSIVE] [NON-TILED ],target bitrate = 2000 Kbps ... [m3video] 3077609: DECODE: CodecInst and OutFrm bufs are NOT created for CH9 [m3video] 3077609: DECODE: Creating CH9 of 352 x 288 [PROGRESSIVE] [NON-TILED ],target bitrate = 2000 Kbps ... [m3video] 3077609: DECODE: CodecInst and OutFrm bufs are NOT created for CH10 [m3video] 3077610: DECODE: Creating CH10 of 352 x 288 [PROGRESSIVE] [NON-TILED ],target bitrate = 2000 Kbps ... [m3video] 3077610: DECODE: CodecInst and OutFrm bufs are NOT created for CH11 [m3video] 3077610: DECODE: Creating CH11 of 352 x 288 [PROGRESSIVE] [NON-TILED ],target bitrate = 2000 Kbps ... [m3video] 3077610: DECODE: CodecInst and OutFrm bufs are NOT created for CH12 [m3video] 3077610: DECODE: Creating CH12 of 352 x 288 [PROGRESSIVE] [NON-TILED ],target bitrate = 2000 Kbps ... [m3video] 3077610: DECODE: CodecInst and OutFrm bufs are NOT created for CH13 [m3video] 3077610: DECODE: Creating CH13 of 352 x 288 [PROGRESSIVE] [NON-TILED ],target bitrate = 2000 Kbps ... [m3video] 3077611: DECODE: CodecInst and OutFrm bufs are NOT created for CH14 [m3video] 3077611: DECODE: Creating CH14 of 352 x 288 [PROGRESSIVE] [NON-TILED ],target bitrate = 2000 Kbps ... [m3video] 3077611: DECODE: CodecInst and OutFrm bufs are NOT created for CH15 [m3video] 3077611: DECODE: Creating CH15 of 352 x 288 [PROGRESSIVE] [NON-TILED ],target bitrate = 2000 Kbps ... [m3vpss ] UTILS: DMA: Allocated CH (TCC) = 59 (59) [c6xdsp ] 3076234: IPC_FRAMES_IN : Create in progress !!! [m3video] 3077613: DECODE: All CH Create ... DONE !!! [m3vpss ] UTILS: DMA: 0 of 1: Allocated PaRAM = 59 (0x49004760) [c6xdsp ] 3076234: SYSTEM: Opening ListMP [VPSS-M3_IPC_OUT_19] ... [m3vpss ] UTILS: DMA: Allocated CH (TCC) = 60 (60) [c6xdsp ] 3076234: SYSTEM: Opening ListMP [VPSS-M3_IPC_IN_19] ... [m3vpss ] UTILS: DMA: 0 of 4: Allocated PaRAM = 60 (0x49004780) [c6xdsp ] 3076235: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] ... [m3video] DECLINK:HEAPID:0 USED:120 [m3vpss ] UTILS: DMA: 1 of 4: Allocated PaRAM = 67 (0x49004860) [m3video] 3077615: DECODE: Create ... DONE !!! [m3vpss ] UTILS: DMA: 2 of 4: Allocated PaRAM = 160 (0x49005400) [m3video] 3077616: IPC_OUT_M3 : Create in progress !!! [m3vpss ] UTILS: DMA: 3 of 4: Allocated PaRAM = 161 (0x49005420) [c6xdsp ] IPC_FRAMES_IN:HEAPID:0 USED:304 [m3video] 3077616: IPC_OUT_M3 : Create Done !!! [m3vpss ] SWMS: instance 0, sc id 7, start win 0 end win 17 [c6xdsp ] 3076236: IPC_FRAMES_IN : Create Done !!! [m3vpss ] 3077771: SWMS : VipScReq is FALSE!!! [c6xdsp ] 3076236: ALG : Create in progress !!! [m3vpss ] 3077774: SWMS0 : Loading Vertical Co-effs (UPSCALE)x ... [m3vpss ] 3077774: SWMS0 : Loading Horizontal Co-effs (UPSCALE)x ... [m3vpss ] 3077775: SWMS : Co-effs Loading ... DONE !!! [c6xdsp ] ALGLINK:HEAPID:0 USED:2616 [m3vpss ] 3077775: SWMS : ******* Configuring clock 15 secs... [c6xdsp ] ALGLINK:HEAPID:1 USED:31512 [m3vpss ] 3077775: SWMS0 : Loading Vertical Co-effs (1/1)x ... [c6xdsp ] 3076250: ALG : Create Done !!! [m3vpss ] 3077775: SWMS0 : Loading Horizontal Co-effs (1/1)x ... [m3vpss ] 3077776: SWMS : Co-effs Loading ... DONE !!! [m3vpss ] [m3vpss ] *** [SWMS0] Mosaic Parameters *** [m3vpss ] [m3vpss ] Output FPS: 60 [m3vpss ] [m3vpss ] Win | Ch | Input | Input | Input | Input | Output | Output | Output | Outpu| [m3vpss ] Num | Num | Start X, Y | Width x Height | Pitch Y / C | Memory Type | Start X, Y | Width x Height | Pitch Y / C | Memor| [m3vpss ] ----------------------------------------------------------------------------------------------------------------------------- [m3vpss ] 0 | 0 | 0, 0 | 352 x 288 | 512 / 512 | NON-TILED | 0, 0 | 1920 x 1080 | 3840 / 0 | NON-T| [m3vpss ] [m3vpss ] SWMS:HEAPID:0 USED:360 [m3vpss ] SWMS:HEAPID:1 USED:17056 [m3vpss ] SWMS:HEAPID:4 USED:29030400 [m3vpss ] 3077777: SWMS: Create Done !!! [m3vpss ] 3077777: SWMS: Create in progress !!! [m3vpss ] UTILS: DMA: Allocated CH (TCC) = 61 (61) [m3vpss ] UTILS: DMA: 0 of 1: Allocated PaRAM = 61 (0x490047A0) [m3vpss ] UTILS: DMA: Allocated CH (TCC) = 62 (62) [m3vpss ] UTILS: DMA: 0 of 4: Allocated PaRAM = 62 (0x490047C0) [m3vpss ] UTILS: DMA: 1 of 4: Allocated PaRAM = 162 (0x49005440) [m3vpss ] UTILS: DMA: 2 of 4: Allocated PaRAM = 163 (0x49005460) [m3vpss ] UTILS: DMA: 3 of 4: Allocated PaRAM = 164 (0x49005480) [m3vpss ] SWMS: instance 0, sc id 5, start win 0 end win 17 [m3vpss ] 3077923: SWMS1 : Loading Vertical Co-effs (UPSCALE)x ... [m3vpss ] 3077923: SWMS1 : Loading Horizontal Co-effs (UPSCALE)x ... [m3vpss ] 3077923: SWMS : Co-effs Loading ... DONE !!! [m3vpss ] 3077924: SWMS : ******* Configuring clock 15 secs... [m3vpss ] 3077924: SWMS1 : Loading Vertical Co-effs (1/1)x ... [m3vpss ] 3077924: SWMS1 : Loading Horizontal Co-effs (1/1)x ... [m3vpss ] 3077924: SWMS : Co-effs Loading ... DONE !!! [m3vpss ] [m3vpss ] *** [SWMS1] Mosaic Parameters *** [m3vpss ] [m3vpss ] Output FPS: 60 [m3vpss ] [m3vpss ] Win | Ch | Input | Input | Input | Input | Output | Output | Output | Outpu| [m3vpss ] Num | Num | Start X, Y | Width x Height | Pitch Y / C | Memory Type | Start X, Y | Width x Height | Pitch Y / C | Memor| [m3vpss ] ----------------------------------------------------------------------------------------------------------------------------- [m3vpss ] 0 | 0 | 0, 0 | 352 x 288 | 512 / 512 | NON-TILED | 0, 0 | 1920 x 1080 | 3840 / 0 | NON-T| [m3vpss ] [m3vpss ] SWMS:HEAPID:0 USED:360 [m3vpss ] SWMS:HEAPID:1 USED:47296 [m3vpss ] SWMS:HEAPID:4 USED:29030400 [m3vpss ] 3077925: SWMS: Create Done !!! [m3vpss ] 3077926: MERGE : Create Done !!! [m3vpss ] 3077926: IPC_FRAMES_OUT : Create in progress !!! [m3vpss ] 3077928: IPC_FRAMES_OUT : Create Done !!! [m3vpss ] 3077947: DISPLAY: Create in progress !!! [m3vpss ] 3077948: Assertion @ Line: 1134 in links_m3vpss/display/displayLink_drv.c: pObj->displayHndl != NULL : failed !!! Thanks! Xuesen
  • We are using qt5 to develop osd overlay the video/capture, and using opengl to render the ui.

    So we enable SGX and try to capture video from video, but encountered the issues,
    --------------------------------------------------------------------------------------------------------------------
    [m3vpss ] SWMS:HEAPID:0 USED:360
    [m3vpss ] SWMS:HEAPID:1 USED:47296
    [m3vpss ] SWMS:HEAPID:4 USED:29030400
    [m3vpss ] 3077925: SWMS: Create Done !!!
    [m3vpss ] 3077926: MERGE : Create Done !!!
    [m3vpss ] 3077926: IPC_FRAMES_OUT : Create in progress !!!
    [m3vpss ] 3077928: IPC_FRAMES_OUT : Create Done !!!
    [m3vpss ] 3077947: DISPLAY: Create in progress !!!
    [m3vpss ] 3077948: Assertion @ Line: 1134 in links_m3vpss/display/displayLink_drv.c: pObj->displayHndl != NULL : failed !!!

    If we disable SGX, everything goes fine.
    Is there anything we need to do?


    Thanks!
    Xuesen