Memory error detection parameter setting method and device, equipment and storage medium
By starting the memory error detection parameter configuration menu and loading parameters when the server starts, the problem of the DDR5 memory error detection parameters cannot be set is solved, improving the server's operating stability and performance, and ensuring the accuracy of memory error detection.
Patent Information
- Application Number
- CN202411124255.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-12-20
AI Technical Summary
The existing DDR5 memory error check parameters cannot be set, resulting in the overall performance of the server when the error check parameters are not suitable or incorrect.
Provide a memory error detection parameter setting method. By starting the memory error detection parameter configuration menu when the server starts, receiving parameters entered by the user, and loading these parameters into memory when the server restarts, realizing DDR5 memory error checking and erasing Visual settings for the parameters.
It realizes flexible configuration of DDR5 memory error checking parameters, improves the operating stability and performance of the server, and ensures the accuracy and timeliness of memory error detection.
Smart Images

Figure CN119166221A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of memory technology, and in particular, to a method, apparatus, device, and storage medium for setting memory error detection parameters. Background Art
[0002] DDR5 (fifth-generation double data rate synchronous dynamic random access memory) is a high-performance memory technology that has been widely used in cloud computing, big data and other fields. DDR5 has error checking and erasing functions, which require regular scanning of DDR5 and fault diagnosis of DDR5. In related technologies, when DDR5 performs error checking, it directly reads the default error checking parameters on the memory during server startup, and then performs corresponding error checking based on the error checking parameters.
[0003] In the related art, it is impossible to set the error checking parameters. When the error checking parameters are set incorrectly or are not suitable for the operating environment, the error checking parameters cannot be modified, which affects the overall performance of the server. Summary of the invention
[0004] The embodiments of the present application provide a memory error detection parameter setting method, apparatus, device and storage medium, aiming to realize the visual setting of DDR5 memory error detection parameters.
[0005] A first aspect of an embodiment of the present application provides a method for setting memory error detection parameters, the method comprising:
[0006] When the server enters the startup state, in response to receiving a memory error detection parameter configuration menu startup instruction, the memory error detection parameter configuration menu is started, and the memory error detection parameter configuration menu is used for configuring memory error checking and erasing;
[0007] Receiving various parameters input by a user in the memory error detection parameter configuration menu;
[0008] In response to the user inputting a configuration completion instruction in the memory error detection parameter configuration menu, saving the various parameters;
[0009] When the server enters a restart state, the various parameters in the memory error detection parameter configuration menu are loaded into the memory.
[0010] Optionally, in response to receiving the memory error detection parameter configuration menu start instruction, before starting the memory error detection parameter configuration menu in the display device, the method further includes:
[0011] The memory error detection parameter configuration menu is created in the basic input and output system of the server.
[0012] Optionally, the step of creating the memory error detection parameter configuration menu in the basic input and output system of the server includes:
[0013] Creating a memory error detection parameter configuration file corresponding to the memory error detection parameter configuration menu;
[0014] The memory error detection parameter configuration file is called by the basic input and output system to create the memory error detection parameter configuration menu.
[0015] Optionally, the creating a memory error detection parameter configuration file corresponding to the memory error detection parameter configuration menu includes:
[0016] Creating a first memory error detection parameter configuration subfile, wherein the first memory error detection parameter configuration subfile is used to control the switch of the memory error detection parameter configuration menu and static data settings;
[0017] Creating a second memory error detection parameter configuration subfile, wherein the second memory error detection parameter configuration subfile is used for character string definition of each option value in the memory error detection parameter configuration menu;
[0018] Creating a third memory error detection parameter configuration subfile, wherein the third memory error detection parameter configuration subfile is used for creating options and option values in the memory error detection parameter configuration menu;
[0019] A fourth memory error detection parameter configuration subfile is created, wherein the fourth memory error detection parameter configuration subfile is used for code implementation of parameter function settings in the memory error detection parameter configuration menu.
[0020] Optionally, the fourth memory error detection parameter configuration subfile includes:
[0021] A first function is used to set a configuration mode of the memory error detection parameter configuration menu according to a mode option of the memory error detection parameter configuration menu;
[0022] The second function is used to modify the memory detection time interval according to the time interval set on the memory error detection parameter configuration menu;
[0023] A third function is used to load the error threshold set on the memory menu into a corresponding register;
[0024] A fourth function is used to load the error mode set on the memory menu into a corresponding register;
[0025] The fifth function is used to set the error reporting mode according to the error reporting control option of the memory error detection parameter configuration menu.
[0026] Optionally, in response to receiving a memory error detection parameter configuration menu start instruction, starting the memory error detection parameter configuration menu includes:
[0027] In response to receiving the memory menu configuration menu start instruction, calling a memory error detection parameter configuration file;
[0028] The memory error detection parameter configuration file is run to load the memory error detection parameter configuration menu into a display device corresponding to the server.
[0029] Optionally, loading the various parameters in the memory error detection parameter configuration menu into the memory includes:
[0030] Reading a first option value of a mode option in the memory error detection parameter configuration menu through a first function;
[0031] According to the first option value, loading a corresponding value into a register corresponding to the mode option;
[0032] Reading a second option value of the time interval option in the memory error detection parameter configuration menu through a second function;
[0033] Loading the time corresponding to the second option value into the register corresponding to the time interval option;
[0034] Reading a third option value of the error threshold option in the memory error detection parameter configuration menu through a third function;
[0035] Loading the error threshold corresponding to the third option value into the register corresponding to the error threshold option;
[0036] Reading a fourth option value of the error mode option in the memory error detection parameter configuration menu through a fourth function;
[0037] According to the fourth option value, loading a corresponding value into a register corresponding to the error mode option;
[0038] Reading the error reporting control option in the memory error detection parameter configuration menu through the fifth function;
[0039] Determine whether to report memory error information according to the error reporting control option.
[0040] A second aspect of an embodiment of the present application provides a memory error detection parameter setting device, the device comprising:
[0041] A menu startup module, used for starting the memory error detection parameter configuration menu in response to receiving a memory error detection parameter configuration menu startup instruction when the server enters the startup state, wherein the memory error detection parameter configuration menu is used for configuring memory error checking and erasing;
[0042] A parameter receiving module, used for receiving various parameters input by a user in the memory error detection parameter configuration menu;
[0043] A parameter saving module, configured to save the various parameters in response to the user inputting a configuration completion instruction in the memory error detection parameter configuration menu;
[0044] A parameter loading module is used to load the various parameters in the memory error detection parameter configuration menu into the memory when the server enters a restart state.
[0045] Optionally, the device further comprises:
[0046] The menu creation module is used to create the memory error detection parameter configuration menu in the basic input and output system of the server.
[0047] Optionally, the menu creation module includes:
[0048] A configuration file creation submodule, used to create a memory error detection parameter configuration file corresponding to the memory error detection parameter configuration menu;
[0049] The menu creation submodule is used to call the memory error detection parameter configuration file through the basic input and output system to create the memory error detection parameter configuration menu.
[0050] Optionally, the configuration file creation submodule includes:
[0051] A first creation submodule, used to create a first memory error detection parameter configuration subfile, wherein the first memory error detection parameter configuration subfile is used to control the switch of the memory error detection parameter configuration menu and the static data setting;
[0052] A second creation submodule is used to create a second memory error detection parameter configuration subfile, wherein the second memory error detection parameter configuration subfile is used for a string definition of each option value in the memory error detection parameter configuration menu;
[0053] A third creation submodule, used to create a third memory error detection parameter configuration subfile, wherein the third memory error detection parameter configuration subfile is used to create options and option values in the memory error detection parameter configuration menu;
[0054] The fourth creation submodule is used to create a fourth memory error detection parameter configuration subfile, and the fourth memory error detection parameter configuration subfile is used for code implementation of parameter function settings in the memory error detection parameter configuration menu.
[0055] Optionally, the fourth memory error detection parameter configuration subfile includes:
[0056] A first function is used to set a configuration mode of the memory error detection parameter configuration menu according to a mode option of the memory error detection parameter configuration menu;
[0057] The second function is used to modify the memory detection time interval according to the time interval set on the memory error detection parameter configuration menu;
[0058] A third function is used to load the error threshold set on the memory menu into a corresponding register;
[0059] A fourth function is used to load the error mode set on the memory menu into a corresponding register;
[0060] The fifth function is used to set the error reporting mode according to the error reporting control option of the memory error detection parameter configuration menu.
[0061] Optionally, in response to receiving a memory error detection parameter configuration menu start instruction, starting the memory error detection parameter configuration menu includes:
[0062] In response to receiving the memory menu configuration menu start instruction, calling a memory error detection parameter configuration file;
[0063] The memory error detection parameter configuration file is run to load the memory error detection parameter configuration menu into a display device corresponding to the server.
[0064] Optionally, the parameter loading module includes:
[0065] A first reading submodule, configured to read a first option value of a mode option in the memory error detection parameter configuration menu through a first function;
[0066] A first loading submodule, used for loading a corresponding value into a register corresponding to the mode option according to the first option value;
[0067] A second reading submodule, used for reading a second option value of the time interval option in the memory error detection parameter configuration menu through a second function;
[0068] A second loading submodule, used for loading the time corresponding to the second option value into the register corresponding to the time interval option;
[0069] A third reading submodule, used for reading a third option value of the error threshold option in the memory error detection parameter configuration menu through a third function;
[0070] A third loading submodule, used to load the error threshold corresponding to the third option value into the register corresponding to the error threshold option;
[0071] A fourth reading submodule, used for reading a fourth option value of the error mode option in the memory error detection parameter configuration menu through a fourth function;
[0072] a fourth loading submodule, configured to load a corresponding value into a register corresponding to the error mode option according to the fourth option value;
[0073] A fifth reading submodule, used for reading the error reporting control option in the memory error detection parameter configuration menu through a fifth function;
[0074] The reporting determination submodule is used to determine whether to report memory error information according to the error reporting control option.
[0075] A third aspect of an embodiment of the present application provides a readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps in the method described in the first aspect of the present application are implemented.
[0076] A fourth aspect of an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method described in the first aspect of the present application are implemented.
[0077] By adopting the memory error detection parameter setting method provided by the present application, when the server enters the startup state, in response to receiving a memory error detection parameter configuration menu startup instruction, the memory error detection parameter configuration menu is started, and the memory error detection parameter configuration menu is used for configuring memory error checking and erasing; various parameters entered by a user in the memory error detection parameter configuration menu are received; in response to the user entering a configuration completion instruction in the memory error detection parameter configuration menu, the various parameters are saved; and when the server enters the restart state, the various parameters in the memory error detection parameter configuration menu are loaded into the memory.
[0078] In this method, during the server startup phase, a memory error detection parameter configuration menu is started, and the user can set the corresponding parameters of memory error checking and erasing in the memory error detection parameter configuration menu according to actual conditions. When the configuration is completed, the server is restarted and the various parameters in the memory error detection parameter configuration menu are loaded into the memory, thereby realizing the configuration of the corresponding parameters of memory error checking and erasing. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0080] Figure 1 is a flow chart of a method for setting memory error detection parameters proposed in an embodiment of the present application;
[0081] Figure 2 It is a schematic diagram of a function proposed in an embodiment of the present application;
[0082] Figure 3 is a flowchart of memory error detection parameter initialization proposed in an embodiment of the present application;
[0083] Figure 4 is a schematic diagram of a memory error detection parameter setting device proposed in an embodiment of the present application;
[0084] Figure 5 It is a schematic diagram of an electronic device proposed in an embodiment of the present application. DETAILED DESCRIPTION
[0085] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0086] refer to Figure 1 , Figure 1 FIG. 1 is a flow chart of a method for setting memory error detection parameters proposed in an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:
[0087] S11: When the server enters the startup state, in response to receiving a memory error detection parameter configuration menu startup instruction, the memory error detection parameter configuration menu is started, and the memory error detection parameter configuration menu is used for configuring memory error checking and erasing.
[0088] In this embodiment, the memory error detection parameter configuration menu is a menu pre-configured in the basic input output system (BIOS), which is used to perform ECS (error checking and erasing ECC Error Check and Scrub) configuration on the DDR5 memory. Multiple parameter setting options are pre-set in the memory error detection parameter configuration menu, and the user can set the corresponding parameters in each parameter setting option.
[0089] In this embodiment, when the server enters the startup state, the user can press a hot key to trigger the memory error detection parameter configuration menu startup instruction. After receiving the instruction, the basic input and output system in the server calls the pre-configured memory error detection parameter configuration file, runs the file, and displays the memory error detection parameter configuration menu on the display device corresponding to the server.
[0090] In this embodiment, in response to receiving a memory error detection parameter configuration menu start instruction, the specific steps of starting the memory error detection parameter configuration menu include:
[0091] S11 - 1 : In response to receiving the memory menu configuration menu start instruction, calling a memory error detection parameter configuration file.
[0092] In this embodiment, the memory error detection parameter configuration file (ECSConfiguration.cif) is a file used to implement various functions on the memory error detection parameter configuration menu, which includes a first memory error detection parameter configuration sub-file (ECSConfiguration.sd l), a second memory error detection parameter configuration sub-file (ECSConfiguration.uni), a third memory error detection parameter configuration sub-file (ECSConfiguration.sd) and a fourth memory error detection parameter configuration sub-file (ECSConfiguration.i nf).
[0093] In this embodiment, after receiving the memory menu configuration start command, the basic input output system calls the memory error detection parameter configuration file pre-added in the code of the basic input output system.
[0094] S11-2: Run the memory error detection parameter configuration file, and load the memory error detection parameter configuration menu into a display device corresponding to the server.
[0095] In this embodiment, after calling the memory error detection parameter configuration file, the basic input and output system runs the memory error detection parameter configuration file and loads the memory error detection parameter configuration menu into the display device corresponding to the server.
[0096] For example, the memory error detection parameter configuration menu can configure parameter setting modes, memory detection time intervals, error mode options, memory error thresholds, and memory error reporting controls.
[0097] S12: receiving various parameters input by the user in the memory error detection parameter configuration menu.
[0098] In this embodiment, after the basic input / output system runs the memory error detection parameter configuration file and opens the memory error detection parameter configuration menu, the user enters various configuration parameters in the memory error detection parameter configuration file.
[0099] S13: In response to the user inputting a configuration completion instruction in the memory error detection parameter configuration menu, saving the various parameters.
[0100] In this embodiment, after the user has completed configuring the various parameters in the memory error detection parameter configuration menu, the user clicks the Finish option in the memory menu configuration parameters to enter a configuration completion instruction. After receiving the configuration completion instruction entered by the user in the memory error detection parameter configuration menu, the basic input and output system saves the various parameters configured by the user.
[0101] S14: When the server enters a restart state, the various parameters in the memory error detection parameter configuration menu are loaded into the memory.
[0102] In this embodiment, when the server enters the restart state, the basic input and output system reads the memory error detection parameter configuration menu, reads the option value of the corresponding option in the memory error detection parameter configuration menu through the corresponding function, and then loads the parameter corresponding to the option value into the memory.
[0103] In this embodiment, the specific steps of loading the parameters in the memory error detection parameter configuration menu into the memory include:
[0104] S14-1: Reading a first option value of a mode option in the memory error detection parameter configuration menu through a first function.
[0105] In this embodiment, reference Figure 2 , Figure 2 is a schematic diagram of a function proposed in an embodiment of the present application, such as Figure 2 As shown, the first function (EcsMode()) is used to read the option value of the mode option in the memory error detection parameter configuration menu, that is, the first option value. If the option value is automatic (Auto), the MR14 register is read, and Bit7 therein is set to 0, and the MR14 register is written back to update. When the option value is manual (Manaua l), Bit7 of MR14 is set to 1, and the MR14 register is written back to update.
[0106] In this embodiment, the first option value of the mode option in the memory error detection parameter configuration menu is read through the first function. In automatic mode, the parameters entered by the user are automatically read and loaded into the DDR5 memory. In manual mode, the parameters are not read.
[0107] S14-2: According to the first option value, load the corresponding value into the register corresponding to the mode option.
[0108] In this embodiment, after the first option value is read by the first function, the corresponding value is loaded into the register corresponding to the mode option, that is, the value of Bit7 in the MR14 register is modified.
[0109] S14-3: Reading a second option value of the time interval option in the memory error detection parameter configuration menu through a second function.
[0110] In this embodiment, the second function (ResetEcsTimeInterval()) is used to read the option value of the time interval option in the memory error detection parameter configuration menu, that is, the second option value, and modify the value of bit[9:0]ECS_REFAB_I NTERVAL (ECS refresh interval) in the RDI MM time control (RDI MMT I MI NGCNTL) register in the memory controller (I MC) register according to the time set by the option value, and write back to update the register.
[0111] In this embodiment, the second option value of the time interval option in the memory error detection parameter configuration menu is read through the second function. The time interval option is used to control the time interval of memory error detection. If the time interval is too long, the error detection will not be timely. If the time interval is too short, too many resources will be occupied, affecting the system operation speed and stability. Therefore, it needs to be set reasonably.
[0112] S14-4: Load the time corresponding to the second option value into the register corresponding to the time interval option.
[0113] In this embodiment, after the second option value is read, the time corresponding to the second option value is loaded into the register corresponding to the time interval option.
[0114] For example, if the second option value is 60, memory error detection is performed once every 60 seconds.
[0115] S14-5: Reading a third option value of the error threshold option in the memory error detection parameter configuration menu through a third function.
[0116] In this embodiment, the third function (EscErrorThreshold()) is used to read the option value of the error threshold (ECS Error Threshold) option in the memory error detection parameter configuration menu, that is, the third option value. The function reads the value of the MR15 register, modifies MR15 Bit[3:0] to set the required error threshold, and writes back to update the register. The error threshold is the threshold of the number of memory errors detected, and an error report is required if the threshold is exceeded.
[0117] In this embodiment, the third function reads the third option value of the error threshold option in the memory error detection parameter configuration menu.
[0118] S14-6: Load the error threshold corresponding to the third option value into the register corresponding to the error threshold option.
[0119] In this embodiment, after the third option value is read, the error threshold corresponding to the third option value is loaded into the register corresponding to the error threshold option to complete the setting of the error threshold.
[0120] S14-7: Reading a fourth option value of the error mode option in the memory error detection parameter configuration menu through a fourth function.
[0121] In this embodiment, the fourth function (EscErrorReport()) is used to read the option value of the error mode (ECS Error Mode) option in the memory error detection parameter configuration menu, that is, the fourth option value, and read the value of the MR4 register at the same time. If the option is a row error setting, that is, an error occurs in a row of data in the memory, MR14 Bit5 is modified to 0. If the option is a codeword error setting, that is, an error occurs in a certain code or character, MR14 Bit5 is modified to 1 and written back to update the register.
[0122] In this embodiment, the fourth option value of the error mode option in the memory error detection parameter configuration menu is read through the fourth function, thereby determining whether the error mode used for setting is a row error or a codeword error.
[0123] S14-8: According to the fourth option value, load a corresponding value into a register corresponding to the error mode option.
[0124] In this embodiment, after the fourth option value is read, the corresponding value is loaded into the register corresponding to the error mode option.
[0125] S14-9: Read the error reporting control option in the memory error detection parameter configuration menu through the fifth function.
[0126] In this embodiment, the fifth function (EscErrorReport()) is used to read the error reporting control (ECS Error Report Control) option setting in the memory error detection parameter configuration menu. If it is set to enabled, if the patrol ECC error in the system triggers the SMI interrupt, in the SMM mode, the basic input and output system reads the DDR5 MR16-M20 register information and reports the collected error information on the memory to the baseboard management controller (BMC) through the IPMIOEM command. If it is set to closed, the basic input and output system will not report the error information to the baseboard management controller.
[0127] S14-10: Determine whether to report memory error information according to the error reporting control option.
[0128] In this embodiment, the memory error information is stored in the memory. If the memory error reporting control option is not to report, the error information is reported. If the memory error reporting control option is not to report, the error information is not reported.
[0129] In this embodiment, the user opens the memory error detection parameter configuration menu through a hot key when the server starts. The memory error detection parameter configuration menu sets mode options, time interval setting options, error type setting options, error threshold setting options, and error reporting control setting options. Through these options, the detection and reporting of memory error information can be freely set, the free setting of memory error detection parameters is realized, the efficiency of memory error detection is improved, and the operation of the system can be grasped as a whole.
[0130] In another embodiment of the present application, before starting the memory error detection parameter configuration menu in the display device in response to receiving the memory error detection parameter configuration menu start instruction, the method further includes:
[0131] S21: Creating the memory error detection parameter configuration menu in the basic input and output system of the server.
[0132] In this embodiment, when DDR5 performs error checking and erasing, it generally reads the default parameters in the memory, and there is no interface to set the various parameters. Therefore, if you want to set the memory error detection parameters, you need to first create a memory error detection parameter configuration menu in the basic input and output system of the server.
[0133] In this embodiment, the step of creating the memory error detection parameter configuration menu in the basic input and output system of the server includes:
[0134] S21 - 1 : Create a memory error detection parameter configuration file corresponding to the memory error detection parameter configuration menu.
[0135] In this embodiment, a memory error detection parameter configuration file corresponding to the memory error detection parameter configuration menu is firstly created, and the memory error detection parameter configuration file includes sub-files of various modules implementing the memory error detection parameter configuration menu.
[0136] In this embodiment, the DDR5 ECS (error check and erase) parameter configuration is mainly set through the DDR5SDRAM MR (Mode Register) mode register and the RDI MM time control (RDI MMT I MI NGCNTL) register in the I MC (Integrated Memory Controller). Bit [9:0] ECS_REFAB_I NTERVAL (ECS refresh interval) in the RDI MM time control register (RD I MMT I MI NGCNTL) is used to set the time interval for ECS refresh, as shown in Table 1. ECS-related MR mode registers include: MR14 register configures ECS mode, resets ECS count, and sets the error tracking method, as shown in Table 2; MR15 register is used to set ECS settings in self-refresh mode and ECS error count threshold settings, as shown in Table 3; MR16-19 registers record the address of the row with the most errors and the error count in the row with the most errors, and M20 register records error count data, etc.
[0137] Table 1 – RD I MMT IMI NGCNTL register information description
[0138]
[0139] Table 2-MR14 register information description
[0140]
[0141] Table 3-MR15 register information description
[0142]
[0143] Before creating a memory error detection parameter profile, you also need to plan the interface options of the memory error detection parameter configuration menu, including: ECS mode setting, ECS error mode setting, ECS time interval setting, ECS error threshold setting, and ECS error report setting.
[0144] The ECS Mode option is used to set whether ECS uses automatic (Auto) mode or manual (Manua l) mode. Automatic mode allows ECS to run inside DRAM. The DDR5 memory will automatically execute ECS commands according to the preset time interval, complete error checking and clearing, and update the MR16-M20 registers to ensure that the data in the memory remains accurate. The default setting is automatic mode.
[0145] The ECS Time Interval option is used to set the time interval for ECS to execute ECS commands in automatic mode. The default setting is 24 hours. This option can only be set when the ECS mode is automatic mode. It is grayed out and cannot be set in manual mode.
[0146] The ECS Error Mode option has two options: Rows with errors and Code words with errors. This option is used to set the error counter to track the error type. The default setting is Rows with errors.
[0147] ECS Error Threshold setting option, there are 4 options: default (default), 256, 1024 and 4096, the default setting is default. This option can only be set when the ECS mode is automatic mode, it is grayed out and cannot be set in manual mode.
[0148] The ECS Error Report Control setting option has two options: Enable and Disable. It is used to control the system to detect ECC errors and trigger SMI interrupts. If there is an ECS error, the BIOS will collect the error information on the memory DRAM and report it to the BMC (Baseboard Management Control). This option can only be set when the ECS mode is automatic mode. It is gray and cannot be set in manual mode.
[0149] In this embodiment, the specific steps of creating a memory error detection parameter configuration file corresponding to the memory error detection parameter configuration menu include:
[0150] S21-1-1: Create a first memory error detection parameter configuration subfile, where the first memory error detection parameter configuration subfile is used to control the switch of the memory error detection parameter configuration menu and static data settings.
[0151] In this embodiment, the first memory error detection parameter configuration subfile (ECSConfigurat i on.sd l) is used to control the switch of the memory error detection parameter configuration menu and the static data settings. The static data settings include the interface size of the menu, the area occupied by each item option, and other settings.
[0152] In this embodiment, a memory error detection parameter configuration folder is first created, a memory menu configuration file (ECSConfigurat ion.cif) and an engineering group description file are added to the folder, and the function of the file is classified as a ModulePart. The file includes a first memory error detection parameter configuration subfile.
[0153] S21-1-2: Create a second memory error detection parameter configuration subfile, where the second memory error detection parameter configuration subfile is used for the string definition of each option value in the memory error detection parameter configuration menu.
[0154] In this embodiment, the second memory error detection parameter configuration subfile (ECSConfiguration.uni) is used for character string definition of each option value in the memory error detection parameter configuration menu.
[0155] In this embodiment, a second memory error detection parameter configuration subfile is created. The second memory error detection parameter configuration subfile can define the string definition of each option value in the memory error detection parameter configuration menu. After the user sets the option value of an option, the code in the second parameter configuration subfile is run to implement the definition of the string corresponding to the option value.
[0156] S21-1-3: Create a third memory error detection parameter configuration subfile, where the third memory error detection parameter configuration subfile is used to create options and option values in the memory error detection parameter configuration menu.
[0157] In this embodiment, the third memory error detection parameter configuration subfile (ECSConfiguration.sd) is used for creating options and option values in the memory error detection parameter configuration menu.
[0158] In this embodiment, a third memory configuration sub-file is created, and the code in the sub-file is executed to create the options and option values in the memory error detection parameter configuration menu.
[0159] S21-1-4: Create a fourth memory error detection parameter configuration subfile, wherein the fourth memory error detection parameter configuration subfile is used for code implementation of parameter function settings in the memory error detection parameter configuration menu.
[0160] In this embodiment, the fourth memory error detection parameter configuration subfile (ECSConfiguration.c) is used for code implementation of parameter function settings in the memory error detection parameter configuration menu.
[0161] In this embodiment, the fourth memory error detection parameter configuration sub-file includes the first function, the second function, the third function, the fourth function and the fifth function. By running the sub-file, the functions therein can be called to read the option values of the corresponding options in the memory error detection parameter configuration menu.
[0162] S21 - 2 : Calling the memory error detection parameter configuration file through the basic input and output system to create the memory error detection parameter configuration menu.
[0163] In this embodiment, after the memory error detection parameter configuration file is created, the memory error detection parameter configuration file is called by the basic input and output system to achieve the creation of the memory error detection parameter configuration menu.
[0164] In this embodiment, when creating a memory error detection parameter configuration menu, first plan the items that need to be displayed in the memory error detection parameter configuration menu, then create a corresponding sub-file to implement the planned function, and then set the corresponding function to implement the reading of the memory error detection parameter configuration menu, so that the user can intuitively see and set the error detection parameters of the DDR5 memory.
[0165] refer to Figure 3 , Figure 3 is a flowchart of memory error detection parameter initialization proposed in an embodiment of the present application, such as Figure 3 As shown, the server is powered on first. After powering on, the DDR5 memory is initialized, and the memory error detection parameters are initialized. At this time, the memory error detection mode is determined. If the mode is automatic, the time interval parameter, error type parameter, error threshold parameter, and error reporting control parameter are read. At this time, the error detection parameter loading is completed. If the memory error detection mode is manual, the parameters are not loaded.
[0166] In another embodiment of the present application, an out-of-band Redfile script can be set up, in which relevant codes for setting memory error detection parameters are encapsulated. The memory error detection parameter configuration menu can be opened by running the script. In this way, the memory error detection parameters can be set at any time during the operation of the system, and there is no requirement to set the memory error detection parameters when the system starts, making the setting of the memory error detection parameters more convenient and quick.
[0167] In the above embodiment of the present application, the basic input and output system displays the memory error check and erase related parameters to the user in the form of a memory error detection parameter configuration menu in the configuration interface, and sets the DDR5 ECS parameters: ECS mode, ECS refresh time interval, ECS error mode, ECS error threshold and ECS error report, thereby realizing the visualization of memory error detection parameters, making the memory error detection function play the greatest role, ensuring accurate detection and warning of the server's DDR5 memory failure, and improving the ability of the server system to operate stably. On the one hand, in the research and development and testing stage, it provides convenience for R&D and test personnel to modify the memory error detection parameters for server system configurations and requirements with different configurations, thereby improving the efficiency of verifying the memory error detection function. On the other hand, in the server factory production and customer operation and maintenance stages, it allows customers to set the memory error detection parameters in an in-band or out-of-band manner according to the actual operation of their own servers, thereby further improving the stable operation capability of the entire server system.
[0168] Based on the same inventive concept, an embodiment of the present application provides a memory error detection parameter setting device. Figure 4 , Figure 4 FIG. 4 is a schematic diagram of a memory error detection parameter setting device 400 proposed in an embodiment of the present application. Figure 4 As shown, the device comprises:
[0169] The menu startup module 401 is used to start the memory error detection parameter configuration menu in response to receiving a memory error detection parameter configuration menu startup instruction when the server enters the startup state, and the memory error detection parameter configuration menu is used for configuring memory error checking and erasing;
[0170] A parameter receiving module 402, used to receive various parameters input by the user in the memory error detection parameter configuration menu;
[0171] A parameter saving module 403, configured to save the various parameters in response to the user inputting a configuration completion instruction in the memory error detection parameter configuration menu;
[0172] The parameter loading module 404 is used to load the various parameters in the memory error detection parameter configuration menu into the memory when the server enters the restart state.
[0173] Optionally, the device further comprises:
[0174] The menu creation module is used to create the memory error detection parameter configuration menu in the basic input and output system of the server.
[0175] Optionally, the menu creation module includes:
[0176] A configuration file creation submodule, used to create a memory error detection parameter configuration file corresponding to the memory error detection parameter configuration menu;
[0177] The menu creation submodule is used to call the memory error detection parameter configuration file through the basic input and output system to create the memory error detection parameter configuration menu.
[0178] Optionally, the configuration file creation submodule includes:
[0179] A first creation submodule, used to create a first memory error detection parameter configuration subfile, wherein the first memory error detection parameter configuration subfile is used to control the switch of the memory error detection parameter configuration menu and the static data setting;
[0180] A second creation submodule is used to create a second memory error detection parameter configuration subfile, wherein the second memory error detection parameter configuration subfile is used for a string definition of each option value in the memory error detection parameter configuration menu;
[0181] A third creation submodule, used to create a third memory error detection parameter configuration subfile, wherein the third memory error detection parameter configuration subfile is used to create options and option values in the memory error detection parameter configuration menu;
[0182] The fourth creation submodule is used to create a fourth memory error detection parameter configuration subfile, and the fourth memory error detection parameter configuration subfile is used for code implementation of parameter function settings in the memory error detection parameter configuration menu.
[0183] Optionally, the fourth memory error detection parameter configuration subfile includes:
[0184] A first function is used to set a configuration mode of the memory error detection parameter configuration menu according to a mode option of the memory error detection parameter configuration menu;
[0185] The second function is used to modify the memory detection time interval according to the time interval set on the memory error detection parameter configuration menu;
[0186] A third function is used to load the error threshold set on the memory menu into a corresponding register;
[0187] A fourth function is used to load the error mode set on the memory menu into a corresponding register;
[0188] The fifth function is used to set the error reporting mode according to the error reporting control option of the memory error detection parameter configuration menu.
[0189] Optionally, in response to receiving a memory error detection parameter configuration menu start instruction, starting the memory error detection parameter configuration menu includes:
[0190] In response to receiving the memory menu configuration menu start instruction, calling a memory error detection parameter configuration file;
[0191] The memory error detection parameter configuration file is run to load the memory error detection parameter configuration menu into a display device corresponding to the server.
[0192] Optionally, the parameter loading module includes:
[0193] A first reading submodule, configured to read a first option value of a mode option in the memory error detection parameter configuration menu through a first function;
[0194] A first loading submodule, used for loading a corresponding value into a register corresponding to the mode option according to the first option value;
[0195] A second reading submodule, used for reading a second option value of the time interval option in the memory error detection parameter configuration menu through a second function;
[0196] A second loading submodule, used for loading the time corresponding to the second option value into the register corresponding to the time interval option;
[0197] A third reading submodule, used for reading a third option value of the error threshold option in the memory error detection parameter configuration menu through a third function;
[0198] A third loading submodule, used to load the error threshold corresponding to the third option value into the register corresponding to the error threshold option;
[0199] A fourth reading submodule, used for reading a fourth option value of the error mode option in the memory error detection parameter configuration menu through a fourth function;
[0200] a fourth loading submodule, configured to load a corresponding value into a register corresponding to the error mode option according to the fourth option value;
[0201] A fifth reading submodule, used for reading the error reporting control option in the memory error detection parameter configuration menu through a fifth function;
[0202] The reporting determination submodule is used to determine whether to report memory error information according to the error reporting control option.
[0203] Based on the same inventive concept, another embodiment of the present application provides a readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the memory error detection parameter setting method as described in any of the above embodiments of the present application.
[0204] Based on the same inventive concept, another embodiment of the present application provides an electronic device, Figure 5 It is a schematic diagram of an electronic device 500 proposed in one embodiment of the present application, including a memory 502, a processor 501 and a computer program stored in the memory and executable on the processor, and when the processor executes, the steps in the memory error detection parameter setting method described in any of the above embodiments of the present application are implemented.
[0205] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0206] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0207] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0208] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0209] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0210] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0211] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0212] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0213] The memory error detection parameter setting method, device, equipment and storage medium provided by the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for setting memory error detection parameters, characterized in that: The method comprises: When the server enters the startup state, in response to receiving a memory error detection parameter configuration menu startup instruction, the memory error detection parameter configuration menu is started, and the memory error detection parameter configuration menu is used for configuring memory error checking and erasing; Receiving various parameters input by a user in the memory error detection parameter configuration menu; In response to the user inputting a configuration completion instruction in the memory error detection parameter configuration menu, saving the various parameters; When the server enters a restart state, the various parameters in the memory error detection parameter configuration menu are loaded into the memory.
2. The memory error detection parameter setting method according to claim 1, characterized in that: In response to receiving the memory error detection parameter configuration menu start instruction, before starting the memory error detection parameter configuration menu in the display device, the method further includes: The memory error detection parameter configuration menu is created in the basic input and output system of the server.
3. The memory error detection parameter setting method according to claim 2, characterized in that: The step of creating the memory error detection parameter configuration menu in the basic input and output system of the server includes: Creating a memory error detection parameter configuration file corresponding to the memory error detection parameter configuration menu; The memory error detection parameter configuration file is called by the basic input and output system to create the memory error detection parameter configuration menu.
4. The memory error detection parameter setting method according to claim 3, characterized in that: The step of creating a memory error detection parameter configuration file corresponding to the memory error detection parameter configuration menu includes: Creating a first memory error detection parameter configuration subfile, wherein the first memory error detection parameter configuration subfile is used to control the switch of the memory error detection parameter configuration menu and static data settings; Creating a second memory error detection parameter configuration subfile, wherein the second memory error detection parameter configuration subfile is used for character string definition of each option value in the memory error detection parameter configuration menu; Creating a third memory error detection parameter configuration subfile, wherein the third memory error detection parameter configuration subfile is used for creating options and option values in the memory error detection parameter configuration menu; A fourth memory error detection parameter configuration subfile is created, wherein the fourth memory error detection parameter configuration subfile is used for code implementation of parameter function settings in the memory error detection parameter configuration menu.
5. The memory error detection parameter setting method according to claim 4, characterized in that: The fourth memory error detection parameter configuration subfile includes: A first function is used to set a configuration mode of the memory error detection parameter configuration menu according to a mode option of the memory error detection parameter configuration menu; The second function is used to modify the memory detection time interval according to the time interval set on the memory error detection parameter configuration menu; A third function is used to load the error threshold set on the memory menu into a corresponding register; A fourth function is used to load the error mode set on the memory menu into a corresponding register; The fifth function is used to set the error reporting mode according to the error reporting control option of the memory error detection parameter configuration menu.
6. The memory error detection parameter setting method according to claim 1, characterized in that: In response to receiving a memory error detection parameter configuration menu start instruction, starting the memory error detection parameter configuration menu includes: In response to receiving the memory menu configuration menu start instruction, calling a memory error detection parameter configuration file; The memory error detection parameter configuration file is run to load the memory error detection parameter configuration menu into a display device corresponding to the server.
7. The memory error detection parameter setting method according to claim 1, characterized in that: The step of loading the various parameters in the memory error detection parameter configuration menu into the memory includes: Reading a first option value of a mode option in the memory error detection parameter configuration menu through a first function; According to the first option value, loading a corresponding value into a register corresponding to the mode option; Reading a second option value of the time interval option in the memory error detection parameter configuration menu through a second function; Loading the time corresponding to the second option value into the register corresponding to the time interval option; Reading a third option value of the error threshold option in the memory error detection parameter configuration menu through a third function; Loading the error threshold corresponding to the third option value into the register corresponding to the error threshold option; Reading a fourth option value of the error mode option in the memory error detection parameter configuration menu through a fourth function; According to the fourth option value, loading a corresponding value into a register corresponding to the error mode option; Reading the error reporting control option in the memory error detection parameter configuration menu through the fifth function; Determine whether to report memory error information according to the error reporting control option.
8. A memory error detection parameter setting device, characterized in that: The device comprises: A menu startup module, used for starting the memory error detection parameter configuration menu in response to receiving a memory error detection parameter configuration menu startup instruction when the server enters the startup state, wherein the memory error detection parameter configuration menu is used for configuring memory error checking and erasing; A parameter receiving module, used for receiving various parameters input by a user in the memory error detection parameter configuration menu; A parameter saving module, configured to save the various parameters in response to the user inputting a configuration completion instruction in the memory error detection parameter configuration menu; A parameter loading module is used to load the various parameters in the memory error detection parameter configuration menu into the memory when the server enters a restart state.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 7 are implemented.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
