diff --git a/device-felix.mk b/device-felix.mk index fa99dfb..1e9a88d 100644 --- a/device-felix.mk +++ b/device-felix.mk @@ -102,11 +102,6 @@ DEVICE_MANIFEST_FILE += \ device/google/felix/nfc/manifest_nfc.xml \ device/google/felix/nfc/manifest_se.xml -# Thermal Config -PRODUCT_COPY_FILES += \ - device/google/felix/thermal_info_config_felix.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \ - device/google/felix/thermal_info_config_felix_proto.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_proto.json - # Power HAL config PRODUCT_COPY_FILES += \ device/google/felix/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json diff --git a/thermal_info_config_felix.json b/thermal_info_config_felix.json deleted file mode 100644 index a88aa37..0000000 --- a/thermal_info_config_felix.json +++ /dev/null @@ -1,1094 +0,0 @@ -{ - "Sensors":[ - { - "Name":"battery", - "Type":"BATTERY", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "60.0" - ], - "VrThreshold":"NAN", - "Multiplier":0.001 - }, - { - "Name":"neutral_therm", - "Type":"UNKNOWN", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN" - ], - "TempPath":"/dev/thermal/tz-by-name/neutral_therm/tz_temp", - "VrThreshold":"NAN", - "Multiplier":0.001 - }, - { - "Name":"gnss_tcxo_therm", - "Type":"UNKNOWN", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN" - ], - "TempPath":"/dev/thermal/tz-by-name/gnss_tcxo_therm/tz_temp", - "VrThreshold":"NAN", - "Multiplier":0.001 - }, - { - "Name":"qi_therm", - "Type":"UNKNOWN", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN" - ], - "TempPath":"/dev/thermal/tz-by-name/qi_therm/tz_temp", - "VrThreshold":"NAN", - "Multiplier":0.001 - }, - { - "Name":"quiet_therm", - "Type":"UNKNOWN", - "HotThreshold":[ - "NAN", - "32.2", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.9, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0 - ], - "TempPath":"/dev/thermal/tz-by-name/quiet_therm/tz_temp", - "VrThreshold":"NAN", - "Multiplier":0.001, - "PollingDelay":60000, - "PassiveDelay":7000 - }, - { - "Name":"usb_pwr_therm", - "Type":"UNKNOWN", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN" - ], - "TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm/tz_temp", - "VrThreshold":"NAN", - "Multiplier":0.001 - }, - { - "Name":"usb_pwr_therm2", - "Type":"UNKNOWN", - "HotThreshold":[ - "NAN", - "35.0", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.9, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0 - ], - "TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm2/tz_temp", - "VrThreshold":"NAN", - "Multiplier":0.001, - "PollingDelay":60000, - "PassiveDelay":7000 - }, - { - "Name":"disp_therm", - "Type":"UNKNOWN", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN" - ], - "TempPath":"/dev/thermal/tz-by-name/disp_therm/tz_temp", - "VrThreshold":"NAN", - "Multiplier":0.001 - }, - { - "Name":"VIRTUAL-QI-USB", - "Type":"UNKNOWN", - "VirtualSensor":true, - "Formula":"WEIGHTED_AVG", - "Combination":[ - "qi_therm", - "usb_pwr_therm" - ], - "Coefficient":[ - "0.650", - "0.350" - ], - "Offset":-1300, - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN" - ], - "VrThreshold":"NAN", - "Multiplier":0.001 - }, - { - "Name":"VIRTUAL-USB2-QUIET", - "Type":"UNKNOWN", - "VirtualSensor":true, - "Formula":"WEIGHTED_AVG", - "Combination":[ - "usb_pwr_therm2", - "quiet_therm" - ], - "Coefficient":[ - "0.465", - "0.535" - ], - "Offset":-1824, - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN" - ], - "VrThreshold":"NAN", - "Multiplier":0.001 - }, - { - "Name":"VIRTUAL-QUIET-USB2", - "Type":"UNKNOWN", - "VirtualSensor":true, - "Formula":"WEIGHTED_AVG", - "Combination":[ - "quiet_therm", - "usb_pwr_therm2" - ], - "Coefficient":[ - "1.208", - "-0.208" - ], - "Offset":-874, - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN" - ], - "VrThreshold":"NAN", - "Multiplier":0.001 - }, - { - "Name":"VIRTUAL-NEUTRAL-QUIET", - "Type":"UNKNOWN", - "VirtualSensor":true, - "Formula":"WEIGHTED_AVG", - "Combination":[ - "neutral_therm", - "quiet_therm" - ], - "Coefficient":[ - "0.760", - "0.240" - ], - "Offset":-2100, - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN" - ], - "VrThreshold":"NAN", - "Multiplier":0.001 - }, - { - "Name":"VIRTUAL-SKIN", - "Type":"SKIN", - "VirtualSensor":true, - "TriggerSensor":"quiet_therm", - "Formula":"MAXIMUM", - "Combination":[ - "VIRTUAL-QI-USB", - "VIRTUAL-USB2-QUIET", - "VIRTUAL-QUIET-USB2" - ], - "Coefficient":[ - "1.0", - "1.0", - "1.0" - ], - "HotThreshold":[ - "NAN", - "39", - "43", - "45", - "46.5", - "52.0", - "55.0" - ], - "HotHysteresis":[ - 0.0, - 1.9, - 1.9, - 1.9, - 1.4, - 1.9, - 1.9 - ], - "VrThreshold":"NAN", - "Multiplier":0.001, - "SendPowerHint":true, - "Monitor":true, - "PollingDelay":300000, - "PassiveDelay":7000, - "BindedCdevInfo": [ - { - "CdevRequest": "thermal-cpufreq-0", - "LimitInfo": [0, 0, 0, 7, 8, 10, 10] - }, - { - "CdevRequest": "thermal-cpufreq-1", - "LimitInfo": [0, 0, 0, 10, 12, 14, 14] - }, - { - "CdevRequest": "thermal-cpufreq-2", - "LimitInfo": [0, 0, 0, 15, 15, 17, 17] - }, - { - "CdevRequest": "thermal-gpufreq-0", - "LimitInfo": [0, 0, 0, 9, 10, 11, 11] - }, - { - "CdevRequest": "tpu_cooling", - "LimitInfo": [0, 2, 3, 4, 5, 5, 5] - }, - { - "CdevRequest": "gxp-cooling", - "LimitInfo": [0, 0, 0, 0, 0, 9, 9] - } - ] - }, - { - "Name":"VIRTUAL-SKIN-CHARGE", - "Type":"UNKNOWN", - "VirtualSensor":true, - "TriggerSensor":"quiet_therm", - "Formula":"MAXIMUM", - "Combination":[ - "VIRTUAL-NEUTRAL-QUIET" - ], - "Coefficient":[ - "1.0" - ], - "HotThreshold":[ - "NAN", - "39.0", - "41.0", - "43.0", - "45.0", - "47.0", - "55.0" - ], - "HotHysteresis":[ - 0.0, - 1.9, - 1.9, - 1.9, - 1.9, - 1.9, - 1.9 - ], - "VrThreshold":"NAN", - "Multiplier":0.001, - "Monitor":true, - "PollingDelay":300000, - "PassiveDelay":7000, - "BindedCdevInfo": [ - { - "CdevRequest": "fcc", - "LimitInfo": [0, 2, 3, 3, 4, 4, 4], - "BindedPowerRail": "POWER_FOR_CHARGING_THROTTLING", - "PowerThreshold": [500, 500, 500, 500, 500, 0, 0], - "CdevFloorWithPowerLink": [0, 0, 2, 2, 3 ,4 ,4], - "ReleaseLogic": "RELEASE_TO_FLOOR", - "ThrottlingWithPowerLink":true - }, - { - "CdevRequest": "dc_icl", - "LimitInfo": [0, 1, 2, 3, 4, 4, 4], - "BindedPowerRail": "POWER_FOR_CHARGING_THROTTLING", - "PowerThreshold": [500, 500, 500, 500, 500, 0, 0], - "CdevFloorWithPowerLink": [0, 1, 2, 3, 3, 4, 4], - "ReleaseLogic": "RELEASE_TO_FLOOR", - "ThrottlingWithPowerLink":true - }, - { - "CdevRequest": "wlc_fcc", - "LimitInfo": [0, 3, 3, 4, 5, 5, 5], - "BindedPowerRail": "POWER_FOR_CHARGING_THROTTLING", - "PowerThreshold": [500, 500, 500, 500, 500, 0, 0], - "CdevFloorWithPowerLink": [0, 1, 2, 3, 4, 5, 5], - "ReleaseLogic": "RELEASE_TO_FLOOR", - "ThrottlingWithPowerLink":true - } - ] - }, - { - "Name":"cellular-emergency", - "Type":"POWER_AMPLIFIER", - "VirtualSensor":true, - "TriggerSensor":"quiet_therm", - "Formula":"MAXIMUM", - "Combination":[ - "VIRTUAL-QI-USB", - "VIRTUAL-USB2-QUIET", - "VIRTUAL-QUIET-USB2" - ], - "Coefficient":[ - "1.0", - "1.0", - "1.0" - ], - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "54.0", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 1.9, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":0.001, - "Monitor":true, - "PollingDelay":300000, - "PassiveDelay":7000 - }, - { - "Name":"LITTLE", - "Type":"CPU", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - 115.0 - ], - "VrThreshold":"NAN", - "Multiplier":0.001 - }, - { - "Name":"MID", - "Type":"CPU", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - 115.0 - ], - "VrThreshold":"NAN", - "Multiplier":0.001 - }, - { - "Name":"BIG", - "Type":"CPU", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - 115.0 - ], - "VrThreshold":"NAN", - "Multiplier":0.001 - }, - { - "Name":"G3D", - "Type":"GPU", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - 115.0 - ], - "VrThreshold":"NAN", - "Multiplier":0.001 - }, - { - "Name":"battery_cycle", - "Type":"BCL_VOLTAGE", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN" - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":false - }, - { - "Name":"critical-battery-cell", - "Type":"BCL_VOLTAGE", - "VirtualSensor":true, - "Formula":"COUNT_THRESHOLD", - "TriggerSensor": "vdroop1", - "Combination":[ - "battery", - "battery_cycle", - "vdroop1" - ], - "Coefficient":[ - "-10000", - "400", - "1000" - ], - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - 3.00, - "NAN" - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true - }, - { - "Name":"FLASH_LED_REDUCE", - "Type":"UNKNOWN", - "VirtualSensor":true, - "Formula":"COUNT_THRESHOLD", - "TriggerSensor": "vdroop1", - "Combination":[ - "battery", - "battery_cycle", - "vdroop1" - ], - "Coefficient":[ - "-10000", - "400", - "1000" - ], - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 3.00, - "NAN", - "NAN" - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true, - "SendPowerHint":true - }, - { - "Name":"soc", - "Type":"BCL_PERCENTAGE", - "HotThreshold":[ - "NAN", - 80, - "NAN", - 90, - 93, - 96, - "NAN" - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true, - "PollingDelay":300000, - "PassiveDelay":5000, - "BindedCdevInfo": [ - { - "CdevRequest": "thermal-cpufreq-2", - "LimitInfo": [0, 0, 0, 7, 7, 10, 10] - } - ] - }, - { - "Name":"batoilo", - "Type":"BCL_CURRENT", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 5000, - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 100, - 0.0, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true, - "BindedCdevInfo": [ - { - "CdevRequest": "thermal-cpufreq-2", - "LimitInfo": [0, 0, 0, 0, 7, 10, 10] - }, - { - "CdevRequest": "thermal-gpufreq-0", - "LimitInfo": [0, 0, 0, 0, 10, 11, 11] - }, - { - "CdevRequest": "tpu_cooling", - "LimitInfo": [0, 0, 0, 0, 4, 4, 4] - } - ] - }, - { - "Name":"BCL_AUDIO_BAACL", - "Type":"BCL_VOLTAGE", - "VirtualSensor":true, - "Formula":"COUNT_THRESHOLD", - "TriggerSensor": "soc", - "Combination":[ - "battery", - "soc" - ], - "Coefficient":[ - "-25000", - "80" - ], - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 2.0, - "NAN", - "NAN" - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true - }, - { - "Name":"vdroop1", - "Type":"BCL_VOLTAGE", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 1000, - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 100, - 0.0, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true, - "BindedCdevInfo": [ - { - "CdevRequest": "thermal-cpufreq-2", - "LimitInfo": [0, 0, 0, 0, 7, 10, 10] - }, - { - "CdevRequest": "thermal-gpufreq-0", - "LimitInfo": [0, 0, 0, 0, 7, 7, 7] - }, - { - "CdevRequest": "tpu_cooling", - "LimitInfo": [0, 0, 0, 0, 4, 4, 4] - } - ] - }, - { - "Name":"vdroop2", - "Type":"BCL_VOLTAGE", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 1200, - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 100, - 0.0, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true, - "BindedCdevInfo": [ - { - "CdevRequest": "thermal-cpufreq-2", - "LimitInfo": [0, 0, 0, 0, 7, 10, 10] - }, - { - "CdevRequest": "thermal-gpufreq-0", - "LimitInfo": [0, 0, 0, 0, 15, 15, 15] - }, - { - "CdevRequest": "tpu_cooling", - "LimitInfo": [0, 0, 0, 0, 4, 4, 4] - } - ] - }, - { - "Name":"smpl_gm", - "Type":"BCL_VOLTAGE", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 1100, - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 100, - 0.0, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true, - "BindedCdevInfo": [ - { - "CdevRequest": "thermal-cpufreq-2", - "LimitInfo": [0, 0, 0, 0, 7, 10, 10] - }, - { - "CdevRequest": "thermal-gpufreq-0", - "LimitInfo": [0, 0, 0, 0, 13, 13, 13] - }, - { - "CdevRequest": "tpu_cooling", - "LimitInfo": [0, 0, 0, 0, 4, 4, 4] - } - ] - }, - { - "Name":"ocp_cpu1", - "Type":"BCL_CURRENT", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 7000, - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 100, - 0.0, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true - }, - { - "Name":"ocp_cpu2", - "Type":"BCL_CURRENT", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 12000, - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 100, - 0.0, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true - }, - { - "Name":"ocp_tpu", - "Type":"BCL_CURRENT", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 10500, - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 100, - 0.0, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true - }, - { - "Name":"ocp_gpu", - "Type":"BCL_CURRENT", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 12000, - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 100, - 0.0, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true - }, - { - "Name":"soft_ocp_cpu2", - "Type":"BCL_CURRENT", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 9000, - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 100, - 0.0, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true - }, - { - "Name":"soft_ocp_cpu1", - "Type":"BCL_CURRENT", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 7000, - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 100, - 0.0, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true - }, - { - "Name":"soft_ocp_tpu", - "Type":"BCL_CURRENT", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 8500, - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 100, - 0.0, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true - }, - { - "Name":"soft_ocp_gpu", - "Type":"BCL_CURRENT", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 9000, - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 100, - 0.0, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true - }, - { - "Name":"TPU", - "Type":"NPU", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - 115.0 - ], - "VrThreshold":"NAN", - "Multiplier":0.001 - } - ], - "CoolingDevices":[ - { - "Name":"thermal-cpufreq-0", - "Type":"CPU", - "WritePath":"/dev/thermal/cdev-by-name/thermal-cpufreq-0/user_vote", - "State2Power":["1100", "1050", "1000", "950", "900", "850", "800", "750", "700", "650", "600"] - }, - { - "Name":"thermal-cpufreq-1", - "Type":"CPU", - "WritePath":"/dev/thermal/cdev-by-name/thermal-cpufreq-1/user_vote", - "State2Power":["1400", "1350", "1300", "1250", "1200", "1150", "1100", "1050", "1000", "950", "900", "850", "800", "750"] - }, - { - "Name":"thermal-cpufreq-2", - "Type":"CPU", - "WritePath":"/dev/thermal/cdev-by-name/thermal-cpufreq-2/user_vote", - "State2Power":["1450", "1400", "1350", "1300", "1250", "1200", "1150", "1100", "1050", "1000", "950", "900", "850", "800", "750"] - }, - { - "Name":"thermal-gpufreq-0", - "Type":"GPU", - "WritePath":"/dev/thermal/cdev-by-name/thermal-gpufreq-0/user_vote", - "State2Power":["4371", "3543", "3085", "2293", "1927", "1707", "1394", "1171", "967", "768", "592", "433"] - }, - { - "Name":"fcc", - "Type":"BATTERY" - }, - { - "Name":"dc_icl", - "Type":"BATTERY" - }, - { - "Name":"wlc_fcc", - "Type":"BATTERY" - }, - { - "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":[ - { - "Name":"PPVAR_VSYS_PWR_DISP" - }, - { - "Name":"VSYS_PWR_MODEM" - }, - { - "Name":"S2M_VDD_CPUCL2", - "PowerSampleDelay":14000, - "PowerSampleCount":5 - - }, - { - "Name":"S3M_VDD_CPUCL1", - "PowerSampleDelay":14000, - "PowerSampleCount":5 - }, - { - "Name":"S4M_VDD_CPUCL0", - "PowerSampleDelay":14000, - "PowerSampleCount":5 - }, - { - "Name":"S5M_VDD_INT" - }, - { - "Name":"S1M_VDD_MIF" - }, - { - "Name":"S2S_VDD_G3D", - "PowerSampleDelay":14000, - "PowerSampleCount":5 - }, - { - "Name":"POWER_FOR_CHARGING_THROTTLING", - "VirtualRails":true, - "Formula":"WEIGHTED_AVG", - "Combination":[ - "VSYS_PWR_MODEM", - "S2M_VDD_CPUCL2", - "S3M_VDD_CPUCL1", - "S4M_VDD_CPUCL0", - "S5M_VDD_INT", - "S1M_VDD_MIF", - "S2S_VDD_G3D" - ], - "Coefficient":[ - "1.0", - "1.0", - "1.0", - "1.0", - "1.0", - "1.0", - "1.0" - ], - "PowerSampleDelay":14000, - "PowerSampleCount":5 - } - ] -} diff --git a/thermal_info_config_felix_proto.json b/thermal_info_config_felix_proto.json deleted file mode 100644 index c40fdc2..0000000 --- a/thermal_info_config_felix_proto.json +++ /dev/null @@ -1,816 +0,0 @@ -{ - "Sensors":[ - { - "Name":"neutral_therm", - "Type":"UNKNOWN", - "HotThreshold":[ - "NAN", - "31.5", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN" - ], - "HotHysteresis":[ - "0.0", - "0.9", - "0.0", - "0.0", - "0.0", - "0.0", - "0.0" - ], - "TempPath":"/dev/thermal/tz-by-name/neutral_therm/adc_channel/channel_temp", - "VrThreshold":"NAN", - "Multiplier":0.001, - "PollingDelay":60000, - "PassiveDelay":7000 - }, - { - "Name":"quiet_therm", - "Type":"UNKNOWN", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN" - ], - "TempPath":"/dev/thermal/tz-by-name/quiet_therm/adc_channel/channel_temp", - "VrThreshold":"NAN", - "Multiplier":0.001 - }, - { - "Name":"qi_therm2", - "Type":"UNKNOWN", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN" - ], - "TempPath":"/dev/thermal/tz-by-name/qi_therm2/adc_channel/channel_temp", - "VrThreshold":"NAN", - "Multiplier":0.001 - }, - { - "Name":"usb_pwr_therm2", - "Type":"UNKNOWN", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN" - ], - "TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm2/adc_channel/channel_temp", - "VrThreshold":"NAN", - "Multiplier":0.001 - }, - { - "Name":"VIRTUAL-NEUTRAL-QUIET-QI2-0", - "Type":"UNKNOWN", - "VirtualSensor":true, - "Formula":"WEIGHTED_AVG", - "Combination":[ - "neutral_therm", - "quiet_therm", - "qi_therm2" - ], - "Coefficient":[ - "0.35", - "0.15", - "0.5" - ], - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN" - ], - "VrThreshold":"NAN", - "Multiplier":0.001 - }, - { - "Name":"VIRTUAL-NEUTRAL-QUIET-QI2-1", - "Type":"UNKNOWN", - "VirtualSensor":true, - "Formula":"WEIGHTED_AVG", - "Combination":[ - "neutral_therm", - "quiet_therm", - "qi_therm2" - ], - "Coefficient":[ - "0.45", - "0.35", - "0.15" - ], - "Offset":1800, - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN" - ], - "VrThreshold":"NAN", - "Multiplier":0.001 - }, - { - "Name":"VIRTUAL-SKIN", - "Type":"SKIN", - "VirtualSensor":true, - "TriggerSensor":"neutral_therm", - "Formula":"MINIMUM", - "Combination":[ - "VIRTUAL-NEUTRAL-QUIET-QI2-0", - "VIRTUAL-NEUTRAL-QUIET-QI2-1" - ], - "Coefficient":[ - "1.0", - "1.0" - ], - "HotThreshold":[ - "NAN", - "39.0", - "43.0", - "45.0", - "47.0", - "51.0", - "55.0" - ], - "HotHysteresis":[ - "0.0", - "1.9", - "1.9", - "1.9", - "1.9", - "1.9", - "1.9" - ], - "VrThreshold":"NAN", - "Multiplier":0.001, - "SendPowerHint":true, - "Monitor":true, - "PollingDelay":300000, - "PassiveDelay":7000, - "PIDInfo": { - "K_Po":["NAN", "NAN", 1500, 1500, "NAN", "NAN", "NAN"], - "K_Pu":["NAN", "NAN", 1500, 750, "NAN", "NAN", "NAN"], - "K_I":["NAN", "NAN", 20, 0, "NAN", "NAN", "NAN"], - "K_D":["NAN", "NAN", 10, 0, "NAN", "NAN", "NAN"], - "I_Max":["NAN", "NAN", 1000, 0, "NAN", "NAN", "NAN"], - "S_Power":["NAN", "NAN", 3500, 1800, "NAN", "NAN", "NAN"], - "MinAllocPower":["NAN", "NAN", 2500, 1500, "NAN", "NAN", "NAN"], - "MaxAllocPower":["NAN", "NAN", 9500, 3000, "NAN", "NAN", "NAN"], - "I_Cutoff":["NAN", "NAN", 2, 0, "NAN", "NAN", "NAN"] - }, - "BindedCdevInfo": [ - { - "CdevRequest": "thermal-cpufreq-0", - "CdevWeightForPID": [0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07], - "CdevCeiling": [3, 3, 6, 7, 8, 10, 10], - "LimitInfo": [0, 0, 0, 0, 8, 10, 10], - "BindedPowerRail": "S4M_VDD_CPUCL0", - "PowerThreshold": [200, 200, 200, 200, 50, 0, 0], - "ReleaseLogic": "DECREASE" - }, - { - "CdevRequest": "thermal-cpufreq-1", - "CdevWeightForPID": [0.066, 0.066, 0.066, 0.066, 0.066, 0.066, 0.066], - "CdevCeiling": [7, 7, 8, 9, 11, 13, 13], - "LimitInfo": [0, 0, 0, 0, 11, 13, 13], - "BindedPowerRail": "S3M_VDD_CPUCL1", - "PowerThreshold": [200, 200, 200, 200, 50, 0, 0], - "ReleaseLogic": "DECREASE" - }, - { - "CdevRequest": "thermal-cpufreq-2", - "CdevWeightForPID": [0.313, 0.313, 0.313, 0.313, 0.313, 0.313, 0.313], - "CdevCeiling": [11, 11, 14, 14, 14, 16, 16], - "LimitInfo": [0, 0, 0, 0, 14, 16, 16], - "BindedPowerRail": "S2M_VDD_CPUCL2", - "PowerThreshold": [200, 200, 200, 200, 50, 0, 0], - "ReleaseLogic": "DECREASE" - }, - { - "CdevRequest": "thermal-gpufreq-0", - "CdevWeightForPID": [0.551, 0.551, 0.551, 0.551, 0.551, 0.551, 0.551], - "CdevCeiling": [7, 7, 8, 9, 10, 11, 11], - "LimitInfo": [0, 0, 0, 0, 10, 11, 11], - "BindedPowerRail": "S2S_VDD_G3D", - "PowerThreshold": [200, 200, 200, 200, 50, 0, 0], - "ReleaseLogic": "DECREASE" - }, - { - "CdevRequest": "tpu_cooling", - "LimitInfo": [0, 1, 2, 3, 4, 4, 4] - }, - { - "CdevRequest": "fcc", - "LimitInfo": [0, 1, 2, 3, 5, 5, 5] - }, - { - "CdevRequest": "dc_icl", - "LimitInfo": [0, 1, 2, 3, 4, 4, 4] - } - ] - }, - { - "Name":"cellular-emergency", - "Type":"POWER_AMPLIFIER", - "VirtualSensor":true, - "TriggerSensor":"neutral_therm", - "Formula":"MINIMUM", - "Combination":[ - "VIRTUAL-NEUTRAL-QUIET-QI2-0", - "VIRTUAL-NEUTRAL-QUIET-QI2-1" - ], - "Coefficient":[ - "1.0", - "1.0" - ], - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "53.0", - "NAN" - ], - "HotHysteresis":[ - "0.0", - "0.0", - "0.0", - "0.0", - "0.0", - "1.9", - "0.0" - ], - "VrThreshold":"NAN", - "Multiplier":0.001, - "Monitor":true, - "PollingDelay":300000, - "PassiveDelay":7000 - }, - { - "Name":"battery", - "Type":"BATTERY", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN" - ], - "VrThreshold":"NAN", - "Multiplier":0.001, - "Monitor":false - }, - { - "Name":"battery_cycle", - "Type":"BCL_VOLTAGE", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - "NAN" - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":false - }, - { - "Name":"critical-battery-cell", - "Type":"BCL_VOLTAGE", - "VirtualSensor":true, - "Formula":"COUNT_THRESHOLD", - "TriggerSensor": "vdroop1", - "Combination":[ - "battery", - "battery_cycle", - "vdroop1" - ], - "Coefficient":[ - "-10000", - "400", - "1000" - ], - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - "NAN", - 3.00, - "NAN" - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true - }, - { - "Name":"FLASH_LED_REDUCE", - "Type":"UNKNOWN", - "VirtualSensor":true, - "Formula":"COUNT_THRESHOLD", - "TriggerSensor": "vdroop1", - "Combination":[ - "battery", - "battery_cycle", - "vdroop1" - ], - "Coefficient":[ - "-10000", - "400", - "1200" - ], - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 3.00, - "NAN", - "NAN" - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true, - "SendPowerHint":true - }, - { - "Name":"soc", - "Type":"BCL_PERCENTAGE", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - 90, - 93, - 96, - "NAN" - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true, - "PollingDelay":300000, - "PassiveDelay":5000, - "BindedCdevInfo": [ - { - "CdevRequest": "thermal-cpufreq-2", - "LimitInfo": [0, 0, 0, 7, 7, 10, 10] - }, - { - "CdevRequest": "thermal-gpufreq-0", - "LimitInfo": [0, 0, 0, 0, 0, 7, 11] - }, - { - "CdevRequest": "tpu_cooling", - "LimitInfo": [0, 0, 0, 0, 0, 4, 5] - } - ] - }, - { - "Name":"batoilo", - "Type":"BCL_CURRENT", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 5000, - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 100, - 0.0, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true, - "BindedCdevInfo": [ - { - "CdevRequest": "thermal-cpufreq-2", - "LimitInfo": [0, 0, 0, 0, 7, 10, 10] - }, - { - "CdevRequest": "thermal-gpufreq-0", - "LimitInfo": [0, 0, 0, 0, 10, 11, 11] - }, - { - "CdevRequest": "tpu_cooling", - "LimitInfo": [0, 0, 0, 0, 4, 4, 4] - } - ] - }, - { - "Name":"vdroop1", - "Type":"BCL_VOLTAGE", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 1000, - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 100, - 0.0, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true, - "BindedCdevInfo": [ - { - "CdevRequest": "thermal-cpufreq-2", - "LimitInfo": [0, 0, 0, 0, 7, 10, 10] - }, - { - "CdevRequest": "thermal-gpufreq-0", - "LimitInfo": [0, 0, 0, 0, 7, 7, 7] - }, - { - "CdevRequest": "tpu_cooling", - "LimitInfo": [0, 0, 0, 0, 4, 4, 4] - } - ] - }, - { - "Name":"vdroop2", - "Type":"BCL_VOLTAGE", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 1200, - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 100, - 0.0, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true, - "BindedCdevInfo": [ - { - "CdevRequest": "thermal-cpufreq-2", - "LimitInfo": [0, 0, 0, 0, 7, 10, 10] - }, - { - "CdevRequest": "thermal-gpufreq-0", - "LimitInfo": [0, 0, 0, 0, 15, 15, 15] - }, - { - "CdevRequest": "tpu_cooling", - "LimitInfo": [0, 0, 0, 0, 4, 4, 4] - } - ] - }, - { - "Name":"smpl_gm", - "Type":"BCL_VOLTAGE", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 1100, - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 100, - 0.0, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true, - "BindedCdevInfo": [ - { - "CdevRequest": "thermal-cpufreq-2", - "LimitInfo": [0, 0, 0, 0, 7, 10, 10] - }, - { - "CdevRequest": "thermal-gpufreq-0", - "LimitInfo": [0, 0, 0, 0, 13, 13, 13] - }, - { - "CdevRequest": "tpu_cooling", - "LimitInfo": [0, 0, 0, 0, 4, 4, 4] - } - ] - }, - { - "Name":"ocp_cpu1", - "Type":"BCL_CURRENT", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 7000, - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 100, - 0.0, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true - }, - { - "Name":"ocp_cpu2", - "Type":"BCL_CURRENT", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 12000, - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 100, - 0.0, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true - }, - { - "Name":"ocp_tpu", - "Type":"BCL_CURRENT", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 10500, - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 100, - 0.0, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true - }, - { - "Name":"ocp_gpu", - "Type":"BCL_CURRENT", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 12000, - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 100, - 0.0, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true - }, - { - "Name":"soft_ocp_cpu2", - "Type":"BCL_CURRENT", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 12000, - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 100, - 0.0, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true - }, - { - "Name":"soft_ocp_cpu1", - "Type":"BCL_CURRENT", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 7000, - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 100, - 0.0, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true - }, - { - "Name":"soft_ocp_tpu", - "Type":"BCL_CURRENT", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 8500, - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 100, - 0.0, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true - }, - { - "Name":"soft_ocp_gpu", - "Type":"BCL_CURRENT", - "HotThreshold":[ - "NAN", - "NAN", - "NAN", - "NAN", - 9000, - "NAN", - "NAN" - ], - "HotHysteresis":[ - 0.0, - 0.0, - 0.0, - 0.0, - 100, - 0.0, - 0.0 - ], - "VrThreshold":"NAN", - "Multiplier":1, - "Monitor":true - } - ], - "CoolingDevices":[ - { - "Name":"thermal-cpufreq-0", - "Type":"CPU", - "WritePath":"/dev/thermal/cdev-by-name/thermal-cpufreq-0/user_vote", - "State2Power":["412", "352", "308", "236", "212", "176", "152", "116", "76", "56", "24"], - "PowerRail":"S4M_VDD_CPUCL0" - }, - { - "Name":"thermal-cpufreq-1", - "Type":"CPU", - "WritePath":"/dev/thermal/cdev-by-name/thermal-cpufreq-1/user_vote", - "State2Power":["1198", "1018", "854", "696", "566", "452", "356", "296", "226", "188", "152", "124", "90", "58"], - "PowerRail":"S3M_VDD_CPUCL1" - }, - { - "Name":"thermal-cpufreq-2", - "Type":"CPU", - "WritePath":"/dev/thermal/cdev-by-name/thermal-cpufreq-2/user_vote", - "State2Power":["4208", "3692", "3370", "2898", "2562", "2240", "2084", "1780", "1424", "1276", "1042", "858", "714", "560", "448", "364", "166"], - "PowerRail":"S2M_VDD_CPUCL2" - }, - { - "Name":"thermal-gpufreq-0", - "Type":"GPU", - "WritePath":"/dev/thermal/cdev-by-name/thermal-gpufreq-0/user_vote", - "State2Power":["4371", "3543", "3085", "2293", "1927", "1707", "1394", "1171", "967", "768", "592", "433"], - "PowerRail":"S2S_VDD_G3D" - }, - { - "Name":"fcc", - "Type":"BATTERY" - }, - { - "Name":"dc_icl", - "Type":"BATTERY" - }, - { - "Name":"tpu_cooling", - "Type":"NPU", - "WritePath":"/dev/thermal/cdev-by-name/tpu_cooling/user_vote" - } - ], - "PowerRails":[ - { - "Name":"S2M_VDD_CPUCL2", - "PowerSampleDelay":14000, - "PowerSampleCount":5 - }, - { - "Name":"S3M_VDD_CPUCL1", - "PowerSampleDelay":14000, - "PowerSampleCount":5 - }, - { - "Name":"S4M_VDD_CPUCL0", - "PowerSampleDelay":14000, - "PowerSampleCount":5 - }, - { - "Name":"S2S_VDD_G3D", - "PowerSampleDelay":14000, - "PowerSampleCount":5 - } - ] -}