System irrecoverable fault processing method, device, electronic device and storage medium
BMC collects and analyzes processor register data in OpenPower architecture servers, obtains fault device location information and performs hot restart, which solves the problem of high processor workload in traditional methods and improves server stability and performance.
Patent Information
- Application Number
- CN202410831996.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-26
AI Technical Summary
When traditional OpenPower architecture servers deal with unrecoverable faults, the processor workload is high, which affects the processor's processing performance of user services.
Collect and analyze the processor's register data through the BMC to obtain the location information of the faulty device, and shield the faulty device during the system hot restart process to reduce processor resource usage and workload.
It greatly reduces the workload of the processor, ensures the processing performance requirements of the processor for user services, and improves the stability of the server system.
Smart Images

Figure CN118377656B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for handling system irrecoverable faults. Background Art
[0002] In traditional server architectures, such as OpenPower architecture servers, the implementation of RAS (Reliability, Availability, and Serviceability) functions (including fault diagnosis and memory alarm detection and other fault handling processes) is completed by the host-side BOIS and the on-chip controller (OCC) calling the processor (CPU) resources. That is, in traditional OpenPower architecture servers, the entire process of unrecoverable fault handling (fault collection, analysis, and generation of corresponding records) is completed by the host side. After an unrecoverable error occurs in the server system, the on-chip controller collects fault data, analyzes fault data, and generates result records, which requires a lot of processor resources, resulting in a high processor workload and affecting the processor's processing performance for real user services. Summary of the invention
[0003] The present invention provides a system irrecoverable fault processing method, device, electronic device and storage medium, which are used to solve the problem that in the system irrecoverable fault processing method of the prior art, the processor workload is high, which affects the processor's processing performance for real user services.
[0004] The present invention provides a method for processing a system irrecoverable fault, which is applied to a BMC and includes the following steps.
[0005] The register data of the processor is collected after a fault check signal is detected, wherein the fault check signal is sent by the on-chip controller to the BMC after detecting that a flag bit of a fault isolation register is set.
[0006] The register data is analyzed to obtain location information of the faulty device.
[0007] A system hot restart is triggered. During the system hot restart process, the positioning information is used to instruct the host BIOS to shield the corresponding faulty device according to the positioning information.
[0008] According to a system unrecoverable fault processing method provided by the present invention, the collecting of processor register data after a fault check signal is detected includes: after the fault check signal is detected, collecting register data of registers in the register configuration table according to a register configuration table stored in a BMC, wherein configuration information of the processor registers is configured in the register configuration table.
[0009] According to a method for processing a system unrecoverable fault provided by the present invention, register data of registers in a register configuration table are collected according to the register configuration table stored in the BMC, and the method includes the following steps.
[0010] The configuration information in the register configuration table is obtained, wherein the configuration information includes: an offset address of a register, an access mode, a CPU number, a data length, an output position, and a register name.
[0011] A framing format is determined according to the access mode.
[0012] A data frame for accessing a processor is generated according to the offset address, CPU number and data length of the register in the framing format, and the data frame is sent to the processor as write data of the processor. The data frame is used to instruct the processor to read a register value whose length is equal to the data length in the register corresponding to the offset address when confirming that the CPU number is the same as its own number, and return the register value to the BMC.
[0013] The register name and the register value are combined into the register data in the form of a key-value pair, and an intermediate file is generated according to the register data. The intermediate file is written into the storage path specified by the output location for storage.
[0014] A method for handling an unrecoverable fault of a system provided in accordance with the present invention also includes: during the hot restart of the system, if a fault check signal is detected again, the register data of the processor is collected again, the intermediate file is generated again, the intermediate file generated again is merged with the intermediate file generated last time, and for the registers for which data has been collected last time, the corresponding register values only retain the register values of the last time.
[0015] According to a method for handling a system unrecoverable fault provided by the present invention, after the system hot restart is completed, the method further includes: deleting the intermediate file generated for the first time or the merged intermediate file.
[0016] A method for handling a system unrecoverable fault provided by the present invention further includes: when the number of system hot restarts exceeds a preset number of restarts and the system startup cannot be completed, prompting that the system cannot be started.
[0017] According to a method for processing a system unrecoverable fault provided by the present invention, the register data is analyzed to obtain the location information of the faulty device, including the following steps.
[0018] A first target register value corresponding to the device state is obtained, wherein the register name in the register data is a first target register value corresponding to the device state.
[0019] When the first target register value represents a fault state, a second target register value corresponding to a device address whose register name is obtained, the second target register value is address information of the faulty device, and the address information is determined as positioning information.
[0020] According to a method for processing a system unrecoverable fault provided by the present invention, the register data is analyzed to obtain the location information of the faulty device, including the following steps.
[0021] A first target register value corresponding to the device state is obtained, wherein the register name in the register data is a first target register value corresponding to the device state.
[0022] In the case where the first target register value represents a fault state, a second target register value corresponding to a device address whose register name is obtained, where the second target register value is address information of the faulty device.
[0023] The type of the faulty device is determined according to the asset information stored in the BMC.
[0024] In the case where the type of the faulty device is a PCIe device type, the address information of the faulty device is converted into the device identifier of the faulty device according to the conversion relationship between the address information of the device and the device identifier recorded in the asset information, and the device identifier is determined to be the positioning information.
[0025] A method for handling a system unrecoverable fault provided by the present invention further includes the following steps before triggering a hot restart of the system.
[0026] A fault analysis table is generated according to the location information of the faulty device.
[0027] The fault analysis table is sent to a shared memory for storage, so that during a system hot restart, the host BIOS obtains the fault analysis table from the shared memory.
[0028] The present invention also provides a method for processing a system irrecoverable fault, which is applied to the BIOS on the host side and includes the following steps.
[0029] Monitor the status of the flag bits in the fault isolation register.
[0030] When the flag bit of the fault isolation register is set, the on-chip controller is triggered to send a fault check signal to the BMC, wherein the fault check signal is used to instruct the BMC to collect and analyze the register data of the processor to obtain the location information of the faulty device and trigger a hot restart of the system.
[0031] During the system hot restart process, the corresponding faulty device is shielded according to the positioning information.
[0032] The present invention also provides a method for processing a system unrecoverable fault, which triggers an on-chip controller to send a fault check signal to a BMC when a flag bit of a fault isolation register is set, and includes the following steps.
[0033] When the identification bit of the fault isolation register is set, the interrupt function corresponding to the system unrecoverable fault is triggered to execute.
[0034] When the interrupt function is executed, the on-chip controller is triggered to send the fault check signal to the BMC.
[0035] The present invention also provides a method for processing a system irrecoverable fault. During a system hot restart, corresponding faulty equipment is shielded according to positioning information, and the method includes the following steps.
[0036] During the hot restart of the system, a fault analysis table is obtained from the shared memory, where the fault analysis table is generated by the BMC according to the location information of the faulty device.
[0037] The positioning information is parsed from the fault analysis table, and the corresponding faulty device is shielded according to the positioning information.
[0038] The present invention also provides a system unrecoverable fault processing device, which is applied to BMC and includes the following modules.
[0039] The data collection module is used to collect the register data of the processor after detecting the fault check signal, wherein the fault check signal is sent to the BMC by the on-chip controller after detecting that the identification bit of the fault isolation register is set.
[0040] The data analysis module is used to analyze the register data to obtain the location information of the faulty device.
[0041] The restart trigger module is used to trigger a hot restart of the system. During the hot restart of the system, the positioning information is used to instruct the host BIOS to shield the corresponding faulty device according to the positioning information.
[0042] The present invention also provides a system unrecoverable fault processing device, which is applied to the BIOS on the host side and includes the following modules.
[0043] The fault detection module is used to monitor the status of the identification bit of the fault isolation register.
[0044] The fault check signal sending module is used to trigger the on-chip controller to send a fault check signal to the BMC when the identification bit of the fault isolation register is set. The fault check signal is used to instruct the BMC to collect and analyze the register data of the processor to obtain the location information of the faulty device and trigger a system hot restart.
[0045] The faulty device shielding module is used to shield the corresponding faulty device according to the positioning information during the system hot restart process.
[0046] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for handling a system irrecoverable fault applied to a BMC as described in any one of the above, or the method for handling a system irrecoverable fault applied to a BIOS on a host side as described in any one of the above.
[0047] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for handling a system irrecoverable fault applied to a BMC as described in any one of the above, or the method for handling a system irrecoverable fault applied to a BIOS on a host side as described in any one of the above, is implemented.
[0048] The method, device, electronic device and storage medium for handling system irrecoverable faults provided by the present invention collect the register data of the processor by the BMC after detecting the fault check signal, wherein the fault check signal is sent to the BMC by the on-chip controller after detecting that the identification bit of the fault isolation register is set; and the BMC analyzes the register data to obtain the location information of the faulty device; triggers a hot restart of the system, and during the hot restart of the system, the location information is used to instruct the host BIOS to shield the corresponding faulty device according to the location information. In the present invention, after detecting the irrecoverable fault of the system, the register data of the processor is collected and analyzed out-of-band by the BMC, and the data collection and analysis process does not occupy the processor resources, which greatly reduces the workload of the processor, ensures the processing performance requirements of the processor for real user services, and improves the stability of the server system. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0050] Figure 1 It is a schematic diagram of a system hardware structure adopted in the system irrecoverable fault processing method provided by the present invention.
[0051] Figure 2 This is one of the flow charts of the method for handling system irrecoverable faults provided by the present invention.
[0052] Figure 3This is the second flow chart of the method for handling system irrecoverable faults provided by the present invention.
[0053] Figure 4 This is the third flow chart of the method for handling system irrecoverable faults provided by the present invention.
[0054] Figure 5 This is the fourth flow chart of the method for handling system irrecoverable faults provided by the present invention.
[0055] Figure 6 This is the fifth flow chart of the method for handling system irrecoverable faults provided by the present invention.
[0056] Figure 7 The diagram is a schematic diagram of the interaction among the processor, BIOS and BMC in the method for handling system unrecoverable faults provided by the present invention.
[0057] Figure 8 It is one of the structural schematic diagrams of the system irrecoverable fault processing system provided by the present invention.
[0058] Fig. 9 This is the second structural diagram of the system irrecoverable fault processing system provided by the present invention.
[0059] Fig.10 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0061] like Figure 1As shown in the figure, it is a schematic diagram of the hardware structure of the openpower server. For the traditional RAS detection function, when the system hardware error checker detects an unrecoverable error in the system, the flag bit of the fault isolation register (FIR) is set. After the BOIS detects that the flag bit of the fault isolation register is set, it triggers the on-chip controller OCC to collect fault data and save it to the system's shared memory (flash), and sends a fault check signal (i.e., checkstop signal) to the baseboard management controller (Baseboard Management Controller, BMC). When the BMC detects the checkstop signal, it triggers a system hot restart. After the system hot restarts, the BIOS will read and analyze the fault data, generate RAS records, and isolate the abnormal components according to the RAS records, and then trigger a system hot restart. Since the abnormal component has been isolated, the abnormal component will not be started again after the system hot restart, and the system can run normally. Both the fault data collection of the on-chip controller and the fault data analysis of the BIOS require processor (CPU) resources, especially in the fault data collection stage, which will increase the CPU workload and affect the processing performance of normal real user services.
[0062] Based on the above technical problems, the system unrecoverable fault processing method of the embodiment of the present invention is as follows: Figure 1 and 2 As shown, the process includes the following steps S210 to S230.
[0063] Step S210: Collect the register data of the processor after detecting the fault check signal. The fault check signal is sent to the BMC by the on-chip controller after detecting that the flag bit of the fault isolation register is set. Specifically, during the operation of the server system, when the system hardware error checker detects an unrecoverable error of the system, the flag bit of the fault isolation register is set. After the BIOS detects that the flag bit of the fault isolation register is set, it triggers the on-chip controller OCC to send the fault check signal to the BMC. Figure 1 As shown in the figure, the on-chip controller OCC pulls up the checkstop pin connected to the BMC. When the BMC detects that the checkstop pin is pulled high, it considers that a fault check signal is detected and starts to collect the processor's register data. Because the processor's register records the status and address information of each device in the system, the status of each device can be obtained by collecting the processor's register data, so as to analyze whether it is a faulty device in the future.
[0064] Step S220: Analyze the register data to obtain the location information of the faulty device. Specifically, the BMC can analyze whether the device is faulty based on the status of each device in the system recorded in the register of the processor, and can directly use the address information as the location information to obtain the location information of the faulty device.
[0065] Step S230: triggering a system hot restart, during which the location information is used to instruct the host BIOS to shield the corresponding faulty device according to the location information. After collecting and analyzing the register data of the processor, the BMC triggers a system hot restart, so that during the system hot restart, the BIOS shields the corresponding faulty device according to the location information to ensure that the server system can start normally.
[0066] In the method for handling system irrecoverable faults of this embodiment, the BMC collects the register data of the processor, and analyzes the register data by the BMC to obtain the location information of the faulty device; triggering a hot restart of the system, so that during the hot restart of the system, the BIOS on the host side shields the corresponding faulty device according to the location information. That is, after detecting an irrecoverable system fault, the register data of the processor is collected and analyzed out-of-band by the BMC, and the data collection and analysis process of the RAS detection function will not occupy processor resources, which greatly reduces the workload of the processor, ensures the processing performance requirements of the processor for real user services, and improves the stability of the server system. In addition, the BMC collects and analyzes the register data out-of-band, which avoids the problem of failure to isolate the faulty component in the traditional solution, where the fault data cannot be fully collected due to the abnormality of the on-chip controller OCC itself.
[0067] It should be noted that the system unrecoverable fault handling method of this embodiment is not limited to the openpower server system, but can also be used in other server systems.
[0068] In some embodiments, step S210 specifically includes: after detecting the fault check signal, collecting register data of registers in the register configuration table according to the register configuration table stored in the BMC, wherein the register configuration table configures the configuration information of the registers of the processor. Figure 1As shown, since BMC is an out-of-band device, it needs to interact with the processor through I2C and Field Replaceable Unit Service Interface (FSI). In this embodiment, the register data of the processor can be obtained through I2C and the Field Replaceable Unit Service Interface. In addition, the register configuration table pre-stored in the BMC configures the configuration information of the processor's registers, so that the BMC purposefully collects and records the data of the registers of the device status and address in the system, rather than collecting the register data of all processors, thereby improving the efficiency of data collection.
[0069] In some embodiments, Figure 3 As shown, collecting register data of registers in the register configuration table according to the register configuration table stored in the BMC includes the following steps S310 to S340.
[0070] Step S310: Obtain configuration information in the register configuration table, the configuration information includes: the offset address of the register, the access mode, the CPU number, the data length, the output location and the register name. Among them, the offset address can uniquely locate a register, the access mode is the access mode of the register, and different registers have different access modes. The CPU number indicates which CPU the register belongs to, the data length is the length of the register value, and the output location is the storage location directory of the acquired register value. For example: the configuration information in the register configuration table is as follows.
[0071] "OutputPath":"Collection_data / cpu%d_bankinfo".
[0072] "rdmcinfo":"CpuBankInfo".
[0073] {"Params": ["Target", 1, "0x123",8], "Output": {"Size": 8,"Name": ["mc1_status", "MC1"]}}.
[0074] {"Params": ["Target", 1, "0x124",8], "Output": {"Size": 8,"Name": ["mc1_addr", "MC1"]}}.
[0075] {"Params": ["Target", 1, "0x125",8], "Output": {"Size": 8,"Name": ["mc1_misc", "MC1"]}}.
[0076] {"Params": ["Target", 2, "0x123",8], "Output": {"Size": 8,"Name": ["mc2_status", "MC2"]}}.
[0077] {"Params": ["Target", 2, "0x124",8], "Output": {"Size": 8,"Name": ["mc2_addr", "MC2"]}}.
[0078] {"Params": ["Target", 2, "0x125",8], "Output": {"Size": 8,"Name": ["mc2_misc", "MC2"]}}.
[0079] Among them, OutputPath indicates the output location, rdmcinfo indicates the access method, 1 indicates the CPU number, 0x123 indicates the offset address, 8 indicates the data length, mc1_status indicates the register name, MC1 indicates the variable of the register value, and CpuBankInfo indicates the bank information of the CPU.
[0080] Step S320: Determine the framing format according to the access method. Different registers have different access methods. For example, registers for accessing CPU basic information use the ping access method, and registers for accessing CPU bank information use the rdmcinfo access method. Different access methods have different framing formats.
[0081] Step S330: Generate a data frame for accessing the processor according to the offset address, CPU number and data length of the register in the framing format, and send the data frame as the processor's write data to the processor, the data frame is used to instruct the processor to read the register value of the length equal to the data length in the register corresponding to the offset address when confirming that the CPU number is the same as its own number, and return the register value to the BMC. Specifically, taking the registers related to the bank information of the CPU as an example, the data frame composed of the framing format corresponding to the rdmcinfo access method is: i2ctest w1@0x30 0x123 r8, which means that the data frame is written (w) to the CPU with CPU number 1 and address 0x30 through I2C, so that it reads the register with address offset 0x123, and reads (r) the register value with data length 8, the register value corresponds to the register name mc1_status, and mc1_status represents the device status. Similarly, the register value of the register name mc1_addr can also be obtained, and mc1_addr represents the device address information.
[0082] Step S340: The register name and register value are combined into the register data in the form of a key-value pair, and an intermediate file is generated according to the register data, and the intermediate file is written into the storage path specified by the output location for storage. For example, mc1_status and the corresponding register value, and mc1_addr and the corresponding register value are combined into register data.
[0083] In this embodiment, based on the register configuration table and through the above four steps, the BMC can efficiently collect the data collection process of the RAS detection function.
[0084] In some embodiments, the method for handling an unrecoverable fault of a system further includes: during the hot restart of the system, if a fault check signal is detected again, the register data of the processor is collected again, an intermediate file is generated again, the intermediate file generated again is merged with the intermediate file generated last time, and for the register whose data has been collected last time, the corresponding register value only retains the register value of the last time. During the hot restart of the system, if a fault check signal is detected again, it means that the shielding of the faulty device by the BIOS is unsuccessful, and it is also possible that some register data was not collected due to I2C transmission reasons in the first data collection. Therefore, during the hot restart of the system, if a fault check signal is detected again, the register data of the processor is collected again, and the intermediate file is generated again. For the register whose data has been collected last time, since the register data collected last time is close to the time when the unrecoverable fault occurred for the first time, the collected register data can better reflect the actual situation of the unrecoverable fault. Therefore, by comparing the intermediate files corresponding to the two data collections, for the register whose data has been collected last time, the corresponding register value only retains the register value of the last time, that is, the register value collected again is discarded.
[0085] In some embodiments, the method for handling an unrecoverable system fault further includes: after the system hot restart is completed, deleting the intermediate file generated for the first time or the intermediate file after merging. In this embodiment, the completion of the system hot restart indicates that the devices causing the unrecoverable system fault have been successfully shielded, and the intermediate file generated for the first time or the intermediate file after merging is deleted to avoid the occurrence of an unrecoverable fault again during the normal operation of the system. The intermediate file obtained by collecting register data conflicts with the previous intermediate file, and also saves the flash memory space of the system.
[0086] In some embodiments, the method for handling unrecoverable system faults also includes: when the number of system hot restarts exceeds a preset number of restarts and the system startup cannot be completed, a prompt is given that the system cannot be started, i.e., a prompt is given to maintenance personnel that the faulty equipment cannot be shielded and manual troubleshooting is required.
[0087] In some embodiments, the specific process of step S220 is as follows: Figure 4 As shown, the process includes the following steps S410 to S420.
[0088] Step S410: Obtain a first target register value corresponding to the device state whose register name in the register data is a first target register value, which represents the device state and can be identified to determine whether the device is faulty. For RAS faults, BIOS engineers sort out a set of RAS diagnostic rules based on the characteristics of RAS faults, for example: inferring CPU errors or memory errors through CPU bank status information in RAS.
[0089] Step S420: When the first target register value represents the fault state, obtain the second target register value corresponding to the device address whose register name is the fault device, the second target register value is the address information of the fault device, and determine the address information as the positioning information. For example, the register value corresponding to the register mc1_status represents the device state, and the register value corresponding to the mc1_addr corresponds to the address information of the device, so that the address information of the fault device can be obtained.
[0090] In this embodiment, the BMC can quickly obtain the address information of the faulty device by parsing the register value representing the device status and device address in the register data, and directly use the address information as positioning information, so that the BIOS can shield the corresponding faulty device according to the address information.
[0091] In some embodiments, the specific process of step S220 is as follows: Figure 5 As shown, the process includes the following steps S510 to S540.
[0092] Step S510: obtaining a first target register value corresponding to a device state whose register name in the register data is a first target register value.
[0093] Step S520: when the first target register value represents a fault state, obtain a second target register value corresponding to a device address whose register name is a device address, where the second target register value is address information of the faulty device.
[0094] Step S530: Determine the type of the faulty device according to the asset information stored in the BMC. Specifically, the asset information includes the address, type and identifier of all devices in the system, which will be automatically loaded into the BMC when the system is powered on.
[0095] Step S540: In the case where the type of the faulty device is a PCIe device type, the address information of the faulty device is converted into the device identifier of the faulty device according to the conversion relationship between the address information of the device and the device identifier recorded in the asset information, and the device identifier is determined to be the positioning information. Wherein, for PCIe devices, the device identifier is BDF (Bus, Device, Function), and the system usually locates and accesses PCIe devices through BDF. Therefore, if the faulty device is a PCIe device, the BMC converts the address information of the faulty device into the device identifier of the faulty device according to the conversion relationship between the address information of the device and the device identifier recorded in the asset information. The BIOS can directly shield the corresponding PCIe device through the device identifier to avoid converting the address information and the device identifier in the BIOS, and further reduce the processor resource usage.
[0096] In some embodiments, before triggering a hot restart of the system, it also includes: generating a fault analysis table according to the location information of the faulty device; sending the fault analysis table to a shared memory for storage, so that during the hot restart of the system, the host BIOS obtains the fault analysis table from the shared memory. The shared memory is a flash memory, and when the system restarts, it can also save data, so that the BIOS can also obtain the fault analysis table after the restart. Specifically, the fault analysis table can be generated according to the location information of the faulty device in a predetermined format, for example: the location information of each faulty device is separated by special symbols, and the BIOS also parses the fault analysis table in the predetermined format when parsing it, thereby obtaining the location information of each faulty device.
[0097] Furthermore, the specific steps of generating a fault analysis table according to the positioning information of the faulty device are as follows: all the faulty devices currently analyzed are taken as target faulty devices, for each target faulty device, the number of failures of the target faulty device in the historical fault analysis table is counted, and the number of failures is used as the priority of each target faulty device, and in the currently generated fault analysis table, the corresponding positioning information is arranged according to the priority of the target faulty device, that is, the positioning information of the target faulty device with a high priority is arranged first, and the positioning information of the target faulty device with a low priority is arranged at the back. When the BIOS reads the fault analysis table, the faulty device corresponding to the positioning information read first has a higher priority, and it is shielded first to avoid system downtime or other device failures caused by untimely shielding.
[0098] like Figure 6 As shown, the method for handling an unrecoverable system failure according to an embodiment of the present invention is applied to the BIOS on the host side and includes the following steps S610 to S630.
[0099] Step S610: Monitor the status of the flag bit of the fault isolation register. Specifically, during the operation of the server system, when the system hardware error checker detects an unrecoverable error of the system, the flag bit of the fault isolation register is set, and the BIOS monitors the status of the flag bit of the fault isolation register.
[0100] Step S620: When the flag bit of the fault isolation register is set, the on-chip controller is triggered to send a fault check signal to the BMC, wherein the fault check signal is used to instruct the BMC to collect and analyze the register data of the processor to obtain the location information of the faulty device and trigger a hot restart of the system.
[0101] Step S630: During the hot restart of the system, the corresponding faulty device is shielded according to the positioning information.
[0102] In the system unrecoverable fault processing method of the embodiment of the present invention, after the BIOS on the host side detects the system unrecoverable fault, it triggers the BMC to collect and analyze the register data of the processor out-of-band. The data collection and analysis process does not occupy processor resources, which greatly reduces the workload of the processor, ensures the processor's processing performance requirements for real user services, and improves the stability of the server system.
[0103] In some embodiments, step S620 specifically includes: when the identification bit of the fault isolation register is set, triggering the execution of the interrupt function corresponding to the unrecoverable fault of the system; when the interrupt function is executed, triggering the on-chip controller to send the fault check signal to the BMC. Specifically, during the BIOS startup process, the fault isolation register is configured as an interrupt source, and the interrupt processing function will be triggered when the fault isolation register state is abnormal. In the interrupt function, the function of triggering the on-chip controller to send the fault check signal to the BMC is implemented, ensuring that the fault check signal can be notified to the BMC when each unrecoverable fault is detected in real time, so that the BMC can execute the corresponding data collection and analysis process in time.
[0104] In some embodiments, step S630 specifically includes: during the hot restart of the system, the BIOS obtains a fault analysis table from a shared memory, the fault analysis table is generated by the BMC according to the location information of the faulty device; the BIOS parses the location information from the fault analysis table, and shields the corresponding faulty device according to the location information. Specifically, the fault analysis table can be parsed according to the format corresponding to the generation of the fault analysis table, for example: the location information of each faulty device is separated by special symbols, and when the BIOS parses the fault analysis table, it parses the location information of each faulty device by identifying the special symbols.
[0105] In a specific embodiment, Figure 7 As shown, during the normal operation of the server system, the BIOS detects that a fault has occurred, that is, after detecting that the identification bit of the fault isolation register is set, the on-chip controller OCC is triggered to send a fault check signal to the BMC. After receiving the fault check signal, the BMC performs a data collection operation to collect the CPU register data. After the data collection is completed, the BMC performs data analysis on the register data to obtain the location information of the faulty device, generates a fault analysis table based on the location information of the faulty device, and stores the fault analysis table in the shared memory of the system so that the BIOS can obtain it, and then trigger a hot restart of the system. During the hot restart of the system, the BIOS locates the faulty device according to the location information in the fault analysis table and shields the faulty device.
[0106] It can be seen from the above process that the functions of collecting and analyzing the CPU register data are performed by the out-of-band BMC, and the BIOS only calls the CPU resources when detecting the occurrence of a fault and finally shielding the faulty device. Moreover, shielding the faulty device is a process of hot restart. Therefore, the system unrecoverable fault handling method of this embodiment greatly reduces the workload of the processor, ensures the processor's processing performance requirements for real user services, and improves the stability of the server system.
[0107] The following is a description of a system unrecoverable fault processing device provided by the present invention. The system unrecoverable fault processing device described below and the system unrecoverable fault processing method described above can be referenced to each other.
[0108] The embodiment of the present invention also provides a system irrecoverable fault processing device, such as Figure 8 As shown, applied to BMC, the device includes the following modules.
[0109] The data collection module 810 is used to collect the register data of the processor after detecting a fault check signal, wherein the fault check signal is sent by the on-chip controller to the BMC after detecting that the flag bit of the fault isolation register is set.
[0110] The data analysis module 820 is used to analyze the register data to obtain location information of the faulty device.
[0111] The restart trigger module 830 is used to trigger a hot restart of the system. During the hot restart of the system, the positioning information is used to instruct the host BIOS to shield the corresponding faulty device according to the positioning information.
[0112] In the system unrecoverable fault processing device of the embodiment of the present invention, after detecting the system unrecoverable fault, the register data of the processor is collected and analyzed out-of-band through the BMC. The data collection and analysis process does not occupy processor resources, which greatly reduces the workload of the processor, ensures the processing performance requirements of the processor for real user services, and improves the stability of the server system.
[0113] Optionally, the data collection module 810 is specifically configured to collect register data of registers in a register configuration table according to a register configuration table stored in the BMC after detecting a fault check signal, wherein the register configuration table configures configuration information of registers of the processor.
[0114] Optionally, the data collection module 810 specifically includes the following modules.
[0115] The configuration information acquisition module is used to acquire the configuration information in the register configuration table, wherein the configuration information includes: the offset address, access mode, CPU number, data length, output position and register name of the register.
[0116] The framing format determining module is used to determine the framing format according to the access mode.
[0117] A data frame generation module is used to generate a data frame for accessing the processor according to the offset address, CPU number and data length of the register in the framing format, and send the data frame to the processor as the write data of the processor. The data frame is used to instruct the processor to read the register value whose length is equal to the data length in the register corresponding to the offset address when confirming that the CPU number is the same as its own number, and return the register value to the BMC.
[0118] The intermediate file generation module is used to combine the register name and register value into the register data in the form of a key-value pair, generate an intermediate file according to the register data, and write the intermediate file into the storage path specified by the output location for storage.
[0119] Optionally, the system unrecoverable fault handling device also includes: an intermediate file merging module, which is used to collect the register data of the processor again, generate the intermediate file again, and merge the regenerated intermediate file with the previously generated intermediate file if the fault check signal is detected again during the hot restart of the system. For the registers for which data has been collected last time, the corresponding register values only retain the previous register values.
[0120] Optionally, the system unrecoverable fault processing device further includes: an intermediate file deletion module, which is used to delete the intermediate file generated for the first time or the merged intermediate file after the system hot restart is completed.
[0121] Optionally, the system unrecoverable fault processing device further includes: a restart number limiting module, which is used to prompt that the system cannot be started when the number of system hot restarts exceeds a preset restart number and the system startup cannot be completed.
[0122] Optionally, the data analysis module 820 includes the following modules.
[0123] The first target register value acquisition module is used to acquire a first target register value corresponding to a device state whose register name in the register data is a device state.
[0124] The second target register value acquisition module is used to acquire a second target register value corresponding to a device address whose register name is when the first target register value represents a fault state, wherein the second target register value is address information of the faulty device, and the address information is determined as positioning information.
[0125] Optionally, the data analysis module 820 includes the following modules.
[0126] The first target register value acquisition module is used to acquire a first target register value corresponding to a device state whose register name in the register data is a device state.
[0127] The second target register value acquisition module is used to acquire a second target register value corresponding to a device address whose register name is when the first target register value indicates a fault state, wherein the second target register value is address information of the faulty device.
[0128] The device type determination module is used to determine the type of the faulty device according to the asset information stored in the BMC.
[0129] A device identifier conversion module is used to convert the address information of the faulty device into the device identifier of the faulty device according to the conversion relationship between the address information of the device and the device identifier recorded in the asset information when the type of the faulty device is a PCIe device type, and determine that the device identifier is the positioning information.
[0130] Optionally, the system unrecoverable fault processing device also includes the following modules.
[0131] The fault analysis table generating module is used to generate a fault analysis table according to the location information of the faulty device before triggering a hot restart of the system.
[0132] The fault analysis table storage module is used to send the fault analysis table to the shared memory for storage, so that during the system hot restart process, the host BIOS obtains the fault analysis table from the shared memory.
[0133] The embodiment of the present invention also provides a system irrecoverable fault processing device, such as Fig. 9 As shown, the device is applied to the BIOS on the host side and includes the following modules.
[0134] The fault detection module 910 is used to monitor the status of the identification bit of the fault isolation register.
[0135] The fault check signal sending module 920 is used to trigger the on-chip controller to send a fault check signal to the BMC when the identification bit of the fault isolation register is set. The fault check signal is used to instruct the BMC to collect and analyze the register data of the processor to obtain the location information of the faulty device and trigger a system hot restart.
[0136] The faulty device shielding module 930 is used to shield the corresponding faulty device according to the positioning information during the system hot restart process.
[0137] In the system unrecoverable fault processing device of the embodiment of the present invention, after the BIOS on the host side detects the system unrecoverable fault, it triggers the BMC to collect and analyze the register data of the processor out-of-band. The data collection and analysis process does not occupy processor resources, which greatly reduces the workload of the processor, ensures the processor's processing performance requirements for real user services, and improves the stability of the server system.
[0138] Optionally, the fault check signal sending module 920 is specifically used to trigger the execution of an interrupt function corresponding to the system unrecoverable fault when the identification bit of the fault isolation register is set; when the interrupt function is executed, trigger the on-chip controller to send the fault check signal to the BMC.
[0139] Optionally, the faulty device shielding module 930 is specifically used to obtain a fault analysis table from a shared memory during a hot restart of the system, where the fault analysis table is generated by the BMC based on the location information of the faulty device; parse the location information from the fault analysis table, and shield the corresponding faulty device based on the location information.
[0140] Fig.10 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.10 As shown, the electronic device may include: a processor 1010, a communication interface 1020, a memory 1030 and a communication bus 1040, wherein the processor 1010, the communication interface 1020 and the memory 1030 communicate with each other through the communication bus 1040. The processor 1010 may call the logic instructions in the memory 1030 to execute a system unrecoverable fault processing method for the BMC, the method comprising: collecting register data of the processor after detecting a fault check signal, the fault check signal being sent to the BMC by the on-chip controller after detecting that the identification bit of the fault isolation register is set; analyzing the register data to obtain the location information of the faulty device; triggering a system hot restart, during which the location information is used to instruct the host BIOS to shield the corresponding faulty device according to the location information.
[0141] Alternatively, a system unrecoverable fault handling method for a host-side BIOS is executed, the method comprising: monitoring the state of an identification bit of a fault isolation register; when the identification bit of the fault isolation register is set, triggering an on-chip controller to send a fault check signal to the BMC, wherein the fault check signal is used to instruct the BMC to collect and analyze register data of the processor to obtain location information of the faulty device and trigger a hot restart of the system; during the hot restart of the system, shielding the corresponding faulty device according to the location information.
[0142] In addition, the logic instructions in the above-mentioned memory 1030 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0143] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the system irrecoverable fault handling method for BMC provided by the above methods. The method includes: collecting register data of the processor after detecting a fault check signal, and the fault check signal is sent to the BMC by the on-chip controller after detecting that the identification bit of the fault isolation register is set; analyzing the register data to obtain the location information of the faulty device; triggering a system hot restart, and during the system hot restart process, the location information is used to instruct the host BIOS to shield the corresponding faulty device according to the location information.
[0144] Alternatively, a system unrecoverable fault handling method for a host-side BIOS is executed, the method comprising: monitoring the state of an identification bit of a fault isolation register; when the identification bit of the fault isolation register is set, triggering an on-chip controller to send a fault check signal to the BMC, wherein the fault check signal is used to instruct the BMC to collect and analyze register data of the processor to obtain location information of the faulty device and trigger a hot restart of the system; during the hot restart of the system, shielding the corresponding faulty device according to the location information.
[0145] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the system irrecoverable fault handling method for BMC provided by the above methods. The method includes: collecting register data of the processor after detecting a fault check signal, wherein the fault check signal is sent to the BMC by the on-chip controller after detecting that the identification bit of the fault isolation register is set; analyzing the register data to obtain the location information of the faulty device; triggering a system hot restart, during which the location information is used to instruct the host BIOS to shield the corresponding faulty device according to the location information.
[0146] Alternatively, a system unrecoverable fault handling method for a host-side BIOS is executed, the method comprising: monitoring the state of an identification bit of a fault isolation register; when the identification bit of the fault isolation register is set, triggering an on-chip controller to send a fault check signal to the BMC, wherein the fault check signal is used to instruct the BMC to collect and analyze register data of the processor to obtain location information of the faulty device and trigger a hot restart of the system; during the hot restart of the system, shielding the corresponding faulty device according to the location information.
[0147] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0148] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0149] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for handling system irrecoverable faults, characterized in that: Applied to BMC, including: Collecting register data of the processor after detecting a fault check signal, wherein the fault check signal is sent by the on-chip controller to the BMC after detecting that the identification bit of the fault isolation register is set; wherein the on-chip controller pulls up a checkstop pin connected to the BMC, and the BMC considers that the fault check signal is detected after detecting that the checkstop pin is pulled high; the BMC obtains the register data of the processor through the I2C and replaceable unit interface; Analyzing the register data to obtain location information of the faulty device; A system hot restart is triggered. During the system hot restart process, the positioning information is used to instruct the host BIOS to shield the corresponding faulty device according to the positioning information.
2. The method for handling system irrecoverable faults according to claim 1, characterized in that: The collecting of the processor register data after the fault check signal is detected comprises: After the fault check signal is detected, register data of registers in the register configuration table are collected according to the register configuration table stored in the BMC, wherein configuration information of registers of the processor is configured in the register configuration table.
3. The method for handling system irrecoverable faults according to claim 2, characterized in that: Collecting register data of registers in the register configuration table according to the register configuration table stored in the BMC includes: Acquire configuration information in the register configuration table, the configuration information including: register offset address, access mode, CPU number, data length, output location and register name; Determining a framing format according to the access mode; Generate a data frame for accessing a processor according to the offset address, CPU number and data length of the register in the framing format, and send the data frame to the processor as the write data of the processor, wherein the data frame is used to instruct the processor to read a register value having a length equal to the data length in the register corresponding to the offset address when confirming that the CPU number is the same as its own number, and return the register value to the BMC; The register name and the register value are combined into the register data in the form of a key-value pair, and an intermediate file is generated according to the register data. The intermediate file is written into the storage path specified by the output location for storage.
4. The method for handling system irrecoverable faults according to claim 3, characterized in that: Also includes: During the hot restart of the system, if the fault check signal is detected again, the register data of the processor is collected again, the intermediate file is generated again, and the regenerated intermediate file is merged with the intermediate file generated last time. For the registers for which data has been collected last time, the corresponding register values only retain the last register values.
5. The method for handling system irrecoverable faults according to claim 4, characterized in that: After the system hot restart is completed, the process also includes: deleting the intermediate files generated for the first time or the intermediate files after merging.
6. The method for handling system irrecoverable faults according to claim 4, characterized in that: Also includes: If the number of system hot restarts exceeds the preset number of restarts and the system startup cannot be completed, a prompt will be displayed that the system cannot be started.
7. The method for handling system irrecoverable faults according to claim 1, characterized in that: Analyzing the register data to obtain location information of the faulty device includes: Obtain a first target register value corresponding to the device state as a register name in the register data; When the first target register value represents a fault state, a second target register value corresponding to a device address whose register name is obtained, the second target register value is address information of the faulty device, and the address information is determined as positioning information.
8. The method for handling system irrecoverable faults according to claim 1, characterized in that: Analyzing the register data to obtain location information of the faulty device includes: Obtain a first target register value corresponding to the device state as a register name in the register data; In the case where the first target register value represents a fault state, obtaining a second target register value corresponding to a device address whose register name is a device address, wherein the second target register value is address information of the faulty device; Determine the type of the faulty device according to the asset information stored in the BMC; In the case where the type of the faulty device is a PCIe device type, the address information of the faulty device is converted into the device identifier of the faulty device according to the conversion relationship between the address information of the device and the device identifier recorded in the asset information, and the device identifier is determined to be the positioning information.
9. The method for handling system irrecoverable faults according to any one of claims 1 to 8, characterized in that: Before triggering a hot restart of the system, it also includes: Generate a fault analysis table according to the location information of the faulty device; The fault analysis table is sent to a shared memory for storage, so that during a system hot restart, the host BIOS obtains the fault analysis table from the shared memory.
10. A method for handling system irrecoverable faults, characterized in that: BIOS applied to the host side, including: Monitor the status of the identification bit of the fault isolation register; When the identification bit of the fault isolation register is set, the on-chip controller is triggered to send a fault check signal to the BMC, wherein the fault check signal is used to instruct the BMC to collect and analyze the register data of the processor to obtain the location information of the faulty device and trigger a hot restart of the system; wherein the on-chip controller pulls up the checkstop pin connected to the BMC, and after the BMC detects that the checkstop pin is pulled high, it considers that a fault check signal is detected; the BMC obtains the register data of the processor through the I2C and replaceable unit interface; During the system hot restart process, the corresponding faulty device is shielded according to the positioning information.
11. The method for handling system irrecoverable faults according to claim 10, characterized in that: When the flag bit of the fault isolation register is set, the on-chip controller is triggered to send a fault check signal to the BMC, including: When the identification bit of the fault isolation register is set, triggering execution of an interrupt function corresponding to the system irrecoverable fault; When the interrupt function is executed, the on-chip controller is triggered to send the fault check signal to the BMC.
12. The method for handling system irrecoverable faults according to claim 10 or 11, characterized in that: During the hot restart of the system, the corresponding faulty devices are shielded according to the location information, including: During the hot restart of the system, a fault analysis table is obtained from the shared memory, where the fault analysis table is generated by the BMC according to the location information of the faulty device; The positioning information is parsed from the fault analysis table, and the corresponding faulty device is shielded according to the positioning information.
13. A system irreversible fault processing device, characterized in that: Applied to BMC, including: A data collection module is used to collect register data of the processor after detecting a fault check signal, wherein the fault check signal is sent to the BMC by the on-chip controller after detecting that the identification bit of the fault isolation register is set; wherein the on-chip controller pulls up a checkstop pin connected to the BMC, and the BMC considers that the fault check signal is detected after detecting that the checkstop pin is pulled high; the BMC obtains the register data of the processor through the I2C and replaceable unit interface; A data analysis module, used for analyzing the register data to obtain location information of the faulty device; The restart trigger module is used to trigger a hot restart of the system. During the hot restart of the system, the positioning information is used to instruct the host BIOS to shield the corresponding faulty device according to the positioning information.
14. A system irreversible fault processing device, characterized in that: BIOS applied to the host side, including: A fault detection module, used to monitor the status of the identification bit of the fault isolation register; A fault check signal sending module is used to trigger the on-chip controller to send a fault check signal to the BMC when the identification bit of the fault isolation register is set, wherein the fault check signal is used to instruct the BMC to collect and analyze the register data of the processor to obtain the location information of the faulty device and trigger a hot restart of the system; wherein the on-chip controller pulls up the checkstop pin connected to the BMC, and after the BMC detects that the checkstop pin is pulled high, it considers that a fault check signal is detected; the BMC obtains the register data of the processor through the I2C and replaceable unit interface; The faulty device shielding module is used to shield the corresponding faulty device according to the positioning information during the system hot restart process.
15. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method for handling a system irrecoverable fault as claimed in any one of claims 1 to 9 is implemented, or the method for handling a system irrecoverable fault as claimed in any one of claims 10 to 12 is implemented.
16. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for handling a system irrecoverable fault as claimed in any one of claims 1 to 9 is implemented, or the method for handling a system irrecoverable fault as claimed in any one of claims 10 to 12 is implemented.
