Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5895631ybg; Tue, 22 Oct 2019 09:55:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOHv/jadatLuN3y2Yfwf3UDvjPrJmejF43uXUN8qLVw06A0t5XkAZmlQ7efR/VsGk8pkdZ X-Received: by 2002:a17:907:429c:: with SMTP id ny20mr27608932ejb.234.1571763324182; Tue, 22 Oct 2019 09:55:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571763324; cv=none; d=google.com; s=arc-20160816; b=HxwuZPbTH5Xce6av3Z+ZlPcctIRU1V7t96qlmURfvkW7hb0a6QxUqG5fS93ADxRpMJ rFB+3/QXHSYBnw09XUFXo/ng8na4h3jXTSGcELv6YZ/iy37QBNhlZ4U8pfnBac4qE81Q 1AwmN2dd4CHtc5rE1/FMcqhiJxa9lc1GaHRmT1OOEcNlx9ZQSC4sXpsNrs0gG56YNxaJ 2+/aoGQjNPUq3xN8o51zmwS+PWS/oNB/lC1TGmFEhzpgbWpv52OTraLgY4ox4ugzlR+k +el7INfvQtapCAr4oa5/hXErkBl6Ju1IP9EvDzh0u6RR86WItYpbNyim2x2ZaEwtqcud RdHw== 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:subject :mime-version:dkim-signature; bh=Pqwznfr/SwLHT8oLe0EESmmfaLFtEj2ZVFAktZnberQ=; b=Ue7X5iFS4QClH3wlCnOJa4xiGpzabTrWT4ZkA+kGmeUIIgZgO4GDBOGWT5W89yWmkn O2Ad/ExRQpoM1DrMSVbgtPinOvzulTqz1RgLAHMclI6zj42EF0SI+Q/L7W6LLnWN9cwn XQ4gKAx4T2cTRX9iG2IH/w6jatf8gbEu4oi+C+aFqGZj/eP2gYTIk88hlYa3ClLcZPwa DrbYWw1VGF/sZxkhTh+rQmlUeqQlSNsMZbQDLRxGeh2OWBsDx/gjvCY1/sGUPz4Qs7CW 5x+XZxC8Lrxeu4V5aldKXGqtVyyPGRspUZF96m/WIfAA0R/QvIhvoSRR25AIpRT9C5OA fJuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=e4pUg7w5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e47si3974172eda.73.2019.10.22.09.55.00; Tue, 22 Oct 2019 09:55:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=e4pUg7w5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732233AbfJVPME (ORCPT + 99 others); Tue, 22 Oct 2019 11:12:04 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([81.169.146.164]:20834 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731217AbfJVPMB (ORCPT ); Tue, 22 Oct 2019 11:12:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1571757118; 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=Pqwznfr/SwLHT8oLe0EESmmfaLFtEj2ZVFAktZnberQ=; b=e4pUg7w5M4VeqeJD5qwE1M23omT0TREZXfY58Mwj3ZGxkYGzKfw4uyTEzPc2zWRP8T zKBZZqHVK2Fat7DdhrN+FnU3oI0BndP30WKxAVy5RYYE3I6RPMqVMFDzwoi+kO9ApvR7 +BxUMcbmYSXRUVAoMfTQm0JKOpBP8m5EFm9Pjar1yHfGGFgRGCkEiIriomZVuDcbp7Je 1lQNIzwi4EBk8hCkAZRR6ciFg/5k7hjdt3NmpnMP87F33rIpM7W3m5VhtzEZJjQ/b2hC bXl9tOiUDFmmH865qsR/hYpOSwB6QVgo92p361lZvhOetmJiiNvOJnCJCwINeMS22dEl 9l/w== X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj7wpz8NMGH/zswDWtng==" X-RZG-CLASS-ID: mo00 Received: from mbp-13-nikolaus.fritz.box by smtp.strato.de (RZmta 44.28.1 DYNA|AUTH) with ESMTPSA id R0b2a8v9MFBmRcM (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Tue, 22 Oct 2019 17:11:48 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [PATCH 1/7] dt-bindings: gpu: pvrsgx: add initial bindings From: "H. Nikolaus Schaller" In-Reply-To: <20191022150202.GJ5610@atomide.com> Date: Tue, 22 Oct 2019 17:11:48 +0200 Cc: Rob Herring , David Airlie , Daniel Vetter , Mark Rutland , =?utf-8?Q?Beno=C3=AEt_Cousson?= , dri-devel , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , linux-omap , Discussions about the Letux Kernel , kernel@pyra-handheld.com Content-Transfer-Encoding: quoted-printable Message-Id: References: <20191021172557.GB5610@atomide.com> <20191022150202.GJ5610@atomide.com> To: Tony Lindgren 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 Tony, > Am 22.10.2019 um 17:02 schrieb Tony Lindgren : >=20 > * H. Nikolaus Schaller [191021 18:08]: >>=20 >>> Am 21.10.2019 um 19:25 schrieb Tony Lindgren : >>>=20 >>> * H. Nikolaus Schaller [191021 15:46]: >>>>> Am 21.10.2019 um 17:07 schrieb Rob Herring : >>>>> On Fri, Oct 18, 2019 at 1:46 PM H. Nikolaus Schaller = wrote: >>>>>> +Optional properties: >>>>>> +- timer: the timer to be used by the driver. >>>>>=20 >>>>> Needs a better description and vendor prefix at least. >>>>=20 >>>> I am not yet sure if it is vendor specific or if all >>>> SGX implementations need some timer. >>>>=20 >>>>>=20 >>>>> Why is this needed rather than using the OS's timers? >>>>=20 >>>> Because nobody understands the current (out of tree and >>>> planned for staging) driver well enough what the timer >>>> is doing. It is currently hard coded that some omap refer >>>> to timer7 and others use timer11. >>>=20 >>> Just configure it in the driver based on the compatible >>> value to keep it out of the dts. It's best to stick to >>> standard bindings. >>=20 >> IMHO leads to ugly code... Since the timer is not part of >> the SGX IPR module but one of the OMAP timers it is sort >> of hardware connection that can be chosen a little arbitrarily. >>=20 >> This is the main reason why I think adding it to a device tree >> source so that a board that really requires to use a timer >> for a different purpose, can reassign it. This is not possible >> if we hard-code that into the driver by scanning for >> compatible. In that case the driver must check board compatible >> names... >>=20 >> But if we gain a better understanding of its role in the driver >> (does it really need a dedicated timer and for what and which >> properties the timer must have) we can probably replace it. >=20 > Well how about just leave out the timer from the binding > for now, and just carry a patch for it until it is known > if/why it's really needed? >=20 > If it's needed, yeah I agree a timer property should be > used. Ok, fine. I'll split the bindings into a patch without and keep a private patch to add this for our development tree. Then we either need it or drop it. >=20 >>>>>> +- img,cores: number of cores. Defaults to <1>. >>>>>=20 >>>>> Not discoverable? >>>>=20 >>>> Not sure if it is. This is probably available in undocumented >>>> registers of the sgx. >>>=20 >>> This too, and whatever non-standrd other properities >>> you might have. >>=20 >> Here it is a feature of the SGX IPR of the SoC, i.e. >> describes that the hardware has one or two cores. >=20 > Here you can have a standard dts binding by putting this > into driver struct of_device_id match .data. Then when > somebody figures out how to read that from the hardware, > it can be just dropped. Hm. How should that work? Some SoC have the sgx544 as single core and others as dual core. This imho does not fit into the "img,sgx544-$revision" scheme which could be matched to. But maybe we do it the same as with the timer for the moment, i.e. keep it in some unpublished patch set. At the moment I have more problems understanding how the yaml thing works. I understand and fully support the overall goal, but it is quite difficult to get a start here. And there do not seem to be tools or scripts to help converting from old style text format (even if not perfect, this would be helpful) and I have no yaml editor that helps keeping the indentation correct. So this slows down a v2 a little bit. BR and thanks, Nikolaus