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 DC635FDEE5E for ; Fri, 24 Apr 2026 03:05:49 +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-Type: Content-Transfer-Encoding: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=7s6kM+55X0/tjsOTGbb2H455efulIyGYswcijZekl94=; b=FzpR7JRWP0Uurophb3/xLjK68e I8y3SAUi75yQ3/3zjcMETwip4SIWcpK6c2oSuvqtjiwwxvO5x9Oi4iEZU4RIakegKIzWr+zk/MqCG Irmoyq0ezBU5eDlXuFVGoxFNb/mxiH572/Mc7GOQPo+8p2he6zblV6uuLmPhMryONvv7kCCHlMGj3 EzK56WQX0FK6uJzkSTFgD58ipkkknWjtIxfl7atgdnTwwHHeqWdMHDBwbsrzn2+8S2nkAjyv/ff74 xGWtKnsPX24JG/FyqIv3qgL2bcO2xzAbL+Qtln7hJzddR7+JSaNO1UmjjeT71JOS2G/VA54EeLMKJ CIAL+ejQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1wG6rO-0000000CYw1-0RmW; Fri, 24 Apr 2026 03:05:42 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1wG6rK-0000000CYtu-3gju; Fri, 24 Apr 2026 03:05:40 +0000 X-UUID: 76089cbe3f8a11f19e7563141e833ce8-20260423 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=7s6kM+55X0/tjsOTGbb2H455efulIyGYswcijZekl94=; b=UkWGeDqqmaeDtIf16b2NCbw/y2ltpVBTHtTL3aKAWraGohLbKgwVvdZCAyEd02NBzVjfbaRMh+fMDHqsiscJgDBaulxiYBCGAjzHfSU1FXdr9McDFROy2KdBMveN2ZcGxO45EhvDFVZaugPaqD7A0WTfdOapl03fAKAM+A8ZpcI=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.12,REQID:bacaf683-d8f9-4032-a1bc-b02d82a1366d,IP:0,U RL:0,TC:0,Content:0,EDM:-25,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:-25 X-CID-META: VersionHash:e7bac3a,CLOUDID:1627d48f-6df4-4a3d-a7a4-fbdc42d669ce,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102|836|865|888|898,TC:-5,Content:0| 15|50,EDM:2,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_ULS,TF_CID_SPAM_SNR X-CID-RHF: D41D8CD98F00B204E9800998ECF8427E X-UUID: 76089cbe3f8a11f19e7563141e833ce8-20260423 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1219473066; Thu, 23 Apr 2026 20:05:34 -0700 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by MTKMBS09N1.mediatek.inc (172.21.101.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Fri, 24 Apr 2026 11:05:31 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.2562.29 via Frontend Transport; Fri, 24 Apr 2026 11:05:30 +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 v9 0/9] Enable video decoder & encoder for MT8189 Date: Fri, 24 Apr 2026 11:05:18 +0800 Message-ID: <20260424030527.10656-1-kyrie.wu@mediatek.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260423_200538_959921_CAE7DB64 X-CRM114-Status: GOOD ( 10.59 ) 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 This series have the follow changing: Firstly add mt8189 video decoder compatible, profile and level to support MT8189 kernel driver. Secondly fix some bugs, including vp 4K profile2 and media device node number bug. Lastly, add mt8189 video encoder compatible. This series has been tested with MT8189 tast test. Encoding and decoding worked for this chip. Patches 1 Add decoder compatible. Patches 1 fix decoder chip model. Patches 3-4 Add profile, level and probability size supporting. Patches 6 add decoder platform data to support MT8189. Patches 5 & 7 fix some bugs. Patches 8-9 Adds encoder compatible. --- H264 test results: ./fluster.py run -d GStreamer-H.264-V4L2SL-Gst1.0 -j2 -t 90 JVT-AVC_V1 Ran 96/135 tests successfully VP9 test results: ./fluster.py run -d GStreamer-VP9-V4L2SL-Gst1.0 -j2 -t 90 VP9-TEST-VECTORS Ran 276/305 tests successfully v4l2-compliance test results: Compliance test for mtk-vcodec-enc device /dev/video2: Total for mtk-vcodec-enc device /dev/video2: 47, Succeeded: 46, Failed: 1, Warnings: 0 Compliance test for mtk-vcodec-dec device /dev/video3: Total for mtk-vcodec-dec device /dev/video3: 48, Succeeded: 48, Failed: 0, Warnings: 0 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 v8: --Rebased on top of the latest media tree Changes compared with v7: --relocate the patches set --refactor decoder platform data patch --fix commit message errors Changes compared with v6: --refactor the patches of set compatible data, profile and level --add reviewer to commit messages --fix commit message errors Changes compared with v5: --refactor the patches of set compatible data, profile and level --add reviewer to commit messages --fix commit message errors Changes compared with v4: --update H264 & vp9 fluster test results --update vp9 single core decoder prob size setting and commit messages Changes compared with v3: --add reviewer to commit messages --Rebased on top of the latest media tree Changes compared with v2: --add H264 fluster test results --reorder compatible string for dt-bindings Changes compared with v1: --add v4l2-compliance test results --add scp upstream link --add HW difference discriptions for dt-bindings commit messages This series patches dependent on: [1] https://patchwork.linuxtv.org/project/linux-media/patch/20260328051630.7937-2-yunfei.dong@mediatek.com/ [2] https://patchwork.linuxtv.org/project/linux-media/patch/20260423073345.27402-2-irui.wang@mediatek.com/ Kyrie Wu (9): dt-bindings: media: mediatek: decoder: Add MT8189 mediatek,vcodec-decoder media: mediatek: decoder: Add a new platform data member 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 | 46 ++-- .../vcodec/decoder/mtk_vcodec_dec_drv.h | 35 ++- .../vcodec/decoder/mtk_vcodec_dec_hw.c | 2 +- .../vcodec/decoder/mtk_vcodec_dec_stateful.c | 14 + .../vcodec/decoder/mtk_vcodec_dec_stateless.c | 239 ++++++++++++------ .../vcodec/decoder/vdec/vdec_vp9_req_lat_if.c | 14 +- .../vcodec/encoder/mtk_vcodec_enc_drv.c | 14 + 11 files changed, 253 insertions(+), 126 deletions(-) -- 2.45.2