Skip to content

CFAM: Support FailoverImminent field in CFAM #29

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

Open
wants to merge 1 commit into
base: 1120
Choose a base branch
from

Conversation

spinler
Copy link
Contributor

@spinler spinler commented Jun 24, 2025

This new field is used so that one BMC can tell that the other is starting a failover to allow it to prepare. It will use bit 18 in the first scratchpad register.

Tested:
New unit tests pass

On D-Bus:

$ busctl get-property xyz.openbmc_project.State.BMC.Redundancy.Sibling \
  /xyz/openbmc_project/state/bmc1 \
  xyz.openbmc_project.State.BMC.Redundancy.Sibling FailoverImminent
b false

In cfamstool output:

 $ ./cfamstool -d | grep -e 'Local BMC' -e 'Sibling BMC' -e Imminent
Local BMC CFAM-S scratchpad fields
Failover Imminent          false

Sibling BMC CFAM-S scratchpad fields
Failover Imminent          false

Change-Id: I2c885841aa55a70ec8f6cc8bc84a2b640993302e

This new field is used so that one BMC can tell that the other is
starting a failover to allow it to prepare.  It will use bit 18 in the
first scratchpad register.

Tested:
New unit tests pass

On D-Bus:
```
$ busctl get-property xyz.openbmc_project.State.BMC.Redundancy.Sibling \
  /xyz/openbmc_project/state/bmc1 \
  xyz.openbmc_project.State.BMC.Redundancy.Sibling FailoverImminent
b false
```

In cfamstool output:
```
 $ ./cfamstool -d | grep -e 'Local BMC' -e 'Sibling BMC' -e Imminent
Local BMC CFAM-S scratchpad fields
Failover Imminent          false

Sibling BMC CFAM-S scratchpad fields
Failover Imminent          false
```

Change-Id: I2c885841aa55a70ec8f6cc8bc84a2b640993302e
Signed-off-by: Matt Spinler <[email protected]>
@spinler spinler force-pushed the failover_imminent branch from 5f052a8 to a25e264 Compare June 24, 2025 15:19
@spinler spinler requested a review from RameshIyyar June 24, 2025 15:40
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

Successfully merging this pull request may close these issues.

1 participant