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.

Error in encoder link creation in MCFW

Other Parts Discussed in Thread: DM383, DM385, DM388

Error in encoder link

camera_link -> glbce -> isp ->  dup -> merge -> swOsd ->encoder link

1) i have following error in encoder link,can you have a solustion for this?

2) i configure ISP out put  resolution 1920*1080 But CH0 create as 1952 x 1112

ERROR:

 [m3vpss ]  6310: ENCODE: Create in progress ... !!!
 [m3vpss ]  6389: ENCODE: Creating CH0 of 1952 x 1112, pitch = (1984, 1984) [PROGRESSIVE] [NON-TILED  ], bitrate = 5000 Kbps ...
 [m3vpss ] 6454:!ERROR!:ENCLINK::links_m3video/iva_enc/encLink_h264.c:[191]::INTERNAL ERROR:-1
 [m3vpss ] ALGCONTROL FAILED:CMD:1
 [m3vpss ] ERROR: XDM_UNSUPPORTEDPARAM = 14,
 [m3vpss ] ERROR: XDM_FATALERROR = 15
 [m3vpss ] ERROR: IH264ENC_UNSUPPORTED_VIDENC2DYNAMICPARAMS = 30,
 [m3vpss ] 
 [m3vpss ] 6455:ERR::linkID:20000047::channelID:0::errorCode:-5::FileName:links_m3video/iva_enc/encLink_h264.c::linuNum:1362::errorCondition:(algStatus == XDM_EOK)

Thank You,

  • Are you using CBB RDK for DM38x (DM383, DM385, DM388) device?

    BR
    Pavel
  • we are using CBB RDK for DM385 with IMX122 image sensor

  • I will notify the CBB RDK team for help.

    BR
    Pavel
  • Hi

    we are still waiting for your reply.

  • Hi

    I try to implement GLBCE link in my use case in CBB_RDK but i get error in in creation of Encoder link

    My use case is

    camera_link -> glbce -> isp ->  dup -> merge -> swOsd ->encoder link

    i configure isp output resolution 1920 x 1080

    i got error

    ERROR:

     5612: ENCODE: Create in progress ... !!!
     [m3vpss ]  57[   39.860000] WLAN FW is downloaded
    52: ENCODE: Creating CH0 of 1952 x 1112, pitch = (1984, 1984) [PROGRESSIVE] [NON-TILED  ], bitrate = 5000 Kbps ...
     [m3vpss ] 5870:!ERROR!:ENCLINK::links_m3video/iva_enc/encLink_h264.c:[191]::INTERNAL ERROR:-1
     [m3vpss ] ALGCONTROL FAILED:CMD:1
     [m3vpss ] ERROR: XDM_UNSUPPORTEDPARAM = 14,
     [m3vpss ] ERROR: XDM_FATALERROR = 15
     [m3vpss ] ERROR: IH264ENC_UNSUPPORTED_VIDENC2DYNAMICPARAMS = 30,
     [m3vpss ] 

    ERROR LOG:

     [m3vpss ] VPS_DCTRL_INST_0
     [m3vpss ] IOCTL_VPS_DCTRL_SET_VENC_OUTPUT SYSTEM_DC_VENC_DVO2
     [m3vpss ] IOCTL_VPS_DCTRL_SET_VENC_OUTPUT SYSTEM_DC_VENC_HDMI
     [m3vpss ] IOCTL_VPS_DCTRL_SET_VENC_OUTPUT SYSTEM_DC_VENC_SD
     [m3vpss ] IOCTL_VPS_DCTRL_SET_VENC_OUTPUT SYSTEM_DC_VENC_HDCOMP
     [m3vpss ] IOCTL_VPS_DCTRL_SET_VENC_CLK_SRC VPS_DC_VENC_HDMI | VPS_DC_VENC_HDCOMP
     [m3vpss ] HDCOMPCLK
     [m3vpss ]  4314: CAMERA: Create in progress !!!
     [m3vpss ]  Channel Num Stream 0 Ch 0 ChannelNum 0
     [m3vpss ]  Channel Num Stream 1 Ch 0 ChannelNum 1
     [m3vpss ]  4315: CAMERA: VIP0 PortA camera mode is [ 8-bit, Non-mux Embedded Sync] !!!
     [m3vpss ] ++Iss_Imx122Create()
     [m3vpss ] --Iss_Imx122Create()
     [m3vpss ]  4316: CAMERA: VIP 0: VID DEC 268436755 (0xff): 9ecc9a88:ffff0000:9eccbf44, AUD_STATUS -1630742064
     [m3vpss ]  4533: CAMERA: Create Done !!!
     [m3vpss ]  4640: CAMERA: Detect video in progress !!!

     [host] GlbceSupportLink_tskMain:Entered [m3vpss ]  4640: CAMERA: Detect video Done !!!
     [m3vpss ] DCC server task running
     [m3vpss ] ROI dimensions of 1920 x 1088 are optimal for performance. Optimal dimension is 1920 x 1088 with processsing block= 32 x 16. Num horz table= 19, vert table= 11, localBlockWidth= 96.
     [m3vpss ]  5244: ISP   : FVID2 Create Done !!!
     [m3vpss ]  5244: ISP   : Create Done !!!
     [m3vpss ] Entered ISS ISP Process task
     [m3vpss ]  5336: CAPTURE: Create in progress !!!
     [m3vpss ]  5376: CAPTURE: VIP0 PortA capture mode is [ 8-bit, Non-mux Discrete Sync - HSYNC_VSYNC] !!!
     [m3vpss ]  5468: CAPTURE: VIP 0: VID DEC 1027 (0x30): 9e9ad560:0000:0000, AUD_STATUS 0
     [m3vpss ] CAPTURE::HEAPID:0    USED:41344
     [m3vpss ]  5468: CAPTURE: Create Done !!!
     [m3vpss ]  5505: DUP   : Create Done !!!
     [m3vpss ] #### I2C Device Address is 0x30 ,vidDecCreateArgs->deviceI2cInstId = 0x2 ####
     [m3vpss ]  5512: DUP   : Create Done !!!
     [m3vpss ]  5514: MERGE   : Create Done !!!
     [m3vpss ]  5521: DUP   : Create Done !!!
     [m3vpss ] #### Vps_ov10633SetCfg : 459 ####
     [m3vpss ] {SWOSD} edma3Handle->tccVal = 44
     [m3vpss ] {SWOSD} edma3Handle->chId   = 44
     [m3vpss ] {SWOSD} edma3Handle->tccVal = 45
     [m3vpss ] {SWOSD} edma3Handle->chId   = 45
     [m3vpss ] SWOSD_DBG:Default Icon TI Logo
     [m3vpss ] SWOSD_DBG:Default Icon TI Logo
     [m3vpss ]  5514: SWOSD   : Create Done !!!
     [m3vpss ]  5612: ENCODE: Create in progress ... !!!
     [m3vpss ]  57[   39.860000] WLAN FW is downloaded
    52: ENCODE: Creating CH0 of 1952 x 1112, pitch = (1984, 1984) [PROGRESSIVE] [NON-TILED  ], bitrate = 5000 Kbps ...
     [m3vpss ] 5870:!ERROR!:ENCLINK::links_m3video/iva_enc/encLink_h264.c:[191]::INTERNAL ERROR:-1
     [m3vpss ] ALGCONTROL FAILED:CMD:1
     [m3vpss ] ERROR: XDM_UNSUPPORTEDPARAM = 14,
     [m3vpss ] ERROR: XDM_FATALERROR = 15
     [m3vpss ] ERROR: IH264ENC_UNSUPPORTED_VIDENC2DYNAMICPARAMS = 30,
     [m3vpss ]  
     [m3vpss ] 5871:ERR::linkID:20000047::channelID:0::errorCode:-5::FileName:links_m3video/iva_enc/encLink_h264.c::linuNum:1362::errorCondition:(algStatus == XDM_EOK)
    [   40.480000] usb 1-1: USB disconnect, address 4
     [m3vpss ] ENCLINK_H264:HEAPID:0        USED:1896
     [m3vpss ]  5873: Assertion @ Line: 910 in links_m3video/iva_enc/encLink_common.c: retVal == ENC_LINK_S_SUCCESS : failed !!!

     

     

     

     

     

     

     

     

  • Hi,

    In your use case pl. do the following setting while creating ISP link:

    ispPrm.vnfFullResolution = FALSE;

    regards,

    Anand

  • Hi,

    thank you for your reply .

    i apply your suggested setting in my code and  encoder link error slove thanks for solustion

    but when i run usecase it 's give  error after usecase create

    ERROR LOG:

     [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000
     [m3video] Remote Debug Shared Memory @ 0xbff05020
     [m3vpss ] Remote Debug Shared Memory @ 0xbff0a040
     [m3vpss ] ***** SYSTEM  : Frequency <ORG> - 200000000, <NEW> - 200000000
     [m3vpss ] notify_attach  rtnVal  0
     [m3vpss ] initProxyServer  rtnVal  0
     [m3vpss ]  
     [m3vpss ]  *** UTILS: CPU KHz = 400000 Khz ***
     [m3vpss ]  
     [m3vpss ]  87: SYSTEM  : System Common Init in progress !!!
     [m3vpss ]  87: SYSTEM: IPC init in progress !!!
     [m3vpss ]  88: SYSTEM: Attaching to [HOST] ...
     [m3vpss ]  137: SYSTEM: Attaching to [HOST] ...
     [m3vpss ]  139: SYSTEM: Attaching to [HOST] ... SUCCESS !!!
     [m3vpss ]  140: SYSTEM: Creating MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...
     [m3vpss ]  140: SYSTEM: Creating MsgQ [VPSS-M3_MSGQ] ...
     [m3vpss ]  140: SYSTEM: Creating MsgQ [VPSS-M3_ACK_MSGQ] ...
     [m3vpss ]  143: SYSTEM: Notify register to [HOST] line 0, event 10 ...
     [m3vpss ]  143: SYSTEM: IPC init DONE !!!
     [m3vpss ]  159: MEM: Shared Region 2: Base = 0xb0000000, Length = 0x0e900000 (233 MB)
     [m3vpss ]  159: MEM: Shared Region 1: Base = 0x95400000, Length = 0x06900000 (105 MB)
     [m3vpss ]  162: SYSTEM  : System Common Init Done !!!
     [m3vpss ]  3261: SYSTEM  : System VPSS Init in progress !!!
     [m3vpss ] === I2C0/2 Clk is active ===
     [m3vpss ] PLATFORM: UNKNOWN CPU detected, defaulting to VPS_PLATFORM_CPU_REV_1_0
     [m3vpss ]  PLATFORM: UNKNOWN CPU detected, defaulting to ISS_PLATFORM_CPU_REV_2_1
     [m3vpss ]  3281: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_0] in region 0 ...
     [m3vpss ]  3281: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_0] in region 0 ...
     [m3vpss ]  3282: SYSTEM: ListElem Shared Addr = 0xbe981180
     [m3vpss ]  3285: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_1] in region 0 ...
     [m3vpss ]  3285: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_1] in region 0 ...
     [m3vpss ]  3286: SYSTEM: ListElem Shared Addr = 0xbe984680
     [m3vpss ]  3300: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_24] in region 0 ...
     [m3vpss ]  3301: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_24] in region 0 ...
     [m3vpss ]  3301: SYSTEM: ListElem Shared Addr = 0xbe987b80
     [m3vpss ]  3304: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_25] in region 0 ...
     [m3vpss ]  3305: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_25] in region 0 ...
     [m3vpss ]  3306: SYSTEM: ListElem Shared Addr = 0xbe9a7580
     [m3vpss ]  3309: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_26] in region 0 ...
     [m3vpss ]  3309: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_26] in region 0 ...
     [m3vpss ]  3310: SYSTEM: ListElem Shared Addr = 0xbe9c6f80
     [m3vpss ]  3317: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_29] in region 0 ...
     [m3vpss ]  3317: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_29] in region 0 ...
     [m3vpss ]  3318: SYSTEM: ListElem Shared Addr = 0xbe9e6980
     [m3vpss ]  3321: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_30] in region 0 ...
     [m3vpss ]  3321: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_30] in region 0 ...
     [m3vpss ]  3322: SYSTEM: ListElem Shared Addr = 0xbea00600
     [m3vpss ]  3324: SYSTEM : HDVPSS Drivers Version: HDVPSS_01_00_01_37
     [m3vpss ]  3325: SYSTEM  : FVID2 Init in progress !!!
     [m3vpss ]  3390: SYSTEM  : FVID2 Init in progress DONE !!!
     [m3vpss ]  3390: SYSTEM  : Device Init in progress !!!
     [m3vpss ]  Iss_init called !!!!!!
     [m3vpss ]  CPIS_init DONE !!!!!!
     [m3vpss ] initPrms.isI2cInitReq = 1
     [m3vpss ] initPrms.isI2cInitReq = 0
     [m3vpss ]  Vps_platformGetBoardId 698 videoDeviceI2cAddr=0x30, status=0
     [m3vpss ]  3521: SYSTEM  : Device Init in progress DONE !!!
     [m3vpss ] Kalpesh: change PINCNTL85
     [m3vpss ] .........INSIDE IMX122 INIT.........
     [m3vpss ]  Iss_Imx122Init ok!
     [m3vpss ]  3753: SYSTEM  : System VPSS Init Done !!!
     [m3vpss ]  3753: UTILS: DMA: HWI Create for INT62 !!!
     [m3vpss ]  3753: HDVICP: Doing PRCM for IVAHD[0] ...
     [m3vpss ]  3754: HDVICP: PRCM for IVAHD[0] ... DONE.
     [m3vpss ]  3755: SYSTEM  : Initializing Links !!!
     [m3vpss ]  3755: SYSTEM  : FREE SPACE : System Heap      = 4042176 B, Mbx = 10240 msgs)
     [m3vpss ]  3756: SYSTEM  : FREE SPACE : SR0 Heap         = 15623040 B (14 MB)
     [m3vpss ]  3756: SYSTEM  : FREE SPACE : Frame Buffer     = 240008064 B (228 MB)
     [m3vpss ]  3756: SYSTEM  : FREE SPACE : Bitstream Buffer = 110100352 B (104 MB)
     [m3vpss ]  3757: SYSTEM  : FREE SPACE : Tiler Buffer     = 256 B (0 MB)  - TILER OFF
     [m3vpss ]  3907: SYSTEM  : Initializing Links ... DONE !!!
     [m3vpss ] tiedVencs VPS_DC_VENC_HDMI | VPS_DC_VENC_HDCOMP
     [m3vpss ] VPS_DCTRL_INST_0
     [m3vpss ] IOCTL_VPS_DCTRL_SET_VENC_OUTPUT SYSTEM_DC_VENC_DVO2
     [m3vpss ] IOCTL_VPS_DCTRL_SET_VENC_OUTPUT SYSTEM_DC_VENC_HDMI
     [m3vpss ] IOCTL_VPS_DCTRL_SET_VENC_OUTPUT SYSTEM_DC_VENC_SD
     [m3vpss ] IOCTL_VPS_DCTRL_SET_VENC_OUTPUT SYSTEM_DC_VENC_HDCOMP
     [m3vpss ] IOCTL_VPS_DCTRL_SET_VENC_CLK_SRC VPS_DC_VENC_HDMI | VPS_DC_VENC_HDCOMP
     [m3vpss ] HDCOMPCLK
     [m3vpss ]  4310: CAMERA: Create in progress !!!
     [m3vpss ]  Channel Num Stream 0 Ch 0 ChannelNum 0
     [m3vpss ]  Channel Num Stream 1 Ch 0 ChannelNum 1
     [m3vpss ]  4311: CAMERA: VIP0 PortA camera mode is [ 8-bit, Non-mux Embedded Sync] !!!
     [m3vpss ] ++Iss_Imx122Create()
     [m3vpss ] --Iss_Imx122Create()
     [m3vpss ]  4312: CAMERA: VIP 0: VID DEC 268436755 (0xff): 9ecc9a88:ffff0000:9eccbf44, AUD_STATUS -1630742064
     [m3vpss ]  4529: CAMERA: Create Done !!!
     [m3vpss ]  4635: CAMERA: Detect video in progress !!!
     [m3vpss ]  4636: CAMERA: Detect video Done !!!
     [m3vpss ] DCC server task running
     [m3vpss ] ROI dimensions of 1920 x 1088 are optimal for performance. Optimal dimension is 1920 x 1088 with processsing block= 32 x 16. Num horz table= 19, vert table= 11, localBlockWidth= 96.
     [m3vpss ]  5227: ISP   : FVID2 Create Done !!!
     [m3vpss ]  5227: ISP   : Create Done !!!
     [m3vpss ] Entered ISS ISP Process task
     [m3vpss ]  5336: CAPTURE: Create in progress !!!
     [m3vpss ]  5375: CAPTURE: VIP0 PortA capture mode is [ 8-bit, Non-mux Discrete Sync - HSYNC_VSYNC] !!!
     [m3vpss ]  5467: CAPTURE: VIP 0: VID DEC 1027 (0x30): 9e9ad560:0000:0000, AUD_STATUS 0
     [m3vpss ] CAPTURE::HEAPID:0    USED:41344
     [m3vpss ]  5467: CAPTURE: Create Done !!!
     [m3vpss ]  5475: DUP   : Create Done !!!
     [m3vpss ]  5482: DUP   : Create Done !!!
     [m3vpss ]  5483: MERGE   : Create Done !!!
     [m3vpss ]  5490: DUP   : Create Done !!!
     [m3vpss ] {SWOSD} edma3Handle->tccVal = 44
     [m3vpss ] {SWOSD} edma3Handle->chId   = 44
     [m3vpss ] {SWOSD} edma3Handle->tccVal = 45
     [m3vpss ] {SWOSD} edma3Handle->chId   = 45
     [m3vpss ] SWOSD_DBG:Default Icon TI Logo
     [m3vpss ] SWOSD_DBG:Default Icon TI Logo
     [m3vpss ] #### I2C Device Address is 0x30 ,vidDecCreateArgs->deviceI2cInstId = 0x2 ####
     [m3vpss ] #### Vps_ov10633SetCfg : 459 ####
     [m3vpss ]  5475: SWOSD   : Create Done !!!
     [m3vpss ]  5569: ENCODE: Create in progress ... !!!
     [m3vpss ]  5571: Suresh: Before ENC_LINK_MAX_BUF_ALLOC_POOLS
     [m3vpss ]  5571: Suresh: After ENC_LINK_MAX_BUF_ALLOC_POOLS
     [m3vpss ]  5572: Suresh: Before numCh assign
     [m3vpss ]  5644: Suresh: numCh assign started 2
     [m3vpss ]  5644: ENCODE: Creating CH0 of 1920 x 1080, pitch = (1920, 1920) [PROGRESSIVE] [NON-TILED  ], bitrate = 5000 Kbps ...
     [m3vpss ] ENCLINK_H264:HEAPID:0    USED:13808
     [m3vpss ]  5761: ENCODE: Creating CH1 of 1280 x 718, pitch = (1280, 1280) [PROGRESSIVE] [NON-TILED  ], bitrate = 5000 Kbps ...
     [m3vpss ] ENCLINK_H264:HEAPID:0    USED:11912
     [m3vpss ]  5820: Suresh: numCh assign Finished
     [m3vpss ]  5820: ENCODE: All CH Create ... DONE !!!
     [m3vpss ] ENCLINK:HEAPID:0    USED:26048
     [m3vpss ]  5826: ENCODE: Create ... DONE !!!
     [m3vpss ]  6194: IPC_BITS_OUT   : Create in progress !!!
     [m3vpss ]  6197: IPC_BITS_OUT   : Create Done !!!
     [m3vpss ]  6406: IPC_BITS_IN   : Create in progress !!!
     [m3vpss ]  6406: SYSTEM: Opening ListMP [HOST_IPC_OUT_29] ...
     [m3vpss ]  6407: SYSTEM: Opening ListMP [HOST_IPC_IN_29] ...
     [m3vpss ]  6408: SYSTEM: Opening MsgQ [HOST_MSGQ] ...
     [m3vpss ]  6410: IPC_BITS_IN   : Create Done !!!
     [m3vpss ]  6411: DECODE: Create in progress ... !!!
     [m3vpss ]  6615: DECODE: Creating CH0 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 5000 Kbps ...
     [m3vpss ] DECLINK_H264:HEAPID:0    USED:2368
     [m3vpss ]  6652: DECODE: Creating CH1 of 1280 x 718 [PROGRESSIVE] [NON-TILED  ],target bitrate = 5000 Kbps ...
     [m3vpss ] DECLINK_H264:HEAPID:0    USED:2368
     [m3vpss ]  6671: DECODE: All CH Create ... DONE !!!
     [m3vpss ] DECLINK:HEAPID:0    USED:4776
     [m3vpss ]  6672: DECODE: Create ... DONE !!!
     [m3vpss ]  6674: MERGE   : Create Done !!!
     [m3vpss ]  6675: SWMS: Create in progress !!!
     [m3vpss ]  UTILS: DMA: Allocated CH (TCC) = 46 (46)
     [m3vpss ] SWMS: instance 0, sc id 5, start win 0 end win 15
     [m3vpss ]  6716: SWMS    : Loading Up-scaling Co-effs ...
     [m3vpss ]  6716: SWMS    : Co-effs Loading ... DONE !!!
     [m3vpss ]  6716: SWMS    : ******* Configuring clock 30 secs...
     [m3vpss ]  
     [m3vpss ]  *** [SWMS1] Mosaic Parameters ***
     [m3vpss ]  
     [m3vpss ]  Output FPS: 30
     [m3vpss ]  
     [m3vpss ]  Win | Ch  | Input      | Input          | Input         | Input       | Output     |  Output         | Output        | Output      | Low Cost | SWMS | Data  |
     [m3vpss ]  Num | Num | Start X, Y | Width x Height | Pitch Y / C   | Memory Type | Start X, Y |  Width x Height | Pitch Y / C   | Memory Type | ON / OFF | Inst | Format|
     [m3vpss ]  --------------------------------------------------------------------------------------------------------------------------------------------------------------
     [m3vpss ]    0 |   0 |    0,    0 |   720 x    480 |   720 /   720 | NON-TILED   |    0,    0 |   720 x    480 |  1472 /      0 | NON-TILED   |      OFF |    0 |  420SP |
     [m3vpss ]  
     [m3vpss ]  6720: SWMS: Create Done !!!
     [m3vpss ]  6727: DUP   : Create Done !!!
     [m3vpss ]  6728: SELECT: OUT QUE0: OUT CH0: IN CH0: 720 x 480, pitch = (1472, 0) [PROGRESSIVE] [NON-TILED  ]
     [m3vpss ]  6729: SELECT: OUT QUE1: OUT CH0: IN CH0: 720 x 480, pitch = (1472, 0) [PROGRESSIVE] [NON-TILED  ]
     [m3vpss ]  6730: SELECT   : Create Done !!!
     [m3vpss ]  6730: SELECT: OUT QUE0: OUT CH0: IN CH0: 720 x 480, pitch = (1472, 0) [PROGRESSIVE] [NON-TILED  ]
     [m3vpss ]  6732: NULL   : Create Done !!!
     [m3vpss ]  6732: DISPLAY: Create in progress !!!
     [m3vpss ] DisplayId = 3,DataFormat = 1
     [m3vpss ] BP1 displayInstId = 1
     [m3vpss ]  6734: DISPLAY: Create Done !!!
     [m3vpss ]  6734: SCLR: Create in progress !!!
     [m3vpss ] SCLR:!!WARNING.FORCIBLY DISABLING TILER since tiler is disabled at build time
     [m3vpss ]  6741: SCLR    : Loading Up-scaling Co-effs ...
     [m3vpss ]  6742: SCLR    : Co-effs Loading ... DONE !!!
     [m3vpss ] SCLR:HEAPID:0    USED:64
     [m3vpss ] SCLR:HEAPID:1    USED:5952
     [m3vpss ]  6742: SCLR: Create Done !!!
     [m3vpss ]  6744: DISPLAY: Create in progress !!!
     [m3vpss ] DisplayId = 1,DataFormat = 7
     [m3vpss ] SC2 displayInstId = 6
     [m3vpss ]  6746: DISPLAY: Create Done !!!
     [m3vpss ]  6848: DISPLAY: Start in progress !!!
     [m3vpss ]  6899: DISPLAY: Start Done !!!
     [m3vpss ]  6900: DISPLAY: AUX PATH: 38 fps, Latency (Min / Max) = ( 255 / 0 ), Callback Interval (Min / Max) = ( 255 / 0 ) !!!
     [m3vpss ]  6900: DISPLAY: Start in progress !!!
     [m3vpss ]  6940: DISPLAY: Start Done !!!
     [m3vpss ]  6940: DISPLAY: DVO2(BP1)  : 25 fps, Latency (Min / Max) = ( 255 / 0 ), Callback Interval (Min / Max) = ( 255 / 0 ) !!!
     [m3vpss ]  6941: SWMS: Start in Progress !!!
     [m3vpss ]  6941: SWMS: Start Done !!!
     [m3vpss ]  6868: CAMERA: Start in progress !!!
     [m3vpss ]  6869: CAMERA: Start Done !!!
     [m3vpss ]  7056: CAPTURE: Start in progress !!!
     [m3vpss ]  7056: CAPTURE: Start Done !!!
     [m3vpss ] CAMERA: Inter Frame Interval  = 0 msec
     [m3vpss ]  7002: CAMERA: Fields = 1 (fps = 0, CPU Load = 70), Total Resets = 0 (Avg 0 ms per reset)
     [m3vpss ] ############# dcc_init_done = 1
     [m3vpss ]  7394: CAPTURE: Fields = 0 (fps = 0), Total Resets = 0 (Avg 0 ms per reset)
     [m3vpss ] CAPTURE: Inter Frame Interval  = 0 msec
     [m3vpss ] exp_gain 1250 , ColorTemp :  1000 SensorExposure 40000 SensorGain 50
     [m3vpss ] AWB : CT :  1000, R :  128, G :  128 B :  128
     [m3vpss ]  Channel:1 inputframerate:30 targetfps:30
     [m3vpss ]  Channel:0 inputframerate:30 targetfps:30
     [m3vpss ] Unhandled Exception:
     [m3vpss ] Exception occurred in ThreadType_Task
     [m3vpss ] handle: 0x9d5253c8.
     [m3vpss ] stack base: 0x9e8b5dc0.
     [m3vpss ] stack size: 0x8000.
     [m3vpss ] R0 = 0x5291af48  R8  = 0xffffffff
     [m3vpss ] R1 = 0x5291af48  R9  = 0xff

    Thanks,

    Vishvaraj

  • Hi,

    I assume that the original CBB use case was working fine and then you introduced the GLBCE and ISP links.

    So now you should figure out which link is causing the M3 crash.

    So first bypass the GLBCE link and connect camera link to ISP link and check.

    regards,

    Anand

  • Hi

    yes original CBB use case was working fine.

    i byepass glbce link and camera link connect direct to ISP link and it give same error as before .

    Thanks,

    Vishvaraj

  • Hi,

    The ISP link is used in the other CBB use case i.e 'MultiCh_createCarbbDualRawIssVpVipCap()' defined in the '..\cbb_rdk\mcfw\src_linux\mcfw_api\usecases\multich_carbb_dual_raw_IssVp_Vip_cap.c' file.

    Pl. refer to the above mentioned function for the ISP link create parameters setting.

    regards,

    Anand

  • Hi

    i remove display link from my use case and my use case works fine.

    but i get image what i have received is not having proper colour.

    It looks like RGB  data is flipped.

    So what was the reason for this ?

    1) orignal Image

    2) Image for glbce-isp use-case

    Regards

  • Hi,

    You should set the correct bayer pattern (IPIPE:SRC_COL) for your sensor in the ispDrvSetOneShotMode() fn defined in ..\ti_tools\iss_03_08_00_00\packages\ti\psp\iss\drivers\capture\src\issdrv_ispApi.c file.

    The possible values are 0x1B, 0xB1, 0x4E and 0xE4.

    regards,

    Anand

  • Hi

    we add below line in our use cae

    ispPrm.sensorId = MultiCh_getSensorId(gUI_mcfw_config.sensorId);

    we get first few frame good then only give green frame 

    and we set IPIPE:SRC_COL = 0xE4


    1) first few frame like

    2) after few frame get following frame like below

  • Hi,

    Does the use case work well without ISP link?

    Can you send your complete console log?

    regards,

    Anand

  •  Hi,

    Our use case is work well without ISP link

    we had set SRC_COL in issdrv_ispApi.c and in issdrv_captureApi.c

    ipipe_reg->SRC_COL = 0xE4

    LOG:

    [   73.250000] SysLink version : 2.20.02.20

    [   73.250000] SysLink module created on Date:Jul  7 2015 Time:14:48:37

    [   73.260000] Trace enabled

    [   73.270000] Trace SetFailureReason enabled

    /dev/mem opened.

                Phy Addr : 0x48181560 Data : 0x00[   73.370000] Unhandled fault: external abort on non-linefetch (0x1018) at 0x402400e4

    000102

                Phy Addr : 0x48180f10 Data : 0x00000000

                Phy Addr : 0x48180508 Data : 0x00000302

                Phy Addr : 0x48180520 Data : 0x00000002

                Phy Addr : 0x48180524 Data : 0x00000002

                Phy Addr : 0x48180528 Data : 0x00000002

                Phy Addr : 0x4c0000e4 Data : 0x0017020a

    Bus error

    [host]  Setting DMM priority for [HDVICP0 ] to [1] ( 0x4e000634 = 0x00000009 )

    [host]  Setting L3 bandwidth regulator for [ISS     ] to [press=[3,3] BW=100, WM Cycles=2000]

    [host]  Setting L3 bandwidth regulator for [HDVICP0 ] to [press=[0,0] BW=300, WM Cycles=800]

    [host]  Setting DMM priority for [ISS     ] to [0] ( 0x4e000634 = 0x00080000 )

    [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000

    [m3video] Remote Debug Shared Memory @ 0xbff05020

    [m3vpss ] Remote Debug Shared Memory @ 0xbff0a040

    IN MCFW_LOADDER

    [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000

    [m3video] Remote Debug Shared Memory @ 0xbff05020

    [m3vpss ] Remote Debug Shared Memory @ 0xbff0a040

    [host] Attached to slave procId 1.

    [host] Loaded file ./firmware/carbb_rdk_fw_m3vpss.xem3 on slave procId 1.

    [host] Started slave procId 1.

    [host] After Ipc_loadcallback status [0x00000000]

    [m3vpss ] ***** SYSTEM  : Frequency <ORG> - 200000000, <NEW> - 200000000

    [m3vpss ] notify_attach  rtnVal  0

    [m3vpss ] initProxyServer  rtnVal  0

    [m3vpss ]  

    [m3vpss ]  *** UTILS: CPU KHz = 400000 Khz ***

    [m3vpss ]  

    [m3vpss ]  87: SYSTEM  : System Common Init in progress !!!

    [m3vpss ]  87: SYSTEM: IPC init in progress !!!

    [m3vpss ]  87: SYSTEM: Attaching to [HOST] ...

    [m3vpss ]  137: SYSTEM: Attaching to [HOST] ...

    [m3vpss ]  139: SYSTEM: Attaching to [HOST] ... SUCCESS !!!

    [m3vpss ]  139: SYSTEM: Creating MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...

    [m3vpss ]  139: SYSTEM: Creating MsgQ [VPSS-M3_MSGQ] ...

    [m3vpss ]  140: SYSTEM: Creating MsgQ [VPSS-M3_ACK_MSGQ] ...

    [m3vpss ]  142: SYSTEM: Notify register to [HOST] line 0, event 10 ...

    [m3vpss ]  143: SYSTEM: IPC init DONE !!!

    [host] After Ipc_startcallback status [0x00000000]

    [m3vpss ]  158: MEM: Shared Region 2: Base = 0xb0000000, Length = 0x0e900000 (233 MB)

    [m3vpss ]  159: MEM: Shared Region 1: Base = 0x95400000, Length = 0x06900000 (105 MB)

    [m3vpss ]  161: SYSTEM  : System Common Init Done !!!

    [m3vpss ] Received character 's'

    [host]

    [host]  MultiChannel Framework for Car Black Box - (c) Texas Instruments 2012

    [host]

    [host]  USAGE: ./carbb_rdk_mcfw.out <option 1> <option 2> ...

    [host]

    [host]  Following options are supported,

    [host]

    [host]  TRISTREAM      : Tri-streaming usecase of 1080p60H264+D130H264+1080P5MJPEG is supported

    [host]  DUALSTREAM     : Dual-streaming usecase of 1080p60H264+D130H264 is supported

    [host]  SINGLESTREAM           : Single-streaming usecase of 1080p60H264 is supported

    [host]  <Resolution Combo>  : Details of the Resolution ID

    [host]  1080P_D1/1080P_1080P/5MP_D1/8MP_D1/10MP_D1 is supported

    [host]  <Usecase Combo>  : Details of the Combo ID

    [host]  SINGLE_H264/SINGLE_MPEG4/SINGLE_MJPEG/DUAL_H264/DUAL_MPEG4/H264_MJPEG/MPEG4_MJPEG/H264_MPEG4/TRIPLE_H264/TRIPLE_MPEG4 is supported

    [host]  SNF        : Spatial Noise Filter is ENABLED

    [host]  TNF        : Temporal Noise Filter is ENABLED

    [host]  LDC        : Lens Distortion Correction is ENABLED

    [host]  VS         : Video Stabilization is ENABLED

    [host]  FD         : Face detection is ENABLED

    [host]  VA         : Video Analytics use case is ENABLED (valid for DM8127 only)

    [host]  GLBCE <Mode> <Strength>: SALDRE/GLBCE use case is ENABLED

    [host]  GLBCE Mode options: HS for High Speed and HQ for High Quality

    [host]  GLBCE Strength options: LOW, MED and HIGH options for strength parameters

    [host]  VNF_SPEED/VNF_QUALITY: VNF_SPEED will use DSS VNF and VNF_QUALITY will use ISS VNF

    [host]  AUDIO [sample rate] : Set the sample rate of audio. Default is 16000 (16K) if not specified

    [host]  <2A VENDOR>  : NONE2A/APPRO2A/TI2A to be selected based on the vendor for 2A algorithm

    [host]  <AEWB Mode>  : AE/AWB/AEWB is ENABLED

    [host]  <CODEC MODE 1>  : HIGH_SPEED1/HIGH_QUALITY1/SVC1 to be selected as codec encoding preset for stream 1

    [host]  <CODEC MODE 2>  : HIGH_SPEED2/HIGH_QUALITY2/SVC2 to be selected as codec encoding preset for stream 2

    [host]

    ################ mcfw main start (tick_time: 80304 ms) ##############

    [host] DS.Ahn: bitRate(5000000, 5000000, 0, 0)

    [host] DS.Ahn: frameRate(30, 30, 0, 0)

    [host] DS.Ahn: shm_id[0] [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000

    [m3video] Remote Debug Shared Memory @ 0xbff05020

    [m3vpss ] Remote Debug Shared Memory @ 0xbff0a040

    [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000

    [m3video] Remote Debug Shared Memory @ 0xbff05020

    [m3vpss ] Remote Debug Shared Memory @ 0xbff0a040

    [m3vpss ]  3261: SYSTEM  : System VPSS Init in progress !!!

    [m3vpss ] === I2C0/2 Clk is active ===

    [m3vpss ] PLATFORM: UNKNOWN CPU detected, defaulting to VPS_PLATFORM_CPU_REV_1_0

    [m3vpss ]  PLATFORM: UNKNOWN CPU detected, defaulting to ISS_PLATFORM_CPU_REV_2_1

    [m3vpss ]  3280: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_0] in region 0 ...

    [m3vpss ]  3281: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_0] in region 0 ...

    [m3vpss ]  3281: SYSTEM: ListElem Shared Addr = 0xbe981180

    [m3vpss ]  3284: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_1] in region 0 ...

    [m3vpss ]  3285: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_1] in region 0 ...

    [m3vpss ]  3285: SYSTEM: ListElem Shared Addr = 0xbe984680

    [m3vpss ]  3300: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_24] in region 0 ...

    [m3vpss ]  3300: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_24] in region 0 ...

    [m3vpss ]  3301: SYSTEM: ListElem Shared Addr = 0xbe987b80

    [m3vpss ]  3304: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_25] in region 0 ...

    [m3vpss ]  3304: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_25] in region 0 ...

    [m3vpss ]  3305: SYSTEM: ListElem Shared Addr = 0xbe9a7580

    [m3vpss ]  3308: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_26] in region 0 ...

    [m3vpss ]  3309: SYSTEM[   80.630000] Card is removed: -71

    [   80.630000] Card is removed: -71

    : Creating ListM[   80.640000] usb 1-1: USB disconnect, address 3

    P [VPSS-M3_IPC_IN_26] in region 0 ...

    [m3vpss ]  3309: SYSTEM: ListElem Shared Addr = 0xbe9c6f80

    [m3vpss ]  [   80.660000] Card is removed: -108

    [   80.660000] Card is removed: -108

    [   80.660000] Card is removed: -108

    [   80.660000] Card is removed: -108

    [   80.660000] Card is removed: -108

    3316: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_29] in region 0 ...

    [m3vpss ]  3317: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_29] in region 0 ...

    [m3vpss ]  3317: SYSTEM: ListElem Shared Addr = 0xbe9e6980

    [m3vpss ]  3320: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_30] in region 0 ...

    [m3vpss ]  3321: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_30] in region 0 ...

    [m3vpss ]  3321: SYSTEM: ListElem Shared Addr = 0xbea00600

    [m3vpss ]  3324: SYSTEM : HDVPSS Drivers Version: HDVPSS_01_00_01_37

    [m3vpss ]  3324: SYSTEM  : FVID2 Init in progress !!!

    [m3vpss ]  3389: SYSTEM  : FVID2 Init in progress DONE !!!

    [m3vpss ]  3390: SYSTEM  : Device Init in progress !!!

    [m3vpss ]  Iss_init called !!!!!!

    [m3vpss ]  CPIS_init DONE !!!!!!

    [m3vpss ] initPrms.isI2cInitReq = 1

    [m3vpss ] initPrms.isI2cInitReq = 0

    [m3vpss ]  Vps_platformGetBoardId 698 videoDeviceI2cAddr=0x30, status=0

    [m3vpss ]  3521: SYSTEM  : Device Init in progress DONE !!!

    [m3vpss ] Kalpesh: change PINCNTL85

    [m3vpss ] .........INSIDE IMX122 INIT.........

    [m3vpss ]  Iss_Imx122Init ok!

    [m3vpss ]  3752: SYSTEM  : System VPSS Init Done !!!

    [m3vpss ]  3753: UTILS: DMA: HWI Create for INT62 !!!

    [m3vpss ]  3753: HDVICP: Doing PRCM for IVAHD[0] ...

    [m3vpss ]  3753: HDVICP: PRCM for IVAHD[0] ... DONE.

    [m3vpss ]  3754: SYSTEM  : Initializing Links !!!

    [m3vpss ]  3755: SYSTEM  : FREE SPACE : System Heap      = 4042176 B, Mbx = 10240 msgs)

    [m3vpss ]  3755: SYSTEM  : FREE SPACE : SR0 Heap         = 15623040 B (14 MB)

    [m3vpss ]  3756: SYSTEM  : FREE SPACE : Frame Buffer     = 240008064 B (228 MB)

    [m3vpss ]  3756: SYSTEM  : FREE SPACE : Bitstream Buffer = 110100352 B (104 MB)

    [m3vpss ]  3756: SYSTEM  : FREE SPACE : Tiler Buffer     = 256 B (0 MB)  - TILER OFF

    [m3vpss ]  3906: SYSTEM  : Initializing Links ... DONE !!!

    [m3vpss ] Received character 't'

    [   81.100000] DMA: Module install successful, device major num = 247

    [   81.110000] DRV: Module install successful

    [   81.120000] DRV: Module built on Jul  7 2015 14:52:10

    [   81.190000] usb 1-1: new high speed USB device using musb-hdrc and address 4

    [host] Application Start Completed (tick_time: 81270 ms)

    [host]

    ################ App_cbb_run start (tick_time: 81275 ms) ##############

    [host] App_cbb_run: Share Memory Addr=0x403e3000

    [host] frameRateVal1: 30

    [host] frameRateVal2: 30

    [host] frameRateVal3: 0

    [host] nMpeg41bitrate: 8000000

    [host] nMpeg42bitrate: 5000000

    [host] njpegquality: 80

    [host]  0: SYSTEM: System Common Init in progress !!!

    [host]  1: SYSTEM: IPC init in progress !!!

    [host]  31: SYSTEM: CPU [DSP] is NOT available on this platform !!!

    [host]  31: SYSTEM: CPU [VIDEO-M3] syslink proc ID is [0] !!!

    [host]  31: SYSTEM: CPU [VPSS-M3] syslink proc ID is [1] !!!

    [host]  31: SYST[   81.330000] usb 1-1: New USB device found, idVendor=1286, idProduct=2043

    EM: CPU [HOST] s[   81.340000] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3

    yslink proc ID i[   81.350000] usb 1-1: Product: Marvell Wireless Device

    s [2] !!!

    [[   81.350000] usb 1-1: Manufacturer: Marvell

    host]  32: SYSTE[   81.360000] usb 1-1: SerialNumber: 0000000000000000

    M: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...

    [host]  34: SYSTEM: Creating MsgQ [HOST_MSGQ] ...

    [host]  35: SYSTEM: Creating MsgQ [HOST_ACK_MSGQ] ...

    [host]  36: [   81.380000] VID/PID = 1286/2043, Boot2 version = 4000

    SYSTEM: Opening [   81.390000] rx_work=0 cpu_num=1

    MsgQ [VPSS-M3_MSGQ] ...

    [host]  38: SYSTEM: Notify register[   81.400000] Firmware :mrvl/usb8797_uapsta.bin

    to [VPSS-M3] line 0, event 10 ...

    [host]  39: SYSTEM: IPC init DONE !!!

    [host]  43: SYSTEM: Creating ListMP [HOST_IPC_OUT_29] in region 0 ...

    [host]  45: SYSTEM: Creating ListMP [HOST_IPC_IN_29] in region 0 ...

    [host]  46: SYSTEM: ListElem Shared Addr = 0x40580280

    [host]  47: SYSTEM: Creating ListMP [HOST_IPC_OUT_30] in reg[   81.430000] DMA: ChannelID allocated:4

    ion 0 ...

    [host]  48: SYSTE[   81.440000] DMA: ChannelID allocated:10

    M: Creating ListMP [HOST_IPC_IN_30] in region 0 ...

    [host]  49: SYSTEM: ListElem Shared Addr = 0x40599f00

    [host]  88: SYSTEM: Creating ListMP [HOST_IPC_OUT_24] in region 0 ...

    [host]  89: SYSTEM: Creating ListMP [HOST_IPC_IN_24] in region 0 ...

    [host]  90: SYSTEM: ListElem Shared Addr = 0x405b3b80

    [host]  91: SYSTEM: Creating ListMP [HOST_IPC_OUT_25] in region 0 ...

    [host]  92: SYSTEM: Creating ListMP [HOST_IPC_IN_25] in region 0 ...

    [host]  93: SYSTEM: ListElem Shared Addr = 0x405d3580

    [host]  93: SYSTEM: Creating ListMP [HOST_IPC_OUT_26] in region 0 ...

    [host]  94: SYSTEM: Creating ListMP [HOST_IPC_IN_26] in region 0 ...

    [host]  95: SYSTEM: ListElem Shared Addr = 0x405f2f80

    [host]  99: SYSTEM: System Common Init Done !!!

    [host]  140: MCFW  : CPU Revision [ES1.0] !!!

    [host]  140: MCFW  : Detected [OV10633 SENSOR] Board !!!

    [host]  140: MCFW  : Sensor is connected !!!

    [host]  140: MCFW  : Base Board Revision [REV A] !!!

    [host]  140: MCFW  : Daughter Card Revision [REV A] !!!

    [host] rear cam is detected !!

    [host] Vsys_allocBuf - addr = 0x4ff46000,size = 130023424

    [host] MCFW_IPCBITS:App_streamSysInit:virt addr of 8d400000 cir buffer  is 4ff46000

    [host] first stream: 1920 1080 8000000 30

    [host] second stream: 1280 720 5000000 30

    [host] third stream: 1920 1080 80

    ##########pInfo->totalsize 119537664

    Creat queue id:65538

    queue id:65538

    queue id:32769

    [host] MCFW_IPCBITS:App_ipcBitsRecvStreamFxn:Entered...

    [host] MCFW_IPCFRAMES:App_ipcFramesSendRecvFxn:Entered...

    [host] Vsys_allocBuf - addr = 0x58d8c000,size = 5640

    [host] DCC buffer allocated for size 5640

    [host] DCC Default File Intialization Done

    [host] Before System_linkControl SYSTEM_M3VPSS_CMD_GET_DISPLAYCTRL_INIT

    [m3vpss ] tiedVencs VPS_DC_VENC_HDMI | VPS_DC_VENC_HDCOMP

    [host]

    ********************* Entered CAR BB DUAL CAPTURE USECASE ********************

    [host]

    ********* 1080P from Front Camera and 720P from Rear Camera at 30 fps ********

    pChPrm->maxBitRate: 12000000

    pDynPrm->targetBitRate: 5000000

    pChPrm->maxBitRate: 12000000

    pDynPrm->targetBitRate: 5000000

    [m3vpss ] VPS_DCTRL_INST_0

    [m3vpss ] IOCTL_VPS_DCTRL_SET_VENC_OUTPUT SYSTEM_DC_VENC_DVO2

    [m3vpss ] IOCTL_VPS_DCTRL_SET_VENC_OUTPUT SYSTEM_DC_VENC_HDMI

    [m3vpss ] IOCTL_VPS_DCTRL_SET_VENC_OUTPUT SYSTEM_DC_VENC_SD

    [m3vpss ] IOCTL_VPS_DCTRL_SET_VENC_OUTPUT SYSTEM_DC_VENC_HDCOMP

    [m3vpss ] IOCTL_VPS_DCTRL_SET_VENC_CLK_SRC VPS_DC_VENC_HDMI | VPS_DC_VENC_HDCOMP

    [m3vpss ] HDCOMPCLK

    [m3vpss ]  4326: CAMERA: Create in progress !!!

    [m3vpss ]  Channel Num Stream 0 Ch 0 ChannelNum 0

    [m3vpss ]  Channel Num Stream 1 Ch 0 ChannelNum 1

    [m3vpss ]  4327: CAMERA: VIP0 PortA camera mode is [ 8-bit, Non-mux Embedded Sync] !!!

    [m3vpss ] ++Iss_Imx122Create()

    [m3vpss ] --Iss_Imx122Create()

    [m3vpss ]  4327: CAMERA: VIP 0: VID DEC 268436755 (0xff): 9ecc9a88:ffff0000:9eccbf44, AUD_STATUS -1630742064

    [m3vpss ]  4544: CAMERA: Create Done !!!

    [host] GlbceSupportLink_tskMain:Entered [m3vpss ]  4651: CAMERA: Detect video in progress !!!

    [m3vpss ]  4651: CAMERA: Detect video Done !!!

    [m3vpss ] DCC server task running

    [m3vpss ]  5169: ISP   : FVID2 Create Done !!!

    [m3vpss ]  5169: ISP   : Create Done !!!

    [m3vpss ] Entered ISS ISP Process task

    [m3vpss ]  5280: CAPTURE: Create in progress !!!

    [m3vpss ]  5318: CAPTURE: VIP0 PortA capture mode is [ 8-bit, Non-mux Discrete Sync - HSYNC_VSYNC] !!!

    [m3vpss ]  5410: CAPTURE: VIP 0: VID DEC 1027 (0x30): 9e9ad560:0000:0000, AUD_STATUS 0

    [   82.530000] WLAN FW is downloaded

    [m3vpss ] CAPTURE::HEAPID:0    USED:41344

    [m3vpss ]  5411: CAPTURE: Create Done !!!

    [m3vpss ]  5418: DUP   : Create Done !!!

    [m3vpss ]  5425: DUP   : Create Done !!!

    [m3vpss ] #### I2C Device Address is 0x30 ,vidDecCreateArgs->deviceI2cInstId = 0x2 ####

    [m3vpss ] #### Vps_ov10633SetCfg : 459 ####

    [m3vpss ]  6004: NULL   : Create Done !!!

    [m3vpss ]  6035: MERGE   : Create Done !!!

    [m3vpss ]  6042: DUP   : Create Done !!!

    [m3vpss ] {SWOSD} edma3[   83.170000] usb_reset_device() successful.

    Handle->tccVal = 44

    [m3vpss ] {SWOSD} edma3Handle->chId   = 4[   83.170000] usb 1-1: USB disconnect, address 4

    4

    [m3vpss ] {SWOSD} edma3Handle->tccVal = 45

    [m3vpss ] {SWOSD} edma3Handle->chId   = 45

    [m3vpss ] SWOSD_DBG:Default Icon TI Logo

    [m3vpss ] SWOSD_DBG:Default Icon TI Logo

    [m3vpss ]  6001: SWOSD   : Create Done !!!

    [m3vpss ]  6088: ENCODE: Create in progress ... !!!

    [m3vpss ]  6088: Suresh: Before ENC_LINK_MAX_BUF_ALLOC_POOLS

    [m3vpss ]  6089: Suresh: After ENC_LINK_MAX_BUF_ALLOC_POOLS

    [m3vpss ]  6089: Suresh: Before numCh assign

    [m3vpss ]  6131: Suresh: numCh assign started 2

    [m3vpss ]  6131: ENCODE: Creating CH0 of 1920 x 1080, pitch = (1920, 1920) [PROGRESSIVE] [NON-TILED  ], bitrate = 5000 Kbps ...

    [m3vpss ] ENCLINK_H264:HEAPID:0        USED:13808

    [m3vpss ]  6195: ENCODE: Creating CH1 of 1280 x 718, pitch = (1280, 1280) [PROGRESSIVE] [NON-TILED  ], bitrate = 5000 Kbps ...

    BusyBox v1.13.2 (2011-03-14 20:51:34 IST) multi-call binary

    Usage: mv [OPTION]... SOURCE DEST

    or: mv [OPTION]... SOURCE... DIRECTORY

    Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY

    Options:

           -f      Don't prompt before overwriting

           -i      Interactive, prompt before overwrite

    [host] IpcBitsInLink_tskMain:Entered

    [host]  2066: IPC_BITS_IN   : Create in progress !!!

    [host]  2066: IPC_BITS_IN   : ListMPOpen start !!!

    [host]  2066: SYSTEM: Opening ListMP [VPSS-M3_IPC_OUT_29] ...

    [host]  2068: SYSTEM: Opening ListMP [VPSS-M3_IPC_IN_29] ...

    [host]  2069: IPC_BITS_IN   : ListMPOpen done !!!

    [host]  2070: IPC_BITS_IN   : System_linkGetInfo done !!!

    [host]  2070: IPC_BITS_IN   : Create Done !!!

    [host]  2072: IPC_BITS_OUT   : Create in progress !!!

    [host] ###Bit buff of size from the SR # 1 : 7372800

    [host] IPC_BITSOUT:BitBuffer Alloc.PoolID:0,Size:0x708000

    [host] IPCBITSOUTLINK:Translated Addr Virt:0x41b8e900 To Phy:0x95ac0900

    [host] ###Bit buff of size from the SR # 1 : 16588800

    [host] IPC_BITSOUT:BitBuffer Alloc.PoolID:1,Size:0xFD2000

    [host] IPCBITSOUTLINK:Translated Addr Virt:0x42296900 To Phy:0x961c8900

    [host]  2073: IPC_BITS_OUT   : Create Done !!!

    [m3vpss ] ENCLINK_H264:HEAPID:0        USED:11912

    [m3vpss ]  6226: Suresh: numCh assign Finished

    [m3vpss ]  6226: ENCODE: All CH Create ... DONE !!!

    [m3vpss ] ENCLINK:HEAPID:0     USED:26048

    [m3vpss ]  6229: ENCODE: Create ... DONE !!!

    [m3vpss ]  6230: IPC_BITS_OUT   : Create in progress !!!

    [m3vpss ]  6233: IPC_BITS_OUT   : Create Done !!!

    [m3vpss ]  6241: IPC_BITS_IN   : Create in progress !!!

    [m3vpss ]  6241: SYSTEM: Opening ListMP [HOST_IPC_OUT_29] ...

    [m3vpss ]  6241: SYSTEM: Opening ListMP [HOST_IPC_IN_29] ...

    [m3vpss ]  6242: SYSTEM: Opening MsgQ [HOST_MSGQ] ...

    [m3vpss ]  6245: IPC_BITS_IN   : Create Done !!!

    [m3vpss ]  6245: DECODE: Create in progress ... !!!

    [m3vpss ]  6450: DECODE: Creating CH0 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 5000 Kbps ...

    [host]

    ********************* completed CARBB DUAL CAPTURE US[   83.630000] usb 1-1: new high speed USB device using musb-hdrc and address 5

    ECASE ********************

    [m3vpss ] DECLINK_H264:HEAPID:0        USED:2368

    [m3vpss ]  6487: DECODE: Creating CH1 of 1280 x 718 [PROGRESSIVE] [NON-TILED  ],target bitrate = 5000 Kbps ...

    [m3vpss ] DECLINK_H264:HEAPID:0        USED:2368

    [m3vpss ]  6506: DECODE: All CH Create ... DONE !!!

    [m3vpss ] DECLINK:HEAPID:0     USED:4776

    [m3vpss ]  6507: DECODE: Create ... DONE !!!

    RGB565: 1F 0, 1

    RGB888: FF 0, 8  

    RGB565: 1F 0, 1

    RGB888: FF 0, 8  

    [m3vpss ]  6531: CAMERA: Start in progress !!!

    [m3vpss ]  6532: CAMERA: Start Done !!!

    [   83.770000] usb 1-1: New USB device found, idVendor=1286, idProduct=2044

    [   83.770000] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3

    [   83.780000] usb 1-1: Product: Bluetooth and Wireless LAN Composite Device

    [   83.790000] usb 1-1: Manufacturer: Marvell

    [   83.790000] usb 1-1: SerialNumber: 00225800F83C

    [   83.800000] VID/PID = 1286/2044, Boot2 version = 3201

    [   83.810000] rx_work=0 cpu_num=1

    [   83.830000] WLAN FW is active

    [m3vpss ]  6719: CAPTURE: Start in progress !!!

    [m3vpss ]  6719: CAPTURE: Start Done !!!

    [m3vpss ] CAMERA: Inter Frame Interval  = 0 msec

    [m3vpss ]  6669: CAMERA: Fields = 1 (fps = 0, CPU Load = 65), Total Resets = 0 (Avg 0 ms per reset)

    [m3vpss ] exp_gain 0 , ColorTemp :  1000 SensorExposure 10 SensorGain 520

    [m3vpss ] AWB : CT :  1000, R :  128, G :  128 B :  128

    [m3vpss ] ############# dcc_init_done = 1

    [m3vpss ]  6844: CAPTURE: Fields = 0 (fps = 0), Total Resets = 0 (Avg 0 ms per rese[   83.980000] evm_get_bclk: INMP sample_size=32 rate=16000 channels=2

    t)

    [   83.980000]

    [   83.980000] davinci_mcasp_set_dai_fmt: 443

    [   83.990000]

    [   83.990000] davinci_mcasp_set_dai_fmt: 447

    [   84.000000] davinci_mcasp_set_clkdiv: div_id=0 div:243

    [   84.000000] INMP441 hw params 167

    [   84.000000] inmp441_pcm_hw_params: sysclk=248832000

    [   84.010000] inmp441_pcm_hw_params: bclk_freq=1024000

    [   84.020000]

    [   84.020000] davinci_mcasp_set_sysclk: 571

    [   84.020000] INMP441 hw params OK

    [host] AUDIO : period size = 512 frames, dir = 0

    [host] AUDIO : period time = 32000 us, dir = 0

    [host] MCFW_IPCBITS: Callback function:App_ipcBitsInCbFxn

    [host]

    Audio capture task created

    [host] MCFW_IPCBITS:App_ipcBitsRecvStreamFxn:INFO: periodic print.. [m3vpss ]  Channel:0 inputframerate:30 targetfps:30

    [m3vpss ] CAPTURE: Inter Frame Interval  = 0 msec

    [host] VNF MESSAGE RECIEVED: (Enable:0) (Mode:5) (Strength:0) (EnableTNF:0) (EnableSNF:0)

    619: PB_LOGS: Entered playbackTsk_main()

    462: PB_LOGS: Entered videoSubmit_main()

    [host]

    Force IDR on Channel: 0

    [host]

    Force IDR on Channel: 1

    [host]

    ################ App_cbb_run complete (tick_time: 84074 ms) ##############

    [host] ITT server task running !!!

    [host]

    ITT ittServer_run

    [host] ITT Server Message initialization successful

    [host] DCC server Message ques is open succefully

    [host] Setting cmd <1> in message <40466c00>

    [host] Posting message <40466c00> in QId <10002>

    [host]

    ITT capture task created

    [m3vpss ] Command 1 recived from HOST A8

    [host] Response from M3 is : 1

    [host]

    Display PIP Camera Screen.........!!!

    [host] Response from M3 is : 1

    [host] Default parameters were sent sucessfully

    [host] Server Socket created with ID <25>

    [m3vpss ] Command 2 recived from HOST A8

    [m3vpss ] New DCC data of size <5640>

    [m3vpss ] ############# dcc_init_done = 1

    [m3vpss ] Call to VNF_LINK_CMD_UPDATE_DCC -1

    [m3vpss ]  Channel:1 inputframerate:30 targetfps:30

    DS.Ahn: MSG_CMD_SET_BITRATE1 8000000

    DS.Ahn: MSG_CMD_SET_BITRATE2 5000000

    [m3vpss ]  8124: ISP   : Set Frame rate input = 60,output = 30 for 0 queue!!!

    [m3vpss ]  Channel:0 inputframerate:30 targetfps:30

    [m3vpss ]  ENCLINK: new targetframerate to set:30000

    [m3vpss ]  ENCLINK: new targetbitrate to set:5000000

    [m3vpss ]  ENCLINK: new targetbitrate to set:8000000

    [m3vpss ]  ENCLINK: new targetframerate to set:30000

    [m3vpss ]  Channel:1 inputframerate:30 targetfps:30

    fw_init.sh[678]:  Firmware is Running now...

    sh: 0: unknown operand

    bt_script.sh[701]: ERROR: Exiting: Bluetooth Address is not Valid

    [m3vpss ] exp_gain 0 , ColorTemp :  5773 SensorExposure 10 SensorGain 908

    [m3vpss ] AWB : CT :  5773, R :  195, G :  128 B :  232

    [m3vpss ] exp_gain 0 , ColorTemp :  5773 SensorExposure 10 SensorGain 908

    [m3vpss ] AWB : CT :  5773, R :  195, G :  128 B :  232

    [   92.870000] wlan: SCAN COMPLETED: scanned AP count=11

    [m3vpss ] exp_gain 0 , ColorTemp :  5773 SensorExposure 10 SensorGain 908

    [m3vpss ] AWB : CT :  5773, R :  195, G :  128 B :  232

    wifi_script.sh[758]: NOTICE: Connected to Wifi network. SSID = e-infochip

    wifi_script.sh[770]: NOTICE: Signal strength information of SSID = e-infochip :- Quality:2/5  Signal level:-79 dBm  Noise level:-96 dBm

    [m3vpss ] exp_gain 0 , ColorTemp :  5773 SensorExposure 10 SensorGain 908

    [m3vpss ] AWB : CT :  5773, R :  195, G :  128 B :  232

    [m3vpss ] exp_gain 0 , ColorTemp :  5773 SensorExposure 10 SensorGain 908

    [m3vpss ] AWB : CT :  5773, R :  195, G :  128 B :  232

    [m3vpss ] exp_gain 0 , ColorTemp :  5773 SensorExposure 10 SensorGain 908

    [m3vpss ] AWB : CT :  5773, R :  195, G :  128 B :  232

    [host] MCFW_IPCBITS: Callback function:App_ipcBitsInCbFxn

    [host] MCFW_IPCBITS:App_ipcBitsRecvStreamFxn:INFO: periodic print..server_comm.sh[790]:  Handshake with server

    server_comm.sh[793]:  Handshake successful

    server_comm.sh[795]:  Download Update start

    server_comm.sh[798]: NOTICE: Fail to download new updates

    server_comm.sh[800]:  File Uploading start

    [m3vpss ] exp_gain 0 , ColorTemp :  5773 SensorExposure 10 SensorGain 908

    [m3vpss ] AWB : CT :  5773, R :  195, G :  128 B :  232

    [m3vpss ] exp_gain 0 , ColorTemp :  5773 SensorExposure 10 SensorGain 908

    [m3vpss ] AWB : CT :  5773, R :  195, G :  128 B :  232

    [m3vpss ] exp_gain 0 , ColorTemp :  5773 SensorExposure 10 SensorGain 908

    [m3vpss ] AWB : CT :  5773, R :  195, G :  128 B :  232

    [host]

    Usecase is Active !!!

    [host]

    [m3vpss ] exp_gain 0 , ColorTemp :  5773 SensorExposure 10 SensorGain 908

    [m3vpss ] AWB : CT :  5773, R :  195, G :  128 B :  232

    [m3vpss ]  ==================== EncLink_PrintDetails ====================

    [m3vpss ]      40583: HDVICP-ID:0

    [m3vpss ]              totalAcquire2wait in msec:47995067

    [m3vpss ]              totalWait2Isr in msec:   29269

    [m3vpss ]              totalIsr2Done in msec:      49

    [m3vpss ]              totalWait2Done in msec:   29318

    [m3vpss ]              totalDone2Release in msec:       0

    [m3vpss ]              totalAcquire2Release in msec:       0

    [m3vpss ]              totalAcq2acqDelay in msec:       0

    [m3vpss ]              totalElapsedTime in msec:       0

    [m3vpss ]              numAccessCnt:       0

    [m3vpss ]              IVA-FPS :       0

    [m3vpss ]  

    [m3vpss ]  *** ENCODE Statistics ***

    [m3vpss ]  

    [m3vpss ]  Elasped Time           : 33452 msecs

    [m3vpss ]  

    [m3vpss ]  

    [m3vpss ]  CH  | In Recv In Skip In User  Out Latency  

    [m3vpss ]  Num | FPS     FPS     Skip FPS FPS Min / Max  CPU Load

    [m3vpss ]  ------------------------------------------------------

    [m3vpss ]    0 |   30.01    0.00     0.00 30.01 144 / 244   54

    [m3vpss ]    1 |   29.98    0.03     0.00 29.98 106 / 229   54

    [m3vpss ]  

    [m3vpss ] Multi Channel Encode Average Submit Batch Size

    [m3vpss ] Max Submit Batch Size : 24

    [m3vpss ] IVAHD_0 Average Batch Size : 1

    [m3vpss ] IVAHD_0 Max achieved Batch Size : 1

    [m3vpss ]  =================================================================

    [m3vpss ] exp_gain 0 , ColorTemp :  5773 SensorExposure 10 SensorGain 908

    [m3vpss ] AWB : CT :  5773, R :  195, G :  128 B :  232

    [m3vpss ] exp_gain 0 , ColorTemp :  5773 SensorExposure 10 SensorGain 908

    [m3vpss ] AWB : CT :  5773, R :  195, G :  128 B :  232

    [host] MCFW_IPCBITS: Callback function:App_ipcBitsInCbFxn

    [host] MCFW_IPCBITS:App_ipcBitsRecvStreamFxn:INFO: periodic print.. [m3vpss ] exp_gain 0 , ColorTemp :  5773 SensorExposure 10 SensorGain 908

    [m3vpss ] AWB : CT :  5773, R :  195, G :  128 B :  232

    [m3vpss ] exp_gain 0 , ColorTemp :  5773 SensorExposure 10 SensorGain 908

    [m3vpss ] AWB : CT :  5773, R :  195, G :  128 B :  232

    [m3vpss ] exp_gain 0 , ColorTemp :  5773 SensorExposure 10 SensorGain 908

    [m3vpss ] AWB : CT :  5773, R :  195, G :  128 B :  232

    [m3vpss ] exp_gain 0 , ColorTemp :  5773 SensorExposure 10 SensorGain 908

    [m3vpss ] AWB : CT :  5773, R :  195, G :  128 B :  232

    [m3vpss ] exp_gain 0 , ColorTemp :  5773 SensorExposure 10 SensorGain 1805

    [m3vpss ] AWB : CT :  5773, R :  195, G :  128 B :  232

    [m3vpss ] CAMERA: Inter Frame Interval  = 33 msec

    [m3vpss ] exp_gain 0 , ColorTemp :  5773 SensorExposure 10 SensorGain 1966

    [m3vpss ] AWB : CT :  5773, R :  195, G :  128 B :  232

    [m3vpss ]  66701: CAMERA: Fields = 1801 (fps = 30, CPU Load = 60), Total Resets = 0 (Avg 0 ms per reset)

    [m3vpss ]  66860: CAPTURE: Fields = 1800 (fps = 29), Total Resets = 0 (Avg 0 ms per reset)

    [m3vpss ] CAPTURE: Inter Frame Interval  = 33 msec

  • Hi,

    Can you check with IPIPE:SRC_COL = 0x4E?

    regards,

    Anand

  • Hi,

    please see below image with diffrent  SRC_COL setting value

    1) SRC_COL = 0x4E

    2)  SRC_COL = 0xE4


  • Hi,

    Is camera link is directly connected to ISP link?

    Can you try with the other 2 possible values for the SRC_COL i.e 0x1B and 0xB1?

    regards,

    Anand

  • Hi

    1) No,camera link connect to Glbce link and glbce link connect to isp link

        so as per our usecase

        Camera link -> Glbce -> Isp

    2) image for SRC_COL = 0x1B

    3) image for SRC_COL = 0xB1


     

    4) we observe that for setting SRC_COL = 0xE4 we get True colour means red get red, green get green, and blue get blue, but with green shade.

    5) we have already shared code over email, Please let me know if you require updated code for same.

     

    regards

    Vishvaraj

     

     

  • Hi,

    It looks like the correct setting for SRC_COL is 0xE4.

    First make sure you get proper video with CAM->ISP chain then introduce GLBCE.

    There may be tuning parameter for GLBCE algorithm/boxcar generation and i will check it.

    regards,

    Anand

  • Hi,

    we remove Glbce link from our usecase

    i.e Cameralink -> Isp link

    1) we got below image without glbce link(SRC COL = 0xE4)


     

    2) Original image for your reference


     

    regards,

    Vishvaraj

     

  • Hi,

    You have commented out the following code in your use case code:

    //   ispPrm.isIsifCapt = 1;

    Any particular reason for this?

    Without this setting the AEWB algorithm is not applied.

    Pl. refer to the 'MultiCh_createCarbbDualRawIssVpVipCap()' function defined in the '..\cbb_rdk\mcfw\src_linux\mcfw_api\usecases\multich_carbb_dual_raw_IssVp_Vip_cap.c' file for ISP link parameters:

    ispPrm[0].inQueParams.prevLinkId = gVcamModuleContext.cameraId;
    ispPrm[0].inQueParams.prevLinkQueId = 0;
    ispPrm[0].numOutQueue = 1;

    #ifdef LDC_ON
    ispPrm[0].outQueInfo[0].nextLink = gVcamModuleContext.vnfId;
    #else
    ispPrm[0].outQueInfo[0].nextLink = gDupId_cbb[CAM_DUP_IDX];
    #endif

    ispPrm[0].clkDivM = 66; //7; //50;
    ispPrm[0].clkDivN = 100; //10; //80;

    ispPrm[0].vsEnable = FALSE;
    ispPrm[0].vnfFullResolution = FALSE;
    ispPrm[0].outQueuePrm[0].dataFormat = SYSTEM_DF_YUV420SP_UV;
    #ifdef LDC_ON
    ispPrm[0].outQueuePrm[0].dataFormat = SYSTEM_DF_YUV422I_YUYV;
    #endif
    ispPrm[0].outQueuePrm[0].width = 1920;
    ispPrm[0].outQueuePrm[0].height = 1080;
    ispPrm[0].outQueuePrm[0].standard = SYSTEM_STD_1080P_60;
    ispPrm[0].outQueuePrm[0].tilerEnable = FALSE;
    ispPrm[0].outQueuePrm[1].tilerEnable = FALSE;
    #ifdef IMGS_OMNIVISION_OV2710
    ispPrm[0].sensorId = MultiCh_getSensorId(0x12);
    #elif defined(IMGS_SONY_IMX122)
    ispPrm[0].sensorId = MultiCh_getSensorId(0x13);
    #endif
    ispPrm[0].isIsifCapt = 1;

    regards,

    Anand

  • Hi

    we put ispPrm[0].isIsifCapt = 1; in our code but not effect on video colour,ii's same as before

    1) if we add this line in code ispPrm.sensorId = MultiCh_getSensorId(gUI_mcfw_config.sensorId) we get below image and 2A algorithm is running. refer the log 'isp_with_sensorid.txt'.1185.isp_without_sensorid.txt5700.Isp_with_sensonid.txt

    2) if we don't add the line ispPrm.sensorId = MultiCh_getSensorId(gUI_mcfw_config.sensorId) in code then 2A algorithm is not running  and image is attached below. refer log 'isp_without_sensorid.txt'.

    please find the attached logs for both the case. for more detail.

    please let me know what we need to do to get proper image, we are stuck here. we need to pass sensor id in isp link or not ?

    please let me know as soon as possible.

  • anand we are waiting for your reply .

  • Hi,

    You have to pass the sensorId to the ISP link and make sure the value of 'gUI_mcfw_config.sensorId' is 0x13 for IMX122 sensor.

    regards,

    Anand

  • Hi,

    Yes,we have passed gUI_mcfw_config.sensorId is 0x13 ,we cross checked it;

     ispPrm.sensorId = MultiCh_getSensorId(gUI_mcfw_config.sensorId);

    we also tried with 0x13 hard code value it's give same result as before

    ispPrm.sensorId = MultiCh_getSensorId(0x13);

    regards,

    Vishvaraj

  • Hi,

    Can you test 'MultiCh_createCarbbDualRawIssVpVipCap()' use case by making the following change in Rules.make and rebuild the code using 'make all'?
    ENABLE_DUAL_RAW_CAPTURE_ISSVP_VIP := YES
    Connect only the front camera for testing.
    This use case has ISP link connected to Camera link.

    regards,
    Anand