mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Yassine Oudjana <yassine.oudjana@gmail.com>,
	Andy Gross <agross@kernel.org>,
	Bjorn Andersson <andersson@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>,
	Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: Yassine Oudjana <y.oudjana@protonmail.com>,
	linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 2/3] arm64: dts: qcom: msm8996pro: Add CBF scaling support
Date: Sat, 27 May 2023 18:16:09 +0200	[thread overview]
Message-ID: <f2ed6b88-13df-8df7-55e0-5d11bf5a1ef0@linaro.org> (raw)
In-Reply-To: <20230527093934.101335-3-y.oudjana@protonmail.com>



On 27.05.2023 11:39, Yassine Oudjana wrote:
> From: Yassine Oudjana <y.oudjana@protonmail.com>
> 
> Add opp-peak-kBps to CPU OPPs to allow for CBF scaling, and change the
> CBF compatible to reflect the difference between it and the one on
> MSM8996.
> 
> Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com>
> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Now let's sprinkle some BWMON, CPR and GPMU and 8996 will be
fairly complete as far as the core hw goes.. At last!

Konrad
>  arch/arm64/boot/dts/qcom/msm8996pro.dtsi | 51 ++++++++++++++++++++++++
>  1 file changed, 51 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/msm8996pro.dtsi b/arch/arm64/boot/dts/qcom/msm8996pro.dtsi
> index a679a9c0cf99..b74cff06f300 100644
> --- a/arch/arm64/boot/dts/qcom/msm8996pro.dtsi
> +++ b/arch/arm64/boot/dts/qcom/msm8996pro.dtsi
> @@ -24,101 +24,121 @@ opp-307200000 {
>  			opp-hz = /bits/ 64 <307200000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <192000>;
>  		};
>  		opp-384000000 {
>  			opp-hz = /bits/ 64 <384000000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <192000>;
>  		};
>  		opp-460800000 {
>  			opp-hz = /bits/ 64 <460800000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <192000>;
>  		};
>  		opp-537600000 {
>  			opp-hz = /bits/ 64 <537600000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <192000>;
>  		};
>  		opp-614400000 {
>  			opp-hz = /bits/ 64 <614400000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <192000>;
>  		};
>  		opp-691200000 {
>  			opp-hz = /bits/ 64 <691200000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <307200>;
>  		};
>  		opp-768000000 {
>  			opp-hz = /bits/ 64 <768000000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <307200>;
>  		};
>  		opp-844800000 {
>  			opp-hz = /bits/ 64 <844800000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <384000>;
>  		};
>  		opp-902400000 {
>  			opp-hz = /bits/ 64 <902400000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <441600>;
>  		};
>  		opp-979200000 {
>  			opp-hz = /bits/ 64 <979200000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <537600>;
>  		};
>  		opp-1056000000 {
>  			opp-hz = /bits/ 64 <1056000000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <614400>;
>  		};
>  		opp-1132800000 {
>  			opp-hz = /bits/ 64 <1132800000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <691200>;
>  		};
>  		opp-1209600000 {
>  			opp-hz = /bits/ 64 <1209600000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <768000>;
>  		};
>  		opp-1286400000 {
>  			opp-hz = /bits/ 64 <1286400000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <844800>;
>  		};
>  		opp-1363200000 {
>  			opp-hz = /bits/ 64 <1363200000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <902400>;
>  		};
>  		opp-1440000000 {
>  			opp-hz = /bits/ 64 <1440000000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <979200>;
>  		};
>  		opp-1516800000 {
>  			opp-hz = /bits/ 64 <1516800000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <1132800>;
>  		};
>  		opp-1593600000 {
>  			opp-hz = /bits/ 64 <1593600000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <1190400>;
>  		};
>  		opp-1996800000 {
>  			opp-hz = /bits/ 64 <1996800000>;
>  			opp-supported-hw = <0x20>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <1516800>;
>  		};
>  		opp-2188800000 {
>  			opp-hz = /bits/ 64 <2188800000>;
>  			opp-supported-hw = <0x10>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <1593600>;
>  		};
>  	};
>  
> @@ -131,136 +151,163 @@ opp-307200000 {
>  			opp-hz = /bits/ 64 <307200000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <192000>;
>  		};
>  		opp-384000000 {
>  			opp-hz = /bits/ 64 <384000000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <192000>;
>  		};
>  		opp-460800000 {
>  			opp-hz = /bits/ 64 <460800000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <192000>;
>  		};
>  		opp-537600000 {
>  			opp-hz = /bits/ 64 <537600000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <192000>;
>  		};
>  		opp-614400000 {
>  			opp-hz = /bits/ 64 <614400000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <192000>;
>  		};
>  		opp-691200000 {
>  			opp-hz = /bits/ 64 <691200000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <307200>;
>  		};
>  		opp-748800000 {
>  			opp-hz = /bits/ 64 <748800000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <307200>;
>  		};
>  		opp-825600000 {
>  			opp-hz = /bits/ 64 <825600000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <384000>;
>  		};
>  		opp-902400000 {
>  			opp-hz = /bits/ 64 <902400000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <441600>;
>  		};
>  		opp-979200000 {
>  			opp-hz = /bits/ 64 <979200000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <441600>;
>  		};
>  		opp-1056000000 {
>  			opp-hz = /bits/ 64 <1056000000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <537600>;
>  		};
>  		opp-1132800000 {
>  			opp-hz = /bits/ 64 <1132800000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <614400>;
>  		};
>  		opp-1209600000 {
>  			opp-hz = /bits/ 64 <1209600000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <691200>;
>  		};
>  		opp-1286400000 {
>  			opp-hz = /bits/ 64 <1286400000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <768000>;
>  		};
>  		opp-1363200000 {
>  			opp-hz = /bits/ 64 <1363200000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <844800>;
>  		};
>  		opp-1440000000 {
>  			opp-hz = /bits/ 64 <1440000000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <902400>;
>  		};
>  		opp-1516800000 {
>  			opp-hz = /bits/ 64 <1516800000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <979200>;
>  		};
>  		opp-1593600000 {
>  			opp-hz = /bits/ 64 <1593600000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <1056000>;
>  		};
>  		opp-1670400000 {
>  			opp-hz = /bits/ 64 <1670400000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <1132800>;
>  		};
>  		opp-1747200000 {
>  			opp-hz = /bits/ 64 <1747200000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <1190400>;
>  		};
>  		opp-1824000000 {
>  			opp-hz = /bits/ 64 <1824000000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <1286400>;
>  		};
>  		opp-1900800000 {
>  			opp-hz = /bits/ 64 <1900800000>;
>  			opp-supported-hw = <0x70>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <1363200>;
>  		};
>  		opp-1977600000 {
>  			opp-hz = /bits/ 64 <1977600000>;
>  			opp-supported-hw = <0x30>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <1440000>;
>  		};
>  		opp-2054400000 {
>  			opp-hz = /bits/ 64 <2054400000>;
>  			opp-supported-hw = <0x30>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <1516800>;
>  		};
>  		opp-2150400000 {
>  			opp-hz = /bits/ 64 <2150400000>;
>  			opp-supported-hw = <0x30>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <1593600>;
>  		};
>  		opp-2246400000 {
>  			opp-hz = /bits/ 64 <2246400000>;
>  			opp-supported-hw = <0x10>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <1593600>;
>  		};
>  		opp-2342400000 {
>  			opp-hz = /bits/ 64 <2342400000>;
>  			opp-supported-hw = <0x10>;
>  			clock-latency-ns = <200000>;
> +			opp-peak-kBps = <1593600>;
>  		};
>  	};
>  };
> @@ -289,3 +336,7 @@ opp-560000000 {
>  	};
>  	/* The rest is inherited from msm8996 */
>  };
> +
> +&cbf {
> +	compatible = "qcom,msm8996pro-cbf";
> +};

  reply	other threads:[~2023-05-27 16:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-27  9:39 [PATCH v2 0/3] MSM8996 Pro " Yassine Oudjana
2023-05-27  9:39 ` [PATCH v2 1/3] dt-bindings: clock: qcom,msm8996-cbf: Add compatible for MSM8996 Pro Yassine Oudjana
2023-05-30 12:58   ` Krzysztof Kozlowski
2023-05-27  9:39 ` [PATCH v2 2/3] arm64: dts: qcom: msm8996pro: Add CBF scaling support Yassine Oudjana
2023-05-27 16:16   ` Konrad Dybcio [this message]
2023-05-27  9:39 ` [PATCH v2 3/3] clk: qcom: cbf-msm8996: Add support for MSM8996 Pro Yassine Oudjana
2023-05-29  8:18   ` Konrad Dybcio
2023-05-29  8:55     ` Dmitry Baryshkov
2023-06-13 22:30 ` (subset) [PATCH v2 0/3] MSM8996 Pro CBF scaling support Bjorn Andersson
2023-07-31 23:52 ` Bjorn Andersson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f2ed6b88-13df-8df7-55e0-5d11bf5a1ef0@linaro.org \
    --to=konrad.dybcio@linaro.org \
    --cc=agross@kernel.org \
    --cc=andersson@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=robh+dt@kernel.org \
    --cc=sboyd@kernel.org \
    --cc=y.oudjana@protonmail.com \
    --cc=yassine.oudjana@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®