Re: [PATCH v2 03/12] arm64: dts: tegra210: set thermtrip

2019-04-25 Thread Wei Ni
nges? Here is the list: [PATCH v2 03/12] arm64: dts: tegra210: set thermtrip [PATCH v2 06/12] arm64: dts: tegra210: set gpu hw throttle level [PATCH v2 10/12] arm64: dts: tegra210: set EDP interrupt line Thanks. Wei. On 21/2/2019 6:18 PM, Wei Ni wrote: > Set "nvidia,thermtrips" proper

[PATCH] arm64: defconfig: Enable TEGRA_SOCTHERM

2019-04-24 Thread Wei Ni
Enable Tegra soctherm, and builds as kernel. Signed-off-by: Wei Ni --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index c8432e24207e..3d8f9d5bf7cb 100644 --- a/arch/arm64/configs/defconfig +++ b

Re: [PATCH v2 12/12] thermal: tegra: enable OC hw throttle

2019-04-24 Thread Wei Ni
Hi Eduardo, On 24/4/2019 4:36 PM, Wei Ni wrote: > > > On 23/4/2019 11:46 PM, Eduardo Valentin wrote: >> On Thu, Feb 21, 2019 at 06:18:47PM +0800, Wei Ni wrote: >>> Parse Over Current settings from DT and program them to >>> generate interrupts. A

Re: [PATCH v2 12/12] thermal: tegra: enable OC hw throttle

2019-04-24 Thread Wei Ni
On 23/4/2019 11:46 PM, Eduardo Valentin wrote: > On Thu, Feb 21, 2019 at 06:18:47PM +0800, Wei Ni wrote: >> Parse Over Current settings from DT and program them to >> generate interrupts. Also enable hw throttling whenever >> there are OC events. Log the OC eve

Re: [PATCH v2 00/12] Add some functionalities for Tegra soctherm

2019-03-25 Thread Wei Ni
Hi all, Does there have any comments on this serial? Thanks. Wei. On 21/2/2019 6:18 PM, Wei Ni wrote: > Move the hw/sw shutdown patches into this serial. There already have > some discussion for it in https://lkml.org/lkml/2018/12/7/225. > Support GPU HW throttle, thermal IRQ, set_tri

[PATCH v2 02/12] thermal: tegra: support hw and sw shutdown

2019-02-21 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 v2 04/12] of: Add bindings of gpu hw throttle for Tegra soctherm

2019-02-21 Thread Wei Ni
Add "nvidia,gpu-throt-level" property to set gpu hw throttle level. Signed-off-by: Wei Ni --- .../bindings/thermal/nvidia,tegra124-soctherm.txt | 17 +++-- include/dt-bindings/thermal/tegra124-soctherm.h | 8 2 files changed, 19 insertions(+), 6

[PATCH v2 05/12] thermal: tegra: add support for gpu hw-throttle

2019-02-21 Thread Wei Ni
Add support to trigger pulse skippers on the GPU when a HOT trip point is triggered. The pulse skippers can be signalled to throttle at low, medium and high depths\levels. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 118 --- 1 file changed

[PATCH v2 10/12] arm64: dts: tegra210: set EDP interrupt line

2019-02-21 Thread Wei Ni
Set EDP interrupt line. Signed-off-by: Wei Ni --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/nvidia/tegra210.dtsi b/arch/arm64/boot/dts/nvidia/tegra210.dtsi index 551600513c1a..19966b9f5ce7 100644

[PATCH v2 09/12] thermal: tegra: add support for EDP IRQ

2019-02-21 Thread Wei Ni
Add support to generate OC (over-current) interrupts to indicate the OC event and print out alarm messages. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 420 +++ 1 file changed, 420 insertions(+) diff --git a/drivers/thermal/tegra/soctherm.c

[PATCH v2 07/12] thermal: tegra: add support for thermal IRQ

2019-02-21 Thread Wei Ni
Support to generate an interrupt when the temperature crosses a programmed threshold and notify the thermal framework. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 136 +++ 1 file changed, 136 insertions(+) diff --git a/drivers/thermal/tegra

[PATCH v2 06/12] arm64: dts: tegra210: set gpu hw throttle level

2019-02-21 Thread Wei Ni
Set gpu hw throttle level to TEGRA_SOCTHERM_THROT_LEVEL_HIGH Signed-off-by: Wei Ni --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra210.dtsi b/arch/arm64/boot/dts/nvidia/tegra210.dtsi index 582d56820bbb

[PATCH v2 08/12] thermal: tegra: add set_trips functionality

2019-02-21 Thread Wei Ni
Implement set_trips ops to set passive trip points. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 64 ++- drivers/thermal/tegra/soctherm.h | 10 + drivers/thermal/tegra/tegra124-soctherm.c | 7 +++- drivers/thermal/tegra/tegra132

[PATCH v2 12/12] thermal: tegra: enable OC hw throttle

2019-02-21 Thread Wei Ni
Parse Over Current settings from DT and program them to generate interrupts. Also enable hw throttling whenever there are OC events. Log the OC events as debug messages. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 130 --- 1 file changed, 120

[PATCH v2 11/12] of: Add bindings of OC hw throttle for Tegra soctherm

2019-02-21 Thread Wei Ni
Add OC HW throttle configuration for soctherm in DT. It is used to describe the OCx throttle events. Signed-off-by: Wei Ni --- .../bindings/thermal/nvidia,tegra124-soctherm.txt | 25 ++ 1 file changed, 25 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH v2 03/12] arm64: dts: tegra210: set thermtrip

2019-02-21 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

[PATCH v2 00/12] Add some functionalities for Tegra soctherm

2019-02-21 Thread Wei Ni
Add suffix "-us" for "nvidia,throttle-period". Wei Ni (12): of: Add bindings of thermtrip for Tegra soctherm thermal: tegra: support hw and sw shutdown arm64: dts: tegra210: set thermtrip of: Add bindings of gpu hw throttle for Tegra soctherm thermal: tegra: add suppo

[PATCH v2 01/12] of: Add bindings of thermtrip for Tegra soctherm

2019-02-21 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

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

2019-02-20 Thread Wei Ni
On 20/2/2019 10:14 AM, Zhang Rui wrote: > On 一, 2019-02-18 at 15:59 +0800, Wei Ni wrote: >> Rui, >> Will you take this serial? >> > it is already in my tree. > I missed -rc6, thus I will queue them for 5.1-rc1. Thanks. I updated v8 patch per Daniel Lezcano's com

Re: [PATCH v1 01/12] of: Add bindings of thermtrip for Tegra soctherm

2019-02-20 Thread Wei Ni
On 20/2/2019 9:22 AM, Eduardo Valentin wrote: > On Fri, Dec 28, 2018 at 11:28:42AM +0800, Wei Ni wrote: >> >> >> On 28/12/2018 7:06 AM, Rob Herring wrote: >>> On Tue, Dec 18, 2018 at 03:34:33PM +0800, Wei Ni wrote: >>>> Add optional property "n

Re: [PATCH v1 04/12] of: Add bindings of gpu hw throttle for Tegra soctherm

2019-02-18 Thread Wei Ni
On 19/2/2019 4:33 AM, Rob Herring wrote: > On Tue, Dec 18, 2018 at 03:34:36PM +0800, Wei Ni wrote: >> Add "nvidia,gpu-throt-level" property to set gpu hw >> throttle level. >> >> Signed-off-by: Wei Ni >> --- >> .../bi

Re: [PATCH v1 11/12] of: Add bindings of OC hw throttle for Tegra soctherm

2019-02-18 Thread Wei Ni
On 19/2/2019 4:32 AM, Rob Herring wrote: > On Tue, Dec 18, 2018 at 03:34:43PM +0800, Wei Ni wrote: >> Add OC HW throttle configuration for soctherm in DT. >> It is used to describe the OCx throttle events. >> >> Signed-off-by: Wei Ni >> --- >> .../bindin

Re: [PATCH v1 04/12] of: Add bindings of gpu hw throttle for Tegra soctherm

2019-02-18 Thread Wei Ni
On 19/2/2019 4:29 AM, Rob Herring wrote: > On Tue, Dec 18, 2018 at 03:34:36PM +0800, Wei Ni wrote: >> Add "nvidia,gpu-throt-level" property to set gpu hw >> throttle level. >> >> Signed-off-by: Wei Ni >> --- >> .../bi

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

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

[PATCH v8 0/3] Fixes for Tegra soctherm

2019-02-18 Thread Wei Ni
from v2: 1. add codes to parse sensor id 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&q

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

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

[PATCH v8 3/3] thermal: tegra: add get_trend ops

2019-02-18 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 | 32 1 file changed, 32 insertions(+) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal

Re: [PATCH v7 3/3] thermal: tegra: add get_trend ops

2019-02-18 Thread Wei Ni
On 18/2/2019 6:27 PM, Daniel Lezcano wrote: > On 03/01/2019 11:12, 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 >> --- >>

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

2019-02-18 Thread Wei Ni
On 18/2/2019 5:47 PM, Daniel Lezcano wrote: > On 03/01/2019 11:12, Wei Ni wrote: >> Convert warnings to info as not all platforms may >> have all the thresholds and sensors enabled. >> >> Signed-off-by: Wei Ni >> --- > > Reviewed-by: Daniel Lezc

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

2019-02-17 Thread Wei Ni
Rui, Will you take this serial? Thanks. Wei. On 21/1/2019 5:17 PM, Wei Ni wrote: > Does there have any comments? > > Thanks. > Wei. > > On 11/1/2019 10:20 AM, Wei Ni wrote: >> Hi Eduardo, >> Do you have any more comments, will you take this serial? >> >&

Re: [PATCH v1 00/12] Add some functionalities for Tegra soctherm

2019-01-21 Thread Wei Ni
Hi Eduardo, Could you please take a look this serial? Thanks. Wei. On 18/12/2018 3:34 PM, Wei Ni wrote: > Move the hw/sw shutdown patches into this serial. There already have > some discussion for it in https://lkml.org/lkml/2018/12/7/225. > Support GPU HW throttle, thermal IRQ, set_tri

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

2019-01-21 Thread Wei Ni
Does there have any comments? Thanks. Wei. On 11/1/2019 10:20 AM, Wei Ni wrote: > Hi Eduardo, > Do you have any more comments, will you take this serial? > > Thanks. > Wei. > > On 3/1/2019 6:12 PM, Wei Ni wrote: >> This series fixed some issues for Tegra soc

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

2019-01-10 Thread Wei Ni
Hi Eduardo, Do you have any more comments, will you take this serial? Thanks. Wei. On 3/1/2019 6:12 PM, Wei Ni wrote: > This series fixed some issues for Tegra soctherm, > and add get_trend(). > > Main changes from v6: > 1. Per Eduardo's comment, we can remove the change: &g

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

2019-01-03 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 v7 3/3] thermal: tegra: add get_trend ops

2019-01-03 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

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

2019-01-03 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 v7 0/3] Fixes for Tegra soctherm

2019-01-03 Thread Wei Ni
ure. 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 unnecessary warnings thermal

Re: [PATCH v1 01/12] of: Add bindings of thermtrip for Tegra soctherm

2018-12-27 Thread Wei Ni
On 28/12/2018 7:06 AM, Rob Herring wrote: > On Tue, Dec 18, 2018 at 03:34:33PM +0800, Wei Ni wrote: >> 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 tri

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

2018-12-19 Thread Wei Ni
On 19/12/2018 10:57 PM, Eduardo Valentin wrote: > On Wed, Dec 19, 2018 at 11:00:10AM +0800, Wei Ni wrote: >> >> >> On 19/12/2018 9:24 AM, Eduardo Valentin wrote: >>> On Fri, Dec 14, 2018 at 05:49:52PM +0800, Wei Ni wrote: >>>> Since different platfo

Re: [PATCH v6 0/4] Fixes for Tegra soctherm

2018-12-18 Thread Wei Ni
On 19/12/2018 5:31 AM, Eduardo Valentin wrote: > On Tue, Dec 18, 2018 at 11:35:54AM +0800, Zhang Rui wrote: >> On 五, 2018-12-14 at 17:54 +0800, Wei Ni wrote: >>> Hi Rui, >>> I moved get_trend() patch https://lkml.org/lkml/2018/11/20/643 in >>> this &g

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

2018-12-18 Thread Wei Ni
On 19/12/2018 9:24 AM, Eduardo Valentin wrote: > On Fri, Dec 14, 2018 at 05:49:52PM +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 v1 00/12] Add some functionalities for Tegra soctherm

2018-12-17 Thread Wei Ni
Sorry, please ignore this cover-letter. Wei. On 18/12/2018 3:34 PM, Wei Ni wrote: > Move the hw/sw shutdown patches into this serial. There already have > some discussion for it in https://lkml.org/lkml/2018/12/7/225. > Support GPU HW throttle, thermal IRQ, set_trips(), EDP IRQ an

[PATCH v1 07/12] thermal: tegra: add support for thermal IRQ

2018-12-17 Thread Wei Ni
Support to generate an interrupt when the temperature crosses a programmed threshold and notify the thermal framework. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 136 +++ 1 file changed, 136 insertions(+) diff --git a/drivers/thermal/tegra

[PATCH v1 03/12] arm64: dts: tegra210: set thermtrip

2018-12-17 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

[PATCH v1 01/12] of: Add bindings of thermtrip for Tegra soctherm

2018-12-17 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 02/12] thermal: tegra: support hw and sw shutdown

2018-12-17 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 09/12] thermal: tegra: add support for EDP IRQ

2018-12-17 Thread Wei Ni
Add support to generate OC (over-current) interrupts to indicate the OC event and print out alarm messages. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 420 +++ 1 file changed, 420 insertions(+) diff --git a/drivers/thermal/tegra/soctherm.c

[PATCH v1 08/12] thermal: tegra: add set_trips functionality

2018-12-17 Thread Wei Ni
Implement set_trips ops to set passive trip points. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 64 ++- drivers/thermal/tegra/soctherm.h | 10 + drivers/thermal/tegra/tegra124-soctherm.c | 7 +++- drivers/thermal/tegra/tegra132

[PATCH v1 10/12] arm64: dts: tegra210: set EDP interrupt line

2018-12-17 Thread Wei Ni
Set EDP interrupt line. Signed-off-by: Wei Ni --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/nvidia/tegra210.dtsi b/arch/arm64/boot/dts/nvidia/tegra210.dtsi index 57dae9cc7b7d..b4531a8c18f6 100644

[PATCH v1 04/12] of: Add bindings of gpu hw throttle for Tegra soctherm

2018-12-17 Thread Wei Ni
Add "nvidia,gpu-throt-level" property to set gpu hw throttle level. Signed-off-by: Wei Ni --- .../bindings/thermal/nvidia,tegra124-soctherm.txt | 17 +++-- include/dt-bindings/thermal/tegra124-soctherm.h| 22 ++ 2 files changed, 33 insertions(+), 6

[PATCH v1 00/12] Add some functionalities for Tegra soctherm

2018-12-17 Thread Wei Ni
Move the hw/sw shutdown patches into this serial. There already have some discussion for it in https://lkml.org/lkml/2018/12/7/225. Support GPU HW throttle, thermal IRQ, set_trips(), EDP IRQ and OC hw throttle. Wei Ni (12): of: Add bindings of thermtrip for Tegra soctherm thermal: tegra

[PATCH v1 12/12] thermal: tegra: enable OC hw throttle

2018-12-17 Thread Wei Ni
Parse Over Current settings from DT and program them to generate interrupts. Also enable hw throttling whenever there are OC events. Log the OC events as debug messages. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 128 --- 1 file changed, 118

[PATCH v1 11/12] of: Add bindings of OC hw throttle for Tegra soctherm

2018-12-17 Thread Wei Ni
Add OC HW throttle configuration for soctherm in DT. It is used to describe the OCx throttle events. Signed-off-by: Wei Ni --- .../bindings/thermal/nvidia,tegra124-soctherm.txt | 26 ++ 1 file changed, 26 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH v1 06/12] arm64: dts: tegra210: set gpu hw throttle level

2018-12-17 Thread Wei Ni
Set gpu hw throttle level to TEGRA_SOCTHERM_THROT_LEVEL_HIGH Signed-off-by: Wei Ni --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra210.dtsi b/arch/arm64/boot/dts/nvidia/tegra210.dtsi index 36c7dce7fa69

[PATCH v1 05/12] thermal: tegra: add support for gpu hw-throttle

2018-12-17 Thread Wei Ni
Add support to trigger pulse skippers on the GPU when a HOT trip point is triggered. The pulse skippers can be signalled to throttle at low, medium and high depths\levels. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 118 --- 1 file changed

[PATCH v1 00/12] Add some functionalities for Tegra soctherm

2018-12-17 Thread Wei Ni
Move the hw/sw shutdown patches into this serial. There already have some discussion for it in https://lkml.org/lkml/2018/12/7/225. Support GPU HW throttle, thermal IRQ, set_trips(), EDP IRQ and OC hw throttle. Wei Ni (12): of: Add bindings of thermtrip for Tegra soctherm thermal: tegra

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

2018-12-16 Thread Wei Ni
On 14/12/2018 10:29 PM, Thierry Reding wrote: > On Fri, Dec 07, 2018 at 06:10:05PM +0800, Wei Ni wrote: >> 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

Re: [PATCH v6 0/4] Fixes for Tegra soctherm

2018-12-14 Thread Wei Ni
Hi Rui, I moved get_trend() patch https://lkml.org/lkml/2018/11/20/643 in this serial. Since no more comments on these patches, will you take them? Thanks. Wei. On 14/12/2018 5:49 PM, Wei Ni wrote: > This series fixed some issues for Tegra soctherm, > and add get_trend(). > > Main

[PATCH v6 4/4] thermal: tegra: add get_trend ops

2018-12-14 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

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

2018-12-14 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 v6 1/4] thermal: tegra: remove unnecessary warnings

2018-12-14 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 v6 2/4] thermal: tegra: fix memory allocation

2018-12-14 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 v6 0/4] Fixes for Tegra soctherm

2018-12-14 Thread Wei Ni
name when register failed. 2. Remove patch "thermal: tegra: fix coverity defect" Wei Ni (4): thermal: tegra: remove unnecessary warnings thermal: tegra: fix memory allocation thermal: tegra: parse sensor id before sensor register thermal: tegra: add get_trend ops drivers/thermal/t

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

2018-12-10 Thread Wei Ni
Hi Rui & Eduardo, Could you please take this patch? Thanks. Wei. On 5/12/2018 4:30 PM, Wei Ni wrote: > 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

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

2018-12-10 Thread Wei Ni
Hi Rui & Eduardo, It looks no more comments on this version, could you please take this serial? Thanks. Wei. On 5/12/2018 4:31 PM, Wei Ni wrote: > Hi, > Does there have any comments on this serial? > > Thanks. > Wei. > > On 3/12/2018 1:55 PM, Wei Ni wrote: >>

[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 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 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

[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 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

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

[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 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] 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 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 >> --- &

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 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

[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

  1   2   3   4   5   6   7   8   9   10   >