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
- Request a service partition scan via
ipmitool raw 0 8 2 2
- Display the contents of the service partition scan register via
ipmiutil chassis bootparam get 2
- 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.