From: Kyrie Wu <kyrie.wu@mediatek.com>
To: Tiffany Lin <tiffany.lin@mediatek.com>,
Andrew-CT Chen <andrew-ct.chen@mediatek.com>,
Yunfei Dong <yunfei.dong@mediatek.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
Kyrie Wu <kyrie.wu@mediatek.com>,
Hans Verkuil <hverkuil@xs4all.nl>,
Nicolas Dufresne <nicolas.dufresne@collabora.com>,
Nathan Hebert <nhebert@chromium.org>,
Arnd Bergmann <arnd@arndb.de>, Irui Wang <irui.wang@mediatek.com>,
George Sun <george.sun@mediatek.com>,
<linux-media@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-mediatek@lists.infradead.org>
Cc: Neil Armstrong <neil.armstrong@linaro.org>,
Andrzej Pietrasiewicz <andrzejtp2010@gmail.com>,
Yilong Zhou <yilong.zhou@mediatek.com>
Subject: [PATCH v12 00/10] Enable video decoder & encoder for MT8189
Date: Tue, 17 Nov 2026 16:58:23 +0800 [thread overview]
Message-ID: <20261117085834.1464723-1-kyrie.wu@mediatek.com> (raw)
From: Kyrie Wu (吴晗) <kyrie.wu@mediatek.com>
This series enables the MT8189 video decoder and encoder. It adds the decoder
and encoder bindings and compatible data, updates decoder capability data,
and fixes two existing decoder issues. Patch 3 moves decoder firmware
selection from optional DT properties into platform data, matching the
encoder implementation.
Patch layout:
1 Add the MT8189 decoder binding.
2 Add decoder platform-data support.
3 Move decoder firmware selection to platform data.
4-5 Refactor decoder profile, level, and VP9 probability-size data.
6 Fix VP9 4K profile-2 decoding.
7 Add the MT8189 decoder compatible data.
8 Fix the media-device node number.
9-10 Add the MT8189 encoder binding and compatible data.
This series depends on:
[1] MT8196 decoder series v9, preceded by its VCP remoteproc
prerequisite, which was used as the base for this export.
[2] MT8196 encoder v8.
[1] https://patchwork.linuxtv.org/project/linux-media/cover/20261117032950.1425556-1-kyrie.wu@mediatek.com/
[2] https://patchwork.linuxtv.org/project/linux-media/cover/20260914073423.16131-1-irui.wang@mediatek.com/
H.264:
./fluster.py run -d GStreamer-H.264-V4L2SL-Gst1.0 -j2 -t 90
JVT-AVC_V1: 96/135 tests passed
VP9:
./fluster.py run -d GStreamer-VP9-V4L2SL-Gst1.0 -j2 -t 90
VP9-TEST-VECTORS: 276/305 tests passed
v4l2-compliance:
mtk-vcodec-enc (/dev/video2): 46/47 passed, 1 failed, 0 warnings
mtk-vcodec-dec (/dev/video3): 48/48 passed, 0 failed, 0 warnings
SCP upstream link:
https://patchwork.kernel.org/project/linux-mediatek/patch/20250811015922.32680-1-huayu.zong@mediatek.com/
DTSI upstream link:
https://lore.kernel.org/linux-mediatek/20251030134541.784011-12-jh.hsu@mediatek.com/T/#m847e35de0a5b18fac0ca0624a8559d84964ad5c7
Changes compared with v11:
- Rebased on mainline 666539eecdf4db623f5e3c3e55cf9f2dfad24aa4,
using the published MT8196 decoder v9 and its VCP prerequisite.
- Require two MT8189 decoder child clocks named soc-vdec and vdec.
Correct the clock description and remove Rob Herring's withdrawn
Acked-by from patch 1.
Changes compared with v10:
- Rebased on the latest media tree.
Changes compared with v9:
- Rebased on the latest media tree.
- Reordered the compatible string for DT bindings.
Changes compared with v1:
- Added v4l2-compliance test results.
- Added the SCP upstream link.
- Added hardware difference descriptions to the DT binding commit messages.
Kyrie Wu (10):
dt-bindings: media: mediatek: decoder: Add MT8189
mediatek,vcodec-decoder
media: mediatek: decoder: Add a new platform data member
media: mediatek: decoder: Move firmware selection to platform data
media: mediatek: vcodec: Refactor Decoder profile & level Handling
media: mediatek: vcodec: Add VP9 Probability Size Configuration
media: mediatek: vcodec: Fix vp9 4096x2176 fail for profile2
media: mediatek: vcodec: add decoder compatible to support MT8189
media: mediatek: vcodec: Fix media device node number
dt-bindings: media: Add MT8189 mediatek,vcodec-encoder
media: mediatek: encoder: Add MT8189 encoder compatible data
.../media/mediatek,vcodec-encoder.yaml | 2 +
.../media/mediatek,vcodec-subdev-decoder.yaml | 24 +-
.../mediatek/vcodec/decoder/mtk_vcodec_dec.c | 2 +-
.../mediatek/vcodec/decoder/mtk_vcodec_dec.h | 6 +
.../vcodec/decoder/mtk_vcodec_dec_drv.c | 64 ++---
.../vcodec/decoder/mtk_vcodec_dec_drv.h | 42 +--
.../vcodec/decoder/mtk_vcodec_dec_hw.c | 2 +-
.../vcodec/decoder/mtk_vcodec_dec_stateful.c | 16 ++
.../vcodec/decoder/mtk_vcodec_dec_stateless.c | 253 ++++++++++++------
.../vcodec/decoder/vdec/vdec_vp9_req_lat_if.c | 14 +-
.../vcodec/encoder/mtk_vcodec_enc_drv.c | 17 ++
11 files changed, 298 insertions(+), 144 deletions(-)
base-commit: 666539eecdf4db623f5e3c3e55cf9f2dfad24aa4
prerequisite-patch-id: 9f5a680ff9c58918d53c09c15d48e6ac33c643fc
prerequisite-patch-id: af540a1d2093ff0b635f96f3257fbf768302925e
prerequisite-patch-id: dee8633604fd7528e9ebcb9de25a3e42231f1f80
prerequisite-patch-id: f464ff9a2860b4fc07c051961e26c10047a1731d
prerequisite-patch-id: 1b9295ecd3895c60f6d5ab690f9c05987e1a551f
prerequisite-patch-id: a4abfe16fb9cfd55e44707491259f72f50783a33
prerequisite-patch-id: 472784c2603c63038b064dd36d867b9105a23eda
prerequisite-patch-id: 3e9f9d5336485e4bd3be2a8726d2c2428619e286
prerequisite-patch-id: 973ab0b15402c2096428453296d88f34fda6a700
prerequisite-patch-id: 051092a8424afa3002442799fb016651eb80f79f
prerequisite-patch-id: b04e354244d9eccb8355fc5a12426d762751de39
prerequisite-patch-id: e3c85085bf36c880690336d216901ffeb5c4e9ec
prerequisite-patch-id: d8a3b0e7f634d02d3ef0625a9ad0d7f2fcc20b31
prerequisite-patch-id: 2129e8aec7acd498dd7badbaa5610d03df7dc52d
prerequisite-patch-id: 9501dc5e63b8120861f9a1e61958e3bac18e5b33
prerequisite-patch-id: 7d41207a5d2d040ef77700c1d8a8bfca933ce040
prerequisite-patch-id: 1e5eb8ffad8ac92cea848342d2dec1b73683e75a
prerequisite-patch-id: 4489e714c6a152266194fdef803ba5fb48a685c6
prerequisite-patch-id: 341fd7d3230b150b3e17f298d1c06cfb2ad3ad5a
prerequisite-patch-id: de717dc84d8be3c25942021a48b8c26ba714a432
prerequisite-patch-id: b663c493b16bb7a21ad04ed6972b90bd5ed4960d
prerequisite-patch-id: 2b0b00b672f448f333e9def6b9864afc11df991a
prerequisite-patch-id: 9fbf014b290db330f44f6702777acdef8ed5d76f
prerequisite-patch-id: acac610274fe76d67cedcd2d9729659132ab891f
prerequisite-patch-id: afa01b367b18eebac4bded1729931f4b1d1fc2ae
prerequisite-patch-id: 2844bb2bbd9328add841f4b13bdbdd3c120ffa5f
prerequisite-patch-id: e7405e261fde65f2cbe4f9d78d15fd411fb749bb
--
2.51.0.windows.2
next reply other threads:[~2026-11-17 8:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 8:58 Kyrie Wu [this message]
2026-11-17 8:58 ` [PATCH v12 01/10] dt-bindings: media: mediatek: decoder: Add MT8189 mediatek,vcodec-decoder Kyrie Wu
2026-11-17 8:58 ` [PATCH v12 02/10] media: mediatek: decoder: Add a new platform data member Kyrie Wu
2026-11-17 8:58 ` [PATCH v12 03/10] media: mediatek: decoder: Move firmware selection to platform data Kyrie Wu
2026-11-17 8:58 ` [PATCH v12 04/10] media: mediatek: vcodec: Refactor Decoder profile & level Handling Kyrie Wu
2026-11-17 8:58 ` [PATCH v12 05/10] media: mediatek: vcodec: Add VP9 Probability Size Configuration Kyrie Wu
2026-11-17 8:58 ` [PATCH v12 06/10] media: mediatek: vcodec: Fix vp9 4096x2176 fail for profile2 Kyrie Wu
2026-11-17 8:58 ` [PATCH v12 07/10] media: mediatek: vcodec: add decoder compatible to support MT8189 Kyrie Wu
2026-11-17 8:58 ` [PATCH v12 08/10] media: mediatek: vcodec: Fix media device node number Kyrie Wu
2026-11-17 8:58 ` [PATCH v12 09/10] dt-bindings: media: Add MT8189 mediatek,vcodec-encoder Kyrie Wu
2026-11-17 8:58 ` [PATCH v12 10/10] media: mediatek: encoder: Add MT8189 encoder compatible data 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=20261117085834.1464723-1-kyrie.wu@mediatek.com \
--to=kyrie.wu@mediatek.com \
--cc=andrew-ct.chen@mediatek.com \
--cc=andrzejtp2010@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=arnd@arndb.de \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=george.sun@mediatek.com \
--cc=hverkuil@xs4all.nl \
--cc=irui.wang@mediatek.com \
--cc=krzk+dt@kernel.org \
--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=neil.armstrong@linaro.org \
--cc=nhebert@chromium.org \
--cc=nicolas.dufresne@collabora.com \
--cc=robh@kernel.org \
--cc=tiffany.lin@mediatek.com \
--cc=yilong.zhou@mediatek.com \
--cc=yunfei.dong@mediatek.com \
/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
all inboxes | Powered by JetHome®