Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2936920pxy; Mon, 3 May 2021 11:14:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlq9CwNh18NQgoV0G4v8psDpVZujAdEte75+Tei3iP0pY+1s2KlWx9NE0KLRN5LgSvcpyQ X-Received: by 2002:a63:a64:: with SMTP id z36mr19399159pgk.342.1620065577786; Mon, 03 May 2021 11:12:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620065577; cv=none; d=google.com; s=arc-20160816; b=eOtNEB/RwOleqg1gWR2Xaz30jBtwjv4NbxCkfCbF1GxUHxAeRLuzPVz3+9rk7GSQsd bRM1DqaKhI/66/ID0+QKxcGxhvEv8j7zbJ2DIgRoASzw1zJHizyBNhuF05dgJRjEnwZn 5hfOipqgU62BZMVSAT1pcpIfxEOKf0xElvdPQ8qCiYqYw8yEZETwATjyhueHGCK8YuRO haX6YlRFEPboSl0UiZ+1PqRMlaGiTNGjHxrLBXvssZKAE572Jsb2xkgr3DJEvQsNcqIx xTmw6mP6lNHd4mIZbD3L3sJQKEDzd5ww+Act+Izv2n+YzvKpTTD3hxmVtQxKHtaGycOX Ch+Q== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hoFXqCDljrfPhl8OhWKYJabFe89kk859lQwWFfRV5jk=; b=Pm8YJuHyUL2K2td6xOI/f7mdFVymJc+eQqqBMVzRr1aEAcJtLgpppoYq/oJpm9eJhr iOAIwYnDCVLXdvVhw4LVv0C8XCOVHeDiHjYA2q9dH6FxELX5+rMHg2GLgwT7qOJ/GMEo 3FU3T+R1h7ImxmCtm0i+NIxjDlFe+RSHnTtVLDcIjQ/EZFOJOAAcR6H9Tq8ypOH08vIW 4i44D3CknT8QmCbNawCZ4wiIw8CqxhlDfKFYtz990iAAwDLigTCZ7K+Hs3NTq57bAFUx mTFDX9cldp2wj/LWjZhHzka8TTVQpuuW/o5rYn75gdOyfVHUkw8hsLbHLca0VoPa7OIo cCZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=J3mqNlu0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d8si398541pgq.348.2021.05.03.11.12.36; Mon, 03 May 2021 11:12:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=J3mqNlu0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231922AbhECQj3 (ORCPT + 99 others); Mon, 3 May 2021 12:39:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231600AbhECQh4 (ORCPT ); Mon, 3 May 2021 12:37:56 -0400 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E6FDC061353 for ; Mon, 3 May 2021 09:36:07 -0700 (PDT) Received: by mail-pg1-x535.google.com with SMTP id j7so4028969pgi.3 for ; Mon, 03 May 2021 09:36:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=hoFXqCDljrfPhl8OhWKYJabFe89kk859lQwWFfRV5jk=; b=J3mqNlu08uQn6JHtmGGJHnbH8eZlpqF1kBLHF5cwjptJynYRHpCNuVXFXQBX0QTf1j 5ylil1BnEQo8BGqUzCtCVzxq0A+wQ/xGaJ/+oz0FAyFi38mySvPu+3T1c/TeVLTwchcM kSQdt0sznP4JQ3vzgKnBO9hwsXzt8xrUwzVrA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=hoFXqCDljrfPhl8OhWKYJabFe89kk859lQwWFfRV5jk=; b=AibcON5kJnuLSrnH8+U6cKVEQJgFoQSqpDecVeorp8DskawRh5cpIAMj4orbIXdJ+/ NsvMRiNIbzAYqh9fSSJra3+9tOX81Z01fmtbXXPQRV/cE85UyIfg75aV3cSFYgM2HaNr t/XUxBfQfiitf2iOZYEFdSDZMufV5sLq3bciimevkkHUIHineRfAC9/lqb6KNgtVtuv/ Uq+TBbPb9BmeC6FJ3zAvDyrKAA8sCQSgCIbMAmmApZQudVhkUVZJrOtl6Rci41aaX1U8 kzpw/eEC59k+/uE4ZbHwxvLkEXscCbNyxemqFKXrX5DGDrMs0SBByHTu71l8peLoJgFf JtQw== X-Gm-Message-State: AOAM531vBpXSMPqOFT1D2nxvOeEL2AwZexdUHsB7oc+8F7gLoAFbNqMC FQYTex63kbs64Vp+oN7qlEmWUQ== X-Received: by 2002:a65:6a08:: with SMTP id m8mr19082771pgu.146.1620059766601; Mon, 03 May 2021 09:36:06 -0700 (PDT) Received: from localhost ([2620:15c:202:201:8584:3fd:2adf:a655]) by smtp.gmail.com with UTF8SMTPSA id n20sm10038260pjq.45.2021.05.03.09.36.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 May 2021 09:36:06 -0700 (PDT) Date: Mon, 3 May 2021 09:36:04 -0700 From: Matthias Kaehlcke To: Sibi Sankar Cc: bjorn.andersson@linaro.org, viresh.kumar@linaro.org, swboyd@chromium.org, agross@kernel.org, robh+dt@kernel.org, rjw@rjwysocki.net, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, dianders@chromium.org Subject: Re: [PATCH 2/2] arm64: dts: qcom: sc7280: Add cpu OPP tables Message-ID: References: <1619792901-32701-1-git-send-email-sibis@codeaurora.org> <1619792901-32701-3-git-send-email-sibis@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1619792901-32701-3-git-send-email-sibis@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 30, 2021 at 07:58:21PM +0530, Sibi Sankar wrote: > Add OPP tables required to scale DDR/L3 per freq-domain on SC7280 SoCs. > > Signed-off-by: Sibi Sankar > --- > arch/arm64/boot/dts/qcom/sc7280.dtsi | 135 +++++++++++++++++++++++++++++++++++ > 1 file changed, 135 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi > index 0bb835aeae33..90220cecb368 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi > @@ -7,6 +7,7 @@ > > #include > #include > +#include > #include > #include > #include > @@ -71,6 +72,9 @@ > &LITTLE_CPU_SLEEP_1 > &CLUSTER_SLEEP_0>; > next-level-cache = <&L2_0>; > + operating-points-v2 = <&cpu0_opp_table>; > + interconnects = <&gem_noc MASTER_APPSS_PROC 3 &mc_virt SLAVE_EBI1 3>, > + <&epss_l3 MASTER_EPSS_L3_APPS &epss_l3 SLAVE_EPSS_L3_SHARED>; This patch seems to depend on the 'Add SC7280 interconnect provider driver' series (https://patchwork.kernel.org/project/linux-arm-msm/list/?series=473747) and 'Add L3 provider support for SC7280' (https://patchwork.kernel.org/project/linux-arm-msm/list/?series=468285), none of them has landed yet. The dependencies should be mentioned in the commit notes (under '---'). > qcom,freq-domain = <&cpufreq_hw 0>; > L2_0: l2-cache { > compatible = "cache"; > @@ -90,6 +94,9 @@ > &LITTLE_CPU_SLEEP_1 > &CLUSTER_SLEEP_0>; > next-level-cache = <&L2_100>; > + operating-points-v2 = <&cpu0_opp_table>; > + interconnects = <&gem_noc MASTER_APPSS_PROC 3 &mc_virt SLAVE_EBI1 3>, > + <&epss_l3 MASTER_EPSS_L3_APPS &epss_l3 SLAVE_EPSS_L3_SHARED>; > qcom,freq-domain = <&cpufreq_hw 0>; > L2_100: l2-cache { > compatible = "cache"; > @@ -106,6 +113,9 @@ > &LITTLE_CPU_SLEEP_1 > &CLUSTER_SLEEP_0>; > next-level-cache = <&L2_200>; > + operating-points-v2 = <&cpu0_opp_table>; > + interconnects = <&gem_noc MASTER_APPSS_PROC 3 &mc_virt SLAVE_EBI1 3>, > + <&epss_l3 MASTER_EPSS_L3_APPS &epss_l3 SLAVE_EPSS_L3_SHARED>; > qcom,freq-domain = <&cpufreq_hw 0>; > L2_200: l2-cache { > compatible = "cache"; > @@ -122,6 +132,9 @@ > &LITTLE_CPU_SLEEP_1 > &CLUSTER_SLEEP_0>; > next-level-cache = <&L2_300>; > + operating-points-v2 = <&cpu0_opp_table>; > + interconnects = <&gem_noc MASTER_APPSS_PROC 3 &mc_virt SLAVE_EBI1 3>, > + <&epss_l3 MASTER_EPSS_L3_APPS &epss_l3 SLAVE_EPSS_L3_SHARED>; > qcom,freq-domain = <&cpufreq_hw 0>; > L2_300: l2-cache { > compatible = "cache"; > @@ -138,6 +151,9 @@ > &BIG_CPU_SLEEP_1 > &CLUSTER_SLEEP_0>; > next-level-cache = <&L2_400>; > + operating-points-v2 = <&cpu4_opp_table>; > + interconnects = <&gem_noc MASTER_APPSS_PROC 3 &mc_virt SLAVE_EBI1 3>, > + <&epss_l3 MASTER_EPSS_L3_APPS &epss_l3 SLAVE_EPSS_L3_SHARED>; > qcom,freq-domain = <&cpufreq_hw 1>; > L2_400: l2-cache { > compatible = "cache"; > @@ -154,6 +170,9 @@ > &BIG_CPU_SLEEP_1 > &CLUSTER_SLEEP_0>; > next-level-cache = <&L2_500>; > + operating-points-v2 = <&cpu4_opp_table>; > + interconnects = <&gem_noc MASTER_APPSS_PROC 3 &mc_virt SLAVE_EBI1 3>, > + <&epss_l3 MASTER_EPSS_L3_APPS &epss_l3 SLAVE_EPSS_L3_SHARED>; > qcom,freq-domain = <&cpufreq_hw 1>; > L2_500: l2-cache { > compatible = "cache"; > @@ -170,6 +189,9 @@ > &BIG_CPU_SLEEP_1 > &CLUSTER_SLEEP_0>; > next-level-cache = <&L2_600>; > + operating-points-v2 = <&cpu4_opp_table>; > + interconnects = <&gem_noc MASTER_APPSS_PROC 3 &mc_virt SLAVE_EBI1 3>, > + <&epss_l3 MASTER_EPSS_L3_APPS &epss_l3 SLAVE_EPSS_L3_SHARED>; > qcom,freq-domain = <&cpufreq_hw 1>; > L2_600: l2-cache { > compatible = "cache"; > @@ -186,6 +208,9 @@ > &BIG_CPU_SLEEP_1 > &CLUSTER_SLEEP_0>; > next-level-cache = <&L2_700>; > + operating-points-v2 = <&cpu4_opp_table>; > + interconnects = <&gem_noc MASTER_APPSS_PROC 3 &mc_virt SLAVE_EBI1 3>, > + <&epss_l3 MASTER_EPSS_L3_APPS &epss_l3 SLAVE_EPSS_L3_SHARED>; > qcom,freq-domain = <&cpufreq_hw 2>; > L2_700: l2-cache { > compatible = "cache"; > @@ -248,6 +273,116 @@ > }; > }; > > + cpu0_opp_table: cpu0_opp_table { the node name should use dashes as separators instead of underscores, i.e. it should be 'cpu0-opp-table'. > + compatible = "operating-points-v2"; > + opp-shared; > + > + cpu0_opp1: opp-300000000 { > + opp-hz = /bits/ 64 <300000000>; > + opp-peak-kBps = <800000 9600000>; > + }; > + > + cpu0_opp2: opp-691200000 { > + opp-hz = /bits/ 64 <691200000>; > + opp-peak-kBps = <800000 17817600>; > + }; > + > + cpu0_opp3: opp-806400000 { > + opp-hz = /bits/ 64 <806400000>; > + opp-peak-kBps = <800000 20889600>; > + }; > + > + cpu0_opp4: opp-940800000 { > + opp-hz = /bits/ 64 <940800000>; > + opp-peak-kBps = <1804000 24576000>; > + }; > + > + cpu0_opp5: opp-1152000000 { > + opp-hz = /bits/ 64 <1152000000>; > + opp-peak-kBps = <2188000 27033600>; > + }; > + > + cpu0_opp6: opp-1324800000 { > + opp-hz = /bits/ 64 <1324800000>; > + opp-peak-kBps = <2188000 33792000>; > + }; > + > + cpu0_opp7: opp-1516800000 { > + opp-hz = /bits/ 64 <1516800000>; > + opp-peak-kBps = <3072000 38092800>; > + }; > + > + cpu0_opp8: opp-1651200000 { > + opp-hz = /bits/ 64 <1651200000>; > + opp-peak-kBps = <3072000 41779200>; > + }; > + > + cpu0_opp9: opp-1804800000 { > + opp-hz = /bits/ 64 <1804800000>; > + opp-peak-kBps = <4068000 48537600>; > + }; > + > + cpu0_opp10: opp-1958400000 { > + opp-hz = /bits/ 64 <1958400000>; > + opp-peak-kBps = <4068000 48537600>; > + }; > + }; > + > + cpu4_opp_table: cpu4_opp_table { node name should be 'cpu4-opp-table' > + compatible = "operating-points-v2"; > + opp-shared; > + > + cpu4_opp1: opp-691200000 { > + opp-hz = /bits/ 64 <691200000>; > + opp-peak-kBps = <1804000 9600000>; > + }; > + > + cpu4_opp2: opp-940800000 { > + opp-hz = /bits/ 64 <940800000>; > + opp-peak-kBps = <2188000 17817600>; > + }; > + > + cpu4_opp3: opp-1228800000 { > + opp-hz = /bits/ 64 <1228800000>; > + opp-peak-kBps = <4068000 24576000>; > + }; > + > + cpu4_opp4: opp-1344000000 { > + opp-hz = /bits/ 64 <1344000000>; > + opp-peak-kBps = <4068000 24576000>; > + }; > + > + cpu4_opp5: opp-1516800000 { > + opp-hz = /bits/ 64 <1516800000>; > + opp-peak-kBps = <4068000 24576000>; > + }; > + > + cpu4_opp6: opp-1651200000 { > + opp-hz = /bits/ 64 <1651200000>; > + opp-peak-kBps = <6220000 38092800>; > + }; > + > + cpu4_opp7: opp-1900800000 { > + opp-hz = /bits/ 64 <1900800000>; > + opp-peak-kBps = <6220000 44851200>; > + }; > + > + cpu4_opp8: opp-2054400000 { > + opp-hz = /bits/ 64 <2054400000>; > + opp-peak-kBps = <6220000 44851200>; > + }; > + > + cpu4_opp9: opp-2131200000 { > + opp-hz = /bits/ 64 <2131200000>; > + opp-peak-kBps = <6220000 44851200>; > + }; > + > + cpu4_opp10: opp-2400000000 { > + opp-hz = /bits/ 64 <2400000000>; > + opp-peak-kBps = <6832000 48537600>; > + }; > + }; > + > memory@80000000 { > device_type = "memory"; > /* We expect the bootloader to fill in the size */