Information processing method and device

By setting and switching the operating mode in the IP core of the FPGA chip, the problem of increasing IP core resources in the existing technology is solved, and the effect of obtaining peripheral status without increasing IP core resources is achieved, saving resources and reducing Hardware cabling costs.

CN112765080BActive Publication Date: 2024-08-23LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110086865.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-22
Publication Date
2024-08-23
Estimated Expiration
2041-01-22

AI Technical Summary

Technical Problem

In the existing technology, when obtaining accelerator card peripheral status information on the server side, IIC IP core resources need to be added to each peripheral, which increases the use of computing resources.

Method used

By setting the first and second operating modes in the IP core of the FPGA chip and switching the operating modes periodically, the first operating mode is used to feedback parameter information on the status of the functional module, and the second operating mode is used to feedback parameters on the status of the device under test information to obtain peripheral status without increasing IP core resources.

Benefits of technology

It saves IP core resources, achieves the technical effect of obtaining the status of FPGA chip peripherals without increasing IP core resources, and reduces hardware wiring costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112765080B
    Figure CN112765080B
Patent Text Reader

Abstract

The present invention discloses an information processing method and device, which is applied to a device under test configured with a functional module, including: based on a first instruction, periodically switching the operation mode of an IP core in the functional module; if the IP core is in the first operation mode, feeding back first parameter information representing the state of the functional module; if the IP core is in the second operation mode, feeding back second parameter information representing the state of the device under test. Thus, by setting the first operation mode and the second operation mode for the IP core of the functional module and periodically switching according to the first instruction, the detected state is fed back in different operation modes. Compared with the prior art, this solution does not need to configure IP core resources for each peripheral, and only a single IP core is needed to obtain the state information of the peripheral, saving IP core resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and in particular to an information processing method and device. Background Art

[0002] Currently, the way for the power management module on the server side to obtain the status information of the peripherals of the acceleration card is to add an IIC IP core resource to each peripheral in the FPGA chip for access. The disadvantage of this method is that it increases the computing resources. Summary of the invention

[0003] The embodiments of the present invention provide an information processing method and device, which have the technical effect of obtaining the peripheral status of an FPGA chip without increasing IP core resources.

[0004] On one hand, the present invention provides an information processing method, which is applied to a device under test configured with a functional module. The method includes: based on a first instruction, periodically switching the operation mode of an IP core in the functional module; if the IP core is in a first operation mode, feeding back first parameter information representing the state of the functional module; if the IP core is in a second operation mode, feeding back second parameter information representing the state of the device under test.

[0005] In one possible implementation, the periodic switching of the operating mode of the IP core in the functional module includes: the operating mode is initially the first operating mode; at preset time intervals, the operating mode is switched to the second operating mode, and after the second parameter information is fed back, the operating mode is switched back to the first operating mode.

[0006] In one possible implementation mode, if the IP core is in the first operating mode, the method further includes: monitoring the first parameter information in real time, and storing the first parameter information in an information library; correspondingly, feeding back the first parameter information includes: extracting the first parameter information in the information library, and feeding back the first parameter information.

[0007] In one possible implementation manner, the feeding back the first parameter information includes: receiving and responding to a second instruction to feed back the first parameter information.

[0008] In one possible implementation manner, the second parameter information includes a temperature parameter and a voltage parameter.

[0009] Another aspect of the present invention provides an information processing device, which includes a device under test configured with a functional module, a first device and a second device; the first device is communicatively connected to the functional module, and is used to send a first instruction to the functional module to periodically switch the operating mode of the IP core in the functional module; the first device is also used to feedback first parameter information characterizing the state of the functional module when the IP core is in the first operating mode; the second device is used to feedback second parameter information characterizing the state of the device under test when the IP core is in the second operating mode.

[0010] In one possible implementation, the first device is specifically used to: send a first instruction to the functional module at preset time intervals to instruct the IP core to switch the operating mode to the second operating mode, and switch the operating mode to the first operating mode after the first device feeds back the second parameter information.

[0011] In one possible implementation manner, the first device is specifically used to: monitor the first parameter information in real time, and store the first parameter information in a register; accordingly, when the first device feeds back the first parameter information, it is specifically used to: extract the first parameter information in the register, and feed back the first parameter information.

[0012] In one possible implementation manner, when feeding back the first parameter information, the first device is specifically configured to: receive and respond to a second instruction sent by a third device to obtain the first parameter information and feed back the first parameter information to the third device.

[0013] In one possible implementation, the first device is a microcontroller unit MCU, the second device includes a temperature sensor and a current sensor, the third device is a power management device BMC, and the functional module is an FPGA chip.

[0014] In the embodiment of the present invention, by setting the first operating mode and the second operating mode for the IP core of the functional module and providing feedback by periodically switching the operating mode, compared with the prior art, this solution does not need to configure IP core resources for each peripheral. Only a single IP core is needed to obtain the status information of the peripheral, thus saving IP core resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, in which:

[0016] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.

[0017] Figure 1A schematic diagram of an implementation flow of an information processing method according to an embodiment of the present invention;

[0018] Figure 2 A schematic diagram of the implementation flow of each operation mode in an information processing method according to an embodiment of the present invention;

[0019] Figure 3 A schematic diagram of the structure of an information processing device according to an embodiment of the present invention;

[0020] Figure 4 The present invention is a specific feedback flow chart of an information processing method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0021] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0022] like Figure 1 As shown, the present invention provides an information processing method on one hand, which is applied to a device under test configured with a functional module, and the method comprises:

[0023] Step 101, based on the first instruction, periodically switching the operation mode of the IP core in the functional module;

[0024] Step 102, if the IP core is in the first operation mode, first parameter information representing the state of the functional module is fed back;

[0025] Step 103: If the IP core is in the second operation mode, second parameter information representing the state of the device under test is fed back.

[0026] In this embodiment, the functional module is a hardware with a configurable IP core such as an FPGA chip (Field Programmable Gate Array), a CPLD chip (Complex Programmable Logic Device), and the FPGA chip is preferred in this embodiment. The device to be tested includes an accelerator card, a graphics card, and a sound card, and the device to be tested in this embodiment is preferably an accelerator card.

[0027] Combination Figure 2 and Figure 3As shown, in step 101, the first instruction can be a periodic clock signal or a pulse signal, which can be issued by the internal hardware (such as a microcontroller unit MCU) mounted on the device under test, or by an external device (such as a central processing unit CPU) connected to the device under test. In this embodiment, the first instruction is preferably issued by the microcontroller unit MCU. The triggering mode of the first instruction is mainly triggered by a local clock or an external clock, including a high-level signal and a low-level signal. The functional module can configure the first operating mode and the second operating mode in advance through a software program. After the functional module obtains the first instruction, the operating mode of the IP core is switched according to the high and low level signals of the clock through a preset software program.

[0028] In step 102 and step 103, the operation mode includes a first operation mode and a second operation mode. When applied, the first operation mode can correspond to the high level of the clock signal, and the second operation mode can correspond to the low level of the clock signal. When the clock signal is at a high level, the operation mode of the IP core is switched to the first operation mode, and when the clock signal is at a low level, the operation mode of the IP core is switched to the second operation mode. Of course, the reverse is also possible, that is, the first operation mode corresponds to the low level of the clock signal, and the second operation mode corresponds to the high level of the clock signal.

[0029] When the operation mode of the IP core is in the first operation mode, the first parameter information characterizing the state of the functional module is obtained and fed back. Specifically, the first parameter information includes parameters such as temperature and voltage inside the functional module. The parameters inside the functional module cannot be directly obtained using peripheral devices (such as temperature sensors, voltage sensors, etc.). Therefore, when the IP core is in the first operation mode, the feedback method of the first parameter information can be to query the device under test and obtain the first parameter information through a processor (such as an MCU) according to a preset device under test access address, and then feed back the first parameter information by writing the first parameter information into a configured register.

[0030] When the operation mode of the IP core is in the second operation mode, the second parameter information characterizing the state of the device under test is obtained and fed back. Specifically, the second parameter information includes parameters such as temperature, voltage, and current of the device under test. The parameters of the device under test can be directly measured by peripheral devices such as temperature sensors, current sensors, and EEPROM registers connected to the I2C interface of the functional module. Therefore, when the IP core is in the second operation mode, the feedback method of the second parameter information can query each peripheral device through the pre-set access address of each peripheral device, and obtain the state information monitored by each peripheral device, and then feedback the obtained state information.

[0031] The feedback object is determined according to the demand. For example, the power management module BMC on the server side needs to obtain and manage the status of the accelerator card under test device, so the first parameter information and the second parameter information are fed back to the power management module.

[0032] Therefore, by setting the first operating mode and the second operating mode for the IP core of the functional module and periodically switching according to the first instruction, the detected status is fed back in different operating modes. Compared with the prior art, this solution does not need to configure IP core resources for each peripheral. Only a single IP core is needed to obtain the status information of the peripheral, saving IP core resources.

[0033] In one possible implementation, periodically switching the operation mode of the IP core in the functional module includes:

[0034] The operation mode is initially the first operation mode;

[0035] The operation mode is switched to the second operation mode at every preset time period, and after the second parameter information is fed back, the operation mode is switched back to the first operation mode.

[0036] In this embodiment, since the parameters inside the functional module have a greater impact on the entire functional module, the operation mode is initially the first operation mode to monitor the state inside the functional module for a long time, that is, within a preset time period, the time period in the first operation mode is longer. Among them, the preset time period can be the cycle time period of the clock signal, or it can be the time period additionally set by the system for the functional module. In this embodiment, the preset time period is preferably the cycle time period of the clock signal, and if the first operation mode corresponds to the high level of the clock signal, then the time period when the clock signal is at a high level is longer, and the time period when it is at a low level is shorter. When the operation mode is in the first operation mode, if the clock signal changes from high to low potential, the functional module responds to the potential change to switch the operation mode from the first operation mode to the second operation mode. After the functional module feeds back the second parameter information, due to the short time period at the low level, the operation mode will be switched back to the first operation mode in a short time.

[0037] Furthermore, when the operation mode is switched to the second operation mode, the processor can actively read the status information monitored by each peripheral device, and send the status information to the power management module BMC through the SMBUS bus of the PCIE interface on the device under test (i.e., the low-speed data channel in the figure). Of course, the status information can also be sent to the power management module BMC through the high-speed data channel on the PCIE interface. In the prior art, the power management module obtains the status information and alarm information of the acceleration card peripherals, and needs to access the FPGA chip through the PCIE interface and XDMA driver. This solution sends it to the power management module BMC through the SMBUS bus of the PCIE interface on the device under test, which can reduce the hardware wiring cost.

[0038] In summary, combined with Figure 3 and Figure 4As shown, taking the functional module as FPGA as an example, the overall implementation process of the above steps is as follows:

[0039] First, the IP core of the FPGA is set to the first operating mode to obtain the internal parameters of the FPGA, and the access address of the device under test is preset through software so that the micro control unit can query the device under test according to the access address of the device under test.

[0040] Secondly, the microcontroller unit periodically sends a clock signal to the FPGA, assuming that the high level corresponds to the first operating mode and the low level corresponds to the second operating mode. If the clock signal is at a high level at this time, the current operating mode is the first operating mode, and when the device under test receives a data read request sent by the power management module BMC on the server side, the control unit queries the device under test according to the access address of the device under test, obtains the parameters inside the FPGA, and feeds back the parameters to the power management module BMC by writing registers. If the clock signal is at a low level at this time, the current operating mode is switched to the second operating mode, and the access addresses of various peripheral devices (such as temperature sensors, current sensors, etc.) are pre-set by software. The server side or the microcontroller unit queries each peripheral device through the peripheral device access address and obtains each peripheral status, and actively sends the obtained peripheral status to the power management module BMC through the SMBUS bus.

[0041] Since the clock signal is at a low level for a short time, after the sending is completed in the second operation mode, the clock signal switches to the first operation mode soon, and continues to wait for the read request of the power management module BMC in the first operation mode.

[0042] In one possible implementation, if the IP core is in the first operating mode, the method further includes:

[0043] monitoring the first parameter information in real time, and storing the first parameter information in an information database;

[0044] Accordingly, the first parameter information is fed back, including:

[0045] Extract the first parameter information in the information library and feed back the first parameter information.

[0046] In this embodiment, if the IP core is in the first operating mode, the first parameter information inside the functional module is stored in the information library in real time, and the access request of the power management module BMC is received in real time. When the second instruction sent by the power management module BMC to obtain the first parameter information is received, the microcontroller or processor will read and feedback the latest first parameter information in the information library.

[0047] Another aspect of an embodiment of the present invention provides an information processing device, the device comprising a device under test configured with a functional module, a first device, and a second device;

[0048] The first device is communicatively connected to the functional module and is used to send a first instruction to the functional module to periodically switch the operation mode of the IP core in the functional module;

[0049] The first device is also used to feed back first parameter information representing the state of the functional module when the IP core is in the first operating mode;

[0050] The second device is used to feed back second parameter information representing the state of the device under test when the IP core is in the second operation mode.

[0051] Combination Figure 2 As shown, in this embodiment, the functional module can be an FPGA chip (Field Programmable Gate Array, Field Programmable Logic Gate Array), a CPLD chip (Complex Programmable Logic Device, Complex Programmable Logic Device), etc., and the preferred functional module is an FPGA chip. The device to be tested includes an accelerator card, a graphics card, a sound card, etc., and the preferred device to be tested is an accelerator card. The first device can be a microcontroller unit MCU, a central processing unit CPU, and the preferred first device is a microcontroller unit MCU. The second device includes a temperature sensor, a current sensor, an EEPROM register, etc.

[0052] When in use, the microcontroller unit MCU sends a first instruction to the FPGA chip. The first instruction can be a periodic clock signal or a pulse signal to periodically switch the operation mode of the IP core in the functional module. The operation mode includes a first operation mode and a second operation mode. When applied, the first operation mode can correspond to the high level of the clock signal, and the second operation mode can correspond to the low level of the clock signal. When the clock signal is at a high level, the operation mode of the IP core is switched to the first operation mode, and when the clock signal is at a low level, the operation mode of the IP core is switched to the second operation mode. Specifically, the triggering method of the first instruction is mainly based on the local clock or the external clock trigger, including a high level signal and a low level signal. The functional module can configure the first operation mode and the second operation mode in advance through a software program. After the functional module obtains the first instruction, the operation mode of the IP core is switched according to the high and low level signals of the clock through a preset software program.

[0053] The first parameter information includes parameters such as temperature and voltage inside the functional module. The parameters inside the functional module cannot be directly obtained using peripheral devices (such as temperature sensors, voltage sensors, etc.). Therefore, when the IP core is in the first operating mode, the microcontroller unit MCU queries the device to be tested according to the pre-set device to be tested access address and obtains the first parameter information, and then writes the first parameter information into the configured register and feeds it back to the third device; the second parameter information includes parameters such as temperature, voltage, and current of the device to be tested. The parameters of the device to be tested can be directly measured by the second device such as the temperature sensor, current sensor, and EEPROM connected to the I2C interface of the functional module. Therefore, when the IP core is in the second operating mode, the second device queries each peripheral device through the pre-set access address of each peripheral device, and obtains the status information monitored by each peripheral device, and then obtains and feeds back the second parameter information such as voltage and current to the third device. Among them, the third device is determined according to the demand, and is preferably the power management module BMC on the server side. The power management module BMC needs to obtain the status of the device to be tested of the acceleration card and manage it.

[0054] Therefore, by setting the first operating mode and the second operating mode for the IP core of the functional module and periodically switching according to the first instruction, the detected status is fed back in different operating modes. Compared with the prior art, this solution does not need to configure IP core resources for each peripheral. Only a single IP core is needed to obtain the status information of the peripheral, saving IP core resources.

[0055] In one possible implementation manner, the first device is specifically used for:

[0056] A first instruction is sent to the functional module at preset time intervals to instruct the IP core to switch the operation mode to the second operation mode, and after the first device feeds back the second parameter information, the operation mode is switched to the first operation mode.

[0057] In this embodiment, since the parameters inside the FPGA chip have a greater impact on the entire FPGA chip, the operation mode is initially the first operation mode to monitor the state inside the FPGA chip in real time, that is, within a period of a preset duration, the duration in the first operation mode is longer. Among them, the preset duration can be the cycle duration of the clock signal, or it can be the duration additionally set by the system for the functional module. In this embodiment, the preset duration is preferably the cycle duration of the clock signal, and if the first operation mode corresponds to the high level of the clock signal, then the duration of the clock signal at the high level is longer, and the duration of the clock signal at the low level is shorter. When the operation mode is in the first operation mode, if the clock signal changes from high to low potential, the functional module responds to the potential change to switch the operation mode from the first operation mode to the second operation mode. After the functional module feeds back the second parameter information, the operation mode will immediately switch back to the first operation mode due to the short duration at the low level.

[0058] Furthermore, when the operation mode is switched to the second operation mode, the processor can actively read the status information monitored by each peripheral device, and send the status information to the power management module BMC through the SMBUS bus of the PCIE interface on the device under test (i.e., the low-speed data channel in the figure). Of course, the status information can also be sent to the power management module BMC through the high-speed data channel on the PCIE interface. In the prior art, the power management module obtains the status information and alarm information of the acceleration card peripherals, and needs to access the FPGA chip through the PCIE interface and XDMA driver. This solution sends it to the power management module BMC through the SMBUS bus of the PCIE interface on the device under test, which can reduce the hardware wiring cost.

[0059] In one possible implementation manner, the first device is specifically used for:

[0060] monitoring the first parameter information in real time and storing the first parameter information in a register;

[0061] Accordingly, when the first device feeds back the first parameter information, it is specifically used to:

[0062] Extract the first parameter information in the register and feed back the first parameter information.

[0063] In this embodiment, if the IP core is in the first operating mode, the first parameter information inside the FPGA chip is stored in the register in real time, and the access request of the power management module BMC is received in real time. After receiving the second instruction sent by the power management module BMC to obtain the first parameter information, the microcontroller unit MCU will read and feedback the latest first parameter information in the register.

[0064] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.

[0065] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0066] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. An information processing method, applied to a device under test configured with a functional module, the method comprising: Based on the first instruction, periodically switching the operation mode of the IP core in the functional module, the operation mode of the IP core includes a pre-configured first operation mode and a second operation mode; If the IP core is in the first operation mode, feeding back first parameter information representing the state of the functional module; If the IP core is in the second operation mode, second parameter information representing the state of the device under test is fed back.

2. According to the method of claim 1, the periodic switching of the operation mode of the IP core in the functional module comprises: The operation mode is initially the first operation mode; The operation mode is switched to the second operation mode at preset time intervals, and after the second parameter information is fed back, the operation mode is switched back to the first operation mode.

3. The method according to claim 1, if the IP core is in the first operating mode, the method further comprises: monitoring the first parameter information in real time, and storing the first parameter information in an information database; Correspondingly, the feeding back of the first parameter information includes: Extract the first parameter information in the information base and feed back the first parameter information.

4. The method according to claim 1 or 3, wherein the feeding back the first parameter information comprises: Receive and respond to a second instruction to feed back the first parameter information. The method according to claim 1 , wherein the second parameter information comprises a temperature parameter and a voltage parameter.

6. An information processing device, the device comprising a device under test configured with a functional module, a first device and a second device; The first device is communicatively connected to the functional module, and is used to send a first instruction to the functional module to periodically switch the operation mode of the IP core in the functional module, wherein the operation mode of the IP core includes a preconfigured first operation mode and a second operation mode; The first device is also used to feed back first parameter information representing the state of the functional module when the IP core is in the first operating mode; The second device is used to feed back second parameter information representing the state of the device under test when the IP core is in the second operating mode.

7. The device according to claim 6, wherein the first device is specifically used for: A first instruction is sent to the functional module at preset time intervals to instruct the IP core to switch the operation mode to the second operation mode, and after the first device feeds back the second parameter information, the operation mode is switched to the first operation mode.

8. The device according to claim 6, wherein the first device is specifically used for: monitoring the first parameter information in real time, and storing the first parameter information in a register; Accordingly, when the first device feeds back the first parameter information, it is specifically used to: Extract the first parameter information in the register and feed back the first parameter information.

9. The device according to claim 6 or 8, when the first device feeds back the first parameter information, is specifically used to: Receive and respond to a second instruction sent by a third device to obtain the first parameter information and feed it back to the third device.

10. The device according to claim 9, wherein the first device is a micro control unit MCU, the second device comprises a temperature sensor and a current sensor, the third device is a power management device BMC, and the functional module is an FPGA chip.