State parameter acquisition method and related equipment

Obtaining the status parameters of the main control processor in I2C mode through programmable devices solves the problem of BMC being unable to access other I2C devices at the same time and not supporting IPMB mode, and improves the reliability and versatility of the server.

CN118568031APending Publication Date: 2024-08-30XFUSION DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410678030.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-08-30

Smart Images

  • Figure CN118568031A
    Figure CN118568031A
Patent Text Reader

Abstract

The embodiment of the invention provides a state parameter acquisition method and related equipment. Wherein the programmable device obtains the state parameters of the main control processor from the main control processor through the IPMI message. And when the BMC wants to obtain the state parameters of the main control processor, the BMC sends an access message of the I2C protocol to the programmable device, so that the state parameters can be obtained. Therefore, the problem that the I2C channel is exclusively occupied can be avoided. And when the BMC obtains the state parameters of the main control processor, the use of the IPMB mode is not involved, so that even if the I2C controller of the BMC does not support the IPMB mode, the BMC can still obtain the state parameters of the main control processor, and the universality of the BMC is enhanced. Besides, the I2C controller of the BMC does not need to be frequently switched back and forth between the IPMB mode and the I2C mode, so that the probability of access abnormity of the computing equipment is reduced, and the reliability of the computing equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of server technology, and in particular to a method for obtaining status parameters and related equipment. Background Art

[0002] The main control processor is a key component in a computing device, used to ensure the normal operation of the computing device. For example, the central processing unit (CPU) is responsible for reading and executing instructions stored in the memory of the computing device, or for reading and processing data stored in the memory of the computing device. The state parameters of the main control processor include parameters such as the temperature, voltage, and power consumption of the main control processor to evaluate the performance of the main control processor. That is, the state parameters of the main control processor affect the processing performance of the main control processor and also affect the service life of the main control processor itself. Therefore, monitoring the state parameters of the main control processor plays an important role.

[0003] At present, the baseboard management controller (Based Management Controller, BMC) of the computing device communicates with the main control processor through the intelligent platform management bus (Intelligent Platform Management Bus, IPMB) to obtain the status parameters of the main control processor. For example, the status of the CPU is obtained, and the status parameters of the data processing unit (DPU) are obtained, and the status parameters of the system on a chip (System on a Chip, SOC) are obtained. Among them, the IPMB implements the functions defined by the Intelligent Platform Management Interface (Intelligent Platform Management Interface, IPMI) standard through the I2C bus. That is, the BMC includes an I2C interface and an I2C controller corresponding to the I2C interface. The BMC communicates with the main control processor through the I2C bus corresponding to the I2C interface. At this time, the data transmitted and received by the I2C interface is based on the data defined by the IPMI standard. The working mode in which the data transmitted and received by the BMC through the I2C interface is based on the data defined by the IPMI standard is called the IPMB mode.

[0004] However, IPMB is exclusive, that is, only one device can use the IPMB to communicate at the same time. BMC can connect multiple devices (referred to as I2C devices) through an I2C interface. When BMC obtains the status parameters of the main control processor in IPMB mode, at this time, BMC cannot access the I2C devices of other links on the I2C interface channel. And when the I2C controller of BMC does not support IPMB mode, BMC cannot obtain the status parameters of the main control processor. Summary of the invention

[0005] The embodiment of the present application provides an acquisition method and related devices, which are used to enable the BMC to access the I2C devices on the same I2C bus when acquiring the status parameters of the main control processor, and to enable the BMC to still acquire the status parameters of the main control processor when the I2C controller of the BMC does not support the IPMB mode, thereby enhancing the versatility of the BMC.

[0006] In order to achieve the above purpose, the embodiment of the present application adopts the following technical solution:

[0007] In the first aspect, the embodiment of the present application provides an acquisition method, which is applied to a programmable device, wherein one end of the programmable device is connected to a baseboard management controller BMC, and the other end of the programmable device is connected to a main control processor. The programmable device sends an acquisition message based on the intelligent platform management interface IPMI standard to the main control processor; the acquisition message instructs the programmable device to acquire state parameters from the main control processor; receives a first data packet sent by the main control processor, the first data packet is a data packet obtained after the main control processor encapsulates the state parameters based on the IPMI standard; in response to receiving the first data packet, parses the first data packet and acquires the state parameters; in response to receiving an access message based on the integrated circuit bus I2C protocol sent by the BMC, acquires the state parameters of the main control processor; the access message instructs the BMC to acquire the state parameters from the programmable device; encapsulates the state parameters into a second data packet based on the I2C protocol, and sends the second data packet to the BMC, so that the BMC parses the second data packet to acquire the state parameters.

[0008] In an embodiment of the present application, the programmable device obtains the state parameters of the main control processor from the main control processor through an IPMI message. When the BMC wants to obtain the state parameters of the main control processor, the BMC can obtain the state parameters by sending an access message of the I2C protocol to the programmable device. That is, at this time, the mode of the I2C channel for the BMC to communicate with the programmable device is the I2C mode, not the IPMB mode. Thus, the problem of the I2C channel being monopolized can be avoided. That is, when the BMC obtains the state parameters of the main control processor, it can still access the I2C devices of other links on this I2C channel and obtain the information of the I2C devices of other links. And when the BMC obtains the state parameters of the main control processor, it does not involve the use of the IPMB mode. Therefore, even if the I2C controller of the BMC does not support the IPMB mode, the BMC can still obtain the state parameters of the main control processor, thus helping to enhance the versatility of the BMC. In addition, the I2C controller of the BMC does not need to switch back and forth frequently between the IPMB mode and the I2C mode, thereby reducing the probability of abnormal access to the computing device and improving the reliability of the computing device.

[0009] In a specific implementation, after obtaining the state parameters, the obtained state parameters are cached in the first register; in response to receiving the access message sent by the BMC, the access message is parsed to obtain the address of the first register in the access message; according to the address of the first register, the first register is identified from the programmable device, and the state parameters of the main control processor are obtained from the first register. Since the programmable device may include multiple registers to cache different data. Through the first register, the programmable device can obtain the state parameters of the main control processor efficiently and accurately.

[0010] In another specific implementation, the programmable device includes an IPMB communication module, at least one IPMB register corresponding to the IPMB communication module, a data transfer module, an I2C module and at least one I2C register corresponding to the I2C module, the IPMB communication module is used to connect to the main control processor, and the I2C module is used to connect to the BMC; the IPMB communication module is connected to at least one IPMB register, the I2C module is connected to at least one I2C register, and the data transfer module is connected to at least one IPMB register and at least one I2C register; the IPMB communication module obtains state parameters from the main control processor; stores the state parameters in a second register, and at least one IPMB register includes the second register; the data conversion module transfers the state parameters from the second register to the first register; at least one I2C register includes the first register; the I2C module parses the access message in response to receiving an access message sent by the BMC, and obtains the address of the first register in the access message; the I2C module obtains the state parameters from the first register according to the address of the first register. In an embodiment of the present application, the register corresponding to the I2C module stores data for I2C communication with the BMC, and the register corresponding to the IPMB module stores data for IPMB communication with the main control processor, thereby caching data of different protocols through different functional areas to avoid data confusion and affect the data transmission effect.

[0011] In another specific implementation, if the first register stores the initial state parameters, the initial state parameters are deleted and the state parameters are cached in the first register, so that the state parameters of the main control processor cached in the first register are the state parameters at the most recent moment, so that the BMC can obtain the real-time state parameters of the main control processor as much as possible and monitor the main control processor in real time.

[0012] In another specific implementation, based on the correspondence between the address of the second register and the physical address of the master processor, the state parameter of the master processor is cached in the second register. Thus, the programmable device can accurately cache the acquired state parameter of the master processor in the second register.

[0013] In another specific implementation, if the programmable device is in the master mode, the programmable device generates an acquisition message and sends the acquisition message to the master processor, and switches from the master mode to the slave mode; in response to receiving the first data packet, the programmable device switches from the slave mode to the master mode, parses the first data packet, and obtains the state parameter. By using the master-slave mode alternately, the programmable device and the master processor perform two-way communication to ensure the integrity and real-time performance of the data.

[0014] In a second aspect, an embodiment of the present application further provides a method for obtaining a state parameter, which is applied to a computing device, wherein the computing device includes a BMC, a programmable device, and a main control processor; the BMC is connected to the programmable device, and the programmable device is connected to the main control processor, and the method includes:

[0015] The programmable device sends an acquisition message based on the IPMI standard to the main control processor; the acquisition message instructs the programmable device to acquire state parameters from the main control processor; the main control processor acquires the state parameters in response to receiving the acquisition message sent by the programmable device, and encapsulates the state parameters into a first data packet based on the IPMI standard, and sends the first data packet to the programmable device; the programmable device parses the first data packet in response to receiving the first data packet, and acquires the state parameters;

[0016] The BMC sends an access message based on the I2C protocol to the programmable device, where the access message instructs the BMC to obtain the runtime status parameters of the main control processor from the programmable device; the programmable device obtains the pre-stored status parameters in response to receiving the access message sent by the BMC; the status parameters are encapsulated into a second data packet based on the I2C protocol, and the second data packet is sent to the BMC; the pre-stored status parameters are the status parameters pre-acquired by the programmable device from the main control processor; the BMC parses the second data packet in response to receiving the second data packet sent by the programmable device to obtain the status parameters.

[0017] In a third aspect, an embodiment of the present application further provides a computing device, the computing device comprising a BMC, a programmable device and a main control processor; the BMC is used to connect the programmable device, and the programmable device is used to connect the main control processor;

[0018] The programmable device sends an acquisition message based on the IPMI standard to the main control processor; the acquisition message instructs the programmable device to acquire state parameters from the main control processor; the main control processor acquires the state parameters in response to receiving the acquisition message sent by the programmable device, and encapsulates the state parameters into a first data packet based on the IPMI standard, and sends the first data packet to the programmable device; the programmable device parses the first data packet in response to receiving the first data packet, and acquires the state parameters;

[0019] The BMC sends an access message based on the I2C protocol to the programmable device, where the access message instructs the BMC to obtain the runtime status parameters of the main control processor from the programmable device; the programmable device obtains the pre-stored status parameters in response to receiving the access message sent by the BMC; the status parameters are encapsulated into a second data packet based on the I2C protocol, and the second data packet is sent to the BMC; the pre-stored status parameters are the status parameters pre-acquired by the programmable device from the main control processor; the BMC parses the second data packet in response to receiving the second data packet sent by the programmable device to obtain the status parameters.

[0020] In a fourth aspect, an embodiment of the present application further provides a mainboard, the mainboard comprising a BMC and a programmable device, one end of the programmable device is connected to the BMC, and the other end of the programmable device is connected to a main control processor;

[0021] The programmable device sends an acquisition message based on the IPMI standard to the main control processor; the acquisition message instructs the programmable device to acquire state parameters from the main control processor; the main control processor acquires the state parameters in response to receiving the acquisition message sent by the programmable device, and encapsulates the state parameters into a first data packet based on the IPMI standard, and sends the first data packet to the programmable device; the programmable device parses the first data packet in response to receiving the first data packet, and acquires the state parameters;

[0022] The BMC sends an access message based on the I2C protocol to the programmable device, where the access message instructs the BMC to obtain the runtime status parameters of the main control processor from the programmable device; the programmable device obtains the pre-stored status parameters in response to receiving the access message sent by the BMC; the status parameters are encapsulated into a second data packet based on the I2C protocol, and the second data packet is sent to the BMC; the pre-stored status parameters are the status parameters pre-acquired by the programmable device from the main control processor; the BMC parses the second data packet in response to receiving the second data packet sent by the programmable device to obtain the status parameters.

[0023] In a fifth aspect, an embodiment of the present application further provides a data master control processor, the master control processor includes a programmable device and a master control processor, one end of the programmable device is connected to the BMC, and the other end of the programmable device is connected to the master control processor;

[0024] The programmable device sends an acquisition message based on the IPMI standard to the main control processor; the acquisition message instructs the programmable device to acquire state parameters from the main control processor; the main control processor acquires the state parameters in response to receiving the acquisition message sent by the programmable device, and encapsulates the state parameters into a first data packet based on the IPMI standard, and sends the first data packet to the programmable device; the programmable device parses the first data packet in response to receiving the first data packet, and acquires the state parameters;

[0025] The BMC sends an access message based on the I2C protocol to the programmable device, where the access message instructs the BMC to obtain the runtime status parameters of the main control processor from the programmable device; the programmable device obtains the pre-stored status parameters in response to receiving the access message sent by the BMC; the status parameters are encapsulated into a second data packet based on the I2C protocol, and the second data packet is sent to the BMC; the pre-stored status parameters are the status parameters pre-acquired by the programmable device from the main control processor; the BMC parses the second data packet in response to receiving the second data packet sent by the programmable device to obtain the status parameters.

[0026] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is run on a computer, the computer executes the operating steps of any possible method for obtaining state parameters in the first aspect described above.

[0027] In a seventh aspect, an embodiment of the present application further provides a computer program product, which, when running on a computer, executes the operating steps of any possible method for obtaining status parameters in the first aspect.

[0028] The computing device, data master processor, mainboard, computer-readable storage medium or computer program product corresponding to any of the methods provided above are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 A schematic diagram of the architecture of a server provided in an embodiment of the present application;

[0030] Figure 2A A schematic diagram of the architecture of a server provided in an embodiment of the present application;

[0031] Figure 2B A signaling diagram of an acquisition method provided in an embodiment of the present application;

[0032] Figure 2C A signaling diagram of a method for obtaining status parameters of a main control processor provided in an embodiment of the present application;

[0033] Figure 3 A schematic diagram of another server architecture provided in an embodiment of the present application;

[0034] Figure 4 A schematic diagram of the architecture of another server provided in an embodiment of the present application;

[0035] Figure 5 A schematic diagram of the architecture of another server provided in an embodiment of the present application;

[0036] Figure 6 A schematic diagram of the architecture of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0038] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0039] The acquisition method provided in the embodiment of the present application can be applied to computing devices such as servers. Computing devices such as servers include functional devices such as a main control processor and a BMC. Among them, the main control processor is responsible for the operation and data processing of the computing device, such as negative reading and executing instructions stored in the memory of the computing device, for example, the main control processor is responsible for performing various data processing and running the operating system. The main control processor may include a graphics processing unit (GPU), a CPU or a DPU, etc. BMC is a dedicated microcontroller independent of the main control processor, which is used to monitor and manage the status of the main control processor.

[0040] In addition, computing devices may also include but are not limited to basic hardware such as motherboards and fans, configurable components such as network cards and disk arrays (Redundant Arrays of Independent Disks, RAID) cards, and various control components with processing functions such as field programmable gate arrays (Field Programmable Gate Array, FPGA) and complex programmable logic devices (Complex Programmable Logic Device, CPLD).

[0041] The following takes the computing device as a server as an example to introduce the acquisition method provided by the embodiment of the present application. Among them, the server is an electronic device with data processing capabilities, data receiving and sending capabilities, and data storage capabilities. For example, the server can be a rack server, a cabinet server, a blade server, a high-density server, or a GPU server, etc., which is not specifically limited in the embodiment of the present application.

[0042] Attached Figure 1 A schematic diagram of the architecture of a server provided in an embodiment of the present application. Figure 1 The architecture shown is a simplified schematic diagram of a partial structure of the server involved in the embodiment of the present application. The server 100 includes a BMC 101 and a main control processor 102. Among them, the BMC 101 communicates with the main control processor 102 through an I2C interface based on an I2C bus. The main control processor 102 is an I2C device. In the embodiment of the present application, an I2C device is a general term for a class of devices, which is a general term for devices connected to the BMC through the I2C bus.

[0043] It is understandable that the number of I2C interfaces in the BMC 101 may be one or more, for example, two, three or more. Figure 1 Only one I2C interface is shown. Each interface corresponds to an I2C controller. The BMC 101 is connected to an I2C device based on the I2C bus through the I2C interface. In addition, the BMC 101 can connect to one I2C device through one I2C bus.

[0044] In the embodiment of the present application, the BMC includes two working modes, one is the IPMB mode, and the IPMB mode is a working mode in which the data sent and received by the BMC through the I2C interface is a data defined based on the IPMI standard. The other mode is the I2C mode, that is, the working mode in which the BMC receives and sends data based on the I2C protocol through the I2C interface. The working mode of the BMC is controlled by the I2C controller. The I2C controller embeds the IPMI protocol. If the I2C controller encapsulates messages using the IPMI protocol, the I2C interface works in the I2C mode. If the I2C controller encapsulates messages using the I2C protocol, the I2C interface works in the IPMB mode.

[0045] BMC 101 is used to monitor the status parameters of the main control processor. In a related solution, the working mode of the I2C controller in BMC 101 is switched to IPMB mode. In IPMB mode, BMC obtains the status parameters of the main control processor 102 from the main control processor 102 through the I2C interface and the I2C bus connected to the I2C interface.

[0046] Specifically, in the IPMB mode, the BMC 101 switches to the master mode, and the main control processor 102 is in the slave mode. In the embodiment of the present application, the BMC 101 encapsulates the message based on the IPMI standard (hereinafter referred to as the IPMI message) through the I2C controller. The IPMI message is used to instruct the BMC 101 to obtain the state parameters of the main control processor 102 from the main control processor 102. After the BMC 101 sends the IPMI message to the main control processor 102, the BMC 101 switches from the master mode to the slave mode. After the main control processor 102 receives the IPMI message, the main control processor 102 switches from the slave mode to the master mode, the main control processor 102 obtains its own state parameters, and encapsulates its own state parameters into a data packet based on the IPMI protocol, and sends it to the BMC 101 through the I2C bus, and the main control processor 102 switches from the master mode to the slave mode. After the BMC 101 receives the data packet based on the IPMI protocol, the BMC 101 switches from the slave mode to the master mode, parses the data packet to obtain the state parameters of the main control processor 102.

[0047] It should be noted that a device being in master mode means that the device can initiate communication and send messages, and a device being in slave mode means that the device can receive communication and receive messages.

[0048] However, IPMB is exclusive, that is, only one device can use the I2C interface to communicate at the same time. When the BMC selects the IPMB mode to obtain the status parameters of the main control processor, at this time, the BMC cannot access the I2C devices of other links on this I2C bus. If the BMC wants to access other I2C devices in this I2C bus, the I2C controller needs to switch from IPMB mode back to I2C mode to obtain other I2C devices. In addition, it is a regular behavior for BMC 101 to obtain the status parameters of the main control processor 102, which will cause the I2C controller to frequently switch back and forth between IPMB mode and I2C mode, which may easily cause server access anomalies and reduce server reliability. And when the I2C controller of the BMC does not support IPMB mode, the BMC cannot obtain the status parameters of the main control processor.

[0049] In view of the above problems, the embodiment of the present application provides an acquisition method for realizing that when the BMC can obtain the temperature of the main control processor through the I2C mode, thereby avoiding the problem of the IPMB mode being monopolized, and the BMC does not need to frequently switch back and forth between the IPMB mode and the I2C mode, thus helping to reduce the probability of server access anomalies and improve the reliability of the server. Even if the I2C controller does not support the IPMB mode, the BMC can still obtain the status parameters of the main control processor.

[0050] Embodiment 1

[0051] Attached Figure 2A A schematic diagram of the architecture of a server provided in an embodiment of the present application. Figure 1 The server shown, attached Figure 2A In the server 100 shown, the BMC 101 does not directly obtain the status parameters of the main control processor 102 from the main control processor 102. The BMC 101 is connected to the programmable device 103 via an I2C interface based on an I2C bus, and the programmable device communicates with the main control processor 102 via an IPMB.

[0052] The programmable device 103 refers to a device that can be programmed and configured. The embodiment of the present application does not specifically limit the type of the programmable device 103. For example, the programmable device 103 is a field programmable gate array (FPGA) or a complex programmable logic device (CPLD). Furthermore, in order to save space and reduce the space occupied by the server, the programmable device 103 can be a programmable device that already exists in the server.

[0053] Attached Figure 2B A signaling diagram of a method for obtaining a state parameter provided in an example of this application, attached Figure 2B The execution subject of the acquisition method is attached Figure 2A The server 100. Figure 2B The acquisition method comprises the following steps:

[0054] S210: The BMC generates an access message based on the I2C protocol.

[0055] The access message instructs the BMC 101 to obtain the state parameters of the master processor 102 from the programmable device 103. After receiving the access message, the programmable device 103 returns the state parameters of the master processor 102 to the BMC 101.

[0056] In an embodiment of the present application, the access message includes a first indication content. The first indication content indicates that BMC 101 obtains the state parameters of the main control processor 102 from the programmable device 103. After receiving the access message, the programmable device 103 operates according to the first indication content in the access message. For example, the first indication content in the access message is the content corresponding to obtaining the temperature of the main control processor 102. The programmable device 103 receives the access message, parses the access message to obtain the first indication content, obtains the temperature of the main control processor 102 according to the first indication content, and returns the obtained temperature of the main control processor 102 to BMC101. BMC 101 encapsulates the first indication content based on the I2C protocol and generates an access message.

[0057] Furthermore, the access message may also include an address of a first register (hereinafter referred to as the first register address). The first register address is used to uniquely identify the position of the first register in the programmable device 103. It is understandable that the programmable device 103 may include multiple registers to cache different data. In order to enable the programmable device to efficiently and accurately obtain the state parameters of the main control processor 102, the first register address may be carried in the access message. After the programmable device obtains the first register address, it matches the first register from multiple registers according to the first register address, and obtains the state parameters of the main control processor 102 from the first register. Among them, the first register is a register inside the programmable device 103 that specifically stores the state parameters of the main control processor 102.

[0058] In addition, the access message also includes other content, such as the physical address of the programmable device 103, the physical address of the BMC 101, etc., which is not specifically limited in the embodiment of the present application.

[0059] In the embodiment of the present application, the I2C controller in the BMC 101 can encapsulate the first indication content and other information together based on the I2C protocol to generate an access message based on the I2C protocol. That is, the access message generated by the BMC 101 is generated in the I2C mode, and there is no need to switch the I2C mode to the IPMB mode. In other words, when the BMC 101 sends the access message to the programmable device 103, the I2C bus corresponding to the I2C interface in the BMC 101 is not monopolized, so the BMC can access the I2C devices of other links on the I2C bus corresponding to the I2C interface.

[0060] It can be understood that the sender address in the access message is the physical address of the BMC 101, and the receiver address is the physical address of the programmable device 103. Therefore, the BMC 101 can accurately send the access message to the programmable device 103.

[0061] The following describes the triggering operation of the BMC 101 acquiring the status parameters of the main control processor 102.

[0062] In one example, the I2C controller can adaptively generate an access message based on the I2C protocol. For example, the I2C controller pre-stores a time interval T for generating access messages, and the I2C controller generates an access message based on the I2C protocol every T interval. Wherein, T can be 1ms, 2ms, 10ms, 1min, etc., which is not specifically limited in the embodiment of the present application. It can be understood that if the temperature of the main control processor 102 pre-stored in the programmable device 103 is the real-time temperature of the main control processor 102 obtained from the main control processor 102 in real time, in order to ensure that the BMC can obtain the real-time temperature of the main control processor 102, the smaller the preset time interval, the better.

[0063] In another example, BMC 101 can be connected to an external display screen, and the display screen displays a visual interface or a command line. The visual interface or command line displays a prompt box for the first indication content to be input. The user can enter the first indication content in the prompt box, for example, the user enters the temperature of the SOC, and BMC 101 responds to the first indication content entered by the user and sends it to the I2C controller. The I2C controller encapsulates the first indication content into an access message based on the I2C protocol. Interacting with the user through a visual interface or command line can enhance user participation and user experience, and enable BMC 101 to determine whether to execute the operation of obtaining the temperature of the main control processor 102 according to user needs.

[0064] The embodiments of the present application may also be performed through other triggering operations, which are not specifically limited in the embodiments of the present application.

[0065] S220: The BMC sends the access message to the programmable device.

[0066] In the embodiment of the present application, after the I2C controller generates an access message based on the I2C protocol, the access message is sent to the programmable device 103 through the I2C bus corresponding to the I2C interface.

[0067] S230: The programmable device receives the access message and obtains pre-stored state parameters.

[0068] After receiving the access message, the programmable device 103 automatically parses the received access message based on the I2C protocol to obtain the first indication content in the access message.

[0069] In the embodiment of the present application, the first indication content in the access message is to obtain the state parameters of the main control processor 102. For example, the access message received by the programmable device 103 is the first access message, the indication content in the first access message is to obtain the temperature of the main control processor 102, the programmable device 103 parses the first access message based on the I2C protocol, and the indication content obtained is to obtain the temperature of the main control processor 102. For another example, the access message received by the programmable device 103 is the second access message, the indication content in the second access message is to obtain the voltage of the main control processor 102, the programmable device 103 parses the second access message based on the I2C protocol, and the indication content obtained is to obtain the voltage of the main control processor 102. For another example, the access message received by the programmable device 103 is the third access message, and the indication content in the third access message is to obtain the voltage and temperature of the main control processor 102.

[0070] Next, the programmable device 103 obtains the state parameters of the main control processor 102 from the target area according to the first instruction content.

[0071] It can be understood that the programmable device 103 pre-stores the correspondence between the first indication content and the target area. After the programmable device 103 obtains the indication content, it obtains the state parameters of the main control processor 102 from the target area according to the correspondence. The target operation is an operation to obtain the state parameters of the main control processor 102 from the target area.

[0072] The storage area may be a first register, that is, the first register is a register in the programmable device 103, used to cache all state parameters of the master processor 102 sent by the master processor 102. For example, the first register caches the temperature, voltage, and power consumption of the master processor 102.

[0073] Considering that there are multiple registers in the programmable device 103, each register caches different data, for example, register A caches data A, register B caches data B, and register C caches all state parameters of the master processor 102, that is, register C is the first register. In order to accurately and quickly obtain all state parameters of the master processor 102, the programmable device 103 also includes the first register address in the access message. That is, the programmable device 103 parses the access message and obtains the first register address in the access message. The programmable device 103 accurately identifies the first register from multiple registers based on the first register address. The programmable device 103 identifies the first register based on the first register address, and reads the state parameters of the master processor 102 from the first register according to the indicated content. That is, carrying the first register address in the access message helps to improve the accuracy of the programmable device 103 in obtaining the state parameters of the master processor 102.

[0074] S240: The programmable device encapsulates the state parameters into a second data packet based on the I2C protocol.

[0075] The programmable device 103 encapsulates the acquired state parameters into a second data packet based on the I2C protocol. It can be understood that the second data packet also includes a sending address that is a physical address of the programmable device 103, and a receiving address that is a physical address of the BMC 101. Thus, the programmable device 103 can accurately send the second data packet to the BMC 101.

[0076] S250: The programmable device sends the second data packet to the BMC.

[0077] The programmable device 103 sends the second data packet to the BMC 101 through the I2C bus corresponding to the I2C interface, specifically to the I2C controller in the BMC 101 .

[0078] S260: The BMC parses the second data packet to obtain status parameters of the main control processor.

[0079] After receiving the second data packet, the I2C controller in the BMC 101 parses the second data packet and obtains the state parameters in the second data packet. Thus, the BMC can monitor the state parameters of the main control processor 102, such as the temperature and voltage of the main control processor 102.

[0080] In an embodiment of the present application, when the BMC wants to obtain the status parameters of the main control processor, the BMC can obtain the status parameters by sending an access message of the I2C protocol to the programmable device. That is, at this time, the mode of the I2C channel for the BMC to communicate with the programmable device is the I2C mode, not the IPMB mode. Thus, the problem of the I2C channel being monopolized can be avoided. That is, when the BMC obtains the status parameters of the main control processor, it can still access the I2C devices of other links on this I2C channel and obtain the information of the I2C devices of other links. And when the BMC obtains the status parameters of the main control processor, it does not involve the use of the IPMB mode. Even if the I2C controller does not support the IPMB mode, the BMC can still obtain the status parameters of the main control processor, therefore, it helps to enhance the versatility of the BMC. And the BMC does not need to switch back and forth frequently between the IPMB mode and the I2C mode, therefore, it helps to reduce the probability of abnormal server access and improve the reliability of the server.

[0081] For attachment Figure 2B The acquisition method shown in the figure, the programmable device 103 obtains the state parameters of the main control processor 102 from the main control processor 102 by Figure 2C The method shown is described.

[0082] Attached Figure 2C A signaling diagram of a method for obtaining status parameters of a master control processor provided in an embodiment of the present application. The method comprises the following steps:

[0083] S211: The programmable device sends an acquisition message based on the IPMI standard to the main control processor.

[0084] against Figure 2A In the server architecture shown, the programmable device 103 communicates with the main control processor 102 via IPMB. The specific communication method is as follows: the programmable device 103 is in the master mode, the programmable device 103 generates an acquisition message based on the IPMI standard, and sends the acquisition message based on the IPMI standard to the main control processor 102.

[0085] The acquisition message is used to instruct the programmable device 103 to acquire the state parameters of the main control processor 102 from the main control processor 102. In the embodiment of the present application, the acquisition message includes a second indication content. The second indication content is used to indicate the indication content of acquiring the state parameters of the main control processor 102 from the main control processor 102. For example, the second indication content is to acquire the temperature of the main control processor 102 from the main control processor 102.

[0086] It is understandable that the programmable device 103 includes an IPMB communication module, wherein the IPMB communication module is connected to the main control processor 102 via an IPMB. The IPMB communication module can send an acquisition message to the main control processor 102 based on a second preset time interval, so that the main control processor 102 acquires the temperature of the main control processor 102 once based on the second preset time interval and sends it to the IPMB communication module. The second preset time interval can be 1ms, 2ms, 10ms, etc., and those skilled in the art can adjust it as needed. In order to ensure that the state parameter of the main control processor 102 stored in the first register of the programmable device 103 represents the operating state of the main control processor 102, the second preset time interval is as small as possible.

[0087] In addition, when the programmable device 103 sends the acquisition message, it switches from the master mode to the slave mode to prepare to receive the state parameters of the master control processor 102 sent by the master control processor 102 .

[0088] It should be noted that the acquisition message sent by the programmable device 103 to the main control processor 102 is the same as the attached Figure 2A The BMC shown sends access messages to the programmable device without dependencies, that is, the access message and the acquisition message are parallel commands and are not related to each other.

[0089] S221. After receiving the acquisition message, the main control processor acquires the state parameters of the main control processor.

[0090] After receiving the acquisition message, the master processor 102 first switches from the slave mode to the master mode, and executes the operation of acquiring the state parameters of the master processor 102. The specific execution method is: the master processor 102 parses the acquisition message to obtain the second indication content in the acquisition message. Then the master processor 102 acquires the state parameters of the master processor according to the second indication content. Specifically, the master processor 102 parses the acquisition message, obtains the second indication content, acquires the temperature of the master processor 102, and sends the acquired temperature of the master processor 102 to the programmable device 103.

[0091] For example, the second indication content is to obtain the temperature of the main control processor 102. After receiving the acquisition message, the temperature control module in the main control processor 102 parses the acquisition message and obtains the second indication content. The temperature control module obtains the temperature of the main control processor 102 according to the second indication content. For another example, the second indication content is to obtain the voltage of the main control processor 102. After receiving the acquisition message, the voltage control module of the main control processor 102 parses the acquisition message and obtains the second indication content. The voltage control module obtains the voltage of the main control processor 102 according to the second indication content.

[0092] S231. The main control processor encapsulates the state parameters into a first data packet based on the IPMI standard.

[0093] The first data packet is a data packet encapsulated in the IPMI standard and includes the state parameters of the main control processor 102. In the embodiment of the present application, the main control processor 102 encapsulates the state parameters of the main control processor 102 into the first data packet. Thus, the state parameters of the main control processor 102 can be sent to the programmable device 103 via IPMB.

[0094] It can be understood that, in order to ensure that the master processor 102 can successfully send its own state parameters to the programmable device 103, in an example, the first data packet also includes a receiver address: the physical address of the programmable device 103, and a sender address: the address of the master processor 102. That is, by accurately adding the receiver address and the sender address to the first data packet, the first data packet is sent from the master processor 102 to the programmable device 103.

[0095] S241. The main control processor sends a first data packet to the programmable device.

[0096] In one example, the main control processor 102 obtains the first data packet and immediately sends the first data packet to the programmable device 103. Thus, the response efficiency of the main control processor 102 is improved, and the first data packet is sent to the programmable device 103 in a timely manner.

[0097] In another example, the master processor 102 caches the first data packet for a preset time period after acquiring the first data packet, and then sends the first data packet to the programmable device 103. That is, after acquiring the first data packet, the master processor 102 caches the first time period, so that the master processor 102 has enough time to allocate transmission resources, thereby helping to reduce the problem of data transmission interruption due to insufficient processing resources and improving the stability and efficiency of data transmission.

[0098] Furthermore, after the main control processor 102 sends the first data packet to the programmable device 103 , the main control processor 102 switches from the master mode to the slave mode, and waits to receive an access message based on the IPMI standard sent again by the programmable device 103 .

[0099] S251. The programmable device parses the first data packet and obtains status parameters.

[0100] In the embodiment of the present application, after the programmable device 103 receives the first data packet sent by the master processor 102, it first switches from the slave mode to the master mode, and then parses the first data packet in the master mode to obtain the state parameters of the master processor 102 carried in the first data packet.

[0101] After the programmable device 103 obtains the state parameters of the main control processor 102, it caches the state parameters of the main control processor 102 in the first register, so that the BMC 101 can prepare to obtain the state parameters of the main control processor 102. It can be understood that the programmable device 103 pre-stores the correspondence between the physical address of the main control processor 102 and the address of the first register. After the programmable device 103 obtains the state parameters, it writes the state parameters into the first register based on the above correspondence.

[0102] In one example, after the programmable device 103 writes the state parameter into the first register, the state parameter of the master processor 102 at other times before (referred to as the initial state parameter) may already exist in the first register. At this time, the programmable device 103 adopts a replacement method to replace the initial state parameter with the newly written state parameter. For example, at time T1, after the programmable device 103 writes the first state parameter of the master processor 102 into the first register, the first register only includes the first state parameter. At the next moment of T1 (the moment when the programmable device 103 obtains the state parameter of the master processor 102 next time), the programmable device 103 obtains the second state parameter and writes the second state parameter into the second state parameter by replacing the first state parameter. As a result, the state parameter of the master processor 102 cached in the first register is the state parameter at the most recent moment, so that the BMC can obtain the real-time state parameter of the master processor 102 as much as possible and monitor the master processor 102 in real time.

[0103] Thus, the programmable device 103 can obtain the state parameters of the main control processor 102 from the main control processor 102 by sending an acquisition message based on the IPMI standard to the main control processor 102. The programmable device 103 and the main control processor 102 communicate by switching between the master and slave modes, which can ensure the orderliness and reliability of communication. By using the master and slave modes alternately, the programmable device 103 and the main control processor 102 perform two-way communication to ensure the integrity and real-time nature of the data.

[0104] Furthermore, considering that BMC 101 communicates with programmable device 103 using I2C protocol, and programmable device 103 communicates with main control processor 102 using IPMI standard, programmable device 103 integrates I2C module and IPMB communication module to ensure the security and reliability of communication of programmable device 103.

[0105] Attached Figure 3 Schematic diagram of another server architecture, in which a programmable device 103 includes an I2C module 103-1, an IPMB communication module 103-2, a first register, a second register and a data transfer module 103-3. The I2C module 103-1 is connected to the I2C interface of the BMC 101 via the I2C bus (the I2C interface is used as an example). The IPMB communication module 302 communicates with the main control processor 102 via the IPMB channel. The first register is the I2C register corresponding to the I2C module 103-1. The second register is the IPMB register corresponding to the IPMB communication module 103-2.

[0106] After the IPMB communication module 103-2 parses and receives the first data packet sent by the main control processor 102, it obtains the state parameters of the main control processor 102 and caches the state parameters of the main control processor 102 in the second register. It can be understood that the IPMB communication module 103-2 pre-stores the correspondence between the second register address (the physical address corresponding to the second register) and the physical address of the main control processor 102. After the IPMB communication module 103-2 obtains the state parameters of the main control processor 102, based on the correspondence, it caches the state parameters of the main control processor 102 in the second register.

[0107] After the second register caches the state parameters of the master processor 102, the IPMB communication module 103-2 sends a transfer command to the data transfer module 103-3, and the transfer command indicates that the state parameters of the master processor 102 in the second register are transferred to the first register for storage. After receiving the transfer command, the data transfer module 103-3 executes the transfer of the state parameters of the master processor 102 in the second register to the first register for storage.

[0108] Therefore, when BMC 101 sends an access message to I2C module 103-1, I2C module 103-1 parses the access message and reads the state parameters of the main control processor 102 from the first register according to the memory address of the first register in the access message. Then, I2C module 103-1 sends the state parameters of the main control processor 102 to BMC 101, so that BMC 101 monitors the state parameters of the main control processor 102.

[0109] Embodiment 2

[0110] In order to enable those skilled in the art to better understand the acquisition method described in the embodiment of the present application, the following takes the main control processor 102 as a DPU card and takes the state parameter of the main control processor 102 as the SOC temperature as an example for detailed description. Among them, the access message sent by the BMC 101 to the programmable device 103 is a target access message for explanation.

[0111] The DPU card is a master processor card dedicated to data processing, including FPGA and SOC. Among them, FPGA provides a programmable hardware platform for implementing various data processing and computing tasks. By integrating FPGA, the DPU card can accelerate various infrastructure components, including network, storage, security and management, thereby improving the efficiency and performance of the data center.

[0112] Among them, SOC is the core part of the DPU card, which is used to control the DPU card to perform data processing and calculation. To ensure the data processing and calculation performance of the DPU card, the SOC must work within the preset temperature range. That is, when the operating temperature of the SOC is lower than the preset temperature range, the data processing and calculation performance of the DPU card will decrease. When the operating temperature of the SOC is higher than the preset temperature range, it will affect the life of the SOC.

[0113] Attached Figure 4 The present application provides another server architecture diagram. The server includes a mainboard 401 and a DPU card 402. The mainboard includes a BMC 101. The DPU card 402 includes an FPGA 402-1 and a SOC 402-2. The FPGA 402-1 is an attached Figure 3 A programmable device 103 is shown.

[0114] In the embodiment of the present application, BMC 101 is connected to the I2C module of FPGA402-1 through the I2C interface and the I2C bus corresponding to the I2C interface. The IPMB communication module of FPGA 402-1 is connected to SOC 402-2 through IPMB. The I2C module is used to parse data based on the I2C protocol, and is also used to encapsulate non-I2C protocol data into data based on the I2C protocol. The IPMB communication module is used to parse data based on the IPMI standard, and is also used to encapsulate non-IPMI standard data into data based on the IPMI standard.

[0115] In the embodiment of the present application, the method for FPGA 402-1 to obtain SOC 402-2 includes: the IPMB communication module of FPGA 402-1 sends a first acquisition message based on the IPMI standard to SOC 402-2, and the first acquisition message instructs FPGA 402-1 to obtain the temperature of SOC 402-2 from SOC 402-2. After receiving the first acquisition message, SOC 402-2 parses the first acquisition message and obtains from the first acquisition message a second indication content indicating that FPGA 402-1 obtains the temperature of SOC 402-2 from SOC 402-2. After the temperature sensor in SOC 402-2 collects the temperature of SOC 402-2, it encapsulates its own temperature into a first data packet and sends it to the IPMB communication module of FPGA 402-1. The IPMB communication module of FPGA 402-1 parses the first data packet, obtains the temperature of SOC 402-2, caches the temperature in the second register, and deletes the original temperature in the second register. At the same time, the data transfer module in FPGA 402-1 transfers the temperature of SOC 402-2 written in the second register to the first register for storage, and deletes the initial temperature in the second register, thereby ensuring that the temperature cached in the first register is the temperature of SOC 402-2 collected in the latest manner.

[0116] The method for obtaining the temperature of SOC 402-2 by BMC 101 includes: the I2C controller in BMC 101 generates a first access message based on the I2C protocol, and the first access message includes a first indication content and a receiver address. Among them, the receiver address is a fixed I2C address, and the fixed I2C address is the address of the I2C module in FPGA 402-1. Therefore, BMC 101 sends the first access message to the I2C module in FPGA 402-1 through the I2C interface and the I2C bus corresponding to the I2C interface based on the fixed I2C address. In the embodiment of the present application, the first indication content indicates that the temperature of SOC402-2 is obtained from the first register address of FPGA 402-1. The I2C module in FPGA 402-1 receives the first access message, and the I2C module parses the first access message to obtain the first indication content. Then, the I2C module obtains the temperature of SOC 402-2 from the first register according to the first register address in the first indication content. The first register encapsulates the acquired temperature of SOC 402-2 into a second data packet of the I2C protocol, and the first register sends the second data packet to the I2C interface corresponding to the I2C bus through the I2C bus, and sends it to the I2C controller in the BMC through the I2C interface. The I2C controller parses the second data packet to obtain the temperature of SOC 402-2 in the second data packet. The I2C controller sends the temperature of SOC 402-2 to the core module of the BMC, thereby enabling the BMC to monitor the temperature of SOC 402-2.

[0117] In an example, after the BMC obtains the temperature of the SOC 402 - 2 , the temperature of the SOC 402 - 2 may be displayed visually, so that the system administrator can monitor the temperature of the SOC 402 - 2 , thereby improving the user experience.

[0118] Therefore, the embodiment of the present application can monitor the temperature of the SOC in the DPU through the BMC. And the programmable device uses the FPGA in the DPU card, that is, there is no need to add additional programmable devices, which reduces the modification of the computing device and saves hardware costs. In the case where the I2C bus corresponding to an I2C interface in the BMC is connected to multiple I2C devices, the BMC can accurately access the FPGA according to the fixed I2C address and obtain the temperature of the SOC 402-2 from the FPGA.

[0119] In addition, the present application embodiment also provides another server. Figure 5 A schematic diagram of the architecture of another server provided in an embodiment of the present application.

[0120] The server 100 includes a mainboard 401 and an expansion slot adapter card (also called a riser card), and the mainboard 401 includes a BMC 101 and a riser card. The BMC 101 can obtain the temperature of the DPU card 402 connected to the riser card through the riser card. The first port corresponding to the FPGA 402-1 in the DPU card 402 is inserted into the standard slot in the riser card.

[0121] In the embodiment of the present application, the riser card is an adapter card, which is used to receive the first access message sent by the BMC based on the I2C protocol encapsulation, and forward the first access message sent by the BMC to the DPU card 402, specifically to the FPGA 402-1 of the DPU card 402. The first register in the FPGA 402-1 obtains the temperature of the cached SOC 402-2, and encapsulates the temperature of the SOC 402-2 into a second data packet based on the I2C protocol, and returns it to the BMC through the riser card.

[0122] The riser card may be a riser card based on the peripheral component interconnect express (PCIe) protocol. The external device connected to the riser card based on the PCIe protocol performs data interaction with the BMC 101 based on the PCIe protocol. In addition, the riser card may also be a mini riser card, which is not specifically limited in the embodiments of the present application.

[0123] For example, Figure 5 Riser card 1 and Riser card 2 are used as examples for demonstration. Riser card 1 includes a PCIe Slot 1 standard slot, and Riser card 2 includes a PCIe Slot 2 standard slot. Riser card 1 is connected to the I2C1 interface of BMC 101. Riser card 2 is connected to the I2C2 interface of BMC 101. In the embodiment of the present application, DPU card 402 can be inserted in the PCIe Slot 1 standard slot or in the PCIe Slot 2 standard slot, which is not specifically limited in the embodiment of the present application.

[0124] In the BMC 101, the I2C1 interface corresponds to the I2C1 controller 501, which is connected to the core main control processor 503 of the BMC. The I2C2 interface corresponds to the I2C2 controller 502, which is connected to the core main control processor 503 of the BMC.

[0125] If the DPU card 402 is inserted into the PCIe Slot1 standard slot, the BMC generates a first access message based on the I2C protocol through the I2C1 controller 501, and sends the first access message to the Riser card 1 through the I2C1 interface and the I2C bus corresponding to the I2C1 interface. After receiving the first access message, the Riser 1 sends the first access message to the FPGA 402-1 based on the I2C bus. After receiving the first access message, the FPGA 402-1 obtains the temperature of the SOC 402-2, encapsulates the temperature of the SOC 402-2 into a second data packet based on the I2C protocol, and first sends the second data packet to the Riser card 1. After receiving the second data packet, the Riser card 1 sends the second data packet to the I2C1 controller 501 through the I2C1 interface. The I2C1 controller 501 parses the received second data packet and obtains the temperature of the SOC 402-2. Then the I2C1 controller 501 sends the acquired temperature of the SOC 402 - 2 to the core module of the BMC 101 for subsequent processes, such as visual display or automatic adjustment of the temperature of the SOC 402 - 2 according to the temperature of the SOC 402 - 2 .

[0126] If the DPU card 402 is inserted into the PCIe Slot2 standard slot, the BMC generates a first access message based on the I2C protocol through the I2C2 controller 502, and sends the first access message to the Riser card 2 through the I2C2 interface and the I2C bus corresponding to the I2C2 interface. After receiving the first access message, Riser 2 sends the first access message to FPGA 402-1 based on the I2C bus. After receiving the first access message, FPGA 402-1 obtains the temperature of SOC 402-2, encapsulates the temperature of SOC 402-2 into a second data packet based on the I2C protocol, and first sends the second data packet to Riser card 2. After receiving the second data packet, Riser card 2 sends the second data packet to the I2C2 controller 502 through the I2C2 interface. The I2C2 controller 502 parses the received second data packet and obtains the temperature of SOC 402-2. Then the I2C2 controller 502 sends the acquired temperature of the SOC 402 - 2 to the core module of the BMC 101 for subsequent processes, such as visual display or automatic adjustment of the temperature of the SOC 402 - 2 according to the temperature of the SOC 402 - 2 .

[0127] That is, the BMC can access the main control processor on any slot and obtain the status parameters of the main control processor. There is no need to customize a special riser card. You only need to use the existing riser card to obtain the status parameters of the main control processor. This saves costs and requires less modification to the motherboard in the server.

[0128] In addition, the programmable device 103 may also be a programmable device provided by the mainboard.

[0129] Attached Figure 6 The server 100 includes a mainboard 401, and the mainboard 401 includes a BMC 101 and a programmable device 103. The programmable device 301 is connected to a riser card. Figure 6 The external Riser card 1 and Riser card 2 are used as examples for explanation. The second port corresponding to the SOC 402-2 in the DPU card 402 is inserted into the standard slot in the Riser card. That is, the BMC 101 is connected to the programmable device 103 through the I2C bus, and the programmable device 103 is connected to the SOC 402-2 in the DPU card 402 through the standard slot in the Riser card. Among them, the programmable device 103 is connected to the Riser card through the IPMB, and the Riser card is connected to the SOC 402-2 through the IPMB.

[0130] Exemplarily, if the second port of the DPU card 402 is inserted into the Riser card 1, the IPMB communication module 103-2 in the programmable device 103 generates a first acquisition message based on the IPMI standard. In an embodiment of the present application, the first acquisition message instructs the programmable device 103 to obtain the temperature of the SOC 402-3 from the SOC 402-3. Then the IPMB communication module 103-2 sends the first acquisition message to the SOC 402-3 through the Riser card 1. After receiving the first acquisition message, the temperature module of the SOC 402-3 obtains the temperature of the SOC 402-3 according to the first acquisition message, and encapsulates the temperature of the SOC 402-3 into a first data packet. The temperature module of the SOC 402-3 sends the first data packet to the IPMB communication module 103-2 in the programmable device 103 through the Riser card 1. The IPMB communication module 103-2 parses the first data packet, obtains the temperature of the SOC 402-3, and stores the temperature of the SOC 402-3 in the second register. The second register transfers the newly written SOC 402 - 3 to the first register.

[0131] If the second port of the DPU card is inserted into the riser card 2, the IPMB communication module 103-2 in the programmable device 103 generates a first acquisition message based on the IPMI standard. In an embodiment of the present application, the first acquisition message instructs the programmable device 103 to obtain the temperature of the SOC 402-3 from the SOC 402-3. Then the IPMB communication module 103-2 sends the first acquisition message to the SOC 402-3 through the riser card 2. After receiving the first acquisition message, the temperature module of the SOC 402-3 obtains the temperature of the SOC 402-3 according to the first acquisition message, and encapsulates the temperature of the SOC 402-3 into a first data packet. The temperature module of the SOC 402-3 sends the first data packet to the IPMB communication module 103-2 in the programmable device 103 through the riser card 2. The IPMB communication module 103-2 parses the first data packet, obtains the temperature of the SOC 402-3, and stores the temperature of the SOC 402-3 in the second register. The second register transfers the newly written SOC 402-3 to the first register.

[0132] Therefore, the BMC in the motherboard only needs to use the programmable devices it carries to monitor the status parameters of the main control processor, so it is more versatile.

[0133] It should be noted that the storage device provided in the embodiment of the present application does not specifically limit the application scenario. For example, the storage device can be a server, but the type of server is not limited. For example, the server can be a rack server or an edge server. The server can be located in a data center or in other areas, which is not specifically limited in the embodiment of the present application.

[0134] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using a software program, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions in the embodiments of the present application are generated.

[0135] The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a magnetic disk, a magnetic tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.

[0136] The above are only preferred embodiments of the present application, and are not intended to limit the present application in any form. Although the present application has been disclosed as above with preferred embodiments, it is not intended to limit the present application. Any technician familiar with the art can use the above disclosed methods and technical contents to make many possible changes and modifications to the technical solution of the present application without departing from the scope of the technical solution of the present application, or modify it into an equivalent embodiment of equivalent changes. Therefore, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application still falls within the scope of protection of the technical solution of the present application.

Claims

1. A method for obtaining state parameters, It is characterized in that Applied to a programmable device, one end of the programmable device is connected to a baseboard management controller BMC, and the other end of the programmable device is connected to a main control processor, the method comprises: Sending an acquisition message based on the Intelligent Platform Management Interface IPMI standard to the main control processor; the acquisition message instructs the programmable device to acquire state parameters from the main control processor; receiving a first data packet sent by the main control processor, the first data packet being a data packet acquired after the main control processor encapsulates the state parameters based on the IPMI standard; in response to receiving the first data packet, parsing the first data packet to acquire the state parameters; In response to receiving an access message based on the integrated circuit bus I2C protocol sent by the BMC, the state parameters of the main control processor are obtained; the access message instructs the BMC to obtain the state parameters from the programmable device; the state parameters are encapsulated into a second data packet based on the I2C protocol, and the second data packet is sent to the BMC, so that the BMC parses the second data packet to obtain the state parameters.

2. The method according to claim 1, It is characterized in that After obtaining the state parameter, the method further includes: Cache the acquired state parameter into a first register; The step of obtaining the state parameter of the main control processor in response to receiving the access message based on the I2C protocol sent by the BMC includes: In response to receiving the access message sent by the BMC, parsing the access message, and acquiring the address of the first register in the access message; According to the address of the first register, the first register is identified from the programmable device, and the state parameter of the main control processor is obtained from the first register.

3. The method according to claim 2, It is characterized in that The programmable device includes an IPMB communication module, at least one IPMB register corresponding to the IPMB communication module, a data transfer module, an I2C module, and at least one I2C register corresponding to the I2C module, wherein the IPMB communication module is used to connect to the main control processor, and the I2C module is used to connect to the BMC; the IPMB communication module is connected to the at least one IPMB register, the I2C module is connected to the at least one I2C register, and the data transfer module is connected to the at least one IPMB register and the at least one I2C register; The programmable device obtains the state parameter from the main control processor in advance, specifically including: the IPMB communication module obtains the state parameter from the main control processor; the state parameter is stored in a second register, and the at least one IPMB register includes the second register; the data conversion module transfers the state parameter from the second register to the first register; the at least one I2C register includes the first register; The step of acquiring the pre-stored state parameters of the main control processor in response to receiving the access message based on the I2C protocol sent by the BMC comprises: In response to receiving the access message sent by the BMC, the I2C module parses the access message and obtains the address of the first register in the access message; the I2C module obtains the state parameter from the first register according to the address of the first register.

4. The method according to claim 2 or 3, It is characterized in that The step of caching the acquired state parameter into a first register includes: If the first register stores the initial state parameter, the initial state parameter is deleted, and the state parameter is cached in the first register.

5. The method according to claim 3, It is characterized in that The storing the state parameter into the second register comprises: Based on the correspondence between the address of the second register and the physical address of the master processor, the state parameter of the master processor is cached in the second register.

6. The method according to claim 1, further comprising sending a get message based on the Intelligent Platform Management Interface (IPMI) standard to the main control processor, include: If the programmable device is in the master mode, the programmable device generates the acquisition message, sends the acquisition message to the master processor, and switches from the master mode to the slave mode; The step of parsing the first data packet and acquiring the state parameter in response to receiving the first data packet includes: In response to receiving the first data packet, the slave mode is switched to the master mode, the first data packet is parsed, and the state parameter is acquired.

7. A method for obtaining state parameters, It is characterized in that Applied to a computing device, the computing device includes a BMC, a programmable device and a main control processor; the BMC is connected to the programmable device, and the programmable device is connected to the main control processor, and the method includes: The programmable device sends an acquisition message based on the IPMI standard to the main control processor; the acquisition message instructs the programmable device to acquire state parameters from the main control processor; the main control processor acquires the state parameters in response to receiving the acquisition message sent by the programmable device, and encapsulates the state parameters into a first data packet based on the IPMI standard, and sends the first data packet to the programmable device; the programmable device parses the first data packet in response to receiving the first data packet, and acquires the state parameters; The BMC sends an access message based on the I2C protocol to the programmable device, wherein the access message instructs the BMC to obtain the runtime status parameters of the main control processor from the programmable device; the programmable device obtains the pre-stored status parameters in response to receiving the access message sent by the BMC; the status parameters are encapsulated into a second data packet based on the I2C protocol, and the second data packet is sent to the BMC; the pre-stored status parameters are the status parameters obtained by the programmable device from the main control processor in advance; the BMC parses the second data packet in response to receiving the second data packet sent by the programmable device to obtain the status parameters.

8. A computing device, It is characterized in that The computing device includes a BMC, a programmable device and a main control processor; the BMC is used to connect to the programmable device, and the programmable device is used to connect to the main control processor; The programmable device sends an acquisition message based on the IPMI standard to the main control processor; the acquisition message instructs the programmable device to acquire state parameters from the main control processor; the main control processor acquires the state parameters in response to receiving the acquisition message sent by the programmable device, and encapsulates the state parameters into a first data packet based on the IPMI standard, and sends the first data packet to the programmable device; The programmable device parses the first data packet in response to receiving the first data packet to obtain the state parameter; The BMC sends an access message based on the I2C protocol to the programmable device, wherein the access message instructs the BMC to obtain the runtime state parameters of the main control processor from the programmable device; the programmable device obtains the pre-stored state parameters in response to receiving the access message sent by the BMC; The state parameters are encapsulated into a second data packet based on the I2C protocol, and the second data packet is sent to the BMC; the pre-stored state parameters are state parameters pre-acquired by the programmable device from the main control processor; the BMC parses the second data packet and acquires the state parameters in response to receiving the second data packet sent by the programmable device.

9. A motherboard, It is characterized in that The mainboard includes a BMC and a programmable device, one end of the programmable device is connected to the BMC, and the other end of the programmable device is connected to the main control processor; The programmable device sends an acquisition message based on the IPMI standard to the main control processor; the acquisition message instructs the programmable device to acquire state parameters from the main control processor; the main control processor acquires the state parameters in response to receiving the acquisition message sent by the programmable device, and encapsulates the state parameters into a first data packet based on the IPMI standard, and sends the first data packet to the programmable device; The programmable device parses the first data packet in response to receiving the first data packet to obtain the state parameter; The BMC sends an access message based on the I2C protocol to the programmable device, wherein the access message instructs the BMC to obtain the runtime state parameters of the main control processor from the programmable device; the programmable device obtains the pre-stored state parameters in response to receiving the access message sent by the BMC; The state parameters are encapsulated into a second data packet based on the I2C protocol, and the second data packet is sent to the BMC; the pre-stored state parameters are state parameters pre-acquired by the programmable device from the main control processor; the BMC parses the second data packet and acquires the state parameters in response to receiving the second data packet sent by the programmable device.

10. A data master processor, It is characterized in that The main control processor comprises a programmable device and a main control processor, one end of the programmable device is connected to the BMC, and the other end of the programmable device is connected to the main control processor; The programmable device sends an acquisition message based on the IPMI standard to the main control processor; the acquisition message instructs the programmable device to acquire state parameters from the main control processor; the main control processor acquires the state parameters in response to receiving the acquisition message sent by the programmable device, and encapsulates the state parameters into a first data packet based on the IPMI standard, and sends the first data packet to the programmable device; The programmable device parses the first data packet in response to receiving the first data packet to obtain the state parameter; The BMC sends an access message based on the I2C protocol to the programmable device, wherein the access message instructs the BMC to obtain the runtime state parameters of the main control processor from the programmable device; the programmable device obtains the pre-stored state parameters in response to receiving the access message sent by the BMC; The state parameters are encapsulated into a second data packet based on the I2C protocol, and the second data packet is sent to the BMC; the pre-stored state parameters are state parameters pre-acquired by the programmable device from the main control processor; the BMC parses the second data packet and acquires the state parameters in response to receiving the second data packet sent by the programmable device.