Add GPU to inventory
Added GPUs to the ipmi sensor inventory mrw config.
Resolves openbmc/openbmc#1725
Change-Id: Ifbf60475462d5639488fbf8278e57e5d09ae5067
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/common/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw-config/config.yaml b/common/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw-config/config.yaml
index 7666265..847e269 100644
--- a/common/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw-config/config.yaml
+++ b/common/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw-config/config.yaml
@@ -147,3 +147,27 @@
0x01:
type: "bool"
assert: true
+
+gpu_func_sensor:
+ serviceInterface: xyz.openbmc_project.Inventory.Manager
+ readingType: assertion
+ interfaces:
+ xyz.openbmc_project.State.Decorator.OperationalStatus:
+ Functional:
+ Offsets:
+ 0x08:
+ type: "bool"
+ assert: false
+ deassert: true
+ Prereqs:
+ 0x07:
+ type: "bool"
+ assert: true
+ deassert: false
+ xyz.openbmc_project.Inventory.Item:
+ Present:
+ Offsets:
+ 0x07:
+ type: "bool"
+ assert: true
+ deassert: false