From b60df13d49152294e23cc0b36bc3c3c5d386d0f8 Mon Sep 17 00:00:00 2001 From: George Lee Date: Tue, 18 Jan 2022 10:32:30 -0800 Subject: [PATCH] thermal: update BCL policy changes for BAACL Bug: 204271308 Test: Boot and confirm temperature reading Signed-off-by: George Lee Change-Id: I10b15a4863dbbc11b9d2149b3fda73f860717a3f --- thermal_info_config_cheetah.json | 37 ++++++++++++++++++++++++---- thermal_info_config_cloudripper.json | 37 ++++++++++++++++++++++++---- thermal_info_config_panther.json | 37 ++++++++++++++++++++++++---- 3 files changed, 96 insertions(+), 15 deletions(-) diff --git a/thermal_info_config_cheetah.json b/thermal_info_config_cheetah.json index 20e3f88..cd4169b 100644 --- a/thermal_info_config_cheetah.json +++ b/thermal_info_config_cheetah.json @@ -498,7 +498,7 @@ "Type":"BCL_PERCENTAGE", "HotThreshold":[ "NAN", - "NAN", + 80, "NAN", 90, 93, @@ -546,7 +546,34 @@ "CdevRequest": "thermal-cpufreq-2", "LimitInfo": [0, 0, 0, 0, 7, 10, 10] } - ] + ] + }, + { + "Name":"BCL_AUDIO_BAACL", + "Type":"BCL_VOLTAGE", + "VirtualSensor":true, + "Formula":"COUNT_THRESHOLD", + "TriggerSensor": "soc", + "Combination":[ + "battery", + "soc" + ], + "Coefficient":[ + "-25000", + "80" + ], + "HotThreshold":[ + "NAN", + "NAN", + "NAN", + "NAN", + 2.0, + "NAN", + "NAN" + ], + "VrThreshold":"NAN", + "Multiplier":1, + "Monitor":true }, { "Name":"vdroop1", @@ -577,7 +604,7 @@ "CdevRequest": "thermal-cpufreq-2", "LimitInfo": [0, 0, 0, 0, 7, 10, 10] } - ] + ] }, { "Name":"vdroop2", @@ -608,7 +635,7 @@ "CdevRequest": "thermal-cpufreq-2", "LimitInfo": [0, 0, 0, 0, 7, 10, 10] } - ] + ] }, { "Name":"smpl_gm", @@ -639,7 +666,7 @@ "CdevRequest": "thermal-cpufreq-2", "LimitInfo": [0, 0, 0, 0, 7, 10, 10] } - ] + ] }, { "Name":"ocp_cpu1", diff --git a/thermal_info_config_cloudripper.json b/thermal_info_config_cloudripper.json index 207916c..f2c0507 100644 --- a/thermal_info_config_cloudripper.json +++ b/thermal_info_config_cloudripper.json @@ -140,7 +140,7 @@ "Type":"BCL_PERCENTAGE", "HotThreshold":[ "NAN", - "NAN", + 80, "NAN", 90, 93, @@ -188,7 +188,34 @@ "CdevRequest": "thermal-cpufreq-2", "LimitInfo": [0, 0, 0, 0, 7, 10, 10] } - ] + ] + }, + { + "Name":"BCL_AUDIO_BAACL", + "Type":"BCL_VOLTAGE", + "VirtualSensor":true, + "Formula":"COUNT_THRESHOLD", + "TriggerSensor": "soc", + "Combination":[ + "battery", + "soc" + ], + "Coefficient":[ + "-25000", + "80" + ], + "HotThreshold":[ + "NAN", + "NAN", + "NAN", + "NAN", + 2.0, + "NAN", + "NAN" + ], + "VrThreshold":"NAN", + "Multiplier":1, + "Monitor":true }, { "Name":"vdroop1", @@ -219,7 +246,7 @@ "CdevRequest": "thermal-cpufreq-2", "LimitInfo": [0, 0, 0, 0, 7, 10, 10] } - ] + ] }, { "Name":"vdroop2", @@ -250,7 +277,7 @@ "CdevRequest": "thermal-cpufreq-2", "LimitInfo": [0, 0, 0, 0, 7, 10, 10] } - ] + ] }, { "Name":"smpl_gm", @@ -281,7 +308,7 @@ "CdevRequest": "thermal-cpufreq-2", "LimitInfo": [0, 0, 0, 0, 7, 10, 10] } - ] + ] }, { "Name":"ocp_cpu1", diff --git a/thermal_info_config_panther.json b/thermal_info_config_panther.json index a9d6b4a..c7ae56f 100644 --- a/thermal_info_config_panther.json +++ b/thermal_info_config_panther.json @@ -526,7 +526,7 @@ "Type":"BCL_PERCENTAGE", "HotThreshold":[ "NAN", - "NAN", + 80, "NAN", 90, 93, @@ -574,7 +574,34 @@ "CdevRequest": "thermal-cpufreq-2", "LimitInfo": [0, 0, 0, 0, 7, 10, 10] } - ] + ] + }, + { + "Name":"BCL_AUDIO_BAACL", + "Type":"BCL_VOLTAGE", + "VirtualSensor":true, + "Formula":"COUNT_THRESHOLD", + "TriggerSensor": "soc", + "Combination":[ + "battery", + "soc" + ], + "Coefficient":[ + "-25000", + "80" + ], + "HotThreshold":[ + "NAN", + "NAN", + "NAN", + "NAN", + 2.0, + "NAN", + "NAN" + ], + "VrThreshold":"NAN", + "Multiplier":1, + "Monitor":true }, { "Name":"vdroop1", @@ -605,7 +632,7 @@ "CdevRequest": "thermal-cpufreq-2", "LimitInfo": [0, 0, 0, 0, 7, 10, 10] } - ] + ] }, { "Name":"vdroop2", @@ -636,7 +663,7 @@ "CdevRequest": "thermal-cpufreq-2", "LimitInfo": [0, 0, 0, 0, 7, 10, 10] } - ] + ] }, { "Name":"smpl_gm", @@ -667,7 +694,7 @@ "CdevRequest": "thermal-cpufreq-2", "LimitInfo": [0, 0, 0, 0, 7, 10, 10] } - ] + ] }, { "Name":"ocp_cpu1",