Skip to content

Draft: media: videobuf2-vmalloc: Add .finish to flush the cache

videobuf2-vmalloc uses vmalloc() to create the buffer and can support exporting dmabuf. If other hardware directly uses the dmabuf exported from videobuf2-vmalloc, it may get the dirty data because videobuf2- vmalloc doesn't flush the cache. Add .finish callback to flush the cache before returning vb2 buffer to avoid the garbage.

Kconfig: CONFIG_ARM64_PMEM=y

BUG: AIOT-747, AIOT-1135

Signed-off-by: Andy.Hsieh Andy.Hsieh@mediatek.com

Edited by Andy Hsieh

Merge request reports