diff options
author | Lei YU <yulei.sh@bytedance.com> | 2020-12-31 10:15:43 +0300 |
---|---|---|
committer | Lei YU <yulei.sh@bytedance.com> | 2021-08-20 12:37:19 +0300 |
commit | ac505e7e62d9fed96829aa9e04ab162b70974c95 (patch) | |
tree | 57615de551dd8e4a501d6dd9b9a5aba53564504a /meta-bytedance/meta-g220a | |
parent | 07382e87e7273836322e0c3abf617bb0b08c2ea1 (diff) | |
download | openbmc-ac505e7e62d9fed96829aa9e04ab162b70974c95.tar.xz |
bytedance: g220a: Add VR related virtual sensors
Add below virtual sensors based on VR sensors:
P0_DIMM_VR_Pwr = CPU0_DIMM_VR_0_Input_Power + CPU0_DIMM_VR_1_Input_Power
P1_DIMM_VR_Pwr = CPU1_DIMM_VR_0_Output_Voltage + CPU1_DIMM_VR_1_Output_Voltage
CPU0_VR_Pwr = CPU0_VR_0_Input_Power + CPU0_VR_1_Input_Power + CPU0_VR_2_Input_Power
CPU1_VR_Pwr = CPU1_VR_0_Input_Power + CPU1_VR_1_Input_Power + CPU1_VR_2_Input_Power
CPU0_VR_Temp = max(CPU0_VR_0_Temperature, CPU0_VR_1_Temperature, CPU0_VR_2_Temperature)
CPU1_VR_Temp = max(CPU1_VR_0_Temperature , CPU1_VR_1_Temperature, CPU1_VR_2_Temperature)
P0_DIMM_VR_Temp = max(CPU0_DIMM_VR_0_Temperature, CPU0_DIMM_VR_1_Temperature)
P1_DIMM_VR_Temp = max(CPU1_DIMM_VR_0_Temperature, CPU1_DIMM_VR_1_Temperature)
Tested: Verify the above sensors appear on DBus and the values are
expected.
Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: I9412e7da1a147b64cb43a5f9981042623cfb6423
Diffstat (limited to 'meta-bytedance/meta-g220a')
-rw-r--r-- | meta-bytedance/meta-g220a/recipes-phosphor/sensors/phosphor-virtual-sensor/virtual_sensor_config.json | 292 |
1 files changed, 292 insertions, 0 deletions
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/sensors/phosphor-virtual-sensor/virtual_sensor_config.json b/meta-bytedance/meta-g220a/recipes-phosphor/sensors/phosphor-virtual-sensor/virtual_sensor_config.json index 0aacc030f..6610184e8 100644 --- a/meta-bytedance/meta-g220a/recipes-phosphor/sensors/phosphor-virtual-sensor/virtual_sensor_config.json +++ b/meta-bytedance/meta-g220a/recipes-phosphor/sensors/phosphor-virtual-sensor/virtual_sensor_config.json @@ -28,5 +28,297 @@ ] }, "Expression": "T0 + T1" + }, + { + "Desc": + { + "Name": "P0_DIMM_VR_Pwr", + "SensorType": "power" + }, + "Params": + { + "DbusParam": + [ + { + "ParamName": "T0", + "Desc": + { + "Name": "CPU0_DIMM_VR_0_Input_Power", + "SensorType": "power" + } + }, + { + "ParamName": "T1", + "Desc": + { + "Name": "CPU0_DIMM_VR_1_Input_Power", + "SensorType": "power" + } + } + ] + }, + "Expression": "T0 + T1" + }, + { + "Desc": + { + "Name": "P1_DIMM_VR_Pwr", + "SensorType": "power" + }, + "Params": + { + "DbusParam": + [ + { + "ParamName": "T0", + "Desc": + { + "Name": "CPU1_DIMM_VR_0_Input_Power", + "SensorType": "power" + } + }, + { + "ParamName": "T1", + "Desc": + { + "Name": "CPU1_DIMM_VR_1_Input_Power", + "SensorType": "power" + } + } + ] + }, + "Expression": "T0 + T1" + }, + { + "Desc": + { + "Name": "CPU0_VR_Pwr", + "SensorType": "power" + }, + "Params": + { + "DbusParam": + [ + { + "ParamName": "T0", + "Desc": + { + "Name": "CPU0_VR_0_Input_Power", + "SensorType": "power" + } + }, + { + "ParamName": "T1", + "Desc": + { + "Name": "CPU0_VR_1_Input_Power", + "SensorType": "power" + } + }, + { + "ParamName": "T2", + "Desc": + { + "Name": "CPU0_VR_2_Input_Power", + "SensorType": "power" + } + } + ] + }, + "Expression": "T0 + T1 + T2" + }, + { + "Desc": + { + "Name": "CPU1_VR_Pwr", + "SensorType": "power" + }, + "Params": + { + "DbusParam": + [ + { + "ParamName": "T0", + "Desc": + { + "Name": "CPU1_VR_0_Input_Power", + "SensorType": "power" + } + }, + { + "ParamName": "T1", + "Desc": + { + "Name": "CPU1_VR_1_Input_Power", + "SensorType": "power" + } + }, + { + "ParamName": "T2", + "Desc": + { + "Name": "CPU1_VR_2_Input_Power", + "SensorType": "power" + } + } + ] + }, + "Expression": "T0 + T1 + T2" + }, + { + "Desc": + { + "Name": "P0_DIMM_VR_Temp", + "SensorType": "temperature" + }, + "Threshold" : + { + "CriticalHigh": 125, + "WarningHigh": 105 + }, + "Params": + { + "DbusParam": + [ + { + "ParamName": "T0", + "Desc": + { + "Name": "CPU0_DIMM_VR_0_Temperature", + "SensorType": "temperature" + } + }, + { + "ParamName": "T1", + "Desc": + { + "Name": "CPU0_DIMM_VR_1_Temperature", + "SensorType": "temperature" + } + } + ] + }, + "Expression": "max(T0, T1)" + }, + { + "Desc": + { + "Name": "P1_DIMM_VR_Temp", + "SensorType": "temperature" + }, + "Threshold" : + { + "CriticalHigh": 125, + "WarningHigh": 105 + }, + "Params": + { + "DbusParam": + [ + { + "ParamName": "T0", + "Desc": + { + "Name": "CPU1_DIMM_VR_0_Temperature", + "SensorType": "temperature" + } + }, + { + "ParamName": "T1", + "Desc": + { + "Name": "CPU1_DIMM_VR_1_Temperature", + "SensorType": "temperature" + } + } + ] + }, + "Expression": "max(T0, T1)" + }, + { + "Desc": + { + "Name": "CPU0_VR_Temp", + "SensorType": "temperature" + }, + "Threshold" : + { + "CriticalHigh": 125, + "WarningHigh": 105 + }, + "Params": + { + "DbusParam": + [ + { + "ParamName": "T0", + "Desc": + { + "Name": "CPU0_VR_0_Temperature", + "SensorType": "temperature" + } + }, + { + "ParamName": "T1", + "Desc": + { + "Name": "CPU0_VR_1_Temperature", + "SensorType": "temperature" + } + }, + { + "ParamName": "T2", + "Desc": + { + "Name": "CPU0_VR_2_Temperature", + "SensorType": "temperature" + } + } + ] + }, + "Expression": "max(T0, T1, T2)" + }, + { + "Desc": + { + "Name": "CPU1_VR_Temp", + "SensorType": "temperature" + }, + "Threshold" : + { + "CriticalHigh": 125, + "WarningHigh": 105 + }, + "Params": + { + "DbusParam": + [ + { + "ParamName": "T0", + "Desc": + { + "Name": "CPU1_VR_0_Temperature", + "SensorType": "temperature" + } + }, + { + "ParamName": "T1", + "Desc": + { + "Name": "CPU1_VR_1_Temperature", + "SensorType": "temperature" + } + }, + { + "ParamName": "T2", + "Desc": + { + "Name": "CPU1_VR_2_Temperature", + "SensorType": "temperature" + } + } + ] + }, + "Expression": "max(T0, T1, T2)" } ] |