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/TDA2EXEVM: TIDL_OD on linux too slow

Part Number: TDA2EXEVM

Tool/software: Linux

Hi.

I'm working on porting TIDL_OD Usecase to Linux+BIOS using TDA2X EVM. (with Vision SDK 3.06)

I've finished porting, but the result display is too slow.

In original(BIOS) usecase, the result is about 20FPS but my porting(Linux+BIOS) usecase result is about 2FPS.

In the porting work, the link changed NullSrc to IPU->A15 and TIDL_Preprocessing to A15->IPU.

I checked using "System Statistics" to find out the cause, and a lot of frames were being droped from the VPE.(25 frames out of 30 frames dropped.)

TIDL_Preprocessing has been changed from A15 to IPU, possibly due to the IPU's slower frequency than A15.

So my question is three.

1. Checking the document makes it seem possible to set up an OPP(OPerating Point).
    How can I set the IPU to OPP High in Linux Usecase?

2. If I use to TIDL_Preprocessing on A15 core in Linux Usecase, do I need to port the algorithm? Or Something?
    I tried it before but failed. https://e2e.ti.com/support/processors/f/791/t/801015

3. While looking the community, I saw that TIDL Linux Usecase was included in the next release of the Vision SDK.
    Is that true? If true, when is Vision SDK's next release?

Regrds,

tmlee

  • Add my usecase(Linux) Log and bios log

    1. Linux TIDL_OD Usecase Log
    =========================================================================================================
    [HOST] [IPU1-0] 78.625327 s: [ VPE ] Link Statistics,
    [HOST] [IPU1-0] 78.625388 s: ******************************
    [HOST] [IPU1-0] 78.625449 s:
    [HOST] [IPU1-0] 78.625480 s: Elapsed time = 35621 msec
    [HOST] [IPU1-0] 78.625541 s:
    [HOST] [IPU1-0] 78.625602 s: New data Recv = 30.31 fps
    [HOST] [IPU1-0] 78.625663 s: Get Full Buf Cb = 5.8 fps
    [HOST] [IPU1-0] 78.625785 s: Put Empty Buf Cb = 7.41 fps
    [HOST] [IPU1-0] 78.625876 s: Driver/Notify Cb = 30.31 fps
    [HOST] [IPU1-0] 78.625937 s:
    [HOST] [IPU1-0] 78.625998 s: Input Statistics,
    [HOST] [IPU1-0] 78.626029 s:
    [HOST] [IPU1-0] 78.626090 s: CH | In Recv | In Drop | In User Drop | In Process
    [HOST] [IPU1-0] 78.626151 s: | FPS | FPS | FPS | FPS
    [HOST] [IPU1-0] 78.626242 s: --------------------------------------------------
    [HOST] [IPU1-0] 78.626334 s: 0 | 30.31 0. 0 0. 0 5. 8
    [HOST] [IPU1-0] 78.626456 s:
    [HOST] [IPU1-0] 78.626517 s: Output Statistics,
    [HOST] [IPU1-0] 78.626578 s:
    [HOST] [IPU1-0] 78.626608 s: CH | Out | Out | Out Drop | Out User Drop
    [HOST] [IPU1-0] 78.626669 s: | ID | FPS | FPS | FPS
    [HOST] [IPU1-0] 78.626883 s: ---------------------------------------------
    [HOST] [IPU1-0] 78.626974 s: 0 | 0 5. 8 25.23 0. 0
    [HOST] [IPU1-0] 78.627127 s:
    [HOST] [IPU1-0] 78.627157 s: [ VPE ] LATENCY,
    [HOST] [IPU1-0] 78.627218 s: ********************
    [HOST] [IPU1-0] 78.627279 s: Local Link Latency : Avg = 1301 us, Min = 1281 us, Max = 1678 us,
    [HOST] [IPU1-0] 78.627401 s: Source to Link Latency : Avg = 4203 us, Min = 3965 us, Max = 6009 us,
    [HOST] [IPU1-0] 78.627523 s:
    [HOST] [IPU1-0] 78.628865 s:
    [HOST] [IPU1-0] 78.628926 s: [ ALG_YUV2RGB ] Link Statistics,
    [HOST] [IPU1-0] 78.628987 s: ******************************
    [HOST] [IPU1-0] 78.629079 s:
    [HOST] [IPU1-0] 78.629109 s: Elapsed time = 35622 msec
    [HOST] [IPU1-0] 78.629170 s:
    [HOST] [IPU1-0] 78.629231 s: New data Recv = 2.77 fps
    [HOST] [IPU1-0] 78.629292 s:
    [HOST] [IPU1-0] 78.629353 s: Input Statistics,
    [HOST] [IPU1-0] 78.629414 s:
    [HOST] [IPU1-0] 78.629445 s: CH | In Recv | In Drop | In User Drop | In Process
    [HOST] [IPU1-0] 78.629536 s: | FPS | FPS | FPS | FPS
    [HOST] [IPU1-0] 78.629597 s: --------------------------------------------------
    [HOST] [IPU1-0] 78.629689 s: 0 | 5. 8 0. 0 0. 0 5. 8
    [HOST] [IPU1-0] 78.629872 s:
    [HOST] [IPU1-0] 78.629903 s: Output Statistics,
    [HOST] [IPU1-0] 78.629964 s:
    [HOST] [IPU1-0] 78.630025 s: CH | Out | Out | Out Drop | Out User Drop
    [HOST] [IPU1-0] 78.630086 s: | ID | FPS | FPS | FPS
    [HOST] [IPU1-0] 78.630177 s: ---------------------------------------------
    [HOST] [IPU1-0] 78.630238 s: 0 | 0 5. 8 0. 0 0. 0
    [HOST] [IPU1-0] 78.630391 s:
    [HOST] [IPU1-0] 78.630421 s: [ ALG_YUV2RGB ] LATENCY,
    [HOST] [IPU1-0] 78.630482 s: ********************
    [HOST] [IPU1-0] 78.630543 s: Local Link Latency : Avg = 105 us, Min = 61 us, Max = 1068 us,
    [HOST] [IPU1-0] 78.630665 s: Source to Link Latency : Avg = 530675 us, Min = 199079 us, Max = 1004605 us,
    [HOST] [IPU1-0] 78.630818 s:
    =========================================================================================================


    2. BIOS TIDL_OD Log

    =========================================================================================================
    [IPU1-0] 75.346092 s: [ VPE ] Link Statistics,
    [IPU1-0] 75.346153 s: ******************************
    [IPU1-0] 75.346214 s:
    [IPU1-0] 75.346245 s: Elapsed time = 2891 msec
    [IPU1-0] 75.346336 s:
    [IPU1-0] 75.346367 s: New data Recv = 30.43 fps
    [IPU1-0] 75.346428 s: Get Full Buf Cb = 21.9 fps
    [IPU1-0] 75.346519 s: Put Empty Buf Cb = 40.47 fps
    [IPU1-0] 75.346641 s: Driver/Notify Cb = 30.43 fps
    [IPU1-0] 75.346702 s:
    [IPU1-0] 75.346763 s: Input Statistics,
    [IPU1-0] 75.346794 s:
    [IPU1-0] 75.346855 s: CH | In Recv | In Drop | In User Drop | In Process
    [IPU1-0] 75.346916 s: | FPS | FPS | FPS | FPS
    [IPU1-0] 75.347007 s: --------------------------------------------------
    [IPU1-0] 75.347068 s: 0 | 30.43 0. 0 0. 0 21. 9
    [IPU1-0] 75.347190 s:
    [IPU1-0] 75.347251 s: Output Statistics,
    [IPU1-0] 75.347312 s:
    [IPU1-0] 75.347343 s: CH | Out | Out | Out Drop | Out User Drop
    [IPU1-0] 75.347404 s: | ID | FPS | FPS | FPS
    [IPU1-0] 75.347495 s: ---------------------------------------------
    [IPU1-0] 75.347587 s: 0 | 0 21. 9 9.33 0. 0
    [IPU1-0] 75.347709 s:
    [IPU1-0] 75.347739 s: [ VPE ] LATENCY,
    [IPU1-0] 75.347800 s: ********************
    [IPU1-0] 75.347861 s: Local Link Latency : Avg = 1311 us, Min = 1281 us, Max = 1586 us,
    [IPU1-0] 75.347983 s: Source to Link Latency : Avg = 4375 us, Min = 4148 us, Max = 5703 us,
    [IPU1-0] 75.348075 s:
    [IPU1-0] 75.348136 s: CPU [ IPU1-0], LinkID [ 25], Link Statistics not available !
    [IPU1-0] 75.348319 s:
    [IPU1-0] 75.348349 s: ### CPU [IPU1-0], LinkID [ 0],
    [IPU1-0] 75.348410 s:
    [IPU1-0] 75.348471 s: [ IPC_OUT_0 ] Link Statistics,
    [IPU1-0] 75.348532 s: ******************************
    [IPU1-0] 75.348624 s:
    [IPU1-0] 75.348654 s: Elapsed time = 2892 msec
    [IPU1-0] 75.348746 s:
    [IPU1-0] 75.348776 s: New data Recv = 21.9 fps
    [IPU1-0] 75.348837 s: Release data Recv = 21.9 fps
    [IPU1-0] 75.348929 s: Driver/Notify Cb = 54.28 fps
    [IPU1-0] 75.348990 s:
    [IPU1-0] 75.349051 s: Input Statistics,
    [IPU1-0] 75.349081 s:
    [IPU1-0] 75.349142 s: CH | In Recv | In Drop | In User Drop | In Process
    [IPU1-0] 75.349203 s: | FPS | FPS | FPS | FPS
    [IPU1-0] 75.349295 s: --------------------------------------------------
    [IPU1-0] 75.349356 s: 0 | 21. 9 0. 0 0. 0 21. 9
    [IPU1-0] 75.349508 s:
    [IPU1-0] 75.349935 s: Output Statistics,
    [IPU1-0] 75.350027 s:
    [IPU1-0] 75.350057 s: CH | Out | Out | Out Drop | Out User Drop
    [IPU1-0] 75.350149 s: | ID | FPS | FPS | FPS
    [IPU1-0] 75.350210 s: ---------------------------------------------
    [IPU1-0] 75.350454 s: 0 | 0 21. 9 0. 0 0. 0
    [IPU1-0] 75.351460 s:
    ...
    [IPU1-0] 75.854267 s: [ ALG_TIDLPREPROC ] Link Statistics,
    [IPU1-0] 75.854328 s: ******************************
    [IPU1-0] 75.854389 s:
    [IPU1-0] 75.854419 s: Elapsed time = 3398 msec
    [IPU1-0] 75.854511 s:
    [IPU1-0] 75.854541 s: New data Recv = 21.18 fps
    [IPU1-0] 75.854633 s:
    [IPU1-0] 75.854694 s: Input Statistics,
    [IPU1-0] 75.854724 s:
    [IPU1-0] 75.854785 s: CH | In Recv | In Drop | In User Drop | In Process
    [IPU1-0] 75.854846 s: | FPS | FPS | FPS | FPS
    [IPU1-0] 75.854938 s: --------------------------------------------------
    [IPU1-0] 75.854999 s: 0 | 21.18 0. 0 0. 0 21.18
    [IPU1-0] 75.855121 s:
    [IPU1-0] 75.855182 s: Output Statistics,
    [IPU1-0] 75.855212 s:
    [IPU1-0] 75.855273 s: CH | Out | Out | Out Drop | Out User Drop
    [IPU1-0] 75.855334 s: | ID | FPS | FPS | FPS
    [IPU1-0] 75.855395 s: ---------------------------------------------
    [IPU1-0] 75.855487 s: 0 | 0 21.18 0. 0 0. 0
    [IPU1-0] 75.855792 s:
    [IPU1-0] 75.855853 s: [ ALG_TIDLPREPROC ] LATENCY,
    [IPU1-0] 75.855914 s: ********************
    [IPU1-0] 75.855975 s: Local Link Latency : Avg = 305 us, Min = 244 us, Max = 427 us,
    [IPU1-0] 75.856097 s: Source to Link Latency : Avg = 15234 us, Min = 14823 us, Max = 16409 us,
    [IPU1-0] 75.856219 s:
    =========================================================================================================

    To compare the logs...
    The problem with too many frame drop on VPE seems to be TIDL_Preprocessing.

  • Hi,

    TIDL_OD is not been tested on Linux.

    So we can not promise any desired performance with this.

    Still you can share the complete log and we can have a look.

    Regards,

    Anuj

  • Hi, Anuj.

    I attached Linux TIDL_OD Usecase log file.

    And, please answer the 3 questions of the previous post.

    TIDL_LINUX_LOG (2).txt

    Regrds,

    tmlee

  • I'm resolved this issue.

    I'm ported 'ALG_TIDLpreprocessing' on DSP.

    Regrads,

    Lee.