* [PATCH v3 00/16] Another round of tsens cleanups
@ 2018-09-12 9:52 Amit Kucheria
2018-09-12 9:52 ` [PATCH v3 09/16] arm: dts: msm8974: thermal: split address space into two Amit Kucheria
` (9 more replies)
0 siblings, 10 replies; 22+ messages in thread
From: Amit Kucheria @ 2018-09-12 9:52 UTC (permalink / raw)
To: linux-kernel
Cc: rnayak, linux-arm-msm, bjorn.andersson, edubezval, smohanad,
andy.gross, dianders, mka, David S. Miller, Andrew Morton,
Arnd Bergmann, Daniel Lezcano, Greg Kroah-Hartman,
Mauro Carvalho Chehab, devicetree, linux-pm, linux-soc
This is another series of tsens cleanups before we add interrupt support. This applies on top of 4.19-rc2.
Patches [1-6] can directly be applied by Eduardo.
Patches [9-16] can directly be applied by Andy.
Patches [7-8] introduce a new check and needs review and can then be
applied completely separately by Eduardo.
There is a *dependency* however. Patch 1 should be applied to the tree
before the DT changes in patches 9 and 10.
In this series, I've collected all outstanding tsens patches by combining
the patches from the v2 posting with 3 DT patches for sdm845 thermal zones
and msm8916 camera and gpu thermal zones. Details are as follows:
- splitup 8916 and 8974 register address spaces for SROT and TM
- cleanups: move to spdx, dead code removal, removal of id field
- Add support to map the SROT address space for DTs that list it separately
- Check if TSENS IP is enabled in firmware by querying the SROT space
- Add myself as maintainer of tsens
- Add one-off patches adding sdm845 thermal zones and msm8916 gpu and
camera thermal zones to this series.
Changes since v2:
- Split up changes to code and dt and within dt, split into arm and arm64
patches
- Rearrange the sequence of patches so that the thermal maintainer can pick
up the first part and the platform maintainer can pick up the latter part
of the series
- Drop patch 09/11 because it causes some issues on systems with
non-contiguous enabled sensors e.g. db410c
- Drop patch 10/11 because reg-name property isn't encouraged
- Fix a bug on msm8916 to check if IP is enabled in firmware. This was due
to the register being at a different offset on msm8916. Fixed by coding
this information as private data.
Changes since v1:
- Split up changes that split the address space and added qcom,sensors
property into two separate patches
- Remove brackets in typo correction patch
Amit Kucheria (16):
thermal: tsens: Prepare 8916 and 8974 tsens to use SROT and TM address
space
thermal: tsens: Add SPDX license identifiers
thermal: tsens: Get rid of dead code
thermal: tsens: Rename map field in order to add a second address map
thermal: tsens: Add the SROT address map
MAINTAINERS: Add entry for Qualcomm TSENS thermal drivers
thermal: tsens: Pass register offsets as private data
thermal: tsens: Check if the IP is correctly enabled by firmware
arm: dts: msm8974: thermal: split address space into two
arm64: dts: msm8916: thermal: split address space into two
arm: dts: msm8974: thermal: Add "qcom,sensors" property
arm64: dts: msm8916: thermal: Add "qcom,sensors" property
dt-bindings: thermal: Fix a typo in documentation
arm64: dts: msm8916: Add gpu thermal zone
arm64: dts: msm8916: Add camera thermal zone
arm64: dts: sdm845: enable tsens thermal zones
.../devicetree/bindings/thermal/thermal.txt | 2 +-
MAINTAINERS | 7 +
arch/arm/boot/dts/qcom-msm8974.dtsi | 6 +-
arch/arm64/boot/dts/qcom/msm8916.dtsi | 47 ++++-
arch/arm64/boot/dts/qcom/sdm845.dtsi | 170 ++++++++++++++++++
drivers/thermal/qcom/tsens-8916.c | 12 +-
drivers/thermal/qcom/tsens-8960.c | 41 ++---
drivers/thermal/qcom/tsens-8974.c | 12 +-
drivers/thermal/qcom/tsens-common.c | 62 ++++---
drivers/thermal/qcom/tsens-v2.c | 8 +-
drivers/thermal/qcom/tsens.c | 19 +-
drivers/thermal/qcom/tsens.h | 23 +--
12 files changed, 309 insertions(+), 100 deletions(-)
--
2.17.1
^ permalink raw reply [flat|nested] 22+ messages in thread
* [PATCH v3 09/16] arm: dts: msm8974: thermal: split address space into two
2018-09-12 9:52 [PATCH v3 00/16] Another round of tsens cleanups Amit Kucheria
@ 2018-09-12 9:52 ` Amit Kucheria
2018-09-20 18:57 ` Andy Gross
2018-09-12 9:52 ` [PATCH v3 10/16] arm64: dts: msm8916: " Amit Kucheria
` (8 subsequent siblings)
9 siblings, 1 reply; 22+ messages in thread
From: Amit Kucheria @ 2018-09-12 9:52 UTC (permalink / raw)
To: linux-kernel
Cc: rnayak, linux-arm-msm, bjorn.andersson, edubezval, smohanad,
andy.gross, dianders, mka, David Brown, Rob Herring, Mark Rutland,
linux-soc, devicetree
We've earlier added support to split the register address space into TM
and SROT regions. Split up the regmap address space into two for msm8974
that has a similar register layout.
Since tsens-common.c/init_common() currently only registers one address
space, the order is important (TM before SROT). This is OK since the
code doesn't really use the SROT functionality yet.
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
---
arch/arm/boot/dts/qcom-msm8974.dtsi | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi
index d9019a49b292..56dbbf788d15 100644
--- a/arch/arm/boot/dts/qcom-msm8974.dtsi
+++ b/arch/arm/boot/dts/qcom-msm8974.dtsi
@@ -427,9 +427,10 @@
};
};
- tsens: thermal-sensor@fc4a8000 {
+ tsens: thermal-sensor@fc4a9000 {
compatible = "qcom,msm8974-tsens";
- reg = <0xfc4a8000 0x2000>;
+ reg = <0xfc4a9000 0x1000>, /* TM */
+ <0xfc4a8000 0x1000>; /* SROT */
nvmem-cells = <&tsens_calib>, <&tsens_backup>;
nvmem-cell-names = "calib", "calib_backup";
#thermal-sensor-cells = <1>;
--
2.17.1
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [PATCH v3 10/16] arm64: dts: msm8916: thermal: split address space into two
2018-09-12 9:52 [PATCH v3 00/16] Another round of tsens cleanups Amit Kucheria
2018-09-12 9:52 ` [PATCH v3 09/16] arm: dts: msm8974: thermal: split address space into two Amit Kucheria
@ 2018-09-12 9:52 ` Amit Kucheria
2018-09-20 18:57 ` Andy Gross
2018-09-12 9:52 ` [PATCH v3 11/16] arm: dts: msm8974: thermal: Add "qcom,sensors" property Amit Kucheria
` (7 subsequent siblings)
9 siblings, 1 reply; 22+ messages in thread
From: Amit Kucheria @ 2018-09-12 9:52 UTC (permalink / raw)
To: linux-kernel
Cc: rnayak, linux-arm-msm, bjorn.andersson, edubezval, smohanad,
andy.gross, dianders, mka, David Brown, Rob Herring, Mark Rutland,
linux-soc, devicetree
We've earlier added support to split the register address space into TM
and SROT regions. Split up the regmap address space into two for msm8916
that has a similar register layout.
Since tsens-common.c/init_common() currently only registers one address
space, the order is important (TM before SROT). This is OK since the
code doesn't really use the SROT functionality yet.
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
---
arch/arm64/boot/dts/qcom/msm8916.dtsi | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi
index 7b32b8990d62..6a277fce3333 100644
--- a/arch/arm64/boot/dts/qcom/msm8916.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi
@@ -761,9 +761,10 @@
};
};
- tsens: thermal-sensor@4a8000 {
+ tsens: thermal-sensor@4a9000 {
compatible = "qcom,msm8916-tsens";
- reg = <0x4a8000 0x2000>;
+ reg = <0x4a9000 0x1000>, /* TM */
+ <0x4a8000 0x1000>; /* SROT */
nvmem-cells = <&tsens_caldata>, <&tsens_calsel>;
nvmem-cell-names = "calib", "calib_sel";
#thermal-sensor-cells = <1>;
--
2.17.1
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [PATCH v3 11/16] arm: dts: msm8974: thermal: Add "qcom,sensors" property
2018-09-12 9:52 [PATCH v3 00/16] Another round of tsens cleanups Amit Kucheria
2018-09-12 9:52 ` [PATCH v3 09/16] arm: dts: msm8974: thermal: split address space into two Amit Kucheria
2018-09-12 9:52 ` [PATCH v3 10/16] arm64: dts: msm8916: " Amit Kucheria
@ 2018-09-12 9:52 ` Amit Kucheria
2018-09-20 18:58 ` Andy Gross
2018-09-12 9:52 ` [PATCH v3 12/16] arm64: dts: msm8916: " Amit Kucheria
` (6 subsequent siblings)
9 siblings, 1 reply; 22+ messages in thread
From: Amit Kucheria @ 2018-09-12 9:52 UTC (permalink / raw)
To: linux-kernel
Cc: rnayak, linux-arm-msm, bjorn.andersson, edubezval, smohanad,
andy.gross, dianders, mka, David Brown, Rob Herring, Mark Rutland,
linux-soc, devicetree
This new property allows the number of sensors to be configured from DT
instead of being hardcoded in platform data. Use it.
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
---
arch/arm/boot/dts/qcom-msm8974.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi
index 56dbbf788d15..3c4b81c29798 100644
--- a/arch/arm/boot/dts/qcom-msm8974.dtsi
+++ b/arch/arm/boot/dts/qcom-msm8974.dtsi
@@ -433,6 +433,7 @@
<0xfc4a8000 0x1000>; /* SROT */
nvmem-cells = <&tsens_calib>, <&tsens_backup>;
nvmem-cell-names = "calib", "calib_backup";
+ #qcom,sensors = <11>;
#thermal-sensor-cells = <1>;
};
--
2.17.1
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [PATCH v3 12/16] arm64: dts: msm8916: thermal: Add "qcom,sensors" property
2018-09-12 9:52 [PATCH v3 00/16] Another round of tsens cleanups Amit Kucheria
` (2 preceding siblings ...)
2018-09-12 9:52 ` [PATCH v3 11/16] arm: dts: msm8974: thermal: Add "qcom,sensors" property Amit Kucheria
@ 2018-09-12 9:52 ` Amit Kucheria
2018-09-20 18:58 ` Andy Gross
2018-09-12 9:52 ` [PATCH v3 13/16] dt-bindings: thermal: Fix a typo in documentation Amit Kucheria
` (5 subsequent siblings)
9 siblings, 1 reply; 22+ messages in thread
From: Amit Kucheria @ 2018-09-12 9:52 UTC (permalink / raw)
To: linux-kernel
Cc: rnayak, linux-arm-msm, bjorn.andersson, edubezval, smohanad,
andy.gross, dianders, mka, David Brown, Rob Herring, Mark Rutland,
linux-soc, devicetree
This new property allows the number of sensors to be configured from DT
instead of being hardcoded in platform data. Use it.
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
---
arch/arm64/boot/dts/qcom/msm8916.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi
index 6a277fce3333..be27d8dc9e6b 100644
--- a/arch/arm64/boot/dts/qcom/msm8916.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi
@@ -767,6 +767,7 @@
<0x4a8000 0x1000>; /* SROT */
nvmem-cells = <&tsens_caldata>, <&tsens_calsel>;
nvmem-cell-names = "calib", "calib_sel";
+ #qcom,sensors = <5>;
#thermal-sensor-cells = <1>;
};
--
2.17.1
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [PATCH v3 13/16] dt-bindings: thermal: Fix a typo in documentation
2018-09-12 9:52 [PATCH v3 00/16] Another round of tsens cleanups Amit Kucheria
` (3 preceding siblings ...)
2018-09-12 9:52 ` [PATCH v3 12/16] arm64: dts: msm8916: " Amit Kucheria
@ 2018-09-12 9:52 ` Amit Kucheria
2018-09-12 9:52 ` [PATCH v3 14/16] arm64: dts: msm8916: Add gpu thermal zone Amit Kucheria
` (4 subsequent siblings)
9 siblings, 0 replies; 22+ messages in thread
From: Amit Kucheria @ 2018-09-12 9:52 UTC (permalink / raw)
To: linux-kernel
Cc: rnayak, linux-arm-msm, bjorn.andersson, edubezval, smohanad,
andy.gross, dianders, mka, Zhang Rui, Daniel Lezcano, Rob Herring,
Mark Rutland, linux-pm, devicetree
c(1) + x(1) was actually meant to be c(1) * x(1).
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
---
Documentation/devicetree/bindings/thermal/thermal.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/thermal/thermal.txt b/Documentation/devicetree/bindings/thermal/thermal.txt
index eb7ee91556a5..ca14ba959e0d 100644
--- a/Documentation/devicetree/bindings/thermal/thermal.txt
+++ b/Documentation/devicetree/bindings/thermal/thermal.txt
@@ -152,7 +152,7 @@ Optional property:
Elem size: one cell the sensors listed in the thermal-sensors property.
Elem type: signed Coefficients defaults to 1, in case this property
is not specified. A simple linear polynomial is used:
- Z = c0 * x0 + c1 + x1 + ... + c(n-1) * x(n-1) + cn.
+ Z = c0 * x0 + c1 * x1 + ... + c(n-1) * x(n-1) + cn.
The coefficients are ordered and they match with sensors
by means of sensor ID. Additional coefficients are
--
2.17.1
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [PATCH v3 14/16] arm64: dts: msm8916: Add gpu thermal zone
2018-09-12 9:52 [PATCH v3 00/16] Another round of tsens cleanups Amit Kucheria
` (4 preceding siblings ...)
2018-09-12 9:52 ` [PATCH v3 13/16] dt-bindings: thermal: Fix a typo in documentation Amit Kucheria
@ 2018-09-12 9:52 ` Amit Kucheria
2018-09-20 18:59 ` Andy Gross
2018-09-12 9:53 ` [PATCH v3 15/16] arm64: dts: msm8916: Add camera " Amit Kucheria
` (3 subsequent siblings)
9 siblings, 1 reply; 22+ messages in thread
From: Amit Kucheria @ 2018-09-12 9:52 UTC (permalink / raw)
To: linux-kernel
Cc: rnayak, linux-arm-msm, bjorn.andersson, edubezval, smohanad,
andy.gross, dianders, mka, David Brown, Rob Herring, Mark Rutland,
linux-soc, devicetree
Initialise the gpu thermal zone to export temperature to userspace.
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
---
arch/arm64/boot/dts/qcom/msm8916.dtsi | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi
index be27d8dc9e6b..62f079ae9ba3 100644
--- a/arch/arm64/boot/dts/qcom/msm8916.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi
@@ -237,6 +237,26 @@
};
};
+ gpu-thermal {
+ polling-delay-passive = <250>;
+ polling-delay = <1000>;
+
+ thermal-sensors = <&tsens 2>;
+
+ trips {
+ gpu_alert: trip0 {
+ temperature = <75000>;
+ hysteresis = <2000>;
+ type = "passive";
+ };
+ gpu_crit: trip1 {
+ temperature = <95000>;
+ hysteresis = <2000>;
+ type = "critical";
+ };
+ };
+ };
+
};
cpu_opp_table: cpu_opp_table {
--
2.17.1
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [PATCH v3 15/16] arm64: dts: msm8916: Add camera thermal zone
2018-09-12 9:52 [PATCH v3 00/16] Another round of tsens cleanups Amit Kucheria
` (5 preceding siblings ...)
2018-09-12 9:52 ` [PATCH v3 14/16] arm64: dts: msm8916: Add gpu thermal zone Amit Kucheria
@ 2018-09-12 9:53 ` Amit Kucheria
2018-09-20 19:00 ` Andy Gross
2018-09-12 9:53 ` [PATCH v3 16/16] arm64: dts: sdm845: enable tsens thermal zones Amit Kucheria
` (2 subsequent siblings)
9 siblings, 1 reply; 22+ messages in thread
From: Amit Kucheria @ 2018-09-12 9:53 UTC (permalink / raw)
To: linux-kernel
Cc: rnayak, linux-arm-msm, bjorn.andersson, edubezval, smohanad,
andy.gross, dianders, mka, David Brown, Rob Herring, Mark Rutland,
linux-soc, devicetree
Initialise the camera thermal zone to export temperature to userspace.
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
---
arch/arm64/boot/dts/qcom/msm8916.dtsi | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi
index 62f079ae9ba3..3dc8b8aa76c7 100644
--- a/arch/arm64/boot/dts/qcom/msm8916.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi
@@ -257,6 +257,27 @@
};
};
+ camera-thermal {
+ polling-delay-passive = <250>;
+ polling-delay = <1000>;
+
+ thermal-sensors = <&tsens 1>;
+
+ trips {
+ cam_alert: trip0 {
+ temperature = <75000>;
+ hysteresis = <2000>;
+ type = "passive";
+ };
+ cam_crit: trip1 {
+ temperature = <95000>;
+ hysteresis = <2000>;
+ type = "critical";
+ };
+ };
+
+ };
+
};
cpu_opp_table: cpu_opp_table {
--
2.17.1
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [PATCH v3 16/16] arm64: dts: sdm845: enable tsens thermal zones
2018-09-12 9:52 [PATCH v3 00/16] Another round of tsens cleanups Amit Kucheria
` (6 preceding siblings ...)
2018-09-12 9:53 ` [PATCH v3 15/16] arm64: dts: msm8916: Add camera " Amit Kucheria
@ 2018-09-12 9:53 ` Amit Kucheria
2018-09-20 19:01 ` Andy Gross
2018-10-25 19:25 ` Matthias Kaehlcke
2018-09-18 15:01 ` [PATCH v3 00/16] Another round of tsens cleanups Amit Kucheria
2018-09-20 19:02 ` Andy Gross
9 siblings, 2 replies; 22+ messages in thread
From: Amit Kucheria @ 2018-09-12 9:53 UTC (permalink / raw)
To: linux-kernel
Cc: rnayak, linux-arm-msm, bjorn.andersson, edubezval, smohanad,
andy.gross, dianders, mka, David Brown, Rob Herring, Mark Rutland,
linux-soc, devicetree
One thermal zone per cpu is defined
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Tested-by: Matthias Kaehlcke <mka@chromium.org>
---
arch/arm64/boot/dts/qcom/sdm845.dtsi | 170 +++++++++++++++++++++++++++
1 file changed, 170 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi
index 0c9a2aa6a1b5..eb801922f6bb 100644
--- a/arch/arm64/boot/dts/qcom/sdm845.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi
@@ -1104,4 +1104,174 @@
};
};
};
+
+ thermal-zones {
+ cpu0-thermal {
+ polling-delay-passive = <250>;
+ polling-delay = <1000>;
+
+ thermal-sensors = <&tsens0 1>;
+
+ trips {
+ cpu_alert0: trip0 {
+ temperature = <75000>;
+ hysteresis = <2000>;
+ type = "passive";
+ };
+
+ cpu_crit0: trip1 {
+ temperature = <110000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+
+ cpu1-thermal {
+ polling-delay-passive = <250>;
+ polling-delay = <1000>;
+
+ thermal-sensors = <&tsens0 2>;
+
+ trips {
+ cpu_alert1: trip0 {
+ temperature = <75000>;
+ hysteresis = <2000>;
+ type = "passive";
+ };
+
+ cpu_crit1: trip1 {
+ temperature = <110000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+
+ cpu2-thermal {
+ polling-delay-passive = <250>;
+ polling-delay = <1000>;
+
+ thermal-sensors = <&tsens0 3>;
+
+ trips {
+ cpu_alert2: trip0 {
+ temperature = <75000>;
+ hysteresis = <2000>;
+ type = "passive";
+ };
+
+ cpu_crit2: trip1 {
+ temperature = <110000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+
+ cpu3-thermal {
+ polling-delay-passive = <250>;
+ polling-delay = <1000>;
+
+ thermal-sensors = <&tsens0 4>;
+
+ trips {
+ cpu_alert3: trip0 {
+ temperature = <75000>;
+ hysteresis = <2000>;
+ type = "passive";
+ };
+
+ cpu_crit3: trip1 {
+ temperature = <110000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+
+ cpu4-thermal {
+ polling-delay-passive = <250>;
+ polling-delay = <1000>;
+
+ thermal-sensors = <&tsens0 7>;
+
+ trips {
+ cpu_alert4: trip0 {
+ temperature = <75000>;
+ hysteresis = <2000>;
+ type = "passive";
+ };
+
+ cpu_crit4: trip1 {
+ temperature = <110000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+
+ cpu5-thermal {
+ polling-delay-passive = <250>;
+ polling-delay = <1000>;
+
+ thermal-sensors = <&tsens0 8>;
+
+ trips {
+ cpu_alert5: trip0 {
+ temperature = <75000>;
+ hysteresis = <2000>;
+ type = "passive";
+ };
+
+ cpu_crit5: trip1 {
+ temperature = <110000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+
+ cpu6-thermal {
+ polling-delay-passive = <250>;
+ polling-delay = <1000>;
+
+ thermal-sensors = <&tsens0 9>;
+
+ trips {
+ cpu_alert6: trip0 {
+ temperature = <75000>;
+ hysteresis = <2000>;
+ type = "passive";
+ };
+
+ cpu_crit6: trip1 {
+ temperature = <110000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+
+ cpu7-thermal {
+ polling-delay-passive = <250>;
+ polling-delay = <1000>;
+
+ thermal-sensors = <&tsens0 10>;
+
+ trips {
+ cpu_alert7: trip0 {
+ temperature = <75000>;
+ hysteresis = <2000>;
+ type = "passive";
+ };
+
+ cpu_crit7: trip1 {
+ temperature = <110000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+ };
};
--
2.17.1
^ permalink raw reply related [flat|nested] 22+ messages in thread
* Re: [PATCH v3 00/16] Another round of tsens cleanups
2018-09-12 9:52 [PATCH v3 00/16] Another round of tsens cleanups Amit Kucheria
` (7 preceding siblings ...)
2018-09-12 9:53 ` [PATCH v3 16/16] arm64: dts: sdm845: enable tsens thermal zones Amit Kucheria
@ 2018-09-18 15:01 ` Amit Kucheria
2018-09-20 19:02 ` Andy Gross
9 siblings, 0 replies; 22+ messages in thread
From: Amit Kucheria @ 2018-09-18 15:01 UTC (permalink / raw)
To: LKML
Cc: Rajendra Nayak, linux-arm-msm, Bjorn Andersson, Eduardo Valentin,
smohanad, Andy Gross, Douglas Anderson, Matthias Kaehlcke,
David S. Miller, Andrew Morton, Arnd Bergmann, Daniel Lezcano,
gregkh, mchehab+samsung,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Linux PM list, open list:ARM/QUALCOMM SUPPORT
Hi Eduardo, Andy,
On Wed, Sep 12, 2018 at 2:53 AM Amit Kucheria <amit.kucheria@linaro.org> wrote:
>
> This is another series of tsens cleanups before we add interrupt support. This applies on top of 4.19-rc2.
>
> Patches [1-6] can directly be applied by Eduardo.
> Patches [9-16] can directly be applied by Andy.
> Patches [7-8] introduce a new check and needs review and can then be
> applied completely separately by Eduardo.
>
> There is a *dependency* however. Patch 1 should be applied to the tree
> before the DT changes in patches 9 and 10.
To clarify here, it might be easier if Eduardo acks patches 9 and 10
so that they can be merged through Andy's tree before the rest of the
DT patches. That would remove the need to create any immutable trees
or having to worry about the ordering of the patches.
Just a suggestion.
> In this series, I've collected all outstanding tsens patches by combining
> the patches from the v2 posting with 3 DT patches for sdm845 thermal zones
> and msm8916 camera and gpu thermal zones. Details are as follows:
>
> - splitup 8916 and 8974 register address spaces for SROT and TM
> - cleanups: move to spdx, dead code removal, removal of id field
> - Add support to map the SROT address space for DTs that list it separately
> - Check if TSENS IP is enabled in firmware by querying the SROT space
> - Add myself as maintainer of tsens
> - Add one-off patches adding sdm845 thermal zones and msm8916 gpu and
> camera thermal zones to this series.
>
> Changes since v2:
> - Split up changes to code and dt and within dt, split into arm and arm64
> patches
> - Rearrange the sequence of patches so that the thermal maintainer can pick
> up the first part and the platform maintainer can pick up the latter part
> of the series
> - Drop patch 09/11 because it causes some issues on systems with
> non-contiguous enabled sensors e.g. db410c
> - Drop patch 10/11 because reg-name property isn't encouraged
> - Fix a bug on msm8916 to check if IP is enabled in firmware. This was due
> to the register being at a different offset on msm8916. Fixed by coding
> this information as private data.
>
> Changes since v1:
> - Split up changes that split the address space and added qcom,sensors
> property into two separate patches
> - Remove brackets in typo correction patch
>
> Amit Kucheria (16):
> thermal: tsens: Prepare 8916 and 8974 tsens to use SROT and TM address
> space
> thermal: tsens: Add SPDX license identifiers
> thermal: tsens: Get rid of dead code
> thermal: tsens: Rename map field in order to add a second address map
> thermal: tsens: Add the SROT address map
> MAINTAINERS: Add entry for Qualcomm TSENS thermal drivers
> thermal: tsens: Pass register offsets as private data
> thermal: tsens: Check if the IP is correctly enabled by firmware
> arm: dts: msm8974: thermal: split address space into two
> arm64: dts: msm8916: thermal: split address space into two
> arm: dts: msm8974: thermal: Add "qcom,sensors" property
> arm64: dts: msm8916: thermal: Add "qcom,sensors" property
> dt-bindings: thermal: Fix a typo in documentation
> arm64: dts: msm8916: Add gpu thermal zone
> arm64: dts: msm8916: Add camera thermal zone
> arm64: dts: sdm845: enable tsens thermal zones
>
> .../devicetree/bindings/thermal/thermal.txt | 2 +-
> MAINTAINERS | 7 +
> arch/arm/boot/dts/qcom-msm8974.dtsi | 6 +-
> arch/arm64/boot/dts/qcom/msm8916.dtsi | 47 ++++-
> arch/arm64/boot/dts/qcom/sdm845.dtsi | 170 ++++++++++++++++++
> drivers/thermal/qcom/tsens-8916.c | 12 +-
> drivers/thermal/qcom/tsens-8960.c | 41 ++---
> drivers/thermal/qcom/tsens-8974.c | 12 +-
> drivers/thermal/qcom/tsens-common.c | 62 ++++---
> drivers/thermal/qcom/tsens-v2.c | 8 +-
> drivers/thermal/qcom/tsens.c | 19 +-
> drivers/thermal/qcom/tsens.h | 23 +--
> 12 files changed, 309 insertions(+), 100 deletions(-)
>
> --
> 2.17.1
>
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH v3 09/16] arm: dts: msm8974: thermal: split address space into two
2018-09-12 9:52 ` [PATCH v3 09/16] arm: dts: msm8974: thermal: split address space into two Amit Kucheria
@ 2018-09-20 18:57 ` Andy Gross
0 siblings, 0 replies; 22+ messages in thread
From: Andy Gross @ 2018-09-20 18:57 UTC (permalink / raw)
To: Amit Kucheria
Cc: linux-kernel, rnayak, linux-arm-msm, bjorn.andersson, edubezval,
smohanad, dianders, mka, David Brown, Rob Herring, Mark Rutland,
linux-soc, devicetree
On Wed, Sep 12, 2018 at 03:22:54PM +0530, Amit Kucheria wrote:
> We've earlier added support to split the register address space into TM
> and SROT regions. Split up the regmap address space into two for msm8974
> that has a similar register layout.
>
> Since tsens-common.c/init_common() currently only registers one address
> space, the order is important (TM before SROT). This is OK since the
> code doesn't really use the SROT functionality yet.
>
> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
> Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
> ---
Acked-by: Andy Gross <andy.gross@linaro.org>
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH v3 10/16] arm64: dts: msm8916: thermal: split address space into two
2018-09-12 9:52 ` [PATCH v3 10/16] arm64: dts: msm8916: " Amit Kucheria
@ 2018-09-20 18:57 ` Andy Gross
0 siblings, 0 replies; 22+ messages in thread
From: Andy Gross @ 2018-09-20 18:57 UTC (permalink / raw)
To: Amit Kucheria
Cc: linux-kernel, rnayak, linux-arm-msm, bjorn.andersson, edubezval,
smohanad, dianders, mka, David Brown, Rob Herring, Mark Rutland,
linux-soc, devicetree
On Wed, Sep 12, 2018 at 03:22:55PM +0530, Amit Kucheria wrote:
> We've earlier added support to split the register address space into TM
> and SROT regions. Split up the regmap address space into two for msm8916
> that has a similar register layout.
>
> Since tsens-common.c/init_common() currently only registers one address
> space, the order is important (TM before SROT). This is OK since the
> code doesn't really use the SROT functionality yet.
>
> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
> Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
> ---
Acked-by: Andy Gross <andy.gross@linaro.org>
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH v3 11/16] arm: dts: msm8974: thermal: Add "qcom,sensors" property
2018-09-12 9:52 ` [PATCH v3 11/16] arm: dts: msm8974: thermal: Add "qcom,sensors" property Amit Kucheria
@ 2018-09-20 18:58 ` Andy Gross
0 siblings, 0 replies; 22+ messages in thread
From: Andy Gross @ 2018-09-20 18:58 UTC (permalink / raw)
To: Amit Kucheria
Cc: linux-kernel, rnayak, linux-arm-msm, bjorn.andersson, edubezval,
smohanad, dianders, mka, David Brown, Rob Herring, Mark Rutland,
linux-soc, devicetree
On Wed, Sep 12, 2018 at 03:22:56PM +0530, Amit Kucheria wrote:
> This new property allows the number of sensors to be configured from DT
> instead of being hardcoded in platform data. Use it.
>
> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
> Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
> ---
> arch/arm/boot/dts/qcom-msm8974.dtsi | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi
> index 56dbbf788d15..3c4b81c29798 100644
> --- a/arch/arm/boot/dts/qcom-msm8974.dtsi
Acked-by: Andy Gross <andy.gross@linaro.org>
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH v3 12/16] arm64: dts: msm8916: thermal: Add "qcom,sensors" property
2018-09-12 9:52 ` [PATCH v3 12/16] arm64: dts: msm8916: " Amit Kucheria
@ 2018-09-20 18:58 ` Andy Gross
0 siblings, 0 replies; 22+ messages in thread
From: Andy Gross @ 2018-09-20 18:58 UTC (permalink / raw)
To: Amit Kucheria
Cc: linux-kernel, rnayak, linux-arm-msm, bjorn.andersson, edubezval,
smohanad, dianders, mka, David Brown, Rob Herring, Mark Rutland,
linux-soc, devicetree
On Wed, Sep 12, 2018 at 03:22:57PM +0530, Amit Kucheria wrote:
> This new property allows the number of sensors to be configured from DT
> instead of being hardcoded in platform data. Use it.
>
> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
> ---
> arch/arm64/boot/dts/qcom/msm8916.dtsi | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi
> index 6a277fce3333..be27d8dc9e6b 100644
> --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi
Acked-by: Andy Gross <andy.gross@linaro.org>
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH v3 14/16] arm64: dts: msm8916: Add gpu thermal zone
2018-09-12 9:52 ` [PATCH v3 14/16] arm64: dts: msm8916: Add gpu thermal zone Amit Kucheria
@ 2018-09-20 18:59 ` Andy Gross
0 siblings, 0 replies; 22+ messages in thread
From: Andy Gross @ 2018-09-20 18:59 UTC (permalink / raw)
To: Amit Kucheria
Cc: linux-kernel, rnayak, linux-arm-msm, bjorn.andersson, edubezval,
smohanad, dianders, mka, David Brown, Rob Herring, Mark Rutland,
linux-soc, devicetree
On Wed, Sep 12, 2018 at 03:22:59PM +0530, Amit Kucheria wrote:
> Initialise the gpu thermal zone to export temperature to userspace.
>
> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
> ---
> arch/arm64/boot/dts/qcom/msm8916.dtsi | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi
> index be27d8dc9e6b..62f079ae9ba3 100644
> --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi
> +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi
Acked-by: Andy Gross <andy.gross@linaro.org>
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH v3 15/16] arm64: dts: msm8916: Add camera thermal zone
2018-09-12 9:53 ` [PATCH v3 15/16] arm64: dts: msm8916: Add camera " Amit Kucheria
@ 2018-09-20 19:00 ` Andy Gross
0 siblings, 0 replies; 22+ messages in thread
From: Andy Gross @ 2018-09-20 19:00 UTC (permalink / raw)
To: Amit Kucheria
Cc: linux-kernel, rnayak, linux-arm-msm, bjorn.andersson, edubezval,
smohanad, dianders, mka, David Brown, Rob Herring, Mark Rutland,
linux-soc, devicetree
On Wed, Sep 12, 2018 at 03:23:00PM +0530, Amit Kucheria wrote:
> Initialise the camera thermal zone to export temperature to userspace.
>
> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
> ---
> arch/arm64/boot/dts/qcom/msm8916.dtsi | 21 +++++++++++++++++++++
> 1 file changed, 21 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi
> index 62f079ae9ba3..3dc8b8aa76c7 100644
> --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi
> +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi
Acked-by: Andy Gross <andy.gross@linaro.org>
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH v3 16/16] arm64: dts: sdm845: enable tsens thermal zones
2018-09-12 9:53 ` [PATCH v3 16/16] arm64: dts: sdm845: enable tsens thermal zones Amit Kucheria
@ 2018-09-20 19:01 ` Andy Gross
2018-10-25 19:25 ` Matthias Kaehlcke
1 sibling, 0 replies; 22+ messages in thread
From: Andy Gross @ 2018-09-20 19:01 UTC (permalink / raw)
To: Amit Kucheria
Cc: linux-kernel, rnayak, linux-arm-msm, bjorn.andersson, edubezval,
smohanad, dianders, mka, David Brown, Rob Herring, Mark Rutland,
linux-soc, devicetree
On Wed, Sep 12, 2018 at 03:23:01PM +0530, Amit Kucheria wrote:
> One thermal zone per cpu is defined
>
> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
> Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
> Tested-by: Matthias Kaehlcke <mka@chromium.org>
> ---
> arch/arm64/boot/dts/qcom/sdm845.dtsi | 170 +++++++++++++++++++++++++++
> 1 file changed, 170 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi
> index 0c9a2aa6a1b5..eb801922f6bb 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi
Acked-by: Andy Gross <andy.gross@linaro.org>
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH v3 00/16] Another round of tsens cleanups
2018-09-12 9:52 [PATCH v3 00/16] Another round of tsens cleanups Amit Kucheria
` (8 preceding siblings ...)
2018-09-18 15:01 ` [PATCH v3 00/16] Another round of tsens cleanups Amit Kucheria
@ 2018-09-20 19:02 ` Andy Gross
2018-09-21 17:48 ` Amit Kucheria
9 siblings, 1 reply; 22+ messages in thread
From: Andy Gross @ 2018-09-20 19:02 UTC (permalink / raw)
To: Amit Kucheria
Cc: linux-kernel, rnayak, linux-arm-msm, bjorn.andersson, edubezval,
smohanad, dianders, mka, David S. Miller, Andrew Morton,
Arnd Bergmann, Daniel Lezcano, Greg Kroah-Hartman,
Mauro Carvalho Chehab, devicetree, linux-pm, linux-soc
On Wed, Sep 12, 2018 at 03:22:45PM +0530, Amit Kucheria wrote:
> This is another series of tsens cleanups before we add interrupt support. This applies on top of 4.19-rc2.
>
> Patches [1-6] can directly be applied by Eduardo.
> Patches [9-16] can directly be applied by Andy.
Eduardo,
I ACKed the DTS patches for this. Can you take 9-16 along with the 1-6 through
your tree?
Thanks,
Andy
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH v3 00/16] Another round of tsens cleanups
2018-09-20 19:02 ` Andy Gross
@ 2018-09-21 17:48 ` Amit Kucheria
0 siblings, 0 replies; 22+ messages in thread
From: Amit Kucheria @ 2018-09-21 17:48 UTC (permalink / raw)
To: Andy Gross
Cc: LKML, Rajendra Nayak, linux-arm-msm, Bjorn Andersson,
Eduardo Valentin, smohanad, Douglas Anderson, Matthias Kaehlcke,
David S. Miller, Andrew Morton, Arnd Bergmann, Daniel Lezcano,
gregkh, mchehab+samsung,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Linux PM list, open list:ARM/QUALCOMM SUPPORT
On Thu, Sep 20, 2018 at 12:02 PM Andy Gross <andy.gross@linaro.org> wrote:
>
> On Wed, Sep 12, 2018 at 03:22:45PM +0530, Amit Kucheria wrote:
> > This is another series of tsens cleanups before we add interrupt support. This applies on top of 4.19-rc2.
> >
> > Patches [1-6] can directly be applied by Eduardo.
> > Patches [9-16] can directly be applied by Andy.
>
> Eduardo,
>
> I ACKed the DTS patches for this. Can you take 9-16 along with the 1-6 through
> your tree?
>
Thanks Andy.
Eduardo, I've send a fixup patch 07/16. If you like, I can resend the
entire series
or you can find the entire series hosted with all tags applied here:
https://git.linaro.org/people/amit.kucheria/kernel.git/log/?h=up/thermal/tsens-preirq-cleanup-v4
Regards,
Amit
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH v3 16/16] arm64: dts: sdm845: enable tsens thermal zones
2018-09-12 9:53 ` [PATCH v3 16/16] arm64: dts: sdm845: enable tsens thermal zones Amit Kucheria
2018-09-20 19:01 ` Andy Gross
@ 2018-10-25 19:25 ` Matthias Kaehlcke
2018-10-25 20:03 ` Amit Kucheria
1 sibling, 1 reply; 22+ messages in thread
From: Matthias Kaehlcke @ 2018-10-25 19:25 UTC (permalink / raw)
To: Amit Kucheria
Cc: linux-kernel, rnayak, linux-arm-msm, bjorn.andersson, edubezval,
smohanad, andy.gross, dianders, David Brown, Rob Herring,
Mark Rutland, linux-soc, devicetree
Hi Amit,
vaguely related question, since you are working on SDM845 thermal
stuff: Do you have plans to add CPU cooling devices? I raised the
point during the review of the CPUfreq HW, however there was no
clear answer: https://lore.kernel.org/patchwork/patch/966833/#1164748
The driver is still under development/review, but I wonder what the
path forward is.
Cheers
Matthias
On Wed, Sep 12, 2018 at 03:23:01PM +0530, Amit Kucheria wrote:
> One thermal zone per cpu is defined
>
> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
> Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
> Tested-by: Matthias Kaehlcke <mka@chromium.org>
> ---
> arch/arm64/boot/dts/qcom/sdm845.dtsi | 170 +++++++++++++++++++++++++++
> 1 file changed, 170 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi
> index 0c9a2aa6a1b5..eb801922f6bb 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi
> @@ -1104,4 +1104,174 @@
> };
> };
> };
> +
> + thermal-zones {
> + cpu0-thermal {
> + polling-delay-passive = <250>;
> + polling-delay = <1000>;
> +
> + thermal-sensors = <&tsens0 1>;
> +
> + trips {
> + cpu_alert0: trip0 {
> + temperature = <75000>;
> + hysteresis = <2000>;
> + type = "passive";
> + };
> +
> + cpu_crit0: trip1 {
> + temperature = <110000>;
> + hysteresis = <1000>;
> + type = "critical";
> + };
> + };
> + };
> +
> + cpu1-thermal {
> + polling-delay-passive = <250>;
> + polling-delay = <1000>;
> +
> + thermal-sensors = <&tsens0 2>;
> +
> + trips {
> + cpu_alert1: trip0 {
> + temperature = <75000>;
> + hysteresis = <2000>;
> + type = "passive";
> + };
> +
> + cpu_crit1: trip1 {
> + temperature = <110000>;
> + hysteresis = <1000>;
> + type = "critical";
> + };
> + };
> + };
> +
> + cpu2-thermal {
> + polling-delay-passive = <250>;
> + polling-delay = <1000>;
> +
> + thermal-sensors = <&tsens0 3>;
> +
> + trips {
> + cpu_alert2: trip0 {
> + temperature = <75000>;
> + hysteresis = <2000>;
> + type = "passive";
> + };
> +
> + cpu_crit2: trip1 {
> + temperature = <110000>;
> + hysteresis = <1000>;
> + type = "critical";
> + };
> + };
> + };
> +
> + cpu3-thermal {
> + polling-delay-passive = <250>;
> + polling-delay = <1000>;
> +
> + thermal-sensors = <&tsens0 4>;
> +
> + trips {
> + cpu_alert3: trip0 {
> + temperature = <75000>;
> + hysteresis = <2000>;
> + type = "passive";
> + };
> +
> + cpu_crit3: trip1 {
> + temperature = <110000>;
> + hysteresis = <1000>;
> + type = "critical";
> + };
> + };
> + };
> +
> + cpu4-thermal {
> + polling-delay-passive = <250>;
> + polling-delay = <1000>;
> +
> + thermal-sensors = <&tsens0 7>;
> +
> + trips {
> + cpu_alert4: trip0 {
> + temperature = <75000>;
> + hysteresis = <2000>;
> + type = "passive";
> + };
> +
> + cpu_crit4: trip1 {
> + temperature = <110000>;
> + hysteresis = <1000>;
> + type = "critical";
> + };
> + };
> + };
> +
> + cpu5-thermal {
> + polling-delay-passive = <250>;
> + polling-delay = <1000>;
> +
> + thermal-sensors = <&tsens0 8>;
> +
> + trips {
> + cpu_alert5: trip0 {
> + temperature = <75000>;
> + hysteresis = <2000>;
> + type = "passive";
> + };
> +
> + cpu_crit5: trip1 {
> + temperature = <110000>;
> + hysteresis = <1000>;
> + type = "critical";
> + };
> + };
> + };
> +
> + cpu6-thermal {
> + polling-delay-passive = <250>;
> + polling-delay = <1000>;
> +
> + thermal-sensors = <&tsens0 9>;
> +
> + trips {
> + cpu_alert6: trip0 {
> + temperature = <75000>;
> + hysteresis = <2000>;
> + type = "passive";
> + };
> +
> + cpu_crit6: trip1 {
> + temperature = <110000>;
> + hysteresis = <1000>;
> + type = "critical";
> + };
> + };
> + };
> +
> + cpu7-thermal {
> + polling-delay-passive = <250>;
> + polling-delay = <1000>;
> +
> + thermal-sensors = <&tsens0 10>;
> +
> + trips {
> + cpu_alert7: trip0 {
> + temperature = <75000>;
> + hysteresis = <2000>;
> + type = "passive";
> + };
> +
> + cpu_crit7: trip1 {
> + temperature = <110000>;
> + hysteresis = <1000>;
> + type = "critical";
> + };
> + };
> + };
> + };
> };
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH v3 16/16] arm64: dts: sdm845: enable tsens thermal zones
2018-10-25 19:25 ` Matthias Kaehlcke
@ 2018-10-25 20:03 ` Amit Kucheria
2018-10-25 20:37 ` Matthias Kaehlcke
0 siblings, 1 reply; 22+ messages in thread
From: Amit Kucheria @ 2018-10-25 20:03 UTC (permalink / raw)
To: mka
Cc: Linux Kernel Mailing List, Rajendra Nayak, linux-arm-msm,
Bjorn Andersson, Eduardo Valentin, smohanad, Andy Gross,
Doug Anderson, David Brown, Rob Herring, Mark Rutland,
open list:ARM/QUALCOMM SUPPORT, DTML
On Fri, Oct 26, 2018 at 12:55 AM Matthias Kaehlcke <mka@chromium.org> wrote:
>
> Hi Amit,
>
> vaguely related question, since you are working on SDM845 thermal
> stuff: Do you have plans to add CPU cooling devices? I raised the
> point during the review of the CPUfreq HW, however there was no
> clear answer: https://lore.kernel.org/patchwork/patch/966833/#1164748
> The driver is still under development/review, but I wonder what the
> path forward is.
>
Hi Matthias,
I plan to but the OSM driver doesn't work well enough for me to send
out that patch yet. I responded with my findings on the v9 posting
where it seems to get stuck at the high OPP. It'd be nice if somebody
else could confirm (or refute) this behaviour.
Regards,
Amit
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH v3 16/16] arm64: dts: sdm845: enable tsens thermal zones
2018-10-25 20:03 ` Amit Kucheria
@ 2018-10-25 20:37 ` Matthias Kaehlcke
0 siblings, 0 replies; 22+ messages in thread
From: Matthias Kaehlcke @ 2018-10-25 20:37 UTC (permalink / raw)
To: Amit Kucheria
Cc: Linux Kernel Mailing List, Rajendra Nayak, linux-arm-msm,
Bjorn Andersson, Eduardo Valentin, smohanad, Andy Gross,
Doug Anderson, David Brown, Rob Herring, Mark Rutland,
open list:ARM/QUALCOMM SUPPORT, DTML
On Fri, Oct 26, 2018 at 01:33:40AM +0530, Amit Kucheria wrote:
> On Fri, Oct 26, 2018 at 12:55 AM Matthias Kaehlcke <mka@chromium.org> wrote:
> >
> > Hi Amit,
> >
> > vaguely related question, since you are working on SDM845 thermal
> > stuff: Do you have plans to add CPU cooling devices? I raised the
> > point during the review of the CPUfreq HW, however there was no
> > clear answer: https://lore.kernel.org/patchwork/patch/966833/#1164748
> > The driver is still under development/review, but I wonder what the
> > path forward is.
> >
>
> Hi Matthias,
>
> I plan to
Great!
> but the OSM driver doesn't work well enough for me to send
> out that patch yet. I responded with my findings on the v9 posting
> where it seems to get stuck at the high OPP. It'd be nice if somebody
> else could confirm (or refute) this behaviour.
Ok, we aren't using the latest version yet, I'll try to repro and
report back.
Cheers
Matthias
^ permalink raw reply [flat|nested] 22+ messages in thread
end of thread, other threads:[~2018-10-25 20:37 UTC | newest]
Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-12 9:52 [PATCH v3 00/16] Another round of tsens cleanups Amit Kucheria
2018-09-12 9:52 ` [PATCH v3 09/16] arm: dts: msm8974: thermal: split address space into two Amit Kucheria
2018-09-20 18:57 ` Andy Gross
2018-09-12 9:52 ` [PATCH v3 10/16] arm64: dts: msm8916: " Amit Kucheria
2018-09-20 18:57 ` Andy Gross
2018-09-12 9:52 ` [PATCH v3 11/16] arm: dts: msm8974: thermal: Add "qcom,sensors" property Amit Kucheria
2018-09-20 18:58 ` Andy Gross
2018-09-12 9:52 ` [PATCH v3 12/16] arm64: dts: msm8916: " Amit Kucheria
2018-09-20 18:58 ` Andy Gross
2018-09-12 9:52 ` [PATCH v3 13/16] dt-bindings: thermal: Fix a typo in documentation Amit Kucheria
2018-09-12 9:52 ` [PATCH v3 14/16] arm64: dts: msm8916: Add gpu thermal zone Amit Kucheria
2018-09-20 18:59 ` Andy Gross
2018-09-12 9:53 ` [PATCH v3 15/16] arm64: dts: msm8916: Add camera " Amit Kucheria
2018-09-20 19:00 ` Andy Gross
2018-09-12 9:53 ` [PATCH v3 16/16] arm64: dts: sdm845: enable tsens thermal zones Amit Kucheria
2018-09-20 19:01 ` Andy Gross
2018-10-25 19:25 ` Matthias Kaehlcke
2018-10-25 20:03 ` Amit Kucheria
2018-10-25 20:37 ` Matthias Kaehlcke
2018-09-18 15:01 ` [PATCH v3 00/16] Another round of tsens cleanups Amit Kucheria
2018-09-20 19:02 ` Andy Gross
2018-09-21 17:48 ` Amit Kucheria
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).