Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2207328rwd; Sun, 28 May 2023 10:13:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6TtwmHfSQvIUiPs0fiXZXvTuBnrsRQrq8NjAcFGMXV2Ev25MmtpVePsRubVrwxp8TDcurE X-Received: by 2002:a17:903:230f:b0:1af:bb27:f55f with SMTP id d15-20020a170903230f00b001afbb27f55fmr10573011plh.55.1685294029365; Sun, 28 May 2023 10:13:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685294029; cv=none; d=google.com; s=arc-20160816; b=kJD/GtNQpAecC+eLc8InnLZzohHgolqam5Ay7XXrMXa8L/4zoHbBCCeb8mudxnCpLl vR9qlShgb6JcYoKTV4dW7vw5WBST9sIffILLpN8uZt39HW/voQmU5cGkdU1kXi8omIpb j8SrAXxT1v9+5vgfgPf6wci0Z3Zp5/OyAsg+Kq/tL1gAKxthaVDplNysBYbsgq88HDaz yCeAudDY6qnPsD+zLef0rq6EMHZxVzUgbO5ZKG/vNiztW+IF1ZknRJWC+Cs7z76LW6tK SA0IASgxa78F5Ep1+sAXKxOnx2mWAFt/BaKi/vKnekwFXHCcBGD6LD5ggkisjUgjveeY x91g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=g7Eywzf38vHNzeAvGHm32hmJRbhV7z4hn9gLUoLzusQ=; b=d7Zonlza2aXUdu17Lg6QGRuxn9ilGV19kzrU2bj2rRS2uxfb+syIR61qvesXZeINuO d4j18XVETyOx6IvZVP48Wz1UxgZ3pSCN9KCoullJ6bjBIM2glau7RBxYpLx2rLcWN4Yn S42LdcRO8esjJV4vKZG6KzXpEcyRQq3IXCNgQwBcQu2nYWnJnb+uwklsHPYKXHIG0lfq rY1S+iaYEDwMuB1cIWdxVUEFQw85pnGWV56e4d7dMcmo0XZ6DNyoyVvQAiT5pQVR+6Kl 6565cyBkZSiL9VFteyxHOU5u2mbfYbca0xtWdHdHADAEncOhJomwUkJ+e9u6ELLpheoZ RmxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pcU9oJJk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t13-20020a170902e84d00b001a69d1be184si328836plg.506.2023.05.28.10.13.34; Sun, 28 May 2023 10:13:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pcU9oJJk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229531AbjE1RHb (ORCPT + 99 others); Sun, 28 May 2023 13:07:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjE1RHa (ORCPT ); Sun, 28 May 2023 13:07:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31502AD; Sun, 28 May 2023 10:07:28 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B84F061027; Sun, 28 May 2023 17:07:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8EBF9C433D2; Sun, 28 May 2023 17:07:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685293647; bh=02eNU83y4XHlZerLmzEgp+h+i4TD1tIjvR6/Yoqa/uY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pcU9oJJkdv9FRz++NJPe3GIytmTzHHWNBBCudgvNpUV0ljHUN5ZZqP97v4zhagyp+ 1ZnegWDzt3n4jb05SVL3p/B2BDh/GixgIQztzkxRQHxViHVMJF+1X64kHxcqJPlPh6 tysbMtxqs8c8mM7pMPFWSnUE2aKXm8dQiyKwZuyLY+hwcT9+UTIrsj+UWkDn1yhY3M W10DlO57sH6XYe0yd7+vz/G4DhxcyzBg+y8K0tnsjNen2VyShgkpp+EgGzI9Na0xCg cPRQ9WAhQBwljc6k6Ue4fc0HLQOTLbyjwL/+54n/z5XGuqtvaHwMz/tOfvBBMwRRBo t+zZ2Y0eAtlVQ== Date: Sun, 28 May 2023 22:37:17 +0530 From: Manivannan Sadhasivam To: Konrad Dybcio Cc: Bjorn Andersson , Bjorn Andersson , Rob Clark , Dmitry Baryshkov , Sean Paul , Akhil P Oommen , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, johan@kernel.org, mani@kernel.org Subject: Re: [PATCH v2 2/3] arm64: dts: qcom: sc8280xp: Add GPU related nodes Message-ID: <20230528170717.GG2814@thinkpad> References: <20230523011522.65351-1-quic_bjorande@quicinc.com> <20230523011522.65351-3-quic_bjorande@quicinc.com> <097944b0-fa7a-ad4d-1c3d-e74ab2b977de@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <097944b0-fa7a-ad4d-1c3d-e74ab2b977de@linaro.org> X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 23, 2023 at 09:59:53AM +0200, Konrad Dybcio wrote: > > > On 23.05.2023 03:15, Bjorn Andersson wrote: > > From: Bjorn Andersson > > > > Add Adreno SMMU, GPU clock controller, GMU and GPU nodes for the > > SC8280XP. > > > > Signed-off-by: Bjorn Andersson > > Signed-off-by: Bjorn Andersson > > --- > It does not look like you tested the DTS against bindings. Please run > `make dtbs_check` (see > Documentation/devicetree/bindings/writing-schema.rst for instructions). > > > > > Changes since v1: > > - Dropped gmu_pdc_seq region from &gmu, as it shouldn't have been used. > > - Added missing compatible to &adreno_smmu. > > - Dropped aoss_qmp clock in &gmu and &adreno_smmu. > > > > arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 169 +++++++++++++++++++++++++ > > 1 file changed, 169 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > > index d2a2224d138a..329ec2119ecf 100644 > > --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > > +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > > @@ -6,6 +6,7 @@ > > > > #include > > #include > > +#include > > #include > > #include > > #include > > @@ -2331,6 +2332,174 @@ tcsr: syscon@1fc0000 { > > reg = <0x0 0x01fc0000 0x0 0x30000>; > > }; > > > > + gpu: gpu@3d00000 { > > + compatible = "qcom,adreno-690.0", "qcom,adreno"; > > + > > + reg = <0 0x03d00000 0 0x40000>, > > + <0 0x03d9e000 0 0x1000>, > > + <0 0x03d61000 0 0x800>; > > + reg-names = "kgsl_3d0_reg_memory", > > + "cx_mem", > > + "cx_dbgc"; > > + interrupts = ; > > + iommus = <&adreno_smmu 0 0xc00>, <&adreno_smmu 1 0xc00>; > > + operating-points-v2 = <&gpu_opp_table>; > > + > > + qcom,gmu = <&gmu>; > > + interconnects = <&gem_noc MASTER_GFX3D 0 &mc_virt SLAVE_EBI1 0>; > > + interconnect-names = "gfx-mem"; > > + #cooling-cells = <2>; > > + > > + status = "disabled"; > > + > > + gpu_opp_table: opp-table { > > + compatible = "operating-points-v2"; > > + > > + opp-270000000 { > > + opp-hz = /bits/ 64 <270000000>; > > + opp-level = ; > > + opp-peak-kBps = <451000>; > > + }; > > + > > + opp-410000000 { > > + opp-hz = /bits/ 64 <410000000>; > > + opp-level = ; > > + opp-peak-kBps = <1555000>; > > + }; > > + > > + opp-500000000 { > > + opp-hz = /bits/ 64 <500000000>; > > + opp-level = ; > > + opp-peak-kBps = <1555000>; > > + }; > > + > > + opp-547000000 { > > + opp-hz = /bits/ 64 <547000000>; > > + opp-level = ; > > + opp-peak-kBps = <1555000>; > > + }; > > + > > + opp-606000000 { > > + opp-hz = /bits/ 64 <606000000>; > > + opp-level = ; > > + opp-peak-kBps = <2736000>; > > + }; > > + > > + opp-640000000 { > > + opp-hz = /bits/ 64 <640000000>; > > + opp-level = ; > > + opp-peak-kBps = <2736000>; > > + }; > > + > > + opp-690000000 { > > + opp-hz = /bits/ 64 <690000000>; > > + opp-level = ; > > + opp-peak-kBps = <2736000>; > > + }; > > + }; > > + }; > > + > > + gmu: gmu@3d6a000 { > > + compatible = "qcom,adreno-gmu-690.0", "qcom,adreno-gmu"; > > + reg = <0 0x03d6a000 0 0x34000>, > > + <0 0x03de0000 0 0x10000>, > > + <0 0x0b290000 0 0x10000>; > > + reg-names = "gmu", "rscc", "gmu_pdc"; > > + interrupts = , > > + ; > > + interrupt-names = "hfi", "gmu"; > > + clocks = <&gpucc GPU_CC_CX_GMU_CLK>, > > + <&gpucc GPU_CC_CXO_CLK>, > > + <&gcc GCC_DDRSS_GPU_AXI_CLK>, > > + <&gcc GCC_GPU_MEMNOC_GFX_CLK>, > > + <&gpucc GPU_CC_AHB_CLK>, > > + <&gpucc GPU_CC_HUB_CX_INT_CLK>, > > + <&gpucc GPU_CC_HLOS1_VOTE_GPU_SMMU_CLK>; > > + clock-names = "gmu", > > + "cxo", > > + "axi", > > + "memnoc", > > + "ahb", > > + "hub", > > + "smmu_vote"; > > + power-domains = <&gpucc GPU_CC_CX_GDSC>, > > + <&gpucc GPU_CC_GX_GDSC>; > > + power-domain-names = "cx", > > + "gx"; > > + iommus = <&adreno_smmu 5 0xc00>; > > + operating-points-v2 = <&gmu_opp_table>; > > + > > + status = "disabled"; > I've recently discovered that - and I am not 100% sure - all GMUs are > cache-coherent. Could you please ask somebody at qc about this? > AFAIU, GMU's job is controlling the voltage and clock to the GPU. It doesn't do any data transactions on its own. So cache-coherent doesn't make sense to me. - Mani > > + > > + gmu_opp_table: opp-table { > > + compatible = "operating-points-v2"; > > + > > + opp-200000000 { > > + opp-hz = /bits/ 64 <200000000>; > > + opp-level = ; > > + }; > Missing 500MHz + RPMH_REGULATOR_LEVEL_SVS > > (that may be used in the future for hw scheduling) > > + }; > > + }; > > + > > + gpucc: clock-controller@3d90000 { > > + compatible = "qcom,sc8280xp-gpucc"; > > + reg = <0 0x03d90000 0 0x9000>; > > + clocks = <&rpmhcc RPMH_CXO_CLK>, > > + <&gcc GCC_GPU_GPLL0_CLK_SRC>, > > + <&gcc GCC_GPU_GPLL0_DIV_CLK_SRC>; > > + clock-names = "bi_tcxo", > > + "gcc_gpu_gpll0_clk_src", > > + "gcc_gpu_gpll0_div_clk_src"; > FWIW the driver doesn't use clock-names, but the binding defines it, > so I suppose it's fine > > > + > > + power-domains = <&rpmhpd SC8280XP_GFX>; > > + #clock-cells = <1>; > > + #reset-cells = <1>; > > + #power-domain-cells = <1>; > > + > > + status = "disabled"; > > + }; > > + > > + adreno_smmu: iommu@3da0000 { > > + compatible = "qcom,sc8280xp-smmu-500", "qcom,adreno-smmu", > > + "qcom,smmu-500", "arm,mmu-500"; > > + reg = <0 0x03da0000 0 0x20000>; > > + #iommu-cells = <2>; > > + #global-interrupts = <2>; > > + interrupts = , > > + , > > + , > > + , > > + , > > + , > > + , > > + , > > + , > > + , > > + , > > + , > > + , > > + ; > > + > > + clocks = <&gcc GCC_GPU_MEMNOC_GFX_CLK>, > > + <&gcc GCC_GPU_SNOC_DVM_GFX_CLK>, > > + <&gpucc GPU_CC_AHB_CLK>, > > + <&gpucc GPU_CC_HLOS1_VOTE_GPU_SMMU_CLK>, > > + <&gpucc GPU_CC_CX_GMU_CLK>, > > + <&gpucc GPU_CC_HUB_CX_INT_CLK>, > > + <&gpucc GPU_CC_HUB_AON_CLK>; > > + clock-names = "gcc_gpu_memnoc_gfx_clk", > > + "gcc_gpu_snoc_dvm_gfx_clk", > > + "gpu_cc_ahb_clk", > > + "gpu_cc_hlos1_vote_gpu_smmu_clk", > > + "gpu_cc_cx_gmu_clk", > > + "gpu_cc_hub_cx_int_clk", > > + "gpu_cc_hub_aon_clk"; > > + > > + power-domains = <&gpucc GPU_CC_CX_GDSC>; > > + > > + status = "disabled"; > This one should be dma-coherent (per downstream, plus 8350's mmu is for sure) > > Konrad > > + }; > > + > > usb_0_hsphy: phy@88e5000 { > > compatible = "qcom,sc8280xp-usb-hs-phy", > > "qcom,usb-snps-hs-5nm-phy"; -- மணிவண்ணன் சதாசிவம்