From 12d950f1d1dc4b590b6ff6f2793e2d25b4225f10 Mon Sep 17 00:00:00 2001 From: TeYuan Wang Date: Wed, 16 Feb 2022 11:54:02 +0800 Subject: [PATCH] thermal: bringup basic thermal throttling for dogfood Bug: 219869479 Test: verified by emul_temp Change-Id: Ifc2123bd78c62126a25b5d3e4d9413a4dc97bcd6 --- thermal_info_config_cheetah.json | 19 ++++++++++++++----- thermal_info_config_panther.json | 19 ++++++++++++++----- 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/thermal_info_config_cheetah.json b/thermal_info_config_cheetah.json index 7281a6c..a88aa37 100644 --- a/thermal_info_config_cheetah.json +++ b/thermal_info_config_cheetah.json @@ -296,23 +296,27 @@ "BindedCdevInfo": [ { "CdevRequest": "thermal-cpufreq-0", - "LimitInfo": [0, 0, 0, 0, 0, 0, 0] + "LimitInfo": [0, 0, 0, 7, 8, 10, 10] }, { "CdevRequest": "thermal-cpufreq-1", - "LimitInfo": [0, 0, 0, 0, 0, 0, 0] + "LimitInfo": [0, 0, 0, 10, 12, 14, 14] }, { "CdevRequest": "thermal-cpufreq-2", - "LimitInfo": [0, 0, 0, 0, 0, 0, 0] + "LimitInfo": [0, 0, 0, 15, 15, 17, 17] }, { "CdevRequest": "thermal-gpufreq-0", - "LimitInfo": [0, 0, 0, 0, 0, 0, 0] + "LimitInfo": [0, 0, 0, 9, 10, 11, 11] }, { "CdevRequest": "tpu_cooling", - "LimitInfo": [0, 0, 0, 0, 0, 0, 0] + "LimitInfo": [0, 2, 3, 4, 5, 5, 5] + }, + { + "CdevRequest": "gxp-cooling", + "LimitInfo": [0, 0, 0, 0, 0, 9, 9] } ] }, @@ -1020,6 +1024,11 @@ "Name":"tpu_cooling", "Type":"NPU", "WritePath":"/dev/thermal/cdev-by-name/tpu_cooling/user_vote" + }, + { + "Name":"gxp-cooling", + "Type":"NPU", + "WritePath":"/dev/thermal/cdev-by-name/gxp-cooling/user_vote" } ], "PowerRails":[ diff --git a/thermal_info_config_panther.json b/thermal_info_config_panther.json index d500b15..ef853f2 100644 --- a/thermal_info_config_panther.json +++ b/thermal_info_config_panther.json @@ -322,23 +322,27 @@ "BindedCdevInfo": [ { "CdevRequest": "thermal-cpufreq-0", - "LimitInfo": [0, 0, 0, 0, 0, 0, 0] + "LimitInfo": [0, 0, 0, 7, 8, 10, 10] }, { "CdevRequest": "thermal-cpufreq-1", - "LimitInfo": [0, 0, 0, 0, 0, 0, 0] + "LimitInfo": [0, 0, 0, 10, 12, 14, 14] }, { "CdevRequest": "thermal-cpufreq-2", - "LimitInfo": [0, 0, 0, 0, 0, 0, 0] + "LimitInfo": [0, 0, 0, 15, 15, 17, 17] }, { "CdevRequest": "thermal-gpufreq-0", - "LimitInfo": [0, 0, 0, 0, 0, 0, 0] + "LimitInfo": [0, 0, 0, 9, 10, 11, 11] }, { "CdevRequest": "tpu_cooling", - "LimitInfo": [0, 0, 0, 0, 0, 0, 0] + "LimitInfo": [0, 2, 3, 4, 5, 5, 5] + }, + { + "CdevRequest": "gxp-cooling", + "LimitInfo": [0, 0, 0, 0, 0, 9, 9] } ] }, @@ -1048,6 +1052,11 @@ "Name":"tpu_cooling", "Type":"NPU", "WritePath":"/dev/thermal/cdev-by-name/tpu_cooling/user_vote" + }, + { + "Name":"gxp-cooling", + "Type":"NPU", + "WritePath":"/dev/thermal/cdev-by-name/gxp-cooling/user_vote" } ], "PowerRails":[