Get Device Test Result
更新时间: 2026/08/06
在Gitcode上查看源码

Get Device Test Result

Change History

openUBMC VersionRevision DateDescription
25.062025/06/26Initial draft: add command details

Basic Information

Function Description

This API is used to obtain the device test result.

Privilege

Command Information

Request Information

ByteData Field
NetFn30h
CMD90h
1Sub command, sub command = 0 Ah
2Device Type
0=RAM
1=FLASH
2=EEPROM
3: I2C isolation component (such as PCA9511 or similar components)
4=USB Device
5=UART (serial port)
6=Ethernet Port (Ethernet port)
7=CPLD
8=FPGA
9 = CLOCK (clock signal)
10=RTC
11=Button Press
12=I2C
13=SMLink (a channel connected to an ME)
14=BIOS
15 = RS485 serial port
16=spi flash
17=PHY MDIO
18=CPU
19=HDD
20=HBA
21=CAN
22=JTAG link
23 = LCD (Other values are reserved.)
3[7:4]:
Device number, indicating the number of the component. The number starts from 0.
[3:0] Test Type
0: bus test
1=5-step unit traversal test
2: unit simple read/write test
14=Pressure test 0x0f=unspecified
Not specified or involved. Others are reserved.

Response Information

ByteData Field
1Completion Code
80h=Testing...
81h=The test is not started.
2Test Result:
0=Success
1=Failed
(3:6) *Detail result
When the value of Device Type is 11, set this parameter to [31:0] Failed Button Number Mask.. LSB firstTest principle: There are several buttons on the board. When testing the Start button, mark the corresponding button ID.
This bit is set to 1. When a button is pressed, this bit is cleared. In this way, after all buttons are pressed, the mask is 0.
All other device reserved, set to 0x00 if exist
When the value of Device Type is 19, set this parameter to [31:0] Failed HDD Number Mask.. LSB first.Test principle: If there are multiple hard disks on the board, the mask of the hard disk that fails the test is returned (hard disk 0 corresponds to bit0).
All other device reserved, set to 0x00 if exist
When the value of Device Type is 5 and the value of requested byte 3 is 0xff, run the following command to query all UART loopback test results: [31:0] Failed UART Loop Test Mask. LSB firstTest principle: The board has multiple UARTs. The UART mask that fails to be tested is returned (the debugging serial port corresponds to bit0).
All other device reserved, set to 0x00 if exist
When the value of Device Type is 16, the value of this parameter is [31:0] Failed SPI Channel Mask.LSB firs.Test principle: The board has an SPI channel. Bit 0 indicates the SPI flash of the BIOS, bit1 indicates the SPI channel of the CCK firmware of the mother board, and bit2 indicates the SPI channel of the CCK firmware of the daughter board.

Command Example

Obtain the device test result.

Request:

bash
[root@localhost ~]# ipmicmd -k "0f 00 30 93 DB 07 00 65 00 00" smi 0

Response:

text
00 DB 07 00 00

Back to Index