Skip to contentSkip to conversation

videobuf-dma-contig.c cached user mapping

DISCUSSION Matthieu CASTET 1 participant 1 message Dec 23, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore 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