Orchestration: resiliency state machine#302
Draft
rusty1968 wants to merge 1 commit into
Draft
Conversation
|
The original ASPEED-PFR state machine has a super state concept, it helps to control BMC/Host's reset when entering or leaving T-1 (Preboot) vs T0(Runtime). It seems the current design doesn't have this in mind. For the run action, there are three handler function for each state, i.e. enter/run/exit, and two hander function for super state, i.e. enter/exit, for example: stateDiagram-v2
[*] --> A: e0
state Tmin1 {
A --> B: e1
C --> A: e4
}
state Tzero {
B --> B: e2
B --> C: e3
}
|
Rename target/ast10x0/pfr/ to platform/ to use domain-neutral naming. No code changes. Fix transitions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces the state machine component of the Orchestrator. It is pure transition logic only, no platform I/O.
The SM is the resiliency policy authority: it defines what happens, in what order, and under what conditions. Policy is expressed as a Hierarchical State Machine (HSM) that enforces correct sequencing through state transitions and entry/exit actions — not through ad-hoc logic scattered across a platform implementation.