Skip to contentSkip to conversation

videobuf cached user mapping

DISCUSSION Matthieu CASTET 1 participant 1 message Jan 15, 2010 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi,

Is that possible to have user mapping cached in Memory Mapping mode ?

This means buffer allocated by mmap in userspace, will have cache support, and it will be faster to work on it.

But how the cache coherency can be done ?

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 ?

Or user "User Pointers" is the solution ?
But they should have the same problems. Is there some documentation of how "user pointer" are synchronised with dma ?

Thanks,
Matthieu