imx35 - SDC Overrun error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx35 - SDC Overrun error

1,280 Views
martinnike2
Contributor I

Hello,

I'm using the i.mx35 in a project that involves video capture. I have the CSI configure to input to the IC (16 bit colour), which performs scaling and CSC, before  outputting the video image to a framebuffer via DMA channel 1 (I believe). This is then sent to the SDC unit along with BG data from anther framebuffer using DMA 14, 15. A key colour is used for an overlay to display the video image. This is all being done through video 4 Linux 2 on Linux, kernel 2.6.28.

Our hardware is custom hardware, but based on the PDK reference board. (Our video decoder is different.)

However, occasionally when we start the capture, the output from the SDC switches off and a flag is raised in IPU_TASKS_STAT to indicate SDC_PIX_SKIP. I am not sure what this means. When this happens, the VF  task is still active and does not appear to stop. The documentation says this indicates a SDC overrun and means skipped pixels - I am seeing no pixels.

The only way to recover from this is to stop the tasks/channels and then restart them. At the moment this check is being done in 'userspace'.

At the moment my only contact with Freescale is via a colleague in Japan who is getting support from a reseller. The vague answer to this problem I have is that it's a 'memory bandwidth' issue. (I'm in the UK.)

What I would like is more details about this flag and problem.

- What condition exactly causes this flag to be set?

- Is there a way to detect the problem in the IPU via an interrupt/error?

- Is the IPU switching off a clock when it detects this 'overrun'?  (Overrun implies to me that something is trying to feed data into the SDC faster than it can deal with it? Is this is true?)

I have the IPU configured so DMA accesses for the relevant channels are high priority and the burst length is the highest it could be (This is because we're seeing horrendous flickering.). The IPU bus masters are also given high priority as well for DMA transfers. Increasing this was when this problem was introduced.

Is there anyone out there with experience with video capture on the i.mx35? We have had so many problems getting this working.

Labels (3)
Tags (4)
0 Kudos
6 Replies

839 Views
karina_valencia
NXP Apps Support
NXP Apps Support

Deactivated user are you available to help on this case?

0 Kudos

839 Views
karina_valencia
NXP Apps Support
NXP Apps Support

Deactivated user  please confirm if you can help on this case.

0 Kudos

839 Views
karina_valencia
NXP Apps Support
NXP Apps Support

Deactivated user do you have any advance on it?

0 Kudos

839 Views
fabio_estevam
NXP Employee
NXP Employee

I would suggest you to try the latest 3.7 kernel and check whether this issue is still present with such version.

Regards,

Fabio Estevam

0 Kudos

839 Views
martinnike2
Contributor I

I am afraid it's not possible. I am using a commercial distribution that is stuck at 2.28 and we cannot change it. I will have  a look through the drivers, though, and see if there are any changes that might help.

This is one of many problems I have encountered with this CPU.

0 Kudos

839 Views
rajasivasankara
Contributor I

Hi Martin Nike

I too also is facing the same problem as you described in the first post with iMX35 running on windows CE 6.0 on my product board. Did you solve that problem.

I am debugging this from long time. Still i am not able find any solution and FIX for this.

0 Kudos