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.

Linux: VPE Link drops too many frames in TIDL OD Usecase in Linux

Tool/software: Linux

Hi,

I converted TIDL OD Usecase from RTOS to Linux.

The links of usecase are created normally and started.

However, Only full green screen was showed in display. 

When i printed statistics of each link, from NullSrc to Decode link, the 30 FPS was showed both input fps and output fps.

However, from VPE link, Out Drop FPS increased to about 29 FPS like below capture image.

VPE link is executed on IPU1_0. 

Could you suggest any solution?

Thanks in advance.

Regards,

Yoo.

  • Hi Yoo,

    it seems that the VPE link do not receive enough output buffers, can you check if the link after VPE link is holding buffers for longer period of time.

    Regards,
    Yordan
  • Hi,
    Thanks for answering.

    Could you explain the way how to check which link after VPE link is holding buffers for longer period of time?
    Is that showed when i print link statistics? Then, could you let me know which element indicates that time?

    Thanks again.

    Best regards,
    Yoo.
  • Hi,

    could you post the complete statistics log (you can attach it as a text file).

    Regards,
    Yordan
  • Hi,

    I attached statistics log file.

    log_tidl_linux.txt

    Thank you.

    Regards,

    Yoo.

  • Any updates here?

    I checked FPS in a case that has only NullSrc(A15) -> IPCOUT/IN(A15->IPU1_0) -> Decode(IPU1_0) -> VPE(IPU1_0) -> Display(IPU1_0).
    The FPS was showed normally in VPE link.
    However, after i add Dup link, VPE drops almost every frames.
    Then, should i edit Dup link?
    If that, could you suggest any solution?

    Thank you again.

    Regards,
    Yoo.

  • Hi,

    I see "Local Link Latency" is quite high for tidl link, but I am not sure if it is higher than expected or normal.
    Let me ping VisionSDK experts to provide more help.

    Regards,
    Yordan
  • Hi,

    As Yordan suggested the link latemcy for TIDL link is very high so its keeping the buffer and causes an unavailability of buffer in VPE link which cause a drop.
    Even you are running it in 30FPS which is not possible in any scenario.
    Please check the datasheet of vision sdk.

    If you are running with release profile with all 4 EVE core enabled and running a OPP_HIGH MLO the you can get around 20-22 FPS with TI provided network and params files.

    Regards,
    Anuj
  • Could you let me know where should i set to run OPP_HIGH MLO?

    I really appreciate to both to you guys.

    Regards,
    Yoo.
  • I attached the link statistics of TIDL BIOS.
    It executed normally.

    RTOS_TIDL.txt


    And i checked Local Latency of TIDL link.
    However, i think the difference of Local Latency of TIDL link is not very much?

    And i rebuild as release mode after editing APP/configs/tda2xx-evm-linux-all/cfg.mk.
    The fps of VPE was a little increased.
    However, from SYNC link, there aren't any number in output statistics.
    The below is log.

    [HOST] [IPU2 ] 60.651131 s: [ SYNC_LINK_0 ] Link Statistics,
    [HOST] [IPU2 ] 60.651192 s: ******************************
    [HOST] [IPU2 ] 60.651253 s:
    [HOST] [IPU2 ] 60.651314 s: Elapsed time = 14139 msec
    [HOST] [IPU2 ] 60.651375 s:
    [HOST] [IPU2 ] 60.651467 s: New data Recv = 34.58 fps
    [HOST] [IPU2 ] 60.651558 s: Driver/Notify Cb = 30.27 fps
    [HOST] [IPU2 ] 60.651619 s:
    [HOST] [IPU2 ] 60.651680 s: Input Statistics,
    [HOST] [IPU2 ] 60.651741 s:
    [HOST] [IPU2 ] 60.651772 s: CH | In Recv | In Drop | In User Drop | In Process
    [HOST] [IPU2 ] 60.651863 s: | FPS | FPS | FPS | FPS
    [HOST] [IPU2 ] 60.651955 s: --------------------------------------------------
    [HOST] [IPU2 ] 60.652046 s: 0 | 4.24 3.74 0. 0 0. 0
    [HOST] [IPU2 ] 60.652168 s:
    [HOST] [IPU2 ] 60.652229 s: Output Statistics,
    [HOST] [IPU2 ] 60.652260 s:
    [HOST] [IPU2 ] 60.652321 s: CH | Out | Out | Out Drop | Out User Drop
    [HOST] [IPU2 ] 60.652382 s: | ID | FPS | FPS | FPS
    [HOST] [IPU2 ] 60.652504 s: ---------------------------------------------
    [HOST] [IPU2 ] 60.652626 s:
    [HOST] [IPU2 ] 60.652656 s: [ SYNC_LINK_0 ] LATENCY,
    [HOST] [IPU2 ] 60.652717 s: ********************
    [HOST] [IPU2 ] 60.652778 s:
    [HOST] [IPU2 ] 60.656194 s:
    [HOST] [IPU2 ] 60.656255 s: [ IPC_OUT_4 ] Link Statistics,
    [HOST] [IPU2 ] 60.656316 s: ******************************
    [HOST] [IPU2 ] 60.656377 s:
    [HOST] [IPU2 ] 60.656469 s: Elapsed time = 14375 msec
    [HOST] [IPU2 ] 60.656530 s:
    [HOST] [IPU2 ] 60.656591 s: Driver/Notify Cb = 32.83 fps
    [HOST] [IPU2 ] 60.656682 s:
    [HOST] [IPU2 ] 60.656713 s: Input Statistics,
    [HOST] [IPU2 ] 60.656774 s:
    [HOST] [IPU2 ] 60.656835 s: CH | In Recv | In Drop | In User Drop | In Process
    [HOST] [IPU2 ] 60.656926 s: | FPS | FPS | FPS | FPS
    [HOST] [IPU2 ] 60.656987 s: --------------------------------------------------
    [HOST] [IPU2 ] 60.657109 s:
    [HOST] [IPU2 ] 60.657140 s: Output Statistics,
    [HOST] [IPU2 ] 60.657201 s:
    [HOST] [IPU2 ] 60.657231 s: CH | Out | Out | Out Drop | Out User Drop
    [HOST] [IPU2 ] 60.657323 s: | ID | FPS | FPS | FPS
    [HOST] [IPU2 ] 60.657414 s: ---------------------------------------------
    [HOST] [IPU2 ] 60.657658 s:
    [HOST] [IPU2 ] 60.657719 s: [ IPC_OUT_4 ] LATENCY,
    [HOST] [IPU2 ] 60.657780 s: ********************
    [HOST] [IPU2 ] 60.657841 s:
    [HOST] [IPU2 ] 60.666931 s:
    [HOST] [IPU2 ] 60.666992 s: [ IPC_IN_1 ] Link Statistics,
    [HOST] [IPU2 ] 60.667083 s: ******************************
    [HOST] [IPU2 ] 60.667144 s:
    [HOST] [IPU2 ] 60.667175 s: Elapsed time = 14369 msec
    [HOST] [IPU2 ] 60.667266 s:
    [HOST] [IPU2 ] 60.667297 s: Driver/Notify Cb = 32.91 fps
    [HOST] [IPU2 ] 60.667388 s:
    [HOST] [IPU2 ] 60.667480 s: Input Statistics,
    [HOST] [IPU2 ] 60.667541 s:
    [HOST] [IPU2 ] 60.667571 s: CH | In Recv | In Drop | In User Drop | In Process
    [HOST] [IPU2 ] 60.667663 s: | FPS | FPS | FPS | FPS
    [HOST] [IPU2 ] 60.667754 s: --------------------------------------------------
    [HOST] [IPU2 ] 60.667846 s:
    [HOST] [IPU2 ] 60.667907 s: Output Statistics,
    [HOST] [IPU2 ] 60.667968 s:
    [HOST] [IPU2 ] 60.667998 s: CH | Out | Out | Out Drop | Out User Drop
    [HOST] [IPU2 ] 60.668090 s: | ID | FPS | FPS | FPS
    [HOST] [IPU2 ] 60.668151 s: ---------------------------------------------
    [HOST] [IPU2 ] 60.668395 s:
    [HOST] [IPU2 ] 60.668486 s: [ IPC_IN_1 ] LATENCY,
    [HOST] [IPU2 ] 60.668547 s: ********************
    [HOST] [IPU2 ] 60.668608 s:
    [HOST] [IPU2 ] 60.668669 s: [ IPC_IN_1 ] Detailed IPC Latency Statistics [ DSP1 -> IPU2 ] ,
    [HOST] [IPU2 ] 60.668761 s: ***************************************************************
    [HOST] [IPU2 ] 60.673580 s:
    [HOST] [IPU2 ] 60.673671 s: [ ALG_OBJECT_DRAW ] Link Statistics,
    [HOST] [IPU2 ] 60.673763 s: ******************************
    [HOST] [IPU2 ] 60.673824 s:
    [HOST] [IPU2 ] 60.673854 s: Elapsed time = 14352 msec
    [HOST] [IPU2 ] 60.673946 s:
    [HOST] [IPU2 ] 60.673976 s:
    [HOST] [IPU2 ] 60.674037 s: Input Statistics,
    [HOST] [IPU2 ] 60.674098 s:
    [HOST] [IPU2 ] 60.674129 s: CH | In Recv | In Drop | In User Drop | In Process
    [HOST] [IPU2 ] 60.674220 s: | FPS | FPS | FPS | FPS
    [HOST] [IPU2 ] 60.674983 s: --------------------------------------------------
    [HOST] [IPU2 ] 60.675105 s:
    [HOST] [IPU2 ] 60.675135 s: Output Statistics,
    [HOST] [IPU2 ] 60.675196 s:
    [HOST] [IPU2 ] 60.675257 s: CH | Out | Out | Out Drop | Out User Drop
    [HOST] [IPU2 ] 60.675318 s: | ID | FPS | FPS | FPS
    [HOST] [IPU2 ] 60.675410 s: ---------------------------------------------
    [HOST] [IPU2 ] 60.675715 s:
    [HOST] [IPU2 ] 60.675745 s: [ ALG_OBJECT_DRAW ] LATENCY,
    [HOST] [IPU2 ] 60.675806 s: ********************
    [HOST] [IPU2 ] 60.675867 s:
    [HOST] [IPU2 ] 60.679344 s:
    [HOST] [IPU2 ] 60.679405 s: [ DISPLAY ] Link Statistics,
    [HOST] [IPU2 ] 60.679527 s: ******************************
    [HOST] [IPU2 ] 60.679588 s:
    [HOST] [IPU2 ] 60.679649 s: Elapsed time = 14351 msec
    [HOST] [IPU2 ] 60.679710 s:
    [HOST] [IPU2 ] 60.679771 s:
    [HOST] [IPU2 ] 60.679802 s: Input Statistics,
    [HOST] [IPU2 ] 60.679863 s:
    [HOST] [IPU2 ] 60.679893 s: CH | In Recv | In Drop | In User Drop | In Process
    [HOST] [IPU2 ] 60.679985 s: | FPS | FPS | FPS | FPS
    [HOST] [IPU2 ] 60.680076 s: --------------------------------------------------
    [HOST] [IPU2 ] 60.680168 s:
    [HOST] [IPU2 ] 60.680229 s: Output Statistics,
    [HOST] [IPU2 ] 60.680259 s:
    [HOST] [IPU2 ] 60.680320 s: CH | Out | Out | Out Drop | Out User Drop
    [HOST] [IPU2 ] 60.680381 s: | ID | FPS | FPS | FPS
    [HOST] [IPU2 ] 60.680503 s: ---------------------------------------------
    [HOST] [IPU2 ] 60.680747 s:
    [HOST] [IPU2 ] 60.680808 s: [ DISPLAY ] LATENCY,
    [HOST] [IPU2 ] 60.680869 s: ********************
    [HOST] [IPU2 ] 60.680930 s:
    [HOST] [IPU2 ] 60.680991 s:
    [HOST] [IPU2 ] 60.681052 s: [ DISPLAY VID1 ] Additional Statistics,
    [HOST] [IPU2 ] 60.681113 s: ************************************
    [HOST] [IPU2 ] 60.681205 s: Driver Queued = 0 frames
    [HOST] [IPU2 ] 60.681266 s: Driver De-Queued = 0 frames
    [HOST] [IPU2 ] 60.681357 s: Driver Displayed = 0 frames
    [HOST] [IPU2 ] 60.681418 s: Driver Repeated = 0 frames
    [HOST] [IPU2 ] 60.681510 s:
    [HOST] [IPU2 ] 60.681571 s: ##### DSS DISPC Underflow Count = 0 #####

    Could you suggest the way how i check which link doesn't return buffers?

    Thanks again.

    Regards,
    Yoo.

  • Hi,
    I edited OPPMODE from opp_nom to opp_high in sbl_auto_component.mk file.
    However, i'm not sure this change what you did suggested.

    Besides, does OPP_HIGH works in linux enviroment?

    Thanks again.

    Regards,
    Yoo.
  • Hi,

    You do not need to modify any files.

    After building SBL you have to pick MLO from opp_high folder instead of opp-nom folder.

    Regards,

    Anuj

  • Hi,

    Its been long since any updates on this thread.

    I hope the issue is resolved.

    If not then please reply below or create a new thread for a different query

    Regards,

    Anuj