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.

Setting Swms Grid Width=1 results booting failure

Hi TIers,

I'm using DM8168 with RDK3.0

I modify

file : dvr_rdk/mcfw/src_bios6/links_m3vpss/swMs/swMsLink_drv.c

function : Int32 SwMsLink_drvDoDma(SwMsLink_Obj * pObj, FVID2_Frame *pFrame)

thickness = 1;

to set the width of swms grid to 1,

booting up failure

Log Infomation

3771.Log_3.0_1_10_3_20140730_0945.txt

But when the width be set to 4,3 or 2, it works properly,

when the width be set to 1 in RDK4.0, it works properly also.


How can I fix this issue, when the width be set to 1 in RDK3.0

Best Regards!

  • The Dma xfer is failing because it looks either BCNT or CCNT is 0 which will result in xfer error.

    RDK 3.0 is not supported so you will have to migrate to RDK 4.1.

    If you want to debug this on your own you can check modifying

    /dvr_rdk/mcfw/src_bios6/utils/src/utils_dma.c

    Utils_dmaFill2D

            /* If cCnt is zero DMA xfer doesnt happen.So set cCnt to 1 if cCnt happens to be zero */
            if (0 == pParamSet->cCnt)
                pParamSet->cCnt = 1;

            /* If bCnt is zero DMA xfer doesnt happen.So set cCnt to 1 if cCnt happens to be zero */
            if (0 == pParamSet->bCnt)
                pParamSet->bCnt = 1;

  • I found there are 2 locations in Utils_dmaFill2D of

            /* If cCnt is zero DMA xfer doesnt happen.So set cCnt to 1 if cCnt happens to be zero */
            if (0 == pParamSet->cCnt)
                pParamSet->cCnt = 1;

    at Line 317 and Line 394 approximately respectively.

    0. If I insert

            /* If bCnt is zero DMA xfer doesnt happen.So set cCnt to 1 if cCnt happens to be zero */
            if (0 == pParamSet->bCnt)
                pParamSet->bCnt = 1;

    at Line 394 location, still fail at booting up;

    1. If inserted at Line 317 location or both,

        system collapsed several seconds after booting up,

        DSP paused, camera still alive, but the board cannot be connected through telnet.