Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3950340rdh; Fri, 29 Sep 2023 07:09:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IELnVVVtis1h3SrnCTo+F6l3WCUH4qkU8YbFKcaqfh4njGq+maeLsIVt9EMjyZXgFGvwqS+ X-Received: by 2002:a17:90b:1e53:b0:276:6be8:8bfe with SMTP id pi19-20020a17090b1e5300b002766be88bfemr7018163pjb.23.1695996570500; Fri, 29 Sep 2023 07:09:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695996570; cv=none; d=google.com; s=arc-20160816; b=BVRLHGo+5pW4q0L1Z7SAiY/6Ksvjjv3OI+UKh7lJ90iNyNjJLhyRLl9MDYpP1Md5id u+U75J5Yzq+sv4wg30Y/RcIPQI6giGPJDLeqg1uMZfWUZFC6TUD8t3pj5WvPegk237fN UtCmQiY5muGfgIf9PM0BueMt6mwJGXLrCwOG6If/yuJOM5l4Z4SH+f+FXJEdNRm43BNL dCfG7CnF1MpSAn/sWiU7okOVyW8+XIUvSdU60YR+lsPhLK6dyR16F8TvWuHjetqjKThW UpyVFXjMctCEW4k+3mCnnntVyeNqp/7IU/9W5jAr2V8CUoqlsyEWrxamTHyo76pptU+i Xnsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wAuJIldlylLazF8i3TScbNcboOUKZBtuM6a9TiCJGNo=; fh=BcMKmDxZ2HmIljX47VhfgHwukg/uyUGEebLc5WVTr4w=; b=Fv2w3oo8po2fu9g7zvDmVcNQQrWEJd1R9FoxuHrg7JKktqomuIgfqWLc04M4VLv6m/ 08fEjH3tX/sMQeZyfboaKj5LX5NbWz6PHMcp3Uyzm0pbz6N0jjo1DigPlTxEI/SDjqBt cGLVLBFOQ+1GS9lKnmhJ+89Q2P2332Tc6gls9x9By2HGamuG7XPtpzs+k/6KZNampZTK 1/4Pt+n74IFO5wSq6rSbkXjT4ksbQuzQwL3q9xBh5HHjpgawYwz0AMt4NGHkywubtkCt sBVa8oyhRK9P34bDYAH0DkAT+nCtfQBPBz4l/qT+zlT6MslQr9X2RLQufMf/Jd1VwpCt Bnmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jICsUAQd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id d4-20020a17090ab30400b00262f798b614si1595513pjr.51.2023.09.29.07.09.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 07:09:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jICsUAQd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A46C980C0397; Fri, 29 Sep 2023 06:58:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232779AbjI2N6k (ORCPT + 99 others); Fri, 29 Sep 2023 09:58:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232748AbjI2N6j (ORCPT ); Fri, 29 Sep 2023 09:58:39 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAD08DB; Fri, 29 Sep 2023 06:58:37 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0392C433C8; Fri, 29 Sep 2023 13:58:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695995917; bh=CHEXPlpFmHD8rVxXqeAQGRdFG1pNx0Kk9AeUvrx4txE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jICsUAQdJA2wHFVYpRu0kl90yxId8Gfhtvm1Jl/X6SJ+/DXMq/vjzap5vOuFTtwjh +QzG99dKnAyH85c+D0/GnH0CxZ4mdGim0f+7MsehocvKAFmSRnkmao0TU1hnCm3td7 wnznvXqRkOfqKzo6wDlV+xrDRrjmKlBSQnVla0W6zbK3aQ+GLbiNaMsqnjUuK0dT2l EsIcZ7mC4cEw6wRZ3y4PcPckx75TRQDVLRrcrkE691z6isF1B9xWAnYOIRU73y1954 TkddNsCTIAjNYTDQuzD0ZFVdRS3WWXA6EMUhRQ/Q2xanFqKF+ovZKvS4hubVD62yld y+ZdJ/cft3Q9w== Date: Fri, 29 Sep 2023 14:58:31 +0100 From: Conor Dooley To: AngeloGioacchino Del Regno Cc: Moudy Ho =?utf-8?B?KOS9leWul+WOnyk=?= , "conor.dooley@microchip.com" , "linux-kernel@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , "robh+dt@kernel.org" , "linux-media@vger.kernel.org" , "chunkuang.hu@kernel.org" , "devicetree@vger.kernel.org" , "mchehab@kernel.org" , "daniel@ffwll.ch" , "p.zabel@pengutronix.de" , "conor+dt@kernel.org" , "dri-devel@lists.freedesktop.org" , "hverkuil-cisco@xs4all.nl" , "airlied@gmail.com" , "krzysztof.kozlowski+dt@linaro.org" , "matthias.bgg@gmail.com" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH v6 12/16] dt-bindings: display: mediatek: color: add compatible for MT8195 Message-ID: <20230929-renewably-landing-3f5a1d2eb27c@spud> References: <20230922072116.11009-1-moudy.ho@mediatek.com> <20230922072116.11009-13-moudy.ho@mediatek.com> <20230922-zebra-modify-87ff23c70bb3@spud> <20230922-overhung-deception-e9b461ba0372@spud> <7c445195e17e15d5af5fcb30ae53f76c713e958b.camel@mediatek.com> <20230927-crunching-prancing-36fe3eb79607@wendy> <825ac03b692043d48563620ad9542a4ee43211e7.camel@mediatek.com> <20230928-keep-attractor-1e7cd0df03b2@spud> <7dbadd86-f408-bc94-92fc-22f460eebb43@collabora.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="/VzKeb9rEqhIUOcg" Content-Disposition: inline In-Reply-To: <7dbadd86-f408-bc94-92fc-22f460eebb43@collabora.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 29 Sep 2023 06:58:47 -0700 (PDT) --/VzKeb9rEqhIUOcg Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 29, 2023 at 10:42:58AM +0200, AngeloGioacchino Del Regno wrote: > Il 28/09/23 18:49, Conor Dooley ha scritto: > > On Thu, Sep 28, 2023 at 02:52:23AM +0000, Moudy Ho (=E4=BD=95=E5=AE=97= =E5=8E=9F) wrote: > > > On Wed, 2023-09-27 at 10:47 +0100, Conor Dooley wrote: > > > > On Wed, Sep 27, 2023 at 07:19:28AM +0000, Moudy Ho (=E4=BD=95=E5=AE= =97=E5=8E=9F) wrote: > > > > > On Fri, 2023-09-22 at 16:51 +0100, Conor Dooley wrote: > > > > > > On Fri, Sep 22, 2023 at 04:49:14PM +0100, Conor Dooley wrote: > > > > > > > On Fri, Sep 22, 2023 at 03:21:12PM +0800, Moudy Ho wrote: > > > > > > > > Add a compatible string for the COLOR block in MediaTek > > > > > > > > MT8195 > > > > > > > > that > > > > > > > > is controlled by MDP3. > > > > > > > >=20 > > > > > > > > Signed-off-by: Moudy Ho > > > > > > > > --- > > > > > > > > .../devicetree/bindings/display/mediatek/mediatek,color.y= aml > > > > > > > > | 1 + > > > > > > > > 1 file changed, 1 insertion(+) > > > > > > > >=20 > > > > > > > > diff --git > > > > > > > > a/Documentation/devicetree/bindings/display/mediatek/mediat= ek > > > > > > > > ,col > > > > > > > > or.yaml > > > > > > > > b/Documentation/devicetree/bindings/display/mediatek/mediat= ek > > > > > > > > ,col > > > > > > > > or.yaml > > > > > > > > index f21e44092043..b886ca0d89ea 100644 > > > > > > > > --- > > > > > > > > a/Documentation/devicetree/bindings/display/mediatek/mediat= ek > > > > > > > > ,col > > > > > > > > or.yaml > > > > > > > > +++ > > > > > > > > b/Documentation/devicetree/bindings/display/mediatek/mediat= ek > > > > > > > > ,col > > > > > > > > or.yaml > > > > > > > > @@ -26,6 +26,7 @@ properties: > > > > > > > > - mediatek,mt2701-disp-color > > > > > > > > - mediatek,mt8167-disp-color > > > > > > > > - mediatek,mt8173-disp-color > > > > > > > > + - mediatek,mt8195-mdp3-color > > > > > > >=20 > > > > > > > How come this one is a "mdp3" not a "disp"? > > > > > >=20 > > > > > > I don't know what mdp3 means & googling gives me no answers. > > > > > > What's > > > > > > the > > > > > > "disp" one controlled by, since it isn't controlled by mdp3? > > > > > >=20 > >=20 > > > > > Mediatek's Media Data Path ver.3 (MDP3) is associated with MMSYS > > > > > and > > > > > acts as an independent driver that operates between VDEC and DISP. > > > > > By controlling multiple components, it carries out tasks like > > > > > converting color formats, resizing, and applying specific Picture > > > > > Quality (PQ) effects. > > > > > The driver can be found at "driver/media/platform/mediatek/mdp3". > > > > > Since the same hardware components are configured in both MDP3 and > > > > > DISP, considering previous discussions, I attemped to integrate > > > > > into a > > > > > single binding, named after the controlling user. > > > >=20 > > > > I'm still kinda struggling to understand this. Do you mean that the > > > > hardware can be controlled by either of the disp and mdp3 drivers, > > > > and > > > > a compatible containing "disp" would use one driver, and one > > > > containing > > > > "mdp3" would use another? > > > >=20 > >=20 > > > Sorry for any confusion caused by the software information. In the > > > video pipeline, after decoding, the data flows sequentially through t= wo > > > subsystems: MDP and DISP. Each subsystems has multiple IPs, with some > > > serving the same functionality as COLOR mentioned here. However, these > > > IPs cannot be controlled by different subsystems. Therefore, I includ= ed > > > the name of the subsystem after SoC to identify the configuration's > > > location. Is this approach feasible? > >=20 > > I'll have to leave things to the likes of Laurent to comment here I > > think. I don't understand this hardware well enough to have a useful > > opinion. It would seem like a different part of the datapath is a > > different device that should be documented separately, but I don't know > > enough to say for sure, sorry. >=20 > Hardware speaking, it's not a different device: those all reside in the > same block, except they are configured to route their I/O *either* to the > display pipeline, *or* to the MDP3 pipeline. Is it runtime configurable? > I would agree though in that this could be more flexible, as in, not > having a requirement to say "mdp3" or "disp", and managing the COLOR > blocks generically and letting the drivers to choose the actual path > transparently from what the devicetree compatible is, but there's no > practical point in doing this in the end, because there is an enough > number of (for example, COLOR) blocks such that one can be completely > reserved to MDP3 and one completely reserved to DISP. >=20 > So, we don't *need* this flexibility, but would be nice to have for > different (unexistant, basically) usecases... >=20 > The thing is, if we go for the maximum flexibility, the drawback is > that we'd see a number of nodes like >=20 > shared_block: something@somewhere { > compatible =3D "mediatek,something"; > } >=20 > mdp3: dma-controller@14001000 { > ...... > mediatek,color =3D <&color0>; > mediatek,stitch =3D <&stitch0>; > mediatek,hdr =3D <&hdr0>; > mediatek,aal =3D <&aal0>; > .... > long list of another 10 components > } >=20 > display: something@somewhere { > ...... > an even longer list than the MDP3 one > } >=20 > ...or perhaps even a graph, which is even longer in the end. >=20 > I'm not against this kind of structure, but I wonder if it's worth it. I have no idea, but it sounds like it isn't. Really what happened here, is not me having a particular thing I want to see, is getting a response that implied that there were two different compatibles for the same hardware, controlled by different drivers. It does seem to be that way at present, and this is not something I am willing to ack etc. That's not to say that I am _nacking_ it, just that I don't understand this enough to ack something that we usually tell people not to do. --/VzKeb9rEqhIUOcg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZRbYBwAKCRB4tDGHoIJi 0gDgAQD4uuPf+CMkS9i8umAoxxX46tlaJiF0ICduWocAJ7z4JwEAmoWZAI0hf7If KE6e8+SKB238W6F5JretaCDxsAbF5gU= =6dAo -----END PGP SIGNATURE----- --/VzKeb9rEqhIUOcg--