Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eBMC LED Management :: Clear Fault LEDs during PowerOn #3228

Closed
vishwabmc opened this issue Jun 15, 2021 · 5 comments
Closed

eBMC LED Management :: Clear Fault LEDs during PowerOn #3228

vishwabmc opened this issue Jun 15, 2021 · 5 comments
Assignees
Milestone

Comments

@vishwabmc
Copy link

#2115 added a code to clear both Identify and Fault Indicator LEDs as part of power on. However, we need a small update to that path because the faults are handled via setting the OperationalStatus on the Inventory object as opposed to setting fault led and thus LED setting OperationalStatus.

Here is the summary of the changes needed to be done .

  • Update meta-ibm/recipes-phosphor/leds/phosphor-led-manager/obmc/led/set-all/groups/config to exclude _fault groups.
    EXCLUDED_GROUPS=bmc_booted power_on _fault

  • Write a new shell script that would

    • List all the inventory D-Bus objects implementing xyz.openbmc_project.State.Decorator.OperationalStatus
    • For each of those : set Functional property to true

Make sure this new shell script gets called in all places where the led-set-all-groups-asserted.sh is getting called

Refer: meta-ibm/recipes-phosphor/leds/phosphor-led-manager/obmc-led-set-all-groups-asserted@.service on how to invoke that script

@rfrandse rfrandse added this to the A.1.213.2 milestone Jun 18, 2021
@mzipse mzipse modified the milestones: A.1.213.2, A.1.213.9 Jun 22, 2021
@vishwabmc
Copy link
Author

There is an additional work here and that is as below :

  • In addition to setting the OperationalStatus, do the one below :
    • Remove the critical association that is set with Chassis.

If fan0_fault is what we are acting on to clear the fault, then just remove the critical association.
Ex : Remove this association : /xyz/openbmc_project/inventory/system/chassis/critical --> /xyz/openbmc_project/inventory/system/chassis/motherboard/fan0

  • Better yet, don't do per objects.. delete all the associations that is /xyz/openbmc_project/inventory/system/chassis/critical

Please see @spinler if there is a way to do this via script..

@lkammath
Copy link

lkammath commented Aug 4, 2021

https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-led-manager/+/45616
https://gerrit.openbmc-project.xyz/c/openbmc/openbmc/+/45615

These two commits take care of the fault clear part

The additional work mentioned to remove the critical association will be handled with separate commit

@lkammath
Copy link

As per the design direction plan is to move the script to PIM and write the supporting the recipe . Here are PR's for same

ibm-openbmc/phosphor-inventory-manager#1
ibm-openbmc/openbmc#185

@lkammath
Copy link

ibm-openbmc/phosphor-inventory-manager#1 - OperationalStatus related script changes
ibm-openbmc/phosphor-inventory-manager#3 - App to remove critical association
https://github.ibm.com/openbmc/openbmc/pull/1394 - Recipe changes to call both script and remove critical association

@lkammath
Copy link

lkammath commented Sep 25, 2021

https://github.ibm.com/openbmc/openbmc/pull/1401 - PIM SRCREV bump and recipe changes are merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants