Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions doc/smart-switch/pmon/images/dpu-reboot-seq.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
%%{init: {
"theme": "default",
"themeVariables": {
"actorBkg": "#eaeaea",
"actorBorder": "#666",
"actorTextColor": "#333",
"actorLineColor": "#999",
"signalColor": "#333",
"signalTextColor": "#333",
"labelBoxBkgColor": "#eaeaea",
"labelBoxBorderColor": "#666",
"labelTextColor": "#333",
"loopTextColor": "#333",
"activationBkgColor": "#f4f4f4",
"activationBorderColor": "#666",
"noteBkgColor": "#fff5ad",
"noteBorderColor": "#aaaa33",
"noteTextColor": "#333"
}
}}%%

sequenceDiagram
actor User
participant HostService as NPU: host-service
participant StateDB as NPU: stateDB
participant DpuChassisd as DPU: chassisd
participant ChassisStateDB as NPU: chassisStateDB
participant Chassisd as NPU: chassisd
participant PlatformAPI as NPU: platform API

User->>HostService: Input: PowerOn or Reboot config or CLI
HostService->>HostService: determine-reboot-cause
HostService->>HostService: update-reboot-cause
activate HostService
HostService->>StateDB: update-reboot-cause
HostService->>ChassisStateDB: update-reboot-cause
HostService->>HostService: end processing
deactivate HostService

DpuChassisd->>ChassisStateDB: publish current boot_id when reachable
ChassisStateDB-->>Chassisd: boot_id appears or changes
activate Chassisd
Chassisd->>Chassisd: compare with persisted boot_id

alt boot_id differs or no valid baseline exists
Chassisd->>PlatformAPI: get-reboot-cause
activate PlatformAPI
PlatformAPI-->>Chassisd: reboot-cause
deactivate PlatformAPI
Chassisd->>Chassisd: persist history record with boot_id
Chassisd->>ChassisStateDB: refresh REBOOT_CAUSE entries
else boot_id is unchanged
Chassisd->>Chassisd: no new record
end

deactivate Chassisd
Loading