Message ID | 20211228094146.20505-1-yunfei.dong@mediatek.com |
---|---|
Headers | show |
Series | media: mtk-vcodec: support for MT8192 decoder | expand |
On Tue, Dec 28, 2021 at 05:41:35PM +0800, Yunfei Dong wrote: > From: Yunfei Dong <yunfei.dong@mediatek.corp-partner.google.com> > > Lock, power and clock are highly coupled operations. Adds vdec > enable/disable hardware helpers and uses them. > > Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com> Reviewed-by: Tzung-Bi Shih <tzungbi@google.com>
On Tue, Dec 28, 2021 at 05:41:36PM +0800, Yunfei Dong wrote: > From: Yunfei Dong <yunfei.dong@mediatek.corp-partner.google.com> > > MT8173 platform use vpu firmware, mt8183/mt8192 will use scp > firmware instead, using chip name is not reasonable to separate > different firmware architecture. Using firmware type is much better. > > Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com> Reviewed-by: Tzung-Bi Shih <tzungbi@google.com>
On Tue, Dec 28, 2021 at 05:41:38PM +0800, Yunfei Dong wrote: > From: Yunfei Dong <yunfei.dong@mediatek.corp-partner.google.com> Just realized this on reviewing the 4th patch of the series. Please fix it to prevent from showing the line in next version series. > Supported max resolution for different platforms are not the same: 2K > or 4K, getting it according to dec_capability. > > Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com> Reviewed-by: Tzung-Bi Shih <tzungbi@google.com>
On Tue, Dec 28, 2021 at 05:41:39PM +0800, Yunfei Dong wrote: > From: Yunfei Dong <yunfei.dong@mediatek.corp-partner.google.com> Same as 4th patch. Please fix it. > For lat and core architecture, just need to get output buffer for lat > decode. For core hardware need to get lat's message and capture buffer. > In order to let lat and core decode in parallel, need to set capture > buffer buffered. I think the description should be rephrased. I may misunderstand but something like the template: """ OUTPUT -> lat -> core -> CAPTURE. Lat and core can work in parallel. Sets capture buffer buffered to ... """ > diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_stateless.c b/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_stateless.c > index 5aebf88f997b..23a154c4e321 100644 > --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_stateless.c > +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_stateless.c > @@ -314,6 +314,9 @@ static void mtk_init_vdec_params(struct mtk_vcodec_ctx *ctx) > src_vq = v4l2_m2m_get_vq(ctx->m2m_ctx, > V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE); > > + if (ctx->dev->vdec_pdata->hw_arch != MTK_VDEC_PURE_SINGLE_CORE) > + v4l2_m2m_set_dst_buffered(ctx->m2m_ctx, 1); s/1/true/ helps readability.