From: Brian Norris <briannorris@chromium.org>
To: Heiko Stuebner <heiko@sntech.de>
Cc: linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
Caesar Wang <wxt@rock-chips.com>,
Doug Anderson <dianders@chromium.org>,
linux-arm-kernel@lists.infradead.org,
Matthias Kaehlcke <mka@chromium.org>
Subject: Re: [PATCH 3/3] arm64: dts: rockchip: set rk3399 dynamic CPU power coefficients
Date: Fri, 23 Jun 2017 11:49:57 -0700 [thread overview]
Message-ID: <20170623184956.GA107165@google.com> (raw)
In-Reply-To: <5395662.EDQ3y7Qj0C@phil>
On Fri, Jun 23, 2017 at 08:39:25PM +0200, Heiko Stuebner wrote:
> Am Freitag, 23. Juni 2017, 10:07:37 CEST schrieb Brian Norris:
> > Provide the dynamic power coefficient of the big and little CPU
> > clusters. These numbers are currently in use on the Samsung Chromebook
> > Plus ("Kevin").
> >
> > The power allocator thermal governor doesn't know how to do anything if
> > it doesn't get power parameters from its cooling devices (in this case,
> > CPUfreq). So this effectively enables the power-allocator governor.
> >
> > Signed-off-by: Brian Norris <briannorris@chromium.org>
> > ---
> > arch/arm64/boot/dts/rockchip/rk3399.dtsi | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
> > index 69c56f7316c4..4f6667547814 100644
> > --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
> > +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
> > @@ -109,6 +109,7 @@
> > reg = <0x0 0x0>;
> > enable-method = "psci";
> > #cooling-cells = <2>; /* min followed by max */
> > + dynamic-power-coefficient = <100>;
> > clocks = <&cru ARMCLKL>;
> > };
> >
> > @@ -142,6 +143,7 @@
> > reg = <0x0 0x100>;
> > enable-method = "psci";
> > #cooling-cells = <2>; /* min followed by max */
> > + dynamic-power-coefficient = <100>;
> > clocks = <&cru ARMCLKB>;
> > };
> >
> >
>
> I think these should be set for all cores, similar to clocks. While
> cpufreq and friends regularly only take the first number, in a
> hw-description sense, it should be part of every core in the dt.
It's kinda paired with the cooling information (e.g., #cooling-cells)
which are only present in the first CPU in the cluster, currently.
I can copy this definitely real, empirical value into the other CPUs if
you really think that's necessary :)
Brian
WARNING: multiple messages have this Message-ID (diff)
From: briannorris@chromium.org (Brian Norris)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/3] arm64: dts: rockchip: set rk3399 dynamic CPU power coefficients
Date: Fri, 23 Jun 2017 11:49:57 -0700 [thread overview]
Message-ID: <20170623184956.GA107165@google.com> (raw)
In-Reply-To: <5395662.EDQ3y7Qj0C@phil>
On Fri, Jun 23, 2017 at 08:39:25PM +0200, Heiko Stuebner wrote:
> Am Freitag, 23. Juni 2017, 10:07:37 CEST schrieb Brian Norris:
> > Provide the dynamic power coefficient of the big and little CPU
> > clusters. These numbers are currently in use on the Samsung Chromebook
> > Plus ("Kevin").
> >
> > The power allocator thermal governor doesn't know how to do anything if
> > it doesn't get power parameters from its cooling devices (in this case,
> > CPUfreq). So this effectively enables the power-allocator governor.
> >
> > Signed-off-by: Brian Norris <briannorris@chromium.org>
> > ---
> > arch/arm64/boot/dts/rockchip/rk3399.dtsi | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
> > index 69c56f7316c4..4f6667547814 100644
> > --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
> > +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
> > @@ -109,6 +109,7 @@
> > reg = <0x0 0x0>;
> > enable-method = "psci";
> > #cooling-cells = <2>; /* min followed by max */
> > + dynamic-power-coefficient = <100>;
> > clocks = <&cru ARMCLKL>;
> > };
> >
> > @@ -142,6 +143,7 @@
> > reg = <0x0 0x100>;
> > enable-method = "psci";
> > #cooling-cells = <2>; /* min followed by max */
> > + dynamic-power-coefficient = <100>;
> > clocks = <&cru ARMCLKB>;
> > };
> >
> >
>
> I think these should be set for all cores, similar to clocks. While
> cpufreq and friends regularly only take the first number, in a
> hw-description sense, it should be part of every core in the dt.
It's kinda paired with the cooling information (e.g., #cooling-cells)
which are only present in the first CPU in the cluster, currently.
I can copy this definitely real, empirical value into the other CPUs if
you really think that's necessary :)
Brian
next prev parent reply other threads:[~2017-06-23 18:49 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-23 17:07 [PATCH 1/3] arm64: dts: rockchip: Update CPU regulator voltage ranges for Gru Brian Norris
2017-06-23 17:07 ` Brian Norris
2017-06-23 17:07 ` [PATCH 2/3] arm64: dts: rockchip: Use vctrl regulators for dynamic CPU voltages on Gru/Kevin Brian Norris
2017-06-23 17:07 ` Brian Norris
2017-06-28 15:44 ` Heiko Stuebner
2017-06-28 15:44 ` Heiko Stuebner
2017-06-29 20:53 ` Brian Norris
2017-06-29 20:53 ` Brian Norris
2017-06-23 17:07 ` [PATCH 3/3] arm64: dts: rockchip: set rk3399 dynamic CPU power coefficients Brian Norris
2017-06-23 17:07 ` Brian Norris
2017-06-23 18:39 ` Heiko Stuebner
2017-06-23 18:39 ` Heiko Stuebner
2017-06-23 18:49 ` Brian Norris [this message]
2017-06-23 18:49 ` Brian Norris
2017-06-23 18:59 ` Heiko Stuebner
2017-06-23 18:59 ` Heiko Stuebner
2017-06-28 15:45 ` Heiko Stuebner
2017-06-28 15:45 ` Heiko Stuebner
2017-06-28 15:41 ` [PATCH 1/3] arm64: dts: rockchip: Update CPU regulator voltage ranges for Gru Heiko Stuebner
2017-06-28 15:41 ` Heiko Stuebner
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=20170623184956.GA107165@google.com \
--to=briannorris@chromium.org \
--cc=dianders@chromium.org \
--cc=heiko@sntech.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=mka@chromium.org \
--cc=wxt@rock-chips.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.