summaryrefslogtreecommitdiff
path: root/meta-ampere
diff options
context:
space:
mode:
authorHieu Huynh <hieuh@os.amperecomputing.com>2024-01-29 10:52:42 +0300
committerHieu Huynh <hieuh@os.amperecomputing.com>2024-01-29 10:52:42 +0300
commit94e479869b113c2642de28a3dc46e393279ff242 (patch)
tree9eff2a12a75143df88cc677f351a6eb317012416 /meta-ampere
parent0b6e1c093f73abd210240cfc177bb377c1c975ef (diff)
downloadopenbmc-94e479869b113c2642de28a3dc46e393279ff242.tar.xz
meta-ampere: mtmitchell: separate FAN Led group for each FAN
Currently just one LED group for FAN fault check. This causes FAN fault LED might be changed to OFF even when still having failure on some FANs. This commit changes to have LED group for each FAN to fix this issue. Tested: 1. Unplug two random FANs 2. Plug one FAN into the board and verify that FAN Led status is still on 3. Plug all FAN into the board and verify that FAN Led status is off. Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com> Change-Id: I8cf2eeafbe7372b0eda85c133e88a228b5cd0a2a
Diffstat (limited to 'meta-ampere')
-rw-r--r--meta-ampere/meta-mitchell/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json12
-rw-r--r--meta-ampere/meta-mitchell/recipes-phosphor/leds/phosphor-led-manager/com.ampere.Hardware.Chassis.Model.MtMitchell.json87
2 files changed, 92 insertions, 7 deletions
diff --git a/meta-ampere/meta-mitchell/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json b/meta-ampere/meta-mitchell/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json
index 1a55553ded..4afaca0665 100644
--- a/meta-ampere/meta-mitchell/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json
+++ b/meta-ampere/meta-mitchell/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json
@@ -21,7 +21,7 @@
"fType": "fault_identifying"
},
"paths": [
- "/xyz/openbmc_project/led/groups/fan_fault"
+ "/xyz/openbmc_project/led/groups/fan0_fault"
]
},
{
@@ -59,7 +59,7 @@
"fType": "fault_identifying"
},
"paths": [
- "/xyz/openbmc_project/led/groups/fan_fault"
+ "/xyz/openbmc_project/led/groups/fan1_fault"
]
},
{
@@ -97,7 +97,7 @@
"fType": "fault_identifying"
},
"paths": [
- "/xyz/openbmc_project/led/groups/fan_fault"
+ "/xyz/openbmc_project/led/groups/fan2_fault"
]
},
{
@@ -135,7 +135,7 @@
"fType": "fault_identifying"
},
"paths": [
- "/xyz/openbmc_project/led/groups/fan_fault"
+ "/xyz/openbmc_project/led/groups/fan3_fault"
]
},
{
@@ -173,7 +173,7 @@
"fType": "fault_identifying"
},
"paths": [
- "/xyz/openbmc_project/led/groups/fan_fault"
+ "/xyz/openbmc_project/led/groups/fan4_fault"
]
},
{
@@ -211,7 +211,7 @@
"fType": "fault_identifying"
},
"paths": [
- "/xyz/openbmc_project/led/groups/fan_fault"
+ "/xyz/openbmc_project/led/groups/fan5_fault"
]
},
{
diff --git a/meta-ampere/meta-mitchell/recipes-phosphor/leds/phosphor-led-manager/com.ampere.Hardware.Chassis.Model.MtMitchell.json b/meta-ampere/meta-mitchell/recipes-phosphor/leds/phosphor-led-manager/com.ampere.Hardware.Chassis.Model.MtMitchell.json
index 098c3fdb65..8cd5d1beae 100644
--- a/meta-ampere/meta-mitchell/recipes-phosphor/leds/phosphor-led-manager/com.ampere.Hardware.Chassis.Model.MtMitchell.json
+++ b/meta-ampere/meta-mitchell/recipes-phosphor/leds/phosphor-led-manager/com.ampere.Hardware.Chassis.Model.MtMitchell.json
@@ -59,7 +59,92 @@
]
},
{
- "group": "fan_fault",
+ "group": "fan0_fault",
+ "members": [
+ {
+ "Name": "fan_fault",
+ "Action": "On",
+ "DutyOn": 50,
+ "Period": 1000
+ },
+ {
+ "Name": "fault",
+ "Action": "On",
+ "DutyOn": 50,
+ "Period": 1000
+ }
+ ]
+ },
+ {
+ "group": "fan1_fault",
+ "members": [
+ {
+ "Name": "fan_fault",
+ "Action": "On",
+ "DutyOn": 50,
+ "Period": 1000
+ },
+ {
+ "Name": "fault",
+ "Action": "On",
+ "DutyOn": 50,
+ "Period": 1000
+ }
+ ]
+ },
+ {
+ "group": "fan2_fault",
+ "members": [
+ {
+ "Name": "fan_fault",
+ "Action": "On",
+ "DutyOn": 50,
+ "Period": 1000
+ },
+ {
+ "Name": "fault",
+ "Action": "On",
+ "DutyOn": 50,
+ "Period": 1000
+ }
+ ]
+ },
+ {
+ "group": "fan3_fault",
+ "members": [
+ {
+ "Name": "fan_fault",
+ "Action": "On",
+ "DutyOn": 50,
+ "Period": 1000
+ },
+ {
+ "Name": "fault",
+ "Action": "On",
+ "DutyOn": 50,
+ "Period": 1000
+ }
+ ]
+ },
+ {
+ "group": "fan4_fault",
+ "members": [
+ {
+ "Name": "fan_fault",
+ "Action": "On",
+ "DutyOn": 50,
+ "Period": 1000
+ },
+ {
+ "Name": "fault",
+ "Action": "On",
+ "DutyOn": 50,
+ "Period": 1000
+ }
+ ]
+ },
+ {
+ "group": "fan5_fault",
"members": [
{
"Name": "fan_fault",