Chapter 5. Appendix

5.1. Hot Swap Model

The full Hot Swap Model is illustrated as a state machine.

5.1.1. Hot Swap States

State Name Description
S1 NOT PRESENT
S2 INSERTION PENDING
S3 ACTIVE/HEALTHY, ACTIVE/UNHEALTHY
S4 EXTRACTION PENDING
S5 INACTIVE

5.1.2. Hot Swap Events

Event Name Description
E1 FRU is inserted in system
E2 Insertion auto-insert policy completes
E3 saHpiResourceActiveSet()
E4 FRU is removed from system
E5 Eject latch
E6 saHpiHotSwapActionRequest(SAHPI_HS_ACTION_EXTRACTION)
E7 Extraction auto-extract policy completes
E8 saHpiResourceInActiveSet()
E9 Inject latch
E10 saHpiHotSwapActionRequest(SAHPI_HS_ACTION_INSERTION)

5.1.3. Hot Swap Actions

Action Name Description
A1 Event is issued by resource showing transition from "NOT PRESENT" to "INSERTION PENDING"
A2 Event is issued by resource showing transition from "INSERTION PENDING" to "ACTIVE/HEALTHY" or "ACTIVE/UNHEALTHY"
A3 Event is issued by domain(s) showing transition from whichever state it was in to "NOT PRESENT"
A4 Event is issued by domain(s) showing transition from "ACTIVE/HEALTHY" or "ACTIVE/UNHEALTHY" to "EXTRACTION PENDING"
A5 Event is issued by resource showing transition from "EXTRACTION PENDING" to "INACTIVE"
A6 Event is issued by domain(s) showing transition from "INACTIVE" to "INSERTION

5.1.4. Hot Swap State Machine Table

  E1 E2 E3 E4 E5 E6 E7 E8 E9 E10
S1 S2/A1 NA NA NA NA NA NA NA NA NA
S2 NA S3/A2 S3/A2 S1/A3 NA NA NA NA NA NA
S3 NA NA NA S1/A3 S4/A4 S4/A4 NA NA NA NA
S4 NA NA NA S1/A3 NA NA S5/A5 S5/A5 NA NA
S5 NA NA NA S1/A3 S2/A6 NA NA NA S2/A6 NA

Note: NA means Not Available