thermal: add usb port throttling policy am: a0671ebaa6 am: 9bb0490c2f

Original change: https://googleplex-android-review.googlesource.com/c/device/google/shusky/+/21571010

Change-Id: I81209bb7d9b8e5a0d44118f799c3d4ed9e50d2ba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
TeYuan Wang 2023-03-20 04:26:57 +00:00 committed by Automerger Merge Worker
commit 1f1d67d18f
2 changed files with 106 additions and 0 deletions

View file

@ -494,6 +494,54 @@
"PollingDelay":300000,
"PassiveDelay":7000
},
{
"Name":"USB-MINUS-NEUTRAL",
"Type":"UNKNOWN",
"VirtualSensor":true,
"Formula":"WEIGHTED_AVG",
"Combination":["usb_pwr_therm", "neutral_therm"],
"Coefficient":[1.0, -1.0],
"Multiplier":0.001
},
{
"Name":"USB-MINUS-QUIET",
"Type":"UNKNOWN",
"VirtualSensor":true,
"Formula":"WEIGHTED_AVG",
"Combination":["usb_pwr_therm", "quiet_therm"],
"Coefficient":[1.0, -1.0],
"Multiplier":0.001
},
{
"Name":"USB_QUIET_RFFE",
"Type":"UNKNOWN",
"VirtualSensor":true,
"Formula":"WEIGHTED_AVG",
"Combination":["USB-MINUS-QUIET", "VSYS_PWR_RFFE"],
"CombinationType":["SENSOR", "ODPM"],
"Coefficient":[1, -6],
"Offset":-4000,
"Multiplier":0.001
},
{
"Name":"VIRTUAL-USB-THROTTLING",
"Type":"USB_PORT",
"VirtualSensor":true,
"Formula":"COUNT_THRESHOLD",
"TriggerSensor": "usb_pwr_therm",
"Combination":["usb_pwr_therm", "usb_pwr_therm", "USB-MINUS-NEUTRAL", "USB_QUIET_RFFE"],
"Coefficient":[46000, 46000, 10000, 0],
"HotThreshold":["NAN", "NAN", "NAN", "NAN", "3.0", "NAN", "NAN"],
"BindedCdevInfo": [
{
"CdevRequest": "usbc-port",
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
}
],
"Multiplier":1,
"PollingDelay":300000,
"PassiveDelay":7000
},
{
"Name":"LITTLE",
"Type":"CPU",
@ -566,6 +614,11 @@
}
],
"PowerRails":[
{
"Name":"VSYS_PWR_RFFE",
"PowerSampleDelay":7000,
"PowerSampleCount":4
},
{
"Name":"S2M_VDD_CPUCL2",
"PowerSampleDelay":7000,

View file

@ -501,6 +501,54 @@
"PollingDelay":300000,
"PassiveDelay":7000
},
{
"Name":"USB-MINUS-NEUTRAL",
"Type":"UNKNOWN",
"VirtualSensor":true,
"Formula":"WEIGHTED_AVG",
"Combination":["usb_pwr_therm", "neutral_therm"],
"Coefficient":[1.0, -1.0],
"Multiplier":0.001
},
{
"Name":"USB-MINUS-QUIET",
"Type":"UNKNOWN",
"VirtualSensor":true,
"Formula":"WEIGHTED_AVG",
"Combination":["usb_pwr_therm", "quiet_therm"],
"Coefficient":[1.0, -1.0],
"Multiplier":0.001
},
{
"Name":"USB_QUIET_RFFE",
"Type":"UNKNOWN",
"VirtualSensor":true,
"Formula":"WEIGHTED_AVG",
"Combination":["USB-MINUS-QUIET", "VSYS_PWR_RFFE"],
"CombinationType":["SENSOR", "ODPM"],
"Coefficient":[1, -8],
"Offset":-5000,
"Multiplier":0.001
},
{
"Name":"VIRTUAL-USB-THROTTLING",
"Type":"USB_PORT",
"VirtualSensor":true,
"Formula":"COUNT_THRESHOLD",
"TriggerSensor": "usb_pwr_therm",
"Combination":["usb_pwr_therm", "usb_pwr_therm", "USB-MINUS-NEUTRAL", "USB_QUIET_RFFE"],
"Coefficient":[46000, 46000, 10000, 0],
"HotThreshold":["NAN", "NAN", "NAN", "NAN", "3.0", "NAN", "NAN"],
"BindedCdevInfo": [
{
"CdevRequest": "usbc-port",
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
}
],
"Multiplier":1,
"PollingDelay":60000,
"PassiveDelay":7000
},
{
"Name":"LITTLE",
"Type":"CPU",
@ -573,6 +621,11 @@
}
],
"PowerRails":[
{
"Name":"VSYS_PWR_RFFE",
"PowerSampleDelay":7000,
"PowerSampleCount":4
},
{
"Name":"S2M_VDD_CPUCL2",
"PowerSampleDelay":7000,