Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4586282ybg; Mon, 21 Oct 2019 11:11:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3vyKm0aKFOa6kOeAokejQobQiVLDdj8vjF5j+17MTdD/jb1nnacwSe4TD1SIdo9YFODWp X-Received: by 2002:a17:906:2989:: with SMTP id x9mr1360774eje.318.1571681507671; Mon, 21 Oct 2019 11:11:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571681507; cv=none; d=google.com; s=arc-20160816; b=KAiC+evdfY+CuSaFnuo7RV8q8i4OH51TpIsX1ZTjt2sRtipIYuiL/3elacuv8cEnpv f19Bg18T1nOUWPIg8ZddLKJgQ/inSJ5NhnY6AN6Vy62feDTsKcqYyOF6aZuLhHSMBdIp CrNHYdDfXXgDlP7HQm/07fGY+t8YBV16LnrMrlCtdkpX4kFs/EfuevKXrlmA9LtoWfUy mPReFn3uSRomN5NPwsEyNaj/za0GVdy0f8seLL0FK0hlU8D3tvfWSncvBhJwS80YOf0n Yt7R7kr3JtJgf9HtX9FO5no8S/NwtaSX119zfESHVVmwbRBhgekC5fq+AxWEutUrVODJ YvDA== 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=qQ6zV65O4QTCFnYrPW5AcyzqoTnREY7XPbgJ3s1IDW8=; b=CjDMi6nRSR3BgyGh5dpSGJic1wCPd2xBzaOmjJ6brg/OKggajcNPQSyQSQnK0EPaG6 R7MRIyn81V0x1S9lk1DmlZXIpG0sCgc6yqdADJUsp4gOM5Kh75z+/OeLMbkMEUcktkbz OfsGwfIlVT9Syx1H/NVFfNyRYBWe+LSxkw894S/4nV36C+xfKkl2SdTyI1PhIw1uV7BN X2Lf9ft+zUeNEqVaXFLiPE2uJHRQDurzDsQs6Eqlr63O+dUczsX4Q2d2DqOaDraLNUS/ iu2pkmSCdYUUlBmFjg6+1x8W69HdZ3EUR0n4YZ4RFz2iMIw498c2RbTuNcMm4Z1Wgb03 5hMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=OH+QEsF7; 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 g25si9094781ejr.409.2019.10.21.11.11.22; Mon, 21 Oct 2019 11:11:47 -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=OH+QEsF7; 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 S1730016AbfJUSIF (ORCPT + 99 others); Mon, 21 Oct 2019 14:08:05 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.52]:35936 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729878AbfJUSIE (ORCPT ); Mon, 21 Oct 2019 14:08:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1571681282; 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=qQ6zV65O4QTCFnYrPW5AcyzqoTnREY7XPbgJ3s1IDW8=; b=OH+QEsF7qliA4AI9mvrnicGWFLMcpuY9MqzuAT7wW1sa+9GRkIx1vaVlSIbfhMBMv0 NS3/R2t97sq1iP1MJmGf20rkY9S3BMwUYAhsDKNxMD55NNt4f5tsm6CGOhBeoDqiVWqg vXZfuPoPYF7Uhl21FK6i9d/73TExoANaC6RynmClpWDpadd66hjnX9OrioTdY7rfNio4 aLr4Tg3urEHez4D9kZV8rV9GXCzW42jtu5ahFuRjmuqhhf4rOaqbzNuUecCpFtGCJhnn tfsNdV/WtxciK7Y+MifqSv+y+m/5RANFDMSQGaP32r6aM09ILJAuizAGWeFEPffg3KxA 5yUQ== X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj5Qpw97WFDVCbXA4Ewxc=" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 44.28.1 DYNA|AUTH) with ESMTPSA id R0b2a8v9LI7xM5P (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Mon, 21 Oct 2019 20:07:59 +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: <20191021172557.GB5610@atomide.com> Date: Mon, 21 Oct 2019 20:07:59 +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> 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 > 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. 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. 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... 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 >>>> +- 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. Here it is a feature of the SGX IPR of the SoC, i.e. describes that the hardware has one or two cores. BR, NIkolaus