Added bcl-virt-monitor monitoring
Bug: 140191817
Test: Test with > 400 cycles battery under bcl-virt-extreme condition to
check if notification happens.
Test: pts-tradefed run singleCommand pts -m PtsThermalHalTestCases -a arm64-v8a -l verbose
Signed-off-by: George Lee <geolee@google.com>
Change-Id: Ia5bec08ab55808db1ed2b7267638857fde84ed77
diff --git a/init.hardware.rc b/init.hardware.rc
index 48b268c..fe90f0b 100644
--- a/init.hardware.rc
+++ b/init.hardware.rc
@@ -169,6 +169,8 @@
chown system system /sys/devices/virtual/thermal/tz-by-name/usbc-therm-monitor/trip_point_0_temp
chown system system /sys/devices/virtual/thermal/tz-by-name/usbc-therm-monitor/trip_point_0_hyst
chown system system /sys/devices/virtual/thermal/tz-by-name/soc/mode
+ chown system system /sys/devices/virtual/thermal/tz-by-name/bcl-virt-monitor/trip_point_0_temp
+ chown system system /sys/devices/virtual/thermal/tz-by-name/bcl-virt-monitor/trip_point_0_hyst
# Override thermal HAL config for JAWS board
on fs && property:ro.revision="DEV1.0"
diff --git a/thermal_info_config_coral.json b/thermal_info_config_coral.json
index afb51ea..a00e971 100644
--- a/thermal_info_config_coral.json
+++ b/thermal_info_config_coral.json
@@ -289,6 +289,22 @@
],
"VrThreshold":"NAN",
"Multiplier":0.001
+ },
+ {
+ "Name":"bcl-virt-monitor",
+ "Type":"UNKNOWN",
+ "HotThreshold":[
+ "NAN",
+ "NAN",
+ 3,
+ "NAN",
+ "NAN",
+ "NAN",
+ "NAN"
+ ],
+ "VrThreshold":"NAN",
+ "Multiplier":1,
+ "Monitor":true
}
],
"CoolingDevices":[
diff --git a/thermal_info_config_flame.json b/thermal_info_config_flame.json
index 5a2a3f7..d351916 100644
--- a/thermal_info_config_flame.json
+++ b/thermal_info_config_flame.json
@@ -289,6 +289,22 @@
],
"VrThreshold":"NAN",
"Multiplier":0.001
+ },
+ {
+ "Name":"bcl-virt-monitor",
+ "Type":"UNKNOWN",
+ "HotThreshold":[
+ "NAN",
+ "NAN",
+ 3,
+ "NAN",
+ "NAN",
+ "NAN",
+ "NAN"
+ ],
+ "VrThreshold":"NAN",
+ "Multiplier":1,
+ "Monitor":true
}
],
"CoolingDevices":[