All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien BERAUD <julien.beraud@parrot.com>
To: Enrico <ebutera@users.berlios.de>
Cc: <florian.vaussard@epfl.ch>,
	"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Subject: Re: omap3isp device tree support
Date: Wed, 8 Jan 2014 12:55:18 +0100	[thread overview]
Message-ID: <52CD3CA6.3080704@parrot.com> (raw)
In-Reply-To: <CA+2YH7u+1zOdcUDVDf1+VG2rgDdSa7HM-mxsxkzTj_iE3RtvMg@mail.gmail.com>


Le 07/01/2014 11:12, Enrico a écrit :
> On Mon, Jan 6, 2014 at 11:11 AM, Julien BERAUD <julien.beraud@parrot.com> wrote:
>> Le 03/01/2014 12:30, Enrico a écrit :
>>> On Wed, Dec 18, 2013 at 11:09 AM, Enrico <ebutera@users.berlios.de> wrote:
>>>> On Tue, Dec 17, 2013 at 2:11 PM, Florian Vaussard
>>>> <florian.vaussard@epfl.ch> wrote:
>>>>> So I converted the iommu to DT (patches just sent), used pdata quirks
>>>>> for the isp / mtv9032 data, added a few patches from other people
>>>>> (mainly clk to fix a crash when deferring the omap3isp probe), and a few
>>>>> small hacks. I get a 3.13-rc3 (+ board-removal part from Tony Lindgren)
>>>>> to boot on DT with a working MT9V032 camera. The missing part is the DT
>>>>> binding for the omap3isp, but I guess that we will have to wait a bit
>>>>> more for this.
>>>>>
>>>>> If you want to test, I have a development tree here [1]. Any feedback is
>>>>> welcome.
>>>>>
>>>>> Cheers,
>>>>>
>>>>> Florian
>>>>>
>>>>> [1] https://github.com/vaussard/linux/commits/overo-for-3.14/iommu/dt
>>>> Thanks Florian,
>>>>
>>>> i will report what i get with my setup.
>>> And here i am.
>>>
>>> I can confirm it works, video source is tvp5150 (with platform data in
>>> pdata-quirks.c) in bt656 mode.
>>>
>>> Laurent, i used the two bt656 patches from your omap3isp/bt656 tree so
>>> if you want to push it you can add a Tested-by me.
>>>
>>> There is only one problem, but it's unrelated to your DT work.
>>>
>>> It's an old problem (see for example [1] and [2]), seen by other
>>> people too and it seems it's still there.
>>> Basically if i capture with yavta while the system is idle then it
>>> just waits without getting any frame.
>>> If i add some cpu load (usually i do a "cat /dev/zero" in a ssh
>>> terminal) it starts capturing correctly.
>>>
>>> The strange thing is that i do get isp interrupts in the idle case, so
>>> i don't know why they don't "propagate" to yavta.
>>>
>>> Any hints on how to debug this?
>>>
>>> Enrico
>>>
>>> [1]: https://linuxtv.org/patch/7836/
>>> [2]:
>>> https://www.mail-archive.com/linux-media@vger.kernel.org/msg44923.html
>> I have had what looked a lot like these problems before and it was due to a
>> wrong configuration of the ccdc cropping regarding to the blanking. Could
>> you send me the configuration of the pipeline that you apply with media-ctl,
>> just in case this is the same problem.
> i'm using:
>
> media-ctl -r -l '"tvp5150 2-005c":0->"OMAP3 ISP CCDC":0[1], "OMAP3 ISP
> CCDC":1->"OMAP3 ISP CCDC output":0[1]'
> media-ctl --set-format '"tvp5150 2-005c":0 [UYVY 720x625]'
>
> And then capture with yavta -s 720x625 (or 720x576, can't remember right now).
>
> Thanks,
>
> Enrico
I don't think this is sufficient, though I am no expert about omap3 isp, 
you should configure the format of the ccdc input and of the ccdc output 
too.
When I had this problem, it was solved by adding cropping at the input 
of the CCDC, corresponding to the blanking period, which was :
- media-ctl -v -f '"OMAP3 ISP CCDC":0 [UYVY2X8 720x576 (0,49/720x576)]'
or
- media-ctl -v -f '"OMAP3 ISP CCDC":0 [UYVY2X8 720x480 (0,45/720x480)]'
respectively.

I don't know if this can be of any help.

Regards,
Julien BERAUD

  reply	other threads:[~2014-01-08 11:56 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-06 10:13 omap3isp device tree support Enrico
2013-12-06 10:31 ` Florian Vaussard
2013-12-06 10:54   ` Enrico
2013-12-17 13:11     ` Florian Vaussard
2013-12-18 10:09       ` Enrico
2013-12-23 17:45         ` Enrico
2013-12-23 18:33           ` Enrico
2014-01-03 11:30         ` Enrico
2014-01-06 10:11           ` Julien BERAUD
2014-01-07 10:12             ` Enrico
2014-01-08 11:55               ` Julien BERAUD [this message]
2014-01-09 18:14                 ` Enrico
2014-01-10  9:02                   ` Julien BERAUD
2014-02-07 10:24                     ` Enrico
2014-01-07 16:59           ` Laurent Pinchart
2014-01-09 20:26             ` Florian Vaussard
2014-01-09 20:49               ` Laurent Pinchart
2014-01-09 20:54                 ` Florian Vaussard
2014-01-09 21:30                 ` Sebastian Reichel
2014-01-09 23:14             ` Enrico
2014-01-10  0:00               ` Laurent Pinchart
2013-12-09 13:11 ` Laurent Pinchart
     [not found] <CALFbYK1kEnB2_3VqpLFNtaJ7hj9UHuhrL0iO_rFHD2VFt8THFw@mail.gmail.com>
2014-08-05 22:19 ` Laurent Pinchart
     [not found]   ` <CALFbYK3YtrDPGxc3UpASk7MgPTBGcd899Crvm1csY8g+j-fehg@mail.gmail.com>
2014-08-05 22:41     ` Laurent Pinchart
2014-08-05 22:50       ` alaganraj sandhanam
     [not found]         ` <1407284947.78794.YahooMailNeo@web162403.mail.bf1.yahoo.com>
2014-08-06 18:40           ` Alaganraj Sandhanam
2014-08-07  0:18     ` Sakari Ailus
2014-08-07 14:39       ` Alaganraj Sandhanam

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=52CD3CA6.3080704@parrot.com \
    --to=julien.beraud@parrot.com \
    --cc=ebutera@users.berlios.de \
    --cc=florian.vaussard@epfl.ch \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.