From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 17E08CA9EC5 for ; Sat, 10 Oct 2026 09:24:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=azLOPk6OsFJ2Ggfp1q3aWvwtqJcArDmv2/YPPX7LCOQ=; b=CGfLyM3J82+Y3eZf0GK+76VEq6 vsIH22pzlXIGhWfWTo+6J/nutp32XVKWb3GChzgvlJPWmwkdQdG12cJeuyl668dyhSMbmxv5s8bHL Vh/pJQYP0dO+m8GarRCw0UPNYJdMt64JE7efuYiGKJBlBrG1wRU1eRg1V9cACC9cXh0CjDUWW+wkB G4BolJPEozHH81lRiwIBXj1dCL9+MQEhK5kiEvT6zyt3sZqH0ZSGk26ccMdgdbD9kop3cBmHphCDF Y++Ps/yal5dPOW6tBKSMQvqYnoLId+xoVmGP/VVZvQFxo5Vm0+r3W+mySIdu0WnyuFAvkmkYnCM/8 g4v2s6Dg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xFTJL-00000007kCf-3EPV; Sat, 10 Oct 2026 09:24:11 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xFTJJ-00000007kAv-1Aoo; Sat, 10 Oct 2026 09:24:10 +0000 X-UUID: 559afb7ac48c11f1acbe4559397dec65-20261010 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=azLOPk6OsFJ2Ggfp1q3aWvwtqJcArDmv2/YPPX7LCOQ=; b=YGr8coh82csrfrjd197c43pmPKfVwztkD4aEDMr+MNAK5NRp+DbBmdYkZrogr1LyeyCSqj7zraUPCCYujUu9MrybNQTdF9WHyDIFalqKrUiQR76RMNrt0WV/pdaUaDw8GAOXYCtW0LDhNYBhEQ08Sj9YPJ/l2xqtURYGZK6v0jg=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.20,REQID:4e9bcf69-c3c3-48ad-a423-38e72cd078b2,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:291e20b,CLOUDID:9cc82c20-2f17-48f6-b8a0-2bb5971c52b4,B ulkID:nil,BulkQuantity:0,SF:102|836|865|888|898,TC:-5,Content:0|15|52|99,E DM:-3,IP:nil,URL:99|1,File:130,RT:0,Bulk:nil,QS:nil,BEC:-1,COL:0,OSI:0,OSA :0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 2,SSN|SDN X-CID-BAS: 2,SSN|SDN,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_ULS X-CID-RHF: D41D8CD98F00B204E9800998ECF8427E X-UUID: 559afb7ac48c11f1acbe4559397dec65-20261010 Received: from mtkmbs09n1.mediatek.inc [(172.21.101.35)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1187803696; Sat, 10 Oct 2026 02:24:03 -0700 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by MTKMBS14N1.mediatek.inc (172.21.101.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Sat, 10 Oct 2026 17:24:01 +0800 Received: from gcnsap21.gcn.mediatek.inc (10.17.81.22) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.2562.29 via Frontend Transport; Sat, 10 Oct 2026 17:23:59 +0800 From: Kyrie Wu 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 , , , , , CC: Neil Armstrong , Andrzej Pietrasiewicz , Yilong Zhou Subject: [PATCH v11 00/10] Enable video decoder & encoder for MT8189 Date: Sat, 10 Oct 2026 17:23:48 +0800 Message-ID: X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261010_022409_337163_C24DB0B0 X-CRM114-Status: GOOD ( 10.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Kyrie Wu (=E5=90=B4=E6=99=97) This series enables the MT8189 video decoder and encoder. It adds the decod= er 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.179161974= 2.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.32= 680-1-huayu.zong@mediatek.com/ DTSI upstream link: https://lore.kernel.org/linux-mediatek/20251030134541.784011-12-jh.hsu@medi= atek.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 message= s.=0D =0D 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(-) --=20 2.51.0.windows.2