From e8003f596144175b5b87740678a978bccea9b014 Mon Sep 17 00:00:00 2001 From: Sayanna Chandula Date: Tue, 21 Feb 2023 14:21:02 -0800 Subject: [PATCH] thermal: enable tpu and gxp thermal mitigations Add cooling devices to enable TPU and GXP throttling Bug: 270211512 Test: Build and boot on device. Check thermal throttling Change-Id: I1bd4086846a6417e9426f89872df69351928920e Signed-off-by: Sayanna Chandula --- thermal_info_config_husky.json | 13 +++++++++++++ thermal_info_config_shiba.json | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/thermal_info_config_husky.json b/thermal_info_config_husky.json index 6cf998c..ecb6d32 100644 --- a/thermal_info_config_husky.json +++ b/thermal_info_config_husky.json @@ -235,6 +235,14 @@ "PollingDelay":300000, "PassiveDelay":7000, "BindedCdevInfo": [ + { + "CdevRequest": "tpu_cooling", + "LimitInfo": [0, 2, 3, 4, 5, 5, 5] + }, + { + "CdevRequest": "gxp-cooling", + "LimitInfo": [0, 0, 0, 0, 0, 6, 6] + } ] }, { @@ -464,6 +472,11 @@ "Name":"usbc-port", "Type":"BATTERY" }, + { + "Name":"tpu_cooling", + "Type":"NPU", + "WritePath":"/dev/thermal/cdev-by-name/tpu_cooling/user_vote" + }, { "Name":"gxp-cooling", "Type":"NPU", diff --git a/thermal_info_config_shiba.json b/thermal_info_config_shiba.json index 2c8b5d9..e0122cd 100644 --- a/thermal_info_config_shiba.json +++ b/thermal_info_config_shiba.json @@ -225,6 +225,14 @@ "PollingDelay":300000, "PassiveDelay":7000, "BindedCdevInfo": [ + { + "CdevRequest": "tpu_cooling", + "LimitInfo": [0, 2, 3, 4, 5, 5, 5] + }, + { + "CdevRequest": "gxp-cooling", + "LimitInfo": [0, 0, 0, 0, 0, 6, 6] + } ] }, { @@ -454,6 +462,11 @@ "Name":"usbc-port", "Type":"BATTERY" }, + { + "Name":"tpu_cooling", + "Type":"NPU", + "WritePath":"/dev/thermal/cdev-by-name/tpu_cooling/user_vote" + }, { "Name":"gxp-cooling", "Type":"NPU",