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.

Function: int OSA_semWait(OSA_SemHndl *hndl, Uint32 timeout) run dead



I meet the issue as subject. When i use thread of VcapVencVdecVdis_ipcBitsRecvFxn,the function OSA_semWait() run dead after unfirmly time.

The longest time is 15miniutes,and the shorted time only several seconds. why this issue happen?

Now i copy the code under:

OSA_semWait(&thrObj->bitsInNotifySem,OSA_TIMEOUT_FOREVER);

int OSA_semWait(OSA_SemHndl *hndl, Uint32 timeout)
{
  int status = OSA_EFAIL;

  pthread_mutex_lock(&hndl->lock);
 
  while(1)
 {
     if(hndl->count > 0)
   {
       hndl->count--;
       status = OSA_SOK;
       break;
     }
  else
     {
       if(timeout==OSA_TIMEOUT_NONE)
         break;
       pthread_cond_wait(&hndl->cond, &hndl->lock);
     }
   }

  pthread_mutex_unlock(&hndl->lock);

  return status;
}

  • Hello,

    I can not find the OSA_semWait() function definition or declaration in the EZSDK. Can you provide more details, as what software package (SDK) you are using? What device, is it DM816x?

    Regards,

    Pavel

  • What does " run dead " mean. Does A8 crash or is this semaphore not getting posted ? If semaphore is not getting posted it means encoded frames are not being received from mcfw. Pls use Vsys_printDetailedStatistics()  and Vsys_printBufferStatistics API when you see this condition and share the log.

  • I used DVRRDK_02.80.00.10 SDK,TI8168 platform.

    And this function under thread:

       OSA_thrCreate(&thrObj->thrHandleBitsIn,           VcapVencVdecVdis_ipcBitsRecvFxn,
                      MCFW_IPCBITS_RECVFXN_TSK_PRI,
                      MCFW_IPCBITS_RECVFXN_TSK_STACK_SIZE,
                      &gVcapVencVdecVdis_ipcBitsCtrl);

    This thread under my program run after unfirmly time go dead. i print the information in this thread,i found it run to dead in OSA_semWait() function.

     

  • (i monitor 3 thread that print thead information  periodly,but after some times,only two thread have print info output,the thead [host] thread ---RecvFxn---Process Full buffer ..:VcapVencVdecVdis_ipcBitsProcessFullBufs disappeard , and "ENCODE [ 130.2] FPS, DECODE [  62.9] FPS, ENC+DEC [ 193.1] FPS ... in 10.0 secs" is also not run)

    Print info as follows:

     [m3video]  ENCLINK: new targetframerate to set:25000
     [m3video]  ENCLINK: Run time parameters changed 0
     [m3video]  Channel:6 inputframerate:25 targetfps:25

     [host] thread ----sendFxn--MCFW_IPCBITS:VcapVencVdecVdis_ipcBitsSendFxn:INFO: periodic print..
    thread -----------display_process_main------LPW
      ## AVERAGE: ENCODE [ 130.2] FPS, DECODE [  62.9] FPS, ENC+DEC [ 193.1] FPS ... in 10.0 secs,
     [m3vpss ] thread ---------capture link_drvOverflowDetect-------monitor---

     [host] thread ----sendFxn--MCFW_IPCBITS:VcapVencVdecVdis_ipcBitsSendFxn:INFO: periodic print..
    thread -----------display_process_main------LPW
      ## AVERAGE: ENCODE [ 182.3] FPS, DECODE [  88.3] FPS, ENC+DEC [ 270.6] FPS ... in 10.0 secs,

     [host] MCFW_IPCBITS: Callback function:VcapVencVdecVdis_ipcBitsInCbFxn
     [host] thread ---RecvFxn---Process Full buffer ..:VcapVencVdecVdis_ipcBitsProcessFullBufs:..........
     
    ******* fObj->enableFWrite Params*********
      fObj->maxFileSize:733366656
       fObj->fwriteEnableBitMask    :65537
     fObj->enableLayerWrite :0
     fObj->enableLayerWrite :0
    &fullBufList
     [m3vpss ] thread ---------capture link_drvOverflowDetect-------monitor---
    thread -----------display_process_main------LPW
     
     [host] thread ----sendFxn--MCFW_IPCBITS:VcapVencVdecVdis_ipcBitsSendFxn:INFO: periodic print..
     ## AVERAGE: ENCODE [ 181.9] FPS, DECODE [  88.0] FPS, ENC+DEC [ 269.9] FPS ... in 10.0 secs,
    thread -----------display_process_main------LPW
     
     [host] thread ----sendFxn--MCFW_IPCBITS:VcapVencVdecVdis_ipcBitsSendFxn:INFO: periodic print..
    thread -----------display_process_main------LPW
     
     [host] thread ----sendFxn--MCFW_IPCBITS:VcapVencVdecVdis_ipcBitsSendFxn:INFO: periodic print..
    thread -----------display_process_main------LPW
     
     [host] thread ----sendFxn--MCFW_IPCBITS:VcapVencVdecVdis_ipcBitsSendFxn:INFO: periodic print..
    thread -----------display_process_main------LPW
     
     [host] thread ----sendFxn--MCFW_IPCBITS:VcapVencVdecVdis_ipcBitsSendFxn:INFO: periodic print..
    thread -----------display_process_main------LPW
     
     [host] thread ----sendFxn--MCFW_IPCBITS:VcapVencVdecVdis_ipcBitsSendFxn:INFO: periodic print..
    thread -----------display_process_main------LPW
     
     [host] thread ----sendFxn--MCFW_IPCBITS:VcapVencVdecVdis_ipcBitsSendFxn:INFO: periodic print..
    thread -----------display_process_main------LPW

  • It looks like the encoding has stopped. This will cause :VcapVencVdecVdis_ipcBitsInCbFxn to stop getting invoked.

    Encoding can stop due to the following reasons:

    1. Capture has stopped capturing frames

    2. SW or HW assert on VPSS_M3/VIDEO_M3.

    Pls use Vsys_printDetailedStatistics() once the hang condition occurs and share the full log to analyze further

  • I use Vses_printdetailedStatistics() and get the print information as follows:


     ++++++++++Vsys_printDetailedStatistics++++++++start
     [m3vpss ]  17727: SWMS: Start in Progress !!!
     [m3vpss ]  17727: SWMS: Start Done !!!
     [m3vpss ]  17727: SWMS: Start in Progress !!!
     [m3vpss ]  17727: SWMS: Start Done !!!
     [m3vpss ]  17974: CAPTURE: Start in progress !!!
     [m3vpss ]  17974: CAPTURE: Start Done !!!
     [m3vpss ] 
     [m3vpss ]  *** Capture Driver Advanced Statistics ***
     [m3vpss ] 
     [m3vpss ]  VIP Parser Reset Count : 0
     [m3vpss ] 
     [m3vpss ]      |   Total    Even     Odd  Total  Even   Odd  Min /  Max  Min /  Max Dropped Fid Repeat Frame Error Y/C
     [m3vpss ]  CH  |  Fields  Fields  Fields    FPS   FPS   FPS       Width      Height  Fields      Count (Desc Error Y/C)

     [host] MCFW_IPCBITS: Callback function:VcapVencVdecVdis_ipcBitsInCbFxn
     [host] thread ---RecvFxn---Process Full buffer ..:VcapVencVdecVdis_ipcBitsProcessFullBufs:..........
     
    ******* fObj->enableFWrite Params*********
      fObj->maxFileSize:733211008
       fObj->fwriteEnableBitMask    :65537
     fObj->enableLayerWrite :0
     fObj->enableLayerWrite :0
    &fullBufList
     [m3video]  Channel:0 inputframerate:30 targetfps:30
     [m3vpss ]  ------------------------------------------------------------------------------------------------------------
     [m3video]  Channel:1 inputframerate:30 targetfps:30
     [m3vpss ] 
     [m3video]  Channel:8 inputframerate:30 targetfps:1
     [m3vpss ]  VIP Capture Port 2 | DescMissMatch1 = 0, DescMissMatch2 = 0 , DescMissMatch3 = 0
     [m3vpss ] 
     [m3video]  Channel:9 inputframerate:30 targetfps:1
     [m3vpss ]  *** Capture List Manager Advanced Statistics ***
     [m3video]  Channel:2 inputframerate:30 targetfps:30
     [m3vpss ] 
     [m3video]  Channel:3 inputframerate:30 targetfps:30
     [m3vpss ]  List Post Count        : 1
     [m3video]  Channel:4 inputframerate:30 targetfps:30
     [m3vpss ]  List Stall Count       : 0
     [m3video]  Channel:10 inputframerate:30 targetfps:1
     [m3vpss ]  List Post Time (ms)    : Max = 0, Min = 0, Avg = 0, Total = 0
     [m3video]  Channel:11 inputframerate:30 targetfps:1
     [m3vpss ]  INTC Timeout Count     : (0, 0) (Min timeout value = 987, 1000)
     [m3video]  Channel:5 inputframerate:30 targetfps:30
     [m3vpss ]  Descriptor miss found count : 0
     [m3video]  Channel:6 inputframerate:30 targetfps:30
     [m3vpss ] 
     [m3video]  Channel:7 inputframerate:30 targetfps:30
     [m3vpss ] 
     [m3vpss ]  VIP and VPDMA registers,
     [m3vpss ]  VIP0 : FIQ_STATUS  : 0x4810551c = 0x00000000
     [m3vpss ]  VIP1 : FIQ_STATUS  : 0x48105a1c = 0x00000000
     [m3vpss ]  VPDMA: LIST_BUSY   : 0x4810d00c = 0x00460000
     [m3vpss ] 
     [m3vpss ] 
     [m3vpss ]  18084: CAPTURE: Fields = 0 (fps = 0, CPU Load = 0)
     [m3vpss ]  18084: CAPTURE: Num Resets = 0 (Avg 0 ms per reset)
     [m3vpss ]  18084: SYSTEM  : FREE SPACE : System Heap      = 5616 B, Mbx = 10238 msgs)
     [m3vpss ]  18084: SYSTEM  : FREE SPACE : SR0 Heap         = 12022272 B (11 MB)
     [m3vpss ]  18084: SYSTEM  : FREE SPACE : Frame Buffer     = 137634688 B (131 MB)
     [m3vpss ]  18084: SYSTEM  : FREE SPACE : Bitstream Buffer = 195076480 B (186 MB)
     [m3vpss ]  18085: SYSTEM  : FREE SPACE : Tiler 8-bit      = 85458944 B (81 MB)  - TILER ON
     [m3vpss ]  18085: SYSTEM  : FREE SPACE : Tiler 16-bit     = 104333312 B (99 MB)  - TILER ON
     [m3vpss ] 
     [m3vpss ]  *** [NSF0] NSF Statistics ***
     [m3vpss ] 
     [m3vpss ]  Elasped Time           : 1 secs
     [m3vpss ]  Total Fields Processed : 0
     [m3vpss ]  Total Fields FPS       : 0 FPS
     [m3vpss ] 
     [m3vpss ] 
     [m3vpss ]  CH  | In Recv In Reject In Process Out User Out
     [m3vpss ]  Num | FPS     FPS       FPS        FPS Skip FPS
     [m3vpss ]  ------------------------------------------------
     [m3vpss ]    0 |       0         0          0   0        0
     [m3vpss ]    1 |       0         0          0   0        0
     [m3vpss ]    2 |       0         0          0   0        0
     [m3vpss ]    3 |       0         0          0   0        0
     [m3vpss ] 
     [m3vpss ] 
     [m3vpss ]  *** [NSF1] NSF Statistics ***
     [m3vpss ] 
     [m3vpss ]  Elasped Time           : 1 secs
     [m3vpss ]  Total Fields Processed : 0
     [m3vpss ]  Total Fields FPS       : 0 FPS
     [m3vpss ] 
     [m3vpss ] 
     [m3vpss ]  CH  | In Recv In Reject In Process Out User Out
     [m3vpss ]  Num | FPS     FPS       FPS        FPS Skip FPS
     [m3vpss ]  ------------------------------------------------
     [m3vpss ]    0 |       0         0          0   0        0
     [m3vpss ]    1 |       0         0          0   0        0
     [m3vpss ]    2 |       0         0          0   0        0
     [m3vpss ]    3 |       0         0          0   0        0
     [m3vpss ] 
     [m3vpss ] 
     [m3vpss ]  *** [DEI2    ] DEI Statistics ***
     [m3vpss ] 
     [m3vpss ]  Elasped Time           : 3 secs
     [m3vpss ]  Total Fields Processed : 232
     [m3vpss ]  Total Fields FPS       : 725 FPS
     [m3vpss ] 
     [m3vpss ] 
     [m3vpss ]  CH  | In Recv In Reject In Process Out[0] Out[1] Out[2] Skip Out[0] Skip Out[1] Skip Out[2] User Out[0] User Out[1] User Out[2] Latency  
     [m3vpss ]  Num | FPS     FPS       FPS        FPS    FPS    FPS        FPS         FPS         FPS       Skip FPS    Skip FPS    Skip FPS  Min / Max
     [m3vpss ]  ------------------------------------------------------------------------------------------------------------------------------------------
     [m3vpss ]    0 |      39         0         38     38     19     19           0           0           0           0           0           0   2 /   9
     [m3vpss ]    1 |      31        21         10     10      5      5           0           0           0           0           0           0   2 /   9
     [m3vpss ]    2 |      30        12         17     17      9      8           0           0           0           0           0           0   4 /   9
     [m3vpss ]    3 |      21        10         11     11      5      5           0           0           0           0           0           0   4 /   9
     [m3vpss ] 
     [m3vpss ] 
     [m3vpss ]  *** [SWMS0] Mosaic Statistics ***
     [m3vpss ] 
     [m3vpss ]  Elasped Time: 2 secs
     [m3vpss ] 
     [m3vpss ]  Output Request FPS   : 35 fps (71 frames)
     [m3vpss ]  Output Actual  FPS   : 35 fps (71 frames)
     [m3vpss ]  Output Drop    FPS   : 0 fps (0 frames)
     [m3vpss ]  Output Reject  FPS   : 0 fps (0 frames)
     [m3vpss ]  Scaling Internal     : 31 ms
     [m3vpss ]  Scaling Internal min : 32 ms
     [m3vpss ]  Scaling Internal max : 33 ms
     [m3vpss ] 
     [m3vpss ]  Win | Window Repeat Drop Recv Que  FID Invlid Acc Event          Invalid   Que Reject Reject Latency 
     [m3vpss ]  Num | FPS    FPS    FPS  FPS  FPS  FPS        Count (Max/Min)    CH Frames Frames     Frames Min / Max
     [m3vpss ]  ------------------------------------------------------------------------------------------------------
     [m3vpss ]    0 |     30      5   26   32   30          0       13 (  5/  5)         0          0      0  13 /  77
     [m3vpss ]    1 |     30     22    2    2   13          0        1 (  5/  5)         0          0      0  13 / 525
     [m3vpss ]    2 |     30     10    0    0   25          0        0 (  0/255)         0          0      0  13 / 157
     [m3vpss ]    3 |     30     19    0    0   16          0        0 (  0/255)         0          0      0  13 / 333
     [m3vpss ]    4 |     30      7    0    0   28          0        0 (  0/255)         0          0      0  45 /  93
     [m3vpss ]    5 |     30     28    0    0    7          0        0 (  0/255)         0          0      0  45 / 589
     [m3vpss ]    6 |     30     23    0    0   12          0        0 (  0/255)         0          0      0  29 / 221
     [m3vpss ]    7 |     30     27    0    0    8          0        0 (  0/255)         0          0      0  29 / 397
     [m3vpss ]    8 |      0      0    0    0    0          0        0 (  0/255)         0          0      0 255 /   0
     [m3vpss ]    9 |      0      0    0    0    0          0        0 (  0/255)         0          0      0 255 /   0
     [m3vpss ]   10 |      0      0    0    0    0          0        0 (  0/255)         0          0      0 255 /   0
     [m3vpss ]   11 |      0      0    0    0    0          0        0 (  0/255)         0          0      0 255 /   0
     [m3vpss ]   12 |      0      0    0    0    0          0        0 (  0/255)         0          0      0 255 /   0
     [m3vpss ]   13 |      0      0    0    0    0          0        0 (  0/255)         0          0      0 255 /   0
     [m3vpss ]   14 |      0      0    0    0    0          0        0 (  0/255)         0          0      0 255 /   0
     [m3vpss ]   15 |      0      0    0    0    0          0        0 (  0/255)         0          0      0 255 /   0
     [m3vpss ] 
     [m3vpss ] 
     [m3vpss ]  *** [SWMS0] Mosaic Parameters ***
     [m3vpss ] 
     [m3vpss ]  Output FPS: 29
     [m3vpss ] 
     [m3vpss ]  Win | Ch  | Input      | Input          | Input         | Input       | Output     |  Output         | Output        | Output      | Low Cost | SWMS | Data  |
     [m3vpss ]  Num | Num | Start X, Y | Width x Height | Pitch Y / C   | Memory Type | Start X, Y |  Width x Height | Pitch Y / C   | Memory Type | ON / OFF | Inst | Format|
     [m3vpss ]  --------------------------------------------------------------------------------------------------------------------------------------------------------------
     [m3vpss ]    0 |   0 |    0,    0 |   704 x    240 |  2816 /  2816 | NON-TILED   |    0,    0 |   480 x    270 |  3840 /      0 | NON-TILED   |      ON  |    0 |  422I  |
     [m3vpss ]    1 |   1 |    0,    0 |   704 x    240 |  2816 /  2816 | NON-TILED   |  480,    0 |   480 x    270 |  3840 /      0 | NON-TILED   |      ON  |    0 |  422I  |
     [m3vpss ]    2 |   2 |    0,    0 |   704 x    240 |  2816 /  2816 | NON-TILED   |  960,    0 |   480 x    270 |  3840 /      0 | NON-TILED   |      ON  |    0 |  422I  |
     [m3vpss ]    3 |   3 |    0,    0 |   704 x    240 |  2816 /  2816 | NON-TILED   | 1440,    0 |   480 x    270 |  3840 /      0 | NON-TILED   |      ON  |    0 |  422I  |
     [m3vpss ]    4 |   4 |    0,    0 |   704 x    480 | 16384 / 32768 | TILED       |    0,  270 |   480 x    270 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |
     [m3vpss ]    5 |   5 |    0,    0 |   704 x    480 | 16384 / 32768 | TILED       |  480,  270 |   480 x    270 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |
     [m3vpss ]    6 |   6 |    0,    0 |   704 x    480 | 16384 / 32768 | TILED       |  960,  270 |   480 x    270 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |
     [m3vpss ]    7 |   7 |    0,    0 |   704 x    480 | 16384 / 32768 | TILED       | 1440,  270 |   480 x    270 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |
     [m3vpss ]    8 | 255 |    0,    0 |   320 x    240 |  1408 /  1408 | NON-TILED   |    0,  540 |   480 x    270 |  3840 /      0 | NON-TILED   |      ON  |    0 |  422I  |
     [m3vpss ]    9 | 255 |    0,    0 |   320 x    240 |  1408 /  1408 | NON-TILED   |  480,  540 |   480 x    270 |  3840 /      0 | NON-TILED   |      ON  |    0 |  422I  |
     [m3vpss ]   10 | 255 |    0,    0 |   320 x    240 |  1408 /  1408 | NON-TILED   |  960,  540 |   480 x    270 |  3840 /      0 | NON-TILED   |      ON  |    0 |  422I  |
     [m3vpss ]   11 | 255 |    0,    0 |   320 x    240 |  1408 /  1408 | NON-TILED   | 1440,  540 |   480 x    270 |  3840 /      0 | NON-TILED   |      ON  |    0 |  422I  |
     [m3vpss ]   12 | 255 |    0,    0 |   320 x    240 |  1408 /  1408 | NON-TILED   |    0,  810 |   480 x    270 |  3840 /      0 | NON-TILED   |      ON  |    0 |  422I  |
     [m3vpss ]   13 | 255 |    0,    0 |   320 x    240 |  1408 /  1408 | NON-TILED   |  480,  810 |   480 x    270 |  3840 /      0 | NON-TILED   |      ON  |    0 |  422I  |
     [m3vpss ]   14 | 255 |    0,    0 |   320 x    240 |  1408 /  1408 | NON-TILED   |  960,  810 |   480 x    270 |  3840 /      0 | NON-TILED   |      ON  |    0 |  422I  |
     [m3vpss ]   15 | 255 |    0,    0 |   320 x    240 |  1408 /  1408 | NON-TILED   | 1440,  810 |   480 x    270 |  3840 /      0 | NON-TILED   |      ON  |    0 |  422I  |
     [m3vpss ] 
     [m3vpss ] 
     [m3vpss ] 
     [m3vpss ]  *** [SWMS1] Mosaic Statistics ***
     [m3vpss ] 
     [m3vpss ]  Elasped Time: 2 secs
     [m3vpss ] 
     [m3vpss ]  Output Request FPS   : 36 fps (72 frames)
     [m3vpss ]  Output Actual  FPS   : 36 fps (72 frames)
     [m3vpss ]  Output Drop    FPS   : 0 fps (0 frames)
     [m3vpss ]  Output Reject  FPS   : 0 fps (0 frames)
     [m3vpss ]  Scaling Internal     : 31 ms
     [m3vpss ]  Scaling Internal min : 31 ms
     [m3vpss ]  Scaling Internal max : 36 ms
     [m3vpss ] 
     [m3vpss ]  Win | Window Repeat Drop Recv Que  FID Invlid Acc Event          Invalid   Que Reject Reject Latency 
     [m3vpss ]  Num | FPS    FPS    FPS  FPS  FPS  FPS        Count (Max/Min)    CH Frames Frames     Frames Min / Max
     [m3vpss ]  ------------------------------------------------------------------------------------------------------
     [m3vpss ]    0 |     31      5   26   32   31          0       13 (  5/  5)         0          0      0  13 /  77
     [m3vpss ]    1 |     31     22    2    2   13          0        1 (  5/  5)         0          0      0  13 / 525
     [m3vpss ]    2 |     30     10    0    0   26          0        0 (  0/255)         0          0      0  13 / 157
     [m3vpss ]    3 |     30     19    0    0   16          0        0 (  0/255)         0          0      0  13 / 333
     [m3vpss ]    4 |     30      7    0    0   28          0        0 (  0/255)         0          0      0  45 /  93
     [m3vpss ]    5 |     30     28    0    0    8          0        0 (  0/255)         0          0      0  45 / 589
     [m3vpss ]    6 |     30     23    0    0   13          0        0 (  0/255)         0          0      0  30 / 221
     [m3vpss ]    7 |     30     27    0    0    8          0        0 (  0/255)         0          0      0  30 / 397
     [m3vpss ] 
     [m3vpss ] 
     [m3vpss ]  *** [SWMS1] Mosaic Parameters ***
     [m3vpss ] 
     [m3vpss ]  Output FPS: 29
     [m3vpss ] 
     [m3vpss ]  Win | Ch  | Input      | Input          | Input         | Input       | Output     |  Output         | Output        | Output      | Low Cost | SWMS | Data  |
     [m3vpss ]  Num | Num | Start X, Y | Width x Height | Pitch Y / C   | Memory Type | Start X, Y |  Width x Height | Pitch Y / C   | Memory Type | ON / OFF | Inst | Format|
     [m3vpss ]  --------------------------------------------------------------------------------------------------------------------------------------------------------------
     [m3vpss ]    0 |   0 |    0,    0 |   704 x    480 |  1408 /  1408 | NON-TILED   |    0,    0 |   528 x    360 |  1472 /      0 | NON-TILED   |      OFF |    0 |  422I  |
     [m3vpss ]    1 |   1 |    0,    0 |   704 x    240 |  2816 /  2816 | NON-TILED   |  528,    0 |   192 x    120 |  1472 /      0 | NON-TILED   |      ON  |    0 |  422I  |
     [m3vpss ]    2 |   2 |    0,    0 |   704 x    240 |  2816 /  2816 | NON-TILED   |  528,  120 |   192 x    120 |  1472 /      0 | NON-TILED   |      ON  |    0 |  422I  |
     [m3vpss ]    3 |   3 |    0,    0 |   704 x    240 |  2816 /  2816 | NON-TILED   |  528,  240 |   192 x    120 |  1472 /      0 | NON-TILED   |      ON  |    0 |  422I  |
     [m3vpss ]    4 |   4 |    0,    0 |   704 x    480 | 16384 / 32768 | TILED       |    0,  360 |   176 x    120 |  1472 /      0 | NON-TILED   |      ON  |    0 |  420SP |
     [m3vpss ]    5 |   5 |    0,    0 |   704 x    480 | 16384 / 32768 | TILED       |  176,  360 |   176 x    120 |  1472 /      0 | NON-TILED   |      ON  |    0 |  420SP |
     [m3vpss ]    6 |   6 |    0,    0 |   704 x    480 | 16384 / 32768 | TILED       |  352,  360 |   176 x    120 |  1472 /      0 | NON-TILED   |      ON  |    0 |  420SP |
     [m3vpss ]    7 |   7 |    0,    0 |   704 x    480 | 16384 / 32768 | TILED       |  528,  360 |   176 x    120 |  1472 /      0 | NON-TILED   |      ON  |    0 |  420SP |
     [m3vpss ] 
     [m3vpss ] 
     [m3vpss ]  20115: DISPLAY: HDDAC(BP0) : 59 fps, Latency (Min / Max) = ( 13 / 37 ), Callback Interval (Min / Max) = ( 16 / 17 ) !!!
     [m3vpss ]  20116: DISPLAY: UNDERFLOW COUNT: HDMI(BP0) 146, HDDAC(BP0) 275, DVO2(BP1) 276, SDDAC(SEC1) 149
     [m3vpss ]  20116: SYSTEM  : FREE SPACE : System Heap      = 5616 B, Mbx = 10239 msgs)
     [m3vpss ]  20116: SYSTEM  : FREE SPACE : SR0 Heap         = 12022272 B (11 MB)
     [m3vpss ]  20116: SYSTEM  : FREE SPACE : Frame Buffer     = 137634688 B (131 MB)
     [m3vpss ]  20116: SYSTEM  : FREE SPACE : Bitstream Buffer = 195076480 B (186 MB)
     [m3vpss ]  20116: SYSTEM  : FREE SPACE : Tiler 8-bit      = 85458944 B (81 MB)  - TILER ON
     [m3vpss ]  20116: SYSTEM  : FREE SPACE : Tiler 16-bit     = 104333312 B (99 MB)  - TILER ON
     [m3vpss ]  20117: DISPLAY: SDDAC(SEC1): 29 fps, Latency (Min / Max) = ( 9 / 41 ), Callback Interval (Min / Max) = ( 33 / 34 ) !!!
     [m3vpss ] 
     [m3vpss ]  *** IpcFramesOutRTOS Statistics ***
     [m3vpss ] 
     [m3vpss ]  Elasped Time           : 3 secs
     [m3vpss ]  Total Fields Processed : 244
     [m3vpss ]  Total Fields FPS       : 81 FPS
     [m3vpss ] 
     [m3vpss ] 
     [m3vpss ]  CH  | In Recv In Process In Skip
     [m3vpss ]  Num | FPS     FPS        FPS   
     [m3vpss ]  --------------------------------
     [m3vpss ]    0 |      19         19       0
     [m3vpss ]    1 |       5          5       0
     [m3vpss ]    2 |       9          9       0
     [m3vpss ]    3 |       5          5       0
     [m3vpss ]    4 |      19         19       0
     [m3vpss ]    5 |       5          5       0
     [m3vpss ]    6 |       9          9       0
     [m3vpss ]    7 |       5          5       0
     [m3vpss ]    8 |       1          1       0
     [m3vpss ]    9 |       0          0       0
     [m3vpss ]   10 |       0          0       0
     [m3vpss ]   11 |       0          0       0
     [m3vpss ] 
     [c6xdsp ] 
     [c6xdsp ]  *** SCD Statistics ***
     [c6xdsp ] 
     [c6xdsp ]  Elasped Time           : 19 secs
     [c6xdsp ]  Total Fields Processed : 0
     [c6xdsp ]  Total Fields FPS       : 0 FPS
     [c6xdsp ] 
     [c6xdsp ] 
     [c6xdsp ]  CH  | In Recv In Process In Skip In Process Time
     [c6xdsp ]  Num | FPS     FPS        FPS     per frame (msec)
     [c6xdsp ]  -------------------------------------------------
     [c6xdsp ] 
     [m3vpss ]  22227: @# CAPTURE: Overflow detected on VIP1, Total Resets = 1
     [m3vpss ]  22234: DEI     : Loading Up-scaling Co-effs
     [m3vpss ]  22234: DEI     : Co-effs Loading ... DONE !!!

     [host] thread ----sendFxn--MCFW_IPCBITS:VcapVencVdecVdis_ipcBitsSendFxn:INFO: periodic print..
     [m3video]      24120: HDVICP-ID:0
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]               totalAcquire2wait :1 %
     [m3video]               totalWait2Isr :28 %
     [m3video]               totalIsr2Done :0 %
     [m3video]               totalWait2Done :28 %
     [m3video]               totalDone2Release :0 %
     [m3video]               totalAcquire2Release :30 %
     [m3video]               totalAcq2acqDelay :69 %
     [m3video]               totalElapsedTime in msec :    5968
     [m3video]               numAccessCnt:    1119
     [m3video]              IVA-FPS :     223
     [m3video]              Average time spent per frame in microsec:    1493
     [m3video]      24120: HDVICP-ID:1
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]               totalAcquire2wait :0 %
     [m3video]               totalWait2Isr :0 %
     [m3video]               totalIsr2Done :0 %
     [m3video]               totalWait2Done :0 %
     [m3video]               totalDone2Release :0 %
     [m3video]               totalAcquire2Release :0 %
     [m3video]               totalAcq2acqDelay :0 %
     [m3video]               totalElapsedTime in msec :       0
     [m3video]               numAccessCnt:       0
     [m3video]              IVA-FPS :       0
     [m3video]              Average time spent per frame in microsec:       0
     [m3video]      24121: HDVICP-ID:2
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]               totalAcquire2wait :0 %
     [m3video]               totalWait2Isr :0 %
     [m3video]               totalIsr2Done :0 %
     [m3video]               totalWait2Done :0 %
     [m3video]               totalDone2Release :0 %
     [m3video]               totalAcquire2Release :0 %
     [m3video]               totalAcq2acqDelay :0 %
     [m3video]               totalElapsedTime in msec :       0
     [m3video]               numAccessCnt:       0
     [m3video]              IVA-FPS :       0
     [m3video]              Average time spent per frame in microsec:       0
     [m3video] 
     [m3video]  *** ENCODE Statistics ***
     [m3video] 
     [m3video]  Elasped Time           : 5 secs
     [m3video] 
     [m3video] 
     [m3video]  CH  | In Recv In Skip In User  Out Latency 
     [m3video]  Num | FPS     FPS     Skip FPS FPS Min / Max
     [m3video]  --------------------------------------------
     [m3video]    0 |      32       0        0  33   6 /  14
     [m3video]    1 |      11       0        0  11  10 /  18
     [m3video]    2 |      14       0        0  14  10 /  18
     [m3video]    3 |       9       0        0   9   6 /  18
     [m3video]    4 |      32       0        0  32   6 /  18
     [m3video]    5 |      10       0        0  11   6 /  18
     [m3video]    6 |      14       0        0  14  10 /  18
     [m3video]    7 |       9       0        0   9   6 /  18
     [m3video]    8 |       2       0        2   0 255 /   0
     [m3video]    9 |       0       0        0   0 255 /   0
     [m3video]   10 |       1       0        1   0 255 /   0
     [m3video]   11 |       0       0        0   0 255 /   0
     [m3video] 
     [m3video] Multi Channel Encode Average Submit Batch Size
     [m3video] Max Submit Batch Size : 24
     [m3video] IVAHD_0 Average Batch Size : 1
     [m3video] IVAHD_0 Max achieved Batch Size : 3
     [m3video] IVAHD_1 Average Batch Size : 0
     [m3video] IVAHD_1 Max achieved Batch Size : 0
     [m3video] IVAHD_2 Average Batch Size : 0
     [m3video] IVAHD_2 Max achieved Batch Size : 0
     [m3video] 
     [m3video] Multi Channel Encode Batch break Stats
     [m3video] Total Number of Batches created: 577
     [m3video] All numbers are based off total number of Batches created
     [m3video]       Batch breaks due to batch sizeexceeding limit: 0 %
     [m3video]       Batch breaks due to ReqObj Que being empty: 100 %
     [m3video]       Batch breaks due to changed resolution class: 0 %
     [m3video]       Batch breaks due to interlace and progressivecontent mix: 0 %
     [m3video]       Batch breaks due to channel repeat: 0 %
     [m3video]       Batch breaks due to different codec: 0 %
     [m3video] Total Number of Batches created: 0
     [m3video] All numbers are based off total number of Batches created
     [m3video]       Batch breaks due to batch sizeexceeding limit: 0 %
     [m3video]       Batch breaks due to ReqObj Que being empty: 0 %
     [m3video]       Batch breaks due to changed resolution class: 0 %
     [m3video]       Batch breaks due to interlace and progressivecontent mix: 0 %
     [m3video]       Batch breaks due to channel repeat: 0 %
     [m3video]       Batch breaks due to different codec: 0 %
     [m3video] Total Number of Batches created: 0
     [m3video] All numbers are based off total number of Batches created
     [m3video]       Batch breaks due to batch sizeexceeding limit: 0 %
     [m3video]       Batch breaks due to ReqObj Que being empty: 0 %
     [m3video]       Batch breaks due to changed resolution class: 0 %
     [m3video]       Batch breaks due to interlace and progressivecontent mix: 0 %
     [m3video]       Batch breaks due to channel repeat: 0 %
     [m3video]       Batch breaks due to different codec: 0 %
     [m3video] 
     [m3video]  *** DECODE Statistics ***
     [m3video] 
     [m3video]  Elasped Time           : 5 secs
     [m3video] 
     [m3video] 
     [m3video]  CH  | In Recv In User  Out
     [m3video]  Num | FPS     Skip FPS FPS
     [m3video]  -----------------------------------
     [m3video]    0 |      33        0  33
     [m3video]    1 |      11        0  11
     [m3video]    2 |      15        0  15
     [m3video]    3 |       9        0   9
     [m3video] 
     [m3video] Multi Channel Decode Average Submit Batch Size
     [m3video] Max Submit Batch Size : 24
     [m3video] IVAHD_0 Average Batch Size : 1
     [m3video] IVAHD_0 Max achieved Batch Size : 3
     [m3video] IVAHD_1 Average Batch Size : 0
     [m3video] IVAHD_1 Max achieved Batch Size : 0
     [m3video] IVAHD_2 Average Batch Size : 0
     [m3video] IVAHD_2 Max achieved Batch Size : 0
     [m3video] 
     [m3video] Multi Channel Decode Batch break Stats
     [m3video] Total Number of Batches created: 337
     [m3video] All numbers are based off total number of Batches created
     [m3video]       Batch breaks due to batch sizeexceeding limit: 0 %
     [m3video]       Batch breaks due to ReqObj Que being empty: 100 %
     [m3video]       Batch breaks due to changed resolution class: 0 %
     [m3video]       Batch breaks due to interlace and progressivecontent mix: 0 %
     [m3video]       Batch breaks due to channel repeat: 0 %
     [m3video]       Batch breaks due to different codec: 0 %
     [m3video] Total Number of Batches created: 0
     [m3video] All numbers are based off total number of Batches created
     [m3video]       Batch breaks due to batch sizeexceeding limit: 0 %
     [m3video]       Batch breaks due to ReqObj Que being empty: 0 %
     [m3video]       Batch breaks due to changed resolution class: 0 %
     [m3video]       Batch breaks due to interlace and progressivecontent mix: 0 %
     [m3video]       Batch breaks due to channel repeat: 0 %
     [m3video]       Batch breaks due to different codec: 0 %
     [m3video] Total Number of Batches created: 0
     [m3video] All numbers are based off total number of Batches created
     [m3video]       Batch breaks due to batch sizeexceeding limit: 0 %
     [m3video]       Batch breaks due to ReqObj Que being empty: 0 %
     [m3video]       Batch breaks due to changed resolution class: 0 %
     [m3video]       Batch breaks due to interlace and progressivecontent mix: 0 %
     [m3video]       Batch breaks due to channel repeat: 0 %
     [m3video]       Batch breaks due to different codec: 0 %
     [m3video] 
     ## AVERAGE: ENCODE [  89.1] FPS, DECODE [  44.4] FPS, ENC+DEC [ 133.5] FPS ... in 10.0 secs,
     [m3vpss ] 
     [m3vpss ]  26129: LOAD: CPU: 15.7% HWI: 2.8%, SWI:1.5%
     [m3vpss ] 
     [m3vpss ]  26129: LOAD: TSK: IPC_OUT_M30         : 0.7%
     [m3vpss ]  26129: LOAD: TSK: IPC_IN_M30          : 0.3%
     [m3vpss ]  26129: LOAD: TSK: IPC_FRAMES_OUT0     : 0.9%
     [m3vpss ]  26129: LOAD: TSK: CAPTURE             : 0.5%
     [m3vpss ]  26130: LOAD: TSK: NSF0                : 0.2%
     [m3vpss ]  26130: LOAD: TSK: NSF1                : 0.8%
     [m3vpss ]  26130: LOAD: TSK: DEI2                : 1.8%
     [m3vpss ]  26130: LOAD: TSK: DISPLAY0            : 0.3%
     [m3vpss ]  26130: LOAD: TSK: DISPLAY2            : 0.1%
     [m3vpss ]  26130: LOAD: TSK: DUP0                : 0.3%
     [m3vpss ]  26130: LOAD: TSK: DUP1                : 0.4%
     [m3vpss ]  26130: LOAD: TSK: SWMS0               : 1.4%
     [m3vpss ]  26130: LOAD: TSK: SWMS1               : 1.3%
     [m3vpss ]  26130: LOAD: TSK: MERGE0              : 0.2%
     [m3vpss ]  26131: LOAD: TSK: MERGE1              : 0.1%
     [m3vpss ]  26131: LOAD: TSK: MISC                : 2.1%
     [m3vpss ] 
     [m3video] 
     [m3video]  26632: LOAD: CPU: 11.0% HWI: 1.0%, SWI:1.2%
     [m3video] 
     [m3video]  26632: LOAD: TSK: IPC_OUT_M30         : 0.4%
     [m3video]  26632: LOAD: TSK: IPC_IN_M30          : 0.3%
     [m3video]  26632: LOAD: TSK: IPC_BITS_IN0        : 0.2%
     [m3video]  26632: LOAD: TSK: IPC_BITS_OUT0       : 0.7%
     [m3video]  26632: LOAD: TSK: ENC0                : 1.4%
     [m3video]  26632: LOAD: TSK: DEC0                : 1.0%
     [m3video]  26632: LOAD: TSK: ENC_PROCESS_TSK_0   : 2.7%
     [m3video]  26633: LOAD: TSK: DEC_PROCESS_TSK_0   : 1.5%
     [m3video]  26633: LOAD: TSK: MISC                : 0.6%
     [m3video] 
     [c6xdsp ] 
     [c6xdsp ]  24993: LOAD: CPU: 0.5% HWI: 0.1%, SWI:0.0%
     [c6xdsp ] 
     [c6xdsp ]  24993: LOAD: TSK: IPC_FRAMES_IN0      : 0.1%
     [c6xdsp ]  24993: LOAD: TSK: ALG0                : 0.1%
     [c6xdsp ]  24993: LOAD: TSK: MISC                : 0.2%
     [c6xdsp ] 

     [host] thread ----sendFxn--MCFW_IPCBITS:VcapVencVdecVdis_ipcBitsSendFxn:INFO: periodic print..
    thread -----------display_process_main------LPW

  • Are these logs after the hang occured ? I understand you are monitoring the threads for hang. If you detect the VcapVencVdecVdis_ipcBitsRecvFxn not getting invoked for more than 10 seconds then invoke Vsys_printDetailedStatistics. From the log above it looks like capture is not working at all since the number of fields captured shows as zero.

    Are you using PG 1.1 netra silicon . Did you encounter any VIP reset when you start playback. Capture can stop if VIP is locked up.

  • Yes, I using PG 1.1 silicon. Our company have a client ,he said that he used the PG 1.1 silicon Version'product many years, no overflow issue. May be  my param is not rignt then cause this issue. Our company  use PG 2.0 and higher Version now, but the product become useable need wait a lots of time.

    This time,I use function Vsys_printDetailedStatistics() after function  VcapVencVdecVdis_ipcBitsProcessFullBufs() run 5000 times. And get the print information as attachment.

    I save it to file and all the print info in it.

    you said "the number of fields captured shows as zero".    Where i can find it?

    3223.LP printInfo.pdf

     

  • The log shows a number of VIP reset happening on VIP PORT 1. Also there are a number of capture descriptor errors seen. Are you using TVP 5158 decoder ? Can yu check the signal strength of the channels connected to VIP PORT 0 and VIP PORT 1. Weak signal can cause VIP reset to occur.

  • I use default encoder and decorder, The signal strength i'm sure it is stable and usable. When there are no vedio signal  input, run program this issue also repeated.

    Is there some relevance with "EnableWrite",When i DisableWirte,It looks like some better.

  • EnableWrite enables writing of bitstream. What is the file write path ? Is it SATA or Network drive ? I dont see how enablign write affects VIP cpature unless you are enabling write to SATA HDD and SATA signal is interfering with the capture signal integrity on the board

  • Most common causes for VIP reset occuring are usually weak signal , wrong clock polarity or very high DDR b/w.We can rule out DDR b/w in this case. If you have confirmed it is not weak signal issue try checking if inverting clock polarity to VIP capture input helps.I understand you are using TVP 5158 on the board right ? Also you are seeing this issue on your board and not UD DVR correct ?