From 775975496da2c0fcb0d6e5de19577c4daa019859 Mon Sep 17 00:00:00 2001 From: Konstantin Aladyshev Date: Fri, 23 Jul 2021 11:39:44 +0300 Subject: 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 Change-Id: I80390bb0baa291e7a9d5b49b2e9542cef719da69 --- .../entity-manager/ethanolx-baseboard.json | 66 ++++++++++++++++++++++ .../ethanolx-ipmi-sensors.yaml | 40 +++++++++++++ 2 files changed, 106 insertions(+) (limited to 'meta-amd') 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 -- cgit v1.2.3