Skip to content

Commit 4c53e22

Browse files
committed
modify the thermal policy to consistent with old kernel version
Change-Id: Ic9e97416fff7b6027f69cb4ae6be2baa210f1b26 Reviewed-on: https://tp-biosrd-v02/gerrit/80076 Reviewed-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com> Tested-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com>
1 parent cc76c19 commit 4c53e22

1 file changed

Lines changed: 28 additions & 6 deletions

File tree

arch/arm/boot/dts/rk3288.dtsi

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -548,12 +548,12 @@
548548
thermal-sensors = <&tsadc 1>;
549549
trips {
550550
threshold: trip-point@0 {
551-
temperature = <75000>; /* millicelsius */
551+
temperature = <70000>; /* millicelsius */
552552
hysteresis = <2000>; /* millicelsius */
553553
type = "passive";
554554
};
555555
target: trip-point@1 {
556-
temperature = <85000>; /* millicelsius */
556+
temperature = <80000>; /* millicelsius */
557557
hysteresis = <2000>; /* millicelsius */
558558
type = "passive";
559559
};
@@ -566,24 +566,46 @@
566566

567567
cooling-maps {
568568
map0 {
569-
trip = <&target>;
569+
trip = <&threshold>;
570570
cooling-device =
571571
<&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
572572
contribution = <1024>;
573573
};
574574
map1 {
575575
trip = <&target>;
576576
cooling-device =
577-
<&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
577+
<&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
578578
contribution = <1024>;
579579
};
580580
};
581581
};
582582

583583
gpu_thermal: gpu-thermal {
584-
polling-delay-passive = <200>; /* milliseconds */
585-
polling-delay = <1000>; /* milliseconds */
584+
polling-delay-passive = <250>; /* milliseconds */
585+
polling-delay = <5000>; /* milliseconds */
586+
586587
thermal-sensors = <&tsadc 2>;
588+
589+
trips {
590+
gpu_alert0: gpu_alert0 {
591+
temperature = <80000>; /* millicelsius */
592+
hysteresis = <2000>; /* millicelsius */
593+
type = "passive";
594+
};
595+
gpu_crit: gpu_crit {
596+
temperature = <90000>; /* millicelsius */
597+
hysteresis = <2000>; /* millicelsius */
598+
type = "critical";
599+
};
600+
};
601+
602+
cooling-maps {
603+
map0 {
604+
trip = <&gpu_alert0>;
605+
cooling-device =
606+
<&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
607+
};
608+
};
587609
};
588610
};
589611

0 commit comments

Comments
 (0)