Skip to contentSkip to conversation

ARM: dts: exynos: enable polling in Exynos 4210

PATCH Applied Mateusz Majewski 2 participants 4 messages Sep 11, 2023 – Sep 14, 2023 1 message not in the archive

Subsystems (2)

v2 of 6 Applied Latest is v6 →

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20230911133431eucas1p2631e7060cecb0914933ed45b837cf8eb@eucas1p2.samsung.com

#1 lore raw

PATCH v2 1/1 ARM: dts: exynos: enable polling in Exynos 4210

It seems that thermal in Exynos 4210 is broken without this, as it will never decrease cooling after increasing it.

---
v1 -> v2: Just uploaded separately from all the thermal: exynos:
patches with a shorter recipient list, no change otherwise.

 arch/arm/boot/dts/samsung/exynos4210.dtsi | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
arch/arm/boot/dts/samsung/exynos4210.dtsi +8 -2
index 0e27c3375e2e..aae185b7f91c 100644
@@ -391,8 +391,14 @@ &cpu_alert2 {
 };
 
 &cpu_thermal {
-	polling-delay-passive = <0>;
-	polling-delay = <0>;
+	/* Exynos 4210 supports thermal interrupts, but only for the rising threshold.
+	 * This means that polling is not needed for preventing overheating, but only
+	 * for decreasing cooling when possible. Hence we poll with a high delay.
+	 * Ideally, we would disable polling for the first trip point, but this isn't
+	 * really possible without outrageous hacks.
+	 */
+	polling-delay-passive = <5000>;
+	polling-delay = <5000>;
 };
 
 &gic {
Signature · 7 lines
2.41.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#2 lore raw
Quoted 16 lines · Mateusz Majewski

It seems that thermal in Exynos 4210 is broken without this, as it will never decrease cooling after increasing it.

---
v1 -> v2: Just uploaded separately from all the thermal: exynos:
patches with a shorter recipient list, no change otherwise.

 arch/arm/boot/dts/samsung/exynos4210.dtsi | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
arch/arm/boot/dts/samsung/exynos4210.dtsi +0 -0
index 0e27c3375e2e..aae185b7f91c 100644

arch/arm/boot/dts/samsung/exynos4210.dtsi &cpu_alert2 { · line 394

Quoted 6 lines
arch/arm/boot/dts/samsung/exynos4210.dtsi +1 -2
@@ -391,8 +391,14 @@ &cpu_alert2 {
 };
 
 &cpu_thermal {
-	polling-delay-passive = <0>;
-	polling-delay = <0>;
+	/* Exynos 4210 supports thermal interrupts, but only for the rising threshold.

This is a friendly reminder during the review process.

It seems my previous comments were not fully addressed. Maybe my feedback got lost between the quotes, maybe you just forgot to apply it. Please go back to the previous discussion and either implement all requested changes or keep discussing them.

I fixed it up and applied.

Best regards,
Krzysztof

#3 lore raw
Quoted 26 lines · Krzysztof Kozlowski
Quoted 16 lines · Mateusz Majewski

It seems that thermal in Exynos 4210 is broken without this, as it will never decrease cooling after increasing it.

---
v1 -> v2: Just uploaded separately from all the thermal: exynos:
patches with a shorter recipient list, no change otherwise.

 arch/arm/boot/dts/samsung/exynos4210.dtsi | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
arch/arm/boot/dts/samsung/exynos4210.dtsi +0 -0
index 0e27c3375e2e..aae185b7f91c 100644

arch/arm/boot/dts/samsung/exynos4210.dtsi &cpu_alert2 { · line 394

Quoted 6 lines
arch/arm/boot/dts/samsung/exynos4210.dtsi +1 -2
@@ -391,8 +391,14 @@ &cpu_alert2 {
 };
 
 &cpu_thermal {
-	polling-delay-passive = <0>;
-	polling-delay = <0>;
+	/* Exynos 4210 supports thermal interrupts, but only for the rising threshold.

This is a friendly reminder during the review process.

Quoted 7 lines

It seems my previous comments were not fully addressed. Maybe my feedback got lost between the quotes, maybe you just forgot to apply it. Please go back to the previous discussion and either implement all requested changes or keep discussing them.

I fixed it up and applied.

BTW, line wrapping was also not correct :/ Please follow coding style - it is still 80, unless exception makes things readable. There is no need for exception here.

Best regards,
Krzysztof