From: Matthieu CASTET <matthieu.castet@parrot.com>
To: v4l2_linux <linux-media@vger.kernel.org>
Subject: videobuf-dma-contig.c cached user mapping
Date: Wed, 23 Dec 2009 17:01:10 +0100 [thread overview]
Message-ID: <4B323EC6.5000204@parrot.com> (raw)
Hi,
I would like to add support for cached user mapping to
videobuf-dma-contig.c.
For enabling this, "vma->vm_page_prot =
pgprot_noncached(vma->vm_page_prot);" line should be removed.
But now we should ensure user mapping cache coherency.
For that, for a camera we should :
- invalidate cache before dma operation (to have not old buffer data in
the cache)
- forbid the user to access the buffer during the dma operation (to not
pollute the cache)
Is it possible ?
How can we achieve that ?
I see sync method, that seems only called after frame capture ?
Thanks,
Matthieu
reply other threads:[~2009-12-23 16:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4B323EC6.5000204@parrot.com \
--to=matthieu.castet@parrot.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox