Message ID | 20230315-topic-lagoon_gpu-v1-4-a74cbec4ecfc@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp426720wrt; Thu, 16 Mar 2023 04:31:55 -0700 (PDT) X-Google-Smtp-Source: AK7set+9DEsBPTNLRSHHP0rlmIjNYTPVuIzvgEoAGkB6jUwdax3ErmYxxhUHQyEDCRS0agS2HJHA X-Received: by 2002:a17:903:2310:b0:1a0:7584:f468 with SMTP id d16-20020a170903231000b001a07584f468mr3675942plh.0.1678966315197; Thu, 16 Mar 2023 04:31:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678966315; cv=none; d=google.com; s=arc-20160816; b=pVheTncCT9fNmmyOhucMW3yd5SWy6sR6GRIsOStPS6lG4YYDu7bK3SJsK06RazQ08w kqDWFK0MC6uF7ObDd3EYbTePvcrbtMrlrqmdtyJg0GCfgtpm4DA6ceMcZln3g3xx4D4R pHHBirDMrF8XOy8IaUMHsMFB4f+krld/kfpAXYJXAt8Fj5JoSab3k4Kh63G4Q2hcriJc oCXDOhB8dHO2cMi3QXguUrzCPyuKFOCcl3OlY4t4Df2CUZaJrX+6E0WPbGo10V3jiC5u 4GOnSaHs7S6SirmptUEf8ylq4nYNBAFW8yXdKl6aJYCdCFjtSVy1S9uzt2/5ruSK66bu oVxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=sgn5Rzo7pAc2gmOTsd/K9TH2CYoJoK0uHcYeDBOw4do=; b=hrtH/9nqFWxEfm25ol9rBjBYu9BZPp3yunKmzla7H+4tnK/6iv6Qe6WfZwVM5CS2ey 6r4TkY2eBQH8I+7v9srADu/SZKpmfFdcZMXvdixr748uBVvXQ0VNItL9FiBuuwueVSca Qi2LuiniAzh47WWmh6z4cG1TeEHCRHYbGJfiLa0xJNrdgeXM0fWC4t+/XvC+Gpl9Rxz6 bZJhMfW0JFNpZFdnYK+6XIgqGkbg/4yeATxFPLnJfiY4eCHQpGeRzrg5eAn0hQvZ7XcF T0pgaEZFB1hFFmPKkWZzIrGMLOiBkle5MY+5Zjwv1tTxnZHGVRzuN2Asa/s2bhyKFPLC lzUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rmh7PhiW; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kf16-20020a17090305d000b0019cf7f260acsi7777043plb.329.2023.03.16.04.31.39; Thu, 16 Mar 2023 04:31:55 -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=@linaro.org header.s=google header.b=rmh7PhiW; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230317AbjCPLRe (ORCPT <rfc822;ruipengqi7@gmail.com> + 99 others); Thu, 16 Mar 2023 07:17:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230306AbjCPLR3 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 16 Mar 2023 07:17:29 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBE89C2DAE for <linux-kernel@vger.kernel.org>; Thu, 16 Mar 2023 04:17:15 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id x17so1858633lfu.5 for <linux-kernel@vger.kernel.org>; Thu, 16 Mar 2023 04:17:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678965433; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=sgn5Rzo7pAc2gmOTsd/K9TH2CYoJoK0uHcYeDBOw4do=; b=rmh7PhiWwPJhfqlDzSXGbBnQMpSei6zWTF2DB0dQ6hUtQPkLziXDOktHmurImgqwJe f4h0g+V/1c07sHP/5Xtwc1Hze2w1r7voS4chW1k4uU5ksXmlZWdyskPEB5pj/nxSlr6i bOf4iePdeXhOdbUtRhdKM78u8PEHsxNUy5D5u6RQzgugD+RlY2oTxxV/JRfxQi8xP5vg 6OAHjM/BEw6M5mu2MPxiWal2GlN9vM4cAqla/XFdg1ORw/7dqXzcTNxdOOJMuFt17D7k VGJ8fTCG54lFtUmKV5U+jMXFeJ+qvmENtQiUBXKhpMobvEAnPjeTXY3u0XJ/bG+K3EKs PgTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678965433; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sgn5Rzo7pAc2gmOTsd/K9TH2CYoJoK0uHcYeDBOw4do=; b=txSOlh/7cfht+Y6loKH+09tkalHVaoweX6vY1oBgYQD6mMSx/15Vz28Nq+3Z7D5g14 jbAWICuilDysIWhh/JW+pjAxnEyJfRoxacJAcGQVawxqX6JwxZcQd5RESK55egjMO+Yk TUKbPv/QR1CE3MU6cOqgUQA8PlyS9RvoBrPuhr9JI9qDWnOROUKZ8lGBxW42ru+0nokk m9pqt3Prw7+bk7HqlZor867h9aAwkRDz0TJ7sDM9jtGc+c0nFtf5NH7Bj9EK2r4dBlVO 4Jm4xIVnkD7ukjkTvdhHoGelqgnQQiVGmdVSkaSkaDMUQSfrLPCjssnLwj2MDf4rfJnZ owoA== X-Gm-Message-State: AO0yUKVj+2SdK1RV3WqMe9YY1aVhp7u7Dc5duz2TAxJB0sDz5Yy0m3mS EKqP1k6FfbZCKO6RCo6DVCNb/g== X-Received: by 2002:ac2:4202:0:b0:4cc:a107:82f4 with SMTP id y2-20020ac24202000000b004cca10782f4mr2489622lfh.64.1678965433697; Thu, 16 Mar 2023 04:17:13 -0700 (PDT) Received: from [192.168.1.101] (abyj16.neoplus.adsl.tpnet.pl. [83.9.29.16]) by smtp.gmail.com with ESMTPSA id u28-20020ac243dc000000b004db2978e330sm1194222lfl.258.2023.03.16.04.17.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 04:17:13 -0700 (PDT) From: Konrad Dybcio <konrad.dybcio@linaro.org> Date: Thu, 16 Mar 2023 12:16:59 +0100 Subject: [PATCH 4/5] arm64: dts: qcom: sm6350: Add GPU nodes MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230315-topic-lagoon_gpu-v1-4-a74cbec4ecfc@linaro.org> References: <20230315-topic-lagoon_gpu-v1-0-a74cbec4ecfc@linaro.org> In-Reply-To: <20230315-topic-lagoon_gpu-v1-0-a74cbec4ecfc@linaro.org> To: Bjorn Andersson <andersson@kernel.org>, Andy Gross <agross@kernel.org>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org> Cc: Marijn Suijten <marijn.suijten@somainline.org>, Rob Herring <robh@kernel.org>, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio <konrad.dybcio@linaro.org>, Konrad Dybcio <konrad.dybcio@somainline.org>, Luca Weiss <luca.weiss@fairphone.com> X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1678965426; l=4819; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=JbPANomzx98OqH3bbW/ckEJ9GniS0ZAyl4OszIK8VjY=; b=q8EnwRUIAkOg07OqiaMV5aWHa2/9a8PcMNld4DFAi0BHSrjIzEd6WbwKJgD5CMTCoakRkM4ZGN0/ cmA9feRhCVYh9+CM1lEy8L+8C1qxytmNUAaqDtUr+2ufKQB4/Fu9 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_HTTP,RCVD_IN_SORBS_SOCKS,SPF_HELO_NONE,SPF_PASS autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760523782877947964?= X-GMAIL-MSGID: =?utf-8?q?1760523782877947964?= |
Series | SM6350 GPU | |
Commit Message
Konrad Dybcio
March 16, 2023, 11:16 a.m. UTC
From: Konrad Dybcio <konrad.dybcio@somainline.org> Add Adreno, GPU SMMU and GMU nodes to hook up everything that the A619 needs to function properly. Co-developed-by: Luca Weiss <luca.weiss@fairphone.com> Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> --- arch/arm64/boot/dts/qcom/sm6350.dtsi | 140 +++++++++++++++++++++++++++++++++++ 1 file changed, 140 insertions(+)
Comments
On Thu Mar 16, 2023 at 12:16 PM CET, Konrad Dybcio wrote: > From: Konrad Dybcio <konrad.dybcio@somainline.org> > > Add Adreno, GPU SMMU and GMU nodes to hook up everything that > the A619 needs to function properly. > > Co-developed-by: Luca Weiss <luca.weiss@fairphone.com> I believe my signoff is missing here since I'm Co-developed-by: Signed-off-by: Luca Weiss <luca.weiss@fairphone.com> > Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org> > Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> > --- > arch/arm64/boot/dts/qcom/sm6350.dtsi | 140 +++++++++++++++++++++++++++++++++++ > 1 file changed, 140 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi > index 60b68d305e53..e967d06b0ad4 100644 > --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi > @@ -1138,6 +1138,74 @@ compute-cb@5 { > }; > }; > > + gpu: gpu@3d00000 { > + compatible = "qcom,adreno-619.0", "qcom,adreno"; > + reg = <0 0x03d00000 0 0x40000>, > + <0 0x03d9e000 0 0x1000>; > + reg-names = "kgsl_3d0_reg_memory", > + "cx_mem"; > + interrupts = <GIC_SPI 300 IRQ_TYPE_LEVEL_HIGH>; > + > + iommus = <&adreno_smmu 0>; > + operating-points-v2 = <&gpu_opp_table>; > + qcom,gmu = <&gmu>; > + nvmem-cells = <&gpu_speed_bin>; > + nvmem-cell-names = "speed_bin"; > + > + status = "disabled"; > + > + zap-shader { > + memory-region = <&pil_gpu_mem>; > + }; > + > + gpu_opp_table: opp-table { > + compatible = "operating-points-v2"; > + > + opp-850000000 { > + opp-hz = /bits/ 64 <850000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L1>; > + opp-supported-hw = <0x02>; > + }; > + > + opp-800000000 { > + opp-hz = /bits/ 64 <800000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_TURBO>; > + opp-supported-hw = <0x04>; > + }; > + > + opp-650000000 { > + opp-hz = /bits/ 64 <650000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>; > + opp-supported-hw = <0x08>; > + }; > + > + opp-565000000 { > + opp-hz = /bits/ 64 <565000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_NOM>; > + opp-supported-hw = <0x10>; > + }; > + > + opp-430000000 { > + opp-hz = /bits/ 64 <430000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>; > + opp-supported-hw = <0xff>; > + }; > + > + opp-355000000 { > + opp-hz = /bits/ 64 <355000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_SVS>; > + opp-supported-hw = <0xff>; > + }; > + > + opp-253000000 { > + opp-hz = /bits/ 64 <253000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>; > + opp-supported-hw = <0xff>; > + }; > + }; > + }; > + > + > gpucc: clock-controller@3d90000 { > compatible = "qcom,sm6350-gpucc"; > reg = <0 0x03d90000 0 0x9000>; > @@ -1152,6 +1220,78 @@ gpucc: clock-controller@3d90000 { > #power-domain-cells = <1>; > }; > > + adreno_smmu: iommu@3d40000 { > + compatible = "qcom,sm6350-smmu-v2", "qcom,adreno-smmu", "qcom,smmu-v2"; > + reg = <0 0x03d40000 0 0x10000>; > + #iommu-cells = <1>; > + #global-interrupts = <2>; > + interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 231 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 364 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 365 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 366 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 367 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 368 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 369 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 370 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 371 IRQ_TYPE_LEVEL_HIGH>; > + > + clocks = <&gpucc GPU_CC_AHB_CLK>, > + <&gcc GCC_GPU_MEMNOC_GFX_CLK>, > + <&gcc GCC_GPU_SNOC_DVM_GFX_CLK>; > + clock-names = "ahb", > + "bus", > + "iface"; > + > + power-domains = <&gpucc GPU_CX_GDSC>; > + }; > + > + gmu: gmu@3d6a000 { > + compatible = "qcom,adreno-gmu-619.0", "qcom,adreno-gmu"; > + reg = <0 0x03d6a000 0 0x31000>, > + <0 0x0b290000 0 0x10000>, > + <0 0x0b490000 0 0x10000>; > + reg-names = "gmu", > + "gmu_pdc", > + "gmu_pdc_seq"; > + > + interrupts = <GIC_SPI 304 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-names = "hfi", > + "gmu"; > + > + clocks = <&gpucc GPU_CC_AHB_CLK>, > + <&gpucc GPU_CC_CX_GMU_CLK>, > + <&gpucc GPU_CC_CXO_CLK>, > + <&gcc GCC_DDRSS_GPU_AXI_CLK>, > + <&gcc GCC_GPU_MEMNOC_GFX_CLK>; > + clock-names = "ahb", > + "gmu", > + "cxo", > + "axi", > + "memnoc"; > + > + power-domains = <&gpucc GPU_CX_GDSC>, > + <&gpucc GPU_GX_GDSC>; > + power-domain-names = "cx", > + "gx"; > + > + iommus = <&adreno_smmu 5>; > + > + operating-points-v2 = <&gmu_opp_table>; > + > + status = "disabled"; > + > + gmu_opp_table: opp-table { > + compatible = "operating-points-v2"; > + > + opp-200000000 { > + opp-hz = /bits/ 64 <200000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_MIN_SVS>; > + }; > + }; > + }; > + > mpss: remoteproc@4080000 { > compatible = "qcom,sm6350-mpss-pas"; > reg = <0x0 0x04080000 0x0 0x4040>; > > -- > 2.39.2
On Thu Mar 16, 2023 at 12:16 PM CET, Konrad Dybcio wrote: > From: Konrad Dybcio <konrad.dybcio@somainline.org> > > Add Adreno, GPU SMMU and GMU nodes to hook up everything that > the A619 needs to function properly. > > Co-developed-by: Luca Weiss <luca.weiss@fairphone.com> > Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org> > Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> > --- > arch/arm64/boot/dts/qcom/sm6350.dtsi | 140 +++++++++++++++++++++++++++++++++++ > 1 file changed, 140 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi > index 60b68d305e53..e967d06b0ad4 100644 > --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi > @@ -1138,6 +1138,74 @@ compute-cb@5 { > }; > }; > > + gpu: gpu@3d00000 { > + compatible = "qcom,adreno-619.0", "qcom,adreno"; > + reg = <0 0x03d00000 0 0x40000>, > + <0 0x03d9e000 0 0x1000>; > + reg-names = "kgsl_3d0_reg_memory", > + "cx_mem"; > + interrupts = <GIC_SPI 300 IRQ_TYPE_LEVEL_HIGH>; > + > + iommus = <&adreno_smmu 0>; > + operating-points-v2 = <&gpu_opp_table>; > + qcom,gmu = <&gmu>; > + nvmem-cells = <&gpu_speed_bin>; > + nvmem-cell-names = "speed_bin"; What about adding interconnect already? I also have opp-peak-kBps additions in the opp table for that. I'll attach the diff I have at the end of the email. > + > + status = "disabled"; > + > + zap-shader { > + memory-region = <&pil_gpu_mem>; > + }; > + > + gpu_opp_table: opp-table { > + compatible = "operating-points-v2"; > + > + opp-850000000 { > + opp-hz = /bits/ 64 <850000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L1>; > + opp-supported-hw = <0x02>; > + }; > + > + opp-800000000 { > + opp-hz = /bits/ 64 <800000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_TURBO>; > + opp-supported-hw = <0x04>; > + }; > + > + opp-650000000 { > + opp-hz = /bits/ 64 <650000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>; > + opp-supported-hw = <0x08>; > + }; > + > + opp-565000000 { > + opp-hz = /bits/ 64 <565000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_NOM>; > + opp-supported-hw = <0x10>; > + }; > + > + opp-430000000 { > + opp-hz = /bits/ 64 <430000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>; > + opp-supported-hw = <0xff>; > + }; > + > + opp-355000000 { > + opp-hz = /bits/ 64 <355000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_SVS>; > + opp-supported-hw = <0xff>; > + }; > + > + opp-253000000 { > + opp-hz = /bits/ 64 <253000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>; > + opp-supported-hw = <0xff>; > + }; > + }; > + }; > + > + > gpucc: clock-controller@3d90000 { > compatible = "qcom,sm6350-gpucc"; > reg = <0 0x03d90000 0 0x9000>; > @@ -1152,6 +1220,78 @@ gpucc: clock-controller@3d90000 { > #power-domain-cells = <1>; > }; > > + adreno_smmu: iommu@3d40000 { This and gmu should be above gpucc @3d90000? > + compatible = "qcom,sm6350-smmu-v2", "qcom,adreno-smmu", "qcom,smmu-v2"; > + reg = <0 0x03d40000 0 0x10000>; > + #iommu-cells = <1>; > + #global-interrupts = <2>; > + interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 231 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 364 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 365 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 366 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 367 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 368 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 369 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 370 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 371 IRQ_TYPE_LEVEL_HIGH>; > + > + clocks = <&gpucc GPU_CC_AHB_CLK>, > + <&gcc GCC_GPU_MEMNOC_GFX_CLK>, > + <&gcc GCC_GPU_SNOC_DVM_GFX_CLK>; > + clock-names = "ahb", > + "bus", > + "iface"; > + > + power-domains = <&gpucc GPU_CX_GDSC>; > + }; > + > + gmu: gmu@3d6a000 { > + compatible = "qcom,adreno-gmu-619.0", "qcom,adreno-gmu"; > + reg = <0 0x03d6a000 0 0x31000>, > + <0 0x0b290000 0 0x10000>, > + <0 0x0b490000 0 0x10000>; > + reg-names = "gmu", > + "gmu_pdc", > + "gmu_pdc_seq"; > + > + interrupts = <GIC_SPI 304 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-names = "hfi", > + "gmu"; > + > + clocks = <&gpucc GPU_CC_AHB_CLK>, > + <&gpucc GPU_CC_CX_GMU_CLK>, > + <&gpucc GPU_CC_CXO_CLK>, > + <&gcc GCC_DDRSS_GPU_AXI_CLK>, > + <&gcc GCC_GPU_MEMNOC_GFX_CLK>; > + clock-names = "ahb", > + "gmu", > + "cxo", > + "axi", > + "memnoc"; > + > + power-domains = <&gpucc GPU_CX_GDSC>, > + <&gpucc GPU_GX_GDSC>; > + power-domain-names = "cx", > + "gx"; > + > + iommus = <&adreno_smmu 5>; > + > + operating-points-v2 = <&gmu_opp_table>; > + > + status = "disabled"; > + > + gmu_opp_table: opp-table { > + compatible = "operating-points-v2"; > + > + opp-200000000 { > + opp-hz = /bits/ 64 <200000000>; > + opp-level = <RPMH_REGULATOR_LEVEL_MIN_SVS>; > + }; > + }; > + }; > + > mpss: remoteproc@4080000 { > compatible = "qcom,sm6350-mpss-pas"; > reg = <0x0 0x04080000 0x0 0x4040>; > > -- > 2.39.2 Here's the diff I have for interconnect on top of this: diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi index 4954cbc2c0fc..51c5ac679a32 100644 --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi @@ -1142,6 +1142,8 @@ gpu: gpu@3d00000 { iommus = <&adreno_smmu 0>; operating-points-v2 = <&gpu_opp_table>; qcom,gmu = <&gmu>; + interconnects = <&gem_noc MASTER_GRAPHICS_3D 0 &clk_virt SLAVE_EBI_CH0 0>; + interconnect-names = "gfx-mem"; nvmem-cells = <&gpu_speed_bin>; nvmem-cell-names = "speed_bin"; @@ -1157,42 +1159,49 @@ gpu_opp_table: opp-table { opp-850000000 { opp-hz = /bits/ 64 <850000000>; opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L1>; + opp-peak-kBps = <8371200>; opp-supported-hw = <0x02>; }; opp-800000000 { opp-hz = /bits/ 64 <800000000>; opp-level = <RPMH_REGULATOR_LEVEL_TURBO>; + opp-peak-kBps = <8371200>; opp-supported-hw = <0x04>; }; opp-650000000 { opp-hz = /bits/ 64 <650000000>; opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>; + opp-peak-kBps = <6220000>; opp-supported-hw = <0x08>; }; opp-565000000 { opp-hz = /bits/ 64 <565000000>; opp-level = <RPMH_REGULATOR_LEVEL_NOM>; + opp-peak-kBps = <5412000>; opp-supported-hw = <0x10>; }; opp-430000000 { opp-hz = /bits/ 64 <430000000>; opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>; + opp-peak-kBps = <4068000>; opp-supported-hw = <0xff>; }; opp-355000000 { opp-hz = /bits/ 64 <355000000>; opp-level = <RPMH_REGULATOR_LEVEL_SVS>; + opp-peak-kBps = <3072000>; opp-supported-hw = <0xff>; }; opp-253000000 { opp-hz = /bits/ 64 <253000000>; opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>; + opp-peak-kBps = <2188000>; opp-supported-hw = <0xff>; }; };
On 17.03.2023 09:56, Luca Weiss wrote: > On Thu Mar 16, 2023 at 12:16 PM CET, Konrad Dybcio wrote: >> From: Konrad Dybcio <konrad.dybcio@somainline.org> >> >> Add Adreno, GPU SMMU and GMU nodes to hook up everything that >> the A619 needs to function properly. >> >> Co-developed-by: Luca Weiss <luca.weiss@fairphone.com> >> Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org> >> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> >> --- [...] > What about adding interconnect already? I also have opp-peak-kBps > additions in the opp table for that. I'll attach the diff I have at the > end of the email. I believe the GMU takes care of it internally (or at least should) with the bandwidth tables we send in a6xx_hfi.c : a6xx_hfi_send_bw_table() [...] >> >> + adreno_smmu: iommu@3d40000 { > > This and gmu should be above gpucc @3d90000? Absolutely. Konrad > >> + compatible = "qcom,sm6350-smmu-v2", "qcom,adreno-smmu", "qcom,smmu-v2"; >> + reg = <0 0x03d40000 0 0x10000>; >> + #iommu-cells = <1>; >> + #global-interrupts = <2>; >> + interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>, >> + <GIC_SPI 231 IRQ_TYPE_LEVEL_HIGH>, >> + <GIC_SPI 364 IRQ_TYPE_LEVEL_HIGH>, >> + <GIC_SPI 365 IRQ_TYPE_LEVEL_HIGH>, >> + <GIC_SPI 366 IRQ_TYPE_LEVEL_HIGH>, >> + <GIC_SPI 367 IRQ_TYPE_LEVEL_HIGH>, >> + <GIC_SPI 368 IRQ_TYPE_LEVEL_HIGH>, >> + <GIC_SPI 369 IRQ_TYPE_LEVEL_HIGH>, >> + <GIC_SPI 370 IRQ_TYPE_LEVEL_HIGH>, >> + <GIC_SPI 371 IRQ_TYPE_LEVEL_HIGH>; >> + >> + clocks = <&gpucc GPU_CC_AHB_CLK>, >> + <&gcc GCC_GPU_MEMNOC_GFX_CLK>, >> + <&gcc GCC_GPU_SNOC_DVM_GFX_CLK>; >> + clock-names = "ahb", >> + "bus", >> + "iface"; >> + >> + power-domains = <&gpucc GPU_CX_GDSC>; >> + }; >> + >> + gmu: gmu@3d6a000 { >> + compatible = "qcom,adreno-gmu-619.0", "qcom,adreno-gmu"; >> + reg = <0 0x03d6a000 0 0x31000>, >> + <0 0x0b290000 0 0x10000>, >> + <0 0x0b490000 0 0x10000>; >> + reg-names = "gmu", >> + "gmu_pdc", >> + "gmu_pdc_seq"; >> + >> + interrupts = <GIC_SPI 304 IRQ_TYPE_LEVEL_HIGH>, >> + <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>; >> + interrupt-names = "hfi", >> + "gmu"; >> + >> + clocks = <&gpucc GPU_CC_AHB_CLK>, >> + <&gpucc GPU_CC_CX_GMU_CLK>, >> + <&gpucc GPU_CC_CXO_CLK>, >> + <&gcc GCC_DDRSS_GPU_AXI_CLK>, >> + <&gcc GCC_GPU_MEMNOC_GFX_CLK>; >> + clock-names = "ahb", >> + "gmu", >> + "cxo", >> + "axi", >> + "memnoc"; >> + >> + power-domains = <&gpucc GPU_CX_GDSC>, >> + <&gpucc GPU_GX_GDSC>; >> + power-domain-names = "cx", >> + "gx"; >> + >> + iommus = <&adreno_smmu 5>; >> + >> + operating-points-v2 = <&gmu_opp_table>; >> + >> + status = "disabled"; >> + >> + gmu_opp_table: opp-table { >> + compatible = "operating-points-v2"; >> + >> + opp-200000000 { >> + opp-hz = /bits/ 64 <200000000>; >> + opp-level = <RPMH_REGULATOR_LEVEL_MIN_SVS>; >> + }; >> + }; >> + }; >> + >> mpss: remoteproc@4080000 { >> compatible = "qcom,sm6350-mpss-pas"; >> reg = <0x0 0x04080000 0x0 0x4040>; >> >> -- >> 2.39.2 > > Here's the diff I have for interconnect on top of this: > > diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi > index 4954cbc2c0fc..51c5ac679a32 100644 > --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi > @@ -1142,6 +1142,8 @@ gpu: gpu@3d00000 { > iommus = <&adreno_smmu 0>; > operating-points-v2 = <&gpu_opp_table>; > qcom,gmu = <&gmu>; > + interconnects = <&gem_noc MASTER_GRAPHICS_3D 0 &clk_virt SLAVE_EBI_CH0 0>; > + interconnect-names = "gfx-mem"; > nvmem-cells = <&gpu_speed_bin>; > nvmem-cell-names = "speed_bin"; > > @@ -1157,42 +1159,49 @@ gpu_opp_table: opp-table { > opp-850000000 { > opp-hz = /bits/ 64 <850000000>; > opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L1>; > + opp-peak-kBps = <8371200>; > opp-supported-hw = <0x02>; > }; > > opp-800000000 { > opp-hz = /bits/ 64 <800000000>; > opp-level = <RPMH_REGULATOR_LEVEL_TURBO>; > + opp-peak-kBps = <8371200>; > opp-supported-hw = <0x04>; > }; > > opp-650000000 { > opp-hz = /bits/ 64 <650000000>; > opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>; > + opp-peak-kBps = <6220000>; > opp-supported-hw = <0x08>; > }; > > opp-565000000 { > opp-hz = /bits/ 64 <565000000>; > opp-level = <RPMH_REGULATOR_LEVEL_NOM>; > + opp-peak-kBps = <5412000>; > opp-supported-hw = <0x10>; > }; > > opp-430000000 { > opp-hz = /bits/ 64 <430000000>; > opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>; > + opp-peak-kBps = <4068000>; > opp-supported-hw = <0xff>; > }; > > opp-355000000 { > opp-hz = /bits/ 64 <355000000>; > opp-level = <RPMH_REGULATOR_LEVEL_SVS>; > + opp-peak-kBps = <3072000>; > opp-supported-hw = <0xff>; > }; > > opp-253000000 { > opp-hz = /bits/ 64 <253000000>; > opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>; > + opp-peak-kBps = <2188000>; > opp-supported-hw = <0xff>; > }; > }; >
On 18/03/2023 15:45, Konrad Dybcio wrote: > > > On 17.03.2023 09:56, Luca Weiss wrote: >> On Thu Mar 16, 2023 at 12:16 PM CET, Konrad Dybcio wrote: >>> From: Konrad Dybcio <konrad.dybcio@somainline.org> >>> >>> Add Adreno, GPU SMMU and GMU nodes to hook up everything that >>> the A619 needs to function properly. >>> >>> Co-developed-by: Luca Weiss <luca.weiss@fairphone.com> >>> Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org> >>> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> >>> --- > [...] > >> What about adding interconnect already? I also have opp-peak-kBps >> additions in the opp table for that. I'll attach the diff I have at the >> end of the email. > I believe the GMU takes care of it internally (or at least should) > with the bandwidth tables we send in a6xx_hfi.c : a6xx_hfi_send_bw_table() We should still declare the interconnects. If at some point we attempt to fill these tables in a proper way, the interconnects will be required to get addresses of the nodes. > > > [...] > >>> >>> + adreno_smmu: iommu@3d40000 { >> >> This and gmu should be above gpucc @3d90000? > Absolutely. > > Konrad >> >>> + compatible = "qcom,sm6350-smmu-v2", "qcom,adreno-smmu", "qcom,smmu-v2"; >>> + reg = <0 0x03d40000 0 0x10000>; >>> + #iommu-cells = <1>; >>> + #global-interrupts = <2>; >>> + interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 231 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 364 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 365 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 366 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 367 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 368 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 369 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 370 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 371 IRQ_TYPE_LEVEL_HIGH>; >>> + >>> + clocks = <&gpucc GPU_CC_AHB_CLK>, >>> + <&gcc GCC_GPU_MEMNOC_GFX_CLK>, >>> + <&gcc GCC_GPU_SNOC_DVM_GFX_CLK>; >>> + clock-names = "ahb", >>> + "bus", >>> + "iface"; >>> + >>> + power-domains = <&gpucc GPU_CX_GDSC>; >>> + }; >>> + >>> + gmu: gmu@3d6a000 { >>> + compatible = "qcom,adreno-gmu-619.0", "qcom,adreno-gmu"; >>> + reg = <0 0x03d6a000 0 0x31000>, >>> + <0 0x0b290000 0 0x10000>, >>> + <0 0x0b490000 0 0x10000>; >>> + reg-names = "gmu", >>> + "gmu_pdc", >>> + "gmu_pdc_seq"; >>> + >>> + interrupts = <GIC_SPI 304 IRQ_TYPE_LEVEL_HIGH>, >>> + <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>; >>> + interrupt-names = "hfi", >>> + "gmu"; >>> + >>> + clocks = <&gpucc GPU_CC_AHB_CLK>, >>> + <&gpucc GPU_CC_CX_GMU_CLK>, >>> + <&gpucc GPU_CC_CXO_CLK>, >>> + <&gcc GCC_DDRSS_GPU_AXI_CLK>, >>> + <&gcc GCC_GPU_MEMNOC_GFX_CLK>; >>> + clock-names = "ahb", >>> + "gmu", >>> + "cxo", >>> + "axi", >>> + "memnoc"; >>> + >>> + power-domains = <&gpucc GPU_CX_GDSC>, >>> + <&gpucc GPU_GX_GDSC>; >>> + power-domain-names = "cx", >>> + "gx"; >>> + >>> + iommus = <&adreno_smmu 5>; >>> + >>> + operating-points-v2 = <&gmu_opp_table>; >>> + >>> + status = "disabled"; >>> + >>> + gmu_opp_table: opp-table { >>> + compatible = "operating-points-v2"; >>> + >>> + opp-200000000 { >>> + opp-hz = /bits/ 64 <200000000>; >>> + opp-level = <RPMH_REGULATOR_LEVEL_MIN_SVS>; >>> + }; >>> + }; >>> + }; >>> + >>> mpss: remoteproc@4080000 { >>> compatible = "qcom,sm6350-mpss-pas"; >>> reg = <0x0 0x04080000 0x0 0x4040>; >>> >>> -- >>> 2.39.2 >> >> Here's the diff I have for interconnect on top of this: >> >> diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi >> index 4954cbc2c0fc..51c5ac679a32 100644 >> --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi >> +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi >> @@ -1142,6 +1142,8 @@ gpu: gpu@3d00000 { >> iommus = <&adreno_smmu 0>; >> operating-points-v2 = <&gpu_opp_table>; >> qcom,gmu = <&gmu>; >> + interconnects = <&gem_noc MASTER_GRAPHICS_3D 0 &clk_virt SLAVE_EBI_CH0 0>; >> + interconnect-names = "gfx-mem"; >> nvmem-cells = <&gpu_speed_bin>; >> nvmem-cell-names = "speed_bin"; >> >> @@ -1157,42 +1159,49 @@ gpu_opp_table: opp-table { >> opp-850000000 { >> opp-hz = /bits/ 64 <850000000>; >> opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L1>; >> + opp-peak-kBps = <8371200>; >> opp-supported-hw = <0x02>; >> }; >> >> opp-800000000 { >> opp-hz = /bits/ 64 <800000000>; >> opp-level = <RPMH_REGULATOR_LEVEL_TURBO>; >> + opp-peak-kBps = <8371200>; >> opp-supported-hw = <0x04>; >> }; >> >> opp-650000000 { >> opp-hz = /bits/ 64 <650000000>; >> opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>; >> + opp-peak-kBps = <6220000>; >> opp-supported-hw = <0x08>; >> }; >> >> opp-565000000 { >> opp-hz = /bits/ 64 <565000000>; >> opp-level = <RPMH_REGULATOR_LEVEL_NOM>; >> + opp-peak-kBps = <5412000>; >> opp-supported-hw = <0x10>; >> }; >> >> opp-430000000 { >> opp-hz = /bits/ 64 <430000000>; >> opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>; >> + opp-peak-kBps = <4068000>; >> opp-supported-hw = <0xff>; >> }; >> >> opp-355000000 { >> opp-hz = /bits/ 64 <355000000>; >> opp-level = <RPMH_REGULATOR_LEVEL_SVS>; >> + opp-peak-kBps = <3072000>; >> opp-supported-hw = <0xff>; >> }; >> >> opp-253000000 { >> opp-hz = /bits/ 64 <253000000>; >> opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>; >> + opp-peak-kBps = <2188000>; >> opp-supported-hw = <0xff>; >> }; >> }; >>
On 3.04.2023 20:50, Dmitry Baryshkov wrote: > On 18/03/2023 15:45, Konrad Dybcio wrote: >> >> >> On 17.03.2023 09:56, Luca Weiss wrote: >>> On Thu Mar 16, 2023 at 12:16 PM CET, Konrad Dybcio wrote: >>>> From: Konrad Dybcio <konrad.dybcio@somainline.org> >>>> >>>> Add Adreno, GPU SMMU and GMU nodes to hook up everything that >>>> the A619 needs to function properly. >>>> >>>> Co-developed-by: Luca Weiss <luca.weiss@fairphone.com> >>>> Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org> >>>> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> >>>> --- >> [...] >> >>> What about adding interconnect already? I also have opp-peak-kBps >>> additions in the opp table for that. I'll attach the diff I have at the >>> end of the email. >> I believe the GMU takes care of it internally (or at least should) >> with the bandwidth tables we send in a6xx_hfi.c : a6xx_hfi_send_bw_table() > > We should still declare the interconnects. If at some point we attempt to fill these tables in a proper way, the interconnects will be required to get addresses of the nodes. A619 has all the "proper" data filled in. This should arguably be switched to per-SoC and not per-GPU btw. The interconnect endpoints should be looked up through the cmd_db function like Bjorn did in the A690 patchset. Konrad > >> >> >> [...] >> >>>> + adreno_smmu: iommu@3d40000 { >>> >>> This and gmu should be above gpucc @3d90000? >> Absolutely. >> >> Konrad >>> >>>> + compatible = "qcom,sm6350-smmu-v2", "qcom,adreno-smmu", "qcom,smmu-v2"; >>>> + reg = <0 0x03d40000 0 0x10000>; >>>> + #iommu-cells = <1>; >>>> + #global-interrupts = <2>; >>>> + interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>, >>>> + <GIC_SPI 231 IRQ_TYPE_LEVEL_HIGH>, >>>> + <GIC_SPI 364 IRQ_TYPE_LEVEL_HIGH>, >>>> + <GIC_SPI 365 IRQ_TYPE_LEVEL_HIGH>, >>>> + <GIC_SPI 366 IRQ_TYPE_LEVEL_HIGH>, >>>> + <GIC_SPI 367 IRQ_TYPE_LEVEL_HIGH>, >>>> + <GIC_SPI 368 IRQ_TYPE_LEVEL_HIGH>, >>>> + <GIC_SPI 369 IRQ_TYPE_LEVEL_HIGH>, >>>> + <GIC_SPI 370 IRQ_TYPE_LEVEL_HIGH>, >>>> + <GIC_SPI 371 IRQ_TYPE_LEVEL_HIGH>; >>>> + >>>> + clocks = <&gpucc GPU_CC_AHB_CLK>, >>>> + <&gcc GCC_GPU_MEMNOC_GFX_CLK>, >>>> + <&gcc GCC_GPU_SNOC_DVM_GFX_CLK>; >>>> + clock-names = "ahb", >>>> + "bus", >>>> + "iface"; >>>> + >>>> + power-domains = <&gpucc GPU_CX_GDSC>; >>>> + }; >>>> + >>>> + gmu: gmu@3d6a000 { >>>> + compatible = "qcom,adreno-gmu-619.0", "qcom,adreno-gmu"; >>>> + reg = <0 0x03d6a000 0 0x31000>, >>>> + <0 0x0b290000 0 0x10000>, >>>> + <0 0x0b490000 0 0x10000>; >>>> + reg-names = "gmu", >>>> + "gmu_pdc", >>>> + "gmu_pdc_seq"; >>>> + >>>> + interrupts = <GIC_SPI 304 IRQ_TYPE_LEVEL_HIGH>, >>>> + <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>; >>>> + interrupt-names = "hfi", >>>> + "gmu"; >>>> + >>>> + clocks = <&gpucc GPU_CC_AHB_CLK>, >>>> + <&gpucc GPU_CC_CX_GMU_CLK>, >>>> + <&gpucc GPU_CC_CXO_CLK>, >>>> + <&gcc GCC_DDRSS_GPU_AXI_CLK>, >>>> + <&gcc GCC_GPU_MEMNOC_GFX_CLK>; >>>> + clock-names = "ahb", >>>> + "gmu", >>>> + "cxo", >>>> + "axi", >>>> + "memnoc"; >>>> + >>>> + power-domains = <&gpucc GPU_CX_GDSC>, >>>> + <&gpucc GPU_GX_GDSC>; >>>> + power-domain-names = "cx", >>>> + "gx"; >>>> + >>>> + iommus = <&adreno_smmu 5>; >>>> + >>>> + operating-points-v2 = <&gmu_opp_table>; >>>> + >>>> + status = "disabled"; >>>> + >>>> + gmu_opp_table: opp-table { >>>> + compatible = "operating-points-v2"; >>>> + >>>> + opp-200000000 { >>>> + opp-hz = /bits/ 64 <200000000>; >>>> + opp-level = <RPMH_REGULATOR_LEVEL_MIN_SVS>; >>>> + }; >>>> + }; >>>> + }; >>>> + >>>> mpss: remoteproc@4080000 { >>>> compatible = "qcom,sm6350-mpss-pas"; >>>> reg = <0x0 0x04080000 0x0 0x4040>; >>>> >>>> -- >>>> 2.39.2 >>> >>> Here's the diff I have for interconnect on top of this: >>> >>> diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi >>> index 4954cbc2c0fc..51c5ac679a32 100644 >>> --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi >>> +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi >>> @@ -1142,6 +1142,8 @@ gpu: gpu@3d00000 { >>> iommus = <&adreno_smmu 0>; >>> operating-points-v2 = <&gpu_opp_table>; >>> qcom,gmu = <&gmu>; >>> + interconnects = <&gem_noc MASTER_GRAPHICS_3D 0 &clk_virt SLAVE_EBI_CH0 0>; >>> + interconnect-names = "gfx-mem"; >>> nvmem-cells = <&gpu_speed_bin>; >>> nvmem-cell-names = "speed_bin"; >>> @@ -1157,42 +1159,49 @@ gpu_opp_table: opp-table { >>> opp-850000000 { >>> opp-hz = /bits/ 64 <850000000>; >>> opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L1>; >>> + opp-peak-kBps = <8371200>; >>> opp-supported-hw = <0x02>; >>> }; >>> opp-800000000 { >>> opp-hz = /bits/ 64 <800000000>; >>> opp-level = <RPMH_REGULATOR_LEVEL_TURBO>; >>> + opp-peak-kBps = <8371200>; >>> opp-supported-hw = <0x04>; >>> }; >>> opp-650000000 { >>> opp-hz = /bits/ 64 <650000000>; >>> opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>; >>> + opp-peak-kBps = <6220000>; >>> opp-supported-hw = <0x08>; >>> }; >>> opp-565000000 { >>> opp-hz = /bits/ 64 <565000000>; >>> opp-level = <RPMH_REGULATOR_LEVEL_NOM>; >>> + opp-peak-kBps = <5412000>; >>> opp-supported-hw = <0x10>; >>> }; >>> opp-430000000 { >>> opp-hz = /bits/ 64 <430000000>; >>> opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>; >>> + opp-peak-kBps = <4068000>; >>> opp-supported-hw = <0xff>; >>> }; >>> opp-355000000 { >>> opp-hz = /bits/ 64 <355000000>; >>> opp-level = <RPMH_REGULATOR_LEVEL_SVS>; >>> + opp-peak-kBps = <3072000>; >>> opp-supported-hw = <0xff>; >>> }; >>> opp-253000000 { >>> opp-hz = /bits/ 64 <253000000>; >>> opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>; >>> + opp-peak-kBps = <2188000>; >>> opp-supported-hw = <0xff>; >>> }; >>> }; >>> >
diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi index 60b68d305e53..e967d06b0ad4 100644 --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi @@ -1138,6 +1138,74 @@ compute-cb@5 { }; }; + gpu: gpu@3d00000 { + compatible = "qcom,adreno-619.0", "qcom,adreno"; + reg = <0 0x03d00000 0 0x40000>, + <0 0x03d9e000 0 0x1000>; + reg-names = "kgsl_3d0_reg_memory", + "cx_mem"; + interrupts = <GIC_SPI 300 IRQ_TYPE_LEVEL_HIGH>; + + iommus = <&adreno_smmu 0>; + operating-points-v2 = <&gpu_opp_table>; + qcom,gmu = <&gmu>; + nvmem-cells = <&gpu_speed_bin>; + nvmem-cell-names = "speed_bin"; + + status = "disabled"; + + zap-shader { + memory-region = <&pil_gpu_mem>; + }; + + gpu_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-850000000 { + opp-hz = /bits/ 64 <850000000>; + opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L1>; + opp-supported-hw = <0x02>; + }; + + opp-800000000 { + opp-hz = /bits/ 64 <800000000>; + opp-level = <RPMH_REGULATOR_LEVEL_TURBO>; + opp-supported-hw = <0x04>; + }; + + opp-650000000 { + opp-hz = /bits/ 64 <650000000>; + opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>; + opp-supported-hw = <0x08>; + }; + + opp-565000000 { + opp-hz = /bits/ 64 <565000000>; + opp-level = <RPMH_REGULATOR_LEVEL_NOM>; + opp-supported-hw = <0x10>; + }; + + opp-430000000 { + opp-hz = /bits/ 64 <430000000>; + opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>; + opp-supported-hw = <0xff>; + }; + + opp-355000000 { + opp-hz = /bits/ 64 <355000000>; + opp-level = <RPMH_REGULATOR_LEVEL_SVS>; + opp-supported-hw = <0xff>; + }; + + opp-253000000 { + opp-hz = /bits/ 64 <253000000>; + opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>; + opp-supported-hw = <0xff>; + }; + }; + }; + + gpucc: clock-controller@3d90000 { compatible = "qcom,sm6350-gpucc"; reg = <0 0x03d90000 0 0x9000>; @@ -1152,6 +1220,78 @@ gpucc: clock-controller@3d90000 { #power-domain-cells = <1>; }; + adreno_smmu: iommu@3d40000 { + compatible = "qcom,sm6350-smmu-v2", "qcom,adreno-smmu", "qcom,smmu-v2"; + reg = <0 0x03d40000 0 0x10000>; + #iommu-cells = <1>; + #global-interrupts = <2>; + interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 231 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 364 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 365 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 366 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 367 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 368 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 369 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 370 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 371 IRQ_TYPE_LEVEL_HIGH>; + + clocks = <&gpucc GPU_CC_AHB_CLK>, + <&gcc GCC_GPU_MEMNOC_GFX_CLK>, + <&gcc GCC_GPU_SNOC_DVM_GFX_CLK>; + clock-names = "ahb", + "bus", + "iface"; + + power-domains = <&gpucc GPU_CX_GDSC>; + }; + + gmu: gmu@3d6a000 { + compatible = "qcom,adreno-gmu-619.0", "qcom,adreno-gmu"; + reg = <0 0x03d6a000 0 0x31000>, + <0 0x0b290000 0 0x10000>, + <0 0x0b490000 0 0x10000>; + reg-names = "gmu", + "gmu_pdc", + "gmu_pdc_seq"; + + interrupts = <GIC_SPI 304 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "hfi", + "gmu"; + + clocks = <&gpucc GPU_CC_AHB_CLK>, + <&gpucc GPU_CC_CX_GMU_CLK>, + <&gpucc GPU_CC_CXO_CLK>, + <&gcc GCC_DDRSS_GPU_AXI_CLK>, + <&gcc GCC_GPU_MEMNOC_GFX_CLK>; + clock-names = "ahb", + "gmu", + "cxo", + "axi", + "memnoc"; + + power-domains = <&gpucc GPU_CX_GDSC>, + <&gpucc GPU_GX_GDSC>; + power-domain-names = "cx", + "gx"; + + iommus = <&adreno_smmu 5>; + + operating-points-v2 = <&gmu_opp_table>; + + status = "disabled"; + + gmu_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-200000000 { + opp-hz = /bits/ 64 <200000000>; + opp-level = <RPMH_REGULATOR_LEVEL_MIN_SVS>; + }; + }; + }; + mpss: remoteproc@4080000 { compatible = "qcom,sm6350-mpss-pas"; reg = <0x0 0x04080000 0x0 0x4040>;