From 1a4b4c8b9753bfaf0d5e906100c18cf2712c734e Mon Sep 17 00:00:00 2001 From: Redick Lin Date: Fri, 24 Jun 2022 17:36:06 +0800 Subject: [PATCH] bcl: Initialize bcl config Bug: 237361298 Change-Id: I64945f1aa94ea88dee4bcb04b9564c50001c2c41 Signed-off-by: Redick Lin --- thermal_info_config_felix.json | 316 +++++++++++++++++++++++++++++++++ 1 file changed, 316 insertions(+) diff --git a/thermal_info_config_felix.json b/thermal_info_config_felix.json index 6d842b6..9161a07 100644 --- a/thermal_info_config_felix.json +++ b/thermal_info_config_felix.json @@ -86,6 +86,322 @@ "Type":"NPU", "HotThreshold":["NAN", "NAN", "NAN", "NAN", "NAN", "NAN", 115.0], "Multiplier":0.001 + }, + { + "Name":"battery_cycle", + "Type":"BCL_VOLTAGE", + "Multiplier":1, + "Monitor":false + }, + { + "Name":"critical-battery-cell", + "Type":"BCL_VOLTAGE", + "VirtualSensor":true, + "Formula":"COUNT_THRESHOLD", + "TriggerSensor": "vdroop1", + "Combination":["battery", "battery_cycle", "vdroop1"], + "Coefficient":[-10000, 400, 1000], + "HotThreshold":["NAN", "NAN", "NAN", "NAN", "NAN", 3.00, "NAN"], + "Multiplier":1, + "Monitor":true + }, + { + "Name":"FLASH_LED_REDUCE", + "Type":"UNKNOWN", + "VirtualSensor":true, + "Formula":"COUNT_THRESHOLD", + "TriggerSensor": "vdroop1", + "Combination":["battery", "battery_cycle", "vdroop1"], + "Coefficient":[-10000, 400, 1000], + "HotThreshold":["NAN", "NAN", "NAN", "NAN", 3.00, "NAN", "NAN"], + "Multiplier":1, + "Monitor":true, + "SendPowerHint":true + }, + { + "Name":"soc", + "Type":"BCL_PERCENTAGE", + "HotThreshold":["NAN", "NAN", 80, "NAN", "NAN", "NAN", "NAN"], + "Multiplier":1 + }, + { + "Name":"BCL_TPU_LOW_TEMP", + "Type":"BCL_CURRENT", + "VirtualSensor":true, + "Formula":"WEIGHTED_AVG", + "TriggerSensor": "ocp_tpu", + "Combination":["ocp_tpu", "battery"], + "Coefficient":[1, -10], + "HotThreshold":["NAN", "NAN", "NAN", "NAN", 13000, "NAN", "NAN"], + "Multiplier":1, + "Monitor":true, + "BindedCdevInfo": [ + { + "CdevRequest": "tpu_cooling", + "LimitInfo": [0, 0, 0, 0, 7, 7, 7] + } + ] + }, + { + "Name":"BCL_GPU_LOW_TEMP", + "Type":"BCL_CURRENT", + "VirtualSensor":true, + "Formula":"WEIGHTED_AVG", + "TriggerSensor": "ocp_gpu", + "Combination":["ocp_gpu", "battery"], + "Coefficient":[1, -10], + "HotThreshold":["NAN", "NAN", "NAN", "NAN", 13000, "NAN", "NAN"], + "Multiplier":1, + "Monitor":true, + "BindedCdevInfo": [ + { + "CdevRequest": "thermal-gpufreq-0", + "LimitInfo": [0, 0, 0, 0, 9, 9, 9] + } + ] + }, + { + "Name":"BCL_BATOILO_GPU_LOW_TEMP", + "Type":"BCL_CURRENT", + "VirtualSensor":true, + "Formula":"COUNT_THRESHOLD", + "TriggerSensor": "batoilo", + "Combination":["batoilo", "ocp_gpu", "battery"], + "Coefficient":[5000, 12000, -1000 ], + "HotThreshold":["NAN", "NAN", "NAN", "NAN", 3.0, "NAN", "NAN"], + "Multiplier":1, + "Monitor":true, + "BindedCdevInfo": [ + { + "CdevRequest": "thermal-gpufreq-0", + "LimitInfo": [0, 0, 0, 0, 9, 9, 9] + } + ] + }, + { + "Name":"BCL_BATOILO_TPU_LOW_TEMP", + "Type":"BCL_CURRENT", + "VirtualSensor":true, + "Formula":"COUNT_THRESHOLD", + "TriggerSensor": "batoilo", + "Combination":["batoilo", "ocp_tpu", "battery"], + "Coefficient":[5000, 12000, -1000], + "HotThreshold":["NAN", "NAN", "NAN", "NAN", 3.0, "NAN", "NAN"], + "Multiplier":1, + "Monitor":true, + "BindedCdevInfo": [ + { + "CdevRequest": "tpu_cooling", + "LimitInfo": [0, 0, 0, 0, 7, 7, 7] + } + ] + }, + { + "Name":"BCL_BATOILO_GPU", + "Type":"BCL_CURRENT", + "VirtualSensor":true, + "Formula":"COUNT_THRESHOLD", + "TriggerSensor": "batoilo", + "Combination":["batoilo", "ocp_gpu"], + "Coefficient":[5000, 12000], + "HotThreshold":["NAN", "NAN", "NAN", "NAN", 2.0, "NAN", "NAN"], + "Multiplier":1, + "Monitor":true, + "BindedCdevInfo": [ + { + "CdevRequest": "thermal-gpufreq-0", + "LimitInfo": [0, 0, 0, 0, 4, 4, 4] + } + ] + }, + { + "Name":"BCL_BATOILO_TPU", + "Type":"BCL_CURRENT", + "VirtualSensor":true, + "Formula":"COUNT_THRESHOLD", + "TriggerSensor": "batoilo", + "Combination":[ + "batoilo", + "ocp_tpu" + ], + "Coefficient":[5000, 12000], + "HotThreshold":["NAN", "NAN", "NAN", "NAN", 2.0, "NAN", "NAN"], + "Multiplier":1, + "Monitor":true, + "BindedCdevInfo": [ + { + "CdevRequest": "tpu_cooling", + "LimitInfo": [0, 0, 0, 0, 6, 6, 6] + } + ] + }, + { + "Name":"batoilo", + "Type":"BCL_CURRENT", + "HotThreshold":["NAN", "NAN", "NAN", "NAN", 5000, "NAN", "NAN"], + "HotHysteresis":[0.0, 0.0, 0.0, 0.0, 100, 0.0, 0.0], + "Multiplier":1, + "Monitor":true, + "PollingDelay":0, + "PassiveDelay":60000, + "BindedCdevInfo": [ + { + "CdevRequest": "thermal-cpufreq-2", + "LimitInfo": [0, 0, 0, 0, 7, 7, 7] + }, + { + "CdevRequest": "thermal-gpufreq-0", + "LimitInfo": [0, 0, 0, 0, 3, 3, 3] + }, + { + "CdevRequest": "tpu_cooling", + "LimitInfo": [0, 0, 0, 0, 5, 5, 5] + } + ] + }, + { + "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"], + "Multiplier":1, + "Monitor":true + }, + { + "Name":"vdroop1", + "Type":"BCL_VOLTAGE", + "HotThreshold":["NAN", "NAN", "NAN", "NAN", 1000, "NAN", "NAN"], + "HotHysteresis":[0.0, 0.0, 0.0, 0.0, 100, 0.0, 0.0], + "Multiplier":1, + "Monitor":true, + "PollingDelay":0, + "PassiveDelay":60000, + "BindedCdevInfo": [ + { + "CdevRequest": "thermal-cpufreq-2", + "LimitInfo": [0, 0, 0, 0, 7, 7, 7] + }, + { + "CdevRequest": "thermal-gpufreq-0", + "LimitInfo": [0, 0, 0, 0, 2, 2, 2] + }, + { + "CdevRequest": "tpu_cooling", + "LimitInfo": [0, 0, 0, 0, 3, 3, 3] + } + ] + }, + { + "Name":"vdroop2", + "Type":"BCL_VOLTAGE", + "HotThreshold":["NAN", "NAN", "NAN", "NAN", 1200, "NAN", "NAN"], + "HotHysteresis":[0.0, 0.0, 0.0, 0.0, 100, 0.0, 0.0], + "Multiplier":1, + "Monitor":true, + "PollingDelay":0, + "PassiveDelay":60000, + "BindedCdevInfo": [ + { + "CdevRequest": "thermal-cpufreq-2", + "LimitInfo": [0, 0, 0, 0, 7, 7, 7] + }, + { + "CdevRequest": "thermal-gpufreq-0", + "LimitInfo": [0, 0, 0, 0, 4, 4, 4] + }, + { + "CdevRequest": "tpu_cooling", + "LimitInfo": [0, 0, 0, 0, 3, 3, 3] + } + ] + }, + { + "Name":"smpl_gm", + "Type":"BCL_VOLTAGE", + "HotThreshold":["NAN", "NAN", "NAN", "NAN", 1100, "NAN", "NAN"], + "HotHysteresis":[0.0, 0.0, 0.0, 0.0, 100, 0.0, 0.0], + "Multiplier":1, + "Monitor":true, + "PollingDelay":0, + "PassiveDelay":60000, + "BindedCdevInfo": [ + { + "CdevRequest": "thermal-cpufreq-2", + "LimitInfo": [0, 0, 0, 0, 7, 7, 7] + }, + { + "CdevRequest": "thermal-gpufreq-0", + "LimitInfo": [0, 0, 0, 0, 3, 3, 3] + }, + { + "CdevRequest": "tpu_cooling", + "LimitInfo": [0, 0, 0, 0, 3, 3, 3] + } + ] + }, + { + "Name":"ocp_cpu1", + "Type":"BCL_CURRENT", + "HotThreshold":["NAN", "NAN", "NAN", "NAN", 8000, "NAN", "NAN"], + "HotHysteresis":[0.0, 0.0, 0.0, 0.0, 100, 0.0, 0.0], + "Multiplier":1, + "Hidden":true + }, + { + "Name":"ocp_cpu2", + "Type":"BCL_CURRENT", + "HotThreshold":["NAN", "NAN", "NAN", "NAN", 12000, "NAN", "NAN"], + "HotHysteresis":[0.0, 0.0, 0.0, 0.0, 100, 0.0, 0.0], + "Multiplier":1, + "Hidden":true + }, + { + "Name":"ocp_tpu", + "Type":"BCL_CURRENT", + "HotThreshold":["NAN", "NAN", "NAN", "NAN", 12000, "NAN", "NAN"], + "HotHysteresis":[0.0, 0.0, 0.0, 0.0, 100, 0.0, 0.0], + "Multiplier":1 + }, + { + "Name":"ocp_gpu", + "Type":"BCL_CURRENT", + "HotThreshold":["NAN", "NAN", "NAN", "NAN", 12000, "NAN", "NAN"], + "HotHysteresis":[0.0, 0.0, 0.0, 0.0, 100, 0.0, 0.0], + "Multiplier":1 + }, + { + "Name":"soft_ocp_cpu2", + "Type":"BCL_CURRENT", + "HotThreshold":["NAN", "NAN", "NAN", "NAN", 12000, "NAN", "NAN"], + "HotHysteresis":[0.0, 0.0, 0.0, 0.0, 100, 0.0, 0.0], + "Multiplier":1 + }, + { + "Name":"soft_ocp_cpu1", + "Type":"BCL_CURRENT", + "HotThreshold":["NAN", "NAN", "NAN", "NAN", 8000, "NAN", "NAN"], + "HotHysteresis":[0.0, 0.0, 0.0, 0.0, 100, 0.0, 0.0], + "Multiplier":1 + }, + { + "Name":"soft_ocp_tpu", + "Type":"BCL_CURRENT", + "HotThreshold":["NAN", "NAN", "NAN", "NAN", 8500, "NAN", "NAN"], + "HotHysteresis":[0.0, 0.0, 0.0, 0.0, 100, 0.0, 0.0], + "Multiplier":1, + "Hidden":true + }, + { + "Name":"soft_ocp_gpu", + "Type":"BCL_CURRENT", + "HotThreshold":["NAN", "NAN", "NAN", "NAN", 9000, "NAN", "NAN"], + "HotHysteresis":[0.0, 0.0, 0.0, 0.0, 100, 0.0, 0.0], + "Multiplier":1, + "Hidden":true } ], "CoolingDevices":[