11
29
Fork
You've already forked ipmitool
33

Incorrect output from 'chassis bootparam get 2' #79

Open
opened 2026年01月13日 18:35:35 +01:00 by smagnani · 1 comment

Table 28-14 of the Intelligent Platform Management Interface Specification Second Generation (April 21, 2015 E7 Markup) defines the contents of Boot Config register 2 (service partition scan) as follows:

[1] - 1b = Request BIOS to scan for specified service partition.
 BIOS clears this bit after the requested scan has been performed.
[0] - 1b = Service Partition discovered.
 BIOS sets this bit to indicate it has discovered the specified
 service partition. The bit retains the value from the last scan.
 Therefore, to get up-to-date status of the discovery state, a scan
 may need to be requested.

To Reproduce

  1. Request a service partition scan via ipmitool raw 0 8 2 2
  2. Display the contents of the service partition scan register via ipmiutil chassis bootparam get 2
  3. Observe incorrect output:
Boot parameter 2 is valid/unlocked
Boot parameter data: 02
 Service Partition Scan :
 - Service Partition Discovered

Expected behavior
This particular BMC appears NOT to support service partitions.
Expected output, given that the register has a value of 02, is - Request BIOS to scan.

Describe the bug
Decoding of bits 0 and 1 of the service partition scan register is reversed: bit 0 is interpreted using the bit 1 description in the specification, and vice-versa.

IPMITOOL Version
This is present in master.

Table 28-14 of the Intelligent Platform Management Interface Specification Second Generation (April 21, 2015 E7 Markup) defines the contents of Boot Config register 2 (service partition scan) as follows: ```[7:2] - reserved [1] - 1b = Request BIOS to scan for specified service partition. BIOS clears this bit after the requested scan has been performed. [0] - 1b = Service Partition discovered. BIOS sets this bit to indicate it has discovered the specified service partition. The bit retains the value from the last scan. Therefore, to get up-to-date status of the discovery state, a scan may need to be requested. ``` **To Reproduce** 1. Request a service partition scan via `ipmitool raw 0 8 2 2` 2. Display the contents of the service partition scan register via `ipmiutil chassis bootparam get 2` 3. Observe incorrect output: ```Boot parameter version: 1 Boot parameter 2 is valid/unlocked Boot parameter data: 02 Service Partition Scan : - Service Partition Discovered ``` **Expected behavior** This particular BMC appears NOT to support service partitions. Expected output, given that the register has a value of 02, is `- Request BIOS to scan`. **Describe the bug** Decoding of bits 0 and 1 of the service partition scan register is reversed: bit 0 is interpreted using the bit 1 description in the specification, and vice-versa. **IPMITOOL Version** This is present in master.

The patch appears to be valid. Could you please make a proper pull request with this change?

The patch appears to be valid. Could you please make a proper pull request with this change?
Sign in to join this conversation.
No Branch/Tag specified
master
bugfix/43-Fix-timezone-and-DST-in-SEL
pages
bugfix/fix-ci-builds
feature/refactor-sdr-name-handling
cleanup/nm
feature/add-support-for-boot-mailbox
codefactor
bugfix/26
IPMITOOL_1_8_19
IPMITOOL_1_8_18
IPMITOOL_1_8_17
IPMITOOL_1_8_16
IPMITOOL_1_8_15
IPMITOOL_1_8_15RC1
IPMITOOL_1_8_14
IPMITOOL_1_8_14RC2
IPMITOOL_1_8_14RC1
ipmitool
IPMITOOL_1_8_13
IPMITOOL_1_8_13RC1
IPMITOOL_1_8_12
IPMITOOL_1_8_9
IPMITOOL_1_8_8
IPMITOOL_1_8_7
IPMITOOL_1_8_6
IPMITOOL_1_8_5
IPMITOOL_1_8_0
IPMITOOL_S10_U1
IPMITOOL_1_6_1
IPMITOOL_1_6_0
IPMITOOL_1_5_9
IPMITOOL_1_5_8
IPMITOOL_1_5_7
IPMITOOL_1_5_6
IPMITOOL_1_5_4
IPMITOOL_1_4_1_1
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
IPMITool/ipmitool#79
Reference in a new issue
IPMITool/ipmitool
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?