From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 902D314F125; Thu, 16 Oct 2025 06:08:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=60.244.123.138 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760594890; cv=none; b=r37DHoSbSLSd8OOYdiOTB48G2NEPh2qdOjKXREKOG3eIf5KEOHQnDSluFpJI6ciA+gxr+VWuHnVFU9IdaKHdpjUVcIYaE2fXR/ImYOb8AxxTxdWp20YDW/O2YjsK9DsVNfJGsP2Oj7yrOm4pkMbsluN9nYyMHnVq4mfZ0XJBGQM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760594890; c=relaxed/simple; bh=Z6fDXfe9sNivq7h7vH3dB76b+LdUCS/JC5etUdnTrOQ=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=HUKBCvBSaoibC38fZBNIMHeth0EU2VC8zjuffwQzzPMFqiIbmYBLcdjzPmEOGwVpIk5pEUgYgCP1fScjteKU88hus5anvsTz4CU2I+vs+oGsQQckJ4jTQWDcb7dCaCEuXBzV3vJSkH/moNDiTWMKJrfpNPL9u/ngYew6I6Sfh78= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=c1Pf6sGU; arc=none smtp.client-ip=60.244.123.138 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="c1Pf6sGU" X-UUID: 78dc2150aa5611f0ae1e63ff8927bad3-20251016 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=E0oquIYLrLE1amtmh63ZQhub7FekGzbBSz8gA9tAivI=; b=c1Pf6sGU+JQuMdUnTwQWBiZWxCVDMZQxdn74zuyzluxVpydXgDaDcdN+VZXmVWFxKS122HZu2cYFFON/0i0o8QU8qDP+WsmzThGtQJT9VByzRWBQ7sBSr0nBT8SyGfmBRd4by/cX0fgUR3gUOMS6O8LBXVGVi2PWE9MIS7jw/Tk=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.6,REQID:9a7399f4-231a-4cb4-ae16-fa4ff500f27f,IP:0,UR L:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION:r elease,TS:0 X-CID-META: VersionHash:a9d874c,CLOUDID:775e3ab9-795c-4f99-91f3-c115e0d49051,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102|836|888|898,TC:-5,Content:0|15|5 0,EDM:-3,IP:nil,URL:99|1,File:130,RT:nil,Bulk:nil,QS:nil,BEC:nil,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: 78dc2150aa5611f0ae1e63ff8927bad3-20251016 Received: from mtkmbs14n2.mediatek.inc [(172.21.101.76)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 275872380; Thu, 16 Oct 2025 14:08:02 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Thu, 16 Oct 2025 14:08:00 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1748.10 via Frontend Transport; Thu, 16 Oct 2025 14:07: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 , Christophe JAILLET , Sebastian Fricke , Nathan Hebert , Arnd Bergmann , Irui Wang , George Sun , , , , , CC: Neil Armstrong , Andrzej Pietrasiewicz Subject: [PATCH v4 0/8] Enable video decoder & encoder for MT8189 Date: Thu, 16 Oct 2025 14:07:38 +0800 Message-ID: <20251016060747.20648-1-kyrie.wu@mediatek.com> X-Mailer: git-send-email 2.46.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N 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-2 Add decoder compatible. Patches 3 Add profile and level supporting. Patches 4 Add core-only VP9 decoding supporting. Patches 5-6 fix some bugs. Patches 7-8 Adds encoder compatible. --- H264 test results: ./fluster.py run -d GStreamer-H.264-V4L2SL-Gst1.0 -j1 -t 90 JVT-AVC_V1 94/135 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/ 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/cover/20250510075357.11761-1-yunfei.dong@mediatek.com/ [2] https://patchwork.linuxtv.org/project/linux-media/cover/20250814085642.17343-1-kyrie.wu@mediatek.com/ Kyrie Wu (8): dt-bindings: media: mediatek: decoder: Add MT8189 mediatek,vcodec-decoder media: mediatek: vcodec: add decoder compatible to support MT8189 media: mediatek: vcodec: add profile and level supporting for MT8189 media: mediatek: vcodec: Add core-only VP9 decoding support for MT8189 media: mediatek: vcodec: fix vp9 4096x2176 fail for profile2 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 | 1 + .../vcodec/decoder/mtk_vcodec_dec_drv.c | 9 +++++- .../vcodec/decoder/mtk_vcodec_dec_drv.h | 1 + .../vcodec/decoder/mtk_vcodec_dec_stateless.c | 4 +++ .../vcodec/decoder/vdec/vdec_vp9_req_lat_if.c | 32 ++++++++++++------- .../vcodec/encoder/mtk_vcodec_enc_drv.c | 14 ++++++++ 7 files changed, 50 insertions(+), 13 deletions(-) -- 2.45.2