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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22047C4167B for ; Wed, 6 Dec 2023 15:56:59 +0000 (UTC) Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by mx.groups.io with SMTP id smtpd.web11.35039.1701878216668054061 for ; Wed, 06 Dec 2023 07:56:56 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@ti.com header.s=ti-com-17Q1 header.b=Q4eWB0zB; spf=pass (domain: ti.com, ip: 198.47.23.248, mailfrom: devarsht@ti.com) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3B6FuteV021288; Wed, 6 Dec 2023 09:56:55 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1701878215; bh=Oqfz0i+cqXg/L4eJoFdwHlHhnmLGLTkWYUDR3vOxQOo=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=Q4eWB0zBENNLp3aw+kUFjXCTGBu17hsir24sw6UWfWNAw0de4caoZdgxoZUajoocB XLT4Kg0JI+WepUu+JV1Q2V83DpBYQUsNvZ8j+QMzQpAbvyE9coS3pveiiwTB1Hdfvt QzlNKE4j4EnlbkeoSzmxBGNotnMkuMScV1Nz+5VU= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3B6Fut3D071205 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 6 Dec 2023 09:56:55 -0600 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 6 Dec 2023 09:56:55 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 6 Dec 2023 09:56:54 -0600 Received: from [172.24.227.6] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3B6FunSk011747; Wed, 6 Dec 2023 09:56:50 -0600 Message-ID: Date: Wed, 6 Dec 2023 21:26:49 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [meta-arago] [kirkstone] [PATCH] receipes-multimedia: gstreamer: Add patches for AM62P Content-Language: en-US To: Andrew Davis , , , , CC: , , , , , , , , , , , , References: <20231206144822.3194663-1-devarsht@ti.com> <3d7635f6-6ac7-4ec8-ae02-ab5d5e9b22d4@ti.com> From: Devarsh Thakkar In-Reply-To: <3d7635f6-6ac7-4ec8-ae02-ab5d5e9b22d4@ti.com> Content-Type: text/plain; charset="UTF-8" X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by lelv0143.ext.ti.com id 3B6FuteV021288 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 06 Dec 2023 15:56:59 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/15042 Hi Andrew, Thanks for the review. On 06/12/23 20:41, Andrew Davis wrote: > On 12/6/23 8:48 AM, Devarsh Thakkar wrote: >> Add patches to prefer contiguous video format and supporting >> dmabuf-import mode for video decoder. >> >> This is to support use-cases involving video codec with other componen= ts >> viz. GPU, Camera e.t.c. >> >=20 > Why does this "support use-cases"? What is wrong with the default forma= ts? For 0002-v4l2-Give-preference-to-contiguous-format-if-support.patch : I think we have certain blocks such as ISP, Camera seem to only support contigous formats which doesn't go well with gstreamer v4l2 which prefers non-contigous by default and we fail at negotiation. For 0001-v4l2-Changes-for-DMA-Buf-import-j721s2.patch : I think this is a local patch which complements a patch already made avai= lable in driver, this to support dmabuf import for the decoder. > Are these posted upstream to upstream gstreamer, if not why? Or should = we > instead fix the consuming software to handle the default non-contiguous > formats better.. >=20 For 0002-v4l2-Give-preference-to-contiguous-format-if-support.patch : The crux of the issue is that unlike v4l2 gstreamer has only single GST v= ideo format for both NV12 and NV12M (non-contigous) and it prefers to advertis= e latter during caps negotiation. I think there was a proposal long back to= have separate GST video formats for NV12 and NV12M but that didn't converge, perhaps they wanted to support this with a VideoMeta based scheme as per = logs [0]. Also I see other vendors also carrying similar patch like this locally. For 0001-v4l2-Changes-for-DMA-Buf-import-j721s2.patch : There again is discussion around this to support this in upstream but the upstream patch is not yet merged [1]. Anyways, I don't see any harm in applying these patches if they are helpi= ng achieve use-cases and I see they are already getting applied for other pl= atforms. [0] https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/41= 4 [1] : https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4550/= diffs?commit_id=3Db12eaf65f489bab50917e22242758e000d69df58 Regards Devarsh > Andrew >=20 >> Signed-off-by: Devarsh Thakkar >> --- >> =C2=A0 .../gstreamer/gstreamer1.0-plugins-good_1.20.%.bbappend=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 | 4 ++++ >> =C2=A0 1 file changed, 4 insertions(+) >> >> diff --git >> a/meta-arago-extras/recipes-multimedia/gstreamer/gstreamer1.0-plugins-= good_1.20.%.bbappend b/meta-arago-extras/recipes-multimedia/gstreamer/gst= reamer1.0-plugins-good_1.20.%.bbappend >> index a36c9760..e14a3c93 100644 >> --- >> a/meta-arago-extras/recipes-multimedia/gstreamer/gstreamer1.0-plugins-= good_1.20.%.bbappend >> +++ >> b/meta-arago-extras/recipes-multimedia/gstreamer/gstreamer1.0-plugins-= good_1.20.%.bbappend >> @@ -20,4 +20,8 @@ SRC_URI:append:am62axx =3D " \ >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 file://0002-v4l2-Give-preference-to-con= tiguous-format-if-support.patch \ >> =C2=A0 " >> =C2=A0 +SRC_URI:append:am62pxx =3D " \ >> +=C2=A0=C2=A0=C2=A0 file://0001-v4l2-Changes-for-DMA-Buf-import-j721s2= .patch \ >> +=C2=A0=C2=A0=C2=A0 file://0002-v4l2-Give-preference-to-contiguous-for= mat-if-support.patch \ >> +" >> =C2=A0 PR:append =3D ".arago0"