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.

dm816x vip port overflow issue



Hi,

I use DM618x evm board + vs daughter card and RDK 01.05.00.08.

I got an problem that vip port over flow has been detected in capture link when system run my use case.

After this vip port overflow happen, the all channel will be stopped like as hang.

How should I resolve this problem?

Thanks!

Jacson

 

  • Hi Jacson,

    Can you share the log when this problem occurs? We expect intermittent VIP port overflow but that should get receovered as we do VIP port reset. Intermittent frame drop (3-4) might happen but it should not get stopped.

    Do you have CCS connected for any of the M3 cores?

    Regards,

    Anshuman

  • Hi Anshuman,

    The logs show below. My usecase is analog capture+file based decode+display, that is created by myself.

    Sometimes this problem happen after several times of vip port reset.

    I have not CCS connected for debug.

    Thanks!


     [host] MCFW_IPCBITS: Callback function:App_ipcBitsInHostCbFxn

     [host] MCFW_IPCBITS:App_ipcBitsProcessFullBufs:INFO: periodic print..

     [host] MCFW_IPCBITS:App_ipcBitsRecvFxn:INFO: periodic print..

     [host] MCFW_IPCBITS: Callback function:App_ipcBitsInHostCbFxn

     [host] MCFW_IPCBITS:App_ipcBitsProcessFullBufs:INFO: periodic print..

     [host] MCFW_IPCBITS:App_ipcBitsRecvFxn:INFO: periodic print.. [m3vpss ]  1404088: DISPLAY (39): HDDAC(BP0) : 60 fps, !!!
     [m3vpss ]  1404121: DISPLAY (40): DVO2(BP1)  : 60 fps, !!!
     [m3vpss ]  1404946: CAPTURE: Fields = 22891 (fps = 762), Total Resets = 0 (Avg 0 ms per reset)
     [m3vpss ]  1404946: SYSTEM  : Heap Free Space (System = 23328 bytes, FrmBuf = 266793344 bytes,
     [m3vpss ]          BitBuf = 22298496 bytes, Mbx = 9217 msgs)


     [host] MCFW_IPCBITS: Callback function:App_ipcBitsInHostCbFxn

     [host] MCFW_IPCBITS:App_ipcBitsProcessFullBufs:INFO: periodic print..

     [host] MCFW_IPCBITS:App_ipcBitsRecvFxn:INFO: periodic print..

     [host] MCFW_IPCBITS: Callback function:App_ipcBitsInHostCbFxn

     [host] MCFW_IPCBITS:App_ipcBitsProcessFullBufs:INFO: periodic print..

     [host] MCFW_IPCBITS:App_ipcBitsRecvFxn:INFO: periodic print.. [m3vpss ]  1434089: DISPLAY (39): HDDAC(BP0) : 60 fps, !!!
     [m3vpss ]  1434122: DISPLAY (40): DVO2(BP1)  : 60 fps, !!!
     [m3vpss ]  1434962: CAPTURE: Fields = 23924 (fps = 797), Total Resets = 0 (Avg 0 ms per reset)
     [m3vpss ]  1434963: SYSTEM  : Heap Free Space (System = 23328 bytes, FrmBuf = 266793344 bytes,
     [m3vpss ]          BitBuf = 22298496 bytes, Mbx = 9890 msgs)


     [host] MCFW_IPCBITS: Callback function:App_ipcBitsInHostCbFxn

     [host] MCFW_IPCBITS:App_ipcBitsProcessFullBufs:INFO: periodic print..

     [host] MCFW_IPCBITS:App_ipcBitsRecvFxn:INFO: periodic print..

     [host] MCFW_IPCBITS: Callback function:App_ipcBitsInHostCbFxn

     [host] MCFW_IPCBITS:App_ipcBitsProcessFullBufs:INFO: periodic print..

     [host] MCFW_IPCBITS:App_ipcBitsRecvFxn:INFO: periodic print.. [m3vpss ]  1462146: CAPTURE: Overflow detected on VIP1, Total Resets = 1
     [m3vpss ]  1464090: DISPLAY (39): HDDAC(BP0) : 60 fps, !!!
     [m3vpss ]  1464123: DISPLAY (40): DVO2(BP1)  : 60 fps, !!!
     [m3vpss ]  1464978: CAPTURE: Fields = 21215 (fps = 706), Total Resets = 1 (Avg 20 ms per reset)
     [m3vpss ]  1464978: SYSTEM  : Heap Free Space (System = 23328 bytes, FrmBuf = 266793344 bytes,
     [m3vpss ]          BitBuf = 22298496 bytes, Mbx = 9804 msgs)
     [m3vpss ]  1494092: DISPLAY (39): HDDAC(BP0) : 60 fps, !!!
     [m3vpss ]  1494125: DISPLAY (40): DVO2(BP1)  : 60 fps, !!!
     [m3vpss ]  1494994: CAPTURE: Fields = 0 (fps = 0), Total Resets = 1 (Avg 20 ms per reset)
     [m3vpss ]  1494994: SYSTEM  : Heap Free Space (System = 23328 bytes, FrmBuf = 266793344 bytes,
     [m3vpss ]          BitBuf = 22298496 bytes, Mbx = 8906 msgs)


     [host] IPCBITSOUT:!!!WARNING.!!! NO FREE BUF AVAILABLE. OCCURENCE COUNT:[1000] [m3vpss ]  1524093: DISPLAY (39): HDDAC(BP0) : 60 fps, !!!
     [m3vpss ]  1524126: DISPLAY (40): DVO2(BP1)  : 60 fps, !!!
     [m3vpss ]  1525010: CAPTURE: Fields = 0 (fps = 0), Total Resets = 1 (Avg 20 ms per reset)
     [m3vpss ]  1525010: SYSTEM  : Heap Free Space (System = 23328 bytes, FrmBuf = 266793344 bytes,
     [m3vpss ]          BitBuf = 22298496 bytes, Mbx = 8906 msgs)


     [host] IPCBITSOUT:!!!WARNING.!!! NO FREE BUF AVAILABLE. OCCURENCE COUNT:[2000] [m3vpss ]  1554094: DISPLAY (39): HDDAC(BP0) : 60 fps, !!!
     [m3vpss ]  1554127: DISPLAY (40): DVO2(BP1)  : 60 fps, !!!
     [m3vpss ]  1555026: CAPTURE: Fields = 0 (fps = 0), Total Resets = 1 (Avg 20 ms per reset)
     [m3vpss ]  1555026: SYSTEM  : Heap Free Space (System = 23328 bytes, FrmBuf = 266793344 bytes,
     [m3vpss ]          BitBuf = 22298496 bytes, Mbx = 8906 msgs)


     [host] IPCBITSOUT:!!!WARNING.!!! NO FREE BUF AVAILABLE. OCCURENCE COUNT:[3000] [m3vpss ]  1584096: DISPLAY (39): HDDAC(BP0) : 60 fps, !!!
     [m3vpss ]  1584129: DISPLAY (40): DVO2(BP1)  : 60 fps, !!!
     [m3vpss ]  1585042: CAPTURE: Fields = 0 (fps = 0), Total Resets = 1 (Avg 20 ms per reset)
     [m3vpss ]  1585042: SYSTEM  : Heap Free Space (System = 23328 bytes, FrmBuf = 266793344 bytes,
     [m3vpss ]          BitBuf = 22298496 bytes, Mbx = 8906 msgs)

  • Hi,

     

    Do we apply VIP reset sequence after the overflow? Do we check for the overflow again after applying the reset sequence to see if it is again overflowed?

    When vip overflows, it stops giving the frame out. Please apply reset sequence after overflow is detected. Rset sequence will clean out the VIP parser and DMA engine.

     

    Thanks,

    brijesh jadav

  • Hi Brijesh jadav,

    The code already apply VIP reset sequence after the overflow. I also add some code to check overflow again if it apply reset sequence, but this problem still happen.

    How should I debug this problem?

    Thanks!

    Jacson

  • Hi Jacson,

     

    Do you see continuous overflow in VIP? Does it recover any time?

     

    Thanks,

    Brijesh Jadav

  • Hi Brijesh Jadav,

    No, it recover any time until now, but system hang problem still happen.

    Thanks!

  • Hi Jacson,

     

    So it recovers from overflow condition, still you are seeing system hang? It should not, capture should start giving out frames if it has recovered. can you see if this is capture issue or issue is somewhere else?

     

    Thanks,

    Brijesh Jadav

  • Hi Brijesh Jadav,

    I will still see this problem, maybe not the capture issue.

    Thank you!

    Jacson

  • Hi Brijesh Jadav,

    I recently got an problem that is VIP1 overflow detected message continuous showing and never stopping. The piece of log likes following.

    This problem happens after a few hours system run.

     [m3vpss ]  30390815: CAPTURE: Overflow detected on VIP1, Total Resets = 156206
     [m3vpss ]  30390843: CAPTURE: Overflow detected on VIP1, Total Resets = 156207
     [m3vpss ]  30390875: CAPTURE: Overflow detected on VIP1, Total Resets = 156208
     [m3vpss ]  30390895: CAPTURE: Overflow detected on VIP1, Total Resets = 156209
     [m3vpss ]  30390919: CAPTURE: Overflow detected on VIP1, Total Resets = 156210
     [m3vpss ]  30390943: CAPTURE: Overflow detected on VIP1, Total Resets = 156211
     [m3vpss ]  30390967: CAPTURE: Overflow detected on VIP1, Total Resets = 156212
     [m3vpss ]  30390991: CAPTURE: Overflow detected on VIP1, Total Resets = 156213
     [m3vpss ]  30391015: CAPTURE: Overflow detected on VIP1, Total Resets = 156214
     [m3vpss ]  30391039: CAPTURE: Overflow detected on VIP1, Total Resets = 156215
     [m3vpss ]  30391063: CAPTURE: Overflow detected on VIP1, Total Resets = 156216
     [m3vpss ]  30391099: CAPTURE: Overflow detected on VIP1, Total Resets = 156217
     [m3vpss ]  30391131: CAPTURE: Overflow detected on VIP1, Total Resets = 156218

    In this case, I use RDK 01.06.00.11 and replace the vs daughter card to hardware version C.

    How do I fix this issue? Do you encounter this kind of issue?

     

  • Hi,

    Does anyone encounter the same problem?

    This problem happens at the TI's demo code?

    Thanks

    Jacson

     

  • sorry,

    This problem also happens at the TI's demo code.

    Jacson

     

  • Hi Jacson

    I am also facing the same issue. For VIP0 it works fine but for VIP1 it hangs.I face this issue when I configure them for 8-bit mode.16-bit mode works fine for me.

    Did you figure out how to solve this issue.

    Regards

    Ayusman

     

  • Hi, Jacson

    Have you fixed the issue you mentioned?

    I've encountered one problem similar with yours, continuous vip overflow but system not hang.

    Pls see the link if you are convenient and offer me some suggestion.

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/p/283306/989484.aspx#989484

    Thanks!

    YU Ri-Ping