linux/drivers/media/platform/mtk-vcodec
Tomasz Figa 8b8130f0c7 media: mtk-vcodec: Remove VA from encoder frame buffers
The encoder driver has no need to do any CPU access to the source frame
buffers. Use a separate structure for holding DMA addresses and sizes
for those and remove, so we do not end up introducing any erroneous
dereferences of those VAs.

This fixes DMA-buf import from exporters that do not provide contiguous
kernel mappings, which includes the MTK DRM driver.

Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-12-03 14:29:14 -05:00
..
vdec
venc
Makefile
mtk_vcodec_dec_drv.c
mtk_vcodec_dec_pm.c
mtk_vcodec_dec_pm.h
mtk_vcodec_dec.c media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
mtk_vcodec_dec.h
mtk_vcodec_drv.h
mtk_vcodec_enc_drv.c
mtk_vcodec_enc_pm.c media: mtk-vcodec: Release device nodes in mtk_vcodec_init_enc_pm() 2018-11-23 04:34:10 -05:00
mtk_vcodec_enc_pm.h
mtk_vcodec_enc.c media: mtk-vcodec: Remove VA from encoder frame buffers 2018-12-03 14:29:14 -05:00
mtk_vcodec_enc.h
mtk_vcodec_intr.c
mtk_vcodec_intr.h
mtk_vcodec_util.c media: mtk_vcodec_util: Use dma_zalloc_coherent to replace dma_alloc_coherent + memset 2018-09-12 10:48:59 -04:00
mtk_vcodec_util.h media: mtk-vcodec: Remove VA from encoder frame buffers 2018-12-03 14:29:14 -05:00
vdec_drv_base.h
vdec_drv_if.c
vdec_drv_if.h
vdec_ipi_msg.h
vdec_vpu_if.c
vdec_vpu_if.h
venc_drv_base.h
venc_drv_if.c
venc_drv_if.h media: mtk-vcodec: Remove VA from encoder frame buffers 2018-12-03 14:29:14 -05:00
venc_ipi_msg.h
venc_vpu_if.c
venc_vpu_if.h