Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3559801rwo; Mon, 24 Jul 2023 12:59:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlHdA/CSbGoVUaEshWoPiR/gbAsVljbj4iqsh61JG7exUaKClPLjtUALTJPHB7VQpr0L5X7S X-Received: by 2002:a05:6a00:2382:b0:668:7292:b2c2 with SMTP id f2-20020a056a00238200b006687292b2c2mr8646723pfc.2.1690228772006; Mon, 24 Jul 2023 12:59:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690228771; cv=none; d=google.com; s=arc-20160816; b=0Ah4zHe2ogUA6/l5wv/fnI2wsjN/WBBjQ1R1fyBQsrxoFx8hZtR9wXOATAUZVahK4n u753k1Hz5LpnO+fd5WTSAiPO7dw4u82r9b8nFIXQQCx7pRUPLnQSoGhAD+9fbFGTyDKn GGuQ/dOjzfDFNUYtYdnZqLpMkKS+wexLv3XyERfOzLbJfVCBaI6Ry5ukFHncFLt1FQQy NFHTQqX/bMVBmiGZoO5GKRVOLpB3O2uERuOhNdNpuSw1c1oze7kVKtPjVt/t2e/k44Jm XfdA0oDunttD+qjv45eGjy8wC+3lAibq2RI4NHju6Q5eAilMWBXijN2Lx0+AjHJP797U rVGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=XUVcthITwD6c64/gwi7/8Ao/ozIS5xv3W1HGd//C2eQ=; fh=QrUeYkdvzGUpqbyv3zwk1TUmWCEyTEn7JOdYkuPI+dY=; b=o8zOnDKFoQbuNzMvYhUl+1a8i297xgzUdsjcgqfRTEMeUZqWGD+ABgsLDo6tI18lIf vc6VJfkTvJQ7L9/Tr3s+OCRVdfwbQVNqrgRbWpd4UHcK4EkdMJWrR5fVPLlFQ7iyGntZ 9c2xA7p4rWDvraj0IJ30an+zN3yVdnNhOeNoNsi9o4pYdFWwO8QtLuZGm5L85tWj2TJv wbZKU3VgvLWHeJ11p2TbD1626TqwdRxhRScvdZYXTbEVaxINKQlz5NehjYL9eIysum0N FU1FEAdUEgjZH3TaBWZVzc/Qt1Trv5iv4uoJlyXaWika/bQxL8mckX8G/NAtqOV6RGuy irzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Mnt+n2sY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cd20-20020a056a00421400b0068255360b93si9504737pfb.332.2023.07.24.12.59.19; Mon, 24 Jul 2023 12:59:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Mnt+n2sY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229715AbjGXTxV (ORCPT + 99 others); Mon, 24 Jul 2023 15:53:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbjGXTxU (ORCPT ); Mon, 24 Jul 2023 15:53:20 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FA66A6; Mon, 24 Jul 2023 12:53:19 -0700 (PDT) Received: from nicolas-tpx395.localdomain (unknown [IPv6:2606:6d00:10:580::7a9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nicolas) by madras.collabora.co.uk (Postfix) with ESMTPSA id C71586603203; Mon, 24 Jul 2023 20:53:15 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1690228398; bh=PRkjd2dRnd+EsIcZtdobbsElZ0PbITrpELmxKRMqlKo=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=Mnt+n2sYU/YWGGZvargH1OGEje/HLjLt18r6XVEqBd4dZvWfIHmsbk18XE89NHhra yPBslOaf3pCymMVRLJa2JEUjkitZXlmJJCzG4PhTmAFKxGuaSLVm4AF75mBl8nHBmf Kl1ivsXDMwty7uprkXDqmrZG5uQE6f1LNsNjtG7/y9DR3OpcIAZQ2JTyVnj8nuqXGe J/jexIdXHa1jiTSaNZYA1PKPO7EoDDt/ovo4H7wBEbGLi+wE5I+YX7I7613aOazlBk pSswx//y+Ain44ezlEalmHDi0Tq6jN2ew9Z/TR61IY0sy6iKtIpT/kd8wW1qmfGpXs sSHrJahrhYIAA== Message-ID: <0c8877c39ced8e664c2901ad20fd36fbb90d9d4f.camel@collabora.com> Subject: Re: [PATCH v2,0/3] media: mediatek: vcodec: Add driver to support 10bit From: Nicolas Dufresne To: Yunfei Dong , =?ISO-8859-1?Q?N=EDcolas?= "F . R . A . Prado" , Hans Verkuil , AngeloGioacchino Del Regno , Benjamin Gaignard , Nathan Hebert Cc: Chen-Yu Tsai , Hsin-Yi Wang , Fritz Koenig , Daniel Vetter , Steve Cho , Mingjia Zhang , 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, Project_Global_Chrome_Upstream_Group@mediatek.com Date: Mon, 24 Jul 2023 15:53:07 -0400 In-Reply-To: <20230722074448.30671-1-yunfei.dong@mediatek.com> References: <20230722074448.30671-1-yunfei.dong@mediatek.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Yunfei. Le samedi 22 juillet 2023 =C3=A0 15:44 +0800, Yunfei Dong a =C3=A9crit=C2= =A0: > From: Yunfei Dong >=20 > Define two capture formats V4L2_PIX_FMT_MT2110R and > V4L2_PIX_FMT_MT2110T to support 10bit in mt8195, mt8199 and more. > Getting the size of each plane again when user space set 10bit > syntax to driver. >=20 > V4L2_PIX_FMT_MT2110R is used for H264, and V4L2_PIX_FMT_MT2110T > is used for AV1/VP9/HEVC. >=20 > patch 1 Add driver to support 10bit > patch 2 Add capture format V4L2_PIX_FMT_MT2110T to support 10bit tile mod= e > patch 3 Add capture format V4L2_PIX_FMT_MT2110R to support 10bit raster m= ode > --- > - compared with v1: > - Fix set non sps return -EINVAL issue. > - Driver test pass in mt8195/mt8188 with tast and Youtube. > - Run v4l2 compliance in mt8195/mt8188 pass. > - fluster test as below: > - h264: (JVT-FR-EXT: 29/69 JVT-AVC_V1: 95/135) > - h265: (JCT-VC-HEVC_V1: 142/147) > - vp9 : (VP9-TEST-VECTORS: 1/6 VP9-TEST-VECTORS: 276/305) > - av1 : (CHROMIUM-10bit-AV1-TEST-VECTORS: 22/23 CHROMIUM-8bit-AV1-TEST-= VECTORS: 11/13 > - AV1-TEST-VECTORS: Ran 237/239) Thanks for the fluster reports, I cannot confirm this yet, since it does no= t apply. Note that you have forgot to provide V4L2 compliance report as reque= sted. >=20 > - send the first version v1: > - Run 10bit VP9/AV1 fluster test pass. > - Will return error when the 10bit parameter no correctly in function mtk= _vdec_s_ctrl. > --- >=20 > Reference series: > [1]: this series depends on v6 which is send by Yunfei Dong. > message-id: 20230704131349.8354-1-yunfei.dong@mediatek.com >=20 > Mingjia Zhang (3): > media: mediatek: vcodec: Add capture format to support 10bit tile mode > media: mediatek: vcodec: Add capture format to support 10bit raster > mode > media: mediatek: vcodec: Add driver to support 10bit >=20 > .../media/v4l/pixfmt-reserved.rst | 13 ++ > .../mediatek/vcodec/decoder/mtk_vcodec_dec.c | 22 ++- > .../vcodec/decoder/mtk_vcodec_dec_drv.h | 5 + > .../vcodec/decoder/mtk_vcodec_dec_stateless.c | 144 +++++++++++++++++- vcodec/decoder directory no longer exists. Can you rebase your work please = ? Nicolas > drivers/media/v4l2-core/v4l2-common.c | 4 + > drivers/media/v4l2-core/v4l2-ioctl.c | 2 + > include/uapi/linux/videodev2.h | 2 + > 7 files changed, 188 insertions(+), 4 deletions(-) >=20