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.

TDA2EVM5777: [VISION SDK] [Linux] A15 IPC out link blocked indefinitely

Part Number: TDA2EVM5777

Hi,

We are working on a Vision SDK Application with tda2x_evm_linux_all configuration, which uses multiple alg plugin links. the relevant part of the chain is like

NullSrc(A15) ->  decode,vpe, dup etc...  -> AlgPlugin_PreProc(A15) [4Channel data in one queue] -> IPCOut(A15) -> IPCIn(IPU) -> Select(IPU) [with 4 output queues]

We see that the after processing 4-5 frames the whole chains is blocked and gdb backtrace shows that the IPUOut link is blocked in OSA_queGet() in IpcOutLink_drvProcessBuffers() with OSA_TIMEOUT_FOREVER.

Note: The alg plugin is Running in Q_NOTINPLACE mode, with 8 System Buffers allocated for each channel.

We tried the following approaches to overcome the issue:

  1. Tried to increase SYSTEM_IPC_OUT_LINK_IPC_QUE_MAX_ELEMENTS, which results in Compilation error
  2. Changed wait timeout to OSA_TIMEOUT_NONE, which is resulting in frames getting dropped. [only 5~6 FPS 4 channel data is reaching the consequent links out of 10 FPS].

Can you please suggest any appropriate way to tackle this problem.

Thanks in advance.

Best Regards,

Ranjith Bhide.

  • Ranjith

    I would start by reviewing the implementation of AlgPlugin_PreProc. Compare the implementation you have against the details mentioned in vision_sdk\docs\FeatureSpecificUserGuides\VisionSDK_DevelopmentGuide.pdf Section 4 Algorithm Link Development

    Thanks and Regards

    Piyali

  • Hi Piyali,

    Thanks for your response. We cross checked our Alg_Plugin implementation with the guidelines given in the mentioned document, and the all the given guidelines are being followed.

    Also, the same plugin is being used in other use-cases where the output is ~10 FPS, However in the issue usecase we need ~40 FPS flow which is not happening.

    Any suggestions to investigate further are most welcome

    Best Regards,

    Ranjith Bhide.

  • Hi Ranjith

    To eliminate the issue, can you please put a Null link on the IPU and end the usecase chain after IPC_Out and check if you are able to recieve the desired frame rate?

    If yes, then we can start exploring the Select link logic to see if there are any compatibility issues.

    If not, then the next debug step is to place a Null link in the A15 (no IPC links) and check if the frame rate is achieved. If yes, then IPC needs to be debugged.

    If not, then the algorithm link needs to be reviewed for issues.

    Thanks and Regards

    Piyali