From 4e1edbd52d192cd44562473c78e1ad7776453acb Mon Sep 17 00:00:00 2001 From: Sayanna Chandula Date: Thu, 25 Jan 2024 13:20:47 -0800 Subject: [PATCH] thermal: add 500mC offset for km4 vt prediction - Add 500mC offset to address underprediction - Fix issue with VIRTUAL-SKIN-LEGACY-SHUTDOWN thresholds Bug: 321108353 Test: Build and boot on device Change-Id: I778e4949308af484ec8ca7a9dfaf27d13c429209 Signed-off-by: Sayanna Chandula --- thermal/thermal_info_config_caiman.json | 2 +- thermal/thermal_info_config_caiman_proto.json | 2 +- thermal/thermal_info_config_komodo.json | 5 +++-- thermal/thermal_info_config_komodo_proto.json | 5 +++-- thermal/thermal_info_config_tokay.json | 2 +- thermal/thermal_info_config_tokay_proto.json | 2 +- 6 files changed, 10 insertions(+), 8 deletions(-) diff --git a/thermal/thermal_info_config_caiman.json b/thermal/thermal_info_config_caiman.json index 18f481da..8e0ec843 100644 --- a/thermal/thermal_info_config_caiman.json +++ b/thermal/thermal_info_config_caiman.json @@ -191,7 +191,7 @@ "VirtualSensor": true, "Formula": "COUNT_THRESHOLD", "Combination": ["VIRTUAL-SKIN-LEGACY"], - "Coefficient": [55.0], + "Coefficient": [55000.0], "Multiplier": 1.0 }, { diff --git a/thermal/thermal_info_config_caiman_proto.json b/thermal/thermal_info_config_caiman_proto.json index 8d3f52f3..1a29829b 100644 --- a/thermal/thermal_info_config_caiman_proto.json +++ b/thermal/thermal_info_config_caiman_proto.json @@ -179,7 +179,7 @@ "VirtualSensor": true, "Formula": "COUNT_THRESHOLD", "Combination": ["VIRTUAL-SKIN-LEGACY"], - "Coefficient": [55.0], + "Coefficient": [55000.0], "Multiplier": 1.0 }, { diff --git a/thermal/thermal_info_config_komodo.json b/thermal/thermal_info_config_komodo.json index e91b23ee..a8ae0d80 100644 --- a/thermal/thermal_info_config_komodo.json +++ b/thermal/thermal_info_config_komodo.json @@ -180,7 +180,7 @@ "VirtualSensor": true, "Formula": "COUNT_THRESHOLD", "Combination": ["VIRTUAL-SKIN-LEGACY"], - "Coefficient": [55.0], + "Coefficient": [55000.0], "Multiplier": 1.0 }, { @@ -192,7 +192,8 @@ "Combination": ["VSYS_PWR_CAMERA", "VSYS_PWR_DISPLAY", "VSYS_PWR_MMWAVE", "VSYS_PWR_MODEM", "VSYS_PWR_RFFE", "VSYS_PWR_WLAN_BT", "battery", "btmspkr_therm", "charging_therm", "disp_therm", "north_therm", "quiet_therm", "rfpa_therm", "soc_therm", "usb_pwr_therm"], "CombinationType":["ODPM", "ODPM", "ODPM", "ODPM", "ODPM", "ODPM", "SENSOR", "SENSOR", "SENSOR", "SENSOR", "SENSOR", "SENSOR", "SENSOR", "SENSOR", "SENSOR"], "Coefficient": [1.0], - "Multiplier": 0.001 + "Multiplier": 0.001, + "Offset": 500 }, { "Name": "VIRTUAL-SKIN-MODEL-LEGACY-DIFF", diff --git a/thermal/thermal_info_config_komodo_proto.json b/thermal/thermal_info_config_komodo_proto.json index 3b65c8ba..b68a2ff4 100644 --- a/thermal/thermal_info_config_komodo_proto.json +++ b/thermal/thermal_info_config_komodo_proto.json @@ -212,7 +212,7 @@ "VirtualSensor": true, "Formula": "COUNT_THRESHOLD", "Combination": ["VIRTUAL-SKIN-LEGACY"], - "Coefficient": [55.0], + "Coefficient": [55000.0], "Multiplier": 1.0 }, { @@ -224,7 +224,8 @@ "Combination": ["VSYS_PWR_CAMERA", "VSYS_PWR_DISPLAY", "VSYS_PWR_MMWAVE", "VSYS_PWR_MODEM", "VSYS_PWR_RFFE", "VSYS_PWR_WLAN_BT", "battery", "btmspkr_therm", "charging_therm", "disp_therm", "north_therm", "quiet_therm", "rfpa_therm", "soc_therm", "usb_pwr_therm"], "CombinationType":["ODPM", "ODPM", "ODPM", "ODPM", "ODPM", "ODPM", "SENSOR", "SENSOR", "SENSOR", "SENSOR", "SENSOR", "SENSOR", "SENSOR", "SENSOR", "SENSOR"], "Coefficient": [1.0], - "Multiplier": 0.001 + "Multiplier": 0.001, + "Offset": 500 }, { "Name": "VIRTUAL-SKIN-MODEL-LEGACY-DIFF", diff --git a/thermal/thermal_info_config_tokay.json b/thermal/thermal_info_config_tokay.json index fb2552e1..bce8c545 100644 --- a/thermal/thermal_info_config_tokay.json +++ b/thermal/thermal_info_config_tokay.json @@ -170,7 +170,7 @@ "VirtualSensor": true, "Formula": "COUNT_THRESHOLD", "Combination": ["VIRTUAL-SKIN-LEGACY"], - "Coefficient": [55.0], + "Coefficient": [55000.0], "Multiplier": 1.0 }, { diff --git a/thermal/thermal_info_config_tokay_proto.json b/thermal/thermal_info_config_tokay_proto.json index d1252a65..a1d87fda 100644 --- a/thermal/thermal_info_config_tokay_proto.json +++ b/thermal/thermal_info_config_tokay_proto.json @@ -158,7 +158,7 @@ "VirtualSensor": true, "Formula": "COUNT_THRESHOLD", "Combination": ["VIRTUAL-SKIN-LEGACY"], - "Coefficient": [55.0], + "Coefficient": [55000.0], "Multiplier": 1.0 }, {