Get Power Saving Configuration
更新时间: 2026/08/06
在Gitcode上查看源码Get Power Saving Configuration
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial draft: add command details |
Basic Information
Function Description
Obtains energy saving configuration parameters.
Privilege
ReadOnly
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | 30h |
| CMD | 93h |
| 1:3 | Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h. |
| 4 | Sub command, sub command=0x25h |
| 5 | Power saving parameter. For details, see Table 1. |
| 6 | Read offset, starting from 0. |
| 7 | Length: read length. |
Response Information
| Byte | Data Field |
|---|---|
| 1 | Completion Code |
| 2:4 | Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h. |
| 5 | End of list, indicating whether the data reading is complete. Long data may need to be read multiple times. This field is used to check whether data is completely read. [7:1]-reserved [0]: End of list 0=last data. 1=middle data |
| 6:N | Indicates the data. The returned data may be less than or equal to the read length. |
Reference Information
Table 1 Power Saving Parameter
| Parameter | - | Parameter Data | No. (Decimal) |
|---|---|---|---|
| Number Of P-States/T-States | read-only | data1- Get Number Of P-States data2- Get Number Of T-States Get the maximum number of P-/T-states supported by the current CPU. | 1 |
| Max Allowed CPU P-state/T- state | read-write | data1-Get Max Allowed P-States data2-Get Max Allowed T-States The maximum P/T state supported by the current CPU is read and set. P0 and T0 are the largest. | 2 |
| Current PS Work Mode | read-only | data1-Get Power Supply Actual Work Mode 0: load sharing 1: active/standby mode (output voltage reduction of the standby PSU) 2: unknown | 3 |
| Expected PS Work Mode | read-write | data1-Get/Set Power Supply Expected Work Mode 0: load sharing 1: active/standby mode (output voltage reduction of the standby PSU) | 4 |
| Active-standby maximum/minmum percentage | read-write | Queries or sets the upper or lower threshold for the percentage of the system power to the rated power of active PSUs in active/standby mode. When [System power/Total rated power of active PSUs] is greater than the upper limit of the percentage, the system automatically switches to the load sharing mode.When [System power/Total rated power of active PSUs] is lower than the lower threshold, the system automatically switches to the active/standby mode. data1: upper limit of the percentage Value range: [Lower limit of the percentage]–100. The value 255 indicates that the lower limit is not changed. data2: lower limit of the percentage The value ranges from 0 to the upper limit of the percentage. The value 255 indicates that the upper limit is not changed. | 5 |
| Expected PS Work Mode with PS List | read-write | data1-Get/Set Power Supply Expected Work Mode 0: load sharing 1: active/standby mode (standby power supply output voltage reduction) Data2:5-Active power supply list bit0~bit31-PS1~PS32, LS-byte first The value of each digit is as follows: 0: master 1: slave | 6 |
Command Example
Obtain energy saving parameters.
Request:
bash
ipmicmd -k "0f 00 30 93 db 07 00 25 02 00 02" smi 0Response:
text
0f 31 00 93 00 db 07 00 00 00 00