Method and device for updating RAS configuration information, storage medium and program product
Through the coordinated work of the central processor and the substrate management controller, the interrupt signal mechanism is used to update the RAS configuration information without restarting the system, which solves the problem that the system needs to be restarted in the existing technology and realizes business processing Real-time and continuity.
Patent Information
- Application Number
- CN202411669510.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2044-11-21
AI Technical Summary
In the prior art, when updating the RAS configuration information of the server, it is necessary to restart the basic input and output system, resulting in business interruption and affecting real-time and continuity.
Through the coordinated work of the central processor and the substrate management controller, the interrupt signal mechanism is used to write updated configuration information to the target storage area, and new RAS configuration information is applied without restarting the system, including reading and updating level one and the identification information and update configuration information of secondary configuration items to ensure real-time and continuity of business processing.
New RAS configuration information can be applied without restarting the system, ensuring real-time and continuity of business processing, avoiding the overhead of system interruptions and data replication and movement, and improving the efficiency and accuracy of configuration updates.
Smart Images

Figure CN119179524A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of firmware technology, and in particular to a method, device, storage medium and program product for updating RAS configuration information. Background Art
[0002] In current servers, the reliability, availability and serviceability (RAS) configuration information is a component of the Basic Input Output System (BIOS). The RAS configuration information can reduce the risk of service interruption caused by server failure. Generally, users can update the RAS configuration information according to their needs.
[0003] In the current strategy of updating RAS configuration information, the RAS configuration information can be updated by updating the BIOS system out of band. Under such an update strategy, the BIOS system needs to be restarted to use the latest RAS configuration. The restart process will cause interruption of server services, affecting the real-time and continuity of business processing. Summary of the invention
[0004] In view of this, the present invention provides a method, apparatus, computer device, storage medium and program product for updating RAS configuration information to solve the problem that the basic input and output system needs to be restarted to apply the updated RAS configuration information.
[0005] In a first aspect, the present invention provides a method for updating RAS configuration information, the method being executed by a central processing unit, the method comprising: Receiving a RAS configuration information update request sent by a baseboard management controller; When the RAS configuration information update request is a first interrupt signal sent by the baseboard management controller, reading identification information and update configuration information respectively corresponding to at least one primary configuration item written by the baseboard management controller from a target storage area, wherein the primary configuration item is a configuration item that is not read or written through a target interface; Determining whether each of the first-level configuration items is an updated configuration item according to the identification information and the updated configuration information corresponding to each of the first-level configuration items; When at least one update configuration item is determined, determining a target object corresponding to each update configuration item according to identification information and update configuration information corresponding to each update configuration item; According to the update configuration information corresponding to each of the update configuration items, an update operation is performed on the data corresponding to the target object to complete the RAS configuration information update operation corresponding to the primary configuration item.
[0006] A method for updating RAS configuration information provided by the present invention has the following advantages: In the related art, since RAS configuration information belongs to the composition of the basic input and output system, and RAS configuration information will be loaded and applied during the system startup phase, it is usually necessary to restart the system after updating the RAS configuration information to make the new settings effective. In this solution, for the first-level configuration items, the baseboard management controller first writes the identification information and the updated configuration information into the central processing unit and the shared target storage area, and then notifies the central processing unit to read and apply these updates through the first interrupt signal. In this way, the new RAS configuration information can be applied without restarting the system, which can ensure the real-time and continuity of business processing.
[0007] In an optional implementation, the update configuration information corresponding to the primary configuration item includes tag information, where the tag information is used to indicate a type of the primary configuration item, where the type includes a soft option type or a hard option type; When at least one update configuration item is determined, determining a target object corresponding to each update configuration item according to identification information and update configuration information corresponding to each update configuration item includes: When it is determined that the type of the target update configuration item is the soft option type according to the marking information included in the target update configuration information corresponding to the target update configuration item, a target pointer corresponding to the target update configuration item is determined according to the identification information of the target update configuration item, wherein the target update configuration item is any one of the at least one update configuration item, and the target pointer is the target object corresponding to the target update configuration item.
[0008] Specifically, for the soft option type, by determining the pointer corresponding to the configuration item, when the configuration information is subsequently updated, only the value of the pointer can be modified instead of modifying the data itself, thereby avoiding copying and moving of a large amount of data.
[0009] In an optional implementation, when the type of the primary configuration item is the hard option type, the update configuration information corresponding to the primary configuration item also includes register address information, and the method further includes: When it is determined that the type of the target update configuration item is the hard option type according to the mark information included in the target update configuration information, the target register corresponding to the target update configuration item is determined according to the register address information included in the target update configuration information, wherein the target register is the target object corresponding to the target update configuration item.
[0010] Specifically, by providing specific register address information and update configuration values, the central processing unit can accurately locate the register that needs to be updated and modify it accurately.
[0011] In an optional implementation, the updating operation on the data corresponding to the target object according to the update configuration information corresponding to each of the update configuration items to complete the RAS configuration information update operation corresponding to the primary configuration item includes: Obtaining storage address information of the target update configuration information in the target storage area; The data corresponding to the target pointer is modified to the storage address information.
[0012] Specifically, for the soft option type, the storage address information is updated by modifying the value of the pointer instead of modifying the data itself, thereby avoiding the copying and moving of a large amount of data.
[0013] In an optional implementation, the update configuration information corresponding to the primary configuration item also includes an update configuration value, and the updating operation on the data corresponding to the target object according to the update configuration information corresponding to each of the update configuration items to complete the RAS configuration information update operation corresponding to the primary configuration item includes: The data in the target register is modified to the update configuration value included in the target update configuration information.
[0014] Specifically, for hard option types, configuration updates can be completed quickly by directly accessing and updating registers, reducing system overhead.
[0015] In an optional implementation, when the RAS configuration information update request includes update configuration information corresponding to at least one secondary configuration item, the method further includes: Determine a register corresponding to each of the secondary configuration items according to register address information included in the update configuration information of each of the secondary configuration items, wherein the secondary configuration item is a configuration item that is read and written through the target interface information; The original configuration value in the register corresponding to the target secondary configuration item is modified to the updated configuration value included in the updated configuration information corresponding to the target secondary configuration item, wherein the target secondary configuration item is any one of the at least one secondary configuration item.
[0016] Specifically, for secondary configuration items, the updated configuration information is directly sent to the central processor, which receives the updated configuration information and applies it immediately. In addition, by providing specific register address information and updated configuration values, the central processor can accurately locate the register that needs to be updated and modify it accurately.
[0017] In an optional implementation, the first pin of the baseboard management controller is electrically connected to the second pin of the central processing unit, and the central processing unit includes an operating system and a basic input and output system; When the RAS configuration information update request is a first interrupt signal sent by the baseboard management controller, reading identification information and update configuration information respectively corresponding to at least one primary configuration item written by the baseboard management controller from a target storage area includes: When the first interrupt signal is detected by the operating system, obtaining the number of the second pin and the state of the level signal of the second pin; Generate a second interrupt signal according to the number of the second pin and the state of the level signal; When the second interrupt signal is detected, a preset resident function of the basic input and output system is called to use the preset resident function to read identification information and update configuration information respectively corresponding to at least one of the first-level configuration items from the target storage area.
[0018] Specifically, the need for configuration update can be detected in real time through the first interrupt signal (sent by the baseboard management controller) and the second interrupt signal (generated by the operating system). This real-time response mechanism ensures the timeliness of configuration update and avoids system instability or performance degradation caused by delay. In addition, by obtaining the number of the second pin and the state of the level signal, the source and type of the interrupt signal can be accurately identified. This helps to avoid misjudgment and ensure that configuration update operations are performed only when they are really needed.
[0019] In an optional implementation manner, generating a second interrupt signal according to the number and state of the second pin includes: Determine a target event according to the number of the second pin and the state of the level signal, wherein the target event is used to instruct the central processing unit to perform a RAS configuration information update operation corresponding to the primary configuration item; According to the target event, the second interrupt signal corresponding to the target event is generated.
[0020] Specifically, the specific interrupt event can be accurately identified through the number of the second pin and the state of the level signal, which ensures that the source and type of the interrupt signal are accurately identified and avoids misjudgment and erroneous processing.
[0021] In an optional implementation manner, generating a second interrupt signal according to the number and state of the second pin includes: Generate an interrupt request according to the number of the second pin and the state of the level signal through the operating system, and transmit the interrupt request to the basic input and output system to jump to the processing logic of the basic input and output system; Determine a target system control interrupt SCI vector that matches both the number and the state of the second pin in a pre-built event information table using the basic input and output system, and generate a third interrupt signal according to the target system control interrupt SCI vector; When the third interrupt signal is detected by the basic input and output system, jumping to the processing logic of the operating system; Using the operating system, a target processing program corresponding to the third interrupt signal is executed to trigger generation of the second interrupt signal.
[0022] Specifically, through the layered processing mechanism, the operating system and the basic input and output system each perform their respective duties, that is, the operating system is responsible for generating interrupt requests and the final second interrupt signal, while the basic input and output system is responsible for determining the target SCI vector and generating the third interrupt signal, which can ensure the stable operation of the central processing unit.
[0023] In an optional implementation, the updated configuration information corresponding to the primary configuration item includes an updated configuration value; The determining, based on the identification information and the update configuration information corresponding to each of the first-level configuration items, whether each of the first-level configuration items is an update configuration item includes: According to the identification information corresponding to each of the first-level configuration items, acquiring the original configuration value corresponding to each of the first-level configuration items from the target storage area; Determining whether an updated configuration value corresponding to a target first-level configuration item is consistent with an original configuration value, wherein the target first-level configuration item is any one of the at least one first-level configuration item; When it is determined that the updated configuration value corresponding to the target first-level configuration item is inconsistent with the original configuration value, determining that the target first-level configuration item is the updated configuration item; or, When it is determined that the updated configuration value corresponding to the target first-level configuration item is consistent with the original configuration value, it is determined that the target first-level configuration item is not the updated configuration item.
[0024] Specifically, by comparing the updated configuration value with the original configuration value, it is possible to accurately determine which configuration items need to be updated. Only the configuration items that need to be updated are updated, reducing redundant operations. This not only saves system resources, but also speeds up the configuration update.
[0025] In a second aspect, the present invention provides a method for updating RAS configuration information, the method being executed by a baseboard management controller, the method comprising: Receive a target configuration file sent by a client, wherein the target configuration file includes identification information and update configuration information respectively corresponding to at least one configuration item; Determining whether each of the configuration items is a secondary configuration item that is read and written through a target interface according to identification information corresponding to each of the configuration items and a preset whitelist; When it is determined that there is at least one first-level configuration item that is not read or written through the target interface, storing identification information and update configuration information corresponding to each of the first-level configuration items in the target storage area; The first interrupt signal is sent to the central processing unit as a RAS configuration information update request to instruct the central processing unit to execute a RAS configuration information update operation.
[0026] A method for updating RAS configuration information provided by the present invention has the following advantages: For the first-level configuration items, an indirect method is adopted, that is, the identification information and update information of these configuration items are stored in the target storage area shared by the central processor and the baseboard management controller. Subsequently, the baseboard management controller will send an interrupt signal to the central processor to notify the central processor to read and apply these update information. In this way, the new RAS configuration information can be applied without restarting the system, which can ensure the real-time and continuity of business processing.
[0027] In an optional implementation, when it is determined that there is at least one secondary configuration item that is read and written through the target interface, the method further includes: Generate the RAS configuration information update request according to the update configuration information corresponding to each of the secondary configuration items; The RAS configuration information update request is sent to a central processing unit to instruct the central processing unit to execute a RAS configuration information update operation.
[0028] Specifically, for the secondary configuration items, the update information is directly sent to the central processor. Since these configuration items already support dynamic updates, the new configuration information can be directly applied while the system is running without restarting the system.
[0029] In an optional implementation, the first pin of the baseboard management controller is electrically connected to the second pin of the central processing unit; The step of sending the first interrupt signal as a RAS configuration information update request to the central processor comprises: The level signal of the first pin is set to a preset state, and the level signal set to the preset state is transmitted to the second pin, so as to complete the operation of sending the first interrupt signal.
[0030] Specifically, the interrupt signal is sent by changing the level signal state of the pin, which is simple and efficient. This method reduces the complex communication protocol and data transmission process and reduces system overhead. In addition, the interrupt signal is transmitted by changing the level signal of the physical pin, which reduces the risk of signal loss or mistransmission and is more reliable.
[0031] In a third aspect, the present invention provides a device for updating RAS configuration information, the device comprising: A first receiving module, used for receiving a RAS configuration information update request sent by a baseboard management controller; A reading module, configured to read identification information and update configuration information respectively corresponding to at least one primary configuration item written by the baseboard management controller from a target storage area when the RAS configuration information update request is a first interrupt signal sent by the baseboard management controller, wherein the primary configuration item is a configuration item that is not read or written through a target interface; A first determination module is configured to determine whether each of the first-level configuration items is an updated configuration item based on identification information and updated configuration information corresponding to each of the first-level configuration items; when at least one updated configuration item is determined, determine a target object corresponding to each of the updated configuration items based on identification information and updated configuration information corresponding to each of the updated configuration items; The update module is used to update the data corresponding to the target object according to the update configuration information corresponding to each of the update configuration items, so as to complete the RAS configuration information update operation corresponding to the primary configuration item.
[0032] In a fourth aspect, the present invention provides a device for updating RAS configuration information, the device comprising: A second receiving module is used to receive a target configuration file sent by a client, wherein the target configuration file includes identification information and update configuration information respectively corresponding to at least one configuration item; A second determination module, configured to determine whether each of the configuration items is a secondary configuration item that is read and written through a target interface according to identification information corresponding to each of the configuration items and a preset white list; a storage module, configured to store identification information and update configuration information corresponding to each of the first-level configuration items in a target storage area when it is determined that there is at least one first-level configuration item that is not read or written through the target interface; The sending module is used to send the first interrupt signal as a RAS configuration information update request to the central processing unit to instruct the central processing unit to perform a RAS configuration information update operation.
[0033] In a fifth aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method for updating RAS configuration information of the above-mentioned first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0034] In a sixth aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method for updating RAS configuration information of the above-mentioned second aspect or any corresponding embodiment thereof by executing the computer instructions.
[0035] In a seventh aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for updating RAS configuration information of the above-mentioned first aspect or any corresponding embodiment thereof.
[0036] In an eighth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for updating RAS configuration information of the second aspect or any corresponding embodiment thereof.
[0037] In a ninth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the method for updating RAS configuration information of the first aspect or any corresponding embodiment thereof.
[0038] In a tenth aspect, the present invention provides a computer program product, comprising computer instructions, wherein the computer instructions are used to enable a computer to execute the method for updating RAS configuration information of the above-mentioned second aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. 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.
[0040] Figure 1 is a schematic diagram of the architecture of a RAS configuration information updating system according to an embodiment of the present invention; Figure 2 is a flow chart of a method for updating RAS configuration information according to an embodiment of the present invention; Figure 3 is a data flow diagram for updating RAS configuration information according to an embodiment of the present invention; Figure 4 is a flow chart of a method for updating RAS configuration information executed by a central processing unit according to an embodiment of the present invention; Figure 5 is a flow chart of a method for updating RAS configuration information executed by a baseboard management controller according to an embodiment of the present invention; Figure 6 is a structural block diagram of an apparatus for updating RAS configuration information according to an embodiment of the present invention; Figure 7 is a structural block diagram of another device for updating RAS configuration information according to an embodiment of the present invention; Figure 8 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0042] The embodiment of the present invention can be implemented by a RAS configuration information updating system. The architecture diagram of the RAS configuration information updating system can be as follows: Figure 1As shown, it includes a central processing unit (CPU), a baseboard management controller (BMC) and multiple memories. The multiple memories may include a first memory, a second memory and a third memory. The first memory may be provided with a target storage area shared by the central processing unit and the baseboard management controller, which is opened by the baseboard management controller and mapped to the memory of the basic input / output system. For example, the first memory may be a static random access memory (SRAM). The second memory may store the relevant code of the operating system (OS), and the third memory may store the relevant code of the basic input / output system (BIOS). The central processing unit may read the relevant code from the second memory and the third memory to perform relevant operations, that is, the central processing unit may include the operating system and the basic input / output system. The baseboard management controller and the central processing unit may exchange data through the intelligent platform management interface (IPMI) communication protocol. The client and the baseboard management controller may exchange data through the Redfish communication protocol.
[0043] After the computer device is powered on and enters the Power-On Self Test (POST), the service initialization module in the basic input and output system will initialize the necessary runtime service memory (Efi Runtime ServicesData) and provide services (Efi Runtime Services) for updating the reliability, availability and serviceability (RAS) configuration, so as to perform the subsequent operation of updating the RAS configuration information. Among them, the RAS configuration service can refer to a preset resident function (Resident Function). A resident function can refer to a function or code segment that remains in the memory once loaded into the memory and will not be unloaded or replaced.
[0044] The embodiment of the present invention provides a method for updating RAS configuration information, and new RAS configuration information can be applied without restarting the basic input and output system.
[0045] According to an embodiment of the present invention, a method embodiment for updating RAS configuration information is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0046] In this embodiment, a method for updating RAS configuration information is provided, which can be implemented by the above-mentioned baseboard management controller and central processing unit through communication interaction.
[0047] Figure 2 is a flow chart of a method for updating RAS configuration information according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps: Step S201: The baseboard management controller receives a target configuration file sent by a client.
[0048] Among them, the target configuration file may include identification information and update configuration information corresponding to at least one configuration item related to the RAS configuration information. At least one configuration item may include a secondary configuration item and / or a primary configuration item. The secondary configuration item is a configuration item that is read and written through the target interface, and the primary configuration item is a configuration item that is not read and written through the target interface. The target interface may be a platform environment control interface (Platform Environment Control Interface, PECI). The update configuration information corresponding to the secondary configuration item may include register address information and update configuration values. The update configuration information corresponding to the primary configuration item may include tag information and update configuration values, and the tag information is used to indicate the type of the primary configuration item, and the type includes a soft option type or a hard option type. The hard option type is used to indicate a configuration item related to a register in the primary configuration item. The soft option type is used to indicate other configuration items in the primary configuration item except for the configuration items of the hard option type. When the type of the primary configuration item is a hard option type, the update configuration information corresponding to the primary configuration item also includes register address information. For example, modifying the memory threshold configuration item and modifying the Peripheral Component Interconnect Express (PCIE) threshold configuration item are both second-level configuration items, turning on the memory storm suppression function and turning on the PCIE storm suppression function are soft option type configuration items in the first-level configuration items, and the memory corrected system management interrupt (MCABANK CSMI) enable function enable configuration item and the memory correctable system management interrupt threshold function configuration item are hard option type configuration items in the first-level configuration items.
[0049] Specifically, the user can first input the updated RAS configuration information on the client, as well as the number of at least one server for which the RAS configuration information needs to be updated. The client can generate a target configuration file based on the input RAS configuration information, and determine the communication address corresponding to each server in the correspondence table between the number and the communication address according to the number of each server. In addition, the client can also automatically construct an update record table (for example, a table in EXCEL format) based on the communication address corresponding to each determined server. The client can traverse the update record table, obtain the target configuration file each time it traverses to the communication address of a server, and send the target configuration file to the baseboard management controller of the server according to the communication address of the traversed server. In this way, the baseboard management controller can receive the target configuration file.
[0050] In some optional embodiments, after the baseboard management controller receives the target configuration file, it can first perform a verification operation on the target file and obtain the verification result. For example, the verification operation can be a cyclic redundancy check (CRC). When it is determined that the verification result is passed, subsequent processing is performed. When it is determined that the verification result is not passed, a first prompt message is sent to the client to instruct the client to resend the target configuration file. In this way, when the verification fails, the baseboard management controller will immediately send a first prompt message to the client, requesting the configuration file to be resent. This instant feedback mechanism can detect and correct problems in a timely manner, avoid long waiting times and unnecessary repeated operations, and improve the efficiency of configuration updates.
[0051] Step S202: The baseboard management controller determines whether each configuration item is a secondary configuration item that is read and written through a target interface according to identification information corresponding to each configuration item and a preset white list.
[0052] The preset whitelist may include identification information of at least one configuration item that needs to be read and written through the target interface.
[0053] Specifically, the baseboard management controller may compare the identification information corresponding to each configuration item included in the target configuration file with each identification information in the preset whitelist to determine which configuration items are secondary configuration items and which configuration items are primary configuration items. The specific steps may be as follows: Step 1: determine whether the identification information of the first configuration item is any one of the identification information of at least one configuration item included in the preset whitelist.
[0054] The identification information of the first configuration item is any one of the identification information corresponding to at least one configuration item included in the target configuration file.
[0055] Step 2: When it is determined that the identification information of the first configuration item is any one of the identification information of at least one configuration item included in the preset whitelist, the first configuration item is determined to be a secondary configuration item.
[0056] Step three: when it is determined that the identification information of the first configuration item is not any of the identification information of at least one configuration item included in the preset whitelist, determine that the first configuration item is a primary configuration item.
[0057] Specifically, after the server processes the identification information of each configuration item in the target configuration file through the above steps 1 to 3, it can determine which configuration items are secondary configuration items and which configuration items are primary configuration items.
[0058] Step S203: When the baseboard management controller determines that there is at least one primary configuration item that is not read or written through the target interface, the identification information and update configuration information corresponding to each primary configuration item are stored in the target storage area.
[0059] Step S204: the baseboard management controller sends the first interrupt signal as a RAS configuration information update request to the central processing unit.
[0060] Specifically, after the baseboard management controller completes the operation of storing the identification information and the updated configuration information corresponding to each primary configuration item in the target storage area, it may send a first interrupt signal to the central processing unit.
[0061] Optionally, the first pin of the baseboard management controller is electrically connected to the second pin of the central processing unit, wherein the first pin may be the central processing unit including an operating system and a basic input and output system. Accordingly, the specific process of sending the first interrupt signal may be as follows: The level signal of the first pin is set to a preset state, and the level signal set to the preset state is transmitted to the second pin to complete the operation of sending the first interrupt signal. For example, the preset state may be a high level state.
[0062] In some other optional implementations, the first interrupt signal can also be a level signal that conforms to a certain rule, for example, "1001", sending a high level signal in the first and fourth time periods, and sending a low level signal in the second and third time periods. In this way, the signal recognition ability can be enhanced by using a level signal with a specific rule, so that the central processing unit can confirm that what is received is the expected interrupt signal, rather than random noise or interference, by detecting a specific time sequence. In addition, since the number of pins of the central processing unit and the basic management controller is limited, this solution does not need to occupy other pins, and can use existing pins to transmit signals with a specific rule, thereby realizing the transmission of the first interrupt signal and saving hardware resources.
[0063] Step S205 : the central processing unit reads, from the target storage area, identification information and update configuration information respectively corresponding to at least one primary configuration item written by the baseboard management controller.
[0064] Specifically, the specific steps of step S205 may be as follows: Step 1: when the first interrupt signal is detected by the operating system, the number of the second pin and the state of the level signal of the second pin are obtained.
[0065] Step 2: Generate a second interrupt signal according to the number of the second pin and the state of the level signal.
[0066] Specifically, when the central processing unit detects the first interrupt signal through the Advanced Configuration and Power Interfac (ACPI) module of the operating system, the number of the second pin and the state of the level signal of the second pin can be obtained, and the second interrupt signal can be generated according to the number of the second pin and the state of the level signal. Among them, the generation of the second interrupt signal according to the number of the second pin and the state of the level signal can be achieved in the following two ways.
[0067] In a first mode, the central processing unit determines the target event according to the number of the second pin and the state of the level signal, and generates a second interrupt signal corresponding to the target event according to the target event.
[0068] The target event is used to instruct the central processing unit to execute a RAS configuration information update operation corresponding to the first-level configuration item.
[0069] Specifically, when the CPU obtains the number of the second pin and the state of the level signal through the operating system, it can first generate an interrupt request according to the number of the second pin and the state of the level signal, and transmit it to the basic input and output system to jump to the processing logic of the basic input and output system. Then, the basic input and output system can determine that a target event (for example, GPE_Lxx) has occurred according to the number of the second pin and the state of the level signal included in the interrupt request, and generate a second interrupt signal according to the target event. The second interrupt signal can be a system management interrupt (System Management Interrupt, SMI).
[0070] Method 2: The CPU generates an interrupt request through the operating system according to the number of the second pin and the state of the level signal, and transmits it to the basic input and output system to jump to the processing logic of the basic input and output system. The basic input and output system is used to determine the target system control interrupt (System Control Interrupt, SCI) vector that matches the number and state of the second pin in the pre-built SMI event information table (for example, it can be a general purpose event table, generally referred to as a GPE table), and generate a third interrupt signal according to the target system control interrupt vector. When the third interrupt signal is detected through the basic input and output system, it jumps to the processing logic of the operating system. Using the operating system, the target processing program corresponding to the third interrupt signal is executed to trigger the generation of the second interrupt signal.
[0071] Step three: when the second interrupt signal is detected, calling a preset resident function of the basic input and output system, so as to use the preset resident function to read identification information and update configuration information respectively corresponding to at least one primary configuration item from the target storage area.
[0072] Step S206: The central processing unit determines whether each first-level configuration item is an updated configuration item according to the identification information and the updated configuration information corresponding to each first-level configuration item.
[0073] Specifically, the central processing unit can use a preset resident function to obtain the original configuration value corresponding to each first-level configuration item from the target storage area according to the identification information corresponding to each first-level configuration item. Then, according to the updated configuration value and the original configuration value corresponding to each first-level configuration item, it is determined whether each first-level configuration item is an updated configuration item. For example, the central processing unit can determine whether the updated configuration value and the original configuration value corresponding to the target first-level configuration item are consistent, wherein the target first-level configuration item is any one of the at least one first-level configuration item. When it is determined that the updated configuration value and the original configuration value corresponding to the target first-level configuration item are inconsistent, it is determined that the target first-level configuration item is an updated configuration item. Alternatively, when it is determined that the updated configuration value and the original configuration value corresponding to the target first-level configuration item are consistent, it is determined that the target first-level configuration item is not an updated configuration item.
[0074] Step S207: When the central processor determines at least one update configuration item, the target object corresponding to each update configuration item is determined according to the identification information and update configuration information corresponding to each update configuration item.
[0075] Specifically, when the central processing unit determines at least one update configuration item, a preset resident function can be used to generate a RAS configuration table based on multiple elements in the identification information, tag information, update configuration value, and register address information corresponding to each update configuration item. The generated RAS configuration table can be used as a basis for subsequent execution of the update operation of the RAS configuration information. By pre-generating the RAS configuration table, the information in the configuration table can be directly used when executing the update operation, reducing the overhead of complex parsing and matching during the update process and improving the efficiency of the update operation. Different types of update configuration items correspond to different contents in the update configuration information. Accordingly, the process of generating the RAS configuration table can be as follows: When the update configuration item is a configuration item of a soft option type, a piece of data corresponding to the update configuration item can be generated according to the identification information, tag information, and update configuration value corresponding to the update configuration item. When the update configuration item is a configuration item of a hard option type, a piece of data corresponding to the update configuration item can be generated according to the identification information, tag information, update configuration value, and register address information corresponding to the update configuration item. In this way, a RAS configuration table can be generated according to the data corresponding to each update configuration item.
[0076] The central processing unit can traverse each piece of data included in the RAS configuration table. For each piece of data traversed, the target object corresponding to the target configuration item can be first determined according to the target update configuration item corresponding to the traversed data (the target update configuration item is any one of the at least one update configuration item) and the target update configuration information corresponding to the relevant information (i.e., the identification information of the target update configuration item and the corresponding target update configuration information), which specifically includes the following situations: In case 1, when the type of the target update configuration item is determined to be a soft option type according to the mark information included in the target update configuration information corresponding to the target update configuration item, the central processing unit can determine the target pointer corresponding to the target update configuration item according to the identification information of the target update configuration item, wherein the target pointer is the target object corresponding to the target update configuration item.
[0077] In case 2, when the type of the target update configuration item is determined to be a hard option type according to the tag information included in the target update configuration information, the central processing unit can determine the target register corresponding to the target update configuration item according to the register address information included in the target update configuration information. The target register is the target object corresponding to the target update configuration item.
[0078] Step S208: the central processing unit updates the data corresponding to the target object according to the update configuration information corresponding to each update configuration item, so as to complete the RAS configuration information update operation corresponding to the primary configuration item.
[0079] Specifically, when the type of the target update configuration item is a soft option type, the central processing unit may first obtain the storage address information of the target update configuration information in the target storage area, and then modify the data corresponding to the target pointer to the storage address information. When the type of the target update configuration item is a hard option type, the central processing unit may modify the data in the target register to the update configuration value included in the target update configuration information.
[0080] Step S209: When the baseboard management controller determines that there is at least one secondary configuration item to be read and written through the target interface, a RAS configuration information update request is generated according to the update configuration information corresponding to each secondary configuration item.
[0081] In step S210, the baseboard management controller sends a RAS configuration information update request to the central processing unit.
[0082] In step S211, the central processing unit determines the register corresponding to each secondary configuration item according to the register address information included in the updated configuration information of each secondary configuration item.
[0083] Specifically, when the central processor receives a RAS configuration information update request, and the RAS configuration information update request includes update configuration information corresponding to at least one secondary configuration item, the register corresponding to each secondary configuration item can be determined according to the register address information included in the update configuration information of each secondary configuration item.
[0084] In step S212, the central processing unit modifies the original configuration value in the register corresponding to the target secondary configuration item to the updated configuration value included in the updated configuration information corresponding to the target secondary configuration item.
[0085] The target secondary configuration item is any secondary configuration item of at least one secondary configuration item.
[0086] In this way, after the RAS configuration information is updated through the above operations, an error event is detected. The central processing unit triggers the corresponding SMI through the operating system according to the error event, and then obtains the updated RAS configuration information from the target storage area according to the SMI error handler (Hander), and performs a repair operation. For example, the error event can be a memory correctable error (Correctable Error, CE), a memory uncorrectable error (Uncorrectable Error, UCE), PCIE CE, PCIE UCE, etc.
[0087] In some optional implementations, after completing the operation of updating the RAS configuration information, the central processing unit can obtain the target update result and send the target update result to the baseboard management controller, which can be specifically sent through the IPMI communication protocol. The baseboard management controller then sends the target update result to the client, which can be specifically sent through the Redfish protocol. After receiving the target update result, the client can record the target update result in the storage location corresponding to the baseboard management controller in the update record table. When the target update result is a failure, the data where the baseboard management controller is located can be marked in red, and an email can be generated based on all the data marked in red and sent to the client where the technician is located to notify the technician to perform operation and maintenance operations.
[0088] The above description can refer to Figure 3 The detailed data flow diagram for updating RAS configuration information is shown in FIG.
[0089] The method for updating RAS configuration information provided in this embodiment, in the related art, since RAS configuration information belongs to the composition of the basic input and output system, and the RAS configuration information will be loaded and applied during the system startup phase, therefore, after updating the RAS configuration information, it is usually necessary to restart the system to make the new settings effective. In this solution, for the secondary configuration items, the update information is directly sent to the central processing unit, and the central processing unit receives the update configuration information and applies it immediately. For the primary configuration items, the baseboard management controller first writes the identification information and the update configuration information into the central processing unit and the shared target storage area, and then notifies the central processing unit through the first interrupt signal to read and apply these updates. In this way, the new RAS configuration information can be applied without restarting the system, which can ensure the real-time and continuity of business processing.
[0090] In this embodiment, a method for updating RAS configuration information is provided, which can be executed by the above-mentioned central processing unit. Figure 4 is a flow chart of a method for updating RAS configuration information according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps: Step S401: receiving a RAS configuration information update request sent by a baseboard management controller.
[0091] Step S402: when the RAS configuration information update request is a first interrupt signal sent by the baseboard management controller, identification information and update configuration information respectively corresponding to at least one primary configuration item written by the baseboard management controller are read from the target storage area.
[0092] Among them, the first-level configuration items are configuration items that are not read or written through the target interface.
[0093] Step S403: determining whether each first-level configuration item is an updated configuration item according to the identification information and the updated configuration information corresponding to each first-level configuration item.
[0094] Step S404: when at least one updated configuration item is determined, a target object corresponding to each updated configuration item is determined according to identification information and updated configuration information corresponding to each updated configuration item.
[0095] Step S405 , performing an update operation on the data corresponding to the target object according to the update configuration information corresponding to each update configuration item, so as to complete the RAS configuration information update operation corresponding to the primary configuration item.
[0096] The specific processing of step S401 to step S405 is similar to the specific processing of step S205 to step S208, and will not be repeated here.
[0097] In the method for updating RAS configuration information provided in this embodiment, in the related art, since RAS configuration information belongs to the composition of the basic input and output system, and RAS configuration information will be loaded and applied during the system startup phase, therefore, after updating the RAS configuration information, it is usually necessary to restart the system to make the new settings effective. For the first-level configuration items, the baseboard management controller first writes the identification information and the updated configuration information into the central processing unit and the shared target storage area, and then notifies the central processing unit to read and apply these updates through the first interrupt signal. In this way, the new RAS configuration information can be applied without restarting the system, which can ensure the real-time and continuity of business processing.
[0098] In this embodiment, a method for updating RAS configuration information is provided, which can be executed by the baseboard management controller mentioned above. Figure 5 is a flow chart of a method for updating RAS configuration information according to an embodiment of the present invention. Figure 5 As shown, the process includes the following steps: Step S501: receiving a target configuration file sent by a client.
[0099] The target configuration file includes identification information and update configuration information corresponding to at least one configuration item.
[0100] Step S502: Determine whether each configuration item is a secondary configuration item that is read and written through a target interface based on identification information corresponding to each configuration item and a preset white list.
[0101] Step S503: When it is determined that there is at least one first-level configuration item that is not read or written through the target interface, the identification information and update configuration information corresponding to each first-level configuration item are stored in the target storage area.
[0102] Step S504: sending the first interrupt signal as a RAS configuration information update request to the central processor to instruct the central processor to execute a RAS configuration information update operation.
[0103] The specific processing from step S501 to step S504 is similar to the specific processing from step S201 to step S204, and will not be repeated here.
[0104] The method for updating RAS configuration information provided in this embodiment adopts an indirect method for the primary configuration items, that is, the identification information and update information of these configuration items are stored in the target storage area shared by the central processing unit and the baseboard management controller. Subsequently, the baseboard management controller will send an interrupt signal to the central processing unit to notify the central processing unit to read and apply the update information. In this way, the new RAS configuration information can be applied without restarting the system, which can ensure the real-time and continuity of business processing.
[0105] In the present embodiment, a device for updating RAS configuration information is also provided, and the device is used to implement the above-mentioned embodiment and preferred implementation mode, and the descriptions that have been made are not repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.
[0106] This embodiment provides a device for updating RAS configuration information, such as Figure 6 As shown, including: The first receiving module 601 is used to receive a RAS configuration information update request sent by a baseboard management controller; The reading module 602 is used to read the identification information and the update configuration information respectively corresponding to at least one primary configuration item written by the baseboard management controller from the target storage area when the RAS configuration information update request is the first interrupt signal sent by the baseboard management controller, wherein the primary configuration item is a configuration item that is not read and written through the target interface; The first determination module 603 is used to determine whether each first-level configuration item is an update configuration item according to the identification information and update configuration information corresponding to each first-level configuration item; when at least one update configuration item is determined, determine the target object corresponding to each update configuration item according to the identification information and update configuration information corresponding to each update configuration item; The updating module 604 is used to update the data corresponding to the target object according to the update configuration information corresponding to each update configuration item, so as to complete the RAS configuration information update operation corresponding to the primary configuration item.
[0107] In an optional implementation, the update configuration information corresponding to the primary configuration item includes tag information, where the tag information is used to indicate a type of the primary configuration item, where the type includes a soft option type or a hard option type; The first determining module 603 is specifically configured to: When it is determined that the type of the target update configuration item is a soft option type according to the marking information included in the target update configuration information corresponding to the target update configuration item, the target pointer corresponding to the target update configuration item is determined according to the identification information of the target update configuration item, wherein the target update configuration item is any one of the at least one update configuration item, and the target pointer is the target object corresponding to the target update configuration item.
[0108] In an optional implementation manner, the first determining module 603 is specifically configured to: When the type of the first-level configuration item is a hard option type, the update configuration information corresponding to the first-level configuration item also includes register address information. When it is determined that the type of the target update configuration item is a hard option type based on the mark information included in the target update configuration information, the target register corresponding to the target update configuration item is determined based on the register address information included in the target update configuration information, wherein the target register is the target object corresponding to the target update configuration item.
[0109] In an optional implementation, the updating module 604 is specifically configured to: Obtain storage address information of target update configuration information in a target storage area; The data corresponding to the target pointer is modified to storage address information.
[0110] In an optional implementation, the updated configuration information corresponding to the primary configuration item also includes an updated configuration value, and the updating module 604 is specifically used to: The data in the target register is modified to the update configuration value included in the target update configuration information.
[0111] In an optional implementation manner, the first determining module 603 is further configured to: When the RAS configuration information update request includes update configuration information corresponding to at least one secondary configuration item, determining a register corresponding to each secondary configuration item according to register address information included in the update configuration information of each secondary configuration item, wherein the secondary configuration item is a configuration item that is read and written through the target interface information; The original configuration value in the register corresponding to the target secondary configuration item is modified to the updated configuration value included in the updated configuration information corresponding to the target secondary configuration item, wherein the target secondary configuration item is any one of the at least one secondary configuration item.
[0112] In an optional implementation, the first pin of the baseboard management controller is electrically connected to the second pin of the central processing unit, and the central processing unit includes an operating system and a basic input and output system; The reading module 602 is specifically used for: When the first interrupt signal is detected by the operating system, the number of the second pin and the state of the level signal of the second pin are obtained; Generate a second interrupt signal according to the number of the second pin and the state of the level signal; When the second interrupt signal is detected, a preset resident function of the basic input and output system is called to use the preset resident function to read identification information and update configuration information respectively corresponding to at least one primary configuration item from the target storage area.
[0113] In an optional implementation, the reading module 602 is specifically configured to: Determine a target event according to the number of the second pin and the state of the level signal, wherein the target event is used to instruct the central processing unit to perform a RAS configuration information update operation corresponding to the first-level configuration item; According to the target event, a second interrupt signal corresponding to the target event is generated.
[0114] In an optional implementation, the reading module 602 is specifically configured to: Generate an interrupt request according to the number of the second pin and the state of the level signal through the operating system, and transmit the interrupt request to the basic input and output system to jump to the processing logic of the basic input and output system; Determine a target system control interrupt SCI vector that matches both the number and the state of the second pin in a pre-built event information table using the basic input and output system, and generate a third interrupt signal according to the target system control interrupt SCI vector; When a third interrupt signal is detected through the basic input and output system, jumping to the processing logic of the operating system; By using the operating system, a target processing program corresponding to the third interrupt signal is executed to trigger generation of a second interrupt signal.
[0115] This embodiment provides a device for updating RAS configuration information, such as Figure 7 As shown, including: The second receiving module 701 is used to receive a target configuration file sent by a client, wherein the target configuration file includes identification information and update configuration information respectively corresponding to at least one configuration item; A second determination module 702, configured to determine whether each configuration item is a secondary configuration item that is read and written through a target interface according to identification information corresponding to each configuration item and a preset whitelist; The storage module 703 is used to store the identification information and update configuration information corresponding to each first-level configuration item in the target storage area when it is determined that there is at least one first-level configuration item that is not read or written through the target interface; The sending module 704 is used to send the first interrupt signal as a RAS configuration information update request to the central processing unit to instruct the central processing unit to perform a RAS configuration information update operation.
[0116] In an optional implementation, the device further includes a generating module 705, and the generating module 705 is used to: When it is determined that there is at least one secondary configuration item to be read and written through the target interface, generating a RAS configuration information update request according to the update configuration information corresponding to each secondary configuration item; The RAS configuration information update request is sent to the central processing unit to instruct the central processing unit to execute the RAS configuration information update operation.
[0117] In an optional implementation, the first pin of the baseboard management controller is electrically connected to the second pin of the central processing unit; The sending module 704 is specifically used for: The level signal of the first pin is set to a preset state, and the level signal set to the preset state is transmitted to the second pin to complete the operation of sending the first interrupt signal.
[0118] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0119] The above-mentioned devices for updating RAS configuration information can all be presented in the form of functional units, where the units refer to ASIC (Application Specific Integrated Circuit) circuits, processors and memories that execute one or more software or fixed programs, and / or other devices that can provide the above-mentioned functions.
[0120] The embodiment of the present invention also provides a computer device having the above Figure 6 or Figure 7 The apparatus for updating RAS configuration information is shown.
[0121] See also Figure 8 , Figure 8 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 8As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 8 A processor 10 is taken as an example.
[0122] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware integrated circuit. The hardware integrated circuit may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable logic gate array, a general purpose array logic or any combination thereof.
[0123] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0124] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0125] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0126] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0127] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0128] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0129] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for updating RAS configuration information, characterized in that: The method is executed by a central processing unit, and comprises: Receiving a RAS configuration information update request sent by a baseboard management controller; When the RAS configuration information update request is a first interrupt signal sent by the baseboard management controller, reading identification information and update configuration information respectively corresponding to at least one primary configuration item written by the baseboard management controller from a target storage area, wherein the primary configuration item is a configuration item that is not read or written through a target interface; Determining whether each of the first-level configuration items is an updated configuration item according to the identification information and the updated configuration information corresponding to each of the first-level configuration items; When at least one update configuration item is determined, determining a target object corresponding to each update configuration item according to identification information and update configuration information corresponding to each update configuration item; According to the update configuration information corresponding to each of the update configuration items, an update operation is performed on the data corresponding to the target object to complete the RAS configuration information update operation corresponding to the primary configuration item.
2. The method according to claim 1, characterized in that The updated configuration information corresponding to the primary configuration item includes tag information, where the tag information is used to indicate a type of the primary configuration item, where the type includes a soft option type or a hard option type; When at least one update configuration item is determined, determining a target object corresponding to each update configuration item according to identification information and update configuration information corresponding to each update configuration item includes: When it is determined that the type of the target update configuration item is the soft option type according to the marking information included in the target update configuration information corresponding to the target update configuration item, a target pointer corresponding to the target update configuration item is determined according to the identification information of the target update configuration item, wherein the target update configuration item is any one of the at least one update configuration item, and the target pointer is the target object corresponding to the target update configuration item.
3. The method according to claim 2, characterized in that When the type of the primary configuration item is the hard option type, the update configuration information corresponding to the primary configuration item also includes register address information, and the method further includes: When it is determined that the type of the target update configuration item is the hard option type according to the mark information included in the target update configuration information, the target register corresponding to the target update configuration item is determined according to the register address information included in the target update configuration information, wherein the target register is the target object corresponding to the target update configuration item.
4. The method according to claim 2, characterized in that: The updating operation on the data corresponding to the target object according to the update configuration information corresponding to each of the update configuration items to complete the RAS configuration information update operation corresponding to the primary configuration item includes: Acquire storage address information of the target update configuration information in the target storage area; The data corresponding to the target pointer is modified to the storage address information.
5. The method according to claim 3, characterized in that: The update configuration information corresponding to the first-level configuration item also includes an update configuration value. The updating operation is performed on the data corresponding to the target object according to the update configuration information corresponding to each of the update configuration items to complete the RAS configuration information update operation corresponding to the first-level configuration item, including: The data in the target register is modified to the update configuration value included in the target update configuration information.
6. The method according to any one of claims 1 to 5, characterized in that: When the RAS configuration information update request is a request including at least one request for updating configuration information corresponding to each of the secondary configuration items, the method further includes: Determine a register corresponding to each of the secondary configuration items according to register address information included in the update configuration information of each of the secondary configuration items, wherein the secondary configuration item is a configuration item that is read and written through the target interface; The original configuration value in the register corresponding to the target secondary configuration item is modified to the updated configuration value included in the updated configuration information corresponding to the target secondary configuration item, wherein the target secondary configuration item is any one of the at least one secondary configuration item.
7. The method according to any one of claims 1 to 5, characterized in that: The first pin of the baseboard management controller is electrically connected to the second pin of the central processing unit, and the central processing unit includes an operating system and a basic input and output system; When the RAS configuration information update request is a first interrupt signal sent by the baseboard management controller, reading identification information and update configuration information respectively corresponding to at least one primary configuration item written by the baseboard management controller from a target storage area includes: When the first interrupt signal is detected by the operating system, obtaining the number of the second pin and the state of the level signal of the second pin; Generate a second interrupt signal according to the number of the second pin and the state of the level signal; When the second interrupt signal is detected, a preset resident function of the basic input and output system is called to use the preset resident function to read identification information and update configuration information respectively corresponding to at least one of the first-level configuration items from the target storage area.
8. The method according to claim 7, characterized in that The step of generating a second interrupt signal according to the number and state of the second pin includes: Determine a target event according to the number of the second pin and the state of the level signal, wherein the target event is used to instruct the central processing unit to perform a RAS configuration information update operation corresponding to the primary configuration item; According to the target event, the second interrupt signal corresponding to the target event is generated.
9. The method according to claim 7, characterized in that: The step of generating a second interrupt signal according to the number and state of the second pin includes: Generate an interrupt request according to the number of the second pin and the state of the level signal through the operating system, and transmit the interrupt request to the basic input and output system to jump to the processing logic of the basic input and output system; Determine a target system control interrupt SCI vector that matches both the number and the state of the second pin in a pre-built event information table using the basic input and output system, and generate a third interrupt signal according to the target system control interrupt SCI vector; When the third interrupt signal is detected by the basic input and output system, jumping to the processing logic of the operating system; Using the operating system, a target processing program corresponding to the third interrupt signal is executed to trigger generation of the second interrupt signal.
10. A method for updating RAS configuration information, characterized in that: The method is performed by a baseboard management controller, and the method includes: Receive a target configuration file sent by a client, wherein the target configuration file includes identification information and update configuration information respectively corresponding to at least one configuration item; Determining whether each of the configuration items is a secondary configuration item that is read and written through a target interface according to identification information corresponding to each of the configuration items and a preset whitelist; When it is determined that there is at least one first-level configuration item that is not read or written through the target interface, storing identification information and update configuration information corresponding to each of the first-level configuration items in the target storage area; The first interrupt signal is sent to the central processing unit as a RAS configuration information update request to instruct the central processing unit to execute a RAS configuration information update operation.
11. The method according to claim 10, characterized in that When it is determined that there is at least one secondary configuration item that is read and written through the target interface, the method further includes: Generate the RAS configuration information update request according to the update configuration information corresponding to each of the secondary configuration items; The RAS configuration information update request is sent to a central processing unit to instruct the central processing unit to execute a RAS configuration information update operation.
12. The method according to claim 10 or 11, characterized in that: The first pin of the baseboard management controller is electrically connected to the second pin of the central processing unit; The step of sending the first interrupt signal as a RAS configuration information update request to the central processor comprises: The level signal of the first pin is set to a preset state, and the level signal set to the preset state is transmitted to the second pin, so as to complete the operation of sending the first interrupt signal.
13. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for updating RAS configuration information according to any one of claims 1 to 9, or the method for updating RAS configuration information according to any one of claims 10 to 12, by executing the computer instructions.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method for updating RAS configuration information according to any one of claims 1 to 9, or the method for updating RAS configuration information according to any one of claims 10 to 12.
15. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to cause a computer to execute the method for updating RAS configuration information according to any one of claims 1 to 9, or the method for updating RAS configuration information according to any one of claims 10 to 12.
Citation Information
Patent Citations
Setting method and device of RAS configuration
CN103645915A
Configuration file updating method and device, server and storage medium
CN114090602A
Error detection, prediction and processing techniques for in-system encapsulation storage architecture
CN116368470A
Hardware error processing method, device and system, RAS processing unit, SOC and BMC
CN118819934A
Cited By
RAS function configuration method and device, electronic equipment and medium
CN116302203A
A method, device, electronic device and medium for configuring RAS function
CN116302203B
Electronic equipment operation control method, electronic equipment, server and storage medium
CN120909665A
Data read-write control method and data read-write controller
CN121326258A
PCIe reset linkage network card configuration method and device
CN122316883A
