Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37367035rwd; Tue, 11 Jul 2023 13:16:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlHF9mb5jmVw7idqMorS0lNAl+aMgRytEd21Cnkr21vCmt0a/mxSJzq4od4MoYym5K2DUK56 X-Received: by 2002:a05:6a20:918d:b0:12c:e3c8:8c7 with SMTP id v13-20020a056a20918d00b0012ce3c808c7mr15555332pzd.41.1689106573467; Tue, 11 Jul 2023 13:16:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689106573; cv=none; d=google.com; s=arc-20160816; b=v+faNfm9qmDs+dM9dV8kBnPsBorH8aq3P62wQI6GX8q3QXM0W/oZLqyEzxr+qXE3gs lZ+aE7n5YNynMiWUxyj2XTiou8LD8wWwYhwn9dVmCpcQQkyI/cOYlywh/oZYrMUo9Y01 MTsc28ug4c+ZS1q5I/gAilMpDi7pUreW36B5ORBkQ508pS1zssYIuIjMhoLLjKMVuwXw PmozKi4RckGoOajG8Okt4lC8X0FcWG8a7OkzHMSecjVkEtrdTTZL+CEk0fAQ51i9xFp6 +I44U8z93mUnU9xm59++QcoAQ7U2KYmnUqJsyP0PX1SBq75HYk3LR6293pPyG9cxnpIZ JSaw== 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=Nuv8CKrhNKTxgw8r0QHSA8ebpe1bwNCzs9xbArEQGLQ=; fh=QrUeYkdvzGUpqbyv3zwk1TUmWCEyTEn7JOdYkuPI+dY=; b=K4wo5lx8Ix+g3mJKb4PbZE8wHd/fVoC47tge4ApYFflc6RlI9gxVORD3jUIK65diQr 80NcHWy3Bd8hbCJE9RTUrnnx0WptaamFl+PDG/SHSSDm16SyP/O319IX05xFq5wxh2Q0 ZMNxk+E+9cgqqwF5OZ65zwEcCRLqrSChcBX29UI+P8hG/V9Ldfvw8dgPtLinwbqBqckI 7WtN11To5o8IWaUb90BHZtCDyr6UXavtwg7dBmXoX0e4qwvEwIZW3Y8HUq9YMYVBBXNs rTc7zpTX8BUO2NzdtLIZeYsJ03NPs7XUcgvNO0AEkO2FBciMCM1C0aLgrA/zHm8kYFnm Obew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=nbAXQEpS; 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 bt27-20020a056a00439b00b0068094fd5451si1913053pfb.188.2023.07.11.13.15.59; Tue, 11 Jul 2023 13:16:13 -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=nbAXQEpS; 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 S230006AbjGKUGB (ORCPT + 99 others); Tue, 11 Jul 2023 16:06:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbjGKUGA (ORCPT ); Tue, 11 Jul 2023 16:06:00 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1778C11D; Tue, 11 Jul 2023 13:05:59 -0700 (PDT) Received: from nicolas-tpx395.localdomain (unknown [IPv6:2606:6d00:10:88d9::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 E981866015A0; Tue, 11 Jul 2023 21:05:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689105957; bh=dmJHQE21OJkYlm5RrWuAsMnx+LYphDxaC5h9NrucmaY=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=nbAXQEpSyr6TpxPgRQ4CRoYH+S3gOahvQDxRL1XQ3ccK5rpbWKM77r1LpOCI7bmKs +iEZx2PGRv6vnST8DCKduQP7OHymUyLvdz5W72eV/b2dJMUDvS8LC/yY2THm0LZDAT bejbi6hO00D71FYUuar7OnI3sfZ9QNI08V3QpC8wAJBqnI/Vgc0jAXhM7s2/a5t4pI +xTmiGtnxLUUSislQLDDdIBKCUQlfor00PCgeNn7LG8MWiQ07hLurwiT/gB3Iin9nl Fc0hcV3nACeBnZWbYWFHPl3WwJqMnE9ZQwR3f1wn6rlwApb3Tqwj7SnJQSxCnhY9bM 1e774RBjZYmuQ== Message-ID: Subject: Re: [PATCH 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: Tue, 11 Jul 2023 16:05:47 -0400 In-Reply-To: <20230711125749.15555-1-yunfei.dong@mediatek.com> References: <20230711125749.15555-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,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Le mardi 11 juillet 2023 =C3=A0 20:57 +0800, Yunfei Dong a =C3=A9crit=C2=A0= : > 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 userspace 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 > --- > - 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. Just ran AV1 and VP8 tests locally. VP8 completely fails (0/61) as the upda= te rejects the VP8 controls in mtk_vdec_s_ctrl. As for AV1, it completely regr= essed (0 success, there is "invalid tge_size" kind of errors). I've been testing = with the upstream firmware since you didn't mention any firmware update (md5 is 52d11ed015d4e2f6d4e9ce9a8fcf20e3). You can retrace my step using this kernel and normal Debian OS: https://gitlab.collabora.com/nicolas/linux/-/commits/mt8195-10bit-2 regards, Nicolas > --- >=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 | 15 ++ > .../mediatek/vcodec/decoder/mtk_vcodec_dec.c | 22 ++- > .../vcodec/decoder/mtk_vcodec_dec_drv.h | 5 + > .../vcodec/decoder/mtk_vcodec_dec_stateless.c | 140 +++++++++++++++++- > 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, 186 insertions(+), 4 deletions(-) >=20