TDA4VM: PERF

Part Number: TDA4VM

Tool/software:

Hi TI,

SDK8.6   EVM

CPU performance statistisc        DDR performance statistisc       graph performance statistisc

What are the implementation principles and details of CPU load statistics, DDR load statistics, and FPS statistics in TDA4?

Could you help us understand this and send us documentation on the subject?

Looking forward to your reply.

  • Hi Barry,

    Did not get your question, what do you mean by implementation principles? Do you mean how frequently they are updated? 

    Regard,s

    brijesh

  • Hi Brijesh,

    Our questions are:

    tivx_utils_graph_perf_print

    TIVX_CAPTURE_PRINT_STATISTICS

    How do these two APIs obtain statistical data? How do they do it?

    How are the three statistics (CPU load, DDR load, and FPS) calculated? How did they do it?

    Looking forward to your reply.

  • Hi Barry,

    Well, capture stats are straight forward, in 'n' timeframe, how many frames are captured, that gives fps and driver keeps track of how many buffers are enqueued and dequeued.. 

    DDR load is provided by the DDR controller, there are registers in the controller that counts the number of read/write requests. Based on this information DDR BW is calculated. 

    CPU load is provided by the OS, so FreeRTOS has a loadP module, which provides Hwi, and task loads. 

    Regards,

    Brijesh

  • Hi Brijesh,

    Thanks for your reply.

    d task loads. 

    #1

    How do I calculate the load on mpu1_0? How is this achieved?

    #2

    How do I calculate the load on mcu2_0? How do I do it?

    Looking forward to your reply. Please also send us the guide for better understanding of load calculation in TDA4. Thank you.

  • hi Barry,

    #1

    What OS are you running on mpu1_0? Typically HLOS running on mpu1_0 provides these services, so you could check in your HLOS. 

    #2

    FreeRTOS running on mcu2_0 provides method to calculate load. so please refer to loadP module. 

    Regards,

    Brijesh

  • Hi Brijesh,

    Thanks for your reply.

    SDK8.6   tda4vm,  A72 is linux

    We want to know how this load is calculated when running the APP? What's the calculation method?

    Could you send us the documentation on this?

    Thank you

  • Hi Barry,

    As i mentioned, this is supported by LoadP module of FreeRTOS, you could find the implementation in app_utils/utils/perf_stats/src/app_perf_stats_freertos.c file and underlying, it calls loadP APIs, available in  pdkpackages\ti\osal\src\freertos\LoadP_freertos.c file. 

    Regards,

    Brijesh