public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Mundt <paul.mundt@nokia.com>
To: "Zhang, Jian" <jzhang@ti.com>
Cc: Linux-omap-open-source@linux.omap.com
Subject: Re: [PATCH] omap camera
Date: Mon, 13 Feb 2006 22:53:58 +0200	[thread overview]
Message-ID: <20060213205358.GA16271@nokia.com> (raw)
In-Reply-To: <304D2A85A9643F4A991BDDF8D297BBA60244DAE3@dlee05.ent.ti.com>

On Mon, Feb 13, 2006 at 10:01:55AM -0600, Zhang, Jian wrote:
> Omap1 and omap2 camera drivers were developed independently. Omap2
> drivers relies on a few omap2 advanced features (DSS, auto frame start
> detection, camera DMA) Given their current status, it would be difficult
> to merge them in practice.
> 
> Video-buf.c does the scatter-gather. Camera driver only uses the
> scattered buffers. I don't know DMA API even does scatter-gather?
> 
See Documentation/DMA-API.txt. It'll deal with the mapping and unmapping
of the scatterlists, but you'll still have to deal with the transfer
handling. I suppose the video-buf.c management code wraps in to this
already for you at first glance..

> Enabling MMU would make scatter-gather unnecessary but it would make the
> use of video-buf.c not easy. There is no plan to enable MMU as of today.
> 
Perhaps not, but you would be able to do away with most of the bounce
buffers. Not to mention, you can also pre-fault the camera TLB and not
even bother with a page fault handler. The TLB miss is also easy to
handle..

This should be trivial to deal with if you implement your own mmap() (and
possibly get_unmapped_area()) for the camera driver itself. You should be
able to zero-copy the read and write to this space. I'm not sure why
you'd even want to bother with scatterlists. Can you explain the use case
where the scatterlists are going to be useful?

For what it's worth, I have some code already for manipulating the
camera, IVA, and DSP MMUs on OMAP2420 that I can make available if
someone is interested in working on this.

  reply	other threads:[~2006-02-13 20:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-13 16:01 [PATCH] omap camera Zhang, Jian
2006-02-13 20:53 ` Paul Mundt [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-02-13 21:15 Zhang, Jian
2006-02-13 21:13 Zhang, Jian
2006-02-10 21:17 Zhang, Jian
2006-02-10 21:03 David Cohen
2006-02-11  6:34 ` Paul Mundt
2006-02-11 13:53   ` Komal Shah
2006-02-11 13:50 ` Komal Shah

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=20060213205358.GA16271@nokia.com \
    --to=paul.mundt@nokia.com \
    --cc=Linux-omap-open-source@linux.omap.com \
    --cc=jzhang@ti.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