Fault detection method and device of DRAM (Dynamic Random Access Memory), storage medium and electronic equipment
The method and device enhance DRAM fault detection in Intel architecture systems by leveraging address mapping information to automate fault detection and repair, using redundant rows and user prompts, addressing complexity and duration issues in existing methods.
Patent Information
- Application Number
- CN202411071360.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-12-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing DRAM fault detection methods in Intel architecture computer systems are lengthy and complex, failing to efficiently address memory stability issues due to signal latency between memory particles and requiring manual intervention for fault resolution.
A method and device that utilize address decoding mapping information from the PEI stage to accurately detect DRAM faults in the DXE stage, employing redundant rows for repair and prompting chip replacement when necessary, integrating fault detection and repair into the DXE stage for automated system maintenance.
This approach enhances system reliability and reduces downtime by accurately locating and repairing DRAM faults, utilizing redundant rows for cost-effective maintenance and providing clear user prompts for manual intervention when needed, thus improving stability and user satisfaction.
Smart Images

Figure CN119065879A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a DRAM fault detection method, device, storage medium and electronic device. Background Art
[0002] In order to test the stability of memory and optimize memory parameters. Although memory particles have been tested before leaving the factory, factory testing can only test the quality of a single memory particle. When memory particles are combined into a memory stick, signal latency will naturally form between the central particle and the outermost particle (because the signal lines are of different lengths), so it is necessary to conduct further testing to confirm stability and optimize parameters. In Intel architecture computer systems, the current memory address mapping method is mostly inferred by repeated hammering (Rowhammer) and then cross-comparison. The memory testing process is complicated and time-consuming. Summary of the invention
[0003] The embodiments of the present application provide a DRAM fault detection method, a DRAM fault detection device, a storage medium and an electronic device, which can solve the problem that the processor in the prior art has a long fault detection step and takes a long time. The technical solution is as follows:
[0004] In a first aspect, an embodiment of the present application provides a DRAM fault detection method, the method comprising:
[0005] In the PEI stage, the address decoding mapping information of the DRAM is obtained according to the MRC code, and the address decoding mapping information is transmitted to the DXE stage;
[0006] In the DXE stage, the DRAM is fault-detected, and when a memory address of the DRAM is detected to be faulty, the channel address information, rank address information, bank address information, chip address information, row address information, and column address information corresponding to the memory address are queried according to the address mapping information;
[0007] Detecting whether a preset number of redundant rows exist in the DRAM;
[0008] If yes, repair the row indicated by the row address information in the DRAM using the redundant row;
[0009] If not, the user is prompted to replace the DRAM chip indicated by the chip address information.
[0010] In a second aspect, an embodiment of the present application provides a DRAM fault detection device, the device comprising:
[0011] A transfer unit, used for acquiring address decoding mapping information of DRAM according to the MRC code in the PEI stage, and transferring the address decoding mapping information to the DXE stage;
[0012] a query unit, configured to perform fault detection on the DRAM in the DXE stage, and when a memory address of the DRAM is detected to be faulty, query the channel address information, rank address information, bank address information, chip address information, row address information, and column address information corresponding to the memory address according to the address mapping information;
[0013] A detection unit, used for detecting whether the DRAM has a preset number of redundant rows;
[0014] a repair unit, configured to, if yes, repair the row indicated by the row address information in the DRAM using the redundant row;
[0015] The prompting unit is used to prompt the user to replace the DRAM chip indicated by the chip address information if the answer is no.
[0016] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.
[0017] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a memory controller and the above-mentioned DRAM fault detection device.
[0018] The beneficial effects brought about by the technical solutions provided by some embodiments of the present application include at least:
[0019] In a computer system based on Intel architecture, by obtaining the address decoding mapping information of DRAM in the PEI stage and using this information for fault detection in the DXE stage, the technical solution can accurately locate the memory address of the error in DRAM. Once a memory address error is detected, the detailed address information such as channel, rank, bank, chip, row and column corresponding to the address can be further parsed, providing an accurate basis for subsequent fault repair. After detecting a DRAM fault, the technical solution first checks whether the DRAM has a preset number of redundant rows. If it does, these redundant rows are used to repair the erroneous rows without replacing the entire DRAM chip, thereby saving cost and time. This redundancy-based repair mechanism improves the reliability and maintenance efficiency of the system. For DRAM faults that do not have enough redundant rows to repair, the technical solution provides a flexible fault handling strategy. The user will be prompted to replace the erroneous DRAM chip to ensure the continued stable operation of the system. This processing method takes into account both cost-effectiveness and system availability and maintainability. By timely detecting and repairing faults in DRAM, the technical solution significantly improves the stability and reliability of the system. The risk of system crash and data loss caused by DRAM failure is reduced, providing users with a more stable and reliable computing environment. This technical solution integrates the function of DRAM fault detection and repair in the DXE stage, making the system have stronger self-repair capabilities. This capability helps to reduce manual intervention and downtime, and improves the overall performance and availability of the system. Through the automated fault detection and repair process, this technical solution reduces the confusion and anxiety of users when facing DRAM failures. It can quickly and accurately locate problems and provide solutions, thereby improving user satisfaction and trust. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art 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 creative work.
[0021] Figure 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0022] Figure 2 It is a flowchart of a DRAM fault detection method provided in an embodiment of the present application;
[0023] Figure 3 It is a structural schematic diagram of a DRAM fault detection device provided by the present application. DETAILED DESCRIPTION
[0024] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
[0025] It should be noted that the DRAM fault detection method provided in the present application is generally executed by a processor, and accordingly, the DRAM fault detection method is generally set in the processor.
[0026] It should be noted that the DRAM fault detection method provided in the present application is generally executed by a processor.
[0027] Figure 1 A schematic structural diagram of an electronic device that can be applied to the present application is shown.
[0028] See also Figure 1 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 1 As shown, the electronic device includes: a processor and a memory, and the processor has a built-in memory controller for performing read and write operations on the memory.
[0029] The processor includes a central processing unit (CPU) and a mainboard (MainBoard);
[0030] The CPU uses various interfaces and lines to connect the various parts of the entire system, and executes various functions of the chip and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory, and calling data stored in the memory. The CPU is an Intel series processor.
[0031] The memory may include a random access memory (Random Access Memory, RAM), may include a read-only memory (Read-Only Memory), or may be a storage device on a network server. Figure 1 The memory tested is DRAM (Dynamic Random Access Memory).
[0032] exist Figure 1 In the memory controller shown in FIG. 1 , the master controller can be used to call the application program stored in the memory and specifically execute the following operations: Figure 2 The specific process can be referred to Figure 2 As shown, no further description is given here.
[0033] The following will be combined with the attached Figure 2, the DRAM fault detection method provided in the embodiment of the present application is described in detail. Among them, the DRAM fault detection device in the embodiment of the present application can be Figure 1 A DRAM failure detection apparatus is shown.
[0034] See also Figure 2 , a flow chart of a DRAM fault detection method is provided for an embodiment of the present application. Figure 2 As shown, the method of the embodiment of the present application may include the following steps:
[0035] S201. In the PEI stage, the address decoding mapping information of the DRAM is obtained according to the MRC code, and the address decoding mapping information is transferred to the DXE stage.
[0036] Among them, after the system is powered on, the processor first executes the basic startup code in the BIOS or UEFI firmware, which is responsible for initializing the basic operating environment of the CPU and loading the PEI module. In the PEI stage, the processor calls and executes the MRC (Memory Reference Code) code. MRC is a program specifically used for DRAM initialization, which has a deep understanding of the physical and logical structure of DRAM. The MRC code first scans all DRAM modules installed on the system motherboard and identifies basic information such as the type, capacity, and speed of the DRAM modules. According to the characteristics of the DRAM module, the MRC code configures the DRAM's operating parameters, such as timing, voltage, frequency, etc., to ensure that the DRAM can work stably. During the configuration process, the MRC code generates the address decoding mapping information of the DRAM. This information is used to describe the internal organizational structure of the DRAM in detail, including the mapping relationship between channel, rank, bank, chip, row, and column, which is crucial for subsequent memory access and fault detection. The MRC code stores the generated address decoding mapping information in a location accessible to the processor, which is usually a CPU register, a specific area in the memory, or a data structure in the firmware. After the PEI stage completes its task, the system enters the DXE (Driver Execution Environment) stage. Before the DXE stage begins, the PEI stage passes all important information, including address decoding mapping information, to the DXE stage. This transfer process may be achieved by directly copying data, setting global variables, updating data structures in the firmware, or triggering the DXE stage to load a specific driver. At the beginning of the DXE stage, all information passed from the PEI stage is checked and received, including the address decoding mapping information of the DRAM.
[0037] S202. In the DXE stage, DRAM is fault-detected. When a DRAM memory address error is detected, the channel address information, rank address information, bank address information, chip address information, row address information, and column address information corresponding to the memory address are queried according to the address mapping information.
[0038] Among them, after the system transitions from the PEI stage to the DXE stage, the processor executes the initialization code of the DXE stage and loads the necessary drivers and services. The DXE stage prepares or loads a tool or module specifically for DRAM fault detection. This tool may be an independent driver or a function integrated in the firmware. The processor starts the DRAM fault detection tool, which traverses all address spaces of the DRAM and performs operations such as read and write tests to check the reliability of each memory address. If the tool finds that a certain memory address is wrong during the detection process (for example, the read data is inconsistent with the written data), the error address will be recorded and marked as a faulty address. When a DRAM memory address error is detected, the processor accesses the address mapping information stored in the PEI stage. This information describes in detail the physical organization structure of the DRAM and its mapping relationship with the logical address. The processor uses the address mapping information to resolve the fault address. Specifically, the logical address (i.e., the faulty memory address) is converted into the corresponding physical address components, including channel address information, rank address information, bank address information, chip address information, row address information, and column address information. By resolving the address, the processor can accurately locate the physical location of the error in the DRAM. This is crucial for subsequent troubleshooting or processing. The bit width of the memory address is 32 bits or 64 bits.
[0039] S203 , detecting whether there are a preset number of redundant rows in the DRAM.
[0040] Among them, the processor first needs to access the configuration information of the DRAM module through a specific hardware interface or firmware service. This information is usually stored in one or more registers of the DRAM module itself, and may also be stored in the BIOS or UEFI firmware of the motherboard. The processor parses this configuration information to obtain various parameters about the DRAM module, including whether it supports the redundant row function and the number of redundant rows. The processor checks whether the configuration information of the DRAM module clearly indicates that the redundant row function is supported. If not, there is no need to further detect the number of redundant rows. If the DRAM module supports redundant rows, the processor will read and record the number of redundant rows, which may be a value directly stored in the configuration information or calculated (for example, based on the total capacity of the DRAM module and the proportion occupied by redundant rows). The processor also needs to obtain a preset redundant row number threshold. This threshold may be set by the system manufacturer or user according to specific reliability requirements, and the number threshold may be stored in a setting item of the BIOS / UEFI, or as one of the system initialization parameters. The processor compares the number of redundant rows actually available in the DRAM module with the preset threshold. If the number of redundant rows in the DRAM module reaches or exceeds the preset threshold, the processor will assume that the DRAM has sufficient redundant resources to cope with potential row failures and may continue to perform other system initialization tasks. If the number of redundant rows is insufficient, the processor may log an error or warning message and notify the user through the system log, screen display, or other means.
[0041] S204: If yes, repair the row indicated by the row address information in the DRAM using the redundant row according to the hPPR mechanism.
[0042] Among them, the processor first performs a memory stress test on the DRAM through a preset test system to detect and locate the row with faults. This process may include a variety of means such as read and write tests and address scanning to simulate high load conditions in actual use, thereby triggering potential faults. The test system records and returns the specific address information of the faulty row to the processor. This information is the basis for the subsequent repair process. The processor checks whether there are enough redundant row resources in the DRAM module. According to the DDR4 standard, DRAM capacities of 8Gb and above must be equipped with PPR (post-package repair) functions, including redundant rows. The processor needs to configure a series of system parameters and DRAM settings to ensure that the hPPR repair process can proceed smoothly. This may include turning off functions such as DBI (data bus inversion) and CRC (cyclic redundancy check), as well as setting security mechanisms such as Guard Key to prevent illegal hPPR operations. The processor sends an hPPR repair command to the DRAM. This command usually includes the address information of the faulty row and instructions to instruct the DRAM to replace it with a redundant row.
[0043] After the DRAM receives the hPPR repair command, its internal row decoder will search for an available redundant row in the DRAM module for mapping based on the address information of the faulty row. This mapping process is completed at the hardware level, ensuring that the data transmission after the repair can proceed smoothly. After the address mapping is completed, the DRAM will migrate the data in the faulty row (if any) to the redundant row. This migration process may be automatic or may require further instructions from the processor. At the same time, the DRAM will also perform necessary tests and verifications on the redundant row to ensure that it can work properly. In order to verify whether the repair is successful, the processor will write preset test data to the repaired redundant row (that is, the address of the original faulty row). This data usually has a specific pattern or value to facilitate the subsequent verification process. The processor then reads the test data from the redundant row and compares it with the data at the time of writing. If the two are consistent, it means that the repair is successful; if they are inconsistent, it means that the repair failed or there are other problems. If the repair is successful, the processor needs to record the information of this repair, including the address of the faulty row, the address of the redundant row used, etc. This information is very important for subsequent maintenance and management. If the repair fails or encounters other problems, the processor needs to handle it accordingly according to the system's error handling mechanism. This may include recording error logs, triggering alert notifications, attempting other repair methods, etc.
[0044] S205: If no, prompt the user to replace the DRAM chip indicated by the chip address information.
[0045] Among them, if the processor determines that the faulty row cannot be repaired through the internal mechanism, it will proceed to the next step, that is, considering replacing the DRAM chip. The processor uses the address information of the faulty row (including chip address information) to determine which DRAM chip contains these faulty rows. The chip address information is usually used to identify a specific chip or chipset in the DRAM module. The processor generates a replacement prompt based on the determined chip address information. This prompt will inform the user which DRAM chip needs to be replaced and may include the specific location information of the chip (such as slot number, chip number, etc.). The processor displays the replacement prompt to the user in some way (such as system log, screen display, BIOS / UEFI interface, etc.). The processor may need to wait for the user to view the prompt and respond. This usually involves the user shutting down the system, removing the DRAM module, replacing the specified DRAM chip, and restarting the system. After the user completes the replacement of the DRAM chip and restarts the system, the processor can perform a series of verification tests to confirm whether the fault has been resolved. These tests may include memory stress testing, address scanning, etc. to ensure that the DRAM module is now able to work properly. If the replacement is successful, the processor can record the information of this replacement, including the replaced DRAM chip number, timestamp, etc. This information is very useful for future maintenance and troubleshooting. If the problem still exists after the replacement (for example, the fault still exists or the system cannot start), the processor needs to handle it accordingly according to the system's error handling mechanism. This may include recording an error log, triggering an alarm notification, providing further troubleshooting suggestions, etc.
[0046] In some embodiments of the present application, the MRC code is obtained from the Flash memory of the motherboard. The Flash memory on the motherboard (usually the location where the BIOS or UEFI firmware is stored) is used to store the system's startup code and configuration information. These codes and information are loaded and executed by the processor when the system starts to initialize the various components of the system.
[0047] In some embodiments of the present application, the performing fault detection on the DRAM includes:
[0048] Load the memory test code and write the target data according to the memory address;
[0049] After writing is completed, reading data according to the memory address;
[0050] Compare whether the written target data and the read data are consistent. If not, it is determined that the memory address of the DRAM fails.
[0051] Among them, the target data is all 1 data or all 0 data. In the DXE (Driver Execution Environment) stage or an appropriate stage of system startup, the processor loads and executes the memory test code. These test codes usually contain a series of instructions for verifying the function and reliability of DRAM. The memory test code first selects one or more memory addresses as test targets. Then, the predetermined target data is written to these addresses. These data can be simple patterns (such as all 0, all 1, alternating 0 and 1, etc.) or more complex data sequences for subsequent error detection. After the data is written, the test code will access the previously written memory address again and read the data stored there. This step is the key to verifying data integrity and DRAM storage function. The test code compares the previously written target data with the data now read from DRAM. This comparison process uses logical operations or bit comparison algorithms to ensure that every bit of the data is exactly the same. If the read data is exactly the same as the written target data, then it can be considered that the DRAM storage function of the memory address is normal. If the read data is inconsistent with the written target data, then it can be determined that the memory address of the DRAM has failed. This failure may be caused by hardware defects, electrical interference, timing problems or other factors. Further, the loading memory test code includes:
[0052] The memory test code is read from an external mobile storage device or from a network server.
[0053] The process of reading the memory test code from the external mobile storage device includes: during system startup or operation, the user can connect the mobile storage device (such as a USB flash drive, a mobile hard disk, etc.) containing the memory test code to the computer. The operating system will identify the newly connected mobile storage device and mount the device automatically or according to user instructions to make its file system accessible. The system (which may be a BIOS / UEFI environment, an operating system, or a specialized diagnostic tool) will scan the mounted mobile storage device, find the memory test code file, and load it into the memory for execution.
[0054] Reading the memory test code from the network server includes: ensuring that the computer is connected to the network and has permission to access the required network server and the necessary network configuration. The system sends a request to the specified network server through HTTP, FTP or other network protocols to download the memory test code file. This process may require the user to enter the server URL address, authentication information, etc. After the download is complete, the system will perform necessary verification on the test code file (such as checking file integrity, signature, etc.) to ensure its security and correctness. After the verification is passed, the system loads the test code into memory and executes it.
[0055] Furthermore, the read memory test code is decrypted, and the decrypted memory test code is integrity checked, and the check result is passed.
[0056] In the embodiment of the present application, in the PEI (pre-EFI initialization) stage, the address decoding mapping information of DRAM is obtained through MRC (memory reference code), and this key information is seamlessly passed to the DXE (driver execution environment) stage. This process ensures the continuity and accuracy of the memory address mapping information, and provides a solid foundation for subsequent memory fault detection and repair.
[0057] In the DXE stage, when a DRAM memory address error occurs, the technical solution can quickly use the previously transmitted address decoding mapping information to accurately query the detailed hierarchical information corresponding to the error memory address, including channel, rank, bank, chip, row and column address information. This precise positioning capability greatly improves the efficiency of troubleshooting, allowing the problem to be quickly locked in the smallest fault range.
[0058] The technical solution provides two flexible processing methods for detected DRAM failures. First, if there are a preset number of redundant rows in the DRAM, the system will automatically use these redundant rows to repair the faulty rows, thereby avoiding the risk of data loss and system instability. Second, if the redundant rows are insufficient or cannot be repaired, the system will promptly prompt the user to replace the specific DRAM chip (indicated by chip address information), ensuring that the failure can be resolved promptly and effectively.
[0059] Through fast and accurate fault location and flexible fault handling mechanism, this technical solution significantly improves the stability and reliability of the system. Whether it is automatic repair or manual replacement, it can effectively reduce the system downtime caused by DRAM failure, reduce maintenance costs and user inconvenience.
[0060] For users, this technical solution greatly simplifies the troubleshooting process by providing detailed fault information and clear replacement instructions. Users do not need to have professional technical knowledge and can quickly complete the DRAM chip replacement work according to the system prompts, thereby improving the overall user experience.
[0061] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0062] See also Figure 3, which shows a schematic diagram of the structure of a DRAM fault detection device provided by an exemplary embodiment of the present application, hereinafter referred to as the DRAM fault detection device 3. The DRAM fault detection device 3 can be implemented as all or part of a processor through software, hardware, or a combination of both. The DRAM fault detection device 3 includes: a transmission unit 301, a query unit 302, a detection unit 303, a repair unit 304, and a prompt unit 305.
[0063] A transfer unit 301 is used to obtain address decoding mapping information of DRAM according to the MRC code in the PEI stage, and transfer the address decoding mapping information to the DXE stage;
[0064] A query unit 302 is used to perform fault detection on the DRAM in the DXE stage, and when a memory address of the DRAM is detected to be wrong, query the channel address information, rank address information, bank address information, chip address information, row address information and column address information corresponding to the memory address according to the address mapping information;
[0065] A detection unit 303, used to detect whether the DRAM has a preset number of redundant rows;
[0066] A repair unit 304 is configured to, if yes, repair the row indicated by the row address information in the DRAM using the redundant row;
[0067] The prompting unit 305 is used to prompt the user to replace the DRAM chip indicated by the chip address information if the answer is no.
[0068] In one or more possible embodiments, it further includes:
[0069] The acquisition unit is used to acquire the MRC code from the Flash memory of the mainboard.
[0070] In one or more possible embodiments, the performing fault detection on the DRAM includes:
[0071] Load the memory test code and write the target data according to the memory address;
[0072] After writing is completed, reading data according to the memory address;
[0073] Compare whether the written target data and the read data are consistent. If not, it is determined that the memory address of the DRAM fails.
[0074] In one or more possible embodiments, the loading memory test code includes:
[0075] The memory test code is read from an external mobile storage device or from a network server.
[0076] In one or more possible embodiments, it further includes:
[0077] The processing unit is used to decrypt the read memory test code and perform integrity check on the decrypted memory test code, and the check result is pass.
[0078] In one or more possible embodiments, the target data is all-1 data or all-0 data.
[0079] In one or more possible embodiments, the bit width of the memory address is 32 bits or 64 bits.
[0080] It should be noted that, when the device 3 provided in the above embodiment executes the DRAM fault detection method, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above functions. In addition, the DRAM fault detection device provided in the above embodiment and the DRAM fault detection method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.
[0081] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0082] The present application also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor as described above. Figure 2 The method steps of the embodiment shown in the figure can be found in the specific implementation process. Figure 2 The specific description of the illustrated embodiment will not be repeated here.
[0083] The present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the DRAM fault detection method described in the above embodiments.
[0084] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0085] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A DRAM fault detection method, It is characterized in that include: In the PEI stage, the address decoding mapping information of the DRAM is obtained according to the MRC code, and the address decoding mapping information is transmitted to the DXE stage; In the DXE stage, the DRAM is fault-detected, and when a memory address of the DRAM is detected to be faulty, the channel address information, rank address information, bank address information, chip address information, row address information, and column address information corresponding to the memory address are queried according to the address mapping information; Detecting whether a preset number of redundant rows exist in the DRAM; If yes, repair the row indicated by the row address information in the DRAM using the redundant row; If not, the user is prompted to replace the DRAM chip indicated by the chip address information.
2. The method according to claim 1, It is characterized in that Also includes: Get the MRC code from the mainboard's Flash memory.
3. The method according to claim 1 or 2, It is characterized in that The performing fault detection on the DRAM includes: Load the memory test code and write the target data according to the memory address; After writing is completed, reading data according to the memory address; Compare whether the written target data and the read data are consistent. If not, it is determined that the memory address of the DRAM fails.
4. The method according to claim 3, It is characterized in that The loading memory test code includes: The memory test code is read from an external mobile storage device or from a network server.
5. The method according to claim 4, It is characterized in that Also includes: The read memory test code is decrypted, and the decrypted memory test code is integrity checked, and the check result is passed.
6. The method according to claim 4 or 5, It is characterized in that The target data is all-1 data or all-0 data.
7. The method according to claim 6, It is characterized in that The bit width of the memory address is 32 bits or 64 bits.
8. A DRAM fault detection device, It is characterized in that include: A transfer unit, used for acquiring address decoding mapping information of DRAM according to the MRC code in the PEI stage, and transferring the address decoding mapping information to the DXE stage; a query unit, configured to perform fault detection on the DRAM in the DXE stage, and when a memory address of the DRAM is detected to be faulty, query the channel address information, rank address information, bank address information, chip address information, row address information, and column address information corresponding to the memory address according to the address mapping information; A detection unit, used for detecting whether the DRAM has a preset number of redundant rows; a repair unit, configured to, if yes, repair the row indicated by the row address information in the DRAM using the redundant row; The prompting unit is used to prompt the user to replace the DRAM chip indicated by the chip address information if the answer is no.
9. A computer storage medium, It is characterized in that The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 7.
10. An electronic device, It is characterized in that include: A memory, a memory controller, and a DRAM failure detection device as claimed in claim 8.
Citation Information
Patent Citations
Fault repair method and device, electronic equipment and storage medium
CN116069538A
Memory fault repairing method
CN116483630A
Memory fault detection method and device, computer equipment and storage medium
CN117421162A
Systems and methods for address fault detection
US20230315564A1
Cited By
Memory fault processing method and device, electronic equipment and readable storage medium
CN120256185A
