It's been *years* since we added these flags, but now they finally actually work :-) Note: this requires a v4l-utils patch for testing: https://patchwork.linuxtv.org/patch/64213/ With that patch the test-media script runs without failures. However, I requested some changes to that patch, so the final patch for v4l-utils will be different (although functionally it will do the same). I'd like to have this series merged early in the 5.9 cycle if possible to give it as much test time as possible. Sergey, thank you for working on this! Very nice to have this implemented at last. Regards, Hans The following changes since commit 938b29db3aa9c293c7c1366b16e55e308f1a1ddd: media: Documentation: media: Refer to mbus format documentation from CSI-2 docs (2020-05-25 15:47:02 +0200) are available in the Git repository at: git://linuxtv.org/hverkuil/media_tree.git tags/br-v5.9a for you to fetch changes up to b8e5fbcf6e1127cb409d0fed831e2e25adde87ad: media: vivid: add cache_hints module param (2020-06-02 10:23:14 +0200) ---------------------------------------------------------------- Tag branch ---------------------------------------------------------------- Sergey Senozhatsky (14): videobuf2: use explicit unsigned int in vb2_queue videobuf2: add cache management members videobuf2: handle V4L2 buffer cache flags videobuf2: add V4L2_FLAG_MEMORY_NON_CONSISTENT flag videobuf2: add queue memory consistency parameter videobuf2: handle V4L2_FLAG_MEMORY_NON_CONSISTENT flag videobuf2: factor out planes prepare/finish functions videobuf2: do not sync caches when we are allowed not to videobuf2: check ->synced flag in prepare() and finish() videobuf2: add begin/end cpu_access callbacks to dma-contig videobuf2: add begin/end cpu_access callbacks to dma-sg videobuf2: don't test db_attach in dma-contig prepare and finish videobuf2: remove redundant if-statement media: vivid: add cache_hints module param Documentation/admin-guide/media/vivid.rst | 9 +++ Documentation/userspace-api/media/v4l/buffer.rst | 40 ++++++++++++- Documentation/userspace-api/media/v4l/vidioc-create-bufs.rst | 7 ++- Documentation/userspace-api/media/v4l/vidioc-reqbufs.rst | 21 ++++++- drivers/media/common/videobuf2/videobuf2-core.c | 121 ++++++++++++++++++++++++++++++---------- drivers/media/common/videobuf2/videobuf2-dma-contig.c | 44 +++++++++++++-- drivers/media/common/videobuf2/videobuf2-dma-sg.c | 38 ++++++++++--- drivers/media/common/videobuf2/videobuf2-v4l2.c | 72 +++++++++++++++++++++++- drivers/media/dvb-core/dvb_vb2.c | 2 +- drivers/media/test-drivers/vivid/vivid-core.c | 9 +++ drivers/media/v4l2-core/v4l2-compat-ioctl32.c | 10 +++- drivers/media/v4l2-core/v4l2-ioctl.c | 5 +- include/media/videobuf2-core.h | 47 ++++++++++++---- include/uapi/linux/videodev2.h | 14 ++++- 14 files changed, 366 insertions(+), 73 deletions(-)