Server fault locating method and system
By disabling CPU and PCH power supply when the server fails, establishing a data channel, and automatically analyzing fault data using a neural network model, the problem of low accuracy and efficiency in existing technologies is solved, achieving intelligent fault location.
Patent Information
- Application Number
- CN202611313778.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-27
- Publication Date
- 2026-11-27
AI Technical Summary
In existing technologies, server fault location relies on the personal experience of maintenance personnel, which cannot obtain the precise values of key registers inside the CPU and cached data in memory at the moment of the fault. This makes it difficult to guarantee the accuracy of the location and results in low efficiency.
By disabling the CPU and PCH power supply of the server, a data channel is established between the data processing acceleration circuit and the storage device. The neural network inference model is used to automatically analyze the operating system fault data, generate fault location conclusions, and output them through the BMC's interactive interface.
It enables the automatic capture of complete fault scene data and intelligent root cause analysis when the server crashes, improving the accuracy and efficiency of fault location and reducing reliance on the personal experience of maintenance personnel.
Smart Images

Figure CN123178142A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of server technology, and in particular to a server fault location method and system. Background Technology
[0002] During server operation, serious failures such as system crashes or inability to boot may inevitably occur due to hardware malfunctions (e.g., CPU, memory, hard drive, PCIe card abnormalities) or software system anomalies (e.g., operating system deadlock, kernel crashes). When such failures occur, the ability to quickly and accurately pinpoint the root cause directly impacts business recovery time and service availability.
[0003] Currently, server fault localization primarily relies on the logging function of the Baseboard Management Controller (BMC) and manual analysis by maintenance personnel. As a core component for out-of-band server management, the BMC records System Event Logs (SELs), sensor data, and some hardware error information. When a server crashes or fails to access the operating system, maintenance personnel typically first check the SEL logs and historical sensor data through the BMC's web management interface or command-line interface to initially determine if there is a hardware anomaly. Subsequently, maintenance personnel need to further collect multi-source information such as the operating system's sosreport logs, kernel crash logs (crash dumps), and BIOS serial port logs, and use manual comparison and correlation analysis to comprehensively deduce the cause of the fault. If the initial judgment is a hardware fault, maintenance personnel often need to power off the server and replace suspected hardware components one by one for trial-and-error troubleshooting. In cases where spare parts are insufficient or the fault is difficult to reproduce, it may even be necessary to send the server back to the manufacturer for offline analysis by R&D personnel using specialized debugging equipment (such as JTAG debuggers and logic analyzers). The entire troubleshooting process is highly dependent on the personal experience and technical skills of the maintenance personnel. When faced with unfamiliar or complex fault scenarios, the troubleshooting cycle often lasts for several hours or even days.
[0004] However, the above-mentioned existing technical solutions have obvious shortcomings: since it is impossible to obtain the precise values of the key registers inside the CPU and the cached data in memory at the moment of failure, the maintenance personnel lack sufficient basis for location in subsequent analysis. They can only rely on personal experience to manually infer the cause of the failure from the limited BMC logs and system logs, which makes it difficult to guarantee the accuracy of location and is inefficient. Summary of the Invention
[0005] This invention proposes a server fault location method, applied to the baseboard management controller (BMC) of a server. The BMC is communicatively connected to the server's logic control circuit and the server's data processing acceleration circuit. The data processing acceleration circuit is connected to a storage device through a controllable data switch. The opening and closing of the controllable data switch is controlled by the logic control circuit in response to the instructions of the BMC. The server fault location method includes: In response to a fault trigger signal, the power supply to the server's central processing unit (CPU) and platform controller center (PCH) is disabled via the logic control circuit. After confirming that the power supply to the CPU and the PCH has been disabled, the controllable data switch is turned on through the logic control circuit to establish a data channel between the data processing acceleration circuit and the storage device. A read command is sent to the data processing acceleration circuit so that the data processing acceleration circuit reads the operating system fault data stored in the storage device through the data channel, and generates a fault location conclusion based on the operating system fault data and the neural network inference model deployed therein. The fault location conclusion is obtained and output through the interactive interface of the BMC.
[0006] Optionally, the step of sending a read instruction to the data processing acceleration circuit includes, prior to: Communicate with the cloud server to obtain the neural network inference model stored in the cloud server; Compare the version of the neural network inference model deployed on the data processing acceleration circuit with the version of the neural network inference model in the cloud server; If the neural network inference model version in the cloud server is updated, the updated neural network inference model will be sent to the data processing acceleration circuit for deployment.
[0007] Optionally, the data processing acceleration circuit is connected to the hardware peripheral to be diagnosed via a high-speed data channel; The server fault location method also includes: In response to a first diagnostic command input through the BMC's interactive interface, the power supply to the CPU and the PCH is disabled via the logic control circuit, and the high-speed data channel is enabled via the logic control circuit. Send a hardware test command to the data processing acceleration circuit so that the data processing acceleration circuit can perform hardware-level testing on the hardware peripheral to be diagnosed through a hardware interface simulating a CPU. The test results are received from the data processing acceleration circuit and output through the interactive interface.
[0008] Optionally, the hardware peripheral to be diagnosed is a memory module, and the hardware test instructions are used to enable the data processing acceleration circuit to perform at least one of the following tests on each memory module through the memory controller interface simulating the CPU: in-situ detection, address line connectivity detection, read / write function detection, and data stability detection. Alternatively, the hardware peripheral to be diagnosed is a PCIe peripheral; the hardware test instructions are used to cause the data processing acceleration circuit to perform at least one of the following tests on each peripheral on each PCIe slot through the PCIe root complex interface simulating the CPU: in-situ detection, physical layer signal quality detection, link training state machine detection, and data link layer transaction layer protocol consistency detection.
[0009] Optionally, the response to the fault trigger signal includes, prior to: The controllable data switch and the high-speed data channel are both set to the off state by the logic control circuit, and the corresponding data pins of the data processing acceleration circuit are set to the high impedance state. The system receives control signals from the data processing acceleration circuit based on monitoring the server's internal bus, as well as predictive alarms issued when abnormal patterns are identified by the neural network inference model. The predictive alarm is output through the interactive interface of the BMC.
[0010] The present invention also proposes a server fault location method, which is applied to the data processing acceleration circuit of the server. The data processing acceleration circuit is communicatively connected to the server's baseboard management controller (BMC) and the server's logic control circuit. The data processing acceleration circuit is connected to the storage device through a controllable data switch. The opening and closing of the controllable data switch is controlled by the logic control circuit in response to the instructions of the BMC. The server fault location method includes: In response to the read command from the BMC, the operating system fault data stored in the storage device is read through the data channel between the storage device and the storage device, and the operating system fault data is encapsulated into standardized fault feature data according to a preset data structure; The neural network inference model deployed inside the data processing acceleration circuit is invoked to perform inference analysis on the standardized fault feature data and generate fault location conclusions. The fault location conclusion is sent to the BMC.
[0011] Optionally, the preset data structure includes at least the following five data levels: The basic metadata layer is used to record server device profiles and fault context information; The fault register data level is used to record the address, value, and bit field meaning of each register at the time of the fault. The memory dump data level is used to record memory data at the moment of failure in a structured manner according to memory address ranges; Operating system text log hierarchy, used to record system logs and application logs in chronological order; The boot log level is used to record the boot phase logs of the basic input / output system and the kernel.
[0012] Optionally, the data processing acceleration circuit is connected to the memory module via a high-speed data channel; The server fault location method also includes: In response to the hardware test command of the BMC, hardware-level testing is performed on the hardware peripheral device to be diagnosed through a simulated CPU hardware interface. The test results are fed back to the BMC; Wherein, the hardware peripheral to be diagnosed is a memory module; the hardware-level testing of the hardware peripheral to be diagnosed through a hardware interface simulating a CPU includes: By simulating the memory controller interface of the CPU, perform at least one of the following tests on each memory module: in-situ detection, address line connectivity detection, read / write function detection, and data stability detection; Alternatively, the hardware peripheral to be diagnosed is a PCIe peripheral, and the hardware-level testing of the hardware peripheral to be diagnosed through a hardware interface simulating a CPU includes: By simulating the CPU's PCIe root complex interface, perform at least one of the following tests on each peripheral on each PCIe slot: presence detection, physical layer signal quality detection, link training state machine detection, and data link layer transaction layer protocol consistency detection.
[0013] Optionally, the server fault location method further includes: Monitor the heartbeat signal between the BMC and the BMC; When the duration of continuous loss of the heartbeat signal exceeds a preset threshold, the BMC is determined to be abnormal; The power reset operation of the BMC is performed through the logic control circuit. Capture the startup logs of the BMC and perform anomaly analysis; If the BMC still fails to work properly after a power reset, and the firmware recovery button is detected to be pressed continuously for more than a preset time, the power supply to the server's central processing unit (CPU) and platform controller center (PCH) is disabled through the logic control circuit, and the baseline version firmware of the BMC is obtained from the storage device. By switching the firmware flash memory connected to the BMC via the bus, the baseline version firmware is written into the firmware flash memory, and the BMC is triggered to power on again to load the baseline version firmware.
[0014] This invention also proposes a server fault location system, comprising: Baseboard Management Controller (BMC); A logic control circuit, which is communicatively connected to the BMC, is used to perform power control and signal switching operations in response to instructions from the BMC. A data processing acceleration circuit is communicatively connected to the BMC and the logic control circuit, respectively, and is used to perform data processing and inference analysis in response to instructions from the BMC; A controllable data switch is connected between the data processing acceleration circuit and the storage device, and its on / off state is controlled by the logic control circuit in response to the instructions of the BMC; A high-speed data channel is connected between the data processing acceleration circuit and the hardware peripheral to be diagnosed, and its connection and disconnection are controlled by the logic control circuit in response to the instructions of the BMC. The BMC is used to disable the power supply of the server's central processing unit (CPU) and platform controller center (PCH) through the logic control circuit when a fault trigger signal is detected. After confirming that the power supply of the CPU and the PCH has been disabled, the BMC is used to turn on the controllable data switch through the logic control circuit to establish a data channel between the data processing acceleration circuit and the storage device. The BMC also sends a read command to the data processing acceleration circuit so that the data processing acceleration circuit can read the operating system fault data stored in the storage device through the data channel and generate a fault location conclusion based on the operating system fault data and the neural network inference model deployed therein. The BMC is also used to obtain the fault location conclusion and output it through the BMC's interactive interface.
[0015] This invention proposes a server fault location method comprising: responding to a fault trigger signal, disabling the power supply to the server's central processing unit (CPU) and platform controller center (PCH) via a logic control circuit; after confirming that the power supply to the CPU and PCH has been disabled, activating the controllable data switch via the logic control circuit to establish a data channel between the data processing acceleration circuit and the storage device; sending a read command to the data processing acceleration circuit to enable the data processing acceleration circuit to read operating system fault data stored in the storage device through the data channel, and generating a fault location conclusion based on the operating system fault data and a neural network inference model deployed therein; obtaining the fault location conclusion and outputting it through the BMC's interactive interface. The server fault location method of this invention, through the coordinated operation of four steps, forms a complete technical chain of "power-off isolation → establishing a data channel → automatic inference analysis → direct output of conclusions," and has the following systemic beneficial effects: First, regarding the effectiveness at the data acquisition level. When a server crashes, a stuck CPU and PCH continuously occupy or interfere with the system bus, preventing the BMC from acquiring complete data at the moment of the fault. Claim 1, through the coordinated action of steps 1 and 2, first physically eliminates the interference of the CPU and PCH on the bus, and then establishes a data channel between the data processing acceleration circuit and the storage device by activating a controllable data switch. This allows the data processing acceleration circuit to read complete fault scene data from the storage device in a secure environment without bus contention, effectively overcoming the deficiency in the prior art where complete fault data cannot be acquired due to a stuck CPU.
[0016] Second, regarding the effectiveness in fault location efficiency. Even after obtaining complete fault data, the background technology still requires maintenance personnel to manually investigate and infer the cause of the fault from a large amount of raw logs, resulting in low location efficiency. Step 3 enables the data processing acceleration circuit to automatically perform inference analysis and generate fault location conclusions based on the neural network inference model deployed within it after obtaining complete fault site data. Because steps 1 and 2 provide a complete and clean data foundation, the inference model can perform root cause analysis based on sufficient data, and the location process is completed automatically by the machine, no longer relying on the manual experience of maintenance personnel.
[0017] Third, regarding the effectiveness in terms of the operation and maintenance experience. Step 4 directly outputs the fault location conclusion to the operation and maintenance personnel through the BMC's interactive interface. The operation and maintenance personnel do not need to browse and analyze a large number of raw logs to directly obtain the root cause of the fault and handling suggestions. From fault triggering to conclusion output, the operation and maintenance personnel only intervene in the final step of obtaining the conclusion, and the entire process achieves a high degree of automation in fault location.
[0018] In summary, through the coordinated efforts of steps 1 to 4, and using the technical path of "power outage isolation → data channel establishment → automatic reasoning and analysis → direct output of conclusions," the technical problem in the background technology of "maintenance personnel having to make manual inferences due to the inability to obtain complete fault data, resulting in low accuracy and efficiency in fault location" is systematically solved. This achieves the technical effect of automatically capturing complete fault scene data and performing intelligent root cause analysis when the server crashes, effectively improving the accuracy and efficiency of fault location and reducing the reliance on the personal experience of maintenance personnel. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.
[0020] Figure 1 This is a schematic diagram illustrating the steps of an embodiment of the server fault location method of the present invention; Figure 2 This is a schematic diagram of a structure of an embodiment of the server fault location method of the present invention; Figure 3 This is a schematic diagram illustrating the steps of another embodiment of the server fault location method of the present invention; Figure 4 This is a schematic diagram illustrating the steps of another embodiment of the server fault location method of the present invention; Figure 5 This is a schematic diagram illustrating the steps of another embodiment of the server fault location method of the present invention; Figure 6 This is a schematic diagram illustrating the steps of an embodiment of the server fault location method of the present invention; Figure 7 This is a schematic diagram illustrating the steps of another embodiment of the server fault location method of the present invention.
[0021] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0022] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0023] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indication will also change accordingly.
[0024] In this invention, unless otherwise explicitly specified and limited, the terms "connection," "fixed," etc., should be interpreted broadly. For example, "fixed" can mean a fixed connection, a detachable connection, or an integral part; it can mean a mechanical connection or an electrical connection; it can mean a direct connection or an indirect connection through an intermediate medium; it can mean the internal communication of two components or the interaction between two components, unless otherwise explicitly limited. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0025] Furthermore, in this invention, descriptions involving "first," "second," etc., are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of that feature. Additionally, the technical solutions of the various embodiments can be combined with each other, but only on the basis of being achievable by those skilled in the art. When the combination of technical solutions is contradictory or impossible to implement, such a combination of technical solutions should be considered non-existent and not within the scope of protection claimed by this invention.
[0026] This invention proposes a server fault location method, which is applied to a server including a baseboard management controller (BMC), a logic control circuit, and a data processing acceleration circuit. The BMC is communicatively connected to both the logic control circuit and the data processing acceleration circuit. The data processing acceleration circuit is connected to a storage device via a controllable data switch. The on / off state of the controllable data switch is controlled by the logic control circuit in response to instructions from the BMC. like Figure 1 As shown, the server fault location method includes: In response to a fault trigger signal, the power supply to the server's central processing unit (CPU) and platform controller center (PCH) is disabled via the logic control circuit. After confirming that the power supply to the CPU and the PCH has been disabled, the controllable data switch is turned on through the logic control circuit to establish a data channel between the data processing acceleration circuit and the storage device. A read command is sent to the data processing acceleration circuit so that the data processing acceleration circuit reads the operating system fault data stored in the storage device through the data channel, and generates a fault location conclusion based on the operating system fault data and the neural network inference model deployed therein. The fault location conclusion is obtained and output through the interactive interface of the BMC.
[0027] It should be explained that this method can be applied to servers that include a Baseboard Management Controller (BMC), logic control circuitry, and data processing acceleration circuitry. The BMC is the core component of the server's out-of-band management system, responsible for remote management and health monitoring of the server. The logic control circuitry communicates with the BMC to perform power control and signal switching operations in response to BMC commands. The data processing acceleration circuitry communicates with both the BMC and the logic control circuitry, performing data processing and inference acceleration in response to BMC commands. The data processing acceleration circuitry is connected to a storage device (such as a hard drive, solid-state drive, or other non-volatile storage media) via a controllable data switch; the on / off state of the controllable data switch is controlled by the logic control circuitry in response to BMC commands.
[0028] See Figure 2 The logic control circuit can be implemented using a complex programmable logic device (CPLD). The data processing acceleration circuit is communicatively connected to both the BMC and the logic control circuit, used to respond to BMC instructions for data processing and inference acceleration; the data processing acceleration circuit can be implemented using a field-programmable gate array (FPGA). The BMC communicates with the FPGA via an SPI bus and / or a UART serial port, and with the CPLD via an I2C bus. The FPGA is connected to the storage device via a controllable data switch; the on / off state of the controllable data switch is controlled by the CPLD in response to BMC instructions. The FPGA is also connected to the hardware peripherals under diagnosis via a high-speed data channel; the on / off state of the high-speed data channel is also controlled by the CPLD in response to BMC instructions.
[0029] The logic control circuit can be implemented using a Complex Programmable Logic Device (CPLD), but it is not limited to this; other chips or circuits with programmable logic control functions are also applicable. The data processing acceleration circuit can be implemented using a Field Programmable Gate Array (FPGA), but it is not limited to this; other chips or circuits with programmable logic and parallel data processing capabilities are also applicable.
[0030] The BMC is connected to the logic control circuit and the data processing acceleration circuit via communication buses or interfaces, such as I2C bus, SPI bus, and UART serial port, to enable command issuance and data interaction. During normal server operation, the BMC continuously monitors the server's operating status. When a serious fault occurs, such as server crash or operating system failure, the BMC detects a corresponding fault trigger signal. This fault trigger signal can originate from various sources, such as a non-maskable interrupt (NMI) signal reported by the Platform Controller Hub (PCH), a reset signal triggered by a watchdog timer timeout, or an interrupt signal reported by the PCH after detecting a fatal system error. Upon receiving this fault trigger signal, the BMC triggers the fault location process described in this embodiment.
[0031] In response to a detected fault trigger signal, the BMC first disables the power supply to the server's Central Processing Unit (CPU) and PCH via the logic control circuit. Specifically, the BMC sends a first control command to the logic control circuit via the communication bus. Upon receiving this command, the logic control circuit disables both the CPU power supply enable register and the PCH power supply enable register, thereby stopping the power management chip from outputting operating voltage to the CPU and PCH. At this point, the CPU and PCH are in a completely de-energized state, neither powered on nor operating.
[0032] It's important to note that the PCH is one of the core chips on the server motherboard, responsible for managing numerous I / O interfaces (such as USB, SATA, and network interfaces) as well as system power management and reset timing. When the server crashes, the CPU and PCH may be in a suspended or abnormal state. If either of them remains powered, their internal logic may continue to drive the bus, generating invalid signals or occupying bus resources, thus interfering with subsequent data processing acceleration circuitry's normal access to storage devices. Furthermore, if the PCH is not powered off, its internal logic may continuously attempt reset operations or change the states of related pins during system abnormalities, causing unpredictable activity on the bus. Therefore, before initiating the fault location process, simultaneously powering off the CPU and PCH can effectively eliminate their interference with the system bus, creating a stable bus environment for the data processing acceleration circuitry and ensuring the reliability and security of subsequent data reads.
[0033] After confirming that the power supply to the CPU and PCH has been successfully disabled, the BMC activates the controllable data switch via the logic control circuit to establish a data channel between the data processing acceleration circuit and the storage device. Specifically, the BMC sends a second control command to the logic control circuit via the communication bus. Upon receiving the command, the logic control circuit sets the control register of the controllable data switch to the enabled state, thereby enabling the data processing acceleration circuit to establish a physical data connection with the storage device through the controllable data switch. Once the controllable data switch is activated, the data processing acceleration circuit gains access to the storage device. Since the CPU and PCH are powered off, they will not perform any access operations on the storage device; therefore, the data processing acceleration circuit can safely read data from the storage device in a bus-free environment.
[0034] After the data channel is established, the BMC sends a read command to the data processing acceleration circuit via the communication bus. Upon receiving the read command, the data processing acceleration circuit reads the operating system fault data stored in the storage device through the established data channel. This operating system fault data is the original data record of the server at the moment of the fault, containing multi-dimensional information at the instant of the fault, such as the values of specific registers inside the CPU (including but not limited to RAS (Reliability, Availability, Serviceability) registers), binary data in memory, operating system text logs, kernel crash dump files, and boot logs of the Basic Input / Output System (BIOS) and the kernel.
[0035] The data processing acceleration circuit pre-deploys a trained neural network inference model. This neural network inference model can employ a deep learning-based log anomaly detection model, such as the LogAnomaly unsupervised deep learning log anomaly detection model. The LogAnomaly model is specifically designed for unstructured server logs, eliminating the need for manual annotation of fault samples. It can automatically learn normal system log patterns, identify abnormal log sequences, and locate the fault type and root cause. The model transforms raw logs into template sequences through log template extraction, converts these template sequences into numerical vectors through semantic vectorization, and then uses a Long Short-Term Memory (LSTM) network to perform time-series modeling and anomaly detection on the vector sequences. Finally, it outputs the anomaly detection results and fault root cause localization conclusions. The relevant technical solutions for the LogAnomaly model have been disclosed in academic papers (such as "LogAnomaly: Unsupervised Detection of Sequential and Quantitative Anomalies"), and those skilled in the art can implement the model based on the descriptions in that paper.
[0036] The neural network inference model takes standardized fault feature data (e.g., in JSON format) encapsulated according to a preset data structure as input and outputs fault location conclusions (e.g., in JSON format) containing basic fault information, inference basis, AI location conclusions, and handling suggestions. During the training phase, the model uses a large amount of historical server fault data as training samples. By learning the differences between normal and abnormal log patterns, it establishes a mapping relationship from fault feature data to fault root causes.
[0037] The neural network inference model can be obtained and deployed to the data processing acceleration circuit in the following way: On a cloud server or dedicated training server, using a large amount of historical server failure data as training samples, offline training is performed using a deep learning algorithm (e.g., the LogAnomaly unsupervised deep learning log anomaly detection model) to generate the neural network inference model. After training, the model is exported as a model file for the corresponding deep learning framework (e.g., TensorFlow or PyTorch). Then, using model compilation tools provided by the data processing acceleration circuit (e.g., FPGA) manufacturer (e.g., the Xilinx Vitis AI toolchain), the trained model is quantized and compiled to generate an inference engine file that can be deployed on the data processing acceleration circuit. Finally, the inference engine file is loaded into the data processing acceleration circuit for deployment via BMC. The above model training, compilation, and deployment processes are all known technologies in the art, and those skilled in the art can complete the above operations according to the specific hardware platform and deep learning framework selected, following the corresponding development tool documentation.
[0038] After acquiring operating system fault data, the data processing acceleration circuit invokes its internally deployed neural network inference model to perform inference analysis based on the acquired operating system fault data and generate fault location conclusions. The inference analysis process includes at least the following steps: First, the input data is parsed to extract key features from each data level (e.g., register numerical features, log text semantic features, error code distribution features, etc.); second, the extracted features are input into the trained neural network model for forward propagation calculation, and the model outputs anomaly detection results through its internal neuron connections and activation functions; finally, based on the model's output, combined with a preset fault rule base or the model's own inference capabilities, a location conclusion containing the root cause of the fault and handling suggestions is generated. The specific network structure of the neural network model (e.g., the number of layers and hidden layer dimensions of an LSTM network) can be adjusted according to the actual application scenario and training data. Those skilled in the art have the ability to select appropriate network structures and training parameters according to specific needs.
[0039] The data processing acceleration circuit, through its internal parallel processing architecture and hardware acceleration capabilities, can efficiently complete the aforementioned inference tasks and output fault location conclusions in a short time. Specifically, the processor system (PS) inside the data processing acceleration circuit is responsible for data reading and preprocessing, while the programmable logic (PL) processing core is responsible for accelerating the execution of the neural network inference model. The two interact with each other through internal high-speed caches (such as Block Random Access Memory, BRAM), forming an efficient pipelined processing architecture to ensure that the inference process is completed in a short time.
[0040] After the data processing acceleration circuit generates a fault location conclusion, it sends the conclusion to the BMC via the communication bus. Upon receiving the conclusion, the BMC displays it to maintenance personnel through its interactive interface. This interface can be the BMC's web management interface, a command-line interface (CLI), a Redfish-compliant management interface, or a Simple Network Management Protocol (SNMP) interface. Maintenance personnel can directly obtain the root cause analysis results of the fault through the BMC's interactive interface, eliminating the need to manually review and analyze large amounts of raw logs, thus significantly reducing fault location time.
[0041] Preferably, before the BMC sends a read command to the data processing acceleration circuit, a model update step may be included. Specifically, the BMC can communicate with a cloud server to obtain the neural network inference model stored in the cloud server; compare the version of the neural network inference model currently deployed in the data processing acceleration circuit with the version of the inference model stored in the cloud server; if the model version in the cloud server is updated, the updated neural network inference model is sent to the data processing acceleration circuit for deployment through the communication connection between the BMC and the data processing acceleration circuit. Through the above model update mechanism, it can be ensured that the latest version of the inference model is always running in the data processing acceleration circuit, thereby improving the accuracy of fault location.
[0042] Through the above implementation methods, the server fault location method of the present invention forms a complete technical chain of "power-off isolation → data channel establishment → automatic reasoning analysis → direct output of conclusions" through the coordinated cooperation of four steps. Specifically, step 1 disables the CPU / PCH power supply, physically eliminating the interference of a suspended CPU and PCH on the bus; step 2 establishes a data channel by turning on a controllable data switch, enabling the data processing acceleration circuit to read complete fault scene data in a safe environment without bus contention; step 3 triggers automated reasoning analysis based on a neural network reasoning model and generates a location conclusion by sending a read command to the data processing acceleration circuit, eliminating reliance on manual inference by maintenance personnel; and step 4 directly outputs the location conclusion through the BMC interactive interface, allowing maintenance personnel to understand the root cause of the fault without having to consult the original logs. These four steps are interdependent and interconnected, jointly solving the technical problem of data loss due to CPU suspension, which forces maintenance personnel to rely on manual inference, and achieving fully automated fault location from fault triggering to conclusion output. Therefore, when the server crashes or the operating system fails to start, the present invention can achieve a collaborative working mode of data reading and AI inference through unified scheduling by BMC, power isolation and channel switching by logic control circuit, and data processing acceleration circuit. Even under extreme conditions where the server CPU and PCH are completely powered off, it can still completely acquire the original data of the fault scene and perform intelligent root cause analysis. It automatically completes the complete capture of fault scene data and intelligent root cause analysis, effectively improving the efficiency and accuracy of fault location and reducing the reliance on the personal experience of maintenance personnel.
[0043] like Figure 3 As shown, in the first embodiment, the step of sending a read command to the data processing acceleration circuit includes: Communicate with the cloud server to obtain the neural network inference model stored in the cloud server; Compare the version of the neural network inference model deployed on the data processing acceleration circuit with the version of the neural network inference model in the cloud server; If the neural network inference model in the cloud server is updated, the updated neural network inference model will be sent to the data processing acceleration circuit for deployment.
[0044] It's important to explain that in real-world applications, server fault types constantly change with hardware iterations, firmware upgrades, and operating system updates. The neural network inference model deployed within the data processing acceleration circuitry needs continuous iteration and optimization to maintain the accuracy and adaptability of fault location. If the inference model remains unchanged for an extended period, it may fail to identify new fault modes, leading to a decrease in inference accuracy. Therefore, ensuring that the inference model deployed in the data processing acceleration circuitry is the latest version before triggering the fault location process is of significant technical importance.
[0045] Specifically, BMC first establishes a communication connection with a cloud server via a network (such as Ethernet). The cloud server stores a trained neural network inference model, which can be continuously trained and optimized by server vendors or professional maintenance teams on a cloud training platform using a large amount of historical server failure data. This model is then stored as a model file in a designated storage location on the cloud server. The cloud server can also assign a unique version identifier (such as a version number or release timestamp) to each version of the inference model to distinguish between different versions.
[0046] After establishing a communication connection with the cloud server, the BMC obtains the version identification information of the neural network inference model stored on the cloud server. Simultaneously, the BMC obtains the version identification information of the neural network inference model currently deployed in the data processing acceleration circuit. The BMC compares the two to determine if the model version on the cloud server is updated. If the model version on the cloud server is updated, the BMC sends the updated neural network inference model to the data processing acceleration circuit for deployment through the communication connection between the BMC and the data processing acceleration circuit.
[0047] If the model version in the cloud server is not updated (i.e., the currently deployed model is already the latest version), the BMC can skip the model update step and directly execute the subsequent fault location process, that is, send a read command to the data processing acceleration circuit.
[0048] During model delivery, the BMC transmits the model file from the cloud server to the data processing acceleration circuit via a communication connection (such as an SPI bus or UART serial port). Upon receiving the complete model file, the data processing acceleration circuit stores it in its internal non-volatile memory area (such as the FPGA's configuration flash memory or external memory chips) and loads the model during the next inference task. If an older version of the inference model already exists in the data processing acceleration circuit, the new model will overwrite the old model, ensuring that subsequent inference analysis uses the latest model.
[0049] Preferably, the BMC can also communicate with the cloud server periodically to check for updated versions of the inference model. For example, during normal server operation, the BMC can proactively query the cloud server for the model version at a preset cycle (e.g., once a week), and download and deploy the new version to the data processing acceleration circuit in advance when a new version is detected. In this way, when the server actually fails, the latest version of the inference model has already been deployed in the data processing acceleration circuit, and the BMC can directly send a read command to the data processing acceleration circuit without spending extra time downloading and deploying the model after the failure occurs, thereby further shortening the response time for fault location.
[0050] The aforementioned model update mechanism ensures that the latest version of the neural network inference model is always running in the data processing acceleration circuit, thereby effectively improving the accuracy of fault location and adapting to the continuous evolution of server hardware and software. Furthermore, by updating the model before the fault location process begins, it guarantees that each fault location operation is based on the optimal inference model, avoiding misjudgments or missed judgments due to outdated models.
[0051] It should be noted that the model update step described above is executed before the BMC sends a read command to the data processing acceleration circuit. In other words, after triggering the fault location process, the BMC prioritizes model version checking and updating to ensure the inference model in the data processing acceleration circuit is the latest version before sending the read command to obtain fault data and perform inference analysis. This timing ensures that the model update does not interfere with subsequent data reading and inference processes.
[0052] In the second embodiment, the data processing acceleration circuit is connected to the hardware peripheral to be diagnosed via a high-speed data channel; like Figure 4 As shown, the server fault location method further includes: In response to a first diagnostic command input through the BMC's interactive interface, the power supply to the CPU and the PCH is disabled via the logic control circuit, and the high-speed data channel is enabled via the logic control circuit. Send a hardware test command to the data processing acceleration circuit so that the data processing acceleration circuit can perform hardware-level testing on the hardware peripheral to be diagnosed through a hardware interface simulating a CPU. The test results are received from the data processing acceleration circuit and output through the interactive interface.
[0053] It should be noted that when a server malfunctions and it is initially determined that the malfunction may originate from a hardware peripheral (such as a memory module or PCIe peripheral), the maintenance personnel can proactively trigger the hardware diagnostic process through the BMC's interactive interface. The data processing acceleration circuit will perform hardware-level testing on the hardware peripheral to be diagnosed without relying on the CPU, so as to accurately locate the faulty component.
[0054] In this embodiment, the data processing acceleration circuit is connected to the hardware peripheral to be diagnosed via a high-speed data channel. This high-speed data channel differs from the aforementioned controllable data switch: the controllable data switch is connected between the data processing acceleration circuit and the storage device, used to read operating system fault data; the high-speed data switch is connected between the data processing acceleration circuit and the hardware peripheral to be diagnosed, used to test the hardware peripheral. The two channels are independent of each other, and their on / off states are controlled by the logic control circuit in response to different instructions from the BMC. The hardware peripheral to be diagnosed may include memory modules (DIMMs) or PCIe peripherals (such as PCIe network cards, PCIe accelerator cards, etc.), but is not limited to these.
[0055] When maintenance personnel suspect a server malfunction originating from a hardware peripheral, they can enter hardware diagnostic mode through the BMC's interactive interface (e.g., a web management interface) and select the type of hardware peripheral to be diagnosed. In response to the first diagnostic command input through the interactive interface (i.e., the command to enter hardware diagnostic mode), the BMC first disables the power supply to the CPU and PCH via logic control circuitry. Similar to the aforementioned implementation, disabling the CPU and PCH power supplies aims to completely eliminate their interference with the system bus, creating a "clean" hardware testing environment for the data processing acceleration circuitry.
[0056] It should be noted that disabling the CPU and PCH power supply in hardware diagnostic scenarios has another important significance: traditional hardware diagnostics relies on the CPU accessing and testing peripherals through its memory controller or PCIe root complex. However, in fault scenarios, the CPU itself may be in an abnormal state and unable to reliably perform diagnostic operations. Therefore, this invention effectively avoids the problem of unreliable diagnosis caused by CPU abnormalities by disabling the CPU in an abnormal state and instead using a known healthy data processing acceleration circuit to simulate the CPU's hardware interface for testing.
[0057] After confirming that the CPU and PCH power supplies have been disabled, the BMC uses logic control circuitry to activate the high-speed data channel, establishing a physical data connection between the data processing acceleration circuitry and the peripheral hardware under test. This high-speed data channel supports high-speed data transmission and can meet the testing bandwidth requirements of memory modules and PCIe peripherals.
[0058] Subsequently, the BMC sends hardware test commands to the data processing acceleration circuit via the communication bus. Upon receiving these commands, the data processing acceleration circuit performs hardware-level testing on the peripheral device under diagnosis through a simulated CPU hardware interface. Specifically, the data processing acceleration circuit (e.g., an FPGA) pre-implements interface logic corresponding to the CPU hardware interface, including but not limited to memory controller interface logic and PCIe root complex interface logic. This interface logic is implemented using a hardware description language and can generate timing signals conforming to the corresponding bus protocol (e.g., JEDEC memory protocol or PCIe protocol) to communicate with the peripheral device under diagnosis. By simulating the CPU hardware interface, the data processing acceleration circuit can independently complete the access, configuration, and testing operations of peripheral devices without relying on the CPU.
[0059] When the peripheral hardware to be diagnosed is a memory module, the data processing acceleration circuit performs hardware-level tests on each memory module one by one through the simulated CPU memory controller interface. The tests include at least one of the following: presence detection, to confirm that the memory module is physically installed in the corresponding slot; address line connectivity detection, to verify that the physical address lines of the memory are intact and free from short circuits or open circuits; read / write function detection, to verify that the memory module can normally perform data write and read operations; and data stability detection, to verify that the data remains intact and free from bit flips when storing different data modes. These tests cover the main failure modes of memory modules and can effectively distinguish between "damaged memory module itself" and "motherboard memory slot failure."
[0060] When the hardware peripheral to be diagnosed is a PCIe peripheral, the data processing acceleration circuit performs hardware-level tests on each peripheral in each PCIe slot through the simulated CPU's PCIe root complex interface. The tests include at least one of the following: in-situ detection to confirm that the PCIe peripheral is physically installed in the corresponding slot; physical layer signal quality detection to verify that the electrical characteristics of the PCIe link are normal; link training state machine detection to verify that the PCIe link training process is completed correctly; and data link layer and transaction layer protocol consistency detection to verify that PCIe data packets can be correctly assembled, disassembled, and responded to. These tests cover the main failure modes of PCIe peripherals and can effectively distinguish between "peripheral damage" and "motherboard PCIe slot failure."
[0061] After completing hardware testing, the data processing acceleration circuit feeds the test results back to the BMC. Upon receiving the test results, the BMC displays them to maintenance personnel through an interactive interface. The test results may include the test status (pass / fail) of each slot, a detailed fault description, and possible cause analysis, facilitating maintenance personnel to quickly locate the faulty component and take appropriate maintenance measures.
[0062] Through the above hardware diagnostic process, this invention can independently perform hardware-level diagnostics on memory modules and PCIe peripherals by the data processing acceleration circuit under extreme conditions where the server CPU and PCH are completely powered off. This effectively overcomes the shortcomings of existing technologies that lack on-site hardware diagnostic methods, rely on replacement methods or send the devices back to the original manufacturer for processing, and significantly improves the efficiency of on-site fault handling.
[0063] like Figure 5 As shown, in the third embodiment, the response to the fault trigger signal includes, prior to: The controllable data switch and the high-speed data channel are both set to the off state by the logic control circuit, and the corresponding data pins of the data processing acceleration circuit are set to the high impedance state. The data processing acceleration circuit receives a predictive alarm when it detects an abnormal pattern by listening to the control signal of the server's internal bus and identifying it through the neural network inference model. The predictive alarm is output through the BMC's interactive interface.
[0064] It should be explained that the server fault location method of the present invention can also provide fault prediction function when the server is in normal operation, that is, to provide early warning of server hardware fault risks, and realize the transformation from "passive response" to "active prevention".
[0065] During normal server operation, both the CPU and PCH are powered normally, and the server handles read and write operations for business data. At this time, the BMC uses logic control circuitry to disconnect the controllable data switch and high-speed data channel, and sets the corresponding data pins of the data processing acceleration circuit to a high-impedance state. The purpose of setting the high-impedance state is to electrically isolate the pins of the data processing acceleration circuit from the server's internal bus, preventing interference with normal business data transmission and preventing external signals from falsely triggering the internal logic of the data processing acceleration circuit. Through this isolation, the data processing acceleration circuit does not participate in any data transmission or control operations during normal server operation, ensuring that it does not affect the server's normal operating performance and stability.
[0066] Even after isolation is achieved, the data processing acceleration circuit is not entirely idle. Utilizing the parallel processing capabilities of its programmable logic, the circuit bypasses and listens to control signals on the server's internal bus in a high-impedance state. This listening refers to the circuit capturing control signals transmitted on the bus in real time (e.g., PCIe bus link status signals, memory control bus command / address signals, power management bus status signals, etc.) through its input pins without injecting any signals or data into the bus. Because the pins of the data processing acceleration circuit are in a high-impedance state, its listening operation does not affect the signal quality on the bus; that is, it does not change the signal voltage level or timing characteristics, and therefore does not interfere with the transmission of normal business data.
[0067] The data processing acceleration circuit continuously acquires the monitored bus control signals and performs real-time anomaly pattern recognition on these signals using a neural network inference model deployed within it. Specifically, the data processing acceleration circuit samples and extracts features from the monitored bus control signals in real time, converting them into feature vectors that can be processed by the neural network inference model, and then inputs them into the deployed neural network inference model for calculation. The neural network inference model is pre-trained and can identify anomaly patterns in the bus control signals that indicate potential hardware failures. For example, when ECC error correction events occur frequently on the memory bus, this event pattern may indicate that the physical storage cells of the memory modules are deteriorating; when a large number of CRC check errors or retransmission events occur on the PCIe link, this event pattern may indicate that the signal integrity of the PCIe link is deteriorating; when abnormal voltage fluctuation signals occur on the power management bus, this event pattern may indicate that there is a stability risk in the power supply module. Each of the above-mentioned abnormal modes manifests as subtle and gradual changes in signal characteristics during normal server operation. Traditional BMC threshold alarm mechanisms are unable to capture these early signals before a fault actually occurs. However, neural network inference models, by learning the signal change patterns in a large number of historical fault cases, can identify abnormal modes that match known fault precursors from the currently monitored control signals.
[0068] When the data processing acceleration circuitry detects an abnormal pattern in the control signals using a neural network inference model, it immediately issues a predictive alarm to the BMC. This predictive alarm includes at least the anomaly type information (e.g., "abnormally high memory ECC error frequency" or "PCIe link CRC error rate exceeds the threshold") and recommended maintenance actions (e.g., "recommend replacing the memory module in the specified slot" or "recommend checking the PCIe link connection"). This predictive alarm is generated based on the real-time inference results of the data processing acceleration circuitry and can be issued hours or even days before the server actually crashes.
[0069] After receiving a predictive alarm from the data processing acceleration circuit, the BMC outputs the predictive alarm through its interactive interface. Maintenance personnel can promptly receive alarm information via a web management interface, email notifications, SNMP traps, or other methods, enabling them to proactively take preventative maintenance measures before a server failure actually occurs. Examples of preventative measures include replacing failing memory modules, reseating or replacing PCIe peripherals with degraded signal quality, etc.
[0070] Through the aforementioned predictive alarm mechanism, this invention can continuously analyze hardware status trends during normal server operation, identify potential risks and issue early warnings before a failure actually occurs, effectively avoiding business interruptions caused by sudden hardware failures and significantly improving server reliability and maintainability. Furthermore, since the data processing acceleration circuit only listens to control signals and does not participate in data transmission, and its pins are set to a high-impedance state, the aforementioned predictive alarm function has a negligible impact on the server's normal business performance and can operate stably for extended periods.
[0071] The present invention also proposes a server fault location method, which is applied to a server including a baseboard management controller (BMC), a logic control circuit, and a data processing acceleration circuit. The data processing acceleration circuit is communicatively connected to the BMC and the logic control circuit, respectively. The data processing acceleration circuit is connected to a storage device through a controllable data switch. The on / off state of the controllable data switch is controlled by the logic control circuit in response to the instructions of the BMC. like Figure 6 As shown, the server fault location method includes: In response to the read command from the BMC, the operating system fault data stored in the storage device is read through the data channel between the storage device and the storage device, and the operating system fault data is encapsulated into standardized fault feature data according to a preset data structure; The neural network inference model deployed inside the data processing acceleration circuit is invoked to perform inference analysis on the standardized fault feature data and generate fault location conclusions. The fault location conclusion is sent to the BMC.
[0072] It should be explained that this embodiment describes the specific implementation process of the server fault location method from the perspective of the data processing acceleration circuit (i.e., the execution end). The data processing acceleration circuit can be implemented using a Field Programmable Gate Array (FPGA), which internally comprises a Processor System (PS) and Programmable Logic (PL). These two parts work together to complete data reading, preprocessing, and inference acceleration tasks. The PS is responsible for control tasks such as communication with the BMC, data reading, and preprocessing, while the PL is responsible for the hardware acceleration execution of the neural network inference model.
[0073] The data processing acceleration circuit is connected to the storage device via a controllable data switch. The switching on and off of this controllable data switch is controlled by a logic control circuit responding to instructions from the BMC. In the event of a server crash or operating system malfunction, the BMC, through the logic control circuit, disables the power supply to the CPU and PCH and activates the controllable data switch, establishing a data channel between the data processing acceleration circuit and the storage device. Therefore, on the data processing acceleration circuit side, the data channel is ready.
[0074] The data processing acceleration circuit continuously monitors the communication bus from the BMC. Once the BMC completes the aforementioned preparation operations, it sends a read command to the data processing acceleration circuit. Responding to this read command, the data processing acceleration circuit reads the operating system fault data stored in the storage device through the established data channel with the storage device. This operating system fault data is the server's original data record at the moment of the fault, containing multi-dimensional information at the instant the fault occurred, including but not limited to: values of specific registers within the CPU (such as the RAS (Reliability, Availability, Serviceability) register), binary data in memory, operating system text logs, kernel crash dump files, and boot logs of the Basic Input / Output System (BIOS) and the kernel. This data is stored in the storage device as files or in a specific partition format, and the data processing acceleration circuit reads this data through a file system driver or block device access method.
[0075] After reading the aforementioned operating system fault data, the data processing acceleration circuit does not directly send the raw data to the BMC or upload it to the cloud. Instead, it preprocesses and structures the raw data locally. Specifically, the data processing acceleration circuit encapsulates the read operating system fault data into standardized fault feature data according to a preset data structure. This preset data structure is a unified data organization format used to transform multi-source, heterogeneous raw fault data into a structured data format that can be directly parsed by the neural network inference model. In a preferred embodiment, this preset data structure is in JSON (JavaScript Object Notation) format. JSON, as a lightweight data exchange format, has good readability and cross-platform compatibility, facilitating data transfer between different processing units (PS and PL) within the data processing acceleration circuit, and also facilitating subsequent parsing and feature extraction by the neural network inference model.
[0076] Preferably, the preset data structure includes at least five data layers: a basic metadata layer, a fault register data layer, a memory dump data layer, an operating system text log layer, and a boot log layer. Specifically, the basic metadata layer records server device profiles and fault context information (e.g., device serial number, CPU architecture, fault time, fault type, etc.); the fault register data layer records the addresses, values, and bit field meanings of each register at the time of the fault; the memory dump data layer records memory data at the time of the fault in a structured manner according to memory address ranges; the operating system text log layer records system logs and application logs in chronological order; and the boot log layer records BIOS and kernel boot phase logs. Through the standardized encapsulation of these five data layers, the original multi-source heterogeneous fault data is transformed into structured data with clear hierarchy and defined fields, laying the foundation for efficient processing by subsequent neural network inference models.
[0077] More preferably, each data record in the fault register data hierarchy includes at least the following fields: register name (to identify the register's functional name), register address (to identify the register's physical address or memory-mapped address), register hexadecimal value (to provide a compact representation of the register's overall value), register binary value (to preserve the original state of each bit for easy bit pattern analysis), and bit field description information (to explain the semantic meaning of each bit or bit field). Through the above structured design, the neural network inference model can directly extract the register's numerical features and bit field semantic features from the JSON data without additional data parsing and format conversion.
[0078] After the data processing acceleration circuit completes data encapsulation, it invokes the neural network inference model deployed within it to perform inference analysis on the standardized fault feature data and generate fault location conclusions. The neural network inference model is pre-deployed in the internal storage resources of the data processing acceleration circuit, such as the configuration flash memory of the FPGA or external storage chips. The specific implementation of the inference model can employ a deep learning-based log anomaly detection model, such as the LogAnomaly unsupervised deep learning log anomaly detection model. This model uses log template extraction, semantic vectorization, and a Long Short-Term Memory (LSTM) network to achieve anomaly detection and fault root cause localization in log sequences. The data processing acceleration circuit executes the computation tasks of the neural network inference model through its internal PL hardware acceleration unit, utilizing the parallel processing architecture of the FPGA to accelerate the inference process. The PS passes the encapsulated standardized fault feature data to the PL through an internal high-speed cache (e.g., BRAM), and the PL performs forward propagation computation of the neural network, outputting the inference results.
[0079] The reasoning and analysis process includes at least the following steps: First, the standardized JSON data is parsed to extract key features from each data level (such as register numerical features, log text semantic features, error code distribution features, etc.); second, the extracted features are input into a trained neural network model for calculation, and the model outputs anomaly detection results and root cause analysis results through its internal neuron connections and activation functions; finally, based on the model's output, a fault location conclusion is generated, which includes basic fault information, inference basis, AI location conclusion, and handling suggestions.
[0080] After generating a fault location conclusion, the data processing acceleration circuit sends the conclusion to the BMC via the communication bus. Upon receiving the conclusion, the BMC displays it to the maintenance personnel through its interactive interface. The data processing acceleration circuit is only responsible for data reading, encapsulation, inference, and conclusion feedback; it does not participate in the display of conclusions or the interaction with maintenance personnel, thus achieving decoupling between data processing and user interaction.
[0081] Through the above implementation method, the data processing acceleration circuit can autonomously complete the entire processing flow from raw data reading, multi-source data fusion and encapsulation, neural network inference to conclusion output after receiving a single read command from the BMC, without requiring the BMC to send additional commands for intervention. This "single trigger, full-process completion" working mode effectively reduces the number of communication interactions between the BMC and the data processing acceleration circuit, reduces communication latency, and improves the overall efficiency of fault location. Simultaneously, the pipelined collaborative architecture of the PS and PL within the data processing acceleration circuit ensures efficient execution of data preprocessing and neural network inference, enabling the output of fault location conclusions in a short time, meeting the data center's need for rapid fault recovery.
[0082] In the fourth embodiment, the data processing acceleration circuit is connected to the hardware peripheral to be diagnosed via a high-speed data channel; The server fault location method also includes: In response to the hardware test command of the BMC, hardware-level testing is performed on the hardware peripheral device to be diagnosed through a simulated CPU hardware interface. The test results are fed back to the BMC.
[0083] It should be explained that this implementation describes the specific implementation process of the hardware field diagnostic function from the perspective of the data processing acceleration circuit (i.e., the execution end). As mentioned earlier, the data processing acceleration circuit is connected to the hardware peripheral to be diagnosed (e.g., memory module or PCIe peripheral) through a high-speed data channel. This high-speed data channel is used to transmit test data and commands in diagnostic mode, and its bandwidth and protocol must match the interface requirements of the peripheral to be diagnosed (e.g., JEDEC standard timings adapted to DDR4 / DDR5 memory, or serial communication protocols adapted to PCIe Gen3 / Gen4 / Gen5). When the maintenance personnel trigger hardware diagnostics through the BMC interactive interface and complete the CPU / PCH power-off isolation, the preparation operations on the data processing acceleration circuit side have been completed by the BMC and logic control circuit in collaboration. Specifically, this includes: the power supply to the CPU and PCH has been disabled, the high-speed data channel has been turned on, and the physical link between the data processing acceleration circuit and the hardware peripheral to be diagnosed has been established.
[0084] In this state, the BMC sends a hardware test command to the data processing acceleration circuit. The data processing acceleration circuit responds to this hardware test command by performing hardware-level testing on the peripheral device to be diagnosed through a simulated CPU hardware interface.
[0085] The "simulated CPU hardware interface" refers to the fact that the data processing acceleration circuit internally implements interface logic equivalent to the CPU's native hardware interface functionality through hardware description languages (such as Verilog or VHDL). The essence of the data processing acceleration circuit's test is to use known healthy circuit logic to drive and access the hardware peripheral to be diagnosed, and compare the returned data or status with expected values to determine whether the peripheral is faulty.
[0086] After completing hardware testing, the data processing acceleration circuit feeds the test results back to the BMC. The BMC then displays the results to maintenance personnel through its interactive interface, facilitating the location of faulty components and the implementation of appropriate maintenance measures. Furthermore, during actual testing, the data processing acceleration circuit can simultaneously utilize its internal neural network inference model to assist in the analysis of the test results, such as determining whether the error pattern matches known fault types, thereby further improving the accuracy of diagnostic conclusions. Through this method, the data processing acceleration circuit independently completes the hardware diagnostic operation, while the BMC is only responsible for issuing commands and receiving results, thus offloading and accelerating the diagnostic function.
[0087] In one example, the hardware peripheral to be diagnosed is a memory module; the hardware-level testing of the hardware peripheral to be diagnosed through a hardware interface simulating a CPU includes: By simulating the memory controller interface of the CPU, perform at least one of the following tests on each memory module: in-situ detection, address line connectivity detection, read / write function detection, and data stability detection; Alternatively, the hardware peripheral to be diagnosed is a PCIe peripheral, and the hardware-level testing of the hardware peripheral to be diagnosed through a hardware interface simulating a CPU includes: By simulating the CPU's PCIe root complex interface, perform at least one of the following tests on each peripheral on each PCIe slot: presence detection, physical layer signal quality detection, link training state machine detection, and data link layer transaction layer protocol consistency detection.
[0088] It should be explained that this implementation method describes the specific implementation of hardware-level testing by the data processing acceleration circuit for two common types of hardware peripherals to be diagnosed—memory modules and PCIe peripherals. The data processing acceleration circuit communicates with the peripheral to be diagnosed through a hardware interface that simulates the CPU. Since the communication protocols and electrical characteristics of memory modules and PCIe peripherals are completely different, the data processing acceleration circuit needs to switch different interface simulation logic according to the type of peripheral.
[0089] When the peripheral hardware to be diagnosed is a memory module, the data processing acceleration circuit performs hardware-level tests on each memory module one by one through the memory controller interface that simulates the CPU.
[0090] The data processing acceleration circuit internally implements interface logic equivalent to that of the CPU memory controller using a hardware description language. This interface logic conforms to the memory interface standard published by JEDEC (Joint Electron Device Engineering Council) and can generate clock signals, command signals, address signals, and data signals that meet the requirements of DDR3 / DDR4 / DDR5 protocols to achieve the initialization configuration and read / write access of the memory modules.
[0091] Specifically, the data processing acceleration circuit requires an FPGA chip that supports a high-speed memory interface. Its high-performance (HP) bank must be capable of interfacing with the physical layer (PHY) of the memory module, including differential clock (CLK) driving, data strobe (DQS) synchronization, and on-die termination (ODT) configuration. Using these hardware resources, the data processing acceleration circuit can simulate the DDR PHY behavior of a CPU, establish a physical layer link with the memory module, and execute an initialization training process compliant with the JEDEC standard.
[0092] Based on this, the data processing acceleration circuit performs at least one of the following tests on each memory module in each memory slot: Presence detection is used to confirm whether the target memory module is physically installed in the corresponding slot. The data processing acceleration circuit achieves presence detection by reading information from the memory module's Serial Presence Detect (SPD) chip. The SPD chip is a non-volatile storage device on the memory module, independent of the memory chips, which stores configuration information such as the memory module's capacity, speed, and timing parameters. If the data processing acceleration circuit can successfully read the SPD information through the memory bus, it determines that the memory module is present; if it cannot read the information or the read data is invalid, it determines that the memory module is not present or is damaged.
[0093] Address line connectivity detection is used to verify whether there are short circuits, open circuits, or abnormal signal integrity on the address signal lines between the CPU and the memory module. The data processing acceleration circuit writes a specific address detection pattern (such as Walking 1 or Walking 0 mode) into the memory address space, then reads the data at the corresponding address and compares it with the expected value to determine whether there are sticking or open circuit faults on the address lines.
[0094] The read / write function test verifies whether the memory module's storage units can perform data writing and reading operations normally. The data processing acceleration circuit selects multiple representative address ranges, writes various test data modes (such as all 0s, all 1s, alternating mode, random mode, etc.), and then reads and compares them to verify whether the memory module's read / write function is normal.
[0095] Data stability testing verifies whether the memory module can maintain data integrity when storing data. After writing preset data into the memory module, the data processing acceleration circuit continuously reads and monitors the data for unexpected changes (i.e., bit flips) to evaluate whether the retention characteristics of the storage cells meet the requirements. Data stability testing can effectively identify progressively degraded cells in the memory module.
[0096] Through the above tests, if a memory module fails in any test, the data processing acceleration circuit can determine that the memory module is faulty and record the specific failed test item in the test results, which makes it easy for maintenance personnel to quickly locate the faulty memory module.
[0097] When the hardware peripheral to be diagnosed is a PCIe peripheral, the data processing acceleration circuit performs hardware-level tests on each peripheral in each PCIe slot through the PCIe Root Complex interface that simulates the CPU.
[0098] The data processing acceleration circuit needs to implement the hardware logic of the PCIe protocol stack, including the complete protocol processing capabilities of the Physical Layer, Data Link Layer, and Transaction Layer. As the root complex in the PCIe hierarchy, the data processing acceleration circuit can proactively initiate PCIe link training, configuration space enumeration and access, memory read / write transactions (TLP), and I / O and configuration transactions.
[0099] Specifically, the data processing acceleration circuit selection needs to integrate hard-core IP that supports the PCIe protocol or have a high-speed serial transceiver (such as GTY / GTP transceiver) to support PCIe Gen1 / Gen2 / Gen3 / Gen4 / Gen5 rates, and be able to automatically complete link bit lock, symbol lock and link width negotiation (such as x1 / x4 / x8).
[0100] At the data link and transaction layers, the data processing acceleration circuitry needs to implement a complete LTSSM (Link Training and Status State Machine) state machine to control the entire link training process, including states such as Detect, Polling, Configuration, and Recovery. Through this complete LTSSM state machine implementation, the data processing acceleration circuitry can proactively initiate link establishment and rate negotiation processes with PCIe peripherals and monitor link status changes in real time.
[0101] Based on this, the data processing acceleration circuit performs at least one of the following tests on each peripheral on each PCIe slot: Presence detection is used to confirm whether a PCIe peripheral is physically installed in its corresponding slot. The data processing acceleration circuit determines the presence of the peripheral by detecting the presence of signals during the PCIe link training process. Specifically, this is achieved by detecting the presence of the PCIe reference clock (REFCLK) and whether the electrical presence signal of the remote receiver can be detected during the link training process (Receiver Detection).
[0102] Physical layer signal quality detection is used to verify whether the electrical characteristics of the PCIe link meet the specification requirements. The data processing acceleration circuit evaluates the signal integrity of the link through the eye diagram monitoring function or bit error rate statistics function of the internally integrated high-speed serial transceiver, including but not limited to key indicators such as eye diagram opening, jitter, and differential voltage swing, to determine whether there are physical layer signal quality problems in the link.
[0103] Link training state machine monitoring is used to verify whether the PCIe link training process has been completed correctly. The data processing acceleration circuit monitors the entire link training process through its own LTSSM state machine and reads the link status register after training to verify whether the link width and speed are consistent with the expected configuration. If training fails or the link status is abnormal, a link training fault is determined to exist.
[0104] Data link layer and transaction layer protocol consistency checks are used to verify whether the PCIe peripherals behave correctly at the protocol layer. The data processing acceleration circuit constructs TLPs (Transaction Layer Packets) conforming to the PCIe protocol specification, including memory read request TLPs, memory write request TLPs, configuration space read request TLPs, and configuration space write request TLPs, and sends them to the PCIe peripherals. It also receives completion packets returned by the peripherals and checks whether the format, response timing, and error reporting mechanism of the TLP packets conform to the PCIe specification to determine whether the protocol layer of the PCIe peripherals is working properly.
[0105] Through the above tests, if a PCIe peripheral fails in any test, the data processing acceleration circuit can determine that the PCIe peripheral or the corresponding slot is faulty, and record the specific failed test item in the test results, so that maintenance personnel can quickly locate the faulty peripheral or faulty slot.
[0106] Through the aforementioned hardware testing procedures for memory modules and PCIe peripherals, this invention enables the data processing acceleration circuit to independently and efficiently diagnose critical hardware peripherals even when the server CPU and PCH are completely powered off. Since the diagnostic process is CPU-independent and does not require disassembly of peripherals, maintenance personnel can quickly distinguish between "peripheral device damage" and "motherboard slot / link failure" on-site. This effectively avoids the equipment wear and time wasted by traditional replacement methods, significantly improving the efficiency and accuracy of on-site hardware fault handling.
[0107] In one example, the server fault location method further includes: With the corresponding data pin of the data processing acceleration circuit set to a high impedance state, the control signal of the server's internal bus is monitored. The control signal is used to identify abnormal patterns through the neural network inference model. When an abnormal pattern is detected, a predictive alarm is sent to the BMC.
[0108] As is readily understood, this embodiment describes the specific implementation process of the fault prediction function under normal server operation from the perspective of the data processing acceleration circuit. As mentioned earlier, when the server is operating normally, the corresponding data pins of the data processing acceleration circuit are set to a high-impedance state by the BMC through logic control circuitry to ensure that normal business data transmission of the server is not affected. The data processing acceleration circuit listens to the control signals of the server's internal bus in this state to achieve abnormal pattern recognition and predictive alarms.
[0109] It should be noted that the operation of the data processing acceleration circuit under normal conditions is independent of its operation in the aforementioned fault location process. When the server is running normally, the data processing acceleration circuit performs monitoring and prediction functions; when a server fault triggers the fault location process, the data processing acceleration circuit switches to data reading and inference analysis mode. The two modes automatically switch according to the server's operating status and do not interfere with each other.
[0110] Specifically, the data processing acceleration circuit passively receives (i.e., listens to) the control signals transmitted on the server's internal bus in a high-impedance state. "Passive reception" means that the data processing acceleration circuit only acquires signals from the bus through its input pins, without injecting any drive signals or data into the bus. Because the pins of the data processing acceleration circuit are already in a high-impedance state, they present extremely high impedance to the bus, effectively isolating them electrically from the bus. Therefore, it will not affect the voltage level or timing characteristics of the original signals.
[0111] The server's internal buses may include, but are not limited to: a PCIe bus (carrying PCIe link status signals, transaction layer data packets, etc.), a memory control bus (carrying memory address / command signals and data signals), a power management bus (e.g., SMBus or PMBus, carrying power management status and voltage / current monitoring signals), and a system management bus (e.g., an I2C bus, carrying sensor data and system status information). The data processing acceleration circuit captures the control signals of the aforementioned buses in real time through the bus signal lines connected to its pins.
[0112] The data processing acceleration circuit continuously acquires the monitored control signals and performs real-time anomaly pattern recognition on the control signals using a neural network inference model deployed within it. This neural network inference model can be the same model used in the aforementioned fault location process, or it can be a separate model specifically trained for anomaly pattern recognition.
[0113] Taking the abnormal pattern recognition process of bus control signals as an example, the data processing acceleration circuit first samples and digitizes the raw bus signals it detects. For digital signals (such as command / address signals on the memory bus), the data processing acceleration circuit captures the signal level in a manner synchronized with the bus clock, forming a continuous signal sequence. For analog signals (such as voltage monitoring signals on the power management bus), the data processing acceleration circuit converts the analog voltage values into digital quantities through its internal integrated analog-to-digital converter or an external voltage monitoring circuit, forming a time series of voltage values.
[0114] Next, the data processing acceleration circuit inputs the acquired digital signal sequence or voltage time sequence into the neural network inference model for calculation. The neural network inference model is pre-trained and can identify abnormal patterns related to potential hardware faults from the continuously input signal stream.
[0115] The following examples of several typical anomaly patterns illustrate the recognition principle: When the data processing acceleration circuit detects frequent ECC (Error Correcting Code) events on the memory bus, the neural network inference model identifies this event pattern as a potential precursor to memory failure. ECC correction is the process by which the memory controller detects and corrects single-bit errors using ECC parity bits. During normal server operation, occasional single-bit ECC errors are acceptable. However, a significant increase in the frequency of ECC error correction events indicates that some memory cells in the memory module are degrading, leading to a gradual increase in the error rate. Without intervention, this degradation will continue to worsen, eventually potentially causing multi-bit uncorrectable errors and triggering system crashes. By analyzing the frequency distribution and time-series patterns of ECC error correction events, the neural network inference model can issue early warnings before multi-bit uncorrectable errors occur.
[0116] When the data processing acceleration circuit detects a high frequency of CRC (Cyclic Redundancy Check) errors or TLP retransmission events on the PCIe link, the neural network inference model identifies this event pattern as a potential precursor to PCIe link failure. CRC errors indicate bit errors during data transmission on the PCIe link, requiring retransmission at the link layer. An abnormally high frequency of retransmission events indicates a deterioration in the signal integrity of the PCIe link, possibly caused by connector oxidation, loose cables, or drift in link electrical parameters. By analyzing trends in CRC error rates and retransmission rates, the neural network inference model can provide early warnings before the link becomes completely unusable.
[0117] When the data processing acceleration circuit detects abnormal voltage fluctuations on the power management bus, the neural network inference model identifies this event pattern as a potential precursor to power supply module failure. The output voltage of each power supply module in the server (e.g., CPU core voltage Vcore, memory power supply VDDQ, etc.) should be stable within the specified range. When the voltage regulation capability of the power supply module decreases or the output filter capacitors age, the ripple of its output voltage will gradually increase or transient drops will occur. By analyzing the time-series characteristics of the voltage signal, such as the amplitude changes of the ripple, the frequency and depth of voltage drops, the neural network inference model can provide early warnings before the power supply module completely fails.
[0118] The identification of each of the above-mentioned abnormal patterns is based on the neural network inference model learning the bus signal variation patterns from a large number of historical fault cases. During the training phase, the model uses the bus control signal sequence in the period before the fault occurs as training samples to learn the evolution pattern from normal signal patterns to abnormal signal patterns. Therefore, the model can identify abnormal patterns that match known fault precursors from the currently monitored control signals before an actual fault occurs.
[0119] When the data processing acceleration circuit identifies an abnormal pattern in the control signal through a neural network inference model, it immediately issues a predictive alarm to the BMC. The predictive alarm includes at least: anomaly type information (indicating the type of detected abnormal pattern, such as "abnormally high memory ECC error frequency," "PCIe link CRC error rate exceeding a preset threshold," or "abnormal power supply voltage ripple," etc.), the time of the anomaly, the relevant hardware device identifier (e.g., slot number, device address, or bus number), and recommended maintenance operations (e.g., "recommend replacing the memory module in the specified slot," "recommend checking the PCIe link connection," or "recommend checking the power supply module").
[0120] After receiving a predictive alarm, the BMC can output the predictive alarm to the operations and maintenance personnel through an interactive interface (such as a web interface, email, or SNMP Trap), enabling the operations and maintenance personnel to take preventive maintenance measures before the server actually fails, thus avoiding unplanned downtime.
[0121] Through the above methods, the data processing acceleration circuit can continuously analyze hardware status trends during normal server operation, identify potential risks and issue early warnings before a fault actually occurs, realizing a shift from "passive response" to "proactive prevention." Furthermore, since the data processing acceleration circuit only passively receives control signals and does not participate in data transmission, and its pins are already in a high-impedance state, the aforementioned predictive function has no impact on the server's normal business performance and can operate stably for a long time.
[0122] like Figure 7 As shown, in the fifth embodiment, the server fault location method further includes: Monitor the heartbeat signal between the BMC and the BMC; When the duration of continuous loss of the heartbeat signal exceeds a preset threshold, the BMC is determined to be abnormal; The power reset operation of the BMC is performed through the logic control circuit. Capture the startup logs of the BMC and perform anomaly analysis; If the BMC still fails to work properly after a power reset, and the firmware recovery button is detected to be pressed continuously for more than a preset time, the power supply to the server's central processing unit (CPU) and platform controller center (PCH) is disabled through the logic control circuit, and the baseline version firmware of the BMC is obtained from the storage device. By switching the firmware flash memory connected to the BMC via the bus, the baseline version firmware is written into the firmware flash memory, and the BMC is triggered to power on again to load the baseline version firmware.
[0123] It should be explained that this embodiment provides a self-healing mechanism for the data processing acceleration circuit when the BMC malfunctions. During server operation, the BMC, as the core component for out-of-band management, may also experience software malfunctions (such as firmware crashes, task deadlocks, or memory overflows), causing the BMC to be unable to respond to external requests or perform management functions. When the BMC itself malfunctions, the aforementioned fault location and hardware diagnostic functions that rely on BMC scheduling cannot be executed normally. Therefore, this embodiment uses the data processing acceleration circuit to monitor the BMC in real time and automatically performs recovery operations when the BMC malfunctions.
[0124] The data processing acceleration circuit and the BMC maintain periodic communication via a communication bus (e.g., SPI bus or UART serial port). The data processing acceleration circuit sends a heartbeat query request to the BMC at a preset period (e.g., once per second) and waits for a response signal from the BMC. If the BMC is functioning normally, its firmware will respond to the heartbeat request from the data processing acceleration circuit according to a preset protocol, returning confirmation information. If the BMC malfunctions (e.g., task deadlock, interrupt response failure, or kernel crash), the BMC will fail to respond to the heartbeat request within a preset timeout period, and the data processing acceleration circuit will record the heartbeat as lost. The heartbeat signal can be implemented in various forms, such as a "request-response" heartbeat where the data processing acceleration circuit actively sends a query message and waits for a reply from the BMC, or a "notification" heartbeat where the BMC actively and periodically sends status notification messages, and the data processing acceleration circuit passively monitors the status. Both methods can achieve the purpose of monitoring the BMC's liveness.
[0125] The data processing acceleration circuit continuously tracks the duration of consecutively lost heartbeat signals. When the duration of consecutively lost heartbeat signals exceeds a preset threshold, the data processing acceleration circuit determines that the BMC is in an abnormal state. The preset threshold can be set according to the actual application scenario, for example, set to 5 minutes, to avoid false judgments caused by network jitter or brief periods of BMC overload. The data processing acceleration circuit determines BMC abnormality by the duration of consecutively lost heartbeats rather than the number of lost heartbeats. Its advantage is that it can effectively filter out short-term transient faults (such as a brief delay in BMC response due to high load) and persistent faults (such as a complete BMC task deadlock), reducing the false judgment rate.
[0126] After the data processing acceleration circuit determines that the BMC is malfunctioning, it first attempts to perform a soft recovery operation. Specifically, the data processing acceleration circuit sends a command to the logic control circuit via the communication bus, and the logic control circuit performs a power reset operation on the BMC. The power reset operation means that the logic control circuit sets the BMC's power supply enable register to a disabled state, waits for a short delay, and then sets it to an enabled state, thereby achieving a power-off restart of the BMC. The power reset operation enables the BMC to reload its firmware and execute the initialization process. Most BMC software malfunctions (such as task deadlock or resource exhaustion) can recover automatically after a power reset.
[0127] While performing a power reset, the data processing acceleration circuit captures the BMC's boot kernel logs via a pre-defined communication interface (e.g., a UART serial port). During the power-on boot process, the BMC's bootloader and operating system kernel output boot process log information via a debug serial port, including hardware initialization status, driver loading status, file system mount status, and startup results of critical services. The data processing acceleration circuit receives and buffers all boot log information output by the BMC in real time through the UART interface connected to the BMC's debug serial port. If the BMC recovers normally after a power reset, the data processing acceleration circuit can use the captured boot logs for subsequent analysis and archiving.
[0128] The data processing acceleration circuit cleans and enhances the captured startup logs. Cleaning includes removing redundant control characters, formatting timestamps, and filtering irrelevant debugging information. Enhancement involves reorganizing scattered log entries in chronological order and extracting key status information (e.g., whether firmware was successfully loaded, whether device initialization failed, etc.). The cleaned and enhanced startup logs are input into a neural network inference model deployed within the data processing acceleration circuit for inference analysis, generating fault inference results for BMC anomalies. These inference results may include the type of BMC anomaly (e.g., firmware verification failure, critical service startup failure, or memory allocation anomaly) and suggested remedial measures.
[0129] If the BMC still fails to function properly after a power reset (for example, the data processing acceleration circuit fails to receive a valid heartbeat response after the BMC restarts), the data processing acceleration circuit enters a hard recovery process. The data processing acceleration circuit detects the status of the firmware recovery button; when it detects that the firmware recovery button has been pressed continuously for more than a preset duration, it triggers a firmware flashback operation. The firmware recovery button is a physical button located on the server motherboard, used to forcibly trigger the firmware recovery process when the BMC firmware is severely damaged. Using a physical button and setting a continuous pressing duration as the trigger condition avoids accidental triggering during normal server operation or external interference, and provides on-site maintenance personnel with a forced recovery method when the BMC network is down or the management interface is unavailable.
[0130] After detecting a valid trigger signal, the data processing acceleration circuit first disables the power supply to the CPU and PCH via a logic control circuit to prevent the CPU and PCH from accessing the storage device or flash memory during firmware flashing, which could cause data conflicts or write failures. Then, the data processing acceleration circuit retrieves the baseline version firmware of the BMC from the storage device via a controllable data switch. This baseline version firmware is a BMC firmware backup file pre-stored in the storage device, typically a factory-version firmware image file, containing known, stable, and complete BMC firmware binary data.
[0131] The data processing acceleration circuit connects the BMC's firmware flash memory to itself via bus switching. During normal operation, the BMC's firmware flash memory is connected to the BMC via the SPI bus, allowing the BMC to read and execute the firmware. During firmware flashing, the data processing acceleration circuit drives a multiplexer (MUX) by controlling the chip select (CS) signal, switching the firmware flash memory's SPI bus from the BMC side to the data processing acceleration circuit side, thus granting the data processing acceleration circuit direct read / write access to the firmware flash memory.
[0132] After gaining access to the firmware flash memory, the data processing acceleration circuit writes the baseline firmware version previously obtained from the storage device into the firmware flash memory. Once the writing is complete, the data processing acceleration circuit releases control of the firmware flash memory and triggers the BMC to power-on and load the baseline firmware version via the logic control circuit. At this point, the BMC reads the newly written baseline firmware version from its firmware flash memory and executes the boot process, completing the firmware recovery.
[0133] It should be noted that the aforementioned hard recovery process (firmware re-flash) and the aforementioned soft recovery process (power reset) are two different levels of recovery mechanisms. Power reset attempts to restore the BMC's normal function by restarting it, and is suitable for situations where the BMC software is abnormal but the firmware itself is intact. Firmware re-flash is suitable for situations where the BMC firmware is damaged or contaminated, preventing booting, and completely restores the BMC by rewriting a complete baseline firmware. The two mechanisms are automatically executed sequentially by the data processing acceleration circuit based on the actual response of the BMC: first, a power reset is attempted; if this fails, a firmware re-flash is performed based on the physical button operation of the maintenance personnel, thus forming a complete BMC abnormal recovery chain.
[0134] Through the above implementation methods, when the BMC itself malfunctions, the present invention can automatically complete the BMC anomaly detection, power reset, and firmware re-flash operation via the data processing acceleration circuit without external intervention. The data processing acceleration circuit continuously monitors the BMC's operating status through heartbeat monitoring and forms a complete fault response chain through a two-tiered hardware and software recovery mechanism, effectively preventing server management function failures caused by BMC anomalies and improving the system's maintainability and self-healing capabilities. Simultaneously, by combining startup log capture with neural network inference model analysis, detailed inference results of BMC anomalies can be provided to maintenance personnel, facilitating subsequent analysis and prevention.
[0135] In one example, the step of capturing the BMC's startup logs and performing anomaly analysis includes: The boot kernel print logs of the BMC are captured through a preset communication interface; The startup logs are cleaned and enhanced. The neural network inference model deployed inside the data processing acceleration circuit is invoked to perform inference analysis on the cleaned and enhanced startup logs, and generate the fault inference result of the BMC anomaly. The fault reasoning results are saved to a storage device for external debugging interfaces to read.
[0136] It should be explained that this embodiment further refines the specific process of the data processing acceleration circuit capturing the BMC startup log and performing anomaly analysis. That is, during the aforementioned power reset operation, the data processing acceleration circuit captures the BMC startup log through a preset communication interface, analyzes it using a neural network inference model, and finally saves the analysis results for subsequent diagnostic use.
[0137] When the data processing acceleration circuit determines that the BMC is malfunctioning and performs a power reset operation on the BMC through the logic control circuit, the BMC will undergo a complete boot process, including power-off, power-back, bootloader loading, and operating system kernel initialization. Throughout the boot process, the BMC's bootloader and operating system kernel will output rich log information through a preset debugging interface. This information is an important data source for analyzing the root cause of BMC malfunctions.
[0138] Specifically, the data processing acceleration circuit captures the boot kernel print logs of the BMC through a preset communication interface. This preset communication interface is a dedicated channel for transmitting debugging information between the BMC and the data processing acceleration circuit; in this embodiment, it is specifically a Universal Asynchronous Receiver / Transmitter (UART) serial port. The UART serial port is a standard debugging interface commonly found in BMC chips; the BMC's bootloader and operating system kernel automatically output log information through this interface during the boot process. The data processing acceleration circuit receives all boot log information output by the BMC in real time through a UART serial port signal line physically connected to the BMC. The boot kernel print logs include: logs from the bootloader loading phase (e.g., firmware image loading address, checksum verification results, etc.), logs from the operating system kernel initialization phase (e.g., device driver loading status, file system mount results, critical service startup status, etc.), and logs from the system service startup phase. These logs are output in text format and contain detailed status information of the entire BMC boot process.
[0139] It should be noted that the data processing acceleration circuit continuously receives and buffers the startup log via the UART serial port throughout the entire power reset process of the BMC, starting from the last log segment output before the BMC power-off and continuing until the BMC restarts and outputs the complete startup log, to ensure that no critical log information is missed. The data processing acceleration circuit has a sufficiently large buffer area internally for temporarily storing the continuously output log data stream.
[0140] After the data processing acceleration circuit captures the boot kernel print logs from the BMC, it first performs cleaning and enhancement processing on the boot logs. This cleaning and enhancement process includes the following operations: removing redundant control characters (such as newline characters, carriage returns, escape sequences, and other non-informational characters) from the logs; sorting log entries according to output time and standardizing timestamps; and filtering out irrelevant debugging information (such as pure status polling outputs and periodic no-operation logs). The purpose of this cleaning and enhancement process is to transform the raw UART serial port output stream text into a well-structured and concise sequence of log entries, facilitating subsequent processing by the neural network inference model.
[0141] The cleaned and enhanced startup logs are input into a neural network inference model deployed within the data processing acceleration circuitry for inference analysis. This neural network inference model can share the same model instance as the inference model used in the aforementioned fault localization process, or it can be an independent model instance specifically trained based on the characteristics of the BMC startup logs. When sharing the same model instance, since the model has been trained on a large amount of server fault data (including BMC operation logs), it has the ability to analyze abnormal patterns in the BMC startup logs. When using an independent model instance, the model is specifically trained based on historical fault data from the BMC startup logs, enabling more accurate identification of abnormal types during the BMC startup process.
[0142] After the inference analysis is completed, the data processing acceleration circuit generates the fault inference result of the BMC anomaly. The fault inference result may include the following: the type of BMC anomaly (e.g., firmware verification failure, critical driver loading failure, file system corruption, memory allocation anomaly, or critical service startup timeout), the startup stage in which the anomaly occurred (e.g., bootloader stage, kernel initialization stage, or service startup stage), and the specific cause and location information of the anomaly (e.g., which specific driver failed to load, which file system failed to mount, or which service timed out).
[0143] The data processing acceleration circuit saves the generated fault inference results to a storage device for reading by an external debugging interface. Specifically, the data processing acceleration circuit writes the inference results to a designated storage area of the storage device via a data channel. The storage device can be the same storage device used for the aforementioned operating system fault data (e.g., a hard disk or solid-state drive), or it can be a separate non-volatile memory chip. The external debugging interface can be a JTAG (Joint Test Action Group) debugging interface. Through the external debugging interface, R&D personnel or senior maintenance personnel can connect to the debugging device to directly read the inference results saved in the storage device even in extreme situations where the BMC fails to boot completely and the network management interface is unavailable. This allows them to understand the detailed cause of the BMC anomaly and formulate a targeted repair plan accordingly.
[0144] Through the above implementation method, the data processing acceleration circuit not only completes the power reset operation of the BMC, but also provides traceable diagnostic evidence for BMC anomalies by capturing and analyzing the startup logs. Since the BMC itself is abnormal, its interactive interface is unavailable, and traditional log viewing methods are not feasible. This implementation method captures the BMC's startup logs from an external source through the data processing acceleration circuit, and the neural network inference model deployed on the data processing acceleration circuit performs automated analysis, saving the analysis results to an independent storage area. This effectively solves the dilemma of not being able to obtain diagnostic information when the BMC is abnormal. Even if the BMC firmware is completely damaged, developers can still read the inference results through an external debugging interface to quickly locate the root cause of the problem, significantly shortening the fault repair time in BMC anomaly scenarios.
[0145] This invention also proposes a server fault location system, comprising: Baseboard Management Controller (BMC); A logic control circuit, which is communicatively connected to the BMC, is used to perform power control and signal switching operations in response to instructions from the BMC. A data processing acceleration circuit is communicatively connected to the BMC and the logic control circuit, respectively, and is used to perform data processing and inference analysis in response to instructions from the BMC; A controllable data switch is connected between the data processing acceleration circuit and the storage device, and its on / off state is controlled by the logic control circuit in response to the instructions of the BMC; A high-speed data channel is connected between the data processing acceleration circuit and the hardware peripheral to be diagnosed, and its connection and disconnection are controlled by the logic control circuit in response to the instructions of the BMC. The BMC is used to disable the power supply of the server's central processing unit (CPU) and platform controller center (PCH) through the logic control circuit when a fault trigger signal is detected. After confirming that the power supply of the CPU and the PCH has been disabled, the BMC is used to turn on the controllable data switch through the logic control circuit to establish a data channel between the data processing acceleration circuit and the storage device. The BMC also sends a read command to the data processing acceleration circuit so that the data processing acceleration circuit can read the operating system fault data stored in the storage device through the data channel and generate a fault location conclusion based on the operating system fault data and the neural network inference model deployed therein. The BMC is also used to obtain the fault location conclusion and output it through the BMC's interactive interface.
[0146] It should be explained that the specific functional descriptions of the baseboard management controller, logic control circuit, data processing acceleration circuit, controllable data switch and high-speed data channel are as described in the above embodiments. Since this server fault location system adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought about by the technical solutions of the above embodiments, and will not be repeated here.
[0147] Under normal operating conditions, the BMC continuously monitors the server's operational status. When the BMC detects a fault trigger signal, it disables the power supply to the CPU and PCH via logic control circuitry. After confirming that the CPU and PCH power supply is disabled, it activates a controllable data switch via the logic control circuitry, establishing a data channel between the data processing acceleration circuitry and the storage device. Subsequently, the BMC sends a read command to the data processing acceleration circuitry, enabling it to read the operating system fault data stored in the storage device through the data channel. Based on this operating system fault data and the neural network inference model deployed within it, the BMC generates a fault location conclusion. After obtaining this fault location conclusion, the BMC outputs it to the maintenance personnel through its interactive interface.
[0148] Through the above system, the BMC serves as the overall scheduling core, the logic control circuit performs power isolation and channel switching, and the data processing acceleration circuit completes data reading and AI inference. The three work together to achieve automatic fault location of the server under the condition of CPU and PCH power failure.
[0149] The above description is merely an optional embodiment of the present invention and does not limit the patent scope of the present invention. All equivalent structural transformations made using the contents of the present invention's specification and drawings under the inventive concept of the present invention, or direct / indirect applications in other related technical fields, are included within the patent protection scope of the present invention.
Claims
1. A server fault location method, applied to a baseboard management controller (BMC) of a server, wherein the BMC is communicatively connected to both the server's logic control circuit and the server's data processing acceleration circuit, the data processing acceleration circuit is connected to a storage device via a controllable data switch, and the on / off state of the controllable data switch is controlled by the logic control circuit in response to instructions from the BMC, characterized in that... The server fault location method includes: In response to a fault trigger signal, the power supply to the server's central processing unit (CPU) and platform controller center (PCH) is disabled via the logic control circuit. After confirming that the power supply to the CPU and the PCH has been disabled, the controllable data switch is turned on through the logic control circuit to establish a data channel between the data processing acceleration circuit and the storage device. A read command is sent to the data processing acceleration circuit so that the data processing acceleration circuit reads the operating system fault data stored in the storage device through the data channel, and generates a fault location conclusion based on the operating system fault data and the neural network inference model deployed therein. The fault location conclusion is obtained and output through the interactive interface of the BMC.
2. The server fault location method as described in claim 1, characterized in that, The step of sending a read command to the data processing acceleration circuit includes: Communicate with the cloud server to obtain the neural network inference model stored in the cloud server; Compare the version of the neural network inference model deployed on the data processing acceleration circuit with the version of the neural network inference model in the cloud server; If the neural network inference model in the cloud server is updated, the updated neural network inference model will be sent to the data processing acceleration circuit for deployment.
3. The server fault location method as described in claim 1, characterized in that, The data processing acceleration circuit is connected to the hardware peripheral to be diagnosed via a high-speed data channel. The server fault location method also includes: In response to a first diagnostic command input through the BMC's interactive interface, the power supply to the CPU and the PCH is disabled via the logic control circuit, and the high-speed data channel is enabled via the logic control circuit. Send a hardware test command to the data processing acceleration circuit so that the data processing acceleration circuit can perform hardware-level testing on the hardware peripheral to be diagnosed through a hardware interface simulating a CPU. The test results are received from the data processing acceleration circuit and output through the interactive interface.
4. The server fault location method as described in claim 3, characterized in that, The hardware peripheral to be diagnosed is a memory module. The hardware test instructions are used to enable the data processing acceleration circuit to perform at least one of the following tests on each memory module through the memory controller interface simulating the CPU: in-situ detection, address line connectivity detection, read / write function detection, and data stability detection. Alternatively, the hardware peripheral to be diagnosed is a PCIe peripheral; the hardware test instructions are used to cause the data processing acceleration circuit to perform at least one of the following tests on each peripheral on each PCIe slot through the PCIe root complex interface simulating the CPU: in-situ detection, physical layer signal quality detection, link training state machine detection, and data link layer transaction layer protocol consistency detection.
5. The server fault location method as described in claim 3, characterized in that, The response to the fault trigger signal previously included: The controllable data switch and the high-speed data channel are both set to the off state by the logic control circuit, and the corresponding data pins of the data processing acceleration circuit are set to the high impedance state. The system receives control signals from the data processing acceleration circuit based on monitoring the server's internal bus, as well as predictive alarms issued when abnormal patterns are identified by the neural network inference model. The predictive alarm is output through the interactive interface of the BMC.
6. A server fault location method, applied to a server's data processing acceleration circuit, wherein the data processing acceleration circuit is communicatively connected to the server's baseboard management controller (BMC) and the server's logic control circuit, the data processing acceleration circuit is connected to a storage device via a controllable data switch, and the on / off state of the controllable data switch is controlled by the logic control circuit in response to instructions from the BMC, characterized in that... The server fault location method includes: In response to the read command from the BMC, the operating system fault data stored in the storage device is read through the data channel between the storage device and the storage device, and the operating system fault data is encapsulated into standardized fault feature data according to a preset data structure; The neural network inference model deployed inside the data processing acceleration circuit is invoked to perform inference analysis on the standardized fault feature data and generate fault location conclusions. The fault location conclusion is sent to the BMC.
7. The server fault location method as described in claim 6, characterized in that, The preset data structure includes at least the following five data levels: The basic metadata layer is used to record server device profiles and fault context information; The fault register data level is used to record the address, value, and bit field meaning of each register at the time of the fault. The memory dump data level is used to record memory data at the moment of failure in a structured manner according to memory address ranges; Operating system text log hierarchy, used to record system logs and application logs in chronological order; The boot log level is used to record the boot phase logs of the basic input / output system and the kernel.
8. The server fault location method as described in claim 6, characterized in that, The data processing acceleration circuit is connected to the memory module via a high-speed data channel; The server fault location method also includes: In response to the hardware test command of the BMC, hardware-level testing is performed on the hardware peripheral device to be diagnosed through a simulated CPU hardware interface. The test results are fed back to the BMC; The step of performing hardware-level testing on the peripheral device to be diagnosed through a simulated CPU hardware interface includes: By simulating the memory controller interface of the CPU, perform at least one of the following tests on each memory module: in-situ detection, address line connectivity detection, read / write function detection, and data stability detection; Alternatively, the hardware peripheral to be diagnosed is a PCIe peripheral, and the hardware-level testing of the hardware peripheral to be diagnosed through a hardware interface simulating a CPU includes: By simulating the CPU's PCIe root complex interface, perform at least one of the following tests on each peripheral on each PCIe slot: presence detection, physical layer signal quality detection, link training state machine detection, and data link layer transaction layer protocol consistency detection.
9. The server fault location method as described in claim 6, characterized in that, The server fault location method also includes: Monitor the heartbeat signal between the BMC and the BMC; When the duration of continuous loss of the heartbeat signal exceeds a preset threshold, the BMC is determined to be abnormal; The power reset operation of the BMC is performed through the logic control circuit. Capture the startup logs of the BMC and perform anomaly analysis; If the BMC still fails to work properly after a power reset, and the firmware recovery button is detected to be pressed continuously for more than a preset time, the power supply to the server's central processing unit (CPU) and platform controller center (PCH) is disabled through the logic control circuit, and the baseline version firmware of the BMC is obtained from the storage device. By switching the firmware flash memory connected to the BMC via the bus, the baseline version firmware is written into the firmware flash memory, and the BMC is triggered to power on again to load the baseline version firmware.
10. A server fault location system, characterized in that, include: Baseboard Management Controller (BMC); A logic control circuit, which is communicatively connected to the BMC, is used to perform power control and signal switching operations in response to instructions from the BMC. A data processing acceleration circuit is communicatively connected to the BMC and the logic control circuit, respectively, and is used to perform data processing and inference analysis in response to instructions from the BMC; A controllable data switch is connected between the data processing acceleration circuit and the storage device, and its on / off state is controlled by the logic control circuit in response to the instructions of the BMC; A high-speed data channel is connected between the data processing acceleration circuit and the hardware peripheral to be diagnosed, and its connection and disconnection are controlled by the logic control circuit in response to the instructions of the BMC. The BMC is used to disable the power supply of the server's central processing unit (CPU) and platform controller center (PCH) through the logic control circuit when a fault trigger signal is detected. After confirming that the power supply of the CPU and the PCH has been disabled, the BMC is used to turn on the controllable data switch through the logic control circuit to establish a data channel between the data processing acceleration circuit and the storage device. In addition, a read instruction is sent to the data processing acceleration circuit so that the data processing acceleration circuit reads the operating system fault data stored in the storage device through the data channel and generates a fault location conclusion based on the operating system fault data and the neural network inference model deployed therein. The BMC is also used to obtain the fault location conclusion and output it through the BMC's interactive interface.
