Devicetree
 help / color / mirror / Atom feed
* [PATCH v11 00/10] Enable video decoder & encoder for MT8189
@ 2026-10-10  9:23 Kyrie Wu
  2026-10-10  9:23 ` [PATCH v11 01/10] dt-bindings: media: mediatek: decoder: Add MT8189 mediatek,vcodec-decoder Kyrie Wu
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Kyrie Wu @ 2026-10-10  9:23 UTC (permalink / raw)
  To: Tiffany Lin, Andrew-CT Chen, Yunfei Dong, Mauro Carvalho Chehab,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
	AngeloGioacchino Del Regno, Kyrie Wu, Hans Verkuil,
	Nicolas Dufresne, Nathan Hebert, Arnd Bergmann, Irui Wang,
	George Sun, linux-media, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek
  Cc: Neil Armstrong, Andrzej Pietrasiewicz, Yilong Zhou

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/VCP series v8, which was used as the base for
      this export.
  [2] MT8196 encoder v8.

[1] https://patchwork.linuxtv.org/project/linux-media/cover/cover.1791619742.git.kyrie.wu@mediatek.com/
[2] https://patchwork.linuxtv.org/project/linux-media/cover/20260914073423.16131-1-irui.wang@mediatek.com/

Testing on MT8189 (reported for v10; not rerun for v11):

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 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 |   5 +-
 .../mediatek/vcodec/decoder/mtk_vcodec_dec.c  |   2 +-
 .../mediatek/vcodec/decoder/mtk_vcodec_dec.h  |   6 +
 .../vcodec/decoder/mtk_vcodec_dec_drv.c       |  68 ++---
 .../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, 279 insertions(+), 148 deletions(-)

-- 
2.51.0.windows.2


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-10-10  9:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-10  9:23 [PATCH v11 00/10] Enable video decoder & encoder for MT8189 Kyrie Wu
2026-10-10  9:23 ` [PATCH v11 01/10] dt-bindings: media: mediatek: decoder: Add MT8189 mediatek,vcodec-decoder Kyrie Wu
2026-10-10  9:23 ` [PATCH v11 02/10] media: mediatek: decoder: Add a new platform data member Kyrie Wu
2026-10-10  9:23 ` [PATCH v11 03/10] media: mediatek: decoder: Move firmware selection to platform data Kyrie Wu
2026-10-10  9:23 ` [PATCH v11 04/10] media: mediatek: vcodec: Refactor Decoder profile & level Handling Kyrie Wu
2026-10-10  9:23 ` [PATCH v11 05/10] media: mediatek: vcodec: Add VP9 Probability Size Configuration Kyrie Wu
2026-10-10  9:23 ` [PATCH v11 06/10] media: mediatek: vcodec: Fix vp9 4096x2176 fail for profile2 Kyrie Wu
2026-10-10  9:23 ` [PATCH v11 07/10] media: mediatek: vcodec: add decoder compatible to support MT8189 Kyrie Wu
2026-10-10  9:23 ` [PATCH v11 08/10] media: mediatek: vcodec: Fix media device node number Kyrie Wu
2026-10-10  9:23 ` [PATCH v11 09/10] dt-bindings: media: Add MT8189 mediatek,vcodec-encoder Kyrie Wu
2026-10-10  9:23 ` [PATCH v11 10/10] media: mediatek: encoder: Add MT8189 encoder compatible data Kyrie Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox