Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4565576ybz; Tue, 21 Apr 2020 02:59:00 -0700 (PDT) X-Google-Smtp-Source: APiQypLnvRSdi5PYn4PBeap9uBG6ub6gum9o2dkzdfwkPc5b5EEkd+nKdsCMjFHJHBbJva8dkiGX X-Received: by 2002:a17:906:695:: with SMTP id u21mr19565477ejb.187.1587463140719; Tue, 21 Apr 2020 02:59:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587463140; cv=none; d=google.com; s=arc-20160816; b=YI6ACuiecXa9VNMyOBkC7V4xqMSFHQLqXoLTDmI4xcu56VFgUsTx8we4lhzDj6fFRG aN/uBXsWBbDMLvIlYQBn1l2i4cEFCE56kO4s4DAyM/fnP7HIAi7jZyIOSev98JfrwHYv S15xwGwnfMiha/09HNAnT9wCYx84uWVDKLxkFQy2ZVCz2e1UM+ijiieIQScxrts5YsEd 9cClZ04havgDCvRiiD3WoRtUUwGxk46EjSn5cx3VOZVxwYDb3AgUEF8Oj+OUn3Ou34dm fH+q+vtuRtZ9Ox46fK429uAqILSqrKJcFKmXcgIGANzviSo7QCOcwNmcOVQJBBcv5Q58 5zFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=WrPXEec4AITga6eSmOansPu77CmlHKFEwJJ/qpS6qN0=; b=cqpE70pPHCHvvkuGx+LdjBdMIKJs5QiP2E01jA5Os2L0gFnKBpYoqlDg6ctyBCiUcI 8Jg3FAvh1VLq7mrsASwP1UCGIKWP1czVpxwaLYqXwxOrNeqs/AP7gnfcW5iQQNC710HE dhipXi+6m93XvkNACBaNAjcrcBR2KaV//NU0bLVfgTuHPfEAsIiR1+ii1kl6D0viGFGc pfGIYNcAUww69sXjJngKu3+I9Cx3wY5jUYaS+8rmSUztqaTOE/xmfj4iK900mUHUsRUO Ew2Qw8v5lDigLKskX+z8vHGSimWZk2+MIVWtKKN+9mT/dFg3TXM2THr2UwpPyM85VLv/ /jEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XzIAztT+; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk14si1156689ejb.124.2020.04.21.02.58.37; Tue, 21 Apr 2020 02:59:00 -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=pass header.i=@gmail.com header.s=20161025 header.b=XzIAztT+; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728519AbgDUJ5j (ORCPT + 99 others); Tue, 21 Apr 2020 05:57:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725920AbgDUJ5h (ORCPT ); Tue, 21 Apr 2020 05:57:37 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75A1EC061A0F; Tue, 21 Apr 2020 02:57:37 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id r26so2976110wmh.0; Tue, 21 Apr 2020 02:57:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=WrPXEec4AITga6eSmOansPu77CmlHKFEwJJ/qpS6qN0=; b=XzIAztT+mPDZUOwemSpHeuMKwyyom6UpYVUgvy9sW+plkI+MKvLzF0WIelhE/s4fQd FdQLN8/mrEzy8YyT/vrCk46xeGu1rRAkl3J50y4Yh38jJwMBYr6JPXv4HDCOXp4X5cWG lxvpYer0iUja0i9/cnq6qi/aczhg7taK+V1C5VP87hlnsVyIEmOwnZhYslHgNhX3JXrD ORLG/NSj8yZZwwLlP2ddoTtJ2uTmIToQwF4ZS6XQPk0/a6yw1DpWbNWVJ5hwKCRc6n0c 6wI68y7E6M8JbLE07W3iSrNsXtH7b30IUSO1Fnp/QOx08JPxGM7xlafgolcctTcz/meZ DFEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=WrPXEec4AITga6eSmOansPu77CmlHKFEwJJ/qpS6qN0=; b=MIbYpDbMej+FoMe+t0GbLxkeNs1fiQknuNQl9H3jV69KmxwnFzp1ky91n5vta7miFc Z2VTE4oB42lAtVfzMGvfg+KV3Mvg1zi/btMADJV4WqfjNSv5OhjlA4FZWPLWgtjQV48A 0toR8hllXTZXNhknqbqPIRCg5tbJKDzdt3QJgV/pTegTp2n9Sb4MLSw6ULO9IoyfmlwA 0b+cPKUgpPYOJnXZEvGPyeUFrixt3RoDDrDMXl3e4tK9eSJDKL/VmnQ9zwH8pq7Kdzrp 46ypMAYK6lpcdbraUSMr+vwC7gOlpDyWOQzX3xlQXkkT/qGBhyPkCo6VC2PqIfP/PvWU q99A== X-Gm-Message-State: AGi0PuYfXESpSPmUleg/XO59RGBrtpaNsXecCpX81yGFH9BsPgWHffX2 Zewsh4XvY1VQ+yRn90GrY26wbYmh X-Received: by 2002:a1c:9d8c:: with SMTP id g134mr4188162wme.79.1587463055735; Tue, 21 Apr 2020 02:57:35 -0700 (PDT) Received: from ?IPv6:2a02:810d:340:2e50:bc17:18d9:e349:724? ([2a02:810d:340:2e50:bc17:18d9:e349:724]) by smtp.gmail.com with ESMTPSA id 17sm2751403wmo.2.2020.04.21.02.57.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Apr 2020 02:57:35 -0700 (PDT) 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) To: Maxime Ripard Cc: "H. Nikolaus Schaller" , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , =?UTF-8?Q?Beno=c3=aet_Cousson?= , Tony Lindgren , 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 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> From: Philipp Rossak Message-ID: Date: Tue, 21 Apr 2020 11:57:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200420073842.nx4xb3zqvu23arkc@gilmour.lan> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 20.04.20 09:38, Maxime Ripard wrote: > Hi, > > On Fri, Apr 17, 2020 at 02:09:06PM +0200, Philipp Rossak wrote: >>>> I'm a bit skeptical on that one since it doesn't even list the >>>> interrupts connected to the GPU that the binding mandates. >>> >>> I think he left it out for a future update. >>> But best he comments himself. >> >> I'm currently working on those bindings. They are now 90% done, but they are >> not finished till now. Currently there is some mainline support missing to >> add the full binding. The A83T and also the A31/A31s have a GPU Power Off >> Gating Register in the R_PRCM module, that is not supported right now in >> Mainline. The Register need to be written when the GPU is powered on and >> off. >> >> @Maxime: I totally agree on your point that a demo needs to be provided >> before the related DTS patches should be provided. That's the reason why I >> added the gpu placeholder patches. >> Do you have an idea how a driver for the R_PRCM stuff can look like? I'm not >> that experienced with the clock driver framework. > > It looks like a power-domain to me, so you'd rather plug that into the genpd > framework. I had a look on genpd and I'm not really sure if that fits. It is basically some bit that verify that the clocks should be enabled or disabled. I think this is better placed somewhere in the clocking framework. I see there more similarities to the gating stuff. Do you think it is suitable to implement it like the clock gating? >> The big question is right now how to proceed with the A83T and A31s patches. >> I see there three options, which one do you prefer?: >> >> 1. Provide now placeholder patches and send new patches, if everything is >> clear and other things are mainlined >> 2. Provide now patches as complete as possible and provide later patches to >> complete them when the R_PRCM things are mainlined >> 3. Leave them out, till the related work is mainlined and the bindings are >> final. > > Like I said, the DT *has* to be backward-compatible, so for any DT patch that > you are asking to be merged, you should be prepared to support it indefinitely > and be able to run from it, and you won't be able to change the bindings later > on. I agree on your points. But is this also suitable to drivers that are currently off tree and might be merged in one or two years? >> Since this GPU IP core is very flexible and the SOC manufactures can >> configure it on their needs, I think the binding will extend in the future. >> For example the SGX544 GPU is available in different configurations: there >> is a SGX544 core and SGX544MPx core. The x stands for the count of the USSE >> (Universal Scalable Shader Engine) cores. For example the GPU in the A83T is >> a MP1 and the A31/A31s a MP2. > > Mali is in the same situation and it didn't cause much trouble. > Good to know. >> In addition to that some of the GPU's have also a 2D engine. > > In the same memory region, running from the same interrupts, or is it a > completely separate IP that happens to be sold by the same vendor? > What I know till now this is part of the PowerVR IP and not separated. So it should use the same memory region, clocks and interrupts. Cheers Philipp