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.

MCFW freezes periodically

Other Parts Discussed in Thread: DM388

Hi!

I am working with DM388 IPNC board from APPRO.

RDK version is 3.8.0.  Sensor type is SONY IMX136.

The firmware flashed in nand is original binaries from RDK(I flashed it special - to see problem in original soft).

When I am running RDK everyrhing is working - 3 channels are compressed - FullHD/D1/JPEG.

To make a problem I am inserting SD card, waiting while sys_server will mount it and then ejecting SD card.

From the moment I eject card frame skipping begins in MCFW. When it happens I see such statistics:

[m3video] CH | In Recv In Skip In User Out Latency
[m3video] Num | FPS FPS Skip FPS FPS Min / Max
[m3video] --------------------------------------------
[m3video] 0 | 30 2 0 27.49 127 / 172
[m3video] 1 | 30 2 0 27.37 10 / 44
[m3video] 2 | 30 2 22 4.60 139 / 177

"2' in skip column doesn't meen only 2 frames skipped. It meens that during 30 seconds average skip ratio is 2!!!

After that such skipping happens with different periods. If I inserting SD card back everything comes ok.

After some debug I observed that video freezes at some link during ~1-2 seconds. No frames compressed at this time.

The fact is video on display(HDMI) doesn't stop, but video on RTSP stream freezes for such period.

Also I observed(through the "top" app, through telnet) that in such moments of freezing ipnc_rdk_mcfw.out app is taking 100% of cpu time.

I added some debug prints in bios6 side of links and I observed that frames skipping is happend in encLink on bios6 side. In file mcfw/src_bios6/links_m3video/iva_enc/encLink_common.c:1580 there is comment: 

/* Free the input frame if processQue is full */

So, here skipping is happened; Some link dosn't take ready frames/bitbufs in time and it raises skipping.

For me it looks like some link, working on A8 is getting paused for too long. It can be a part of Linux system that polls SD card appearing. It can be a strange ipnc_rdk_mcfw.out app behaviour when it take all cpu time. But I can't figure out what exactly happens.

Could somebody help me?

Does anybody see such freezing?

 

Thank you.