Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp409335ybz; Wed, 22 Apr 2020 00:14:41 -0700 (PDT) X-Google-Smtp-Source: APiQypLrUu1EVgYqYXNwEKI6wzHSLRbzHkNogiqbAXdwe3jmnQgMa3jaKg/cFeoFoRoKkY2H8oEn X-Received: by 2002:a05:6402:1d38:: with SMTP id dh24mr4690865edb.9.1587539681097; Wed, 22 Apr 2020 00:14:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587539681; cv=none; d=google.com; s=arc-20160816; b=f4WBoWOri/o4U1W5urPnuXhWn5j93X0nX9hHUTtCshpe0PYmVADnYwQD2Lu9OxU39k fIFlhkfW3MnFfjwQgf1MgFrQsgVoxQ9vH/6Z29ww+WpGHWXXCghaMJ2ySFP7g34EGViG wrC3IViseRgJAC75zE5jIvfAvo7UGaLNu+HW3k6cj0D4RLDnQIlyN92+wD6D3Q6tZ5+u TQm7h2XlB9pTLyI9mwozlJZvm6FsZYPpBwy5xKbfaw9rRhjGkNlYTX+FFBZZJ1db2ogS ZzO845ez8JwQq3OeTM4WiHFv1sb0EHRKwTX4QdlUmi/9hm5EolJkYJ/wAq5We8JX9pXm ZJZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:mime-version :subject:dkim-signature; bh=x9g4xzih9SHZrw00RWoUucyKrGmw7cFSE/C08UHHhbo=; b=JUs0SDBcJFfMvfVDGaN2l6bHNjlXglGbzHSucTVqLMTh6gwb907pM/pL8nNfgSyBFD ProVi5cD/NugunEkmst/nAoyvEVlHt02hSuus6c/DjZ0bdSjxO3DF6md7zyG6ncB7EFs a8JTVcQyisa2rgLD3iXzZtRQHqRNNKGGjYTFL2K0K9uNTMnIVTV2dJu2+6oAdY0q3ZVq xOYzHrm9lbIyd+QktNXI5qVtpZAhL5wdKokF3QLXMn5H2/6b16y473pK1i9ybhW2krCH oS5wffbZTWfHMCKXlDo1VKkN7oJoaA9+VZ9O3Pl4hfWQ3/7ZMPJkNhyU/oJKfacqetjP pYKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=Yp8bxIcS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y18si3160956edt.554.2020.04.22.00.14.17; Wed, 22 Apr 2020 00:14:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=Yp8bxIcS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726435AbgDVHLL (ORCPT + 99 others); Wed, 22 Apr 2020 03:11:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725907AbgDVHLL (ORCPT ); Wed, 22 Apr 2020 03:11:11 -0400 Received: from mo6-p02-ob.smtp.rzone.de (mo6-p02-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5302::7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1ED86C03C1A6; Wed, 22 Apr 2020 00:11:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1587539467; s=strato-dkim-0002; d=goldelico.com; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=x9g4xzih9SHZrw00RWoUucyKrGmw7cFSE/C08UHHhbo=; b=Yp8bxIcS44j849A4MQvicvK+yl4C/uCwDApU0g29MmNVcsvsvTuHIxW7Wto7j197z5 L/kKtTxuuE6CG2/5RL0QZALxSiwemqThf8bOHNIz2OelEWuYlKXdwItCeKamyLUEhUKu aXNEUs4mRpVdtGsS/GqYALWb7M5mUrqPCCyusa48oz/SoYsR0a3FmBZxcgXBPOqrqxVS hCJMkxsZXJcTtXwyTqkQQHtp3CB9zTUo1AbAJa98QSgeyHi6M3S0SRVYUMqJ1L1+t5T5 YykSgrFeiE3kQ8VN5618m3/R4uS5M0DC065X+0zrl1hZJOpevb71xhVx/zyr09+VGDGv dBdw== X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBp5hRw/qOxWRk4dCym3NRQH2PRBNS67Wq1XcMUsV9wfG0LbuNrxINn" X-RZG-CLASS-ID: mo00 Received: from [IPv6:2001:16b8:263a:4100:a53d:b96b:debd:cf9d] by smtp.strato.de (RZmta 46.6.1 AUTH) with ESMTPSA id e09987w3M7Ao19A (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Wed, 22 Apr 2020 09:10:50 +0200 (CEST) Subject: Re: [PATCH v6 00/12] ARM/MIPS: DTS: add child nodes describing the PVRSGX GPU present in some OMAP SoC and JZ4780 (and many more) Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=us-ascii From: "H. Nikolaus Schaller" In-Reply-To: <20200422065859.quy6ane5v7vsy5tf@gilmour.lan> Date: Wed, 22 Apr 2020 09:10:57 +0200 Cc: Tony Lindgren , Philipp Rossak , Jonathan Bakker , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , =?utf-8?Q?Beno=C3=AEt_Cousson?= , Paul Cercueil , Ralf Baechle , Paul Burton , James Hogan , Kukjin Kim , Krzysztof Kozlowski , Chen-Yu Tsai , Thomas Bogendoerfer , "open list:DRM PANEL DRIVERS" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , linux-omap , OpenPVRSGX Linux Driver Group , Discussions about the Letux Kernel , kernel@pyra-handheld.com, linux-mips@vger.kernel.org, arm-soc , linux-samsung-soc@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <1AA57A0C-48E6-49BB-BB9A-2AAFFB371BCD@goldelico.com> References: <20200415101008.zxzxca2vlfsefpdv@gilmour.lan> <2E3401F1-A106-4396-8FE6-51CAB72926A4@goldelico.com> <20200415130233.rgn7xrtwqicptke2@gilmour.lan> <10969e64-fe1f-d692-4984-4ba916bd2161@gmail.com> <20200420073842.nx4xb3zqvu23arkc@gilmour.lan> <20200421112129.zjmkmzo3aftksgka@gilmour.lan> <20200421141543.GU37466@atomide.com> <20200422065859.quy6ane5v7vsy5tf@gilmour.lan> To: Maxime Ripard X-Mailer: Apple Mail (2.3124) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Maxime, > Am 22.04.2020 um 08:58 schrieb Maxime Ripard : >=20 > On Tue, Apr 21, 2020 at 07:29:32PM +0200, H. Nikolaus Schaller wrote: >>=20 >>> Am 21.04.2020 um 16:15 schrieb Tony Lindgren : >>>=20 >>> * Maxime Ripard [200421 11:22]: >>>> On Tue, Apr 21, 2020 at 11:57:33AM +0200, Philipp Rossak wrote: >>>>> I had a look on genpd and I'm not really sure if that fits. >>>>>=20 >>>>> It is basically some bit that verify that the clocks should be = enabled or >>>>> disabled. >>>>=20 >>>> No, it can do much more than that. It's a framework to control the = SoCs power >>>> domains, so clocks might be a part of it, but most of the time it's = going to be >>>> about powering up a particular device. >>>=20 >>> Note that on omaps there are actually SoC module specific registers. >>=20 >> Ah, I see. This is of course a difference that the TI glue logic has >> its own registers in the same address range as the sgx and this can't >> be easily handled by a common sgx driver. >>=20 >> This indeed seems to be unique with omap. >>=20 >>> And there can be multiple devices within a single target module on >>> omaps. So the extra dts node and device is justified there. >>>=20 >>> For other SoCs, the SGX clocks are probably best handled directly >>> in pvr-drv.c PM runtime functions unless a custom hardware wrapper >>> with SoC specific registers exists. >>=20 >> That is why we need to evaluate what the better strategy is. >>=20 >> So we have >> a) omap which has a custom wrapper around the sgx >> b) others without, i.e. an empty (or pass-through) wrapper >>=20 >> Which one do we make the "standard" and which one the "exception"? >> What are good reasons for either one? >>=20 >>=20 >> I am currently in strong favour of a) being standard because it >> makes the pvr-drv.c simpler and really generic (independent of >> wrapping into any SoC). >>=20 >> This will likely avoid problems if we find more SoC with yet another >> scheme how the SGX clocks are wrapped. >>=20 >> It also allows to handle different number of clocks (A31 seems to >> need 4, Samsung, A83 and JZ4780 one) without changing the sgx = bindings >> or making big lists of conditionals. This variance would be handled >> outside the sgx core bindings and driver. >=20 > I disagree. Every other GPU binding and driver is handling that just = fine, and > the SGX is not special in any case here. Can you please better explain this? With example or a description or a proposal? I simply do not have your experience with "every other GPU" as you have. And I admit that I can't read from your statement what we should do to bring this topic forward. So please make a proposal how it should be in your view. BR and thanks, Nikolaus