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 media: vdec: fix some kernel-doc warnings 2017-11-30 04:18:59 -05:00
venc media: venc: don't use kernel-doc for undescribed enums 2017-11-30 04:18:54 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mtk_vcodec_dec_drv.c [media] mtk-vcodec: use V4L2_DEC_CMD_STOP to implement flush 2017-02-03 07:49:24 -02:00
mtk_vcodec_dec_pm.c [media] mtk-vcodec: fix some smatch warnings 2016-10-21 12:09:23 -02:00
mtk_vcodec_dec_pm.h [media] vcodec: mediatek: Add Mediatek V4L2 Video Decoder Driver 2016-10-21 10:49:26 -02:00
mtk_vcodec_dec.c media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
mtk_vcodec_dec.h [media] mtk-vcodec: check the vp9 decoder buffer index from VPU 2017-03-22 11:26:47 -03:00
mtk_vcodec_drv.h [media] mtk-vcodec: use V4L2_DEC_CMD_STOP to implement flush 2017-02-03 07:49:24 -02:00
mtk_vcodec_enc_drv.c [media] mtk-vcodec: remove redundant return value check of platform_get_resource() 2017-03-22 11:23:20 -03:00
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 [media] vcodec: mediatek: Add Mediatek V4L2 Video Decoder Driver 2016-10-21 10:49:26 -02:00
mtk_vcodec_intr.h [media] vcodec:mediatek:code refine for v4l2 Encoder driver 2016-08-24 11:20:50 -03:00
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 [media] vcodec: mediatek: Add Mediatek VP9 Video Decoder Driver 2016-10-21 12:09:32 -02:00
vdec_drv_if.c [media] vcodec: mediatek: Add Mediatek VP9 Video Decoder Driver 2016-10-21 12:09:32 -02:00
vdec_drv_if.h [media] mtk-vcodec: check the vp9 decoder buffer index from VPU 2017-03-22 11:26:47 -03:00
vdec_ipi_msg.h [media] vcodec: mediatek: Add Mediatek V4L2 Video Decoder Driver 2016-10-21 10:49:26 -02:00
vdec_vpu_if.c [media] mtk-vcodec: fix build warnings without DEBUG 2017-02-08 12:08:20 -02:00
vdec_vpu_if.h media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
venc_drv_base.h
venc_drv_if.c [media] mtk-vcodec: constify venc_common_if structures 2016-08-24 08:46:19 -03:00
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 [media] mtk-vcodec: fix build warnings without DEBUG 2017-02-08 12:08:20 -02:00
venc_vpu_if.h