Error injection method, system, host computer, controller, device and storage medium

Through the initialization link and error injection instructions between the host computer and the baseboard management controller, the unified management problem of error injection verification of each component in the computer system is solved, the error injection efficiency is improved, the cost is reduced, and convenient alarm information is provided. .

CN118132358BActive Publication Date: 2024-08-30INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410532594.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-29
Publication Date
2024-08-30
Estimated Expiration
2044-04-29

AI Technical Summary

Technical Problem

The existing computer system lacks unified management of error annotation verification of each component before the server leaves the factory, resulting in high error annotation costs and low efficiency.

Method used

By establishing an initialization link between the host computer and the baseboard management controller, an error note instruction is generated according to the error type of the target component to note the error. It determines whether a fault has occurred through running information query, and generates alarm information to facilitate users.

Benefits of technology

It achieves unified error annotation for each component, improves error annotation verification efficiency, reduces system testing costs, and provides convenient alarm information when a fault does not occur.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118132358B
    Figure CN118132358B
Patent Text Reader

Abstract

The embodiment of the present invention provides an error annotation method, which can determine the error type of a target component that needs to be error-annotated through a host computer, so that an initialization link can be created between a baseboard management controller and the target component according to the error type of the target component. After the initialization link is completed, an error annotation instruction can be sent to the baseboard management controller to perform error annotation on the target component. After the error annotation is completed, an operation information query request can be sent to the baseboard management controller and operation information corresponding to the target component sent by the baseboard management controller can be received. Then, according to the operation information, it is determined whether a fault corresponding to the error type occurs. If not, an alarm message is generated and displayed. The host computer of the present invention can provide a unified error annotation platform for server system testers, that is, error annotation of each component can be implemented on the host computer, which improves the error annotation verification efficiency and greatly reduces the system testing cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to an error injection method, system, host computer, baseboard management controller, device and storage medium. Background Art

[0002] With the development of science and technology, current computer systems are becoming more and more complex, and system failures are also diverse in various application scenarios. In order to ensure stable operation of the system, each component needs to be batch-injected and verified before the server leaves the factory. Currently, the error injection of each component is independent and lacks unified management. Such error injection methods are often single-point error injection, resulting in relatively high error injection costs. Summary of the invention

[0003] In view of the above problems, embodiments of the present invention are proposed to provide an error injection method, system, host computer, baseboard management controller, device and storage medium that overcome the above problems or at least partially solve the above problems.

[0004] In order to solve the above problem, the present invention discloses an error injection method, which is applied to a host computer, the host computer is connected to a baseboard management controller, and the method comprises:

[0005] Determine the error type of the target component that needs to be error-injected, and generate an error-injection start command according to the error type of the target component;

[0006] sending the injection start command to the baseboard management controller to create an initialization link between the baseboard management controller and the target component;

[0007] If an initialization link creation completion signal sent by the baseboard management controller is received, an error annotation instruction is generated according to the error type, and the error annotation instruction is sent to the baseboard management controller to perform error annotation on the target component;

[0008] receiving an error injection completion signal sent by the baseboard management controller, and sending an operation information query request to the baseboard management controller;

[0009] Receive the operation information corresponding to the target component sent by the baseboard management controller, determine whether the fault corresponding to the error type occurs according to the operation information, and if the fault corresponding to the error type does not occur, generate and display alarm information.

[0010] Optionally, the operation information query request includes a register identifier corresponding to the error type of the target component, and judging whether a fault corresponding to the error type occurs according to the operation information includes:

[0011] If the operation information of the register corresponding to the error type of the target component includes a fault corresponding to the error type, determining that the fault corresponding to the error type occurs;

[0012] If the operation information of the register corresponding to the error type of the target component does not include the fault corresponding to the error type, it is determined that the fault corresponding to the error type has not occurred.

[0013] Optionally, the host computer includes an intelligent platform management interface, and the method further includes:

[0014] A reset command is sent to a baseboard management controller through an intelligent platform management interface, so that the baseboard management controller triggers a reset interrupt of the target component and restores the target component to an initial state.

[0015] Optionally, the target component includes at least one of a central processing unit, a programmable logic device, a power supply unit, a memory, and a network card.

[0016] The present invention also discloses an error injection method, which is applied to a baseboard management controller, wherein the baseboard management controller is connected to a host computer, and the method comprises:

[0017] receiving an error injection start command sent by the host computer, wherein the error injection start command includes an error type of a target component that needs to be injected with an error;

[0018] Establishing an initialization link with the target component according to the injection error start command;

[0019] Sending an initialization link creation completion signal to the host computer, and receiving an error annotation instruction sent by the host computer;

[0020] Performing error injection on the target component according to the error injection instruction, and sending an error injection completion signal to the host computer after the error injection is completed;

[0021] Receiving an operation information query request sent by the host computer;

[0022] According to the operation information query request, the operation information of the target component is obtained, and the operation information is sent to the host computer.

[0023] Optionally, the target component includes a central processing unit, the baseboard management controller includes a joint test workgroup interface controller and a joint test workgroup interface, and the initialization link is established with the target component according to the error injection start command, including:

[0024] Initialize the joint test working group interface controller, and configure the initialization link between the joint test working group interface and the central processing unit through the joint test working group interface controller.

[0025] Optionally, the target component includes a programmable logic device, the error type includes a power-off type and a timeout type, and the error-annotating the target component according to the error-annotating instruction includes:

[0026] Configuring a power-off register of the programmable logic device according to the power-off type;

[0027] A timer of the programmable logic device is configured according to the timeout type.

[0028] Optionally, the target component includes a power supply unit, the error type includes a fan failure and an input voltage failure, and performing error injection on the target component according to the error injection instruction includes:

[0029] configuring a fan register of the power supply unit according to the fan failure;

[0030] An input voltage register of the power supply unit is configured according to the input voltage fault.

[0031] Optionally, the operation information query instruction includes a number of a fan register, and acquiring the operation information of the target component according to the operation information query request includes:

[0032] According to the number of the fan register, the operation information of the fan register is obtained through a bidirectional serial bus.

[0033] Optionally, the target component includes at least one of a central processing unit, a programmable logic device, a power supply unit, a memory, and a network card.

[0034] The present invention also discloses an injection error system, the injection error system comprises a host computer and a baseboard management controller, the host computer and the baseboard management controller are connected;

[0035] The host computer is used to determine the error type of the target component that needs to be error-annotated, encapsulate the error type of the target component to obtain an error-annotation start command, and send the error-annotation start command to the baseboard management controller; receive an initialization link creation completion signal sent by the baseboard management controller, generate an error-annotation instruction according to the error type, send the error-annotation instruction to the baseboard management controller, and send an operation information query request to the baseboard management controller; receive the operation information corresponding to the target component sent by the baseboard management controller, determine whether the fault corresponding to the error type occurs according to the operation information, and if the fault corresponding to the error type does not occur, generate and display alarm information;

[0036] The baseboard management controller is used to receive an error injection start command sent by the host computer, establish an initialization link with the target component according to the error injection start command; send an initialization link creation completion signal to the host computer, receive an error injection instruction sent by the host computer, perform error injection on the target component according to the error injection instruction, and send an error injection completion signal to the host computer after the error injection is completed; receive an operation information query request sent by the host computer; obtain the operation information of the target component according to the operation information query request, and send the operation information to the host computer.

[0037] The present invention also discloses a host computer, which is connected to the baseboard management controller and includes:

[0038] A determination module, used to determine the error type of the target component that needs to be error-injected, and generate an error-injection start command according to the error type of the target component;

[0039] A sending module, used for sending the error injection start command to the baseboard management controller to create an initialization link between the baseboard management controller and the target component;

[0040] A first sending module is used for generating an error annotation instruction according to the error type if an initialization link creation completion signal sent by the baseboard management controller is received, and sending the error annotation instruction to the baseboard management controller to perform error annotation on the target component;

[0041] A second sending module is used to receive the error injection completion signal sent by the baseboard management controller, and send an operation information query request to the baseboard management controller;

[0042] The display module is used to receive the operation information corresponding to the target component sent by the baseboard management controller, determine whether the fault corresponding to the error type occurs according to the operation information, and generate and display alarm information if the fault corresponding to the error type does not occur.

[0043] The present invention also discloses a baseboard management controller, which is connected to a host computer and includes:

[0044] A first receiving module is used to receive an error injection start command sent by the host computer, wherein the error injection start command includes an error type of a target component that needs to be injected with an error;

[0045] An establishing module, used for establishing an initialization link with the target component according to the injection error start command;

[0046] A second receiving module is used to send an initialization link creation completion signal to the host computer and receive an error injection instruction sent by the host computer;

[0047] An error injection module is used to inject an error into the target component according to the error injection instruction, and send an error injection completion signal to the host computer after the error injection is completed;

[0048] A third receiving module is used to receive the operation information query request sent by the host computer;

[0049] The acquisition module is used to acquire the operation information of the target component according to the operation information query request, and send the operation information to the host computer.

[0050] The present invention also discloses an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the steps of the above-mentioned error injection method when executed by the processor.

[0051] The present invention also discloses a non-volatile readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the error injection method described above are implemented.

[0052] The embodiments of the present invention include the following advantages:

[0053] The present invention discloses an error injection method, which can determine the error type of a target component that needs to be injected with error through a host computer, so that an initialization link can be created between a baseboard management controller and the target component according to the error type of the target component. After the initialization link is completed, an error injection instruction can be sent to the baseboard management controller to inject error into the target component. After the error injection is completed, an operation information query request can be sent to the baseboard management controller and operation information corresponding to the target component sent by the baseboard management controller can be received. Then, according to the operation information, it is determined whether a fault corresponding to the error type occurs. If not, an alarm message is generated and displayed. The host computer of the present invention can provide a unified error injection platform for server system testers, that is, the error injection of each component can be realized on the host computer, thereby improving the error injection verification efficiency and greatly reducing the system testing cost. The alarm message can also be displayed when the fault corresponding to the error type of the error injection does not occur, thereby providing convenience for users. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 It is a flowchart of a method for error injection provided by an embodiment of the present invention;

[0055] Figure 2 is a schematic diagram of a display interface of a host computer provided by an embodiment of the present invention;

[0056] Figure 3 is a flowchart of another method for error injection provided by an embodiment of the present invention;

[0057] Figure 4 It is a flowchart of a method for error injection provided by an embodiment of the present invention;

[0058] Figure 5 It is a structural block diagram of a host computer provided by an embodiment of the present invention;

[0059] Figure 6 is a structural block diagram of a baseboard management controller provided by an embodiment of the present invention;

[0060] Figure 7 is a structural block diagram of an electronic device provided by an embodiment of the present invention;

[0061] Figure 8 It is a structural block diagram of a computer-readable storage medium provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0062] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0063] One of the core concepts of the embodiments of the present invention is that the error type of the target component that needs to be error-annotated can be determined by the host computer, so that an initialization link can be created between the baseboard management controller and the target component according to the error type of the target component. After the initialization link is completed, the error-annotation instruction can be sent to the baseboard management controller to perform error-annotation on the target component. After the error-annotation is completed, an operation information query request can be sent to the baseboard management controller and the operation information corresponding to the target component sent by the baseboard management controller can be received. Then, according to the operation information, it is determined whether the fault corresponding to the error type occurs. If not, an alarm message is generated and displayed. The host computer of the present invention can provide a unified error-annotation platform for server system testers, that is, the error-annotation of each component can be implemented on the host computer, which improves the error-annotation verification efficiency and greatly reduces the system testing cost. And the alarm message can be displayed when the fault corresponding to the error type of the error-annotation does not occur, providing convenience for users.

[0064] Reference Figure 1 , shows a flow chart of steps of an error injection method provided by an embodiment of the present invention, which is applied to a host computer, the host computer is connected to a baseboard management controller, and the method includes:

[0065] Step 101, determining the error type of the target component that needs to be error-injected, and generating an error-injection start command according to the error type of the target component.

[0066] In an embodiment of the present invention, multiple components can be displayed in the display interface of the host computer, each component corresponds to multiple error types, and the user can determine the error type of the target component that needs to be noted among the multiple components and multiple error types. The target component that needs to be noted can be one component or multiple components, and the error type can include one or more, which is not limited here.

[0067] After determining the error type of the target component that the user needs to perform error injection on, the error type of the target component may be encapsulated into an error injection start command.

[0068] In one embodiment of the present invention, the target component is at least one of a central processing unit, a programmable logic device, a power supply unit, a memory, and a network card.

[0069] In the embodiment of the present invention, Figure 2 , shows a schematic diagram of a display interface of a host computer provided by an embodiment of the present invention, wherein multiple components may be displayed in the host computer, and the multiple components may include: CPU (Central Processing Unit), CPLD (Complex Programmable Logic Device), PSU (Power Supply Unit), MEM (memory), and network card, wherein the error types that can be selected in the CPU may include: UPI (Ultra Path Interconnect), PCU (Power Control Unit), IMC (Integrated memory controller), and CHA (Cache Home Agent cache consistency unit), the error types that can be selected in the memory may include: ADDDC (Adaptive Double Device Data Correction), PPR (Post Pacakge Repair), and UCE (Uncorrectable Error), the error types that can be selected in the programmable logic device may include: Drop, Timeout, and Alert, and the error types that can be selected in the network card may include: Fatal, PERR (Parity Error), and SERR (System Error). Errot system error), the types that can be selected in the power supply unit may include: Fan fault (fan fault), Vin Fault (input voltage fault), and Predictive warning.

[0070] Step 102 : sending an injection start command to a baseboard management controller to create an initialization link between the baseboard management controller and a target component.

[0071] In an embodiment of the present invention, after the host computer generates the error injection start command, it can send the error injection start command to the baseboard management controller, so that the baseboard management controller creates an initialization link between the baseboard management controller and the target component after receiving the error injection start command.

[0072] Step 103: if an initialization link creation completion signal sent by the baseboard management controller is received, an error annotation instruction is generated according to the error type, and the error annotation instruction is sent to the baseboard management controller to perform error annotation on the target component.

[0073] In an embodiment of the present invention, an initialization link creation completion signal is used to indicate that the initialization link creation between the baseboard management controller and the target component is completed. After receiving the initialization link creation completion signal sent by the baseboard management controller, the host computer can generate an error annotation instruction according to the error type of the target component selected by the user, and then send the error annotation instruction to the baseboard management controller, wherein the error annotation instruction may include the error type of the target component. For example, if the target component selected by the user is a network card, the error type may include a parity failure and a system error.

[0074] Step 104: receiving an error injection completion signal sent by a baseboard management controller, and sending an operation information query request to the baseboard management controller.

[0075] In an embodiment of the present invention, the error injection completion signal is used to indicate that the baseboard management controller has completed the error injection of the target component after receiving the error injection instruction. After receiving the error injection completion signal, the host computer can send an operation information query request to the baseboard management controller to obtain the operation information of the target component.

[0076] Step 105, receiving the operation information corresponding to the target component sent by the baseboard management controller, judging whether the fault corresponding to the error type occurs according to the operation information, and if the fault corresponding to the error type does not occur, generating and displaying alarm information.

[0077] In an embodiment of the present invention, the host computer can receive the operation information corresponding to the target component sent by the baseboard management controller based on the operation information query request, and then determine whether the fault corresponding to the error type of the target component occurs according to the operation information. If it occurs, it means that the component is working normally. If the fault corresponding to the error type of the target component does not occur, an alarm message can be generated and displayed in the interface. The user is reminded through the alarm message that there is a fault in the component, thereby providing convenience for the user.

[0078] In one embodiment of the present invention, an operation information query request includes a register identifier corresponding to an error type of a target component, and whether a fault corresponding to the error type occurs is determined based on the operation information, including: if the operation information of the register corresponding to the error type of the target component includes the fault corresponding to the error type, then it is determined that the fault corresponding to the error type occurs; if the operation information of the register corresponding to the error type of the target component does not include the fault corresponding to the error type, then it is determined that the fault corresponding to the error type does not occur.

[0079] In an embodiment of the present invention, the host computer can send an operation information query request to the baseboard management controller. After receiving the operation information query request, the baseboard management controller can parse the register identifier corresponding to the error type of the target component, and then obtain the operation information of the register corresponding to the error type of the target component and send it to the host computer. The host computer can determine whether the operation information of the register corresponding to the error type of the target component includes the fault corresponding to the error type. If it is included, it indicates that the fault corresponding to the error type has occurred. If it is not included, it indicates that the fault corresponding to the error type has not occurred. The present invention can determine whether a fault has occurred by obtaining the operation information of the register corresponding to the error type, thereby improving the efficiency of fault detection.

[0080] In one example, the target component is a power supply unit, and the error type is a fan failure. If the upper computer obtains the operating information of the fan register and determines that the operating information of the fan register includes a fan failure, it is determined that a fault corresponding to the error type has occurred. If it is determined that the operating information of the fan register does not include a fan failure, it can be determined that the fault corresponding to the error type has not occurred.

[0081] In one embodiment of the present invention, the host computer includes an intelligent platform management interface, and the method further includes: sending a reset command to the baseboard management controller through the intelligent platform management interface, so that the baseboard management controller triggers a reset interrupt of the target component to restore the target component to an initial state.

[0082] In an embodiment of the present invention, the host computer may include an IPMI (Intelligent Platform Management Interface), and a reset command may be sent to a baseboard management controller through the intelligent platform management interface. After receiving the reset command, the baseboard management controller may trigger a reset interrupt of the target component, thereby restoring the target component to an initial state, thereby restoring the state of the target component to the initial state after annotating the error type of the target component, thereby avoiding affecting the operation of the target component.

[0083] The present invention discloses an error injection method, which can determine the error type of a target component that needs to be injected with error through a host computer, so that an initialization link can be created between a baseboard management controller and the target component according to the error type of the target component. After the initialization link is completed, an error injection instruction can be sent to the baseboard management controller to inject error into the target component. After the error injection is completed, an operation information query request can be sent to the baseboard management controller and operation information corresponding to the target component sent by the baseboard management controller can be received. Then, according to the operation information, it is determined whether a fault corresponding to the error type occurs. If not, an alarm message is generated and displayed. The host computer of the present invention can provide a unified error injection platform for server system testers, that is, the error injection of each component can be realized on the host computer, thereby improving the error injection verification efficiency and greatly reducing the system testing cost. The alarm message can also be displayed when the fault corresponding to the error type of the error injection does not occur, thereby providing convenience for users.

[0084] Reference Figure 3 , shows a flowchart of another error injection method provided by an embodiment of the present invention, which is applied to a baseboard management controller, the baseboard management controller is connected to a host computer, and the method includes:

[0085] Step 201, receiving an error injection start command sent by a host computer, where the error injection start command includes an error type of a target component that needs to be injected with an error.

[0086] In one embodiment of the present invention, the target component is at least one of a central processing unit, a programmable logic device, a power supply unit, a memory, and a network card.

[0087] Step 202, establishing an initialization link with the target component according to the injection error start command;

[0088] In one embodiment of the present invention, the target component includes a central processing unit, the baseboard management controller includes a joint test workgroup interface controller and a joint test workgroup interface, and an initialization link is established with the target component according to an error injection startup command, including: initializing the joint test workgroup interface controller, and configuring the initialization link between the joint test workgroup interface and the central processing unit through the joint test workgroup interface controller.

[0089] In an embodiment of the present invention, the baseboard management controller may include a JTAG (Joint Test Action Group) controller and a joint test workgroup interface. When the target component includes a central processing unit, the baseboard management controller may initialize the joint test workgroup interface controller, and then configure the initialization link between the joint test workgroup interface and the central processing unit through the joint test workgroup interface controller, thereby establishing a communication link between the baseboard management controller and the central processing unit. The present invention may establish a communication link between a host computer and the target component through the baseboard management controller, thereby directly performing error injection on the target component on the host computer, thereby improving error injection efficiency.

[0090] Step 203, sending an initialization link creation completion signal to the host computer, and receiving an error annotation instruction sent by the host computer;

[0091] Step 204, perform error annotation on the target component according to the error annotation instruction, and send an error annotation completion signal to the upper computer after the error annotation is completed.

[0092] In one embodiment of the present invention, the target component includes a programmable logic device, the error type includes a power-off type and a timeout type, and the error annotation of the target component according to the error annotation instruction includes: configuring a power-off register of the programmable logic device according to the power-off type; and configuring a timer of the programmable logic device according to the timeout type.

[0093] In an embodiment of the present invention, when the target component includes a programmable logic device and the error injection type selected by the user is a power-off type or a timeout type, after the baseboard management controller receives the error injection instruction, it can parse the programmable logic device and the power-off type and the timeout type from the error injection instruction, and then it can configure the power-off register of the programmable logic device according to the power-off type, that is, construct a power-off type fault in the power-off register, and construct a timeout type fault in the timer.

[0094] In one embodiment of the present invention, the target component includes a power supply unit, the error types include fan failure and input voltage failure, and the target component is error-annotated according to an error-annotation instruction, including: configuring a fan register of the power supply unit according to the fan failure; configuring an input voltage register of the power supply unit according to the input voltage failure.

[0095] In an embodiment of the present invention, when the target component includes a power supply unit and the error type of error injection selected by the user is a fan failure or an input voltage failure, after the baseboard management controller receives the error injection instruction, it can parse the power supply unit and the fan failure and the input voltage failure from the error injection instruction, and then it can configure the fan register of the power supply unit according to the fan failure, that is, construct a fan failure in the fan register and construct an input voltage failure in the input voltage register.

[0096] Step 205, receiving an operation information query request sent by the host computer;

[0097] Step 206: Acquire the operation information of the target component according to the operation information query request, and send the operation information to the host computer.

[0098] In one embodiment of the present invention, the operation information query instruction includes the number of the fan register, and the operation information of the target component is obtained according to the operation information query request, including: obtaining the operation information of the fan register through a bidirectional serial bus according to the number of the fan register.

[0099] In an embodiment of the present invention, when the target component includes a power supply unit and the error type selected by the user is a fan failure, the upper computer can send an operation information query request to the baseboard management controller in order to obtain the operation information of the fan register, wherein the operation information query instruction can include the number of the fan register. In an example, the number of the fan register is Fan. The baseboard management controller can parse Fan after receiving the operation information query instruction, and then obtain the operation information of the fan register through a bidirectional serial bus. The present invention can query the corresponding operation information according to the number of the register corresponding to the error type, thereby improving the query rate of the operation information.

[0100] like Figure 4, showing a flow chart of an error injection method provided by an embodiment of the present invention, the target component is a central processing unit, the error type is a hyperpath interconnection, the host computer can send an error injection start instruction to the baseboard management controller, after the baseboard management controller receives the error injection start instruction, it can create an initialization link with the central processing unit, after the initialization link is created, the baseboard management controller can send an initialization link creation completion signal to the host computer, after the host computer receives the initialization link creation completion signal, it can send an error injection instruction to the baseboard management controller, the baseboard management controller can inject errors into the central processing unit, after the error injection is completed, it can send an error injection completion signal to the host computer, after the host computer receives the error injection completion signal, it can send an operation information query request to the baseboard management controller, the baseboard management controller receives the operation information query request, it can obtain the operation information of the central processing unit, and then send the operation information of the central processing unit to the host computer, the host computer can judge whether the error type fault occurs according to the operation information, if not, it generates and displays the alarm information.

[0101] The present invention discloses an error injection method, which can determine the error type of a target component that needs to be injected with error through a host computer, so that an initialization link can be created between a baseboard management controller and the target component according to the error type of the target component. After the initialization link is completed, an error injection instruction can be sent to the baseboard management controller to inject error into the target component. After the error injection is completed, an operation information query request can be sent to the baseboard management controller and operation information corresponding to the target component sent by the baseboard management controller can be received. Then, according to the operation information, it is determined whether a fault corresponding to the error type occurs. If not, an alarm message is generated and displayed. The host computer of the present invention can provide a unified error injection platform for server system testers, that is, the error injection of each component can be realized on the host computer, thereby improving the error injection verification efficiency and greatly reducing the system testing cost. The alarm message can also be displayed when the fault corresponding to the error type of the error injection does not occur, thereby providing convenience for users.

[0102] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0103] The present invention also discloses an injection error system, which includes a host computer and a baseboard management controller, wherein the host computer and the baseboard management controller are connected;

[0104] The upper computer is used to determine the error type of the target component that needs to be error-annotated, encapsulate the error type of the target component to obtain an error-annotation start command, and send the error-annotation start command to the baseboard management controller; receive the initialization link creation completion signal sent by the baseboard management controller, generate an error-annotation instruction according to the error type, send the error-annotation instruction to the baseboard management controller, and send an operation information query request to the baseboard management controller; receive the operation information corresponding to the target component sent by the baseboard management controller, determine whether the fault corresponding to the error type occurs according to the operation information, and if the fault corresponding to the error type does not occur, generate and display an alarm message;

[0105] The baseboard management controller is used to receive the error injection start command sent by the host computer, establish an initialization link with the target component according to the error injection start command; send an initialization link creation completion signal to the host computer, receive the error injection instruction sent by the host computer, inject the error into the target component according to the error injection instruction, and send the error injection completion signal to the host computer after the error injection is completed; receive the operation information query request sent by the host computer; obtain the operation information of the target component according to the operation information query request, and send the operation information to the host computer.

[0106] Reference Figure 5 , shows a structural block diagram of a host computer 30 provided in an embodiment of the present invention, the host computer is connected to the baseboard management controller, and the host computer includes:

[0107] A determination module 301 is used to determine the error type of the target component that needs to be error-injected, and generate an error-injection start command according to the error type of the target component;

[0108] A first sending module 302 is used to send an injection start command to a baseboard management controller to create an initialization link between the baseboard management controller and a target component;

[0109] The second sending module 303 is used for generating an error annotation instruction according to the error type if an initialization link creation completion signal sent by the baseboard management controller is received, and sending the error annotation instruction to the baseboard management controller to perform error annotation on the target component;

[0110] The third sending module 304 is used to receive the error injection completion signal sent by the baseboard management controller and send an operation information query request to the baseboard management controller;

[0111] The display module 305 is used to receive the operation information corresponding to the target component sent by the baseboard management controller, determine whether the fault corresponding to the error type occurs according to the operation information, and generate and display alarm information if the fault corresponding to the error type does not occur.

[0112] In an embodiment of the present invention, the operation information query request includes a register identifier corresponding to the error type of the target component, and the display module 305 may include:

[0113] A first determination submodule, configured to determine that a fault corresponding to the error type occurs if the operation information of the register corresponding to the error type of the target component includes a fault corresponding to the error type;

[0114] The second determination submodule is used to determine that the fault corresponding to the error type has not occurred if the operation information of the register corresponding to the error type of the target component does not include the fault corresponding to the error type.

[0115] In one embodiment of the present invention, the host computer includes an intelligent platform management interface, and the host computer also includes:

[0116] The reset module is used to send a reset command to the baseboard management controller through the intelligent platform management interface, so that the baseboard management controller triggers a reset interrupt of the target component and restores the target component to an initial state.

[0117] In one embodiment of the present invention, the target component is at least one of a central processing unit, a programmable logic device, a power supply unit, a memory, and a network card.

[0118] The present invention discloses a host computer, which can determine the error type of a target component that needs to be error-annotated through the host computer, so that an initialization link can be created between a baseboard management controller and the target component according to the error type of the target component. After the initialization link is completed, an error-annotation instruction can be sent to the baseboard management controller to perform error-annotation on the target component. After the error-annotation is completed, an operation information query request can be sent to the baseboard management controller and operation information corresponding to the target component sent by the baseboard management controller can be received. Then, according to the operation information, it is determined whether a fault corresponding to the error type occurs. If not, an alarm message is generated and displayed. The host computer of the present invention can provide a unified error-annotation platform for server system testers, that is, the error-annotation of each component can be realized on the host computer, thereby improving the error-annotation verification efficiency and greatly reducing the system test cost. The alarm message can also be displayed when the fault corresponding to the error type of the error-annotation does not occur, thereby providing convenience for users.

[0119] Reference Figure 6 , shows a structural block diagram of a baseboard management controller 40 provided in an embodiment of the present invention, the baseboard management controller is connected to a host computer, and the baseboard management controller includes:

[0120] The first receiving module 401 is used to receive an error injection start command sent by a host computer, where the error injection start command includes an error type of a target component that needs to be injected with an error;

[0121] Establishing module 402, used to establish an initialization link with a target component according to an injection error start command;

[0122] The second receiving module 403 is used to send an initialization link creation completion signal to the host computer and receive an error annotation instruction sent by the host computer;

[0123] The error injection module 404 is used to inject errors into the target component according to the error injection instruction, and send an error injection completion signal to the upper computer after the error injection is completed;

[0124] The third receiving module 405 is used to receive the operation information query request sent by the host computer;

[0125] The acquisition module 406 is used to acquire the operation information of the target component according to the operation information query request, and send the operation information to the upper computer.

[0126] In one embodiment of the present invention, the target component includes a central processing unit, the baseboard management controller includes a joint test workgroup interface controller and a joint test workgroup interface, and the establishment module 402 includes:

[0127] The initialization submodule is used to initialize the joint test working group interface controller and configure the initialization link between the joint test working group interface and the central processing unit through the joint test working group interface controller.

[0128] In an embodiment of the present invention, the target component includes a programmable logic device, the error type includes a power-off type and a timeout type, and the error injection module 404 includes:

[0129] A first configuration submodule, configured to configure a power-off register of a programmable logic device according to a power-off type;

[0130] The second configuration submodule is used to configure the timer of the programmable logic device according to the timeout type.

[0131] In an embodiment of the present invention, the target component includes a power supply unit, the error type includes a fan failure and an input voltage failure, and the error injection module 404 includes:

[0132] A third configuration submodule configures a fan register of the power supply unit according to a fan failure;

[0133] The fourth configuration submodule configures the input voltage register of the power supply unit according to the input voltage fault.

[0134] In an embodiment of the present invention, the operation information query instruction includes the number of the fan register, and the acquisition module 406 includes:

[0135] The acquisition submodule is used to acquire the operation information of the fan register through the bidirectional serial bus according to the number of the fan register.

[0136] In one embodiment of the present invention, the target component is at least one of a central processing unit, a programmable logic device, a power supply unit, a memory, and a network card.

[0137] The present invention discloses a baseboard management controller, which can determine the error type of a target component that needs to be error-annotated through a host computer, so that an initialization link can be created between the baseboard management controller and the target component according to the error type of the target component. After the initialization link is completed, an error-annotation instruction can be sent to the baseboard management controller to perform error-annotation on the target component. After the error-annotation is completed, an operation information query request can be sent to the baseboard management controller and operation information corresponding to the target component sent by the baseboard management controller can be received. Then, according to the operation information, it is determined whether a fault corresponding to the error type occurs. If not, an alarm message is generated and displayed. The host computer of the present invention can provide a unified error-annotation platform for server system testers, that is, the error-annotation of each component can be realized on the host computer, thereby improving the error-annotation verification efficiency and greatly reducing the system test cost. And when the fault corresponding to the error type of the error-annotation does not occur, the alarm message can be displayed, providing convenience for users.

[0138] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0139] like Figure 7 , showing a structural block diagram of an electronic device 50 provided in an embodiment of the present invention, including:

[0140] A processor 501, a memory 502, and a computer program 5021 stored in the memory 502 and capable of running on the processor 501. When the computer program 5021 is executed by the processor 501, each process of the above-mentioned error injection method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0141] like Figure 8 , shows a structural block diagram of a computer-readable storage medium 60 provided in an embodiment of the present invention. A computer program 601 is stored on the computer-readable storage medium 60. When the computer program 601 is executed by the processor, the various processes of the above-mentioned error injection method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0142] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0143] It should be understood by those skilled in the art that the embodiments of the present invention can be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0144] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0145] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0146] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable terminal device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0147] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0148] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0149] The above is a detailed introduction to the error injection method, system, host computer, baseboard management controller, device and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for injection error, characterized in that: Applied to a host computer, the host computer is connected to a baseboard management controller, and the method includes: Determine the error type of the target component that needs to be error-injected, and generate an error-injection start command according to the error type of the target component; sending the injection start command to the baseboard management controller to create an initialization link between the baseboard management controller and the target component; If an initialization link creation completion signal sent by the baseboard management controller is received, an error annotation instruction is generated according to the error type, and the error annotation instruction is sent to the baseboard management controller to perform an error annotation on the target component; the initialization link creation completion signal is used to indicate that the initialization link creation between the baseboard management controller and the target component is completed; the error annotation instruction includes the error type of the target component; receiving an error injection completion signal sent by the baseboard management controller, and sending an operation information query request to the baseboard management controller; receiving operation information corresponding to the target component sent by the baseboard management controller, judging whether a fault corresponding to the error type occurs according to the operation information, and generating and displaying alarm information if the fault corresponding to the error type does not occur; The operation information query request includes a register identifier corresponding to the error type of the target component, and judging whether a fault corresponding to the error type occurs according to the operation information includes: If the operation information of the register corresponding to the error type of the target component includes a fault corresponding to the error type, determining that the fault corresponding to the error type occurs; If the operation information of the register corresponding to the error type of the target component does not include the fault corresponding to the error type, it is determined that the fault corresponding to the error type has not occurred.

2. The method according to claim 1, characterized in that The host computer includes an intelligent platform management interface, and the method further includes: A reset command is sent to a baseboard management controller through an intelligent platform management interface, so that the baseboard management controller triggers a reset interrupt of the target component and restores the target component to an initial state.

3. The method according to claim 1, characterized in that The target component includes at least one of a central processing unit, a programmable logic device, a power supply unit, a memory, and a network card.

4. A method for injection error, characterized in that: Applied to a baseboard management controller, the baseboard management controller is connected to a host computer, and the method includes: receiving an error injection start command sent by the host computer, wherein the error injection start command includes an error type of a target component that needs to be injected with an error; Establishing an initialization link with the target component according to the injection error start command; Sending an initialization link creation completion signal to the host computer, and receiving an error annotation instruction sent by the host computer; the initialization link creation completion signal is used to indicate that the initialization link creation between the baseboard management controller and the target component is completed; the error annotation instruction includes the error type of the target component; Performing error injection on the target component according to the error injection instruction, and sending an error injection completion signal to the host computer after the error injection is completed; Receiving an operation information query request sent by the host computer; According to the operation information query request, the operation information of the target component is obtained, and the operation information is sent to the host computer.

5. The method according to claim 4, characterized in that The target component includes a central processing unit, the baseboard management controller includes a joint test workgroup interface controller and a joint test workgroup interface, and the initialization link is established with the target component according to the error injection start command, including: Initialize the joint test working group interface controller, and configure the initialization link between the joint test working group interface and the central processing unit through the joint test working group interface controller.

6. The method according to claim 4, characterized in that The target component includes a programmable logic device, the error type includes a power-off type and a timeout type, and the error annotation on the target component according to the error annotation instruction includes: Configuring a power-off register of the programmable logic device according to the power-off type; A timer of the programmable logic device is configured according to the timeout type.

7. The method according to claim 4, characterized in that The target component includes a power supply unit, the error type includes a fan failure and an input voltage failure, and performing error injection on the target component according to the error injection instruction includes: configuring a fan register of the power supply unit according to the fan failure; An input voltage register of the power supply unit is configured according to the input voltage fault.

8. The method according to claim 7, characterized in that The operation information query instruction includes the number of the fan register, and acquiring the operation information of the target component according to the operation information query request includes: According to the number of the fan register, the operation information of the fan register is obtained through a bidirectional serial bus.

9. The method according to claim 4, characterized in that The target component includes at least one of a central processing unit, a programmable logic device, a power supply unit, a memory, and a network card.

10. A mis-injection system, characterized in that: The injection error system comprises a host computer and a baseboard management controller, wherein the host computer is connected to the baseboard management controller; The host computer is used to determine the error type of the target component that needs to be error-injected, encapsulate the error type of the target component to obtain an error-injection start command, and send the error-injection start command to the baseboard management controller; Receive an initialization link creation completion signal sent by the baseboard management controller, generate an error annotation instruction according to the error type, send the error annotation instruction to the baseboard management controller, and send an operation information query request to the baseboard management controller; receive the operation information corresponding to the target component sent by the baseboard management controller, determine whether the fault corresponding to the error type occurs according to the operation information, and if the fault corresponding to the error type does not occur, generate and display alarm information; the initialization link creation completion signal is used to indicate that the initialization link between the baseboard management controller and the target component is completed; the error annotation instruction includes the error type of the target component; The operation information query request includes a register identifier corresponding to the error type of the target component, and the host computer is used to determine that the fault corresponding to the error type has occurred if the operation information of the register corresponding to the error type of the target component includes the fault corresponding to the error type; if the operation information of the register corresponding to the error type of the target component does not include the fault corresponding to the error type, determine that the fault corresponding to the error type has not occurred; The baseboard management controller is used to receive the error injection start command sent by the host computer, establish an initialization link with the target component according to the error injection start command; send an initialization link creation completion signal to the host computer, receive the error injection instruction sent by the host computer, inject error into the target component according to the error injection instruction, and send an error injection completion signal to the host computer after the error injection is completed; receive an operation information query request sent by the host computer; According to the operation information query request, the operation information of the target component is obtained, and the operation information is sent to the host computer.

11. A host computer, the host computer is connected to a baseboard management controller, and the host computer comprises: A determination module, used to determine the error type of the target component that needs to be error-injected, and generate an error-injection start command according to the error type of the target component; A sending module, used for sending the error injection start command to the baseboard management controller to create an initialization link between the baseboard management controller and the target component; A first sending module is used for generating an error annotation instruction according to the error type if an initialization link creation completion signal sent by the baseboard management controller is received, and sending the error annotation instruction to the baseboard management controller to perform an error annotation on the target component; the initialization link creation completion signal is used to indicate that the initialization link creation between the baseboard management controller and the target component is completed; the error annotation instruction includes the error type of the target component; A second sending module is used to receive the error injection completion signal sent by the baseboard management controller, and send an operation information query request to the baseboard management controller; A display module, configured to receive the operation information corresponding to the target component sent by the baseboard management controller, determine whether the fault corresponding to the error type occurs according to the operation information, and generate and display alarm information if the fault corresponding to the error type does not occur; The operation information query request includes a register identifier corresponding to the error type of the target component, The display module includes: a first determination submodule, for determining that a fault corresponding to the error type occurs if the operation information of the register corresponding to the error type of the target component includes a fault corresponding to the error type; The second determination submodule is used to determine that the fault corresponding to the error type has not occurred if the operation information of the register corresponding to the error type of the target component does not include the fault corresponding to the error type.

12. A baseboard management controller, the baseboard management controller is connected to a host computer, and the baseboard management controller comprises: A first receiving module is used to receive an error injection start command sent by the host computer, wherein the error injection start command includes an error type of a target component that needs to be injected with an error; An establishing module, used for establishing an initialization link with the target component according to the injection error start command; A second receiving module is used to send an initialization link creation completion signal to the host computer, and receive an error annotation instruction sent by the host computer; the initialization link creation completion signal is used to indicate that the initialization link creation between the baseboard management controller and the target component is completed; the error annotation instruction includes the error type of the target component; An error injection module is used to inject an error into the target component according to the error injection instruction, and send an error injection completion signal to the host computer after the error injection is completed; A third receiving module is used to receive the operation information query request sent by the host computer; The acquisition module is used to acquire the operation information of the target component according to the operation information query request, and send the operation information to the host computer.

13. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the error injection method according to any one of claims 1 to 9 are implemented.

14. A non-volatile readable storage medium, characterized in that: The non-volatile readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the error injection method according to any one of claims 1 to 9 are implemented.

Citation Information

Patent Citations

  • Verification method and device, electronic equipment and readable storage medium

    CN115794524A

  • System emergency fault test method, device and system

    CN115904846A