From 3f4c1166f6d262b1d28017a6f64a9f7e5d3984fb Mon Sep 17 00:00:00 2001 From: TeYuan Wang Date: Fri, 6 Aug 2021 16:11:16 +0800 Subject: [PATCH] thermal: add TPU throttling for SKIN thermal optimization Bug: 188701596 Test: Verified by emul temp Change-Id: I37300afd1aa9678b22e7108c918b515f83347f37 --- thermal_info_config_oriole.json | 9 +++++++++ thermal_info_config_raven.json | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/thermal_info_config_oriole.json b/thermal_info_config_oriole.json index 4f4e670..68b8792 100644 --- a/thermal_info_config_oriole.json +++ b/thermal_info_config_oriole.json @@ -399,6 +399,10 @@ "CdevFloorWithPowerLink": [0, 1, 1, 2, 5, 5, 5], "ReleaseLogic": "RELEASE_TO_FLOOR", "ThrottlingWithPowerLink":true + }, + { + "CdevRequest": "tpu_cooling", + "LimitInfo": [0, 1, 2, 3, 4, 4, 4] } ] }, @@ -1076,6 +1080,11 @@ { "Name":"usbc-port", "Type":"BATTERY" + }, + { + "Name":"tpu_cooling", + "Type":"NPU", + "WritePath":"/dev/thermal/cdev-by-name/tpu_cooling/user_vote" } ], "PowerRails":[ diff --git a/thermal_info_config_raven.json b/thermal_info_config_raven.json index d5d2b00..786cd56 100644 --- a/thermal_info_config_raven.json +++ b/thermal_info_config_raven.json @@ -399,6 +399,10 @@ "CdevFloorWithPowerLink": [0, 1, 1, 2, 3, 4, 4], "ReleaseLogic": "RELEASE_TO_FLOOR", "ThrottlingWithPowerLink":true + }, + { + "CdevRequest": "tpu_cooling", + "LimitInfo": [0, 1, 2, 3, 4, 4, 4] } ] }, @@ -1080,6 +1084,11 @@ { "Name":"usbc-port", "Type":"BATTERY" + }, + { + "Name":"tpu_cooling", + "Type":"NPU", + "WritePath":"/dev/thermal/cdev-by-name/tpu_cooling/user_vote" } ], "PowerRails":[