Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Kyrie Wu (吴晗)" <Kyrie.Wu@mediatek.com>
To: "matthias.bgg@gmail.com" <matthias.bgg@gmail.com>,
	"fshao@chromium.org" <fshao@chromium.org>,
	"Yunfei Dong (董云飞)" <Yunfei.Dong@mediatek.com>,
	"conor+dt@kernel.org" <conor+dt@kernel.org>,
	"fanwu01@zju.edu.cn" <fanwu01@zju.edu.cn>,
	"jacopo.mondi@ideasonboard.com" <jacopo.mondi@ideasonboard.com>,
	"haoxiang_li2024@163.com" <haoxiang_li2024@163.com>,
	"tfiga@chromium.org" <tfiga@chromium.org>,
	"AngeloGioacchino Del Regno"
	<angelogioacchino.delregno@collabora.com>,
	"Andrew-CT Chen (陳智迪)" <Andrew-CT.Chen@mediatek.com>,
	"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
	"ribalda@chromium.org" <ribalda@chromium.org>,
	"wenst@chromium.org" <wenst@chromium.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"kees@kernel.org" <kees@kernel.org>,
	"rongqianfeng@vivo.com" <rongqianfeng@vivo.com>,
	"Irui Wang (王瑞)" <Irui.Wang@mediatek.com>,
	"Kyrie Wu (吴晗)" <Kyrie.Wu@mediatek.com>,
	"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
	"linux-mediatek@lists.infradead.org"
	<linux-mediatek@lists.infradead.org>,
	"Tiffany Lin (林慧珊)" <tiffany.lin@mediatek.com>,
	"p.zabel@pengutronix.de" <p.zabel@pengutronix.de>,
	"benjamin.gaignard@collabora.com"
	<benjamin.gaignard@collabora.com>,
	"mchehab@kernel.org" <mchehab@kernel.org>,
	"sebastian.fricke@collabora.com" <sebastian.fricke@collabora.com>,
	"robh@kernel.org" <robh@kernel.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	"laurent.pinchart+renesas@ideasonboard.com"
	<laurent.pinchart+renesas@ideasonboard.com>,
	"nicolas.dufresne@collabora.com" <nicolas.dufresne@collabora.com>,
	"hverkuil+cisco@kernel.org" <hverkuil+cisco@kernel.org>
Cc: "sakari.ailus@linux.intel.com" <sakari.ailus@linux.intel.com>
Subject: Re: [PATCH v6 01/14] media: mediatek: vcodec: support vcp architecture
Date: Mon, 10 Aug 2026 03:05:50 +0000	[thread overview]
Message-ID: <275503aae6ff76a4c186efe665acf996dec9229d.camel@mediatek.com> (raw)
In-Reply-To: <c3abd49fc12e8cfab6993feb60b361ba07b6fb7d.camel@collabora.com>

On Mon, 2026-07-20 at 08:57 -0400, Nicolas Dufresne wrote:
> Hi,
> 
> Le lundi 20 juillet 2026 à 09:20 +0800, Kyrie Wu a écrit :
> > Some platforms expose the video codec through the VCP coprocessor.
> > Use the VCP architecture when the VCP coprocessor is found.
> > 
> > Signed-off-by: Kyrie Wu <kyrie.wu@mediatek.com>
> > Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
> > ---
> >  drivers/media/platform/mediatek/vcodec/common/mtk_vcodec_fw.h  | 1
> > +
> >  .../platform/mediatek/vcodec/decoder/mtk_vcodec_dec_drv.c      | 3
> > +++
> >  2 files changed, 4 insertions(+)
> > 
> > diff --git
> > a/drivers/media/platform/mediatek/vcodec/common/mtk_vcodec_fw.h
> > b/drivers/media/platform/mediatek/vcodec/common/mtk_vcodec_fw.h
> > index 300363a40..c1642fb09 100644
> > --- a/drivers/media/platform/mediatek/vcodec/common/mtk_vcodec_fw.h
> > +++ b/drivers/media/platform/mediatek/vcodec/common/mtk_vcodec_fw.h
> > @@ -14,6 +14,7 @@ struct mtk_vcodec_enc_dev;
> >  enum mtk_vcodec_fw_type {
> >  	VPU,
> >  	SCP,
> > +	VCP,
> >  };
> >  
> >  enum mtk_vcodec_fw_use {
> > diff --git
> > a/drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_drv
> > .c
> > b/drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_drv
> > .c
> > index e936ed8df..d220b645e 100644
> > ---
> > a/drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_drv
> > .c
> > +++
> > b/drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_drv
> > .c
> > @@ -379,6 +379,9 @@ static int mtk_vcodec_probe(struct
> > platform_device *pdev)
> >  	} else if (!of_property_read_u32(pdev->dev.of_node,
> > "mediatek,scp",
> >  					 &rproc_phandle)) {
> >  		fw_type = SCP;
> > +	} else if (!of_property_read_u32(pdev->dev.of_node,
> > "mediatek,vcp",
> > +					 &rproc_phandle)) {
> > +		fw_type = VCP;
> 
> I know I gave an rb a while ago, but then we reviewed the 8189 code,
> and we
> underlined that this makes little sense, and that fw_type should
> simply be set
> in the pdata. Same applies to mtk_vcodec_dec_get_chip_name(), the
> chip "name",
> or integer form of, is clearly a 1 to 1 match for pdata.
> 
> Nicolas

Hi Nicolas,

Thanks for the review.

I agree. Since the platform data is introduced in the MT8189 patch
series, I will move fw_type to the platform data and make
mtk_vcodec_dec_get_chip_name() derive the chip identifier from it in
the MT8189 series.

Best regards,
Kyrie
> 
> >  	} else {
> >  		dev_dbg(&pdev->dev, "Could not get vdec IPI
> > device");
> >  		return -ENODEV;


  reply	other threads:[~2026-08-10  3:06 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-20  1:20 [PATCH v6 00/14] media: mediatek: vcodec: support video decoder in mt8196 Kyrie Wu
2026-07-20  1:20 ` [PATCH v6 01/14] media: mediatek: vcodec: support vcp architecture Kyrie Wu
2026-07-20 12:57   ` Nicolas Dufresne
2026-08-10  3:05     ` Kyrie Wu (吴晗) [this message]
2026-07-20  1:20 ` [PATCH v6 02/14] media: mediatek: vcodec: add driver to support vcp Kyrie Wu
2026-07-20  1:20 ` [PATCH v6 03/14] media: mediatek: vcodec: add driver to support vcp encoder Kyrie Wu
2026-07-20  1:20 ` [PATCH v6 04/14] media: mediatek: vcodec: get different firmware ipi id Kyrie Wu
2026-07-20  1:20 ` [PATCH v6 05/14] media: mediatek: vcodec: get share memory address Kyrie Wu
2026-07-20  1:20 ` [PATCH v6 06/14] media: mediatek: vcodec: add debug information Kyrie Wu
2026-07-20  1:20 ` [PATCH v6 07/14] media: mediatek: vcodec: send share memory address to vcp Kyrie Wu
2026-07-20  1:20 ` [PATCH v6 08/14] dt-bindings: media: mediatek: vcodec: add decoder dt-bindings for mt8196 Kyrie Wu
2026-07-20  5:46   ` Krzysztof Kozlowski
2026-07-20  5:49     ` Krzysztof Kozlowski
2026-07-20  6:26       ` Kyrie Wu (吴晗)
2026-07-20 10:19         ` Krzysztof Kozlowski
2026-08-10  3:09           ` Kyrie Wu (吴晗)
2026-08-10  6:31             ` Krzysztof Kozlowski
2026-07-20  1:20 ` [PATCH v6 09/14] media: mediatek: vcodec: add decoder compatible to support mt8196 Kyrie Wu
2026-07-20  1:20 ` [PATCH v6 10/14] media: mediatek: vcodec: define MT8196 vcodec levels Kyrie Wu
2026-07-20  1:20 ` [PATCH v6 11/14] media: mediatek: vcodec: support 36bit iova address Kyrie Wu
2026-07-20  1:20 ` [PATCH v6 12/14] media: mediatek: vcodec: clean xpc status Kyrie Wu
2026-07-20  1:20 ` [PATCH v6 13/14] media: mediatek: decoder: fill av1 buffer size with picinfo Kyrie Wu
2026-07-20  1:20 ` [PATCH v6 14/14] media: mediatek: decoder: support av1 extend vsi Kyrie Wu

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=275503aae6ff76a4c186efe665acf996dec9229d.camel@mediatek.com \
    --to=kyrie.wu@mediatek.com \
    --cc=Andrew-CT.Chen@mediatek.com \
    --cc=Irui.Wang@mediatek.com \
    --cc=Yunfei.Dong@mediatek.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=benjamin.gaignard@collabora.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=fanwu01@zju.edu.cn \
    --cc=fshao@chromium.org \
    --cc=haoxiang_li2024@163.com \
    --cc=hverkuil+cisco@kernel.org \
    --cc=jacopo.mondi@ideasonboard.com \
    --cc=kees@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=laurent.pinchart+renesas@ideasonboard.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=matthias.bgg@gmail.com \
    --cc=mchehab@kernel.org \
    --cc=nicolas.dufresne@collabora.com \
    --cc=p.zabel@pengutronix.de \
    --cc=ribalda@chromium.org \
    --cc=robh@kernel.org \
    --cc=rongqianfeng@vivo.com \
    --cc=sakari.ailus@linux.intel.com \
    --cc=sebastian.fricke@collabora.com \
    --cc=tfiga@chromium.org \
    --cc=tiffany.lin@mediatek.com \
    --cc=wenst@chromium.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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