]> git.baikalelectronics.ru Git - kernel.git/commit
media: mtk-vcodec: Support 34bits dma address for venc
authorIrui Wang <irui.wang@mediatek.com>
Sat, 5 Jun 2021 02:29:15 +0000 (04:29 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 17 Jun 2021 08:11:28 +0000 (10:11 +0200)
commite21ee57866ea74b12bc1d8816d28932ae31918ac
treefb996d1c0edc6a22d2e4b2fa13061cbc1c903ad0
parente9a10c2792f4d6112f18bd6848c5ffc1f7eed6c2
media: mtk-vcodec: Support 34bits dma address for venc

Use the dma_set_mask_and_coherent helper to set venc
DMA bit mask to support 34bits iova space(16GB) that
the mt8192 iommu HW support.

Whole the iova range separate to 0~4G/4G~8G/8G~12G/12G~16G,
regarding which iova range VENC actually locate, it
depends on the dma-ranges property of venc dtsi node.

Signed-off-by: Irui Wang <irui.wang@mediatek.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c