From: Irui Wang <irui.wang@mediatek•com>
To: Alexandre Courbot <acourbot@chromium•org>,
Hans Verkuil <hverkuil-cisco@xs4all•nl>,
Tiffany Lin <tiffany.lin@mediatek•com>,
"Andrew-CT Chen" <andrew-ct.chen@mediatek•com>,
Mauro Carvalho Chehab <mchehab@kernel•org>,
Rob Herring <robh+dt@kernel•org>,
Matthias Brugger <matthias.bgg@gmail•com>,
Tomasz Figa <tfiga@google•com>,
Hsin-Yi Wang <hsinyi@chromium•org>,
Maoguang Meng <maoguang.meng@mediatek•com>,
"Longfei Wang" <longfei.wang@mediatek•com>,
Yong Wu <yong.wu@mediatek•com>
Cc: Yunfei Dong <yunfei.dong@mediatek•com>,
Fritz Koenig <frkoenig@chromium•org>,
Tzung-Bi Shih <tzungbi@chromium•org>,
Irui Wang <irui.wang@mediatek•com>, <linux-media@vger•kernel.org>,
<devicetree@vger•kernel.org>, <linux-kernel@vger•kernel.org>,
<linux-arm-kernel@lists•infradead.org>,
<srv_heupstream@mediatek•com>,
<linux-mediatek@lists•infradead.org>,
<Project_Global_Chrome_Upstream_Group@mediatek•com>
Subject: [PATCH v4, 3/6] media: mtk-vcodec: Support 4GB~8GB range iova space for venc
Date: Fri, 21 May 2021 15:01:36 +0800 [thread overview]
Message-ID: <20210521070139.20644-4-irui.wang@mediatek.com> (raw)
In-Reply-To: <20210521070139.20644-1-irui.wang@mediatek.com>
Use the dma_set_mask_and_coherent helper to set venc
DMA bit mask to support 4GB~8GB range iova space.
Signed-off-by: Irui Wang <irui.wang@mediatek•com>
---
drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c
index 7d7b8cfc2cc5..26b089e81213 100644
--- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c
+++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c
@@ -361,6 +361,9 @@ static int mtk_vcodec_probe(struct platform_device *pdev)
goto err_event_workq;
}
+ if (of_get_property(pdev->dev.of_node, "dma-ranges", NULL))
+ dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(34));
+
ret = video_register_device(vfd_enc, VFL_TYPE_VIDEO, 1);
if (ret) {
mtk_v4l2_err("Failed to register video device");
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2021-05-21 8:48 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-21 7:01 [PATCH v4,0/6] Support H264 4K on MT8192 Irui Wang
2021-05-21 7:01 ` [PATCH v4,1/6] media: mtk-vcodec: venc: remove redundant code Irui Wang
2021-05-21 8:05 ` Tzung-Bi Shih
2021-05-21 7:01 ` [PATCH v4, 2/6] dt-bindings: media: mtk-vcodec: Add dma-ranges property Irui Wang
2021-06-02 18:50 ` [PATCH v4,2/6] " Rob Herring
2021-05-21 7:01 ` Irui Wang [this message]
2021-05-21 8:06 ` [PATCH v4,3/6] media: mtk-vcodec: Support 4GB~8GB range iova space for venc Tzung-Bi Shih
2021-05-22 9:50 ` Yong Wu
2021-05-21 7:01 ` [PATCH v4, 4/6] dt-bindings: media: mtk-vcodec: Add binding for MT8192 VENC Irui Wang
2021-05-21 7:01 ` [PATCH v4,5/6] media: mtk-vcodec: Add MT8192 H264 venc driver Irui Wang
2021-05-21 8:06 ` Tzung-Bi Shih
2021-05-28 5:27 ` Dafna Hirschfeld
2021-06-03 3:55 ` Irui Wang
2021-05-21 7:01 ` [PATCH v4,6/6] media: mtk-vcodec: Support MT8192 H264 4K encoding Irui Wang
2021-05-21 8:06 ` [PATCH v4, 6/6] " Tzung-Bi Shih
2021-05-24 2:39 ` [PATCH v4,6/6] " Irui Wang
2021-05-28 5:57 ` [PATCH v4, 6/6] " Dafna Hirschfeld
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210521070139.20644-4-irui.wang@mediatek.com \
--to=irui.wang@mediatek$(echo .)com \
--cc=Project_Global_Chrome_Upstream_Group@mediatek$(echo .)com \
--cc=acourbot@chromium$(echo .)org \
--cc=andrew-ct.chen@mediatek$(echo .)com \
--cc=devicetree@vger$(echo .)kernel.org \
--cc=frkoenig@chromium$(echo .)org \
--cc=hsinyi@chromium$(echo .)org \
--cc=hverkuil-cisco@xs4all$(echo .)nl \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-media@vger$(echo .)kernel.org \
--cc=linux-mediatek@lists$(echo .)infradead.org \
--cc=longfei.wang@mediatek$(echo .)com \
--cc=maoguang.meng@mediatek$(echo .)com \
--cc=matthias.bgg@gmail$(echo .)com \
--cc=mchehab@kernel$(echo .)org \
--cc=robh+dt@kernel$(echo .)org \
--cc=srv_heupstream@mediatek$(echo .)com \
--cc=tfiga@google$(echo .)com \
--cc=tiffany.lin@mediatek$(echo .)com \
--cc=tzungbi@chromium$(echo .)org \
--cc=yong.wu@mediatek$(echo .)com \
--cc=yunfei.dong@mediatek$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox