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.

TDA2P-ACD: Periodical In Drops on SIMCOP

Part Number: TDA2P-ACD

Hello,

I'm working on a usecase (see related post or attached picture) where ISP processes two 1080p channels at 60 fps. SIMCOP processes 3 channels (one input is duplicated via dup link) at 60 fps and does LDC. The usecase runs on a TDA2P.

After some performance adjustments (faster OPP mode, adjusting LDC params etc.) the usecase almost runs perfectly except there are periodical In Frame Drops on the SIMCOP. These drops first appear 5 seconds after the usecase starts and then occur every 2.28 s. They are also visible on the display (small frame lags/stuttering).

Link Latencies all seem fine, too. Grpx Display shows an IPU and ISP load of about 60%. Also when changing the OPP mode the frame drop intervall doesn't change.

Do you have any idea what could cause these drops in the SIMCOP?

Regards

Tobias

IPU1-0]   6673.290032 s:  [ ISSCAPTURE ] Link Statistics,
[IPU1-0]   6673.290123 s:  ******************************
[IPU1-0]   6673.290184 s:
[IPU1-0]   6673.290215 s:  Elapsed time       = 1326174 msec
[IPU1-0]   6673.290306 s:
[IPU1-0]   6673.290337 s:  Get Full Buf Cb    = 120.12 fps
[IPU1-0]   6673.290428 s:  Put Empty Buf Cb   = 120.12 fps
[IPU1-0]   6673.290489 s:  Driver/Notify Cb   = 120.12 fps
[IPU1-0]   6673.290581 s:
[IPU1-0]   6673.290611 s:  Input Statistics,
[IPU1-0]   6673.290703 s:
[IPU1-0]   6673.290764 s:  CH | In Recv | In Drop | In User Drop | In Process
[IPU1-0]   6673.290825 s:     | FPS     | FPS     | FPS          | FPS
[IPU1-0]   6673.290916 s:  --------------------------------------------------
[IPU1-0]   6673.291008 s:   0 |  60. 6      0. 0      0. 0          60. 6
[IPU1-0]   6673.291160 s:   1 |  60. 6      0. 0      0. 0          60. 6
[IPU1-0]   6673.291282 s:
[IPU1-0]   6673.291313 s:  Output Statistics,
[IPU1-0]   6673.291435 s:
[IPU1-0]   6673.291496 s:  CH | Out | Out     | Out Drop | Out User Drop
[IPU1-0]   6673.291557 s:     | ID  | FPS     | FPS      | FPS
[IPU1-0]   6673.291648 s:  ---------------------------------------------
[IPU1-0]   6673.291740 s:   0 |  0     60. 6     0. 0      0. 0
[IPU1-0]   6673.291862 s:   1 |  0     60. 6     0. 0      0. 0
[IPU1-0]   6673.308790 s:
[IPU1-0]   6673.308881 s:  [ ISSM2MISP ] Link Statistics,
[IPU1-0]   6673.308942 s:  ******************************
[IPU1-0]   6673.309034 s:
[IPU1-0]   6673.309064 s:  Elapsed time       = 1326189 msec
[IPU1-0]   6673.309156 s:
[IPU1-0]   6673.309186 s:  New data Recv      = 120.12 fps
[IPU1-0]   6673.309278 s:  Get Full Buf Cb    = 200.5 fps
[IPU1-0]   6673.309369 s:  Driver/Notify Cb   = 120.12 fps
[IPU1-0]   6673.309430 s:
[IPU1-0]   6673.309491 s:  Input Statistics,
[IPU1-0]   6673.309552 s:
[IPU1-0]   6673.309583 s:  CH | In Recv | In Drop | In User Drop | In Process
[IPU1-0]   6673.309705 s:     | FPS     | FPS     | FPS          | FPS
[IPU1-0]   6673.309796 s:  --------------------------------------------------
[IPU1-0]   6673.310284 s:   0 |  60. 6      0. 0      0. 0          60. 6
[IPU1-0]   6673.310467 s:   1 |  60. 6      0. 0      0. 0          60. 6
[IPU1-0]   6673.310589 s:
[IPU1-0]   6673.310650 s:  Output Statistics,
[IPU1-0]   6673.310742 s:
[IPU1-0]   6673.310772 s:  CH | Out | Out     | Out Drop | Out User Drop
[IPU1-0]   6673.310864 s:     | ID  | FPS     | FPS      | FPS
[IPU1-0]   6673.310955 s:  ---------------------------------------------
[IPU1-0]   6673.311047 s:   0 |  0     60. 6     0. 0      0. 0
[IPU1-0]   6673.311169 s:   0 |  1     60. 6     0. 0      0. 0
[IPU1-0]   6673.311291 s:   0 |  2      0. 0    60. 6      0. 0
[IPU1-0]   6673.311413 s:   0 |  3      0. 0    60. 6      0. 0
[IPU1-0]   6673.311535 s:   1 |  0     60. 6     0. 0      0. 0
[IPU1-0]   6673.311687 s:   1 |  1     60. 6     0. 0      0. 0
[IPU1-0]   6673.311809 s:   1 |  2      0. 0    60. 6      0. 0
[IPU1-0]   6673.311931 s:   1 |  3      0. 0    60. 6      0. 0
[IPU1-0]   6673.312084 s:
[IPU1-0]   6673.312114 s:  [ ISSM2MISP ] LATENCY,
[IPU1-0]   6673.312175 s:  ********************
[IPU1-0]   6673.312236 s:  Local Link Latency     : Avg =   5871 us, Min =   5703 us, Max =   7412 us,
[IPU1-0]   6673.312358 s:  Source to Link Latency : Avg =   7757 us, Min =   5795 us, Max =  11438 us,
[IPU1-0]   6673.312633 s:
[IPU1-0]   6673.359330 s:
[IPU1-0]   6673.359421 s:  [ ALG_ISS_AEWB ] Link Statistics,
[IPU1-0]   6673.359513 s:  ******************************
[IPU1-0]   6673.359574 s:
[IPU1-0]   6673.359604 s:  Elapsed time       = 1326229 msec
[IPU1-0]   6673.359726 s:
[IPU1-0]   6673.359787 s:  New data Recv      =  79.92 fps
[IPU1-0]   6673.360397 s:
[IPU1-0]   6673.360489 s:  Input Statistics,
[IPU1-0]   6673.360550 s:
[IPU1-0]   6673.360580 s:  CH | In Recv | In Drop | In User Drop | In Process
[IPU1-0]   6673.360702 s:     | FPS     | FPS     | FPS          | FPS
[IPU1-0]   6673.360794 s:  --------------------------------------------------
[IPU1-0]   6673.360885 s:   0 |  60. 6      0. 0      0. 0          60. 6
[IPU1-0]   6673.361038 s:
[IPU1-0]   6673.361068 s:  Output Statistics,
[IPU1-0]   6673.361129 s:
[IPU1-0]   6673.361190 s:  CH | Out | Out     | Out Drop | Out User Drop
[IPU1-0]   6673.361251 s:     | ID  | FPS     | FPS      | FPS
[IPU1-0]   6673.361343 s:  ---------------------------------------------
[IPU1-0]   6673.361434 s:   0 |  0     60. 6     0. 0      0. 0
[IPU1-0]   6673.361556 s:
[IPU1-0]   6673.361617 s:  [ ALG_ISS_AEWB ] LATENCY,
[IPU1-0]   6673.361678 s:  ********************
[IPU1-0]   6673.361739 s:  Local Link Latency     : Avg =   5677 us, Min =     61 us, Max =  33704 us,
[IPU1-0]   6673.361892 s:  Source to Link Latency : Avg =  21741 us, Min =   9913 us, Max =  60636 us,
[IPU1-0]   6673.362014 s:
[IPU1-0]   6673.364393 s:
[IPU1-0]   6673.364454 s:  [ ISSM2MSIMCOP ] Link Statistics,
[IPU1-0]   6673.364515 s:  ******************************
[IPU1-0]   6673.364606 s:
[IPU1-0]   6673.364637 s:  Elapsed time       = 1326230 msec
[IPU1-0]   6673.364728 s:
[IPU1-0]   6673.364789 s:  New data Recv      = 180.18 fps
[IPU1-0]   6673.364881 s:  Get Full Buf Cb    = 178.87 fps
[IPU1-0]   6673.364942 s:
[IPU1-0]   6673.365003 s:  Input Statistics,
[IPU1-0]   6673.365033 s:
[IPU1-0]   6673.365094 s:  CH | In Recv | In Drop | In User Drop | In Process
[IPU1-0]   6673.365155 s:     | FPS     | FPS     | FPS          | FPS
[IPU1-0]   6673.365369 s:  --------------------------------------------------
[IPU1-0]   6673.365460 s:   0 |  60. 6      0.43      0. 0          59.62
[IPU1-0]   6673.365613 s:   1 |  60. 6      0.43      0. 0          59.62
[IPU1-0]   6673.365765 s:   2 |  60. 6      0.43      0. 0          59.62
[IPU1-0]   6673.365918 s:
[IPU1-0]   6673.365948 s:  Output Statistics,
[IPU1-0]   6673.366009 s:
[IPU1-0]   6673.366040 s:  CH | Out | Out     | Out Drop | Out User Drop
[IPU1-0]   6673.366131 s:     | ID  | FPS     | FPS      | FPS
[IPU1-0]   6673.366223 s:  ---------------------------------------------
[IPU1-0]   6673.366345 s:   0 |  0     59.62     0. 0      0. 0
[IPU1-0]   6673.366711 s:   1 |  0     59.62     0. 0      0. 0
[IPU1-0]   6673.366863 s:   2 |  0     59.62     0. 0      0. 0
[IPU1-0]   6673.366985 s:
[IPU1-0]   6673.367046 s:  [ ISSM2MSIMCOP ] LATENCY,
[IPU1-0]   6673.367107 s:  ********************
[IPU1-0]   6673.367168 s:  Local Link Latency     : Avg =   2556 us, Min =   1494 us, Max =   4880 us,
[IPU1-0]   6673.367290 s:  Source to Link Latency : Avg =  11740 us, Min =   9028 us, Max =  18270 us,
[IPU1-0]   6673.367412 s:
[IPU1-0]   6673.367809 s:
[IPU1-0]   6673.367870 s:  [ DISPLAY ] Link Statistics,
[IPU1-0]   6673.367931 s:  ******************************
[IPU1-0]   6673.367992 s:
[IPU1-0]   6673.368053 s:  Elapsed time       = 1326229 msec
[IPU1-0]   6673.368114 s:
[IPU1-0]   6673.368175 s:  New data Recv      =  59.62 fps
[IPU1-0]   6673.368297 s:  Driver/Notify Cb   =  59.62 fps
[IPU1-0]   6673.369486 s:
[IPU1-0]   6673.369608 s:  Input Statistics,
[IPU1-0]   6673.369791 s:
[IPU1-0]   6673.369852 s:  CH | In Recv | In Drop | In User Drop | In Process
[IPU1-0]   6673.369974 s:     | FPS     | FPS     | FPS          | FPS
[IPU1-0]   6673.370096 s:  --------------------------------------------------
[IPU1-0]   6673.370249 s:   0 |  59.62      0. 0      0. 0          59.62
[IPU1-0]   6673.370463 s:
[IPU1-0]   6673.370493 s:  [ DISPLAY ] LATENCY,
[IPU1-0]   6673.370585 s:  ********************
[IPU1-0]   6673.370676 s:  Local Link Latency     : Avg =     37 us, Min =      0 us, Max =    336 us,
[IPU1-0]   6673.370859 s:  Source to Link Latency : Avg =  14915 us, Min =  14397 us, Max =  22418 us,
[IPU1-0]   6673.371042 s:
[IPU1-0]   6673.371134 s:
[IPU1-0]   6673.371195 s:  [ DISPLAY  VID3 ] Additional Statistics,
[IPU1-0]   6673.371317 s:  ************************************
[IPU1-0]   6673.371408 s:  Driver Queued    = 108472 frames
[IPU1-0]   6673.371530 s:  Driver De-Queued = 108469 frames
[IPU1-0]   6673.371622 s:  Driver Displayed = 108469 frames
[IPU1-0]   6673.372018 s:  Driver Repeated  =      0 frames
[IPU1-0]   6673.372110 s:
[IPU1-0]   6673.372171 s:  ##### DSS DISPC Underflow Count  =      0 #####
[IPU1-0]   6673.372232 s:
[IPU1-0]   6673.372872 s:
[IPU1-0]   6673.372964 s:  [ DISPLAY ] Link Statistics,
[IPU1-0]   6673.373025 s:  ******************************
[IPU1-0]   6673.373086 s:
[IPU1-0]   6673.373116 s:  Elapsed time       = 1326230 msec
[IPU1-0]   6673.373208 s:
[IPU1-0]   6673.373238 s:  New data Recv      =  59.62 fps
[IPU1-0]   6673.373330 s:  Driver/Notify Cb   =  59.62 fps
[IPU1-0]   6673.373421 s:
[IPU1-0]   6673.373452 s:  Input Statistics,
[IPU1-0]   6673.373513 s:
[IPU1-0]   6673.373543 s:  CH | In Recv | In Drop | In User Drop | In Process
[IPU1-0]   6673.373635 s:     | FPS     | FPS     | FPS          | FPS
[IPU1-0]   6673.373757 s:  --------------------------------------------------
[IPU1-0]   6673.373848 s:   0 |  59.62      0. 0      0. 0          59.62
[IPU1-0]   6673.374001 s:
[IPU1-0]   6673.374031 s:  [ DISPLAY ] LATENCY,
[IPU1-0]   6673.374092 s:  ********************
[IPU1-0]   6673.374153 s:  Local Link Latency     : Avg =     41 us, Min =      0 us, Max =    336 us,
[IPU1-0]   6673.374275 s:  Source to Link Latency : Avg =  11746 us, Min =  11164 us, Max =  15037 us,
[IPU1-0]   6673.374397 s:
[IPU1-0]   6673.374458 s:
[IPU1-0]   6673.374519 s:  [ DISPLAY  VID2 ] Additional Statistics,
[IPU1-0]   6673.374580 s:  ************************************
[IPU1-0]   6673.374641 s:  Driver Queued    = 108472 frames
[IPU1-0]   6673.375465 s:  Driver De-Queued = 108469 frames
[IPU1-0]   6673.375587 s:  Driver Displayed = 108469 frames
[IPU1-0]   6673.375709 s:  Driver Repeated  =      0 frames
[IPU1-0]   6673.375800 s:
[IPU1-0]   6673.375831 s:  ##### DSS DISPC Underflow Count  =      0 #####
[IPU1-0]   6673.375922 s:
[IPU1-0]   6673.377661 s:
[IPU1-0]   6673.377783 s:  [ DISPLAY ] Link Statistics,
[IPU1-0]   6673.377874 s:  ******************************
[IPU1-0]   6673.377935 s:
[IPU1-0]   6673.377966 s:  Elapsed time       = 1326230 msec
[IPU1-0]   6673.378057 s:
[IPU1-0]   6673.378088 s:  New data Recv      =  59.62 fps
[IPU1-0]   6673.378179 s:  Driver/Notify Cb   =  59.62 fps
[IPU1-0]   6673.378271 s:
[IPU1-0]   6673.378301 s:  Input Statistics,
[IPU1-0]   6673.378362 s:
[IPU1-0]   6673.378393 s:  CH | In Recv | In Drop | In User Drop | In Process
[IPU1-0]   6673.378484 s:     | FPS     | FPS     | FPS          | FPS
[IPU1-0]   6673.378576 s:  --------------------------------------------------
[IPU1-0]   6673.378698 s:   0 |  59.62      0. 0      0. 0          59.62
[IPU1-0]   6673.378850 s:
[IPU1-0]   6673.378881 s:  [ DISPLAY ] LATENCY,
[IPU1-0]   6673.378942 s:  ********************
[IPU1-0]   6673.379003 s:  Local Link Latency     : Avg =     35 us, Min =      0 us, Max =    336 us,
[IPU1-0]   6673.380253 s:  Source to Link Latency : Avg =   9510 us, Min =   9241 us, Max =  10157 us,
[IPU1-0]   6673.380406 s:
[IPU1-0]   6673.380467 s:
[IPU1-0]   6673.380497 s:  [ DISPLAY  VID1 ] Additional Statistics,
[IPU1-0]   6673.380589 s:  ************************************
[IPU1-0]   6673.380650 s:  Driver Queued    = 108472 frames
[IPU1-0]   6673.380772 s:  Driver De-Queued = 108468 frames
[IPU1-0]   6673.380833 s:  Driver Displayed = 108468 frames
[IPU1-0]   6673.380924 s:  Driver Repeated  =      0 frames
[IPU1-0]   6673.380985 s:
[IPU1-0]   6673.381046 s:  ##### DSS DISPC Underflow Count  =      0 #####
[IPU1-0]   6673.381107 s:
[IPU1-0]   6673.381626 s:
[IPU1-0]   6673.381717 s:  [ DISPLAY ] Link Statistics,
[IPU1-0]   6673.381778 s:  ******************************
[IPU1-0]   6673.382053 s:
[IPU1-0]   6673.382114 s:  Elapsed time       = 1326217 msec
[IPU1-0]   6673.382205 s:
[IPU1-0]   6673.382236 s:  Driver/Notify Cb   =  59.62 fps
[IPU1-0]   6673.382327 s:
[IPU1-0]   6673.382358 s:  Input Statistics,
[IPU1-0]   6673.382419 s:
[IPU1-0]   6673.382449 s:  CH | In Recv | In Drop | In User Drop | In Process
[IPU1-0]   6673.382541 s:     | FPS     | FPS     | FPS          | FPS
[IPU1-0]   6673.382632 s:  --------------------------------------------------
[IPU1-0]   6673.382754 s:
[IPU1-0]   6673.382815 s:  [ DISPLAY ] LATENCY,
[IPU1-0]   6673.382876 s:  ********************
[IPU1-0]   6673.382937 s:
[IPU1-0]   6673.382998 s:
[IPU1-0]   6673.383059 s:  [ DISPLAY GRPX1 ] Additional Statistics,
[IPU1-0]   6673.383364 s:  ************************************
[IPU1-0]   6673.383456 s:  Driver Queued    =      1 frames
[IPU1-0]   6673.383517 s:  Driver De-Queued =      0 frames
[IPU1-0]   6673.383578 s:  Driver Displayed = 108471 frames
[IPU1-0]   6673.383700 s:  Driver Repeated  = 108471 frames
[IPU1-0]   6673.383761 s:
[IPU1-0]   6673.383822 s:  ##### DSS DISPC Underflow Count  =      0 #####
[IPU1-0]   6673.383883 s:
[IPU1-0]   6673.618495 s:  SIMCOP inBufDrop chId = 0, t_diff = 2281 ms
[IPU1-0]   6673.883700 s:

  • Even if I disable LDC (set chainsObj.bypassLdc) those drops occur. So it is a ISP problem then?

    Regards,
    Tobias
  • Hi Tobias,

    I see in the code that input buffer drop comes only when simcop is running out of output buffers, which means, in your usecase, display is not returning frames back in time. At what fps display is running? Are there fps mismatch between capture and display? You could try increasing simcop output buffer by 1 and see if it works.. 

    Rgds,

    Brijesh

  • Hi Brijesh,

    Increasing the Simcop buffer didn't really help. It just increased the time until the first frame drop appeared, after that they occured every 2.28 s as well.

    BUT your hint with display fps led me to the error: the display itself was running at only 59.6 fps. We are using a custom display with our ECU here and it's pixelClock was set too low. After increasing the clock the display is now running with full 60 fps and the drops practically disappear.

    So it seems to be a sync problem between capture and display, as you assumed. I will now try to align these to frame rates and minimize the frame errors as good as possible. Thanks for you help!

    Regards,

    Tobias