diff options
author | Konstantin Aladyshev <aladyshev22@gmail.com> | 2021-07-23 11:39:44 +0300 |
---|---|---|
committer | Konstantin Aladyshev <aladyshev22@gmail.com> | 2021-08-30 16:28:22 +0300 |
commit | 775975496da2c0fcb0d6e5de19577c4daa019859 (patch) | |
tree | a65ee1c14600c659c9c437af80e99bdd67f0da9f /meta-amd/meta-ethanolx | |
parent | c16faf8732c28ce43ee0ab1c72c42a71b2ada193 (diff) | |
download | openbmc-775975496da2c0fcb0d6e5de19577c4daa019859.tar.xz |
meta-ethanolx: Support SB-TSI sensors
Populate SB-TSI CPU sensors to the system.
This change make SB-TSI CPU sensors accessible over DBus, IPMI,
Redfish and webui-vue.
The entity-manager configuration make use of "PowerState: On"
parameter as SB-TSI sensors are active only with a powered on CPU.
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Change-Id: I80390bb0baa291e7a9d5b49b2e9542cef719da69
Diffstat (limited to 'meta-amd/meta-ethanolx')
2 files changed, 106 insertions, 0 deletions
diff --git a/meta-amd/meta-ethanolx/recipes-phosphor/configuration/entity-manager/ethanolx-baseboard.json b/meta-amd/meta-ethanolx/recipes-phosphor/configuration/entity-manager/ethanolx-baseboard.json index cea3d0602..2ae0ff8d5 100644 --- a/meta-amd/meta-ethanolx/recipes-phosphor/configuration/entity-manager/ethanolx-baseboard.json +++ b/meta-amd/meta-ethanolx/recipes-phosphor/configuration/entity-manager/ethanolx-baseboard.json @@ -295,6 +295,72 @@ } ], "Type": "LM75A" + }, + { + "Address": "0x4C", + "Bus": 0, + "Name": "CPU0", + "PowerState": "On", + "Thresholds": [ + { + "Direction": "greater than", + "Name": "upper critical", + "Severity": 1, + "Value": 75 + }, + { + "Direction": "greater than", + "Name": "upper non critical", + "Severity": 0, + "Value": 70 + }, + { + "Direction": "less than", + "Name": "lower non critical", + "Severity": 0, + "Value": 5 + }, + { + "Direction": "less than", + "Name": "lower critical", + "Severity": 1, + "Value": 0 + } + ], + "Type": "SBTSI" + }, + { + "Address": "0x48", + "Bus": 1, + "Name": "CPU1", + "PowerState": "On", + "Thresholds": [ + { + "Direction": "greater than", + "Name": "upper critical", + "Severity": 1, + "Value": 75 + }, + { + "Direction": "greater than", + "Name": "upper non critical", + "Severity": 0, + "Value": 70 + }, + { + "Direction": "less than", + "Name": "lower non critical", + "Severity": 0, + "Value": 5 + }, + { + "Direction": "less than", + "Name": "lower critical", + "Severity": 1, + "Value": 0 + } + ], + "Type": "SBTSI" } ], "Name": "AMD EthanolX Baseboard", diff --git a/meta-amd/meta-ethanolx/recipes-phosphor/configuration/ethanolx-yaml-config/ethanolx-ipmi-sensors.yaml b/meta-amd/meta-ethanolx/recipes-phosphor/configuration/ethanolx-yaml-config/ethanolx-ipmi-sensors.yaml index e9a25ccce..6a83fa8d6 100644 --- a/meta-amd/meta-ethanolx/recipes-phosphor/configuration/ethanolx-yaml-config/ethanolx-ipmi-sensors.yaml +++ b/meta-amd/meta-ethanolx/recipes-phosphor/configuration/ethanolx-yaml-config/ethanolx-ipmi-sensors.yaml @@ -326,3 +326,43 @@ Offsets: 0x0: type: double + +17: + sensorType: 0x01 + entityID: 0x03 + path: /xyz/openbmc_project/sensors/temperature/CPU0 + sensorReadingType: 0x01 + unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC + scale: 0 + offsetB: 0 + bExp: 0 + rExp: 0 + mutability: Mutability::Read + serviceInterface: org.freedesktop.DBus.Properties + readingType: readingData + interfaces: + xyz.openbmc_project.Sensor.Value: + Value: + Offsets: + 0xFF: + type: double + +18: + sensorType: 0x01 + entityID: 0x03 + path: /xyz/openbmc_project/sensors/temperature/CPU1 + sensorReadingType: 0x01 + unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC + scale: 0 + offsetB: 0 + bExp: 0 + rExp: 0 + mutability: Mutability::Read + serviceInterface: org.freedesktop.DBus.Properties + readingType: readingData + interfaces: + xyz.openbmc_project.Sensor.Value: + Value: + Offsets: + 0xFF: + type: double |