[Bug 789952] fdmemory: need unmap if mapping flags are not subset of previous

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Nov 7 01:20:30 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=789952

--- Comment #7 from Nicolas Dufresne (stormer) <nicolas at ndufresne.ca> ---
Agreed, I thinks this bug report is completely valid. Maybe we could implement
some "lazy" remapping when there is a transition from "keep mapped" read to
"keep map" write ? We would then upgrade the map from read to readwrite ? Would
that make sense ?

For anything DMABuf though, enabling this flag requires to use
DMA_BUF_IOCTL_SYNC() READ/WRITE/RW accordingly around the read/write maps.
Otherwise, there is a risk of loosing data that might still be on the CPU
cache. The API is quite straight forward though, it's basically a 1 to 1 to map
operations.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list