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.

CSI Overflow: Memory Arbitration issue

Other Parts Discussed in Thread: 4460

We are using OMAP4460 Processor with android release 4AI.1.4 and we are using the csi camera on ducati. I need help on ducati/omap related crash we are seeing in our custom board. Any direction/pointer will be helpful.

I’ve attached log files that give some details when the crash occurs.  (csiFiFoOverflow.txt) is a capture obtained from adb logcat. The other one was obtained with a trace tool name “rpmsg_traced” (a Spawning Ducati-Tesla Trace daemon) which can be started via an adb shell. csiFifoOverflow_rpmsg_traced.txt is attached at the end of the file.

 

The crash happens randomly, when we take consecutive pictures.

Thanks and Regards,

Sanjay.C

  • Try the following solutions:

    1. Increase csi_ddr_mhz

    2. Lower sensor pixel clock

    3. Increase horizontal blanking

  • Hi Mayank Mangla,

    Thank you for your inputs. This is our understanding

     1)      Increasing csi_ddr_mhz may be valid.

    2)      Lower PCLK will reduce the frame rate which is in conflict with a very strong requirement

    3)      Increase HBLANK is not possible as it require increasing PCLK which is already at the maximum rate


    Also camera driver vendor had provided us the following comment:

    Framerate drop is caused by recovery mechanism which is triggered when CSI2 FIFO overflow happens.  In ICS  raw 10 packed mode is enabled which will reduce memory access from CSI2 to around 37 % . This should fix the issue with CSI FIFO overflow.


    Can you let me know how to disable the "raw 10 packed mode" in our ICS version 4AI.1.4 for 4460 blaze board.


    Thanks and Regards,

    Sanjay.C

  • I have sent the instructions to Abhishek.

    Disabling packed mode will only increase data traffic between CSI and DDR, causing more overflows. Why do you want to disable it?

  • Quoting Mayank;

    "Try decreasing clock and see if it makes a difference. Even if it is not a final solution you will know if you are proceeding in the right direction. RAW10 packed mode is default in ICS releases."

    "Disable RAW10packed mode as follows:

    File name : omx/omx_il_1_x/omx_iss_cam/src/config/omx_config/params/omx_params_custom.c

    Function name : OMX_ConfMngPlugin_SetToDefault_TiCamParams_COMP_BayerCompression_CUSTOM

                 pCP->eBayerCompression = OMX_BAYER_PACKED10;

    CHANGE TO

                 pCP->eBayerCompression = OMX_BAYER_UNPACKED;

     However, this will increase DDR load, so I don’t know how it is better for CSI overflow."

  • Abhishek,

    I believe this issue has been resolved.  Can you please confirm if anything else is needed?

    Thanks,
    Gina