Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp16954rdb; Thu, 21 Dec 2023 01:10:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IGnxglFedBkrg6uucsZh+GZrzOMZ87S6aBO1mbV8dwwDS0AUve4d044DOh2WAyZLw9tTg4j X-Received: by 2002:a05:6359:5e22:b0:172:9d7c:57b1 with SMTP id pw34-20020a0563595e2200b001729d7c57b1mr740054rwb.28.1703149826096; Thu, 21 Dec 2023 01:10:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703149826; cv=none; d=google.com; s=arc-20160816; b=lrm/NSLPrwvt2DLobyNFABgUNIoT5TKMHRX2RV+VjrFBip6owVeVGYd33hYeA5JNG+ XwSqcjous5zV9DJastJ2g7AGDCDLDZLD/IezlggVy/TohQrrlRmtagouyE+UvYEPQvzj 0q+M9zeIBtJmQGOyfqa52evjMgHMgnxWYSy3zqQF46H9xSxEclA1VL7K/68sNB0cbPxw 6E8SSuNKIuSEx0MfrrNm7TF+Mbo17Psa1fIrVVjiuYrlpCrOzrPUkQd3ZLV4hx+cVVyI +3GRIBFyxmy2RAYOGBok411mJm54QRK5b/vw7rEY8AnkJN6DVQ1HH9e+uMfDk68apI/M j2Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=p5dHoof6CpVRm8H51oSiaRXPqfim6y17RnxB7xY56tk=; fh=qnx+k/gfSndb1FjiFLuHets0sPRyOKT2lfLiMVa806A=; b=kueHnV8hnFLElsWPBLF5K7rQQ0T/8SzyELVuJ9VBh+ST0viSP88kz+qfaGu0Eb6VPf h8XXqwW5N8srvwgNBK4OqPvUXWXMHvyUYo8iT4UeghIMVIchgyc3fO4HJwI7z2MVL2vF jZ5oj2xoHwavBg/VkRDzwc3XzVP4utfpdNQCmrEG5c3hMpfGbxrzUu5qYVXUBZ/Nx+V9 lu3x40chj1kgv/ujXFk6veICI+SAiMAEyZ2g/GHsMVr9uTGbuS3JDQf8oQCAFVp6m+PB AbcJt4OUeNTYWzz0t/Ri0HVpAZM7mYHSL/SRIWXrZ8KN3MEaQosZaxbn18YApCB3zg28 70fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e1Q8ENqa; spf=pass (google.com: domain of linux-kernel+bounces-8055-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8055-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id r23-20020aa78457000000b006cef68cfbdbsi1221650pfn.189.2023.12.21.01.10.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 01:10:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8055-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e1Q8ENqa; spf=pass (google.com: domain of linux-kernel+bounces-8055-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8055-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B23FB2808E7 for ; Thu, 21 Dec 2023 09:10:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9927D4BAA0; Thu, 21 Dec 2023 09:02:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="e1Q8ENqa" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B00F64A995; Thu, 21 Dec 2023 09:02:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E7F4C433C8; Thu, 21 Dec 2023 09:02:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703149377; bh=p5dHoof6CpVRm8H51oSiaRXPqfim6y17RnxB7xY56tk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=e1Q8ENqaz4vYwDVkG3agH8Y4nWY+t+vf+dRK4CWAox6pMkmw0lE5CiewwHUcSFbp4 RkWIsVyItgSe8hLDbVe7XR+8+z2jsXtz39K9l++LNfCrEsMCoGDX4J/MON0Esni2Wq iqrEvVOXEmgR6BzB7qFtyB6TBQUBqZsN45F0aj+iNwKZJOMYPXJ+ALJKqxfvUPDBQl rhlhXxneBAsPHxzhYuLmXAXUstbegLTSelvwcYG7NV5MOIsYEKj9nW+wOHWTOrkTWg ptmFIbWZj+VriBf6p9Woko7ugLT2AK5cwSkli+QHtfdeHxaYVqcZc5AQiBUtk0h6/e /8F23EhrD4POQ== Date: Thu, 21 Dec 2023 10:02:54 +0100 From: Maxime Ripard To: Andrew Davis Cc: "H. Nikolaus Schaller" , Frank Binns , Donald Robson , Matt Coster , Adam Ford , Ivaylo Dimitrov , Maarten Lankhorst , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , =?utf-8?Q?Beno=C3=AEt?= Cousson , Tony Lindgren , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Paul Cercueil , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-omap@vger.kernel.org, linux-mips@vger.kernel.org Subject: Re: [PATCH RFC 01/10] dt-bindings: gpu: Add PowerVR Series5 SGX GPUs Message-ID: <3dggaesvunebogkqvclz4imruhynrftkhsvmndm75vfccqwpa6@3zp3dgzpzta6> References: <6BC60156-89E2-4734-BD00-B49A9A6C1D7A@goldelico.com> <6gpehpoz54f5lxhmvirqbfwmq7dpgiroy27cljpvu66wtn7aqy@lgrh7wysyxnp> <22cny5aumc5wafsrjd3j55zcjbjf2viip64kfbjiqis2grtd6t@wg5dxeuzil6l> <3E03E913-48E1-49EC-A6C9-EAC1612E65E7@goldelico.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xdjqplvcfzg6bqbd" Content-Disposition: inline In-Reply-To: --xdjqplvcfzg6bqbd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 19, 2023 at 11:19:49AM -0600, Andrew Davis wrote: > On 12/18/23 4:54 AM, H. Nikolaus Schaller wrote: > >=20 > >=20 > > > Am 18.12.2023 um 11:14 schrieb Maxime Ripard : > > >=20 > > > On Mon, Dec 18, 2023 at 10:28:09AM +0100, H. Nikolaus Schaller wrote: > > > > Hi Maxime, > > > >=20 > > > > > Am 15.12.2023 um 14:33 schrieb Maxime Ripard : > > > > >=20 > > > > > > >=20 > > > > > > > It's for a separate architecture, with a separate driver, mai= ntained out > > > > > > > of tree by a separate community, with a separate set of requi= rements as > > > > > > > evidenced by the other thread. And that's all fine in itself,= but > > > > > > > there's very little reason to put these two bindings in the s= ame file. > > > > > > >=20 > > > > > > > We could also turn this around, why is it important that it's= in the > > > > > > > same file? > > > > > >=20 > > > > > > Same vendor. And enough similarity in architectures, even a log= ical sequence > > > > > > of development of versions (SGX =3D Version 5, Rogue =3D Versio= n 6+) behind. > > > > > > (SGX and Rogue seem to be just trade names for their architectu= re development). > > > > >=20 > > > > > Again, none of that matters for *where* the binding is stored. > > > >=20 > > > > So what then speaks against extending the existing bindings file as= proposed > > > > here? > > >=20 > > > I mean, apart from everything you quoted, then sure, nothing speaks > > > against it. > > >=20 > > > > > > AFAIK bindings should describe hardware and not communities or = drivers > > > > > > or who is currently maintaining it. The latter can change, the = first not. > > > > >=20 > > > > > Bindings are supposed to describe hardware indeed. Nothing was ev= er said > > > > > about where those bindings are supposed to be located. > > > > >=20 > > > > > There's hundreds of other YAML bindings describing devices of the= same > > > > > vendors and different devices from the same generation. > > > >=20 > > > > Usually SoC seem to be split over multiple files by subsystem. Not = by versions > > > > or generations. If the subsystems are similar enough they share the= same bindings > > > > doc instead of having one for each generation duplicating a lot of = code. > > > >=20 > > > > Here is a comparable example that combines multiple vendors and gen= erations: > > > >=20 > > > > Documentation/devicetree/bindings/usb/generic-ehci.yaml > > >=20 > > > EHCI is a single interface for USB2.0 controllers. It's a standard AP= I, > > > and is made of a single driver that requires minor modifications to d= eal > > > with multiple devices. > > >=20 > > > We're very far from the same situation here. > >=20 > > How far are we really? And, it is the purpose of the driver to handle d= ifferent cases. > >=20 > > That there are currently two drivers is just a matter of history and no= t a necessity. > >=20 > > >=20 > > > > > If anything it'll make it easier for you. I'm really not sure why= it is > > > > > controversial and you're fighting this so hard. > > > >=20 > > > > Well, you made it controversial by proposing to split what IMHO bel= ongs together. > > >=20 > > > No, reviews aren't controversial. > > > The controversy started when you chose > > > to oppose it while you could have just rolled with it. > >=20 > > Well, you asked > >=20 > > "I think it would be best to have a separate file for this, img,sgx.yaml > > maybe?" > >=20 > > and > >=20 > > "Because it's more convenient?" > >=20 > > I understood that as an invitation for discussing the pros and cons and= working out the > > most convenient solution. And that involves playing the devil's advocat= e which of course > > is controversial by principle. > >=20 > > Now, IMHO all the pros and cons are on the table and the question is wh= o makes a decision > > how to go. > >=20 >=20 > As much as I would land on the side of same file for both, the answer to = this question > is simple: the maintainer makes the decision :) So I'll respin with separ= ate binding files. > > The hidden unaddressed issue here is that by making these bindings separa= te it implies > they are not on equal footing (i.e. pre-series6 GPUs are not true "powerv= r" and so do not > belong in img,powervr.yaml). No, not really. As far as I'm concerned, the only unequal footing here is that one driver is in-tree and the other isn't, but this situation was handled nicely for Mali GPUs and lima that used to be in the same situation for example. The situation is simple, really: bindings are supposed to be backward compatible, period. If we ever make a change to that binding that isn't, you will be well within your right to complain because your driver is now broken. > So if no one objects I'd also like to do the rename of that > file as suggested before and have: >=20 > img,powervr-sgx.yaml > img,powervr-rogue.yaml Sounds good to me. Maxime --xdjqplvcfzg6bqbd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZYP/PgAKCRDj7w1vZxhR xecAAQCmVXhaAl7fZ7g76z9w82Bf0j4pTMmQspV3lIhk356FHgEA/xGS5jxCtd+G 824sqakZ7+v2m4QT6HsRgxUigbfQcQ8= =eukR -----END PGP SIGNATURE----- --xdjqplvcfzg6bqbd--