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:
parent
673b514e96
commit
756cd13578
6 changed files with 93 additions and 54 deletions
|
@ -1133,22 +1133,29 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Name": "VIRTUAL-USB-THROTTLING",
|
"Name": "USB-MINUS-CHARGING",
|
||||||
"Type": "UNKNOWN",
|
"Type": "UNKNOWN",
|
||||||
"VirtualSensor": true,
|
"VirtualSensor": true,
|
||||||
"Formula": "WEIGHTED_AVG",
|
"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",
|
"TriggerSensor": "usb_pwr_therm",
|
||||||
"Combination": ["usb_pwr_therm"],
|
"Combination": ["usb_pwr_therm", "usb_pwr_therm", "USB-MINUS-CHARGING"],
|
||||||
"Coefficient": [1.0],
|
"Coefficient": [55000.0, 50000.0, 2000.0],
|
||||||
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", 55.0, "NaN", "NaN"],
|
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", 2.0, "NaN", "NaN"],
|
||||||
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 1.9, 0.0, 0.0],
|
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 0.9, 0.0, 0.0],
|
||||||
"BindedCdevInfo": [
|
"BindedCdevInfo": [
|
||||||
{
|
{
|
||||||
"CdevRequest": "usbc-port",
|
"CdevRequest": "usbc-port",
|
||||||
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
|
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Multiplier": 0.001,
|
|
||||||
"PollingDelay": 300000,
|
"PollingDelay": 300000,
|
||||||
"PassiveDelay": 7000
|
"PassiveDelay": 7000
|
||||||
},
|
},
|
||||||
|
@ -1156,13 +1163,12 @@
|
||||||
"Name": "VIRTUAL-USB-UI",
|
"Name": "VIRTUAL-USB-UI",
|
||||||
"Type": "USB_PORT",
|
"Type": "USB_PORT",
|
||||||
"VirtualSensor": true,
|
"VirtualSensor": true,
|
||||||
"Formula": "WEIGHTED_AVG",
|
"Formula": "COUNT_THRESHOLD",
|
||||||
"TriggerSensor": "usb_pwr_therm",
|
"TriggerSensor": "usb_pwr_therm",
|
||||||
"Combination": ["usb_pwr_therm"],
|
"Combination": ["usb_pwr_therm", "usb_pwr_therm", "USB-MINUS-CHARGING"],
|
||||||
"Coefficient": [1.0],
|
"Coefficient": [57000.0, 52000.0, 2000.0],
|
||||||
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", "NaN", 57.0, "NaN"],
|
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", "NaN", 2.0, "NaN"],
|
||||||
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 0.0, 1.9, 0.0],
|
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 0.0, 0.9, 0.0],
|
||||||
"Multiplier": 0.001,
|
|
||||||
"PollingDelay": 300000,
|
"PollingDelay": 300000,
|
||||||
"PassiveDelay": 7000,
|
"PassiveDelay": 7000,
|
||||||
"SendCallback": true
|
"SendCallback": true
|
||||||
|
|
|
@ -265,22 +265,29 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Name": "VIRTUAL-USB-THROTTLING",
|
"Name": "USB-MINUS-CHARGING",
|
||||||
"Type": "UNKNOWN",
|
"Type": "UNKNOWN",
|
||||||
"VirtualSensor": true,
|
"VirtualSensor": true,
|
||||||
"Formula": "WEIGHTED_AVG",
|
"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",
|
"TriggerSensor": "usb_pwr_therm",
|
||||||
"Combination": ["usb_pwr_therm"],
|
"Combination": ["usb_pwr_therm", "usb_pwr_therm", "USB-MINUS-CHARGING"],
|
||||||
"Coefficient": [1.0],
|
"Coefficient": [55000.0, 50000.0, 2000.0],
|
||||||
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", 55.0, "NaN", "NaN"],
|
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", 2.0, "NaN", "NaN"],
|
||||||
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 1.9, 0.0, 0.0],
|
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 0.9, 0.0, 0.0],
|
||||||
"BindedCdevInfo": [
|
"BindedCdevInfo": [
|
||||||
{
|
{
|
||||||
"CdevRequest": "usbc-port",
|
"CdevRequest": "usbc-port",
|
||||||
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
|
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Multiplier": 0.001,
|
|
||||||
"PollingDelay": 300000,
|
"PollingDelay": 300000,
|
||||||
"PassiveDelay": 7000
|
"PassiveDelay": 7000
|
||||||
}
|
}
|
||||||
|
|
|
@ -276,22 +276,29 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Name": "VIRTUAL-USB-THROTTLING",
|
"Name": "USB-MINUS-CHARGING",
|
||||||
"Type": "UNKNOWN",
|
"Type": "UNKNOWN",
|
||||||
"VirtualSensor": true,
|
"VirtualSensor": true,
|
||||||
"Formula": "WEIGHTED_AVG",
|
"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",
|
"TriggerSensor": "usb_pwr_therm",
|
||||||
"Combination": ["usb_pwr_therm"],
|
"Combination": ["usb_pwr_therm", "usb_pwr_therm", "USB-MINUS-CHARGING"],
|
||||||
"Coefficient": [1.0],
|
"Coefficient": [55000.0, 50000.0, 2000.0],
|
||||||
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", 55.0, "NaN", "NaN"],
|
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", 2.0, "NaN", "NaN"],
|
||||||
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 1.9, 0.0, 0.0],
|
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 0.9, 0.0, 0.0],
|
||||||
"BindedCdevInfo": [
|
"BindedCdevInfo": [
|
||||||
{
|
{
|
||||||
"CdevRequest": "usbc-port",
|
"CdevRequest": "usbc-port",
|
||||||
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
|
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Multiplier": 0.001,
|
|
||||||
"PollingDelay": 300000,
|
"PollingDelay": 300000,
|
||||||
"PassiveDelay": 7000
|
"PassiveDelay": 7000
|
||||||
}
|
}
|
||||||
|
|
|
@ -243,22 +243,29 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Name": "VIRTUAL-USB-THROTTLING",
|
"Name": "USB-MINUS-CHARGING",
|
||||||
"Type": "UNKNOWN",
|
"Type": "UNKNOWN",
|
||||||
"VirtualSensor": true,
|
"VirtualSensor": true,
|
||||||
"Formula": "WEIGHTED_AVG",
|
"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",
|
"TriggerSensor": "usb_pwr_therm",
|
||||||
"Combination": ["usb_pwr_therm"],
|
"Combination": ["usb_pwr_therm", "usb_pwr_therm", "USB-MINUS-CHARGING"],
|
||||||
"Coefficient": [1.0],
|
"Coefficient": [55000.0, 50000.0, 2000.0],
|
||||||
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", 55.0, "NaN", "NaN"],
|
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", 2.0, "NaN", "NaN"],
|
||||||
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 1.9, 0.0, 0.0],
|
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 0.9, 0.0, 0.0],
|
||||||
"BindedCdevInfo": [
|
"BindedCdevInfo": [
|
||||||
{
|
{
|
||||||
"CdevRequest": "usbc-port",
|
"CdevRequest": "usbc-port",
|
||||||
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
|
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Multiplier": 0.001,
|
|
||||||
"PollingDelay": 300000,
|
"PollingDelay": 300000,
|
||||||
"PassiveDelay": 7000
|
"PassiveDelay": 7000
|
||||||
}
|
}
|
||||||
|
|
|
@ -1156,22 +1156,29 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Name": "VIRTUAL-USB-THROTTLING",
|
"Name": "USB-MINUS-CHARGING",
|
||||||
"Type": "UNKNOWN",
|
"Type": "UNKNOWN",
|
||||||
"VirtualSensor": true,
|
"VirtualSensor": true,
|
||||||
"Formula": "WEIGHTED_AVG",
|
"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",
|
"TriggerSensor": "usb_pwr_therm",
|
||||||
"Combination": ["usb_pwr_therm"],
|
"Combination": ["usb_pwr_therm", "usb_pwr_therm", "USB-MINUS-CHARGING"],
|
||||||
"Coefficient": [1.0],
|
"Coefficient": [55000.0, 50000.0, 2000.0],
|
||||||
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", 55.0, "NaN", "NaN"],
|
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", 2.0, "NaN", "NaN"],
|
||||||
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 1.9, 0.0, 0.0],
|
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 0.9, 0.0, 0.0],
|
||||||
"BindedCdevInfo": [
|
"BindedCdevInfo": [
|
||||||
{
|
{
|
||||||
"CdevRequest": "usbc-port",
|
"CdevRequest": "usbc-port",
|
||||||
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
|
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Multiplier": 0.001,
|
|
||||||
"PollingDelay": 300000,
|
"PollingDelay": 300000,
|
||||||
"PassiveDelay": 7000
|
"PassiveDelay": 7000
|
||||||
},
|
},
|
||||||
|
@ -1179,13 +1186,12 @@
|
||||||
"Name": "VIRTUAL-USB-UI",
|
"Name": "VIRTUAL-USB-UI",
|
||||||
"Type": "USB_PORT",
|
"Type": "USB_PORT",
|
||||||
"VirtualSensor": true,
|
"VirtualSensor": true,
|
||||||
"Formula": "WEIGHTED_AVG",
|
"Formula": "COUNT_THRESHOLD",
|
||||||
"TriggerSensor": "usb_pwr_therm",
|
"TriggerSensor": "usb_pwr_therm",
|
||||||
"Combination": ["usb_pwr_therm"],
|
"Combination": ["usb_pwr_therm", "usb_pwr_therm", "USB-MINUS-CHARGING"],
|
||||||
"Coefficient": [1.0],
|
"Coefficient": [57000.0, 52000.0, 2000.0],
|
||||||
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", "NaN", 57.0, "NaN"],
|
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", "NaN", 2.0, "NaN"],
|
||||||
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 0.0, 1.9, 0.0],
|
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 0.0, 0.9, 0.0],
|
||||||
"Multiplier": 0.001,
|
|
||||||
"PollingDelay": 300000,
|
"PollingDelay": 300000,
|
||||||
"PassiveDelay": 7000,
|
"PassiveDelay": 7000,
|
||||||
"SendCallback": true
|
"SendCallback": true
|
||||||
|
|
|
@ -1090,22 +1090,29 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Name": "VIRTUAL-USB-THROTTLING",
|
"Name": "USB-MINUS-CHARGING",
|
||||||
"Type": "UNKNOWN",
|
"Type": "UNKNOWN",
|
||||||
"VirtualSensor": true,
|
"VirtualSensor": true,
|
||||||
"Formula": "WEIGHTED_AVG",
|
"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",
|
"TriggerSensor": "usb_pwr_therm",
|
||||||
"Combination": ["usb_pwr_therm"],
|
"Combination": ["usb_pwr_therm", "usb_pwr_therm", "USB-MINUS-CHARGING"],
|
||||||
"Coefficient": [1.0],
|
"Coefficient": [55000.0, 50000.0, 2000.0],
|
||||||
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", 55.0, "NaN", "NaN"],
|
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", 2.0, "NaN", "NaN"],
|
||||||
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 1.9, 0.0, 0.0],
|
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 0.9, 0.0, 0.0],
|
||||||
"BindedCdevInfo": [
|
"BindedCdevInfo": [
|
||||||
{
|
{
|
||||||
"CdevRequest": "usbc-port",
|
"CdevRequest": "usbc-port",
|
||||||
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
|
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Multiplier": 0.001,
|
|
||||||
"PollingDelay": 300000,
|
"PollingDelay": 300000,
|
||||||
"PassiveDelay": 7000
|
"PassiveDelay": 7000
|
||||||
},
|
},
|
||||||
|
@ -1113,13 +1120,12 @@
|
||||||
"Name": "VIRTUAL-USB-UI",
|
"Name": "VIRTUAL-USB-UI",
|
||||||
"Type": "USB_PORT",
|
"Type": "USB_PORT",
|
||||||
"VirtualSensor": true,
|
"VirtualSensor": true,
|
||||||
"Formula": "WEIGHTED_AVG",
|
"Formula": "COUNT_THRESHOLD",
|
||||||
"TriggerSensor": "usb_pwr_therm",
|
"TriggerSensor": "usb_pwr_therm",
|
||||||
"Combination": ["usb_pwr_therm"],
|
"Combination": ["usb_pwr_therm", "usb_pwr_therm", "USB-MINUS-CHARGING"],
|
||||||
"Coefficient": [1.0],
|
"Coefficient": [57000.0, 52000.0, 2000.0],
|
||||||
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", "NaN", 57.0, "NaN"],
|
"HotThreshold": ["NaN", "NaN", "NaN", "NaN", "NaN", 2.0, "NaN"],
|
||||||
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 0.0, 1.9, 0.0],
|
"HotHysteresis": [0.0, 0.0, 0.0, 0.0, 0.0, 0.9, 0.0],
|
||||||
"Multiplier": 0.001,
|
|
||||||
"PollingDelay": 300000,
|
"PollingDelay": 300000,
|
||||||
"PassiveDelay": 7000,
|
"PassiveDelay": 7000,
|
||||||
"SendCallback": true
|
"SendCallback": true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue