Loading arch/arm64/boot/dts/qcom/trinket-rumi.dtsi +1 −1 Original line number Diff line number Diff line Loading @@ -98,7 +98,7 @@ /delete-node/ camera-lowf; /delete-node/ video-lowf; /delete-node/ cpu-1-0-lowf; /delete-node/ cpu-0-0-lowf; /delete-node/ cpuss-2-lowf; /delete-node/ mdm-core-lowf; /delete-node/ display-lowf; /delete-node/ gpu-lowf; Loading arch/arm64/boot/dts/qcom/trinket-thermal.dtsi +58 −43 Original line number Diff line number Diff line Loading @@ -573,9 +573,16 @@ type = "passive"; }; }; cooling-maps { gpu_cdev { trip = <&gpu_step_trip>; cooling-device = <&msm_gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; }; octa-cpu-max-step { hepta-cpu-max-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; Loading @@ -588,87 +595,95 @@ }; }; cpu-0-0-step { cpuss-0-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&tsens0 9>; thermal-sensors = <&tsens0 6>; trips { cpu0_config: cpu0-config { cpu5_7_config: cpu-5-7-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu0_cdev { trip = <&cpu0_config>; cpu5_cdev { trip = <&cpu5_7_config>; cooling-device = <&CPU0 THERMAL_MAX_LIMIT <&CPU5 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; cpu7_cdev { trip = <&cpu5_7_config>; cooling-device = <&CPU7 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-0-1-step { cpuss-1-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&tsens0 10>; thermal-sensors = <&tsens0 7>; trips { cpu1_config: cpu1-config { cpu4_6_config: cpu-4-6-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu1_cdev { trip = <&cpu1_config>; cpu4_cdev { trip = <&cpu4_6_config>; cooling-device = <&CPU1 THERMAL_MAX_LIMIT <&CPU4 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; cpu6_cdev { trip = <&cpu4_6_config>; cooling-device = <&CPU6 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-0-2-step { cpuss-2-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&tsens0 11>; thermal-sensors = <&tsens0 8>; trips { cpu2_config: cpu2-config { silv_cpus_config: silv-cpus-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu2_cdev { trip = <&cpu2_config>; cpu0_cdev { trip = <&silv_cpus_config>; cooling-device = <&CPU2 THERMAL_MAX_LIMIT <&CPU0 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; cpu1_cdev { trip = <&silv_cpus_config>; cooling-device = <&CPU1 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; cpu2_cdev { trip = <&silv_cpus_config>; cooling-device = <&CPU2 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; cpu-0-3-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&tsens0 12>; trips { cpu3_config: cpu3-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu3_cdev { trip = <&cpu3_config>; trip = <&silv_cpus_config>; cooling-device = <&CPU3 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; Loading @@ -680,7 +695,7 @@ polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&tsens0 6>; thermal-sensors = <&tsens0 9>; trips { cpu4_config: cpu4-config { temperature = <110000>; Loading @@ -702,7 +717,7 @@ polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&tsens0 7>; thermal-sensors = <&tsens0 10>; trips { cpu5_config: cpu5-config { temperature = <110000>; Loading @@ -724,7 +739,7 @@ polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&tsens0 8>; thermal-sensors = <&tsens0 11>; trips { cpu6_config: cpu6-config { temperature = <110000>; Loading @@ -746,7 +761,7 @@ polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&tsens0 4>; thermal-sensors = <&tsens0 12>; trips { cpu7_config: cpu7-config { temperature = <110000>; Loading Loading @@ -1076,7 +1091,7 @@ polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "low_limits_floor"; thermal-sensors = <&tsens0 5>; thermal-sensors = <&tsens0 4>; tracks-low; trips { video_trip: video-trip { Loading Loading @@ -1153,7 +1168,7 @@ polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "low_limits_floor"; thermal-sensors = <&tsens0 6>; thermal-sensors = <&tsens0 9>; tracks-low; trips { cpu4_lowf_trip: cpu4-lowf-trip { Loading Loading @@ -1226,11 +1241,11 @@ }; }; cpu-0-0-lowf { cpuss-2-lowf { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "low_limits_floor"; thermal-sensors = <&tsens0 9>; thermal-sensors = <&tsens0 8>; tracks-low; trips { cpu0_lowf_trip: cpu0-lowf-trip { Loading Loading @@ -1461,7 +1476,7 @@ polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "low_limits_floor"; thermal-sensors = <&tsens0 5>; thermal-sensors = <&tsens0 15>; tracks-low; trips { gpu_trip: gpu-trip { Loading drivers/thermal/qcom/qti_virtual_sensor.c +6 −7 Original line number Diff line number Diff line /* * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -161,16 +161,15 @@ static const struct virtual_sensor_data qti_virtual_sensors[] = { .logic = VIRT_MAXIMUM, }, { .virt_zone_name = "octa-cpu-max-step", .num_sensors = 8, .virt_zone_name = "hepta-cpu-max-step", .num_sensors = 7, .sensor_names = {"cpu-1-0-usr", "cpu-1-1-usr", "cpu-1-2-usr", "cpu-1-3-usr", "cpu-0-0-usr", "cpu-0-1-usr", "cpu-0-2-usr", "cpu-0-3-usr"}, "cpuss-0-usr", "cpuss-1-usr", "cpuss-2-usr"}, .logic = VIRT_MAXIMUM, }, }; Loading Loading
arch/arm64/boot/dts/qcom/trinket-rumi.dtsi +1 −1 Original line number Diff line number Diff line Loading @@ -98,7 +98,7 @@ /delete-node/ camera-lowf; /delete-node/ video-lowf; /delete-node/ cpu-1-0-lowf; /delete-node/ cpu-0-0-lowf; /delete-node/ cpuss-2-lowf; /delete-node/ mdm-core-lowf; /delete-node/ display-lowf; /delete-node/ gpu-lowf; Loading
arch/arm64/boot/dts/qcom/trinket-thermal.dtsi +58 −43 Original line number Diff line number Diff line Loading @@ -573,9 +573,16 @@ type = "passive"; }; }; cooling-maps { gpu_cdev { trip = <&gpu_step_trip>; cooling-device = <&msm_gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; }; octa-cpu-max-step { hepta-cpu-max-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; Loading @@ -588,87 +595,95 @@ }; }; cpu-0-0-step { cpuss-0-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&tsens0 9>; thermal-sensors = <&tsens0 6>; trips { cpu0_config: cpu0-config { cpu5_7_config: cpu-5-7-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu0_cdev { trip = <&cpu0_config>; cpu5_cdev { trip = <&cpu5_7_config>; cooling-device = <&CPU0 THERMAL_MAX_LIMIT <&CPU5 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; cpu7_cdev { trip = <&cpu5_7_config>; cooling-device = <&CPU7 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-0-1-step { cpuss-1-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&tsens0 10>; thermal-sensors = <&tsens0 7>; trips { cpu1_config: cpu1-config { cpu4_6_config: cpu-4-6-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu1_cdev { trip = <&cpu1_config>; cpu4_cdev { trip = <&cpu4_6_config>; cooling-device = <&CPU1 THERMAL_MAX_LIMIT <&CPU4 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; cpu6_cdev { trip = <&cpu4_6_config>; cooling-device = <&CPU6 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; }; }; cpu-0-2-step { cpuss-2-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&tsens0 11>; thermal-sensors = <&tsens0 8>; trips { cpu2_config: cpu2-config { silv_cpus_config: silv-cpus-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu2_cdev { trip = <&cpu2_config>; cpu0_cdev { trip = <&silv_cpus_config>; cooling-device = <&CPU2 THERMAL_MAX_LIMIT <&CPU0 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; cpu1_cdev { trip = <&silv_cpus_config>; cooling-device = <&CPU1 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; cpu2_cdev { trip = <&silv_cpus_config>; cooling-device = <&CPU2 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; cpu-0-3-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&tsens0 12>; trips { cpu3_config: cpu3-config { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; }; cooling-maps { cpu3_cdev { trip = <&cpu3_config>; trip = <&silv_cpus_config>; cooling-device = <&CPU3 THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; Loading @@ -680,7 +695,7 @@ polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&tsens0 6>; thermal-sensors = <&tsens0 9>; trips { cpu4_config: cpu4-config { temperature = <110000>; Loading @@ -702,7 +717,7 @@ polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&tsens0 7>; thermal-sensors = <&tsens0 10>; trips { cpu5_config: cpu5-config { temperature = <110000>; Loading @@ -724,7 +739,7 @@ polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&tsens0 8>; thermal-sensors = <&tsens0 11>; trips { cpu6_config: cpu6-config { temperature = <110000>; Loading @@ -746,7 +761,7 @@ polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&tsens0 4>; thermal-sensors = <&tsens0 12>; trips { cpu7_config: cpu7-config { temperature = <110000>; Loading Loading @@ -1076,7 +1091,7 @@ polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "low_limits_floor"; thermal-sensors = <&tsens0 5>; thermal-sensors = <&tsens0 4>; tracks-low; trips { video_trip: video-trip { Loading Loading @@ -1153,7 +1168,7 @@ polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "low_limits_floor"; thermal-sensors = <&tsens0 6>; thermal-sensors = <&tsens0 9>; tracks-low; trips { cpu4_lowf_trip: cpu4-lowf-trip { Loading Loading @@ -1226,11 +1241,11 @@ }; }; cpu-0-0-lowf { cpuss-2-lowf { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "low_limits_floor"; thermal-sensors = <&tsens0 9>; thermal-sensors = <&tsens0 8>; tracks-low; trips { cpu0_lowf_trip: cpu0-lowf-trip { Loading Loading @@ -1461,7 +1476,7 @@ polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "low_limits_floor"; thermal-sensors = <&tsens0 5>; thermal-sensors = <&tsens0 15>; tracks-low; trips { gpu_trip: gpu-trip { Loading
drivers/thermal/qcom/qti_virtual_sensor.c +6 −7 Original line number Diff line number Diff line /* * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -161,16 +161,15 @@ static const struct virtual_sensor_data qti_virtual_sensors[] = { .logic = VIRT_MAXIMUM, }, { .virt_zone_name = "octa-cpu-max-step", .num_sensors = 8, .virt_zone_name = "hepta-cpu-max-step", .num_sensors = 7, .sensor_names = {"cpu-1-0-usr", "cpu-1-1-usr", "cpu-1-2-usr", "cpu-1-3-usr", "cpu-0-0-usr", "cpu-0-1-usr", "cpu-0-2-usr", "cpu-0-3-usr"}, "cpuss-0-usr", "cpuss-1-usr", "cpuss-2-usr"}, .logic = VIRT_MAXIMUM, }, }; Loading