diff options
author | Priyansh Jain <quic_priyjain@quicinc.com> | 2022-07-20 15:51:13 +0530 |
---|---|---|
committer | Jake Weinstein <jake@aospa.co> | 2023-03-09 01:07:13 +0900 |
commit | 011d4bb77cbdcbf158d75c3ab88e6d0942959fed (patch) | |
tree | 6e34dd10b2388d515bb639413594807ac90ec21c /thermalConfig.cpp | |
parent | df1f5d7143594e92411c1808a5cd23bb0c4f0427 (diff) |
thermal-hal: add support for severity in HAL config for throttling threshold
Add support to selectively configure thermal HAL severity for
throttling threshold for any HAL config.
Signed-off-by: Priyansh Jain <quic_priyjain@quicinc.com>
Diffstat (limited to 'thermalConfig.cpp')
-rw-r--r-- | thermalConfig.cpp | 70 |
1 files changed, 67 insertions, 3 deletions
diff --git a/thermalConfig.cpp b/thermalConfig.cpp index 395100c..9ba3802 100644 --- a/thermalConfig.cpp +++ b/thermalConfig.cpp @@ -1052,6 +1052,69 @@ namespace implementation { }, }; + std::vector<struct target_therm_cfg> diwali_common = { + { + TemperatureType::CPU, + cpu_sensors_waipio, + "", + 95000, + 115000, + 95000, + true, + ThrottlingSeverity::LIGHT, + }, + { + TemperatureType::GPU, + { "gpuss-0" }, + "GPU0", + 95000, + 115000, + 95000, + true, + ThrottlingSeverity::LIGHT, + }, + { + TemperatureType::GPU, + { "gpuss-1" }, + "GPU1", + 95000, + 115000, + 95000, + true, + ThrottlingSeverity::LIGHT, + }, + { + TemperatureType::NPU, + { "nspss-0" }, + "nsp0", + 95000, + 115000, + 95000, + true, + ThrottlingSeverity::LIGHT, + }, + { + TemperatureType::NPU, + { "nspss-1" }, + "nsp1", + 95000, + 115000, + 95000, + true, + ThrottlingSeverity::LIGHT, + }, + { + TemperatureType::NPU, + { "nspss-2" }, + "nsp2", + 95000, + 115000, + 95000, + true, + ThrottlingSeverity::LIGHT, + }, + }; + std::vector<struct target_therm_cfg> waipio_specific = { { TemperatureType::BCL_CURRENT, @@ -1244,6 +1307,7 @@ namespace implementation { 95000, 40000, true, + ThrottlingSeverity::LIGHT, }, }; @@ -1481,9 +1545,9 @@ namespace implementation { {457, waipio_common}, //Waipio {482, waipio_common}, //Waipio {552, waipio_common}, //Waipio-LTE - {506, waipio_common}, //diwali - {547, waipio_common}, //diwali - {564, waipio_common}, //diwali-LTE + {506, diwali_common}, //diwali + {547, diwali_common}, //diwali + {564, diwali_common}, //diwali-LTE {530, waipio_common}, // cape {531, waipio_common}, // cape {540, waipio_common}, // cape |