A method, device, electronic device and medium for configuring RAS function

By initializing and updating the RAS function configuration policy after the system restarts, and automatically adjusting the RAS function according to error events and device information, the inflexibility and conflict problems of manual user configuration in the existing technology are solved, and automated management is achieved during system operation.

CN116302203BActive Publication Date: 2025-09-19LENOVO BEIJING INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310325459.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-29
Publication Date
2025-09-19
Estimated Expiration
2043-03-29

AI Technical Summary

Technical Problem

The configuration of the RAS function in the prior art requires the user to manually operate the BIOS switch option, which lacks flexibility and cannot be automatically adjusted according to the system operating status, resulting in conflicts and performance impacts.

Method used

After the system restarts, the RAS function configuration policy is initialized and updated by reading the error event information, determining whether to enable or disable the RAS function based on the device information and error type, using NVRAM to record error events, and handling function conflicts based on priority, and outputting the configuration policy for the user to adjust.

Benefits of technology

It realizes the flexible control of RAS function switching according to the system operation status, reduces manual intervention, avoids functional conflicts, and improves system reliability and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116302203B_ABST
    Figure CN116302203B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for configuring a RAS function, comprising: after a system is restarted, reading information of an error event and initializing a configuration policy for a reliability, validity, and maintainability RAS function, wherein the configuration policy records indication information for enabling or disabling various RAS functions; updating the indication information in the initialized configuration policy according to information of the error event; and enabling or disabling various RAS functions according to the updated configuration policy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to computer processing technology, and in particular to a configuration method, device, electronic device and medium for RAS function. Background Art

[0002] RAS is a relatively important function on server products, which can enhance the reliability (Reliability), effectiveness (Availability) and maintainability (Serviceability) of the system. The system basically has targeted solutions (i.e., RAS functions) for different devices (such as memory, PCIE, CPU, etc.) and different error types. Usually, the RAS function can be turned on and off through the switch options provided by the BIOS (Basic Input Output System). In addition, due to conflicts between certain RAS functions or their impact on system performance, it is impossible to turn on all RAS functions. Users need to manually operate the switch options provided by the Basic Input Output System (BIOS) to set them. This is not flexible enough and cannot automatically adjust the RAS function according to the operating status of the system. Summary of the Invention

[0003] The present disclosure provides a method to at least solve the above technical problems existing in the prior art.

[0004] A first aspect of the present disclosure provides a method for configuring a RAS function, including:

[0005] After the system restarts, it reads the error event information and initializes the configuration policy of the reliability, availability, and maintainability RAS function, which records the indication information of enabling or disabling each RAS function;

[0006] updating the indication information in the initialized configuration policy according to the information of the error event;

[0007] Enable or disable each RAS function based on the updated configuration policy.

[0008] The initialization of the configuration policy of the RAS function includes:

[0009] The indication information of enabling or disabling each RAS function in the basic input and output system BIOS is synchronized into the configuration policy to complete the initialization of the configuration policy.

[0010] After synchronizing the indication information of enabling or disabling each RAS function in the BIOS to the configuration policy, the method further includes:

[0011] If the indication information for enabling or disabling any RAS function in the BIOS is inconsistent with the system information, the indication information for enabling or disabling the RAS function is modified according to the system information in the synchronized configuration policy to complete the initialization of the configuration policy.

[0012] The error event information includes: device information and error type;

[0013] Accordingly, updating the indication information in the initialized configuration policy according to the information of the error event includes:

[0014] Determine the corresponding RAS function according to the device information and the error type;

[0015] Update the RAS function instruction in the initialization configuration policy from disabled to enabled.

[0016] The error event information further includes: the number of error events of each error type under each device, the number being used to indicate the priority of the corresponding RAS function;

[0017] Accordingly, updating the indication information of the RAS function in the initialized configuration policy from disabled to enabled includes:

[0018] Determine whether there is any enabled RAS function that conflicts with the RAS function;

[0019] If it does not exist, the instruction information of the RAS function in the initialized configuration policy is updated from disabled to enabled;

[0020] If so, compare the priority of the RAS function with the conflicting RAS function;

[0021] If the priority of the RAS function is higher than the conflicting RAS function, the indication information of the RAS function in the initialized configuration policy is updated from disable to enable, and the conflicting RAS function is updated from enable to disable.

[0022] The information of the error event is recorded in a variable of the non-volatile random access memory NVRAM.

[0023] The method further includes: outputting the updated configuration policy so that the user can modify the indication information for enabling or disabling each RAS function in the BIOS according to the updated configuration policy.

[0024] A second aspect of the present disclosure provides a configuration device for a RAS function, including:

[0025] A data processing module is used to read the information of the error event after the system is restarted;

[0026] An initialization module is used to initialize the configuration policy of the RAS function after the system is restarted. The configuration policy records the indication information of enabling or disabling each RAS function;

[0027] An updating module, configured to update the indication information in the initialized configuration policy according to information of the error event;

[0028] The configuration module is used to enable or disable various RAS functions according to the updated configuration policy.

[0029] A third aspect of the present disclosure provides an electronic device, including:

[0030] processor;

[0031] a memory for storing instructions executable by the processor;

[0032] The processor is configured to read the executable instructions from the memory and execute the instructions to implement the RAS function configuration method.

[0033] A fourth aspect of the present disclosure provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the configuration method of the RAS function.

[0034] In the above scheme, after each system restart, the error event information recorded during the previous system operation is read. This information represents the system operation status; the initialized configuration policy is updated based on the error event information, and each RAS function is enabled or disabled based on the updated configuration policy. In this way, the RAS function can be flexibly controlled according to the system operation status. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A schematic diagram of a configuration method for the RAS function provided by an example of the present disclosure is shown;

[0036] Figure 2 A schematic diagram of the configuration process of the RAS function provided by an example of the present disclosure is shown;

[0037] Figure 3 A schematic diagram of a RAS function configuration device provided by an example of the present disclosure is shown. DETAILED DESCRIPTION

[0038] In order to make the purposes, features, and advantages of the present invention more obvious and easy to understand, the technical solutions 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 embodiments described are only 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 making creative efforts shall fall within the scope of protection of the present invention.

[0039] In order to flexibly control and adjust the RAS function switch according to the system operation, such as Figure 1 As shown, the present disclosure provides a method for configuring a RAS function, comprising the following steps:

[0040] Step 101: After the system is restarted, the error event information is read and the configuration policy of the RAS function is initialized. The configuration policy records the indication information of enabling or disabling each RAS function.

[0041] Step 102: Update the instruction information in the initialized configuration policy according to the information of the error event.

[0042] Step 103: Enable or disable each RAS function according to the updated configuration policy.

[0043] In the example disclosed herein, a configuration policy for the RAS function is newly added to the system. The configuration policy is used to record the indication information for enabling or disabling each RAS function. After the system is running, the enabling (i.e., turning on or disabling) of each RAS function is performed according to the configuration policy, rather than directly enabling the RAS function based on the switch information (i.e., the indication information for starting or disabling) of each RAS function recorded in the BIOS.

[0044] Each time the system restarts, the configuration policy from the last system operation is cleared and no longer used. At the same time, the configuration policy of the RAS function needs to be reinitialized.

[0045] After each system restart, it is necessary to read the error event information recorded during the last system operation. This information represents the system operation status; the initialized configuration policy is updated based on the error event information, and each RAS function is enabled or disabled based on the updated configuration policy. In this way, the RAS function can be flexibly controlled according to the system operation status.

[0046] In one example of the present disclosure, the method for recording error event information is as follows: if an error occurs during system operation, the SMI (System Management Interrupt) program is enabled to report the error event to the system or BMC (Baseboard Management Controller), and the error event information is stored in NVRAM (Non-Volatile Random Access Memory) variables. NVRAM variables can save data after the electronic device is powered off. In this way, after the system is restarted, the error event information recorded during the last system operation can be read from the NVRAM variables for use in the current system operation.

[0047] After the system restarts, in addition to reading the error event information, the configuration policy of the RAS function needs to be initialized. In one example, the indication information of enabling or disabling each RAS function in the BIOS can be synchronized to the configuration policy to complete the initialization of the configuration policy.

[0048] In addition, the indication information for enabling or disabling each RAS function in the BIOS needs to be set by the user. However, the user setting may result in a situation that is inconsistent with the system information, such as the enabled RAS function is not supported by the system, the RAS function that cannot be disabled is disabled, etc., and there may also be a situation where multiple enabled RAS functions conflict with each other. Therefore, after the synchronization operation of the configuration policy, the configuration policy can also be tested. If there is indication information of a RAS function that is inconsistent with the system information, the indication information for enabling or disabling the RAS function is modified in the configuration policy according to the system information; if there are multiple enabled RAS functions that conflict with each other, then according to the priority of these conflicting RAS functions, the RAS function with a higher priority will remain enabled, and the RAS function with a lower priority will be modified to disabled, thereby completing the initialization of the configuration policy.

[0049] After initializing the configuration policy, it needs to be updated based on the error event information. In one example, the error event information includes device information and error type. The device information identifies the device type, such as memory, PCIE, and CPU, and the error type identifies the type of error event, such as link error, bit error, or row error.

[0050] Accordingly, the indication information in the initialized configuration policy is updated according to the information of the error event, including: determining the corresponding RAS function according to the device information and the error type, and updating the indication information of the RAS function in the initialized configuration policy from disable to enable.

[0051] Different devices may have error events of the same error type. However, error events of the same error type in different devices are still different error events. For example, a link error event of a CPU and a link error event of a PCIE are different error events. Usually, an error event is resolved by a dedicated RAS function (but this does not mean that different error events cannot be resolved by the same RAS function). Therefore, it is necessary to determine an error event based on device information and error type, so as to find its corresponding RAS function and set the indication information of the RAS function to be enabled in the initialization configuration policy.

[0052] In another example, the error event information also includes the number of error events of each error type for each device, which indicates the priority of the corresponding RAS function. For example, if the memory bit error event occurred 500 times and the memory row error event occurred 5 times during the last system operation, the RAS function corresponding to the memory bit error event has a higher priority than the RAS function corresponding to the row error event.

[0053] The setting of the RAS function priority takes effect when there is a RAS function conflict. In the above example, when the indication information of the RAS function in the initialized configuration policy is updated from disable to enable: first determine whether there is a RAS function that conflicts with the RAS function and is enabled. If not, the indication information of the RAS function in the initialized configuration policy is updated from disable to enable; if so, compare the priorities of the RAS function and the conflicting RAS function. If the priority of the RAS function is higher than that of the conflicting RAS function, update the indication information of the RAS function in the initialized configuration policy from disable to enable, and at the same time update the conflicting RAS function from enable to disable; if the priority of the RAS function is lower than that of the conflicting RAS function, keep the RAS function disabled and the conflicting RAS function enabled.

[0054] In one example of the present disclosure, the updated configuration policy can also be output to the user, allowing the user to modify the instructions for enabling or disabling various RAS functions in the BIOS according to the updated configuration policy. For example, if a certain RAS function is found to be continuously enabled according to the configuration policy output multiple times, indicating that the corresponding error event occurs frequently, the user can manually modify the RAS function in the BIOS to enable it; the modified BIOS settings are synchronized to the configuration policy during initialization. In this way, as the device is used for a longer time, more and more RAS functions are enabled in the BIOS. When the number of enabled RAS functions reaches a certain level, or even when these considerable number of enabled RAS functions cannot resolve the system runtime error, it indicates that the device hardware (memory, CPU, PCIE, etc.) needs to be replaced.

[0055] The following is a more detailed explanation of the above solution through an example. Figure 2 As shown, the example includes:

[0056] Step 201: When the system is running and an error occurs, information about the error event is recorded in the NVRAM variable of the electronic device.

[0057] It should be noted that the information of the error event during the previous system operation stored in the NVRAM variable can be overwritten by the information of the error event during the current system operation.

[0058] Step 202: The system is restarted and the configuration policy of the RAS function is initialized. The indication information of enabling or disabling each RAS function recorded in the current BIOS is synchronized to the configuration policy to complete the initialization.

[0059] In addition, the configuration policy can be checked to correct the instruction information that is inconsistent with the system information, and the conflicting RAS functions can be handled so that the RAS function with a higher priority is enabled and the RAS function with a lower priority is disabled.

[0060] Step 203: Read the error event information and update the configuration policy.

[0061] Since the information of the error event during the last system run is stored in the NVRAM variable, the information of the error event will not be lost after the system is restarted and can be directly read from the NVRAM variable.

[0062] Update the configuration policy based on the error event information, including but not limited to the following update operations:

[0063] If the error event indicates that the RAS function is disabled, change the RAS function to enabled.

[0064] If there is an enabled RAS function that conflicts with the RAS function pointed to by the information of the error event, the indication information of the RAS function with a higher priority is enabled, and the indication information of the RAS function with a lower priority is disabled.

[0065] Traverse the RAS functions corresponding to the information of each error event, and perform the update operation in the above manner until the above update operation is completed for the last RAS function to complete the update of the configuration policy. In one example, the RAS functions can also be sorted from high to low according to their priorities and then traversed.

[0066] Step 204: Enable or disable the RAS function according to the updated configuration policy. In this way, if the previous error occurs again during the current operation of the system, it can be resolved by enabling the RAS function.

[0067] Step 205: Following step 203, output the updated configuration policy.

[0068] The above steps 201-205 illustrate the configuration process of the RAS function when an error occurs during system operation. The following steps 301-304 illustrate the configuration process of the RAS function when no error occurs during system operation.

[0069] Step 301: The system is running, and if no error occurs, there is no need to record the error event information. At the same time, the error event information stored in the NVRAM variable during the last system operation can also be cleared.

[0070] Step 302: The system is restarted to initialize the configuration policy of the RAS function. The indication information of enabling or disabling each RAS function recorded in the current BIOS is synchronized to the configuration policy to complete the initialization.

[0071] In addition, the configuration policy can be checked to correct the instruction information that is inconsistent with the system information, and the conflicting RAS functions can be handled so that the RAS function with a higher priority is enabled and the RAS function with a lower priority is disabled.

[0072] Step 303: Enable or disable the RAS function according to the initialized configuration policy.

[0073] Since no errors occurred during the last system operation, no information is recorded in the NVRAM variables. Therefore, there is no need to update the initialization configuration policy. Therefore, the RAS function is directly enabled according to the initialization configuration policy.

[0074] Step 304 , following step 302 , outputs the current configuration policy, ie, the initialized configuration policy.

[0075] The user can adjust the instruction information of each RAS function in the BIOS according to the output single or multiple configuration policies.

[0076] Through the above examples provided by the present disclosure, based on the configuration policy, the enabling or disabling of the RAS function can be adjusted in a timely and flexible manner according to the system operation status; at the same time, the output of the configuration policy enables the user to have an accurate basis for adjusting the instruction information in the BIOS, thereby accurately reflecting the usage of the device hardware.

[0077] In order to implement the above method, the present disclosure also provides a configuration device for RAS function, such as Figure 3 As shown, the device includes:

[0078] The data processing module 10 is used to read the error event information after the system is restarted;

[0079] Initialization module 20, used to initialize the configuration policy of the RAS function after the system is restarted, wherein the configuration policy records the indication information of enabling or disabling each RAS function;

[0080] An updating module 30, configured to update the indication information in the initialized configuration policy according to information of the error event;

[0081] The configuration module 40 is configured to enable or disable various RAS functions according to the updated configuration policy.

[0082] When initializing the configuration policy of the RAS function, the initialization module 20 is used to synchronize the indication information of enabling or disabling each RAS function in the BIOS to the configuration policy, thereby completing the initialization of the configuration policy.

[0083] After synchronizing the indication information for enabling or disabling each RAS function in the BIOS to the configuration policy, the initialization module 20 is further configured to, if it is determined that the indication information for enabling or disabling any RAS function in the BIOS is inconsistent with the system information, modify the indication information for enabling or disabling the RAS function in the synchronized configuration policy according to the system information, thereby completing the initialization of the configuration policy.

[0084] The information of the above-mentioned error event includes: device information and error type; accordingly, when the indication information in the initialized configuration policy is updated according to the information of the error event, the update module 30 is used to determine the corresponding RAS function according to the device information and error type, and update the indication information of the RAS function in the initialized configuration policy from disabled to enabled.

[0085] The error event information also includes: the number of error events of each error type under each device, where the number is used to indicate the priority of the corresponding RAS function;

[0086] Correspondingly, when the indication information of the RAS function in the initialized configuration policy is updated from disabled to enabled, the updating module 30 is further configured to:

[0087] Determine whether there is any enabled RAS function that conflicts with the RAS function;

[0088] If it does not exist, the instruction information of the RAS function in the initialized configuration policy is updated from disabled to enabled;

[0089] If so, compare the priority of the RAS function with the conflicting RAS function;

[0090] If the priority of the RAS function is higher than the conflicting RAS function, the indication information of the RAS function in the initialized configuration policy is updated from disable to enable, and the conflicting RAS function is updated from enable to disable.

[0091] In addition, the updating module 30 is further configured to output the updated configuration policy, so that the user can modify the indication information for enabling or disabling each RAS function in the BIOS according to the updated configuration policy.

[0092] Illustratively, the present disclosure further provides an electronic device, including:

[0093] processor;

[0094] a memory for storing instructions executable by the processor;

[0095] The processor is configured to read the executable instructions from the memory and execute the instructions to implement the above-mentioned RAS function configuration method.

[0096] Illustratively, the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the above-mentioned RAS function configuration method.

[0097] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the method according to various embodiments of the present application described in the above-mentioned "Exemplary Method" section of this specification.

[0098] The computer program product may be written in any combination of one or more programming languages ​​to implement the program code for performing the operations of the embodiments of the present application, including object-oriented programming languages ​​such as Java, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0099] In addition, an embodiment of the present application may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, enable the processor to execute the steps of the method according to various embodiments of the present application described in the above "Exemplary Method" section of this specification.

[0100] The computer-readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can, for example, include but is not limited to a system, device or component of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0101] The basic principles of the present application have been described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, and effects mentioned in this application are merely illustrative and not restrictive, and it should not be assumed that these advantages, strengths, and effects are required of each embodiment of this application. In addition, the specific details disclosed above are merely illustrative and facilitating understanding, and are not restrictive. The above details do not limit this application to necessarily being implemented using the above specific details.

[0102] The block diagrams of the devices, devices, equipment, and systems involved in this application are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, devices, equipment, and systems can be connected, arranged, or configured in any manner. Words such as "include," "comprise," "have," and the like are open-ended words, meaning "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or" and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.

[0103] It should also be noted that in the apparatus, device, and method of the present application, each component or each step can be decomposed and / or recombined, and such decomposition and / or recombination should be regarded as equivalent solutions of the present application.

[0104] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to be accorded the widest scope consistent with the principles and novel features disclosed herein.

[0105] The above description has been provided for the purpose of illustration and description. Furthermore, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations thereof.

Claims

1. A method for configuring a RAS function, comprising: After the system restarts, it reads the error event information and initializes the configuration policy of the reliability, availability, and maintainability RAS function, which records the indication information of enabling or disabling each RAS function; updating the indication information in the initialized configuration policy according to the information of the error event; Enable or disable each RAS function based on the updated configuration policy.

2. The RAS function configuration method according to claim 1, wherein: Initializing the configuration policy of the RAS function includes: The indication information of enabling or disabling each RAS function in the basic input and output system BIOS is synchronized into the configuration policy to complete the initialization of the configuration policy.

3. The RAS function configuration method according to claim 2, wherein: After synchronizing the indication information of enabling or disabling each RAS function in the BIOS to the configuration policy, the method further includes: If the indication information for enabling or disabling any RAS function in the BIOS is inconsistent with the system information, the indication information for enabling or disabling the RAS function is modified according to the system information in the synchronized configuration policy to complete the initialization of the configuration policy.

4. The method for configuring the RAS function according to claim 1, wherein: The information of the error event includes: device information and error type; Accordingly, updating the indication information in the initialized configuration policy according to the information of the error event includes: Determine the corresponding RAS function according to the device information and the error type; Update the RAS function instruction in the initialization configuration policy from disabled to enabled.

5. The method for configuring the RAS function according to claim 4, wherein: The error event information further includes: the number of error events of each error type under each device, the number being used to indicate the priority of the corresponding RAS function; Accordingly, updating the indication information of the RAS function in the initialized configuration policy from disabled to enabled includes: Determine whether there is any enabled RAS function that conflicts with the RAS function; If it does not exist, the instruction information of the RAS function in the initialized configuration policy is updated from disabled to enabled; If so, compare the priority of the RAS function with the conflicting RAS function; If the priority of the RAS function is higher than the conflicting RAS function, the indication information of the RAS function in the initialized configuration policy is updated from disable to enable, and the conflicting RAS function is updated from enable to disable.

6. The method for configuring the RAS function according to claim 1, wherein: Information on the error event is recorded in a variable in the non-volatile random access memory NVRAM.

7. The RAS function configuration method according to claim 2, wherein: The method further includes: outputting the updated configuration policy so that the user can modify the indication information for enabling or disabling each RAS function in the BIOS according to the updated configuration policy.

8. A configuration device for a RAS function, comprising: A data processing module is used to read the information of the error event after the system is restarted; An initialization module is used to initialize the configuration policy of the RAS function after the system is restarted. The configuration policy records the indication information of enabling or disabling each RAS function; An updating module, configured to update the indication information in the initialized configuration policy according to information of the error event; The configuration module is used to enable or disable various RAS functions according to the updated configuration policy.

9. An electronic device comprising: processor; a memory for storing instructions executable by the processor; The processor is configured to read the executable instructions from the memory and execute the instructions to implement the RAS function configuration method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the RAS function configuration method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and device for updating RAS configuration information, storage medium and program product

    CN119179524A