arm64: dts: sdm845: Add dynamic CPU power coefficients
diff mbox series

Message ID 20190211190019.171583-1-mka@chromium.org
State New
Headers show
Series
  • arm64: dts: sdm845: Add dynamic CPU power coefficients
Related show

Commit Message

Matthias Kaehlcke Feb. 11, 2019, 7 p.m. UTC
Add dynamic power coefficients for the Silver and Gold CPU cores of
the Qualcomm SDM845.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
---
 arch/arm64/boot/dts/qcom/sdm845.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Douglas Anderson Feb. 11, 2019, 7:29 p.m. UTC | #1
Hi,

On Mon, Feb 11, 2019 at 11:00 AM Matthias Kaehlcke <mka@chromium.org> wrote:
>
> Add dynamic power coefficients for the Silver and Gold CPU cores of
> the Qualcomm SDM845.
>
> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
> ---
>  arch/arm64/boot/dts/qcom/sdm845.dtsi | 8 ++++++++
>  1 file changed, 8 insertions(+)

Matches the numbers I saw reported.

Reviewed-by: Douglas Anderson <dianders@chromium.org>
Amit Kucheria Feb. 12, 2019, 5:05 a.m. UTC | #2
On Tue, Feb 12, 2019 at 12:30 AM Matthias Kaehlcke <mka@chromium.org> wrote:
>
> Add dynamic power coefficients for the Silver and Gold CPU cores of
> the Qualcomm SDM845.
>
> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>

Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>

> ---
>  arch/arm64/boot/dts/qcom/sdm845.dtsi | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi
> index e4b69c74fe077..6e8a2331176ec 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi
> @@ -120,6 +120,7 @@
>                         compatible = "qcom,kryo385";
>                         reg = <0x0 0x0>;
>                         enable-method = "psci";
> +                       dynamic-power-coefficient = <100>;
>                         qcom,freq-domain = <&cpufreq_hw 0>;
>                         #cooling-cells = <2>;
>                         next-level-cache = <&L2_0>;
> @@ -137,6 +138,7 @@
>                         compatible = "qcom,kryo385";
>                         reg = <0x0 0x100>;
>                         enable-method = "psci";
> +                       dynamic-power-coefficient = <100>;
>                         qcom,freq-domain = <&cpufreq_hw 0>;
>                         #cooling-cells = <2>;
>                         next-level-cache = <&L2_100>;
> @@ -151,6 +153,7 @@
>                         compatible = "qcom,kryo385";
>                         reg = <0x0 0x200>;
>                         enable-method = "psci";
> +                       dynamic-power-coefficient = <100>;
>                         qcom,freq-domain = <&cpufreq_hw 0>;
>                         #cooling-cells = <2>;
>                         next-level-cache = <&L2_200>;
> @@ -165,6 +168,7 @@
>                         compatible = "qcom,kryo385";
>                         reg = <0x0 0x300>;
>                         enable-method = "psci";
> +                       dynamic-power-coefficient = <100>;
>                         qcom,freq-domain = <&cpufreq_hw 0>;
>                         #cooling-cells = <2>;
>                         next-level-cache = <&L2_300>;
> @@ -179,6 +183,7 @@
>                         compatible = "qcom,kryo385";
>                         reg = <0x0 0x400>;
>                         enable-method = "psci";
> +                       dynamic-power-coefficient = <396>;
>                         qcom,freq-domain = <&cpufreq_hw 1>;
>                         #cooling-cells = <2>;
>                         next-level-cache = <&L2_400>;
> @@ -193,6 +198,7 @@
>                         compatible = "qcom,kryo385";
>                         reg = <0x0 0x500>;
>                         enable-method = "psci";
> +                       dynamic-power-coefficient = <396>;
>                         qcom,freq-domain = <&cpufreq_hw 1>;
>                         #cooling-cells = <2>;
>                         next-level-cache = <&L2_500>;
> @@ -207,6 +213,7 @@
>                         compatible = "qcom,kryo385";
>                         reg = <0x0 0x600>;
>                         enable-method = "psci";
> +                       dynamic-power-coefficient = <396>;
>                         qcom,freq-domain = <&cpufreq_hw 1>;
>                         #cooling-cells = <2>;
>                         next-level-cache = <&L2_600>;
> @@ -221,6 +228,7 @@
>                         compatible = "qcom,kryo385";
>                         reg = <0x0 0x700>;
>                         enable-method = "psci";
> +                       dynamic-power-coefficient = <396>;
>                         qcom,freq-domain = <&cpufreq_hw 1>;
>                         #cooling-cells = <2>;
>                         next-level-cache = <&L2_700>;
> --
> 2.20.1.791.gb4d0f1c61a-goog
>

Patch
diff mbox series

diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi
index e4b69c74fe077..6e8a2331176ec 100644
--- a/arch/arm64/boot/dts/qcom/sdm845.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi
@@ -120,6 +120,7 @@ 
 			compatible = "qcom,kryo385";
 			reg = <0x0 0x0>;
 			enable-method = "psci";
+			dynamic-power-coefficient = <100>;
 			qcom,freq-domain = <&cpufreq_hw 0>;
 			#cooling-cells = <2>;
 			next-level-cache = <&L2_0>;
@@ -137,6 +138,7 @@ 
 			compatible = "qcom,kryo385";
 			reg = <0x0 0x100>;
 			enable-method = "psci";
+			dynamic-power-coefficient = <100>;
 			qcom,freq-domain = <&cpufreq_hw 0>;
 			#cooling-cells = <2>;
 			next-level-cache = <&L2_100>;
@@ -151,6 +153,7 @@ 
 			compatible = "qcom,kryo385";
 			reg = <0x0 0x200>;
 			enable-method = "psci";
+			dynamic-power-coefficient = <100>;
 			qcom,freq-domain = <&cpufreq_hw 0>;
 			#cooling-cells = <2>;
 			next-level-cache = <&L2_200>;
@@ -165,6 +168,7 @@ 
 			compatible = "qcom,kryo385";
 			reg = <0x0 0x300>;
 			enable-method = "psci";
+			dynamic-power-coefficient = <100>;
 			qcom,freq-domain = <&cpufreq_hw 0>;
 			#cooling-cells = <2>;
 			next-level-cache = <&L2_300>;
@@ -179,6 +183,7 @@ 
 			compatible = "qcom,kryo385";
 			reg = <0x0 0x400>;
 			enable-method = "psci";
+			dynamic-power-coefficient = <396>;
 			qcom,freq-domain = <&cpufreq_hw 1>;
 			#cooling-cells = <2>;
 			next-level-cache = <&L2_400>;
@@ -193,6 +198,7 @@ 
 			compatible = "qcom,kryo385";
 			reg = <0x0 0x500>;
 			enable-method = "psci";
+			dynamic-power-coefficient = <396>;
 			qcom,freq-domain = <&cpufreq_hw 1>;
 			#cooling-cells = <2>;
 			next-level-cache = <&L2_500>;
@@ -207,6 +213,7 @@ 
 			compatible = "qcom,kryo385";
 			reg = <0x0 0x600>;
 			enable-method = "psci";
+			dynamic-power-coefficient = <396>;
 			qcom,freq-domain = <&cpufreq_hw 1>;
 			#cooling-cells = <2>;
 			next-level-cache = <&L2_600>;
@@ -221,6 +228,7 @@ 
 			compatible = "qcom,kryo385";
 			reg = <0x0 0x700>;
 			enable-method = "psci";
+			dynamic-power-coefficient = <396>;
 			qcom,freq-domain = <&cpufreq_hw 1>;
 			#cooling-cells = <2>;
 			next-level-cache = <&L2_700>;