[PATCH v1 1/3] of: add nvidia,thermtrips property

2018-12-07 Thread Wei Ni
Add optional property "nvidia,thermtrips". If present, these trips will be used as HW shutdown trips, and critical trips will be used as SW shutdown trips. Signed-off-by: Wei Ni --- .../bindings/thermal/nvidia,tegra124-soctherm.txt| 20 +--- 1 file changed, 17

[PATCH v1 0/3] support nvidia,thermtrip property

2018-12-07 Thread Wei Ni
Add "nvidia,thermtrip" property to implement HW and SW shutdown. Wei Ni (3): of: add nvidia,thermtrips property thermal: tegra: support hw and sw shutdown arm64: dts: tegra210: set thermtrip .../bindings/thermal/nvidia,tegra124-soctherm.txt | 20 - arch/arm64/boot/dts/nvidi

[PATCH v1 2/3] thermal: tegra: support hw and sw shutdown

2018-12-07 Thread Wei Ni
trips" property, it allows soctherm DT to specify thermtrip temperatures so that critical trip points framework can be used for doing software shutdown. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 99 ++- drivers/thermal/tegra/soctherm.h

[PATCH v1 3/3] arm64: dts: tegra210: set thermtrip

2018-12-07 Thread Wei Ni
Set "nvidia,thermtrips" property, it used to set HW shutdown temperatures. Signed-off-by: Wei Ni --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/nvidia/tegra210.dtsi b/arch/arm6

Re: [PATCH v5 0/3] Fixes for Tegra soctherm

2018-12-05 Thread Wei Ni
Hi, Does there have any comments on this serial? Thanks. Wei. On 3/12/2018 1:55 PM, Wei Ni wrote: > This series fixed some issues for Tegra soctherm > > Main changes from v4: > 1. fixed for the parsing sensor id. > 2. keep warning for missing critical trips. > > Main

Re: [PATCH] thermal: tegra: add get_trend ops

2018-12-05 Thread Wei Ni
Hi Daniel, It seems no more comments, could this patch be approved? Thanks. Wei. On 30/11/2018 11:07 AM, Wei Ni wrote: > > > On 30/11/2018 1:01 AM, Eduardo Valentin wrote: >> On Wed, Nov 21, 2018 at 02:36:10PM +0800, Wei Ni wrote: >>> >>> >>> On

[PATCH v5 1/3] thermal: tegra: remove unnecessary warnings

2018-12-02 Thread Wei Ni
Convert warnings to info as not all platforms may have all the thresholds and sensors enabled. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c

[PATCH v5 3/3] thermal: tegra: parse sensor id before sensor register

2018-12-02 Thread Wei Ni
Since different platforms may not support all 4 sensors, so the sensor registration may be failed. Add codes to parse dt to find sensor id which need to be registered. So that the registration can be successful on all platform. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 45

[PATCH v5 2/3] thermal: tegra: fix memory allocation

2018-12-02 Thread Wei Ni
Fix memory allocation to store the pointers to thermal_zone_device. Signed-off-by: Wei Ni Acked-by: Thierry Reding --- drivers/thermal/tegra/soctherm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c index

[PATCH v5 0/3] Fixes for Tegra soctherm

2018-12-02 Thread Wei Ni
to avoid registration failure. Main changes from v1: 1. Acked by Thierry Reding for the patch "thermal: tegra: fix memory allocation". 2. Print out the sensor name when register failed. 2. Remove patch "thermal: tegra: fix coverity defect" Wei Ni (3): thermal: tegra: remove

Re: [PATCH v3 3/3] thermal: tegra: parse sensor id before sensor register

2018-11-29 Thread Wei Ni
On 30/11/2018 1:13 AM, Thierry Reding wrote: > On Thu, Nov 29, 2018 at 01:55:02PM +0800, Wei Ni wrote: >> On 28/11/2018 6:25 PM, Thierry Reding wrote: >>> On Wed, Nov 28, 2018 at 01:44:37PM +0800, Wei Ni wrote: > [...] >>>> + bool ret = false; >>&g

Re: [PATCH] thermal: tegra: add get_trend ops

2018-11-29 Thread Wei Ni
On 30/11/2018 1:01 AM, Eduardo Valentin wrote: > On Wed, Nov 21, 2018 at 02:36:10PM +0800, Wei Ni wrote: >> >> >> On 20/11/2018 11:38 PM, Thierry Reding wrote: >>> On Tue, Nov 20, 2018 at 05:11:17PM +0800, Wei Ni wrote: >>>> Add support for get_t

Re: [PATCH v4 3/3] thermal: tegra: parse sensor id before sensor register

2018-11-29 Thread Wei Ni
On 30/11/2018 12:46 AM, Eduardo Valentin wrote: > On Thu, Nov 29, 2018 at 06:09:43PM +0800, Wei Ni wrote: >> Since different platforms may not support all 4 >> sensors, so the sensor registration may be failed. >> Add codes to parse dt to find sensor id which >>

Re: [PATCH v4 1/3] thermal: tegra: remove unnecessary warnings

2018-11-29 Thread Wei Ni
On 30/11/2018 12:39 AM, Eduardo Valentin wrote: > Hey, > > On Thu, Nov 29, 2018 at 06:09:41PM +0800, Wei Ni wrote: >> Convert warnings to info as not all platforms may >> have all the thresholds and sensors enabled. >> >> Signed-off-by: Wei Ni >> --- &

[PATCH v4 2/3] thermal: tegra: fix memory allocation

2018-11-29 Thread Wei Ni
Fix memory allocation to store the pointers to thermal_zone_device. Signed-off-by: Wei Ni Acked-by: Thierry Reding --- drivers/thermal/tegra/soctherm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c index

[PATCH v4 1/3] thermal: tegra: remove unnecessary warnings

2018-11-29 Thread Wei Ni
Convert warnings to info as not all platforms may have all the thresholds and sensors enabled. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c

[PATCH v4 3/3] thermal: tegra: parse sensor id before sensor register

2018-11-29 Thread Wei Ni
Since different platforms may not support all 4 sensors, so the sensor registration may be failed. Add codes to parse dt to find sensor id which need to be registered. So that the registration can be successful on all platform. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 46

[PATCH v4 0/3] Fixes for Tegra soctherm

2018-11-29 Thread Wei Ni
ermal: tegra: fix memory allocation". 2. Print out the sensor name when register failed. 2. Remove patch "thermal: tegra: fix coverity defect" Wei Ni (3): thermal: tegra: remove unnecessary warnings thermal: tegra: fix memory allocation thermal: tegra: parse sensor id before senso

Re: [PATCH v3 1/3] thermal: tegra: remove unnecessary warnings

2018-11-28 Thread Wei Ni
On 28/11/2018 6:12 PM, Thierry Reding wrote: > On Wed, Nov 28, 2018 at 01:44:35PM +0800, Wei Ni wrote: >> Convert warnings to info as not all platforms may >> have all the thresholds and sensors enabled. >> >> Signed-off-by: Wei Ni >> --- >> drivers/th

Re: [PATCH v3 3/3] thermal: tegra: parse sensor id before sensor register

2018-11-28 Thread Wei Ni
On 28/11/2018 6:25 PM, Thierry Reding wrote: > On Wed, Nov 28, 2018 at 01:44:37PM +0800, Wei Ni wrote: >> Since different platforms may not support all 4 >> sensors, so the sensor registration may be failed. >> Add codes to parse dt to find sensor id which >>

Re: [PATCH] thermal: tegra: add get_trend ops

2018-11-28 Thread Wei Ni
Hi all, Does there have any more comments for this patch? Thanks. Wei. On 21/11/2018 2:36 PM, Wei Ni wrote: > > > On 20/11/2018 11:38 PM, Thierry Reding wrote: >> On Tue, Nov 20, 2018 at 05:11:17PM +0800, Wei Ni wrote: >>> Add support for get_trend ops that all

Re: [PATCH v3 3/3] thermal: tegra: parse sensor id before sensor register

2018-11-27 Thread Wei Ni
Hi Daniel, I updated my patch to parse the sensor id, please take a look. Wei. On 28/11/2018 1:44 PM, Wei Ni wrote: > Since different platforms may not support all 4 > sensors, so the sensor registration may be failed. > Add codes to parse dt to find sensor id which > need to be re

[PATCH v3 3/3] thermal: tegra: parse sensor id before sensor register

2018-11-27 Thread Wei Ni
Since different platforms may not support all 4 sensors, so the sensor registration may be failed. Add codes to parse dt to find sensor id which need to be registered. So that the registration can be successful on all platform. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 46

[PATCH v3 2/3] thermal: tegra: fix memory allocation

2018-11-27 Thread Wei Ni
Fix memory allocation to store the pointers to thermal_zone_device. Signed-off-by: Wei Ni Acked-by: Thierry Reding --- drivers/thermal/tegra/soctherm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c index

[PATCH v3 0/3] Fixes for Tegra soctherm

2018-11-27 Thread Wei Ni
failed. 2. Remove patch "thermal: tegra: fix coverity defect" Wei Ni (3): thermal: tegra: remove unnecessary warnings thermal: tegra: fix memory allocation thermal: tegra: parse sensor id before sensor register drivers/thermal/tegra/soctherm.c | 54 +++-

[PATCH v3 1/3] thermal: tegra: remove unnecessary warnings

2018-11-27 Thread Wei Ni
Convert warnings to info as not all platforms may have all the thresholds and sensors enabled. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c

Re: [PATCH v2 1/3] thermal: tegra: continue if sensor register fails

2018-11-23 Thread Wei Ni
On 23/11/2018 2:51 PM, Daniel Lezcano wrote: > > Hi wei, > > On 23/11/2018 07:15, Wei Ni wrote: >> >> >> On 22/11/2018 9:07 PM, Daniel Lezcano wrote: >>> On 22/11/2018 08:10, Wei Ni wrote: >>>> >>>> >>>> On 21/11/

Re: [PATCH v2 1/3] thermal: tegra: continue if sensor register fails

2018-11-22 Thread Wei Ni
On 22/11/2018 9:07 PM, Daniel Lezcano wrote: > On 22/11/2018 08:10, Wei Ni wrote: >> >> >> On 21/11/2018 8:51 PM, Daniel Lezcano wrote: >>> On 21/11/2018 11:23, Wei Ni wrote: >>>> >>>> >>>> On 21/11/2018 4:55 PM, Daniel Lezcano

Re: [PATCH v2 1/3] thermal: tegra: continue if sensor register fails

2018-11-21 Thread Wei Ni
On 21/11/2018 8:51 PM, Daniel Lezcano wrote: > On 21/11/2018 11:23, Wei Ni wrote: >> >> >> On 21/11/2018 4:55 PM, Daniel Lezcano wrote: >>> On 13/11/2018 11:06, Wei Ni wrote: >>>> Don't bail when a sensor fails to register with the >>>

Re: [PATCH v2 1/3] thermal: tegra: continue if sensor register fails

2018-11-21 Thread Wei Ni
On 21/11/2018 4:55 PM, Daniel Lezcano wrote: > On 13/11/2018 11:06, Wei Ni wrote: >> Don't bail when a sensor fails to register with the >> thermal zone and allow other sensors to register. >> This allows other sensors to register with thermal >> framework even if on

Re: [PATCH] thermal: tegra: add get_trend ops

2018-11-20 Thread Wei Ni
On 20/11/2018 11:38 PM, Thierry Reding wrote: > On Tue, Nov 20, 2018 at 05:11:17PM +0800, Wei Ni wrote: >> Add support for get_trend ops that allows soctherm >> sensors to be used with the step-wise governor. >> >> Signed-off-by: Wei Ni >> --- >>

[PATCH] thermal: tegra: add get_trend ops

2018-11-20 Thread Wei Ni
Add support for get_trend ops that allows soctherm sensors to be used with the step-wise governor. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers

Re: [PATCH v2 0/3] Fixes for Tegra soctherm

2018-11-19 Thread Wei Ni
Hi all, Do you have any comments on this serial? Thanks. Wei. On 13/11/2018 6:06 PM, Wei Ni wrote: > This series fixed some issues for Tegra soctherm > > Main changes from v1: > 1. Acked by Thierry Reding for the patch > "thermal: tegra: fix memory allocation". >

[PATCH v2 1/3] thermal: tegra: continue if sensor register fails

2018-11-13 Thread Wei Ni
Don't bail when a sensor fails to register with the thermal zone and allow other sensors to register. This allows other sensors to register with thermal framework even if one sensor fails registration. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 8 +--- 1 file changed, 5

[PATCH v2 3/3] thermal: tegra: fix memory allocation

2018-11-13 Thread Wei Ni
Fix memory allocation to store the pointers to thermal_zone_device. Signed-off-by: Wei Ni Acked-by: Thierry Reding --- drivers/thermal/tegra/soctherm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c index

[PATCH v2 2/3] thermal: tegra: remove unnecessary warnings

2018-11-13 Thread Wei Ni
Convert warnings to info as not all platforms may have all the thresholds and sensors enabled. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c

[PATCH v2 0/3] Fixes for Tegra soctherm

2018-11-13 Thread Wei Ni
This series fixed some issues for Tegra soctherm Main changes from v1: 1. Acked by Thierry Reding for the patch "thermal: tegra: fix memory allocation". 2. Print out the sensor name when register failed. 2. Remove patch "thermal: tegra: fix coverity defect" Wei Ni (

Re: [PATCH v1 2/4] thermal: tegra: remove unnecessary warnings

2018-11-08 Thread Wei Ni
On 8/11/2018 8:47 PM, Thierry Reding wrote: > On Mon, Nov 05, 2018 at 05:32:32PM +0800, Wei Ni wrote: >> Convert warnings to info as not all platforms may >> have all the thresholds and sensors enabled. >> >> Signed-off-by: Wei Ni >> --- >> drivers/th

Re: [PATCH v1 4/4] thermal: tegra: fix coverity defect

2018-11-08 Thread Wei Ni
On 8/11/2018 8:37 PM, Thierry Reding wrote: > On Mon, Nov 05, 2018 at 05:32:34PM +0800, Wei Ni wrote: >> Fix dereference dev before null check. >> >> Signed-off-by: Wei Ni >> --- >> drivers/thermal/tegra/soctherm.c | 4 +++- >> 1 file changed, 3 insert

[PATCH v1 1/4] thermal: tegra: continue if sensor register fails

2018-11-05 Thread Wei Ni
Don't bail when a sensor fails to register with the thermal zone and allow other sensors to register. This allows other sensors to register with thermal framework even if one sensor fails registration. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 6 -- 1 file changed, 4

[PATCH v1 3/4] thermal: tegra: fix memory allocation

2018-11-05 Thread Wei Ni
Fix memory allocation to store the pointers to thermal_zone_device. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c index 39a8bda07ac4..3042837364e8

[PATCH v1 4/4] thermal: tegra: fix coverity defect

2018-11-05 Thread Wei Ni
Fix dereference dev before null check. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c index 3042837364e8..96527df91f2a 100644 --- a/drivers

[PATCH v1 2/4] thermal: tegra: remove unnecessary warnings

2018-11-05 Thread Wei Ni
Convert warnings to info as not all platforms may have all the thresholds and sensors enabled. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c

[PATCH v1 0/4] Fixes for Tegra soctherm

2018-11-05 Thread Wei Ni
This series fixed some issues for Tegra soctherm Wei Ni (4): thermal: tegra: continue if sensor register fails thermal: tegra: remove unnecessary warnings thermal: tegra: fix memory allocation thermal: tegra: fix coverity defect drivers/thermal/tegra/soctherm.c | 18

Re: [PATCH v2 5/5] thermal: Add Tegra BPMP thermal sensor driver

2017-10-02 Thread Wei Ni
On 08/30/2017 12:32 PM, Thierry Reding wrote: > * PGP Signed by an unknown key > > On Mon, Aug 21, 2017 at 10:40:44AM +0800, Wei Ni wrote: >> >> >> On Friday, August 11, 2017 10:57 AM, Zhang Rui wrote: >>> On Mon, 2017-07-24 at 19:29 +0300, Mikko Perttun

Re: [PATCH v2 5/5] thermal: Add Tegra BPMP thermal sensor driver

2017-08-20 Thread Wei Ni
nts access to the interface. It supports reading the >> temperature, setting trip points and receiving notification of a >> tripped trip point. >> >> Signed-off-by: Mikko Perttunen <mperttu...@nvidia.com> > > Wei Ni, > > what do you think of this p

Re: [PATCH v5 00/11] Add HW throttle for Tegra soctherm

2016-08-30 Thread Wei Ni
On 08/19/2016 03:15 PM, Zhang Rui wrote: > On 四, 2016-05-26 at 17:42 +0800, Wei Ni wrote: >> Hi, >> Does there have any comments on this series? >> Let me know if someone has suggestions. >> > I have no objections to this patch set. > As 10 patches out of

Re: [PATCH v5 00/11] Add HW throttle for Tegra soctherm

2016-05-26 Thread Wei Ni
Hi, Does there have any comments on this series? Let me know if someone has suggestions. Thanks. Wei. On 05/11/2016 06:20 PM, Wei Ni wrote: > This series add following functions for Tegra soctherm: > 1. add HW throttle function. > 2. enable soctherm node for Tegra124, Tegra132,

[PATCH v5 00/11] Add HW throttle for Tegra soctherm

2016-05-11 Thread Wei Ni
https://lkml.org/lkml/2016/5/3/274 The v4 series is in: https://lkml.org/lkml/2016/5/9/45 Wei Ni (11): of: Add bindings of hw throttle for Tegra soctherm thermal: tegra: add hw-throttle function thermal: tegra: add hw-throttle for Tegra132 arm: tegra: set critical trips for Tegra1

[PATCH v5 02/11] thermal: tegra: add hw-throttle function

2016-05-11 Thread Wei Ni
, will support it in next patch. Signed-off-by: Wei Ni <w...@nvidia.com> --- drivers/thermal/tegra/soctherm.c | 668 +- drivers/thermal/tegra/soctherm.h | 10 + drivers/thermal/tegra/tegra124-soctherm.c | 18 + drivers/thermal/tegra/tegra132-soct

[PATCH v5 03/11] thermal: tegra: add hw-throttle for Tegra132

2016-05-11 Thread Wei Ni
Tegra132 use CCROC throttle registers to configure pulse skiper, set these registers to enable throttle function for Tegra132. Signed-off-by: Wei Ni <w...@nvidia.com> --- drivers/thermal/tegra/soctherm.c| 234 +--- drivers/thermal/tegra/tegra132-soct

[PATCH v5 08/11] arm64: tegra: set hot trips for Tegra132

2016-05-11 Thread Wei Ni
Enable throttle function for SOC_THERM. Set "hot" trips for cpu and gpu thermal zones, which can trigger the SOC_THERM hardware throttle. Signed-off-by: Wei Ni <w...@nvidia.com> --- arch/arm64/boot/dts/nvidia/tegra132.dtsi | 41 +--- 1 file change

[PATCH v5 05/11] arm: tegra: set hot trips for Tegra124

2016-05-11 Thread Wei Ni
Enable throttle function for SOC_THERM. Set "hot" trips for cpu and gpu thermal zones, which can trigger the SOC_THERM hardware throttle. Signed-off-by: Wei Ni <w...@nvidia.com> --- arch/arm/boot/dts/tegra124.dtsi | 39 ++- 1 file changed, 30

[PATCH v5 09/11] arm64: tegra: add soctherm node for Tegra210

2016-05-11 Thread Wei Ni
Adds soctherm node for Tegra210, and add cpu, gpu, mem, pllx as thermal-zones. Set critical trip temperatures for them. Signed-off-by: Wei Ni <w...@nvidia.com> --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 44 1 file changed, 44 insertions(+) diff --git

[PATCH v5 07/11] arm64: tegra: set critical trips for Tegra132

2016-05-11 Thread Wei Ni
Set general "critical" trip temperatures for cpu, gpu, mem and pllx thermal zones on Tegra132, these trips can trigger shut down or reset. Signed-off-by: Wei Ni <w...@nvidia.com> --- arch/arm64/boot/dts/nvidia/tegra132.dtsi | 60 1 file change

[PATCH v5 11/11] arm64: tegra: set hot trips for Tegra210

2016-05-11 Thread Wei Ni
Enable throttle function for SOC_THERM. Set "hot" trips for cpu and gpu thermal zones, which can trigger the SOC_THERM hardware throttle. Signed-off-by: Wei Ni <w...@nvidia.com> --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 41 +--- 1 file change

[PATCH v5 06/11] arm64: tegra: use tegra132-soctherm for Tegra132

2016-05-11 Thread Wei Ni
The Tegra132 has the specific settings for soctherm, so change to use campatible "nvidia,tegra132-soctherm" for it. And adds cpu, gpu, mem and pllx thermal zones. Signed-off-by: Wei Ni <w...@nvidia.com> --- arch/arm64/boot/dts/nvidia/tegra132.dtsi | 36

[PATCH v5 01/11] of: Add bindings of hw throttle for Tegra soctherm

2016-05-11 Thread Wei Ni
Add HW throttle configuration sub-node for soctherm, which is used to describe the throttle event, and worked as a cooling device. The "hot" type trip in thermal zone can be bound to this cooling device, and trigger the throttle function. Signed-off-by: Wei Ni <w...@nvidia.com> -

[PATCH v5 04/11] arm: tegra: set critical trips for Tegra124

2016-05-11 Thread Wei Ni
Set general "critical" trip temperatures for cpu, gpu, mem and pllx thermal zones for all Tegra124 platform, these trips can trigger shut down or reset. Tegra124 Jetson TK1 was already set "critical" trips before, so it can overwrite the general values. Signed-off-by: Wei

[PATCH v5 10/11] arm64: tegra: set critical trips for Tegra210

2016-05-11 Thread Wei Ni
Set general "critical" trip temperatures for cpu, gpu, mem and pllx thermal zones on Tegra210, these trips can trigger shut down or reset. Signed-off-by: Wei Ni <w...@nvidia.com> --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 60 1 file change

Re: [PATCH v4 01/11] of: Add bindings of hw throttle for Tegra soctherm

2016-05-10 Thread Wei Ni
On 2016年05月10日 04:15, Rob Herring wrote: > On Mon, May 09, 2016 at 02:53:54PM +0800, Wei Ni wrote: >> Add HW throttle configuration sub-node for soctherm, which >> is used to describe the throttle event, and worked as a >> cooling device. The "hot" type trip

[PATCH v4 04/11] arm: tegra: set critical trips for Tegra124

2016-05-09 Thread Wei Ni
Set general "critical" trip temperatures for cpu, gpu, mem and pllx thermal zones for all Tegra124 platform, these trips can trigger shut down or reset. Tegra124 Jetson TK1 was already set "critical" trips before, so it can overwrite the general values. Signed-off-by: Wei

[PATCH v4 05/11] arm: tegra: set hot trips for Tegra124

2016-05-09 Thread Wei Ni
Enable throttle function for SOC_THERM. Set "hot" trips for cpu and gpu thermal zones, which can trigger the SOC_THERM hardware throttle. Signed-off-by: Wei Ni <w...@nvidia.com> --- arch/arm/boot/dts/tegra124.dtsi | 39 ++- 1 file changed, 30

[PATCH v4 07/11] arm64: tegra: set critical trips for Tegra132

2016-05-09 Thread Wei Ni
Set general "critical" trip temperatures for cpu, gpu, mem and pllx thermal zones on Tegra132, these trips can trigger shut down or reset. Signed-off-by: Wei Ni <w...@nvidia.com> --- arch/arm64/boot/dts/nvidia/tegra132.dtsi | 60 1 file change

[PATCH v4 00/11] Add HW throttle for Tegra soctherm

2016-05-09 Thread Wei Ni
stead of __raw_readl/__raw_writel. 2. rebase on the linux-next. The v1 series is in: https://lkml.org/lkml/2016/3/31/230 The v2 series is in: https://lkml.org/lkml/2016/4/26/1577 The v3 series is in: https://lkml.org/lkml/2016/5/3/274 Wei Ni (11): of: Add bindings of hw throttle for Tegra soctherm

[PATCH v4 06/11] arm64: tegra: use tegra132-soctherm for Tegra132

2016-05-09 Thread Wei Ni
The Tegra132 has the specific settings for soctherm, so change to use campatible "nvidia,tegra132-soctherm" for it. And adds cpu, gpu, mem and pllx thermal zones. Signed-off-by: Wei Ni <w...@nvidia.com> --- arch/arm64/boot/dts/nvidia/tegra132.dtsi | 36

[PATCH v4 11/11] arm64: tegra: set hot trips for Tegra210

2016-05-09 Thread Wei Ni
Enable throttle function for SOC_THERM. Set "hot" trips for cpu and gpu thermal zones, which can trigger the SOC_THERM hardware throttle. Signed-off-by: Wei Ni <w...@nvidia.com> --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 41 +--- 1 file change

[PATCH v4 10/11] arm64: tegra: set critical trips for Tegra210

2016-05-09 Thread Wei Ni
Set general "critical" trip temperatures for cpu, gpu, mem and pllx thermal zones on Tegra210, these trips can trigger shut down or reset. Signed-off-by: Wei Ni <w...@nvidia.com> --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 60 1 file change

[PATCH v4 02/11] thermal: tegra: add hw-throttle function

2016-05-09 Thread Wei Ni
, will support it in next patch. Signed-off-by: Wei Ni <w...@nvidia.com> --- drivers/thermal/tegra/soctherm.c | 668 +- drivers/thermal/tegra/soctherm.h | 10 + drivers/thermal/tegra/tegra124-soctherm.c | 18 + drivers/thermal/tegra/tegra132-soct

[PATCH v4 01/11] of: Add bindings of hw throttle for Tegra soctherm

2016-05-09 Thread Wei Ni
Add HW throttle configuration sub-node for soctherm, which is used to describe the throttle event, and worked as a cooling device. The "hot" type trip in thermal zone can be bound to this cooling device, and trigger the throttle function. Signed-off-by: Wei Ni <w...@nvidia.com> -

[PATCH v4 08/11] arm64: tegra: set hot trips for Tegra132

2016-05-09 Thread Wei Ni
Enable throttle function for SOC_THERM. Set "hot" trips for cpu and gpu thermal zones, which can trigger the SOC_THERM hardware throttle. Signed-off-by: Wei Ni <w...@nvidia.com> --- arch/arm64/boot/dts/nvidia/tegra132.dtsi | 41 +--- 1 file change

[PATCH v4 03/11] thermal: tegra: add hw-throttle for Tegra132

2016-05-09 Thread Wei Ni
Tegra132 use CCROC throttle registers to configure pulse skiper, set these registers to enable throttle function for Tegra132. Signed-off-by: Wei Ni <w...@nvidia.com> --- drivers/thermal/tegra/soctherm.c| 234 +--- drivers/thermal/tegra/tegra132-soct

[PATCH v4 09/11] arm64: tegra: add soctherm node for Tegra210

2016-05-09 Thread Wei Ni
Adds soctherm node for Tegra210, and add cpu, gpu, mem, pllx as thermal-zones. Set critical trip temperatures for them. Signed-off-by: Wei Ni <w...@nvidia.com> --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 44 1 file changed, 44 insertions(+) diff --git

[PATCH] soc/tegra: fuse: enable nvidia,tegra114-efuse entry for Tegra132

2016-05-05 Thread Wei Ni
ry. Define this entry under "CONFIG_ARCH_TEGRA_124_SOC || CONFIG_ARCH_TEGRA_132_SOC" to fix this problem. Signed-off-by: Wei Ni <w...@nvidia.com> --- drivers/soc/tegra/fuse/fuse-tegra.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/soc/tegra/fuse/f

Re: [PATCH v3 01/11] of: Add bindings of hw throttle for Tegra soctherm

2016-05-04 Thread Wei Ni
On 2016年05月04日 21:35, Rob Herring wrote: > On Tue, May 03, 2016 at 06:13:20PM +0800, Wei Ni wrote: >> Add HW throttle configuration sub-node for soctherm, which >> is used to describe the throttle event, and worked as a >> cooling device. The "hot" type trip

Re: [PATCH] arm64: tegra: fix compatible string for Tegra132 fuse node

2016-05-04 Thread Wei Ni
On 2016年05月04日 10:25, Wei Ni wrote: > > > On 2016年05月03日 23:21, Thierry Reding wrote: >> * PGP Signed by an unknown key >> >> On Tue, May 03, 2016 at 05:09:37PM +0800, Wei Ni wrote: >>> This patch changes the compatible of Tegra132 fuse node >>> t

Re: [PATCH] arm64: tegra: fix compatible string for Tegra132 fuse node

2016-05-03 Thread Wei Ni
On 2016年05月03日 23:21, Thierry Reding wrote: > * PGP Signed by an unknown key > > On Tue, May 03, 2016 at 05:09:37PM +0800, Wei Ni wrote: >> This patch changes the compatible of Tegra132 fuse node >> to "nvidia,tegra132-efuse", instead of "

[PATCH v3 01/11] of: Add bindings of hw throttle for Tegra soctherm

2016-05-03 Thread Wei Ni
Add HW throttle configuration sub-node for soctherm, which is used to describe the throttle event, and worked as a cooling device. The "hot" type trip in thermal zone can be bound to this cooling device, and trigger the throttle function. Signed-off-by: Wei Ni <w...@nvidia.com> -

[PATCH v3 03/11] thermal: tegra: add hw-throttle for Tegra132

2016-05-03 Thread Wei Ni
Tegra132 use CCROC throttle registers to configure pulse skiper, set these registers to enable throttle function for Tegra132. Signed-off-by: Wei Ni <w...@nvidia.com> --- drivers/thermal/tegra/soctherm.c| 234 +--- drivers/thermal/tegra/tegra132-soct

[PATCH v3 06/11] arm64: tegra: use tegra132-soctherm for Tegra132

2016-05-03 Thread Wei Ni
The Tegra132 has the specific settings for soctherm, so change to use campatible "nvidia,tegra132-soctherm" for it. And adds cpu, gpu, mem and pllx thermal zones. Signed-off-by: Wei Ni <w...@nvidia.com> --- arch/arm64/boot/dts/nvidia/tegra132.dtsi | 36

[PATCH v3 07/11] arm64: tegra: set critical trips for Tegra132

2016-05-03 Thread Wei Ni
Set general "critical" trip temperatures for cpu, gpu, mem and pllx thermal zones on Tegra132, these trips can trigger shut down or reset. Signed-off-by: Wei Ni <w...@nvidia.com> --- arch/arm64/boot/dts/nvidia/tegra132.dtsi | 60 1 file change

[PATCH v3 08/11] arm64: tegra: set hot trips for Tegra132

2016-05-03 Thread Wei Ni
Enable throttle function for SOC_THERM. Set "hot" trips for cpu and gpu thermal zones, which can trigger the SOC_THERM hardware throttle. Signed-off-by: Wei Ni <w...@nvidia.com> --- arch/arm64/boot/dts/nvidia/tegra132.dtsi | 41 +--- 1 file change

[PATCH v3 04/11] arm: tegra: set critical trips for Tegra124

2016-05-03 Thread Wei Ni
Set general "critical" trip temperatures for cpu, gpu, mem and pllx thermal zones for all Tegra124 platform, these trips can trigger shut down or reset. Tegra124 Jetson TK1 was already set "critical" trips before, so it can overwrite the general values. Signed-off-by: Wei

[PATCH v3 09/11] arm64: tegra: add soctherm node for Tegra210

2016-05-03 Thread Wei Ni
Adds soctherm node for Tegra210, and add cpu, gpu, mem, pllx as thermal-zones. Set critical trip temperatures for them. Signed-off-by: Wei Ni <w...@nvidia.com> --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 44 1 file changed, 44 insertions(+) diff --git

[PATCH v3 05/11] arm: tegra: set hot trips for Tegra124

2016-05-03 Thread Wei Ni
Enable throttle function for SOC_THERM. Set "hot" trips for cpu and gpu thermal zones, which can trigger the SOC_THERM hardware throttle. Signed-off-by: Wei Ni <w...@nvidia.com> --- arch/arm/boot/dts/tegra124.dtsi | 39 ++- 1 file changed, 30

[PATCH v3 11/11] arm64: tegra: set hot trips for Tegra210

2016-05-03 Thread Wei Ni
Enable throttle function for SOC_THERM. Set "hot" trips for cpu and gpu thermal zones, which can trigger the SOC_THERM hardware throttle. Signed-off-by: Wei Ni <w...@nvidia.com> --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 41 +--- 1 file change

[PATCH v3 10/11] arm64: tegra: set critical trips for Tegra210

2016-05-03 Thread Wei Ni
Set general "critical" trip temperatures for cpu, gpu, mem and pllx thermal zones on Tegra210, these trips can trigger shut down or reset. Signed-off-by: Wei Ni <w...@nvidia.com> --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 60 1 file change

[PATCH v3 02/11] thermal: tegra: add hw-throttle function

2016-05-03 Thread Wei Ni
, will support it in next patch. Signed-off-by: Wei Ni <w...@nvidia.com> --- drivers/thermal/tegra/soctherm.c | 668 +- drivers/thermal/tegra/soctherm.h | 10 + drivers/thermal/tegra/tegra124-soctherm.c | 18 + drivers/thermal/tegra/tegra132-soct

[PATCH v3 00/11] Add HW throttle for Tegra soctherm

2016-05-03 Thread Wei Ni
in: https://lkml.org/lkml/2016/4/26/1577 Wei Ni (11): of: Add bindings of hw throttle for Tegra soctherm thermal: tegra: add hw-throttle function thermal: tegra: add hw-throttle for Tegra132 arm: tegra: set critical trips for Tegra124 arm: tegra: set hot trips for Tegra124 arm64:

Re: [PATCH] arm64: tegra: fix compatible string for Tegra132 fuse node

2016-05-03 Thread Wei Ni
Sorry, please ignore this mail. On 2016年05月03日 17:32, Wei Ni wrote: > This patch changes the compatible of Tegra132 fuse node > to "nvidia,tegra132-efuse", instead of "nvidia,tegra1124-efuse". > Because the CONFIG_ARCH_TEGRA_124_SOC will not be enabled for > Tegr

[PATCH] arm64: tegra: fix compatible string for Tegra132 fuse node

2016-05-03 Thread Wei Ni
This patch changes the compatible of Tegra132 fuse node to "nvidia,tegra132-efuse", instead of "nvidia,tegra1124-efuse". Because the CONFIG_ARCH_TEGRA_124_SOC will not be enabled for Tegra132, the fuse driver can't find the corresponding node. Signed-off-by: Wei Ni <w..

Re: [PATCH V9 RESEND 13/14] arm64: tegra: add soctherm node for Tegra210

2016-05-03 Thread Wei Ni
Will move patch 12 and 14 to my "Add HW throttle for Tegra soctherm" series. On 2016年04月26日 11:36, Wei Ni wrote: > Hi Thierry, > > Do you know who can take these patch 13 and 14? > The corresponding driver was merged to linux-next several weeks ago. > Does I need to sen

[PATCH] arm64: tegra: fix compatible string for Tegra132 fuse node

2016-05-03 Thread Wei Ni
This patch changes the compatible of Tegra132 fuse node to "nvidia,tegra132-efuse", instead of "nvidia,tegra1124-efuse". Because the CONFIG_ARCH_TEGRA_124_SOC will not be enabled for Tegra132, the fuse driver can't find the corresponding node. Signed-off-by: Wei Ni <w..

Re: [PATCH v2 4/9] of: Add bindings of hw throttle for soctherm

2016-04-28 Thread Wei Ni
On 2016年04月28日 22:48, Eduardo Valentin wrote: > On Thu, Apr 28, 2016 at 02:48:41PM +0800, Wei Ni wrote: >> >> >> On 2016年04月28日 07:30, Eduardo Valentin wrote: >>> From: Eduardo Valentin <edubez...@gmail.com> >>> To: Wei Ni <w...@nvidia.com> &

Re: [PATCH v2 4/9] of: Add bindings of hw throttle for soctherm

2016-04-28 Thread Wei Ni
On 2016年04月28日 07:30, Eduardo Valentin wrote: > From: Eduardo Valentin <edubez...@gmail.com> > To: Wei Ni <w...@nvidia.com> > Cc: thierry.red...@gmail.com, robh...@kernel.org, rui.zh...@intel.com, > mlongnec...@nvidia.com, swar...@wwwdotorg.org, > mikko.p

[PATCH v2 2/9] arm64: tegra: use tegra132-soctherm for Tegra132

2016-04-26 Thread Wei Ni
The Tegra132 has the specific settings for soctherm, so change to use campatible "nvidia,tegra132-soctherm" for it. And adds cpu, gpu, mem and pllx thermal zones. Signed-off-by: Wei Ni <w...@nvidia.com> --- arch/arm64/boot/dts/nvidia/tegra132.dtsi | 36

[PATCH v2 6/9] thermal: tegra: add hw-throttle for Tegra132

2016-04-26 Thread Wei Ni
Tegra132 use CCROC throttle registers to configure pulse skiper, set these registers to enable throttle function for Tegra132. Signed-off-by: Wei Ni <w...@nvidia.com> --- drivers/thermal/tegra/soctherm.c| 215 +--- drivers/thermal/tegra/tegra132-soct

[PATCH v2 0/9] Add HW throttle for Tegra soctherm

2016-04-26 Thread Wei Ni
is in: https://lkml.org/lkml/2016/3/31/230 Wei Ni (9): thermal: tegra: add Tegra132 specific SOC_THERM driver arm64: tegra: use tegra132-soctherm for Tegra132 arm64: tegra: set critical trips for Tegra132 of: Add bindings of hw throttle for soctherm thermal: tegra: add hw-throttle

[PATCH v2 7/9] arm64: tegra: set hot trips for Tegra210

2016-04-26 Thread Wei Ni
Enable throttle function for SOC_THERM. Set "hot" trips for cpu and gpu thermal zones, which can trigger the SOC_THERM hardware throttle. Signed-off-by: Wei Ni <w...@nvidia.com> --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 41 +--- 1 file change

[PATCH v2 5/9] thermal: tegra: add hw-throttle function

2016-04-26 Thread Wei Ni
, will support it in next patch. Signed-off-by: Wei Ni <w...@nvidia.com> --- drivers/thermal/tegra/soctherm.c | 667 +- drivers/thermal/tegra/soctherm.h | 10 + drivers/thermal/tegra/tegra124-soctherm.c | 18 + drivers/thermal/tegra/tegra132-soct

  1   2   3   4   5   >