public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Mike Rapoport <mike@compulab.co.il>
To: Guennadi Liakhovetski <g.liakhovetski@pengutronix.de>
Cc: video4linux-list@redhat.com
Subject: Re: [PATCH] pxa_camera: Add support for YUV modes
Date: Thu, 17 Apr 2008 08:55:03 +0300	[thread overview]
Message-ID: <4806E637.9030906@compulab.co.il> (raw)
In-Reply-To: <Pine.LNX.4.64.0804091626140.5671@axis700.grange>



Guennadi Liakhovetski wrote:
> On Sun, 6 Apr 2008, Mike Rapoport wrote:
> 
>>>> +			DCSR(pcdev->dma_chans[i]) = DCSR_RUN;
>>>> +#ifdef DEBUG
>>>> +			if (CISR & CISR_IFO_0) {
>>>> +				dev_warn(pcdev->dev, "FIFO overrun\n");
>>>> +				for (i = 0; i < channels; i++)
>>>> +					DDADR(pcdev->dma_chans[i]) =
>>>> +						pcdev->active->dmas[i].sg_dma;
>>>> +
>>>> +				CICR0 &= ~CICR0_ENB;
>>>> +				CIFR |= CIFR_RESET_F;
>>>> +				for (i = 0; i < channels; i++)
>>>> +					DCSR(pcdev->dma_chans[0]) = DCSR_RUN;
>>>> +				CICR0 |= CICR0_ENB;
>>>> +			} else {
>>>> +				for (i = 0; i < channels; i++)
>>>> +					DCSR(pcdev->dma_chans[0]) = DCSR_RUN;
>>>> +			}
>>> These three loops don't look right. At least because they use the same 
>>> index i. And you're iterating over channels inside a loop over channels, 
>>> and you have dma_chans[0] instead of [i]. Please fix.
>> Here I'm not quite sure what exactly should be done as I never got overruns.
>> For now I move this code out of the loop and in case of overrun re-enable
>> all three DMAs. BTW, the 'else' here is completely redundant, so I just removed it.
> 
> Mike, you probably saw the recent thread on this list, where the overrun 
> problem did come up: http://marc.info/?t=120732439600006&r=1&w=2 and my 
> last post in this thread with a patch. Could you, please, test it with 
> your YCbCr setup? Would be great, if you could test it with the 
> application, that fengxin quoted in his mail 
> http://marc.info/?l=linux-video&m=120762092820785&w=2, see if you too get 
> overruns with it, and see if my patch fixes them.

Sorry for the delay, and as far as I can see you've already have a fix. :)
If you'd like I can test it with YUV setup. I'll apreciate if you can send me
the entire updated pxa_camera.c, to save time on merge conflicts.

> Thanks
> Guennadi
> ---
> Guennadi Liakhovetski
> 

-- 
Sincerely yours,
Mike.

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

  reply	other threads:[~2008-04-17  5:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-01 10:59 [PATCH] pxa_camera: Add support for YUV modes Mike Rapoport
2008-04-01 22:08 ` Guennadi Liakhovetski
2008-04-02  5:33   ` Mike Rapoport
2008-04-04  9:14 ` Guennadi Liakhovetski
2008-04-06  6:51   ` Mike Rapoport
2008-04-06 22:30     ` Guennadi Liakhovetski
2008-04-09 14:30     ` Guennadi Liakhovetski
2008-04-17  5:55       ` Mike Rapoport [this message]
2008-04-17 14:33         ` Guennadi Liakhovetski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4806E637.9030906@compulab.co.il \
    --to=mike@compulab.co.il \
    --cc=g.liakhovetski@pengutronix.de \
    --cc=video4linux-list@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox