Hardware/Software Interface
Page 107
5.3.1.14
Clear Error Registers
This command allows clearing the Reset Reason Register, Last Error Register and Power
Failure Flag Register, collectively called ’error registers’.
Table 93.
BMC API – Clear error registers command
Command ERR_REG_CLR
5.3.1.15
Power Cycle Counter
The power cycle counter counts the number of power cycles of the external power
supply, i.e. the number of times the system changes from S5 into S0 state.
S0 to S5 are the power states as defined in the ACPI specification, or an equivalent state.
The counter is set to zero during factory programming.
Table 94.
BMC API – Power cycle counter command
Command PWRCYCL_CNT
Command
Packet Type
Opcode
Functional Description
ERR_REG_CLR
PT_WBD
0x9F
Clear error registers
Opcode:
0x9F
Packet Type:
PT_WBD
Bit
7
6
5
4
3
2
1
0
Data
0x69
See the ACPI Specification for more details on the power states S0 to S5:
Advanced Configuration and Power Interface Specification Version 6.1
January, 2016
Unified EFI Forum
Command
Packet Type
Opcode
Functional Description
PWRCYCL_CNT
PT_RWD
0x93
Get power cycle counter
Opcode:
0x93
Packet Type:
PT_RWD
Bit
7
6
5
4
3
2
1
0
Data 0
PWR_CYCLES
(LSB)
Data 1
PWR_CYCLES
(MSB)
Bit Field
Description
PWR_CYCLES
Number of power cycles on the external power supply