A detection and repair method, device, equipment and readable storage medium

By using detection and repair methods and devices when the memory is not occupied, single-bit fault detection and repair are performed on the memory, solving the problem of low efficiency in the existing technology, achieving fast and economical fault repair, and improving user experience. experience.

CN113900843BActive Publication Date: 2024-09-17LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111049042.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-08
Publication Date
2024-09-17
Estimated Expiration
2041-09-08

AI Technical Summary

Technical Problem

In the existing technology, repairing single-bit faults in memory requires dismantling the device, which is inefficient and affects user experience.

Method used

Provide a detection and repair method and device, which uses at least a first instruction to detect a memory, determines whether there is a fault based on the detection result, and uses at least a second instruction to repair the memory when the memory is not occupied, including writing operations and reading Take the operation, generate repair options and display them to the user, and perform repairs after obtaining user confirmation.

Benefits of technology

Memory faults can be quickly and efficiently detected and repaired without dismantling the device, saving time and labor costs, reducing maintenance costs, and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113900843B
    Figure CN113900843B
Patent Text Reader

Abstract

The present application discloses a detection and repair method, device, equipment and readable storage medium, the method comprising: in response to the state that the local memory is not occupied, using at least a first instruction to detect the memory, obtaining a detection result, and when it is determined that the memory is faulty according to the detection result, using at least a second instruction to repair the memory. By implementing the present application, the memory can be detected and repaired quickly and efficiently without disassembling the electronic device and without additional testing software and equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of fault repair technology, and in particular to a detection and repair method, device, equipment and readable storage medium. Background Art

[0002] Currently, repairing memory requires disassembling the memory from the computer and having professionals use specific testing equipment and software to repair the memory, which is inefficient. Summary of the invention

[0003] In view of this, the embodiments of the present application provide a detection and repair method, device, equipment and readable storage medium to solve the problem that in the prior art, when repairing a single-bit fault in memory, the memory is disassembled from the computer and repaired by professionals using specific testing equipment and software, which is inefficient and affects the user experience.

[0004] In order to solve the above problems, on the first aspect, an embodiment of the present application provides a detection and repair method, including: in response to a state in which the local memory is not occupied, using at least a first instruction to detect the memory to obtain a detection result; when it is determined that the memory is faulty according to the detection result, using at least a second instruction to repair the memory.

[0005] Optionally, the state in which the local memory is not occupied includes that the memory is in an initialization stage and the local system process is in an ending stage.

[0006] Optionally, using at least a first instruction to detect the memory includes: using at least the first instruction to perform a write operation and a read operation on the memory.

[0007] Optionally, the detection and repair method further includes: monitoring a third instruction for triggering detection of the memory; and when the third instruction is monitored, using at least the first instruction to detect the memory to obtain a detection result.

[0008] Optionally, when it is determined that the memory is faulty according to the detection result, and between repairing the memory using at least a second instruction, the detection and repair method further includes: generating a repair option according to the detection result; and displaying the repair option to a user.

[0009] Optionally, after presenting the repair option to the user, the detection and repair method further includes: obtaining a confirmation operation performed by the user on the repair option; and repairing the memory using at least a second instruction according to the confirmation operation.

[0010] Optionally, after repairing the memory using at least the second instruction, the detection and repair method further includes: displaying the memory repair result to the user.

[0011] Optionally, at least a first instruction is used to perform write operations and read operations on the memory, including: writing at least one detection paradigm into the memory; performing a first operation on the memory; reading the content in the memory; comparing the content with the detection paradigm to obtain a detection result.

[0012] In a second aspect, an embodiment of the present application provides a detection and repair device, comprising: a detection unit, for responding to a state in which the local memory is not occupied, to detect the memory using at least a first instruction to obtain a detection result; and a repair unit, for repairing the memory using at least a second instruction when determining that the memory is faulty based on the detection result.

[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor executes a detection and repair method as in the first aspect or any embodiment of the first aspect.

[0014] The detection and repair method, apparatus, device and readable storage medium provided in the embodiments of the present application respond to the state that the local memory is not occupied, use at least a first instruction to detect the memory, obtain a detection result, and when it is determined that there is a memory fault according to the detection result, use at least a second instruction to repair the memory. Therefore, there is no need to disassemble the electronic device, and no need for additional testing software and equipment to detect and repair the memory of the electronic device. Memory faults can be detected and repaired quickly and efficiently on the local machine, saving the time cost and labor cost incurred by disassembly and replacement, reducing the maintenance cost of memory, and can detect and repair memory faults in a timely manner, thereby avoiding losses to users caused by memory faults and improving user experience.

[0015] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A schematic diagram of a process flow of a detection and repair method in an embodiment of the present application;

[0017] Figure 2 A schematic diagram of another detection and repair method in an embodiment of the present application;

[0018] Figure 3 A schematic diagram of another detection and repair method in an embodiment of the present application

[0019] Figure 4 It is a display flow chart of the detection results and the repair results in the embodiment of the present application;

[0020] Figure 5 This is a schematic diagram of the structure of a detection and repair device in an embodiment of the present application;

[0021] Figure 6 This is a schematic diagram of the hardware structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings 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 those skilled in the art without creative work are within the scope of protection of the present application.

[0023] The JESD79-4B DDR4 SDRAM standard of the Joint Electron Device Engineering Council (JEDEC) requires that DDR4 memory must support the PPR (Post Package Repair) feature, that is, the post-package repair feature. All standard DDR4 dynamic random access memory (DDR4 DRAM) must comply with this standard. This feature allows users to repair single-bit errors in storage cells in the memory with the cooperation of external software.

[0024] The storage units inside the memory are "small capacitors" one by one. One "small capacitor" stores 1 bit of data. A full charge represents "1", and an empty charge represents "0". An 8Gb memory particle has 8G "small capacitors" inside. The capacity of memory particles ranges from 4Gb to 8Gb to 16Gb, and in the future there will even be larger capacities such as 24Gb and 32Gb. Larger capacity means more "small capacitors" in the internal storage units. For the same size of memory, the "small capacitor" will be smaller in size, and the fewer charges in the "small capacitor", the worse the anti-interference ability will be. Unexpected changes in the number of charges will unexpectedly change the stored 0 or 1. This unexpected change in the stored 0 or 1 is a "single-bit" failure.

[0025] Memory is one of the core components of electronic devices. At present, due to the continuous increase in the memory capacity of electronic devices, the probability of single-bit failure in the storage unit of the memory of electronic devices is increasing. When a single-bit failure occurs in the memory, the memory needs to be disassembled, the memory needs to be removed from the electronic device, and professionals need to use specific testing equipment and software to repair the single-bit error in the memory, which is inefficient.

[0026] During the single-bit repair process, it is necessary to send corresponding control instructions to the memory to complete the single-bit repair. The inventor of the present application found that the memory, as a passive device, is completely controlled by the memory controller inside the CPU. During the startup of the electronic device, the memory controller will initialize the memory. During the memory initialization process, the motion parameters of the memory can be changed. After the initialization is completed, the operating parameters of the memory are fixed and no longer change during operation. The controller no longer allows instructions including PPR that affect the normal operation of the memory to be sent to the memory.

[0027] Therefore, the inventor of the present application has thought that during the startup process of the electronic device, operations similar to parameter setting can be performed on the memory, such as repairing a single-bit fault in the memory. Thus, the single-bit fault in the memory can be repaired directly on the machine without disassembling the machine. To this end, the embodiment of the present application provides a detection and repair method that can be applied to the detection and repair of single-bit faults in the memory of the electronic device.

[0028] like Figure 1 As shown, the detection and repair method includes:

[0029] S101. In response to the state that the local memory is not occupied, use at least a first instruction to detect the memory to obtain a detection result.

[0030] Specifically, local memory refers to the memory that comes with the local machine, excluding mobile storage. The state in which the local memory is not occupied refers to the state in which no program is running in the local memory. The state in which the local memory is not occupied includes the state in which the memory is in the initialization stage and the local system process is in the end stage. When the memory is in the initialization stage, the local machine is in the startup state, and no program is running in the local memory, the local memory is in the unoccupied state. When the local system process is in the end stage, the local machine is in the shutdown state, and no program is running in the local memory, the local memory is in the unoccupied state.

[0031] When the local memory is not occupied, single-bit fault detection can be performed on 100% of the storage units in the memory. When the local memory is partially occupied, single-bit fault detection can also be performed on the storage units in the memory, but since some storage units are occupied, 100% of the storage units cannot be detected. Therefore, in the embodiment of the present application, in order to detect 100% of the storage units in the memory, it is selected to perform single-bit fault detection on the memory when the local memory is not occupied.

[0032] The first instruction number is an instruction for performing single-bit fault detection on the memory. At present, the models specifically for single-bit fault detection of memory are: 1) Cell Dynamic Refresh Test; 2) Short tWR Test; 3) Static Refresh Test. Therefore, the first instruction can be any one of these three models. Any one or more of these three models can be used to perform single-bit fault detection on the memory.

[0033] When at least the first instruction is used to perform single-bit fault detection on the memory, the NEM (Non-Evict Mode) mode of the CPU can be entered before the memory initialization is completed. In this mode, the CPU core can be directly called, and the L3 cache memory (L3Cache) can be used to perform concurrent, full-address detection on the memory using at least the first instruction cached in the L3 Cache.

[0034] The traditional memory single-bit fault detection time is from ten minutes to several hours. In the embodiment of the present application, the CPU's cache memory is used to perform memory single-bit fault detection, which is faster and can be completed in just a few minutes.

[0035] After performing a single-bit fault detection on the memory, the detection result can be obtained. After obtaining the detection result, the detection result can be stored in a temporary data storage place, such as the Non-Volatile Random Access Memory (NVRAM) of the Basic Input Output System (BIOS), so as to perform single-bit fault repair on the memory later. NVRAM is a random access memory (RAM) that can still retain data after power failure. By storing the detection result in NVRAM, the detection result can be cached.

[0036] S102. When it is determined according to the detection result that the memory is faulty, use at least a second instruction to repair the memory.

[0037] Specifically, the second instruction is an instruction for repairing a single-bit fault in the memory. At present, the model specifically for repairing a single-bit fault in the memory is the PPR repair model. According to the test results, it can be determined whether there is a single-bit fault in the memory. If there is a single-bit fault in the memory, not only a prompt message will be given, but also a fault address will be given. If there is no single-bit fault in the memory, a prompt message will also be given. Therefore, when it is determined according to the test results that there is a single-bit fault in the memory, at least the second instruction can be used to repair the storage unit at the fault address in the memory. When repairing a single-bit fault in the memory, redundant rows are used to replace the damaged part of the rows. When it is determined according to the test results that there is no single-bit fault in the memory, the normal power-on startup process and the power-off startup process are followed.

[0038] If the single-bit fault detection of the memory is performed when the memory is in the initialization stage, then before the memory initialization is completed, at least the second instruction is continued to be used to repair the single-bit fault of the memory. If the single-bit fault detection of the memory is performed when the local system process is in the end stage, then at the next startup, before the memory initialization is completed, at least the second instruction is used to repair the single-bit fault of the memory.

[0039] The detection and repair method provided in the embodiment of the present application responds to the state that the local memory is not occupied, uses at least a first instruction to detect the memory, obtains a detection result, and when it is determined that the memory is faulty according to the detection result, uses at least a second instruction to repair the memory. Therefore, there is no need to disassemble the electronic device, and no need for additional testing software and equipment to detect and repair single-bit faults in the memory of the electronic device. Single-bit faults in the memory can be detected and repaired quickly and efficiently on the local device, saving the time cost and labor cost incurred by disassembly and replacement, reducing the maintenance cost of the memory, and can detect and repair single-bit faults in the memory in a timely manner, thereby avoiding losses to users caused by single-bit faults in the memory and improving user experience.

[0040] In an optional embodiment, in step S101, using at least a first instruction to detect the memory includes: using at least the first instruction to perform a write operation and a read operation on the memory.

[0041] Specifically, since the first instruction is an instruction for performing single-bit fault detection on the memory, and currently, the models specifically for detecting single-bit faults in the memory are: 1) Cell Dynamic Refresh Test; 2) Short tWR Test; 3) Static Refresh Test. These three models all use methods of performing write operations and read operations on the memory to detect single-bit faults in the memory. Therefore, the model specifically for detecting single-bit faults in the memory in the prior art can be used to perform write operations and read operations on the memory to detect the memory.

[0042] In an optional embodiment, at least a first instruction is used to perform write operations and read operations on the memory, including: writing at least one detection paradigm into the memory; performing a first operation on the memory; reading the content in the memory; comparing the content with the detection paradigm to obtain a detection result.

[0043] Specifically, 010100101 can be written into the memory through the Cell Dynamic Refresh Test, Short tWR Test and / or Static Refresh Test. After writing, the memory is repeatedly powered on or refreshed at a long interval, and then the memory content is read. By comparing the written data with the read data, it can be determined whether the memory has a single-bit fault.

[0044] For example, write 010100101 in the memory through the Cell Dynamic Refresh Test. After writing, the read operation can be any of the following: 1. Repeatedly power on the memory and then read the memory content to confirm whether the data has changed; 2. After writing, shorten the time to read to see how much is stored and whether there is any content that has not been stored; 3. After refreshing at a long interval, read the memory content again. Because the memory will be dynamically refreshed to ensure that the content stored in the memory will not be lost, deliberately refreshing at a longer interval than normal will cause data loss and single-bit errors. Compared with normal memory, memory with single-bit faults will lose more data at the same refresh interval. By comparing the written data with the read data, it is possible to determine whether the memory has a single-bit fault.

[0045] In this embodiment of the present application, since the single-bit fault detection model is optimized for detecting single-bit faults and has high detection accuracy, by performing write operations and read operations on the memory through the single-bit fault detection model, single-bit fault detection can be performed on the memory simply and accurately.

[0046] In an optional embodiment, the detection and repair method further includes: monitoring a third instruction for triggering detection of the memory; and when the third instruction is monitored, using at least the first instruction to detect the memory to obtain a detection result.

[0047] Specifically, the third instruction is a trigger instruction for single-bit fault detection of memory. In the embodiment of the present application, the memory can be triggered by designing a hotkey trigger, or by setting the flag in the setting options of the BIOS, or by opening the interface of the BIOS to the upper layer WMI (Windows Management Instrumentation) interface of the OS, and then modifying the flag in a certain software of the computer management control program (Operating System, OS), so as to automatically complete the memory detection process during the system startup process. For example, the Ctrl+F5 hotkey is designed, and when the system of the electronic device is in the startup process, the third instruction can be monitored in real time. Before the memory initialization is completed, the user presses the hotkey Ctrl+F5, and the electronic device obtains the third instruction, and the third instruction is monitored, and then before the memory initialization is completed, at least the first instruction can be used to detect the memory to obtain the detection result. If the user presses the hotkey Ctrl+F5 after the memory initialization is completed, the electronic device obtains the third instruction, and then the computer can be restarted again, and before the memory initialization is completed, at least the first instruction is used to detect the memory to obtain the detection result. If the user does not press the hot key Ctrl+F5, the electronic device does not obtain the third instruction, and the system starts normally without performing memory single-bit fault detection.

[0048] In this embodiment of the present application, the process of single-bit memory fault detection is triggered by designing a third instruction, so that the user can perform single-bit memory fault detection or not perform single-bit memory fault detection as needed, thereby improving user experience.

[0049] In an optional embodiment, in order to satisfy the user's right to choose whether to repair a single-bit fault, between determining that a memory fault exists based on the detection result and using at least a second instruction to repair the memory, the detection and repair method also includes: generating a repair option based on the detection result; and displaying the repair option to the user.

[0050] Generally, when it is determined according to the test results that the memory is faulty, at least the second instruction is directly used to repair the memory. In this way, the single-bit fault in the memory is directly repaired, so that after the system is turned on, the memory can be used normally, the system can run stably, and there will be no system faults such as blue screen and freeze. However, for some special cases, such as when the user is eager to start the system and the repair will inevitably take a certain amount of time, the user can be presented with repair options so that the user can choose to repair this time or next time according to his or her needs. The repair options may include options such as repair, repair next time, and do not repair, and may also include the fault address, the content to be repaired, etc.

[0051] After presenting the repair option to the user, if the user selects this repair, the user's confirmation operation on the repair option can be obtained, and the memory can be repaired using at least the second instruction according to the confirmation operation. If the user selects the next repair, the memory can be repaired using at least the second instruction during the next boot process. If the user selects not to repair, the detection result in the cache can be deleted.

[0052] In this embodiment of the present application, repair options are generated based on the detection results and displayed to the user so that the user can choose whether to repair or not. This can meet the needs of different users for single-bit fault repair and improve user experience.

[0053] In an optional embodiment, after the memory is repaired using at least the second instruction, the detection and repair method further includes: displaying the memory repair result to the user.

[0054] Specifically, after the single-bit fault is repaired, the repair result can be stored in the NVRAM of the BIOS. After the BIOS completes the initialization of the memory and other input and output devices, such as the keyboard and display, before starting the OS boot process, the detection and repair results are automatically displayed on the screen.

[0055] The process of booting the OS is the process of entering the operating system of the electronic device after all the hardware devices of the electronic device have been initialized. The reason for choosing to display the detection and repair results at this stage is 1) because it is more in line with user habits. After the detection is completed, the first interface displayed after the boot is the detection and repair results instead of other screens; 2) it is technically feasible and much simpler than displaying the results after entering the OS.

[0056] In this embodiment of the present application, the memory repair result is displayed to the user so that the user can accurately know the single-bit fault repair result of the memory, thereby avoiding the user's use of the electronic device when the single-bit fault is not fully repaired or not repaired, causing losses to the user.

[0057] In order to further explain the detection and repair method in the embodiment of the present application, the following description is given using personal computing as an example.

[0058] In view of the memory characteristics of the PC system, a detection model for single-bit faults can be added to the BIOS checksum file (MRC). The detection model includes 1) Cell Dynamic Refresh Test; 2) Short tWR Test, 3) Static Refresh Test. Therefore, during the memory initialization process, the BIOS will not only test the key specifications of the memory (model, frequency, capacity, etc.), but also the intrinsic quality of the memory (single-bit faults). When testing the intrinsic quality of the memory, the CPU's NEM (Non-Evict Mode) mode can be entered before the memory initialization is completed. In this mode, the CPU core can be directly called, and the L3 Cache can be used to perform concurrent, full-address detection on the memory.

[0059] The traditional memory single-bit fault detection time is from ten minutes to several hours. In the embodiment of the present application, the CPU cache is used to perform memory single-bit fault detection, which is faster and can be completed in just a few minutes.

[0060] The process of single-bit fault detection and repair is as follows Figure 2 As shown:

[0061] 1. Add the RAMPPR flag in the BIOS to indicate whether the memory detection and repair process is triggered, and add the PPRdone flag to indicate whether the memory detection and repair process is completed. RAMPPR = 1 means triggered, RAMPPR = 0 means not triggered. The default value of RAMPPR is 0. PPRdone = 1 means completed, PPRdone = 0 means not completed, and the default value of PPRdone is 0. During the system startup process, if the user presses the Ctrl+F5 hotkey, the BIOS code will mark RAMPPR as 1.

[0062] 2. Before the memory initialization is completed, it is detected that RAMPPR = 1, and the memory single-bit fault detection process and repair process are automatically entered. The memory detection process and repair process are as follows Figure 3As shown, when it is determined that a single-bit fault detection is required for the memory, that is, when RAMPPR=1, the test models for Cell Dynamic Refresh, Short tWR, and Static refresh are run in sequence. When it is determined that a single-bit fault exists in the memory, the address information of the single-bit fault is recorded. For example, BG-BA-CA-RA, and then the PPR repair process is run for the address information of the single-bit fault to repair the single-bit fault of the memory. After the repair is completed, the test results and the repair results are saved in the NVRAM of the BIOS. When it is determined that there is no single-bit fault in the memory, the test results are directly saved in the NVRAM of the BIOS. Then RAMPPR is set to 0 and PPRdone is set to 1. When it is confirmed that single-bit fault detection is not required for the memory, single-bit fault detection is not performed.

[0063] 3. After the memory, display device, keyboard, mouse and other devices are initialized, the starting point stage is entered. At this stage, the BIOS can start to detect the keyboard operation and control the display output. If at this stage, it can also detect whether the user has pressed the hot key Ctrl+F5. If it is detected that the user has pressed the hot key Ctrl+F5, RAMPPR can be marked as 1, the computer system restarts, and the RAMPPR value is identified. At this time, RAMPPR = 1, and the memory single-bit fault detection process is automatically entered. Perform single-bit fault detection again according to step 2.

[0064] 4. If the user is not detected to have pressed the hotkey Ctrl+F5 after entering the starting point stage, the value of PPRdone is detected. When PPRdone=1 is detected, the detection result and the repair result are displayed to the user, and the value of PPRdone is set to 0. If the user is not detected to have pressed the hotkey Ctrl+F5, and PPRdone=0 is detected, the OS boot process is directly entered.

[0065] The process of showing the detection results and repair results to the user is as follows Figure 4 As shown, when PPRdone=1 is detected, the interface between the user and the UEFI system is entered, and the computer system can be configured by entering the interface. Then the detection result and the repair result are read from the NVRAM of the BIOS, the detection result and the repair result are displayed to the user, and then the value of PPRdone is set to 0. If PPRdone=1 is not detected, it ends directly.

[0066] In this embodiment of the present application, a memory detection and repair tool is integrated into the BIOS code, and single-bit memory faults are detected and repaired during the memory initialization process when the computer is turned on, thereby eliminating the need to disassemble the computer and requiring no additional testing software or equipment; the memory detection process is completed using the CPU's NEM mode, which is fast and efficient; the detection model is designed for detecting single-bit faults, and has high detection accuracy; and memory faults can be quickly repaired to avoid losses to users, thereby improving user experience.

[0067] The present application embodiment provides a detection and repair device, such as Figure 5 As shown, including:

[0068] The detection unit 21 is used to detect the memory using at least the first instruction in response to the state that the local memory is not occupied, and obtain a detection result; the specific implementation method is detailed in the description of step S101 of the above method embodiment, which will not be repeated here.

[0069] The repair unit 22 is used to repair the memory using at least the second instruction when it is determined that the memory is faulty according to the detection result. The specific implementation method is described in step S102 of the above method embodiment, which will not be repeated here.

[0070] The detection and repair device provided in the embodiment of the present application responds to the state that the local memory is not occupied, uses at least a first instruction to detect the memory, obtains a detection result, and when it is determined that the memory has a fault according to the detection result, uses at least a second instruction to repair the memory. Therefore, there is no need to disassemble the electronic device, and no need for additional testing software and equipment to detect and repair single-bit faults in the memory of the electronic device. Single-bit faults in the memory can be detected and repaired quickly and efficiently on the local device, saving the time cost and labor cost incurred by disassembly and replacement, reducing the maintenance cost of the memory, and can detect and repair single-bit faults in the memory in a timely manner, thereby avoiding losses to users caused by single-bit faults in the memory and improving user experience.

[0071] Based on the same inventive concept as the detection and repair method in the aforementioned embodiment, the embodiment of the present application further provides an electronic device, such as Figure 6 As shown, it includes: a processor 31 and a memory 32, wherein the processor 31 and the memory 32 can be connected via a bus or other means. Figure 6 The bus connection is used as an example for explanation.

[0072] The processor 31 may be a central processing unit (CPU). The processor 31 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.

[0073] The memory 32 is a non-transitory computer-readable storage medium that can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the detection and repair method in the embodiment of the present application. The processor 31 executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory 32, that is, implementing the detection and repair method in the above method embodiment.

[0074] The memory 32 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store data created by the processor 31, etc. In addition, the memory 32 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 32 may optionally include a memory remotely arranged relative to the processor 31, and these remote memories may be connected to the processor 31 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0075] The above one or more modules are stored in the memory 32, and when executed by the processor 31, the following is performed: Figure 1 The detection and repair method in the illustrated embodiment.

[0076] For details of the above electronic equipment, please refer to Figure 1 The corresponding related descriptions and effects in the illustrated embodiments can be understood and will not be repeated here.

[0077] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant 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. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.

[0078] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, 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 present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0079] The present application is described with reference to the flowcharts and / or block diagrams of the methods, 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 information processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable information processing 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.

[0080] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable information processing device to work 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.

[0081] These computer program instructions can also be loaded onto a computer or other programmable information processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing 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.

[0082] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A detection and repair method, comprising: In response to the state that the local memory is not occupied, using at least a first instruction to detect all storage units in the memory to obtain a detection result; The state where the local memory is not occupied includes that the memory is in the initialization stage and the local system process is in the end stage; the first instruction is an instruction for performing single-bit fault detection on the memory; When it is determined according to the detection result that the memory is faulty, at least a second instruction is used to repair the memory; wherein repairing the memory includes: replacing damaged part of the memory rows with redundant memory rows; the second instruction is an instruction for repairing a single-bit fault of the memory.

2. The detection and repair method according to claim 1, wherein the step of using at least the first instruction to detect all storage units in the memory comprises: At least a first instruction is used to perform write operations and read operations on the memory.

3. The detection and repair method according to claim 1, further comprising: Monitoring a third instruction for triggering a memory detection; The third instruction is a trigger instruction for performing single-bit fault detection on the memory; When the third instruction is monitored, at least the first instruction is used to detect all storage units in the memory to obtain a detection result.

4. The detection and repair method according to claim 1, further comprising: between determining that the memory has a fault according to the detection result and repairing the memory using at least a second instruction: generating repair options according to the detection results; The repair options are presented to the user.

5. The detection and repair method according to claim 4, after presenting the repair option to the user, further comprising: Obtaining a confirmation operation performed by the user on the repair option; The memory is repaired using at least a second instruction according to the confirmation operation.

6. The detection and repair method according to claim 1, after repairing the memory using at least a second instruction, further comprising: The memory repair result is displayed to the user.

7. The detection and repair method according to claim 2, wherein the step of using at least a first instruction to perform a write operation and a read operation on the memory comprises: writing at least one detection pattern into the memory; performing a first operation on the memory; Reading the contents of the memory; The content is compared with the detection paradigm to obtain a detection result.

8. A detection and repair device, comprising: A detection unit, configured to detect all storage units in the memory using at least a first instruction in response to a state that the local memory is not occupied, and obtain a detection result; The state where the local memory is not occupied includes the memory being in the initialization stage and the local system process being in the end stage; The first instruction is an instruction for performing single-bit fault detection on the memory; A repair unit is used to repair the memory using at least a second instruction when it is determined that the memory is faulty based on the detection result; wherein repairing the memory includes: replacing damaged part of the memory rows with redundant memory rows; and the second instruction is an instruction for repairing a single-bit fault of the memory.

9. An electronic device, comprising: at least one processor; And a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor executes the detection and repair method as described in any one of claims 1-7.