* [PATCH 0/2] arm64: dts: r8a7795: r8a7796: add thermal cooling management @ 2017-09-13 10:59 Niklas Söderlund [not found] ` <20170913105909.13230-1-niklas.soderlund+renesas-1zkq55x86MTxsAP9Fp7wbw@public.gmane.org> 0 siblings, 1 reply; 12+ messages in thread From: Niklas Söderlund @ 2017-09-13 10:59 UTC (permalink / raw) To: linux-pm, devicetree, Simon Horman, Magnus Damm Cc: linux-renesas-soc, Niklas Söderlund Hi, This series adds support for for using CPUFreq as a cooling device for the A57 CUP:s on Renesas H3 and M3-W SoC:s. It depends on Simon Horman's topic/rcar-gen3-cpufreq branch [1] and is tested on-top the latest renesas-drivers on H3 and M3-W. For test results and test procedure please see: http://elinux.org/R-Car/Tests:rcar_gen3_thermal Few notes on the specific values used in this series and why they might need to be changed. - The trip point temperature of 95000 used is the most conservative one from the BSP and maybe should be set at 110000 which is the most aggressive one in the BSP. - The cooling states described in all cooling-maps nodes might be subject to change depending on the out-come of the ongoing review process of Simon's work. It should use the highest possible cooling state so if the number of states change due review of his work this should be reflected in this series. 1. https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git Niklas Söderlund (2): arm64: dts: r8a7795: add thermal cooling management arm64: dts: r8a7796: add thermal cooling management arch/arm64/boot/dts/renesas/r8a7795.dtsi | 40 ++++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a7796.dtsi | 38 ++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) -- 2.14.1 ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <20170913105909.13230-1-niklas.soderlund+renesas-1zkq55x86MTxsAP9Fp7wbw@public.gmane.org>]
* [PATCH 1/2] arm64: dts: r8a7795: add thermal cooling management [not found] ` <20170913105909.13230-1-niklas.soderlund+renesas-1zkq55x86MTxsAP9Fp7wbw@public.gmane.org> @ 2017-09-13 10:59 ` Niklas Söderlund [not found] ` <20170913105909.13230-2-niklas.soderlund+renesas-1zkq55x86MTxsAP9Fp7wbw@public.gmane.org> 2018-01-01 18:13 ` Eduardo Valentin 2017-09-13 10:59 ` [PATCH 2/2] arm64: dts: r8a7796: " Niklas Söderlund 2017-09-15 7:37 ` [PATCH 0/2] arm64: dts: r8a7795: " Simon Horman 2 siblings, 2 replies; 12+ messages in thread From: Niklas Söderlund @ 2017-09-13 10:59 UTC (permalink / raw) To: linux-pm-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, Simon Horman, Magnus Damm Cc: linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA, Niklas Söderlund Add nodes and properties for thermal cooling management support. Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas-1zkq55x86MTxsAP9Fp7wbw@public.gmane.org> --- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi index 0ccac86bccc6b6f0..1818fd20660d0315 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi @@ -53,6 +53,7 @@ <&cluster0_opp_tb3>, <&cluster0_opp_tb4>, <&cluster0_opp_tb5>, <&cluster0_opp_tb6>, <&cluster0_opp_tb7>; + #cooling-cells = <2>; }; a57_1: cpu@1 { @@ -67,6 +68,7 @@ <&cluster0_opp_tb3>, <&cluster0_opp_tb4>, <&cluster0_opp_tb5>, <&cluster0_opp_tb6>, <&cluster0_opp_tb7>; + #cooling-cells = <2>; }; a57_2: cpu@2 { @@ -81,6 +83,7 @@ <&cluster0_opp_tb3>, <&cluster0_opp_tb4>, <&cluster0_opp_tb5>, <&cluster0_opp_tb6>, <&cluster0_opp_tb7>; + #cooling-cells = <2>; }; a57_3: cpu@3 { @@ -95,6 +98,7 @@ <&cluster0_opp_tb3>, <&cluster0_opp_tb4>, <&cluster0_opp_tb5>, <&cluster0_opp_tb6>, <&cluster0_opp_tb7>; + #cooling-cells = <2>; }; a53_0: cpu@100 { @@ -2821,12 +2825,24 @@ thermal-sensors = <&tsc 0>; trips { + sensor1_passive: sensor1-passive { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; sensor1_crit: sensor1-crit { temperature = <120000>; hysteresis = <2000>; type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&sensor1_passive>; + cooling-device = <&a57_0 4 4>; + }; + }; }; sensor_thermal2: sensor-thermal2 { @@ -2835,12 +2851,24 @@ thermal-sensors = <&tsc 1>; trips { + sensor2_passive: sensor2-passive { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; sensor2_crit: sensor2-crit { temperature = <120000>; hysteresis = <2000>; type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&sensor2_passive>; + cooling-device = <&a57_0 4 4>; + }; + }; }; sensor_thermal3: sensor-thermal3 { @@ -2849,12 +2877,24 @@ thermal-sensors = <&tsc 2>; trips { + sensor3_passive: sensor3-passive { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; sensor3_crit: sensor3-crit { temperature = <120000>; hysteresis = <2000>; type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&sensor3_passive>; + cooling-device = <&a57_0 4 4>; + }; + }; }; }; }; -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 12+ messages in thread
[parent not found: <20170913105909.13230-2-niklas.soderlund+renesas-1zkq55x86MTxsAP9Fp7wbw@public.gmane.org>]
* Re: [1/2] arm64: dts: r8a7795: add thermal cooling management [not found] ` <20170913105909.13230-2-niklas.soderlund+renesas-1zkq55x86MTxsAP9Fp7wbw@public.gmane.org> @ 2018-01-01 18:12 ` Eduardo Valentin 0 siblings, 0 replies; 12+ messages in thread From: Eduardo Valentin @ 2018-01-01 18:12 UTC (permalink / raw) To: Niklas Söderlund Cc: linux-pm-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, Simon Horman, Magnus Damm, linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA On Wed, Sep 13, 2017 at 12:59:08PM +0200, Niklas Söderlund wrote: > Add nodes and properties for thermal cooling management support. > > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas-1zkq55x86MTxsAP9Fp7wbw@public.gmane.org> Acked-by: Eduardo Valentin <edubezval-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > --- > arch/arm64/boot/dts/renesas/r8a7795.dtsi | 40 ++++++++++++++++++++++++++++++++ > 1 file changed, 40 insertions(+) > > diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi > index 0ccac86bccc6b6f0..1818fd20660d0315 100644 > --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi > +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi > @@ -53,6 +53,7 @@ > <&cluster0_opp_tb3>, <&cluster0_opp_tb4>, > <&cluster0_opp_tb5>, <&cluster0_opp_tb6>, > <&cluster0_opp_tb7>; > + #cooling-cells = <2>; > }; > > a57_1: cpu@1 { > @@ -67,6 +68,7 @@ > <&cluster0_opp_tb3>, <&cluster0_opp_tb4>, > <&cluster0_opp_tb5>, <&cluster0_opp_tb6>, > <&cluster0_opp_tb7>; > + #cooling-cells = <2>; > }; > > a57_2: cpu@2 { > @@ -81,6 +83,7 @@ > <&cluster0_opp_tb3>, <&cluster0_opp_tb4>, > <&cluster0_opp_tb5>, <&cluster0_opp_tb6>, > <&cluster0_opp_tb7>; > + #cooling-cells = <2>; > }; > > a57_3: cpu@3 { > @@ -95,6 +98,7 @@ > <&cluster0_opp_tb3>, <&cluster0_opp_tb4>, > <&cluster0_opp_tb5>, <&cluster0_opp_tb6>, > <&cluster0_opp_tb7>; > + #cooling-cells = <2>; > }; > > a53_0: cpu@100 { > @@ -2821,12 +2825,24 @@ > thermal-sensors = <&tsc 0>; > > trips { > + sensor1_passive: sensor1-passive { > + temperature = <95000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > sensor1_crit: sensor1-crit { > temperature = <120000>; > hysteresis = <2000>; > type = "critical"; > }; > }; > + > + cooling-maps { > + map0 { > + trip = <&sensor1_passive>; > + cooling-device = <&a57_0 4 4>; > + }; > + }; > }; > > sensor_thermal2: sensor-thermal2 { > @@ -2835,12 +2851,24 @@ > thermal-sensors = <&tsc 1>; > > trips { > + sensor2_passive: sensor2-passive { > + temperature = <95000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > sensor2_crit: sensor2-crit { > temperature = <120000>; > hysteresis = <2000>; > type = "critical"; > }; > }; > + > + cooling-maps { > + map0 { > + trip = <&sensor2_passive>; > + cooling-device = <&a57_0 4 4>; > + }; > + }; > }; > > sensor_thermal3: sensor-thermal3 { > @@ -2849,12 +2877,24 @@ > thermal-sensors = <&tsc 2>; > > trips { > + sensor3_passive: sensor3-passive { > + temperature = <95000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > sensor3_crit: sensor3-crit { > temperature = <120000>; > hysteresis = <2000>; > type = "critical"; > }; > }; > + > + cooling-maps { > + map0 { > + trip = <&sensor3_passive>; > + cooling-device = <&a57_0 4 4>; > + }; > + }; > }; > }; > }; -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [1/2] arm64: dts: r8a7795: add thermal cooling management 2017-09-13 10:59 ` [PATCH 1/2] arm64: dts: r8a7795: " Niklas Söderlund [not found] ` <20170913105909.13230-2-niklas.soderlund+renesas-1zkq55x86MTxsAP9Fp7wbw@public.gmane.org> @ 2018-01-01 18:13 ` Eduardo Valentin 2018-01-02 9:19 ` Simon Horman 1 sibling, 1 reply; 12+ messages in thread From: Eduardo Valentin @ 2018-01-01 18:13 UTC (permalink / raw) To: Niklas Söderlund Cc: linux-pm, devicetree, Simon Horman, Magnus Damm, linux-renesas-soc On Wed, Sep 13, 2017 at 12:59:08PM +0200, Niklas Söderlund wrote: > Add nodes and properties for thermal cooling management support. > > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> > --- Just a reminder, this series should go via your arch tree. You may add my acks. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [1/2] arm64: dts: r8a7795: add thermal cooling management 2018-01-01 18:13 ` Eduardo Valentin @ 2018-01-02 9:19 ` Simon Horman 2018-01-03 0:03 ` Niklas Söderlund 0 siblings, 1 reply; 12+ messages in thread From: Simon Horman @ 2018-01-02 9:19 UTC (permalink / raw) To: Eduardo Valentin Cc: Niklas Söderlund, linux-pm, devicetree, Magnus Damm, linux-renesas-soc On Mon, Jan 01, 2018 at 10:13:35AM -0800, Eduardo Valentin wrote: > On Wed, Sep 13, 2017 at 12:59:08PM +0200, Niklas Söderlund wrote: > > Add nodes and properties for thermal cooling management support. > > > > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> > > --- > > Just a reminder, this series should go via your arch tree. You may add > my acks. Ack. Niklas, could you comment on the readiness of these patches for the renesas tree? ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [1/2] arm64: dts: r8a7795: add thermal cooling management 2018-01-02 9:19 ` Simon Horman @ 2018-01-03 0:03 ` Niklas Söderlund 2018-01-03 10:14 ` Simon Horman 0 siblings, 1 reply; 12+ messages in thread From: Niklas Söderlund @ 2018-01-03 0:03 UTC (permalink / raw) To: Simon Horman Cc: Eduardo Valentin, linux-pm, devicetree, Magnus Damm, linux-renesas-soc Hi Simon, On 2018-01-02 10:19:44 +0100, Simon Horman wrote: > On Mon, Jan 01, 2018 at 10:13:35AM -0800, Eduardo Valentin wrote: > > On Wed, Sep 13, 2017 at 12:59:08PM +0200, Niklas Söderlund wrote: > > > Add nodes and properties for thermal cooling management support. > > > > > > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> > > > --- > > > > Just a reminder, this series should go via your arch tree. You may add > > my acks. > > Ack. > > Niklas, could you comment on the readiness of these patches > for the renesas tree? I think maybe the patches might have became a bit outdated since they where posted due to all reg property fixup patches. The blocker for me reposting this series is that the patches this depends 'topic/rcar-gen3-cpufreq' on are not yet in the renesas tree next or devel branches. Do you think it would be valuable for me to refresh these patches before the dependencies are picked up? -- Regards, Niklas Söderlund ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [1/2] arm64: dts: r8a7795: add thermal cooling management 2018-01-03 0:03 ` Niklas Söderlund @ 2018-01-03 10:14 ` Simon Horman 2018-01-03 10:25 ` Geert Uytterhoeven 0 siblings, 1 reply; 12+ messages in thread From: Simon Horman @ 2018-01-03 10:14 UTC (permalink / raw) To: Niklas Söderlund Cc: Eduardo Valentin, linux-pm, devicetree, Magnus Damm, linux-renesas-soc On Wed, Jan 03, 2018 at 01:03:52AM +0100, Niklas Söderlund wrote: > Hi Simon, > > On 2018-01-02 10:19:44 +0100, Simon Horman wrote: > > On Mon, Jan 01, 2018 at 10:13:35AM -0800, Eduardo Valentin wrote: > > > On Wed, Sep 13, 2017 at 12:59:08PM +0200, Niklas Söderlund wrote: > > > > Add nodes and properties for thermal cooling management support. > > > > > > > > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> > > > > --- > > > > > > Just a reminder, this series should go via your arch tree. You may add > > > my acks. > > > > Ack. > > > > Niklas, could you comment on the readiness of these patches > > for the renesas tree? > > I think maybe the patches might have became a bit outdated since they > where posted due to all reg property fixup patches. The blocker for me > reposting this series is that the patches this depends > 'topic/rcar-gen3-cpufreq' on are not yet in the renesas tree next or > devel branches. Do you think it would be valuable for me to refresh > these patches before the dependencies are picked up? Probably not. I'll try to work on getting cpufreq upstream :) ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [1/2] arm64: dts: r8a7795: add thermal cooling management 2018-01-03 10:14 ` Simon Horman @ 2018-01-03 10:25 ` Geert Uytterhoeven 2018-01-04 16:53 ` Simon Horman 0 siblings, 1 reply; 12+ messages in thread From: Geert Uytterhoeven @ 2018-01-03 10:25 UTC (permalink / raw) To: Simon Horman Cc: Niklas Söderlund, Eduardo Valentin, Linux PM list, devicetree, Magnus Damm, Linux-Renesas Hi Simon, On Wed, Jan 3, 2018 at 11:14 AM, Simon Horman <horms@verge.net.au> wrote: > On Wed, Jan 03, 2018 at 01:03:52AM +0100, Niklas Söderlund wrote: >> On 2018-01-02 10:19:44 +0100, Simon Horman wrote: >> > On Mon, Jan 01, 2018 at 10:13:35AM -0800, Eduardo Valentin wrote: >> > > On Wed, Sep 13, 2017 at 12:59:08PM +0200, Niklas Söderlund wrote: >> > > > Add nodes and properties for thermal cooling management support. >> > > > >> > > > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> >> > > > --- >> > > >> > > Just a reminder, this series should go via your arch tree. You may add >> > > my acks. >> > >> > Ack. >> > >> > Niklas, could you comment on the readiness of these patches >> > for the renesas tree? >> >> I think maybe the patches might have became a bit outdated since they >> where posted due to all reg property fixup patches. The blocker for me >> reposting this series is that the patches this depends >> 'topic/rcar-gen3-cpufreq' on are not yet in the renesas tree next or >> devel branches. Do you think it would be valuable for me to refresh >> these patches before the dependencies are picked up? > > Probably not. I'll try to work on getting cpufreq upstream :) I think it's working fine in renesas-drivers, isn't it? As in the mean time the R-Car Gen3 CPG/MSSR drivers gained suspend/resume support, the only missing part is support for restoring the Z* clocks during system resume. Unless that is handled automatically by the cpufreq core. For secondary CPU cores, this may be handled by the CPU hotplug code. For the primary CPU core, I don't know. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [1/2] arm64: dts: r8a7795: add thermal cooling management 2018-01-03 10:25 ` Geert Uytterhoeven @ 2018-01-04 16:53 ` Simon Horman 0 siblings, 0 replies; 12+ messages in thread From: Simon Horman @ 2018-01-04 16:53 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Niklas Söderlund, Eduardo Valentin, Linux PM list, devicetree, Magnus Damm, Linux-Renesas On Wed, Jan 03, 2018 at 11:25:37AM +0100, Geert Uytterhoeven wrote: > Hi Simon, > > On Wed, Jan 3, 2018 at 11:14 AM, Simon Horman <horms@verge.net.au> wrote: > > On Wed, Jan 03, 2018 at 01:03:52AM +0100, Niklas Söderlund wrote: > >> On 2018-01-02 10:19:44 +0100, Simon Horman wrote: > >> > On Mon, Jan 01, 2018 at 10:13:35AM -0800, Eduardo Valentin wrote: > >> > > On Wed, Sep 13, 2017 at 12:59:08PM +0200, Niklas Söderlund wrote: > >> > > > Add nodes and properties for thermal cooling management support. > >> > > > > >> > > > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> > >> > > > --- > >> > > > >> > > Just a reminder, this series should go via your arch tree. You may add > >> > > my acks. > >> > > >> > Ack. > >> > > >> > Niklas, could you comment on the readiness of these patches > >> > for the renesas tree? > >> > >> I think maybe the patches might have became a bit outdated since they > >> where posted due to all reg property fixup patches. The blocker for me > >> reposting this series is that the patches this depends > >> 'topic/rcar-gen3-cpufreq' on are not yet in the renesas tree next or > >> devel branches. Do you think it would be valuable for me to refresh > >> these patches before the dependencies are picked up? > > > > Probably not. I'll try to work on getting cpufreq upstream :) > > I think it's working fine in renesas-drivers, isn't it? There was some cleanup of the DTS patches pending. That has now happened, been posted, reviewed and merged :) > As in the mean time the R-Car Gen3 CPG/MSSR drivers gained suspend/resume > support, the only missing part is support for restoring the Z* clocks during > system resume. Unless that is handled automatically by the cpufreq core. > For secondary CPU cores, this may be handled by the CPU hotplug code. > For the primary CPU core, I don't know. Thanks, I'll look into that. ^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 2/2] arm64: dts: r8a7796: add thermal cooling management [not found] ` <20170913105909.13230-1-niklas.soderlund+renesas-1zkq55x86MTxsAP9Fp7wbw@public.gmane.org> 2017-09-13 10:59 ` [PATCH 1/2] arm64: dts: r8a7795: " Niklas Söderlund @ 2017-09-13 10:59 ` Niklas Söderlund 2018-01-01 18:11 ` [2/2] " Eduardo Valentin 2017-09-15 7:37 ` [PATCH 0/2] arm64: dts: r8a7795: " Simon Horman 2 siblings, 1 reply; 12+ messages in thread From: Niklas Söderlund @ 2017-09-13 10:59 UTC (permalink / raw) To: linux-pm-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, Simon Horman, Magnus Damm Cc: linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA, Niklas Söderlund Add nodes and properties for thermal cooling management support. Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas-1zkq55x86MTxsAP9Fp7wbw@public.gmane.org> --- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7796.dtsi b/arch/arm64/boot/dts/renesas/r8a7796.dtsi index 2905a3b953aab145..0b805dc30925e9be 100644 --- a/arch/arm64/boot/dts/renesas/r8a7796.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7796.dtsi @@ -53,6 +53,7 @@ <&cluster0_opp_tb3>, <&cluster0_opp_tb4>, <&cluster0_opp_tb5>, <&cluster0_opp_tb6>, <&cluster0_opp_tb7>; + #cooling-cells = <2>; }; a57_1: cpu@1 { @@ -67,6 +68,7 @@ <&cluster0_opp_tb3>, <&cluster0_opp_tb4>, <&cluster0_opp_tb5>, <&cluster0_opp_tb6>, <&cluster0_opp_tb7>; + #cooling-cells = <2>; }; a53_0: cpu@100 { @@ -2116,12 +2118,24 @@ thermal-sensors = <&tsc 0>; trips { + sensor1_passive: sensor1-passive { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; sensor1_crit: sensor1-crit { temperature = <120000>; hysteresis = <2000>; type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&sensor1_passive>; + cooling-device = <&a57_0 5 5>; + }; + }; }; sensor_thermal2: sensor-thermal2 { @@ -2130,12 +2144,24 @@ thermal-sensors = <&tsc 1>; trips { + sensor2_passive: sensor2-passive { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; sensor2_crit: sensor2-crit { temperature = <120000>; hysteresis = <2000>; type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&sensor2_passive>; + cooling-device = <&a57_0 5 5>; + }; + }; }; sensor_thermal3: sensor-thermal3 { @@ -2144,12 +2170,24 @@ thermal-sensors = <&tsc 2>; trips { + sensor3_passive: sensor3-passive { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; sensor3_crit: sensor3-crit { temperature = <120000>; hysteresis = <2000>; type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&sensor3_passive>; + cooling-device = <&a57_0 5 5>; + }; + }; }; }; -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [2/2] arm64: dts: r8a7796: add thermal cooling management 2017-09-13 10:59 ` [PATCH 2/2] arm64: dts: r8a7796: " Niklas Söderlund @ 2018-01-01 18:11 ` Eduardo Valentin 0 siblings, 0 replies; 12+ messages in thread From: Eduardo Valentin @ 2018-01-01 18:11 UTC (permalink / raw) To: Niklas Söderlund Cc: linux-pm, devicetree, Simon Horman, Magnus Damm, linux-renesas-soc On Wed, Sep 13, 2017 at 12:59:09PM +0200, Niklas Söderlund wrote: > Add nodes and properties for thermal cooling management support. > > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Acked-by: Eduardo Valentin <edubezval@gmail.com> > --- > arch/arm64/boot/dts/renesas/r8a7796.dtsi | 38 ++++++++++++++++++++++++++++++++ > 1 file changed, 38 insertions(+) > > diff --git a/arch/arm64/boot/dts/renesas/r8a7796.dtsi b/arch/arm64/boot/dts/renesas/r8a7796.dtsi > index 2905a3b953aab145..0b805dc30925e9be 100644 > --- a/arch/arm64/boot/dts/renesas/r8a7796.dtsi > +++ b/arch/arm64/boot/dts/renesas/r8a7796.dtsi > @@ -53,6 +53,7 @@ > <&cluster0_opp_tb3>, <&cluster0_opp_tb4>, > <&cluster0_opp_tb5>, <&cluster0_opp_tb6>, > <&cluster0_opp_tb7>; > + #cooling-cells = <2>; > }; > > a57_1: cpu@1 { > @@ -67,6 +68,7 @@ > <&cluster0_opp_tb3>, <&cluster0_opp_tb4>, > <&cluster0_opp_tb5>, <&cluster0_opp_tb6>, > <&cluster0_opp_tb7>; > + #cooling-cells = <2>; > }; > > a53_0: cpu@100 { > @@ -2116,12 +2118,24 @@ > thermal-sensors = <&tsc 0>; > > trips { > + sensor1_passive: sensor1-passive { > + temperature = <95000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > sensor1_crit: sensor1-crit { > temperature = <120000>; > hysteresis = <2000>; > type = "critical"; > }; > }; > + > + cooling-maps { > + map0 { > + trip = <&sensor1_passive>; > + cooling-device = <&a57_0 5 5>; > + }; > + }; > }; > > sensor_thermal2: sensor-thermal2 { > @@ -2130,12 +2144,24 @@ > thermal-sensors = <&tsc 1>; > > trips { > + sensor2_passive: sensor2-passive { > + temperature = <95000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > sensor2_crit: sensor2-crit { > temperature = <120000>; > hysteresis = <2000>; > type = "critical"; > }; > }; > + > + cooling-maps { > + map0 { > + trip = <&sensor2_passive>; > + cooling-device = <&a57_0 5 5>; > + }; > + }; > }; > > sensor_thermal3: sensor-thermal3 { > @@ -2144,12 +2170,24 @@ > thermal-sensors = <&tsc 2>; > > trips { > + sensor3_passive: sensor3-passive { > + temperature = <95000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > sensor3_crit: sensor3-crit { > temperature = <120000>; > hysteresis = <2000>; > type = "critical"; > }; > }; > + > + cooling-maps { > + map0 { > + trip = <&sensor3_passive>; > + cooling-device = <&a57_0 5 5>; > + }; > + }; > }; > }; > ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 0/2] arm64: dts: r8a7795: r8a7796: add thermal cooling management [not found] ` <20170913105909.13230-1-niklas.soderlund+renesas-1zkq55x86MTxsAP9Fp7wbw@public.gmane.org> 2017-09-13 10:59 ` [PATCH 1/2] arm64: dts: r8a7795: " Niklas Söderlund 2017-09-13 10:59 ` [PATCH 2/2] arm64: dts: r8a7796: " Niklas Söderlund @ 2017-09-15 7:37 ` Simon Horman 2 siblings, 0 replies; 12+ messages in thread From: Simon Horman @ 2017-09-15 7:37 UTC (permalink / raw) To: Niklas Söderlund Cc: linux-pm-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, Magnus Damm, linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA On Wed, Sep 13, 2017 at 12:59:07PM +0200, Niklas Söderlund wrote: > Hi, > > This series adds support for for using CPUFreq as a cooling device for > the A57 CUP:s on Renesas H3 and M3-W SoC:s. It depends on Simon Horman's > topic/rcar-gen3-cpufreq branch [1] and is tested on-top the latest > renesas-drivers on H3 and M3-W. For test results and test procedure > please see: > > http://elinux.org/R-Car/Tests:rcar_gen3_thermal My cpufreq work needs revising to address review from both Geert and yourself. I will try to address this in the near future. In the mean time I have marked this series as Deferred. > Few notes on the specific values used in this series and why they might > need to be changed. > > - The trip point temperature of 95000 used is the most conservative one > from the BSP and maybe should be set at 110000 which is the most > aggressive one in the BSP. > > - The cooling states described in all cooling-maps nodes might be > subject to change depending on the out-come of the ongoing review > process of Simon's work. It should use the highest possible cooling > state so if the number of states change due review of his work this > should be reflected in this series. > > 1. https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git > > Niklas Söderlund (2): > arm64: dts: r8a7795: add thermal cooling management > arm64: dts: r8a7796: add thermal cooling management > > arch/arm64/boot/dts/renesas/r8a7795.dtsi | 40 ++++++++++++++++++++++++++++++++ > arch/arm64/boot/dts/renesas/r8a7796.dtsi | 38 ++++++++++++++++++++++++++++++ > 2 files changed, 78 insertions(+) > > -- > 2.14.1 > -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2018-01-04 16:53 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-09-13 10:59 [PATCH 0/2] arm64: dts: r8a7795: r8a7796: add thermal cooling management Niklas Söderlund [not found] ` <20170913105909.13230-1-niklas.soderlund+renesas-1zkq55x86MTxsAP9Fp7wbw@public.gmane.org> 2017-09-13 10:59 ` [PATCH 1/2] arm64: dts: r8a7795: " Niklas Söderlund [not found] ` <20170913105909.13230-2-niklas.soderlund+renesas-1zkq55x86MTxsAP9Fp7wbw@public.gmane.org> 2018-01-01 18:12 ` [1/2] " Eduardo Valentin 2018-01-01 18:13 ` Eduardo Valentin 2018-01-02 9:19 ` Simon Horman 2018-01-03 0:03 ` Niklas Söderlund 2018-01-03 10:14 ` Simon Horman 2018-01-03 10:25 ` Geert Uytterhoeven 2018-01-04 16:53 ` Simon Horman 2017-09-13 10:59 ` [PATCH 2/2] arm64: dts: r8a7796: " Niklas Söderlund 2018-01-01 18:11 ` [2/2] " Eduardo Valentin 2017-09-15 7:37 ` [PATCH 0/2] arm64: dts: r8a7795: " Simon Horman
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).