thermal: update policy for earlier USB port throttling/warning

Bug: 377956961
Test: confirm usbc throttling and warning UI by emul_temp
Flag: EXEMPT config update

Change-Id: Ieb5f1bb93a9f96ba855c7ed05cdc8b9f033392ca
This commit is contained in:
TeYuan Wang 2024-12-05 01:34:18 +00:00
parent 673b514e96
commit 756cd13578
6 changed files with 93 additions and 54 deletions

View file

@ -1133,22 +1133,29 @@
]
},
{
"Name": "VIRTUAL-USB-THROTTLING",
"Name": "USB-MINUS-CHARGING",
"Type": "UNKNOWN",
"VirtualSensor": true,
"Formula": "WEIGHTED_AVG",
"Combination": ["usb_pwr_therm", "charging_therm"],
"Coefficient": [1.0, -1.0]
},
{
"Name": "VIRTUAL-USB-THROTTLING",
"Type": "UNKNOWN",
"VirtualSensor": true,
"Formula": "COUNT_THRESHOLD",
"TriggerSensor": "usb_pwr_therm",
"Combination": ["usb_pwr_therm"],
"Coefficient": [1.0],
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", 55.0, "NaN", "NaN"],
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 1.9, 0.0, 0.0],
"Combination": ["usb_pwr_therm", "usb_pwr_therm", "USB-MINUS-CHARGING"],
"Coefficient": [55000.0, 50000.0, 2000.0],
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", 2.0, "NaN", "NaN"],
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 0.9, 0.0, 0.0],
"BindedCdevInfo": [
{
"CdevRequest": "usbc-port",
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
}
],
"Multiplier": 0.001,
"PollingDelay": 300000,
"PassiveDelay": 7000
},
@ -1156,13 +1163,12 @@
"Name": "VIRTUAL-USB-UI",
"Type": "USB_PORT",
"VirtualSensor": true,
"Formula": "WEIGHTED_AVG",
"Formula": "COUNT_THRESHOLD",
"TriggerSensor": "usb_pwr_therm",
"Combination": ["usb_pwr_therm"],
"Coefficient": [1.0],
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", "NaN", 57.0, "NaN"],
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 0.0, 1.9, 0.0],
"Multiplier": 0.001,
"Combination": ["usb_pwr_therm", "usb_pwr_therm", "USB-MINUS-CHARGING"],
"Coefficient": [57000.0, 52000.0, 2000.0],
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", "NaN", 2.0, "NaN"],
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 0.0, 0.9, 0.0],
"PollingDelay": 300000,
"PassiveDelay": 7000,
"SendCallback": true

View file

@ -265,22 +265,29 @@
]
},
{
"Name": "VIRTUAL-USB-THROTTLING",
"Name": "USB-MINUS-CHARGING",
"Type": "UNKNOWN",
"VirtualSensor": true,
"Formula": "WEIGHTED_AVG",
"Combination": ["usb_pwr_therm", "charging_therm"],
"Coefficient": [1.0, -1.0]
},
{
"Name": "VIRTUAL-USB-THROTTLING",
"Type": "UNKNOWN",
"VirtualSensor": true,
"Formula": "COUNT_THRESHOLD",
"TriggerSensor": "usb_pwr_therm",
"Combination": ["usb_pwr_therm"],
"Coefficient": [1.0],
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", 55.0, "NaN", "NaN"],
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 1.9, 0.0, 0.0],
"Combination": ["usb_pwr_therm", "usb_pwr_therm", "USB-MINUS-CHARGING"],
"Coefficient": [55000.0, 50000.0, 2000.0],
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", 2.0, "NaN", "NaN"],
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 0.9, 0.0, 0.0],
"BindedCdevInfo": [
{
"CdevRequest": "usbc-port",
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
}
],
"Multiplier": 0.001,
"PollingDelay": 300000,
"PassiveDelay": 7000
}

View file

@ -276,22 +276,29 @@
]
},
{
"Name": "VIRTUAL-USB-THROTTLING",
"Name": "USB-MINUS-CHARGING",
"Type": "UNKNOWN",
"VirtualSensor": true,
"Formula": "WEIGHTED_AVG",
"Combination": ["usb_pwr_therm", "charging_therm"],
"Coefficient": [1.0, -1.0]
},
{
"Name": "VIRTUAL-USB-THROTTLING",
"Type": "UNKNOWN",
"VirtualSensor": true,
"Formula": "COUNT_THRESHOLD",
"TriggerSensor": "usb_pwr_therm",
"Combination": ["usb_pwr_therm"],
"Coefficient": [1.0],
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", 55.0, "NaN", "NaN"],
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 1.9, 0.0, 0.0],
"Combination": ["usb_pwr_therm", "usb_pwr_therm", "USB-MINUS-CHARGING"],
"Coefficient": [55000.0, 50000.0, 2000.0],
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", 2.0, "NaN", "NaN"],
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 0.9, 0.0, 0.0],
"BindedCdevInfo": [
{
"CdevRequest": "usbc-port",
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
}
],
"Multiplier": 0.001,
"PollingDelay": 300000,
"PassiveDelay": 7000
}

View file

@ -243,22 +243,29 @@
]
},
{
"Name": "VIRTUAL-USB-THROTTLING",
"Name": "USB-MINUS-CHARGING",
"Type": "UNKNOWN",
"VirtualSensor": true,
"Formula": "WEIGHTED_AVG",
"Combination": ["usb_pwr_therm", "charging_therm"],
"Coefficient": [1.0, -1.0]
},
{
"Name": "VIRTUAL-USB-THROTTLING",
"Type": "UNKNOWN",
"VirtualSensor": true,
"Formula": "COUNT_THRESHOLD",
"TriggerSensor": "usb_pwr_therm",
"Combination": ["usb_pwr_therm"],
"Coefficient": [1.0],
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", 55.0, "NaN", "NaN"],
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 1.9, 0.0, 0.0],
"Combination": ["usb_pwr_therm", "usb_pwr_therm", "USB-MINUS-CHARGING"],
"Coefficient": [55000.0, 50000.0, 2000.0],
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", 2.0, "NaN", "NaN"],
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 0.9, 0.0, 0.0],
"BindedCdevInfo": [
{
"CdevRequest": "usbc-port",
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
}
],
"Multiplier": 0.001,
"PollingDelay": 300000,
"PassiveDelay": 7000
}

View file

@ -1156,22 +1156,29 @@
]
},
{
"Name": "VIRTUAL-USB-THROTTLING",
"Name": "USB-MINUS-CHARGING",
"Type": "UNKNOWN",
"VirtualSensor": true,
"Formula": "WEIGHTED_AVG",
"Combination": ["usb_pwr_therm", "charging_therm"],
"Coefficient": [1.0, -1.0]
},
{
"Name": "VIRTUAL-USB-THROTTLING",
"Type": "UNKNOWN",
"VirtualSensor": true,
"Formula": "COUNT_THRESHOLD",
"TriggerSensor": "usb_pwr_therm",
"Combination": ["usb_pwr_therm"],
"Coefficient": [1.0],
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", 55.0, "NaN", "NaN"],
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 1.9, 0.0, 0.0],
"Combination": ["usb_pwr_therm", "usb_pwr_therm", "USB-MINUS-CHARGING"],
"Coefficient": [55000.0, 50000.0, 2000.0],
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", 2.0, "NaN", "NaN"],
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 0.9, 0.0, 0.0],
"BindedCdevInfo": [
{
"CdevRequest": "usbc-port",
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
}
],
"Multiplier": 0.001,
"PollingDelay": 300000,
"PassiveDelay": 7000
},
@ -1179,13 +1186,12 @@
"Name": "VIRTUAL-USB-UI",
"Type": "USB_PORT",
"VirtualSensor": true,
"Formula": "WEIGHTED_AVG",
"Formula": "COUNT_THRESHOLD",
"TriggerSensor": "usb_pwr_therm",
"Combination": ["usb_pwr_therm"],
"Coefficient": [1.0],
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", "NaN", 57.0, "NaN"],
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 0.0, 1.9, 0.0],
"Multiplier": 0.001,
"Combination": ["usb_pwr_therm", "usb_pwr_therm", "USB-MINUS-CHARGING"],
"Coefficient": [57000.0, 52000.0, 2000.0],
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", "NaN", 2.0, "NaN"],
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 0.0, 0.9, 0.0],
"PollingDelay": 300000,
"PassiveDelay": 7000,
"SendCallback": true

View file

@ -1090,22 +1090,29 @@
]
},
{
"Name": "VIRTUAL-USB-THROTTLING",
"Name": "USB-MINUS-CHARGING",
"Type": "UNKNOWN",
"VirtualSensor": true,
"Formula": "WEIGHTED_AVG",
"Combination": ["usb_pwr_therm", "charging_therm"],
"Coefficient": [1.0, -1.0]
},
{
"Name": "VIRTUAL-USB-THROTTLING",
"Type": "UNKNOWN",
"VirtualSensor": true,
"Formula": "COUNT_THRESHOLD",
"TriggerSensor": "usb_pwr_therm",
"Combination": ["usb_pwr_therm"],
"Coefficient": [1.0],
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", 55.0, "NaN", "NaN"],
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 1.9, 0.0, 0.0],
"Combination": ["usb_pwr_therm", "usb_pwr_therm", "USB-MINUS-CHARGING"],
"Coefficient": [55000.0, 50000.0, 2000.0],
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", 2.0, "NaN", "NaN"],
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 0.9, 0.0, 0.0],
"BindedCdevInfo": [
{
"CdevRequest": "usbc-port",
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
}
],
"Multiplier": 0.001,
"PollingDelay": 300000,
"PassiveDelay": 7000
},
@ -1113,13 +1120,12 @@
"Name": "VIRTUAL-USB-UI",
"Type": "USB_PORT",
"VirtualSensor": true,
"Formula": "WEIGHTED_AVG",
"Formula": "COUNT_THRESHOLD",
"TriggerSensor": "usb_pwr_therm",
"Combination": ["usb_pwr_therm"],
"Coefficient": [1.0],
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", "NaN", 57.0, "NaN"],
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 0.0, 1.9, 0.0],
"Multiplier": 0.001,
"Combination": ["usb_pwr_therm", "usb_pwr_therm", "USB-MINUS-CHARGING"],
"Coefficient": [57000.0, 52000.0, 2000.0],
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", "NaN", 2.0, "NaN"],
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 0.0, 0.9, 0.0],
"PollingDelay": 300000,
"PassiveDelay": 7000,
"SendCallback": true