Draft: media: videobuf2-vmalloc: Add .finish to flush the cache
requested to merge mediatek/aiot/team-mtk-aiot-sw-ss2/linux-20211109:andy/fix-uvc-cache into mtk-v5.15-dev
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
Signed-off-by: Andy.Hsieh Andy.Hsieh@mediatek.com
Edited by Andy Hsieh