media: media: jpegenc: set bit mask for jpegenc
authorkyrie wu <kyrie.wu@mediatek.com>
Wed, 8 Jun 2022 06:07:55 +0000 (07:07 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 20 Jun 2022 09:30:34 +0000 (10:30 +0100)
commit6a0d6733098965b8b58e8008e0fe1333d4f24953
tree381d486da4eaf53fc96bae816e62d582b11e151b
parentad834fa85f116a003b51255f6802383cc57fd620
media: media: jpegenc: set bit mask for jpegenc

set jpeg encode DMA bit mask to support 34bits
iova space(16GB) that the mt8186 iommu HW support.
Whole the iova range separate to 0~4G/4G~8G/8G~12G/12G~16G,
regarding which iova range jpgenc actually locate, it
depends on the dma-ranges property of vdec dtsi node.

Signed-off-by: kyrie wu <kyrie.wu@mediatek.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c