bcl: Initialize bcl configurations
Bug: 238142795 Change-Id: Id3de17257653b568faf3d6dd74e322edf7cd4602 Signed-off-by: Redick Lin <redicklin@google.com>
This commit is contained in:
parent
71f65889d9
commit
e35a7cc8d3
1 changed files with 327 additions and 0 deletions
|
@ -151,6 +151,322 @@
|
||||||
"Name":"ISP",
|
"Name":"ISP",
|
||||||
"Type":"NPU",
|
"Type":"NPU",
|
||||||
"Multiplier":0.001
|
"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":[
|
"CoolingDevices":[
|
||||||
|
@ -171,6 +487,17 @@
|
||||||
"Type":"CPU",
|
"Type":"CPU",
|
||||||
"WritePath":"/dev/thermal/cdev-by-name/thermal-cpufreq-2/user_vote",
|
"WritePath":"/dev/thermal/cdev-by-name/thermal-cpufreq-2/user_vote",
|
||||||
"State2Power":["1450", "1400", "1350", "1300", "1250", "1200", "1150", "1100", "1050", "1000", "950", "900", "850", "800", "750"]
|
"State2Power":["1450", "1400", "1350", "1300", "1250", "1200", "1150", "1100", "1050", "1000", "950", "900", "850", "800", "750"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"thermal-gpufreq-0",
|
||||||
|
"Type":"GPU",
|
||||||
|
"WritePath":"/dev/thermal/cdev-by-name/thermal-gpufreq-0/user_vote",
|
||||||
|
"State2Power":[4371, 3543, 3085, 2293, 1927, 1707, 1394, 1171, 967, 768, 592, 433]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"tpu_cooling",
|
||||||
|
"Type":"NPU",
|
||||||
|
"WritePath":"/dev/thermal/cdev-by-name/tpu_cooling/user_vote"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue