Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2547751ybh; Mon, 9 Mar 2020 08:04:58 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtzKdzXivg1O4q9bpRLIlfAQdUmgz7Yn9rL1uzaa1IMstWoiCPD/4Nn6sqHXUf0F7VtP4x6 X-Received: by 2002:a9d:e83:: with SMTP id 3mr13252373otj.93.1583766298223; Mon, 09 Mar 2020 08:04:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583766298; cv=none; d=google.com; s=arc-20160816; b=MdBmcIwFdnluIPvlzYkcLX+0XezPSJ4Eugy7kp2agKPuy2vMchYp1aDKXh43dv9rw8 zHhuQxp1Alfdqj/upCZbsOYNSSQQcBB8kmUf3H9pVTOE4b58/ktUnEIFWjvve2opX2tb gsqTbiL/4yI1mDLEo/MFYynwMkDooo5eki+adZyZK1YbaRmlsMQH8RznFDTHCabhEI5f 4MUzlWkLgWINUPg/84w4O56Z+Us49QX/J4OTf3aYxTTq2ISmovn3v5Ug5VrtXhDpQMmf Y2wDhHM7wmVzzzWvKwtZRcDlnkfDwipATfuB0JgimoMyvs6O/bb1Pkt9pXRFRoPSff8g 59jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dmarc-filter:dkim-signature; bh=OfeXMwCy0tr21RuuUPUFSbLXXtySnJ162vCqOeqxiCI=; b=HWyQTqrjz90s3p3zALnUw1TwcxX6xuF6B8OUex8oY7PmlasLClXxeGWyWLCVe7trwJ RqLvZSL2xCmFMn63KmECL3yqU/xBMnuzrCetqdhqVpL8mJ+1lNvAAISsQ3bUIqFiAmLh X+PU2kcGSSDLnr7x3ahcH385rwYhwwpUTaHzJCgEqjSPfJ3IH7BI5LIs5Jk0ho4ISiBF lDD75MyFxbJViTDJojlwqrKWgRg0ZHF4w4sICynNUKqIgSwGo4Z6jrd468Khi3d1CBkA ovQiPyaOO0PZPdkL/sKYZhXJkEmC7+lJXFtUuFcWN3WeU5jUIsYZdYci6E41F3HMCz1L JGHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=UNx86Hn7; 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 f20si6637427oti.224.2020.03.09.08.04.40; Mon, 09 Mar 2020 08:04:58 -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=@mg.codeaurora.org header.s=smtp header.b=UNx86Hn7; 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 S1726911AbgCIPBd (ORCPT + 99 others); Mon, 9 Mar 2020 11:01:33 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:38082 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726772AbgCIPBd (ORCPT ); Mon, 9 Mar 2020 11:01:33 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1583766092; h=In-Reply-To: Content-Type: MIME-Version: References: Message-ID: Subject: Cc: To: From: Date: Sender; bh=OfeXMwCy0tr21RuuUPUFSbLXXtySnJ162vCqOeqxiCI=; b=UNx86Hn7iZEGNIvPAT23ozEp3x4Pvlr3y0s6XjWHKc3+EYezlL2Tyn3dOa9UHw7aFzGv/Fk0 baGSkaZbIstqXaSF5E3cqW+Bu6/JMSBJI0q7Az0M9BZlr6mnW9vBy54lsnmRCieNmfZIeS6R FE2zPkZTm9wxik9nPA9C/K2zhVM= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e665a31.7f3d35f82228-smtp-out-n03; Mon, 09 Mar 2020 15:01:05 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 3A50FC43637; Mon, 9 Mar 2020 15:01:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from jcrouse1-lnx.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jcrouse) by smtp.codeaurora.org (Postfix) with ESMTPSA id 0EE80C433CB; Mon, 9 Mar 2020 15:01:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0EE80C433CB Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=jcrouse@codeaurora.org Date: Mon, 9 Mar 2020 09:01:01 -0600 From: Jordan Crouse To: Brian Masney Cc: robh+dt@kernel.org, robdclark@gmail.com, sean@poorly.run, devicetree@vger.kernel.org, jeffrey.l.hugo@gmail.com, airlied@linux.ie, linux-arm-msm@vger.kernel.org, smasetty@codeaurora.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, sam@ravnborg.org Subject: Re: [Freedreno] [PATCH] dt-bindings: display: msm: gmu: move sram property to gpu bindings Message-ID: <20200309150101.GA29092@jcrouse1-lnx.qualcomm.com> Mail-Followup-To: Brian Masney , robh+dt@kernel.org, robdclark@gmail.com, sean@poorly.run, devicetree@vger.kernel.org, jeffrey.l.hugo@gmail.com, airlied@linux.ie, linux-arm-msm@vger.kernel.org, smasetty@codeaurora.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, sam@ravnborg.org References: <20200309111804.188162-1-masneyb@onstation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200309111804.188162-1-masneyb@onstation.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 09, 2020 at 07:18:04AM -0400, Brian Masney wrote: > The sram property was incorrectly added to the GMU binding when it > really belongs with the GPU binding instead. Let's go ahead and > move it. > > While changes are being made here, let's update the sram property > description to mention that this property is only valid for a3xx and > a4xx GPUs. The a3xx/a4xx example in the GPU is replaced with what was > in the GMU. Thank you kindly! I'll re-submit my stack on top of this. Acked-by: Jordan Crouse > Signed-off-by: Brian Masney > Fixes: 198a72c8f9ee ("dt-bindings: display: msm: gmu: add optional ocmem property") > --- > Background thread: > https://lore.kernel.org/lkml/20200303170159.GA13109@jcrouse1-lnx.qualcomm.com/ > > I started to look at what it would take to convert the GPU bindings to > YAML, however I am unsure of the complete list of "qcom,adreno-XYZ.W" > compatibles that are valid. > > .../devicetree/bindings/display/msm/gmu.txt | 51 ----------------- > .../devicetree/bindings/display/msm/gpu.txt | 55 ++++++++++++++----- > 2 files changed, 42 insertions(+), 64 deletions(-) > > diff --git a/Documentation/devicetree/bindings/display/msm/gmu.txt b/Documentation/devicetree/bindings/display/msm/gmu.txt > index bf9c7a2a495c..90af5b0a56a9 100644 > --- a/Documentation/devicetree/bindings/display/msm/gmu.txt > +++ b/Documentation/devicetree/bindings/display/msm/gmu.txt > @@ -31,10 +31,6 @@ Required properties: > - iommus: phandle to the adreno iommu > - operating-points-v2: phandle to the OPP operating points > > -Optional properties: > -- sram: phandle to the On Chip Memory (OCMEM) that's present on some Snapdragon > - SoCs. See Documentation/devicetree/bindings/sram/qcom,ocmem.yaml. > - > Example: > > / { > @@ -67,50 +63,3 @@ Example: > operating-points-v2 = <&gmu_opp_table>; > }; > }; > - > -a3xx example with OCMEM support: > - > -/ { > - ... > - > - gpu: adreno@fdb00000 { > - compatible = "qcom,adreno-330.2", > - "qcom,adreno"; > - reg = <0xfdb00000 0x10000>; > - reg-names = "kgsl_3d0_reg_memory"; > - interrupts = ; > - interrupt-names = "kgsl_3d0_irq"; > - clock-names = "core", > - "iface", > - "mem_iface"; > - clocks = <&mmcc OXILI_GFX3D_CLK>, > - <&mmcc OXILICX_AHB_CLK>, > - <&mmcc OXILICX_AXI_CLK>; > - sram = <&gmu_sram>; > - power-domains = <&mmcc OXILICX_GDSC>; > - operating-points-v2 = <&gpu_opp_table>; > - iommus = <&gpu_iommu 0>; > - }; > - > - ocmem@fdd00000 { > - compatible = "qcom,msm8974-ocmem"; > - > - reg = <0xfdd00000 0x2000>, > - <0xfec00000 0x180000>; > - reg-names = "ctrl", > - "mem"; > - > - clocks = <&rpmcc RPM_SMD_OCMEMGX_CLK>, > - <&mmcc OCMEMCX_OCMEMNOC_CLK>; > - clock-names = "core", > - "iface"; > - > - #address-cells = <1>; > - #size-cells = <1>; > - > - gmu_sram: gmu-sram@0 { > - reg = <0x0 0x100000>; > - ranges = <0 0 0xfec00000 0x100000>; > - }; > - }; > -}; > diff --git a/Documentation/devicetree/bindings/display/msm/gpu.txt b/Documentation/devicetree/bindings/display/msm/gpu.txt > index 7edc298a15f2..fd779cd6994d 100644 > --- a/Documentation/devicetree/bindings/display/msm/gpu.txt > +++ b/Documentation/devicetree/bindings/display/msm/gpu.txt > @@ -35,25 +35,54 @@ Required properties: > bring the GPU out of secure mode. > - firmware-name: optional property of the 'zap-shader' node, listing the > relative path of the device specific zap firmware. > +- sram: phandle to the On Chip Memory (OCMEM) that's present on some a3xx and > + a4xx Snapdragon SoCs. See > + Documentation/devicetree/bindings/sram/qcom,ocmem.yaml. > > -Example 3xx/4xx/a5xx: > +Example 3xx/4xx: > > / { > ... > > - gpu: qcom,kgsl-3d0@4300000 { > - compatible = "qcom,adreno-320.2", "qcom,adreno"; > - reg = <0x04300000 0x20000>; > + gpu: adreno@fdb00000 { > + compatible = "qcom,adreno-330.2", > + "qcom,adreno"; > + reg = <0xfdb00000 0x10000>; > reg-names = "kgsl_3d0_reg_memory"; > - interrupts = ; > - clock-names = > - "core", > - "iface", > - "mem_iface"; > - clocks = > - <&mmcc GFX3D_CLK>, > - <&mmcc GFX3D_AHB_CLK>, > - <&mmcc MMSS_IMEM_AHB_CLK>; > + interrupts = ; > + interrupt-names = "kgsl_3d0_irq"; > + clock-names = "core", > + "iface", > + "mem_iface"; > + clocks = <&mmcc OXILI_GFX3D_CLK>, > + <&mmcc OXILICX_AHB_CLK>, > + <&mmcc OXILICX_AXI_CLK>; > + sram = <&gpu_sram>; > + power-domains = <&mmcc OXILICX_GDSC>; > + operating-points-v2 = <&gpu_opp_table>; > + iommus = <&gpu_iommu 0>; > + }; > + > + gpu_sram: ocmem@fdd00000 { > + compatible = "qcom,msm8974-ocmem"; > + > + reg = <0xfdd00000 0x2000>, > + <0xfec00000 0x180000>; > + reg-names = "ctrl", > + "mem"; > + > + clocks = <&rpmcc RPM_SMD_OCMEMGX_CLK>, > + <&mmcc OCMEMCX_OCMEMNOC_CLK>; > + clock-names = "core", > + "iface"; > + > + #address-cells = <1>; > + #size-cells = <1>; > + > + gpu_sram: gpu-sram@0 { > + reg = <0x0 0x100000>; > + ranges = <0 0 0xfec00000 0x100000>; > + }; > }; > }; > > -- > 2.24.1 > > _______________________________________________ > Freedreno mailing list > Freedreno@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/freedreno -- The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project