193-dts-mt7623-thermal_zone_fix.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. From 824d56e753a588fcfd650db1822e34a02a48bb77 Mon Sep 17 00:00:00 2001
  2. From: Bruno Umuarama <[email protected]>
  3. Date: Thu, 13 Oct 2022 21:18:21 +0000
  4. Subject: [PATCH] mediatek: mt7623: fix thermal zone
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Raising the temperatures for passive and active trips. @VA1DER
  9. proposed at issue 9396 to remove passive trip. This commit relates to
  10. his suggestion.
  11. Without this patch. the CPU will be throttled all the way down to 98MHz
  12. if the temperature rises even a degree above the trip point, and it was
  13. further discovered that if the internal temperature of the device is
  14. above the first trip point temperature when it boots then it will start
  15. in a throttled state and even
  16. $ echo disabled > /sys/class/thermal/thermal_zone0/mode
  17. will have no effect.
  18. The patch increases the passive trip point and active cooling map. The
  19. throttling temperature will then be at 77°C and 82°C, which is still a
  20. low enough temperature for ARM devices to not be in the real danger
  21. zone, and gives some operational headroom.
  22. Signed-off-by: Bruno Umuarama <[email protected]>
  23. ---
  24. arch/arm/boot/dts/mt7623.dtsi | 4 ++--
  25. 1 file changed, 2 insertions(+), 2 deletions(-)
  26. --- a/arch/arm/boot/dts/mt7623.dtsi
  27. +++ b/arch/arm/boot/dts/mt7623.dtsi
  28. @@ -160,13 +160,13 @@
  29. trips {
  30. cpu_passive: cpu-passive {
  31. - temperature = <57000>;
  32. + temperature = <77000>;
  33. hysteresis = <2000>;
  34. type = "passive";
  35. };
  36. cpu_active: cpu-active {
  37. - temperature = <67000>;
  38. + temperature = <82000>;
  39. hysteresis = <2000>;
  40. type = "active";
  41. };