media: videobuf2: add begin/end cpu_access callbacks to dma-sg
authorSergey Senozhatsky <senozhatsky@chromium.org>
Thu, 14 May 2020 16:01:50 +0000 (18:01 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 23 Jun 2020 11:39:01 +0000 (13:39 +0200)
commitd4db5eb57cab049d378fbfb7ee842857009a8679
tree639621e61189c898fb5a5b3bfcbb9763e4083572
parentd5adf1b0c2a31f8244ded805578188e067baaf5e
media: videobuf2: add begin/end cpu_access callbacks to dma-sg

Provide begin_cpu_access() and end_cpu_access() dma_buf_ops
callbacks for cache synchronisation on exported buffers.

V4L2_FLAG_MEMORY_NON_CONSISTENT has no effect on dma-sg buffers.
dma-sg allocates memory using the page allocator directly, so
there is no memory consistency guarantee.

Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/common/videobuf2/videobuf2-dma-sg.c