A server mainboard fault detection method, device, electronic equipment and medium

By obtaining the indication status and register feedback value of the server motherboard fault light, combined with the memory controller self-test, the inefficient fault detection problem that relies on external tools in the existing technology is solved, efficient fault detection and fault position positioning are achieved, and through Adjust the memory insertion method to ensure that the server is running normally.

CN118377686BActive Publication Date: 2024-11-26ZHONGCHENG HUALONG COMPUTER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410438087.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-12
Publication Date
2024-11-26
Estimated Expiration
2044-04-12

AI Technical Summary

Technical Problem

The existing server motherboard fault detection methods rely on external testing tools and control systems, resulting in inefficient detection.

Method used

By obtaining the status of the fault light on the server motherboard, the fault result is determined using the pre-established correspondence relationship. No external tools are required, and the feedback value of the CPU power-on self-test register and status register are combined to establish the correspondence relationship, perform fault detection, and in memory When the controller fails to pass the self-test, adjust the memory insertion method to solve the problem.

Benefits of technology

It realizes efficient fault detection without external tools, accurately locates fault types and locations, and ensures normal operation of the server by adjusting memory insertion method, improving fault detection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118377686B_ABST
    Figure CN118377686B_ABST
Patent Text Reader

Abstract

The present invention relates to a method, device, electronic device and medium for detecting a fault of a server mainboard, the method comprising: obtaining the indication state of a fault light on the server mainboard, the fault light being composed of a plurality of indicator lights, the indication state being formed by a combination of the working states of the respective indicator lights; and determining the fault result of the server mainboard according to a pre-established first corresponding relationship and the indication state. Through the method of the present invention, the fault result of the server mainboard can be determined through the different indication states of the fault light, without the need for external test tools and external control systems, and the fault detection efficiency can be greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of server fault detection, and in particular to a method, device, electronic equipment and medium for detecting a fault of a server mainboard. Background Art

[0002] In the prior art, server motherboard fault detection is implemented with the help of external test tools and external control systems. Specifically, the BMC of the server motherboard is tested by the external test tools or the external control system to determine the fault point of the motherboard. However, since the external test tools and the external control system are needed, the solution is not convenient to implement, which reduces the detection efficiency. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide a method, device, electronic device and medium for detecting faults of a server mainboard, aiming to solve at least one of the above technical problems.

[0004] In a first aspect, the technical solution of the present invention to solve the above technical problem is as follows: a method for detecting a fault of a server mainboard, the method comprising:

[0005] Obtaining an indication state of a fault light on the server mainboard, wherein the fault light is composed of a plurality of indicator lights, and the indication state is formed by a combination of working states of the respective indicator lights;

[0006] The fault result of the server mainboard is determined according to a pre-established first corresponding relationship and the indication state, wherein the first corresponding relationship is a corresponding relationship between different indication states and different fault results.

[0007] The beneficial effect of the present invention is that the fault result of the server mainboard can be determined through the different indication states of the fault light, without the need for external test tools and external control systems, which can greatly improve the fault detection efficiency.

[0008] Based on the above technical solution, the present invention can also be improved as follows.

[0009] Furthermore, the first corresponding relationship is established based on the following method:

[0010] Reading first feedback values ​​of the CPU power-on self-test register on the server mainboard under different working states;

[0011] For each of the first feedback values, when the first feedback value is not 0x3014, determining the indication state and the fault result of the fault light under the first feedback value according to the first feedback value;

[0012] For each of the first feedback values, when the first feedback value is 0x3014, reading a second feedback value of a status register on the server mainboard, and determining, according to the second feedback value, an indication state and a fault result of the fault light under the second feedback value;

[0013] The first corresponding relationship is established according to each of the first feedback values, the fault result corresponding to each of the first feedback values, the indication state corresponding to each of the first feedback values, each of the second feedback values, the fault result corresponding to each of the second feedback values, and the indication state corresponding to each of the second feedback values.

[0014] The beneficial effect of adopting the above further solution is that a first corresponding relationship can be accurately established based on the first feedback value of the CPU power-on self-test register, the second feedback value of the status register and the indication status of the corresponding fault light corresponding to different fault results.

[0015] Furthermore, the method further comprises:

[0016] Performing a self-test on each memory controller of the CPU on the server motherboard;

[0017] If any memory controller among the memory controllers fails the self-test, determining whether other memory controllers among the memory controllers except the one memory controller meet the preset memory insertion method;

[0018] If the other memory controllers satisfy the memory insertion method, the preset memory bar configuration scheme is modified according to the memory insertion method satisfied by the other memory controllers to solve the corresponding fault of any memory controller failing the self-test.

[0019] The beneficial effect of adopting the above further scheme is that when any memory controller fails the self-test and a corresponding fault occurs, the preset memory bar configuration scheme can be modified according to the satisfied memory insertion method to solve the corresponding fault of any memory controller failing the self-test and ensure the normal operation of the server.

[0020] Further, if the other memory controller satisfies the memory insertion method, modifying the preset memory bar configuration scheme according to the memory insertion method satisfied by the other memory controller includes:

[0021] If the other memory controller satisfies the memory insertion method, the preset memory bar configuration scheme is modified to the memory insertion method satisfied by the other memory controller.

[0022] The beneficial effect of adopting the above further solution is that when other memory controllers satisfy the memory interpolation method, a feasible memory interpolation method can be determined for any memory controller based on the memory interpolation method satisfied by other memory controllers.

[0023] Furthermore, each CPU on the server motherboard corresponds to 8 memory controllers, each of the memory controllers corresponds to controlling 1 or 2 memory bars, each of the memory controllers includes memory controller MC0, memory controller MC1, memory controller MC2, memory controller MC3, memory controller MC4, memory controller MC5, memory controller MC6 and memory controller MC7, and the memory plug-in method includes at least one of the following:

[0024] The memory controllers to be used include memory controller MC0 and memory controller MC4;

[0025] The memory controllers to be used include memory controller MC0, memory controller MC1, memory controller MC4 and memory controller MC5;

[0026] The memory controllers to be used include memory controller MC0, memory controller MC1, memory controller MC2, memory controller MC4, memory controller MC5 and memory controller MC6;

[0027] The memory controllers to be used include memory controller MC0, memory controller MC1, memory controller MC2, memory controller MC3, memory controller MC4, memory controller MC5, memory controller MC6, and memory controller MC7.

[0028] The beneficial effect of adopting the above further solution is that, based on the above-set various memory insertion methods, different satisfactory memory insertion methods can be determined for any memory controller.

[0029] Furthermore, the above-mentioned fault result includes the fault type and the location of the fault on the server mainboard.

[0030] The beneficial effect of adopting the above further solution is that the fault type and the location where the fault occurs can be known based on the fault result, thereby achieving accurate positioning of the fault.

[0031] In a second aspect, in order to solve the above technical problem, the present invention further provides a server mainboard fault detection device, the device comprising:

[0032] An acquisition module, used for acquiring the indication state of the fault light on the server mainboard, wherein the fault light is composed of a plurality of indicator lights, and the indication state is formed by the combination of the working states of the respective indicator lights;

[0033] The fault result determination module is used to determine the fault result of the server mainboard according to a pre-established first corresponding relationship and the indication state, wherein the first corresponding relationship is a corresponding relationship between different indication states and different fault results.

[0034] In a third aspect, in order to solve the above-mentioned technical problem, the present invention also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the server motherboard fault detection method of the present application is implemented.

[0035] In a fourth aspect, in order to solve the above-mentioned technical problem, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the server motherboard fault detection method of the present application is implemented.

[0036] Additional aspects and advantages of the present application will be partially given in the following description, which will become apparent from the following description, or will be understood through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for describing the embodiments of the present invention are briefly introduced below.

[0038] Figure 1 A schematic flow chart of a method for detecting a fault of a server mainboard provided by an embodiment of the present invention;

[0039] Figure 2 A schematic structural diagram of a server mainboard fault detection device provided by an embodiment of the present invention;

[0040] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The principles and features of the present invention are described below. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.

[0042] The technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0043] The solution provided by the embodiment of the present invention can be applied to any application scenario that requires fault detection of the server motherboard. The solution provided by the embodiment of the present invention can be executed by any electronic device, for example, it can be a BMC (Baseboard Management Controller) on the server motherboard, supporting the industry standard IPMI (Intelligent Platform Management Interface) specification. This specification describes the management functions that have been built into the motherboard. These functions include: local and remote diagnosis, console support, configuration management, hardware management and troubleshooting.

[0044] The embodiment of the present invention provides a possible implementation method, such as Figure 1 As shown in FIG. 1 , a flow chart of a method for detecting a fault of a server motherboard is provided. The method can be executed by a BMC on the server motherboard. For the convenience of description, the method provided by the embodiment of the present invention will be described below by taking BMC as an execution subject. Figure 1 The method may include the following steps:

[0045] Step S110, obtaining the indication state of the fault light on the server mainboard, wherein the fault light is composed of a plurality of indicator lights, and the indication state is formed by a combination of the working states of the respective indicator lights;

[0046] Step S120, determining the fault result of the server mainboard according to a pre-established first corresponding relationship and the indication state, wherein the first corresponding relationship is a corresponding relationship between different indication states and different fault results.

[0047] The method of the present invention can determine the fault result of the server mainboard through different indication states of the fault lamp, without the need for external test tools and external control systems, and can greatly improve the fault detection efficiency.

[0048] The solution of the present invention is further described below in conjunction with the following specific embodiments. In this embodiment, a server motherboard fault detection method provided may include the following steps:

[0049] Step S110, obtaining the indication state of the fault light on the server mainboard, wherein the fault light is composed of a plurality of indicator lights, and the indication state is formed by a combination of the working states of the respective indicator lights;

[0050] The fault light is composed of multiple indicator lights, and the working state of each indicator light is on or off. The indication state of the fault light can be composed based on the different working states of each indicator light. The number of each indicator light can be determined by the number of faults of the server motherboard. The more faults there are, the more indicator lights there are.

[0051] As an example, if the fault light consists of two indicator lights, the indication status can be on-off, off-on, on-on, and off-off. Among them, off-off can be defined as a no-fault state, and the other three are status expressions that contain faults.

[0052] Among them, the fault light can be set on the server mainboard and connected to the BMC.

[0053] Step S120, determining the fault result of the server mainboard according to a pre-established first corresponding relationship and the indication state, wherein the first corresponding relationship is a corresponding relationship between different indication states and different fault results.

[0054] Among them, different indication states may correspond to different fault results, and based on the indication state, the fault result of the server mainboard may be directly determined, wherein the fault result may include the fault type and the location of the fault on the server mainboard.

[0055] In the present application, the above-mentioned indication status can also serve as a reminder, that is, when the staff sees the indication status of the fault light, they can know that the server mainboard has a fault, so that the staff can discover the fault in time.

[0056] Optionally, the indication status of the above-mentioned fault light can be represented by a binary number, 1 indicates on and 0 indicates off.

[0057] Optionally, the first corresponding relationship is established based on the following method:

[0058] S10, reading a first feedback value of a CPU (Central Processing Unit) power-on self-test register (for example, 0x803000004680) on the server mainboard under different working states;

[0059] S20, for each of the first feedback values, when the first feedback value is not 0x3014, it indicates that there is no fault in the memory stick, and according to the first feedback value, the indication state and the fault result of the fault light under the first feedback value are determined; different first feedback values ​​may correspond to different indication states, and different first feedback values ​​may also correspond to different fault results.

[0060] S30, for each of the first feedback values, when the first feedback value is 0x3014, it indicates that the memory stick may be faulty, read the second feedback value of the status register on the server mainboard, and determine the indication state and the fault result of the fault light under the second feedback value according to the second feedback value; different second feedback values ​​correspond to different indication states, and different second feedback values ​​correspond to corresponding fault results (memory stick fault).

[0061] S40, establishing the first corresponding relationship according to each of the first feedback values, the fault result corresponding to each of the first feedback values, the indication state corresponding to each of the first feedback values, each of the second feedback values, the fault result corresponding to each of the second feedback values, and the indication state corresponding to each of the second feedback values.

[0062] As an example, the fault light includes 5 indicator lights, namely indicator light 1 to indicator light 5. The corresponding fault types, first feedback values ​​and second feedback values ​​under different indication states, that is, the above-mentioned first corresponding relationship, can be specifically referred to Table 1.

[0063] Table 1

[0064]

[0065] Among them, CPU0_MC0 to CPU0_MC7 represent the eight memory controllers corresponding to CPU0, and CPU1_MC0 to CPU1_MC7 represent the eight memory controllers corresponding to CPU1. In the table, the feedback value of the CPU power-on self-test register is the first feedback value, and the feedback value of the status register is the second feedback value.

[0066] Optionally, the method further includes:

[0067] S1, performing self-test on each memory controller of the CPU on the server mainboard; the purpose of the self-test is to detect whether the corresponding memory controller has a fault.

[0068] S2, if any memory controller among the memory controllers fails the self-test, determining whether other memory controllers among the memory controllers except the one memory controller meet the preset memory insertion method;

[0069] Optionally, each CPU on the server motherboard corresponds to 8 memory controllers, each of the memory controllers corresponds to controlling 1 or 2 memory bars, and each of the memory controllers includes memory controller MC0, memory controller MC1, memory controller MC2, memory controller MC3, memory controller MC4, memory controller MC5, memory controller MC6 and memory controller MC7:

[0070] Mode 1, the memory controllers to be used include memory controller MC0 and memory controller MC4;

[0071] Mode 2, the memory controllers to be used include memory controller MC0, memory controller MC1, memory controller MC4 and memory controller MC5;

[0072] Mode 3, the memory controllers to be used include memory controller MC0, memory controller MC1, memory controller MC2, memory controller MC4, memory controller MC5 and memory controller MC6;

[0073] Mode 4: the memory controllers to be used include memory controller MC0, memory controller MC1, memory controller MC2, memory controller MC3, memory controller MC4, memory controller MC5, memory controller MC6 and memory controller MC7.

[0074] Among them, the memory controller MC can control the insertion and removal of the corresponding memory stick into the corresponding memory slot. Other memory controllers meet the preset memory insertion method, which refers to how to ensure the normal operation of the server motherboard through the control of other memory controllers when any memory controller is unavailable.

[0075] Each CPU corresponds to 8 memory controllers (Memory Controller, MC), each memory controller can be connected to 1 or 2 memory sticks, that is, 1DPC or 2DPC (DPC, DIMM Per Channel, meaning the number of DIMM memory slots per memory controller channel). In this embodiment, only 1DPC can be used as an example for description. The principle of 2DPC is the same as that of 1DPC. The MC controller (memory controller) where the fault point is located is determined according to the characteristic feedback value.

[0076] When inserting memory sticks into the server, all MC controllers must either use the 1DPC method or the 2DPC method and cannot be mixed.

[0077] In this embodiment, MC0~MC7 are used as the numbers of the memory controllers, and MC0_DIMM~MC7_DIMM are the corresponding memory stick numbers. When the MC memory controller fails the self-test, the corresponding DIMM stick can be checked (when it is 1DPC, the fault is clearly the corresponding memory stick. When it is 2DPC, the feedback value can be combined with other register values ​​to locate which of the two memory sticks failed the self-test).

[0078] S3: If the other memory controllers satisfy the memory insertion method, modify the preset memory bar configuration scheme according to the memory insertion method satisfied by the other memory controllers to solve the corresponding fault of any memory controller failing the self-test.

[0079] The preset memory bar configuration scheme refers to a plug-in and pull-out scheme corresponding to each memory controller.

[0080] Optionally, if the other memory controller satisfies the memory insertion method, modifying a preset memory bar configuration scheme according to the memory insertion method satisfied by the other memory controller includes:

[0081] If the other memory controller satisfies the memory insertion method, the preset memory bar configuration scheme is modified to the memory insertion method satisfied by the other memory controller.

[0082] As an example, if the memory controller MC3 or the memory controller MC7 fails the self-test, the fault can be solved by automatically modifying the server's firmware configuration to memory insertion method 3 (method 3 described above) through the BMC, that is, the memory insertion method corresponding to method 3 described above is used to work.

[0083] If the MC2 or MC6 self-test fails, the fault can be solved by automatically modifying the server firmware configuration to memory insertion method 2 (method 2 described above) through the BMC. That is, the memory insertion method corresponding to method 2 described above is used to work.

[0084] If the MC1 or MC5 self-test fails, the fault can be solved by automatically modifying the server firmware configuration to memory insertion method 1 (method 1 described above) through the BMC. That is, the memory insertion method corresponding to method 1 described above is used to work.

[0085] If the minimum memory configuration self-test of MC0 or MC4 fails, there is no way out and the server will not be able to boot, that is, the server cannot work normally.

[0086] Based on Figure 1 Based on the same principle as the method shown in , the embodiment of the present invention also provides a server motherboard fault detection device 20, such as Figure 2As shown in , the server mainboard fault detection device 20 may include an acquisition module 210 and a fault result determination module 220, wherein:

[0087] The acquisition module 210 is used to acquire the indication state of the fault light on the server mainboard, wherein the fault light is composed of a plurality of indicator lights, and the indication state is formed by the combination of the working states of the respective indicator lights;

[0088] The fault result determination module 220 is used to determine the fault result of the server mainboard according to a pre-established first corresponding relationship and the indication state, wherein the first corresponding relationship is a corresponding relationship between different indication states and different fault results.

[0089] Optionally, the first corresponding relationship is established based on the following method:

[0090] Reading first feedback values ​​of the CPU power-on self-test register on the server mainboard under different working states;

[0091] For each of the first feedback values, when the first feedback value is not 0x3014, determining the indication state and the fault result of the fault light under the first feedback value according to the first feedback value;

[0092] For each of the first feedback values, when the first feedback value is 0x3014, reading a second feedback value of a status register on the server mainboard, and determining, according to the second feedback value, an indication state and a fault result of the fault light under the second feedback value;

[0093] The first corresponding relationship is established according to each of the first feedback values, the fault result corresponding to each of the first feedback values, the indication state corresponding to each of the first feedback values, each of the second feedback values, the fault result corresponding to each of the second feedback values, and the indication state corresponding to each of the second feedback values.

[0094] Optionally, the device further comprises:

[0095] A memory configuration scheme modification module is used to perform self-test on each memory controller of the CPU on the server motherboard; if any memory bar in each memory controller fails the self-test, it is determined whether other memory controllers in each memory controller except the any memory controller meet the preset memory insertion method; if the other memory controllers meet the memory insertion method, the preset memory bar configuration scheme is modified according to the memory insertion method satisfied by the other memory controllers to solve the fault corresponding to the failure of the self-test of any memory controller.

[0096] Optionally, if the other memory controller satisfies the memory insertion method, the memory configuration scheme modification module is specifically used to:

[0097] If the other memory controller satisfies the memory insertion method, the preset memory bar configuration scheme is modified to the memory insertion method satisfied by the other memory controller.

[0098] Optionally, each CPU on the server motherboard corresponds to 8 memory controllers, each of the memory controllers corresponds to controlling 1 or 2 memory bars, each of the memory controllers includes a memory controller MC0, a memory controller MC1, a memory controller MC2, a memory controller MC3, a memory controller MC4, a memory controller MC5, a memory controller MC6 and a memory controller MC7, and the memory insertion method includes at least one of the following:

[0099] The memory controllers to be used include memory controller MC0 and memory controller MC4;

[0100] The memory controllers to be used include memory controller MC0, memory controller MC1, memory controller MC4 and memory controller MC5;

[0101] The memory controllers to be used include memory controller MC0, memory controller MC1, memory controller MC2, memory controller MC4, memory controller MC5 and memory controller MC6;

[0102] The memory controllers to be used include memory controller MC0, memory controller MC1, memory controller MC2, memory controller MC3, memory controller MC4, memory controller MC5, memory controller MC6, and memory controller MC7.

[0103] Optionally, the above fault result includes the fault type and the location of the fault on the server mainboard.

[0104] The server mainboard fault detection device of the embodiment of the present invention can execute the server mainboard fault detection method provided by the embodiment of the present invention, and the implementation principle is similar. The actions performed by each module and unit in the server mainboard fault detection device in each embodiment of the present invention correspond to the steps in the server mainboard fault detection method in each embodiment of the present invention. For the detailed functional description of each module of the server mainboard fault detection device, please refer to the description in the corresponding server mainboard fault detection method shown in the previous text, which will not be repeated here.

[0105] Among them, the fault detection device of the above-mentioned server motherboard can be a computer program (including program code) running in a computer device, for example, the fault detection device of the server motherboard is an application software; the device can be used to execute the corresponding steps in the method provided in the embodiment of the present invention.

[0106] In some embodiments, the fault detection device for the server motherboard provided by the embodiment of the present invention can be implemented in a combination of software and hardware. As an example, the fault detection device for the server motherboard provided by the embodiment of the present invention can be a processor in the form of a hardware decoding processor, which is programmed to execute the fault detection method for the server motherboard provided by the embodiment of the present invention. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs) or other electronic components.

[0107] In other embodiments, the server mainboard fault detection device provided by the embodiment of the present invention can be implemented in a software manner. Figure 2 A server motherboard fault detection device stored in a memory is shown, which may be software in the form of a program and a plug-in, and includes a series of modules, including an acquisition module 210 and a fault result determination module 220, for implementing a server motherboard fault detection method provided in an embodiment of the present invention.

[0108] The modules involved in the embodiments of the present invention may be implemented by software or hardware, wherein the name of a module does not limit the module itself in some cases.

[0109] Based on the same principle as the method shown in the embodiments of the present invention, an electronic device is also provided in the embodiments of the present invention, which may include but is not limited to: a processor and a memory; the memory is used to store a computer program; the processor is used to execute the method shown in any embodiment of the present invention by calling the computer program.

[0110] In an alternative embodiment, an electronic device is provided, such as Figure 3 As shown, Figure 3The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, such as through a bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present invention.

[0111] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present invention. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0112] The bus 4002 may include a path to transmit information between the above components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0113] The memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0114] The memory 4003 is used to store application code (computer program) for executing the solution of the present invention, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the application code stored in the memory 4003 to implement the content shown in the above method embodiment.

[0115] The electronic device may also be a terminal device. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0116] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer can execute the corresponding contents of the aforementioned method embodiment.

[0117] According to another aspect of the present invention, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the implementation modes of the above-mentioned various embodiments.

[0118] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0119] It should be understood that the flow charts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the module, the program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0120] The computer-readable storage medium provided by the embodiment of the present invention may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.

[0121] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0122] The above description is only a preferred embodiment of the present invention and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present invention is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present invention (but not limited to) to form a technical solution.

Claims

1. A method for detecting a fault of a server mainboard, characterized in that: The following steps are involved: Obtaining an indication state of a fault light on a server mainboard, wherein the fault light is composed of a plurality of indicator lights, and the indication state is formed by a combination of working states of the respective indicator lights; Determine the fault result of the server mainboard according to a pre-established first corresponding relationship and the indication state, wherein the first corresponding relationship is a corresponding relationship between different indication states and different fault results; The first corresponding relationship is established based on the following method: Reading first feedback values ​​of the CPU power-on self-test register on the server mainboard under different working states; For each of the first feedback values, when the first feedback value is not 0x3014, determining the indication state and the fault result of the fault light under the first feedback value according to the first feedback value; For each of the first feedback values, when the first feedback value is 0x3014, reading a second feedback value of a status register on the server mainboard, and determining, according to the second feedback value, an indication state and a fault result of the fault light under the second feedback value; establishing the first corresponding relationship according to each of the first feedback values, the fault result corresponding to each of the first feedback values, the indication state corresponding to each of the first feedback values, each of the second feedback values, the fault result corresponding to each of the second feedback values, and the indication state corresponding to each of the second feedback values; The method further comprises: Performing a self-test on each memory controller of the CPU on the server motherboard; If any memory controller among the memory controllers fails the self-test, determining whether other memory controllers among the memory controllers except the one memory controller meet the preset memory insertion method; If the other memory controllers satisfy the memory insertion method, the preset memory bar configuration scheme is modified according to the memory insertion method satisfied by the other memory controllers to solve the corresponding fault of any memory controller failing the self-test.

2. The method according to claim 1, characterized in that If the other memory controller satisfies the memory insertion method, modifying the preset memory bar configuration scheme according to the memory insertion method satisfied by the other memory controller includes: If the other memory controller satisfies the memory insertion method, the preset memory bar configuration scheme is modified to the memory insertion method satisfied by the other memory controller.

3. The method according to claim 1, characterized in that: The CPU on each server motherboard corresponds to 8 memory controllers, each of which controls 1 or 2 memory bars, and each of the memory controllers includes memory controller MC0, memory controller MC1, memory controller MC2, memory controller MC3, memory controller MC4, memory controller MC5, memory controller MC6 and memory controller MC7. The memory plug-in method includes at least one of the following: The memory controllers to be used include memory controller MC0 and memory controller MC4; The memory controllers to be used include memory controller MC0, memory controller MC1, memory controller MC4 and memory controller MC5; The memory controllers to be used include memory controller MC0, memory controller MC1, memory controller MC2, memory controller MC4, memory controller MC5 and memory controller MC6; The memory controllers to be used include memory controller MC0, memory controller MC1, memory controller MC2, memory controller MC3, memory controller MC4, memory controller MC5, memory controller MC6, and memory controller MC7.

4. The method according to any one of claims 1 to 3, characterized in that The fault result includes the fault type and the location of the fault on the server mainboard.

5. A server mainboard fault detection device, characterized in that: include: An acquisition module, used for acquiring the indication state of the fault light on the server mainboard, wherein the fault light is composed of a plurality of indicator lights, and the indication state is formed by the combination of the working states of the respective indicator lights; a fault result determination module, configured to determine the fault result of the server mainboard according to a pre-established first corresponding relationship and the indication state, wherein the first corresponding relationship is a corresponding relationship between different indication states and different fault results; The first corresponding relationship is established based on the following method: Reading first feedback values ​​of the CPU power-on self-test register on the server mainboard under different working states; For each of the first feedback values, when the first feedback value is not 0x3014, determining the indication state and the fault result of the fault light under the first feedback value according to the first feedback value; For each of the first feedback values, when the first feedback value is 0x3014, reading a second feedback value of a status register on the server mainboard, and determining, according to the second feedback value, an indication state and a fault result of the fault light under the second feedback value; establishing the first corresponding relationship according to each of the first feedback values, the fault result corresponding to each of the first feedback values, the indication state corresponding to each of the first feedback values, each of the second feedback values, the fault result corresponding to each of the second feedback values, and the indication state corresponding to each of the second feedback values; A memory configuration scheme modification module is used to perform self-test on each memory controller of the CPU on the server motherboard; if any memory controller among the memory controllers fails the self-test, it is determined whether other memory controllers among the memory controllers except the any memory controller meet the preset memory insertion method; if the other memory controllers meet the memory insertion method, the preset memory bar configuration scheme is modified according to the memory insertion method met by the other memory controllers to solve the fault corresponding to the failure of the self-test of any memory controller.

6. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 4 when executing the computer program.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.