Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2146106ybz; Thu, 23 Apr 2020 12:24:31 -0700 (PDT) X-Google-Smtp-Source: APiQypLOImFzagZrVgBu4TBOHYUTOJ2/5zwZa3Z+aJm3x3phGrF6bcQd4LkIDl65LQFD+DmYg/Ii X-Received: by 2002:a17:907:2719:: with SMTP id w25mr4148642ejk.107.1587669871681; Thu, 23 Apr 2020 12:24:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587669871; cv=none; d=google.com; s=arc-20160816; b=Zb9YMzC49JBglK/lDqROje9FinVIJmwbUFkMtRJh3F5ArksB5TISx5/kU4Xx82SYJG fqPeXh/F+kURPPMhuSceypcKr63nl5QSl6ap7ucZMyS97xvsqBnpFX6Kfzux/zzy3UUO s0H0Dt6Y5q8MLFzDVZNWT0VFEQFK9wmGqdF4eS0kdN20e94Iwg4mEucgp+hbVibZ8/UA We7pCccfj4q0GZA1+q6UD+sCN3DF7xqlurUIxTQV5rOnYhm4zMgfjPYuOew9nOrl36gg I9g79p0y67ENWOVM0V/dYtsMm/drpYM21VcgiBPmaBTafZV+NKum7FUGjDxsj1kYzdcz w/cw== 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:organization:autocrypt:from:references:cc:to:subject :dkim-signature; bh=x7NZn7nlpSOqnkIXT5l3jRVWmAs32CPHZtB2TMxSM3g=; b=mLgYPcxw80HnTQwj5/QV0hHJw6LA0IFndju7TmA/7AKC/EJFWR/fW7jKEUsMR6c1IB JC7jJZE9Hx2VXNnIlK9Ds8kj5Az0ez4jKJ+yC3bJfGRVnl6wTp7hzhegyqNRybyXBPwk 2TLIlEFbzOGr1bmx4oosjWm9kQkV/+/bc53TLjPPcG6mnpf0Vp/buTCPDTBSGrrIKRm1 UAskCd8RF29nJPOMfsxyv3K1dO/koLnTq8fLr2yDpk+uZi+vm3Ee50gTTp5tyvUM8nUU 0BQ8fyLJVKIfiBz4w5pxcIGfHvrG+28u3RZGLezdRlLDb3FRZzsQ0NkHhGTKYk8IFeP0 AP/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=ansPsNh2; 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 u21si1797622ejz.518.2020.04.23.12.24.08; Thu, 23 Apr 2020 12:24:31 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=ansPsNh2; 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 S1728950AbgDWPAz (ORCPT + 99 others); Thu, 23 Apr 2020 11:00:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728945AbgDWPAy (ORCPT ); Thu, 23 Apr 2020 11:00:54 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0857CC09B042 for ; Thu, 23 Apr 2020 08:00:54 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id h2so6762790wmb.4 for ; Thu, 23 Apr 2020 08:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:autocrypt:organization:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=x7NZn7nlpSOqnkIXT5l3jRVWmAs32CPHZtB2TMxSM3g=; b=ansPsNh2nSLy7gZmpFMCDAWeF79eT5FadJke44IlCFoAGYSy7QyCyXSfQ41d8/jCMM rxEU0s78dHA+EWfp7Bpn4UhJeQsVa6JijFp+/eILBca3pRE7AcRXcu6ufX3yjGYhKoL/ PABBChMmhsG6JDYyqslPrf8TdMVeEl2v/oy29vFkNJTKbfzIsq/s0uHm/lQbbtODl2H5 ZnY730s9WMWD08jD1GATvoP1VHO6E1UvdTLPj4xcPS+iAmwPdSUjc9dAtnayothl44gV goatioRxz2VnpJ58YipqdCtnWI1+Li+R+UTG2oFiF5OEJD5HpafREm2kJN50UqxDIT8J +FJg== 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:autocrypt :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=x7NZn7nlpSOqnkIXT5l3jRVWmAs32CPHZtB2TMxSM3g=; b=s9J9JpPx2vKPIxBzRi2Yb5Hd3YKPKS8yf7AFdu+tKllxqtoAQ6dE4ZdelVsYePwDHC 8hlJvPngVKr66t8Jmbt2bKfDtluWNX5zw1OUMJ7u3YWQuVtxxGSQdmKoFiEH5H30mSFv H95LdSQoE5rQjwBm1j+UB8AQVeoZ7gEP1om6k1mvI/lf/zjLKKxSncGYypH5JOnN4lHW Nse5G72PIoVlC099f1ocAShQIYROXTprsBOJdsdD+CQMlFG0SdF70VENU0efnRbsoiI8 wUNLSnbdsg/sWqpjgFA0lIGay5Ka3Qk0FOg67mE/3GNX8kmqPernn/17xnhANst38s8A htiA== X-Gm-Message-State: AGi0PuYopXMpHfUEgvC4k1Au7NFbiGGw6vrmqLsiUZLogAzCBQagmOsg G2Ht81U4rE1ud7fP/TlR7mPvTw== X-Received: by 2002:a1c:3c87:: with SMTP id j129mr4437294wma.157.1587654052295; Thu, 23 Apr 2020 08:00:52 -0700 (PDT) Received: from ?IPv6:2a01:e35:2ec0:82b0:39cc:a07:8b48:cc56? ([2a01:e35:2ec0:82b0:39cc:a07:8b48:cc56]) by smtp.gmail.com with ESMTPSA id s17sm3717429wmc.48.2020.04.23.08.00.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Apr 2020 08:00:51 -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: "H. Nikolaus Schaller" , Maxime Ripard Cc: Mark Rutland , Tony Lindgren , James Hogan , Jonathan Bakker , "open list:DRM PANEL DRIVERS" , linux-mips@vger.kernel.org, Paul Cercueil , linux-samsung-soc@vger.kernel.org, Discussions about the Letux Kernel , Paul Burton , Krzysztof Kozlowski , David Airlie , Chen-Yu Tsai , Kukjin Kim , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Daniel Vetter , Rob Herring , linux-omap , arm-soc , Thomas Bogendoerfer , Philipp Rossak , OpenPVRSGX Linux Driver Group , Linux Kernel Mailing List , Ralf Baechle , =?UTF-8?Q?Beno=c3=aet_Cousson?= , kernel@pyra-handheld.com References: <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> <1AA57A0C-48E6-49BB-BB9A-2AAFFB371BCD@goldelico.com> <20200422151328.2oyqz7gqkbunmd6o@gilmour.lan> <07923B6C-4CCD-4B81-A98F-E19C43412A89@goldelico.com> From: Neil Armstrong Autocrypt: addr=narmstrong@baylibre.com; prefer-encrypt=mutual; keydata= xsBNBE1ZBs8BCA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X59R XVxVpM8zJPbk535ELUr6I5HQXnihQm8l6rt9TNuf8p2WEDxc8bPAZHLjNyw9a/CdeB97m2Tr zR8QplXA5kogS4kLe/7/JmlDMO8Zgm9vKLHSUeesLOrjdZ59EcjldNNBszRZQgEhwaarfz46 BSwxi7g3Mu7u5kUByanqHyA= Organization: Baylibre Message-ID: <43688597-4b99-8f4d-9ad5-548ddff07f52@baylibre.com> Date: Thu, 23 Apr 2020 17:00:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <07923B6C-4CCD-4B81-A98F-E19C43412A89@goldelico.com> Content-Type: text/plain; charset=utf-8 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 On 22/04/2020 18:09, H. Nikolaus Schaller wrote: > Hi Maxime, > >> Am 22.04.2020 um 17:13 schrieb Maxime Ripard : >> >> On Wed, Apr 22, 2020 at 09:10:57AM +0200, H. Nikolaus Schaller wrote: >>>> Am 22.04.2020 um 08:58 schrieb Maxime Ripard : >>>>> >>>>> 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. >>>> >>>> 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 can't, I don't have any knowledge about this GPU. > > Hm. Now I am fully puzzled. > You have no knowledge about this GPU but disagree with our proposal? > Is it just gut feeling? > > Anyways, we need to find a solution. Together. > >> >>> 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. >> >> If you need some inspiration, I guess you could look at the mali and vivante >> bindings once you have an idea of what the GPU needs across the SoCs it's >> integrated in. > > Well, I do not need inspiration, we need to come to an agreement about > img,pvrsgx.yaml and we need some maintainer to finally pick it up. > > I wonder how we can come to this stage. > > If I look at vivante,gc.yaml or arm,mali-utgard.yaml I don't > see big differences to what we propose and those I see seem to come > from technical differences between sgx, vivante, mali etc. So there > is no single scheme that fits all different gpu types. > > One thing we can learn is that "core" seems to be a de facto standard > for the core clock-name. An alternative "gpu" is used by nvidia,gk20a.txt. Usually IPs needs a few clocks: - pclk or apb or reg: the clock clocking the "slave" bus to serve the registers - axi or bus or ahb: the bus clocking the the "master" bus to get data from system memory - core: the actual clock feeding the GPU logic Sometimes you have a single clock for slave and master bus. But you can also have separate clocks for shader cores, .. this depends on the IP and it's architecture. The IP can also have memories with separate clocks, etc... But all these clocks can be source by an unique clock on a SoC, but different on another SoC, this is why it's important to list them all, even optional. You'll certainly have at least a reset signal, and a power domain, these should exist and be optional. Neil > > BR and thanks, > Nikolaus > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel >