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.

DM816x Decoder Problem

Hi.

Recently, I posted some dei related question. (http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/250974.aspx)

After applying the posted modification to my RDK, I can decode with tiler enabled.

But, if i enable the tiler in decLink, decoder hangs in 2~3 hours

and prints "IPCBITSOUT:!!!WARNING.!!! NO FREE BUF AVAILABLE. OCCURENCE COUNT" continuously.

And, if tiler is disabled, the problem seems to disappear.

I think that this problem comes from revision change.

When I use DM8168 rev1.1 with DVRRDK 2.00.00.23, all are OK.

But, using DM8167 rev2.0, this problem occurred with all RDK.( RDK2.00.00.23, RDK3.00.00.00. RDK3.50.00.05 )

I'm using DVRRDK 3.50.00.05, DM8167 rev2.0, 1GB DDR2(not DDR3) Memory with 256MB linux mem.

 

  • Pls share the full console logs when you see the issue. I want to check if any exception is reported on M3. Pls confirm you are using uboot from RDK 3.5 . If you dont use tiler do you not see the issue ? Do you have DMM interleaving enabled.Have you run memory stress test for long duration on your board ?

  • Badri Narayanan said:
    Pls share the full console logs when you see the issue

    There's no any exceptional message when this issue occurred. Exactly, no other message is printed except "NO FREE BUF AVAILABLE".

    Badri Narayanan said:
    Pls confirm you are using uboot from RDK 3.5.

    My u-boot is from RDK 1.06. I'll check again with u-boot from RDK3.5.

    Badri Narayanan said:
    If you dont use tiler do you not see the issue ?

    I tested for 24 hours without tiler, and couldn't see the issue. After applying your modification from previous post, I can test with tiler enabled.

    But this issue occurred twice in 2~3 hours. So, again I disabled tiler, and for 12 hours there was no issue.

    Badri Narayanan said:
    Do you have DMM interleaving enabled.

    How can I check DMM interleaving enabled?

    Badri Narayanan said:
    Have you run memory stress test for long duration on your board ?

    I think my board's memory stress test is enough, because i tested  for months without any problem.(DM8168 rev1.1 board)

     

     

  • Are you running remote_debug_client when you run the application. Exception msgs will be rpinted only if remote_debug_client is run.If you use uboot from RDK 3.5 without modifications it will have DMM interleaved.

  • Yes. I'm running remote_debug_client. All debug related define is enabled SYSTEM_DEBUG_DEC/SYSTEM_DEBUG_ENC etc..

    Also, any other exception messages are printed.

    Only in this case, no other message is printed.

    This is normal stop progress message.(Some encoder channel is disabled for now)

     

    [host] CHAINS_IPCBITS:Chains_ipcBitsRecvFxn:Leaving...

     [host] CHAINS_IPCBITS:Chains_ipcBitsSendFxn:Leaving...
     [m3video]  42166: DECODE: Stop in progress !!!
     [m3video]  42173: DECODE: Stop Done !!!
     [m3vpss ]  42182: DEI    : Stop in progress, 0 requests pending !!!
     [m3vpss ]  42182: DEI    : Stop Done !!!

     [host] 14243: IPCBITSIN:Link[3000001a]:
     [host] RECV:6360       FREE:6351,DROPPED:0,AVGLATENCY:0,AVG_APP_CB_TIME:1
     [host]  14243: IPC_BITS_IN   : Delete in progress !!!

     [host]  14244: IPC_BITS_IN   : Delete Done !!!
     [m3vpss ]  42191: DEI    : Stop in progress, 0 requests pending !!!
     [m3video]  42192: ENCODE: CH-1:
     [m3video] Stop in progress !!!
     [m3vpss ]  42191: DEI    : Stop Done !!!
     [m3vpss ]  42192: DEI    : Stop in progress, 0 requests pending !!!
     [m3video]  42193: ENCODE: CH-1:
     [m3video] Stop done !!!
     [m3vpss ]  42192: DEI    : Stop Done !!!
     [m3video]  42194: IPC_BITS_OUT   : Delete in progress !!!
     [m3video] 42194: IPCBITSOUT:Link[10000018]:
     [m3video] RECV:6360    FREE:6351,DROPPED:0,AVGLATENCY:1
     [m3video]  42195: PRF : IPC_BITS_OUT0 : t: 93 ms, c: 1745, f: 6360, fps: 68387, fpc: 3
     [m3video]  42195: IPC_BITS_OUT   : Delete Done !!!
     [m3video]  42195: ENCODE: CH-1:
     [m3video] Stop in progress !!!
     [m3video]  42195: ENCODE: CH-1:
     [m3video] Stop done !!!
     [m3video]  42195: ENCODE: CH-1:
     [m3video]  ENC    : Delete in progress !!!
     [m3vpss ]  42239: IPC_OUT_M3   : Delete in progress !!!
     [m3video]  42197: ENCODE: CH0: FrameNum :      253, Processed Frames :      248, Total Process Time :     1495, Total Frame Interval:    12736, Dropped Frames:        0, FPS:       21 (Required FPS:       30)
     [m3vpss ]  42239: IPC_OUT_M3   : Delete Done !!!
     [m3video]  42199: ENCODE: CH1: FrameNum :      402, Processed Frames :      397, Total Process Time :     2430, Total Frame Interval:    13247, Dropped Frames:        0, FPS:       30 (Required FPS:       30)
     [m3vpss ]  42240: MERGE   : Delete Done !!!
     [m3video]  42201: ENCODE: CH2: FrameNum :      405, Processed Frames :      400, Total Process Time :     2792, Total Frame Interval:    13327, Dropped Frames:        0, FPS:       31 (Required FPS:       30)
     [m3vpss ]  42240: NSF    : Fields = 3186 (fps = 4364) !!!
     [m3video]  42203: ENCODE: CH3: FrameNum :        0, Processed Frames :        0, Total Process Time :        0, Total Frame Interval:        0, Dropped Frames:        0, FPS:        0 (Required FPS:       30)
     [m3vpss ]  42240: NSF: Delete in progress !!!
     [m3video]  42204: ENCODE: CH4: FrameNum :      253, Processed Frames :      248, Total Process Time :     2422, Total Frame Interval:    12704, Dropped Frames:        0, FPS:       21 (Required FPS:       30)
     [m3vpss ]  42240: NSF: Delete Done !!!
     [m3video]  42206: ENCODE: CH5: FrameNum :      402, Processed Frames :      397, Total Process Time :     3638, Total Frame Interval:    13263, Dropped Frames:        0, FPS:       30 (Required FPS:       30)
     [m3vpss ]  42241: MERGE   : Delete Done !!!
     [m3video]  42208: ENCODE: CH6: FrameNum :      405, Processed Frames :      400, Total Process Time :     4045, Total Frame Interval:    13327, Dropped Frames:        0, FPS:       31 (Required FPS:       30)
     [m3vpss ]  42241: MERGE   : Delete Done !!!
     [m3video]  42210: ENCODE: CH7: FrameNum :        0, Processed Frames :        0, Total Process Time :        0, Total Frame Interval:        0, Dropped Frames:        0, FPS:        0 (Required FPS:       30)
     [m3vpss ]  42241: DEI    : Fields = 1062 (fps = 252), !!!
     [m3video]  42212: ENCODE: CH8: FrameNum :      253, Processed Frames :      248, Total Process Time :     2664, Total Frame Interval:    12720, Dropped Frames:        0, FPS:       21 (Required FPS:       30)
     [m3vpss ]  42242: DEI    : Delete in progress !!!
     [m3video]  42213: ENCODE: CH9: FrameNum :      402, Processed Frames :      397, Total Process Time :     3537, Total Frame Interval:    13264, Dropped Frames:        0, FPS:       30 (Required FPS:       30)
     [m3vpss ]  42242: DEI    : Delete Done !!!
     [m3video]  42215: ENCODE: CH10: FrameNum :      405, Processed Frames :      400, Total Process Time :     4132, Total Frame Interval:    13311, Dropped Frames:        0, FPS:       31 (Required FPS:       30)
     [m3vpss ]  42242: DEI    : Fields = 1062 (fps = 251), !!!
     [m3video]  42217: ENCODE: CH11: FrameNum :        0, Processed Frames :        0, Total Process Time :        0, Total Frame Interval:        0, Dropped Frames:        0, FPS:        0 (Required FPS:       30)

     [host]  14301: IPC_BITS_OUT   : Delete in progress !!!

     [host]
    14632: IPCBITSOUT:Link[30000018]:
     [host] RECV:1509       FREE:1507,DROPPED:3843,AVGLATENCY:1502
     [host] IPC_BITSOUT:BitBuffer Free.PoolID:0,Size:0x1518000
     [host]  14655: IPC_BITS_OUT   : Delete Done !!!
     [m3vpss ]  42243: DEI    : Delete in progress !!!
     [m3video]  42218: ENCODE: CH12: FrameNum :      253, Processed Frames :      248, Total Process Time :     2794, Total Frame Interval:    12736, Dropped Frames:        0, FPS:       21 (Required FPS:       30)
     [m3vpss ]  42243: DEI    : Delete Done !!!
     [m3video]  42220: ENCODE: CH13: FrameNum :      402, Processed Frames :      397, Total Process Time :     3824, Total Frame Interval:    13247, Dropped Frames:        0, FPS:       30 (Required FPS:       30)
     [m3vpss ]  42244: DEI    : Fields = 1062 (fps = 249), !!!
     [m3video]  42222: ENCODE: CH14: FrameNum :      405, Processed Frames :      400, Total Process Time :     4484, Total Frame Interval:    13327, Dropped Frames:        0, FPS:       31 (Required FPS:       30)
     [m3vpss ]  42244: DEI    : Delete in progress !!!
     [m3video]  42224: ENCODE: CH15: FrameNum :        0, Processed Frames :        0, Total Process Time :        0, Total Frame Interval:        0, Dropped Frames:        0, FPS:        0 (Required FPS:       30)
     [m3vpss ]  42245: DEI    : Delete Done !!!
     [m3video]  42225: ENCODE: CH16: FrameNum :      253, Processed Frames :      248, Total Process Time :     2594, Total Frame Interval:    12720, Dropped Frames:        0, FPS:       21 (Required FPS:       30)
     [m3vpss ]  42245: DUP   : Delete Done !!!
     [m3video]  42227: ENCODE: CH17: FrameNum :      402, Processed Frames :      397, Total Process Time :     3623, Total Frame Interval:    13263, Dropped Frames:        0, FPS:       30 (Required FPS:       30)
     [m3vpss ]  42245: IPC_IN_M3   : Delete in progress !!!
     [m3video]  42229: ENCODE: CH18: FrameNum :      405, Processed Frames :      400, Total Process Time :     4193, Total Frame Interval:    13327, Dropped Frames:        0, FPS:       31 (Required FPS:       30)
     [m3vpss ]  42245: IPC_IN_M3   : Delete Done !!!
     [m3video]  42231: ENCODE: CH19: FrameNum :        0, Processed Frames :        0, Total Process Time :        0, Total Frame Interval:        0, Dropped Frames:        0, FPS:        0 (Required FPS:       30)
     [m3video]  42232: ENCODE: CH20: FrameNum :      253, Processed Frames :      248, Total Process Time :     2804, Total Frame Interval:    12720, Dropped Frames:        0, FPS:       21 (Required FPS:       30)
     [m3video]  42234: ENCODE: CH21: FrameNum :      402, Processed Frames :      397, Total Process Time :     3592, Total Frame Interval:    13264, Dropped Frames:        0, FPS:       30 (Required FPS:       30)
     [m3video]  42236: ENCODE: CH22: FrameNum :      405, Processed Frames :      400, Total Process Time :     4204, Total Frame Interval:    13311, Dropped Frames:        0, FPS:       31 (Required FPS:       30)
     [m3video]  42238: ENCODE: CH23: FrameNum :        0, Processed Frames :        0, Total Process Time :        0, Total Frame Interval:        0, Dropped Frames:        0, FPS:        0 (Required FPS:       30)

     [host] Entered:Chains_ipcBitsExit...

     [host] Leaving:Chains_ipcBitsExit...
     14659: SYSTEM: System Common De-Init in progress !!!

     [host] OSA_tskDelete:In progress...
     [host] OSA_tskDelete:In progress...
     [host] OSA_tskDelete:In progress...
     [host] OSA_tskDelete:In progress...
     [host] OSA_tskDelete:In progress...
     [host] OSA_tskDelete:In progress...
     [host] OSA_tskDelete:In progress...
     [host] OSA_tskDelete:In progress...
     [host] OSA_tskDelete:In progress...
     [host] OSA_tskDelete:In progress... 14665: SYSTEM: IPC de-init in progress !!!
     [c6xdsp ]
     [m3video]  42238: ENCODE: CH-1:
     [m3video]  ENC    : Delete done !!!
     [m3vpss ]
     [c6xdsp ]  40022: LOAD: CPU: 0.1% HWI: 0.0%, SWI:0.0%
     [m3video]  42239: IPC_IN_M3   : Delete in progress !!!
     [m3vpss ]  42608: LOAD: CPU: 18.1% HWI: 2.5%, SWI:1.6%
     [c6xdsp ]
     [m3video]  42239: IPC_IN_M3   : Delete Done !!!
     [m3vpss ]
     [m3video]  42246: IPC_OUT_M3   : Delete in progress !!!
     [m3video]  42246: IPC_OUT_M3   : Delete Done !!!
     [m3video]  42247: DECODE: Stop in progress !!!
     [m3video]  42247: DECODE: Stop Done !!!
     [m3video]  42247: DECODE: Delete in progress !!!
     [m3video] MemoryLeak:STAGE:0   HEAPNUM:0       ALLOC=4264      FREED=2368
     [m3video]  42248: DECODE: CH0: Processed Frames :      264, Total Process Time :  1551914, Total Frame Interval:    13552, Dropped Frames:        0, FPS:       20
     [m3video]  42249: DECODE: CH1: Processed Frames :      408, Total Process Time :  3375653, Total Frame Interval:    13632, Dropped Frames:        0, FPS:       31
     [m3video]  42250: DECODE: CH2: Processed Frames :      409, Total Process Time :  3028559, Total Frame Interval:    13616, Dropped Frames:        0, FPS:       31
     [m3video]  42250: DECODE: CH3: Processed Frames :      408, Total Process Time :  2827791, Total Frame Interval:    13600, Dropped Frames:        0, FPS:       31
     [m3video]  42251: DECODE: Delete Done !!!
     14694: SYSTEM: IPC de-init DONE !!!
     15004: SYSTEM: System Common De-Init Done !!!
     [m3video] 42251: IPCBITSIN:Link[1000001a]:
     [m3video] RECV:1509    FREE:1509,DROPPED:0,AVGLATENCY:9
     [m3video]  42251: IPC_BITS_IN   : Delete in progress !!!
     [m3video]  42251: IPC_BITS_IN   : Delete Done !!!
     [m3video]
     [m3video]  42608: LOAD: CPU: 27.1% HWI: 1.6%, SWI:1.8%
     [m3video]

     

    And, if decoder hangs, i can't go over decoder stop progress.

    I'll test bit more and post the results.

     

    Thanks for reply.