Solid state disk data error correction method, device and equipment and readable storage medium
By positioning the error correction plane and error access unit in the solid-state drive, and using the voltage in the reread table for error correction, the problem of low Read-Retry error correction efficiency when NAND is poor, improving data error correction efficiency and solid-state drive reliability.
Patent Information
- Application Number
- CN202411009020.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-11-19
AI Technical Summary
When the existing solid-state drives are in poor NAND status, the Read-Retry error correction method is inefficient, resulting in error correction timeout, affecting customer experience, and once the uncorrectable data appears, it will greatly affect the read performance, resulting in the SSD being unable to be recognized by the system or access.
By positioning the first error correction plane, selecting the first error access unit from it, selecting the voltage in the reread table for error correction. If the error correction is successful, it is determined that the voltage is the optimal voltage, which is used to correct other error access units until All error corrections are completed or reached the voltmeter limit.
It improves data error correction efficiency, shortens the time to obtain the optimal voltage, reduces the complexity and time of error correction operations, and ensures normal identification and access of solid-state drives.
Smart Images

Figure CN118981392A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data storage, and in particular to a solid state hard disk data error correction method, device, equipment and readable storage medium. Background Art
[0002] When a solid state drive (SSD) is used in various complex environments, read errors caused by internal and external factors will inevitably occur. At this time, the SSD error correction efficiency directly affects the customer experience. More seriously, the error correction timeout phenomenon will occur, resulting in the host failing to recognize the SSD. As the most common and practical error correction method in the SSD error correction system, the read-retry error correction method has been widely used by major SSD manufacturers. Its principle is to continuously offset the NAND reference voltage and then perform a reread operation at this voltage until the error correction is successful.
[0003] The Read-Retry error correction method is simple and effective. When the NAND state in the SSD is relatively good, the error can be corrected by Read-Retry several times or even once. However, when the NAND state is very poor, such as when the number of erases (Program / Erase, PE) is large, even if there is a fast reread table (Fast Retry Table), it is necessary to traverse the entire fast reread table to successfully correct the error, or even to fail the error correction. In order to ensure the Read-Retry error correction capability, the Retry Table generally includes the table provided by the NAND manufacturer and the table tested by the media team itself, with a total of more than 100 rows. Therefore, the appearance of uncorrectable data (Uncorrectable, UNC) will greatly affect the read performance, resulting in error correction timeout, and the SSD cannot be recognized or accessed by the system. Summary of the invention
[0004] In order to solve the above technical problems, the embodiments of the present application provide a solid state hard disk data error correction method, device, electronic device and computer-readable storage medium.
[0005] In a first aspect, an embodiment of the present application provides a solid state drive data error correction method, the method comprising:
[0006] Locating a first plane requiring error correction, and selecting a first error access unit from the first plane requiring error correction;
[0007] Selecting a voltage in the rereading table to perform error correction on the first erroneous access unit;
[0008] If the first error access unit is successfully corrected, determining the voltage to be the optimal voltage of the first plane requiring error correction;
[0009] Other error access units of the first plane requiring error correction are corrected in sequence according to the optimal voltage.
[0010] In one embodiment, selecting a voltage in a rereading table to correct the first erroneous access unit includes:
[0011] Iterating through the voltages in the reread table;
[0012] A first voltage in the re-read table is selected to perform error correction on the first erroneous access unit.
[0013] In one embodiment, selecting the first voltage in the reread table to correct the first erroneous access unit includes:
[0014] Sending a first voltage setting command to the first erroneous access unit;
[0015] A normal read operation is performed using the first voltage to read data of the first erroneous access unit.
[0016] In one embodiment, if the first error access unit is successfully corrected, the voltage is determined to be the optimal voltage of the first plane requiring error correction, and the method further includes:
[0017] If a normal read operation fails through the voltage, determining whether the index value of the voltage is less than or equal to the maximum index value of the voltage in the re-read table;
[0018] If the index value of the voltage is less than or equal to the maximum index value of the voltage in the re-reading table, then the voltages in the re-reading table are sequentially selected to correct the first erroneous access unit until the first erroneous access unit is successfully corrected;
[0019] The selected voltage is determined to be the optimal voltage of the first plane requiring error correction.
[0020] In one embodiment, sequentially correcting other error access units of the first plane requiring error correction according to the optimal voltage includes:
[0021] If all other error access units are successfully corrected using the optimal voltage, it is determined whether there is an uncorrected plane that needs to be corrected;
[0022] If there is a plane that needs to be corrected but has not been corrected, locate the next plane that needs to be corrected;
[0023] If there is no plane that needs to be corrected but has not yet completed error correction, a default voltage setting command is issued.
[0024] In one embodiment, before determining whether there is a plane requiring error correction that has not been completed, the method further includes:
[0025] If the error correction of the first erroneous access unit fails, sending an error correction termination command to the first plane requiring error correction;
[0026] If error correction of other erroneous access units using the optimal voltage is unsuccessful, an error correction termination command is sent to the first plane requiring error correction.
[0027] In one embodiment, before locating a first plane requiring error correction and selecting a first erroneous access unit from the first plane requiring error correction, the method further comprises:
[0028] Identify all planes that need error correction through the bitmap of access units in all planes;
[0029] Mark all planes that need error correction, and locate the first plane that needs error correction;
[0030] According to the bitmap of the access unit, the first erroneous access unit is selected from the first plane requiring error correction.
[0031] In a second aspect, an embodiment of the present application provides a solid state hard disk data error correction device, the solid state hard disk data error correction device comprising:
[0032] A positioning module, used for positioning a first plane requiring error correction, and selecting a first error access unit from the first plane requiring error correction;
[0033] A selection module, used for selecting a voltage in a rereading table to perform error correction on the first erroneous access unit;
[0034] A judgment module, configured to determine that the voltage is the optimal voltage of the first plane requiring error correction if the first error access unit is successfully corrected;
[0035] The error correction module is used to sequentially correct other error access units of the first plane requiring error correction according to the optimal voltage.
[0036] In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and when the computer program is run by the processor, the solid-state hard disk data error correction method provided in the first aspect is executed.
[0037] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when running on a processor, executes the solid-state hard disk data error correction method provided in the first aspect.
[0038] The solid-state hard disk data error correction method provided by the present application locates the first plane that needs error correction, selects the first error access unit from the first plane that needs error correction; selects the voltage in the reread table to correct the first error access unit; if the first error access unit is successfully corrected, determines the voltage as the optimal voltage of the first plane that needs error correction; and sequentially corrects other error access units of the first plane that needs error correction according to the optimal voltage. The present application selects local data in the plane, i.e., the first error access unit, to quickly obtain the optimal voltage of the plane that needs error correction, thereby shortening the time to obtain the optimal voltage and improving the efficiency of data error correction. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present application and should not be regarded as limiting the scope of protection of the present application. In each of the drawings, similar components are numbered similarly.
[0040] Figure 1 A schematic diagram of a process of a solid state drive data error correction method provided by an embodiment of the present application is shown;
[0041] Figure 2 Another schematic diagram of the process of the solid state drive data error correction method provided by the embodiment of the present application is shown;
[0042] Figure 3 Another schematic diagram of a process of a solid state drive data error correction method provided by an embodiment of the present application is shown;
[0043] Figure 4 Another schematic diagram of a process of a solid state drive data error correction method provided by an embodiment of the present application is shown;
[0044] Figure 5 A structural schematic diagram of a solid state drive data error correction device provided in an embodiment of the present application is shown.
[0045] Icon: 500 - solid state hard disk data error correction device, 501 - positioning module, 502 - selection module, 503 - judgment module, 504 - error correction module. DETAILED DESCRIPTION
[0046] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0047] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0048] Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present application, are intended only to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing items or adding the possibility of one or more features, numbers, steps, operations, elements, components, or combinations of the foregoing items.
[0049] Furthermore, the terms “first”, “second”, “third”, etc. are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.
[0050] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.
[0051] Example 1
[0052] An embodiment of the present application provides a solid state drive data error correction method, which is applied to an error correction module in system firmware. The error correction module uses this method to guide a flash memory controller to complete data error correction of a NAND flash memory and successfully read the data.
[0053] See also Figure 1 , the solid state drive data error correction method includes:
[0054] S101: Locate a first plane that needs error correction, and select a first erroneous access unit from the first plane that needs error correction.
[0055] In this embodiment, when a read command error occurs in multiple planes (Multi Plane), the firmware will send the error to the error correction module for error correction, and the error correction module starts to correct the data of the solid state drive. Specifically, the error correction module needs to determine the plane (Plane) where the error data appears in the die (Die), and select the first plane to be corrected from the plane where the error data appears, and then select the first error access unit (Access Unit, AU) from the first plane to be corrected.
[0056] It should be added that a solid-state drive usually includes multiple flash chips, each flash chip includes multiple Dies, and Dies are basic units that can independently execute flash chip commands. Each Plane includes multiple Blocks, and each Block includes multiple Pages. On a RAID stripe, one Plane corresponds to one Page, and one Page includes four access units, which physically belong to the same Block.
[0057] S102: Selecting a voltage in the rereading table to perform error correction on the first erroneous access unit.
[0058] In this embodiment, when the firmware detects that there is an error in the data in a certain AU, error correction needs to be performed. Rereading is a commonly used error correction method. The principle of the rereading operation is to offset the NAND reference voltage and then try to read the data of the storage unit again. This adjustment can be performed step by step until a reference voltage that can correctly read the data is found. After each offset, a reread operation is performed to check whether the data has been correctly read. If the data is still wrong, the error correction module will continue to adjust the reference voltage and repeat the rereading process until the data is successfully corrected or the reference voltages in the reread table are traversed.
[0059] Specifically, once the error correction module determines the first AU that needs error correction, it will start to perform a reread operation. First, an initial reference voltage is set, and then the data in the AU is tried to be read. If the data is still wrong, the error correction module will continue to select the next reference voltage from the reread table and read it again.
[0060] In one embodiment, selecting a voltage in a reread table to perform error correction on the first erroneous access unit includes: traversing the voltages in the reread table; and selecting a first voltage in the reread table to perform error correction on the first erroneous access unit.
[0061] In this embodiment, the error correction module uses a reread table (a reread table provided by the NAND manufacturer or a self-tested reread table) to correct the data. The error correction module first accesses the reread table, which is usually arranged in order of voltage values from small to large or from large to small, and traverses all voltage values in the table. Each voltage value represents a possible reading condition, which is used to try to correctly read the data in the storage unit. During the traversal process, the error correction module first selects the first voltage value (i.e., the first voltage) in the reread table. The first voltage is usually a starting voltage value based on historical data or default settings, which is closest to the standard voltage of a normal read operation.
[0062] Specifically, use the selected first voltage as the reference voltage, perform a reread operation on the first erroneous AU, and reread the data in the AU under the condition of changing the reference voltage. If the reread data under the first voltage is correct, then the error correction operation is successful, and the error correction module will continue to process other erroneous AUs on the plane. If the data is still erroneous, the error correction module will continue to select the next voltage value for rereading in the order in the reread table until the correct voltage is found or all voltage values are traversed.
[0063] In one embodiment, selecting the first voltage in the reread table to correct the first erroneous access unit includes: sending a first voltage setting command to the first erroneous access unit; performing a normal read operation through the first voltage to read data of the first erroneous access unit.
[0064] In this embodiment, the error correction module sends a reference voltage setting command to the flash memory controller of the solid state drive, which specifies the use of the first voltage value in the reread table as the reference voltage for rereading the first error AU data. The first voltage setting command is sent by the firmware interface to the flash memory controller. After receiving the voltage setting command, the flash memory controller begins to configure its internal circuit to use the specified first voltage value as the reference voltage for the read operation. When the first voltage setting is completed, the flash memory controller performs a normal read operation to read the data in the first error AU.
[0065] It is important to note that normal read operations read data directly from the Die's AU, rather than from the Die's cache. Even if the AU data has been read before and stored in the cache, the error correction module will ignore the data in the cache and read data directly from the Die's AU.
[0066] S103: If the first error access unit is corrected successfully, determine the voltage as the optimal voltage of the first plane requiring error correction.
[0067] In this embodiment, if the first error AU uses the first voltage in the reread table to successfully correct the error, since a page contains 4 AUs, and these AUs physically belong to the same physical block, their read sensitive voltages are usually similar, so the first voltage is valid for the entire Page, that is, the entire Plane. Therefore, if the voltage setting of one AU can successfully correct the error, then other AUs are likely to be successful using this voltage as well.
[0068] Based on the above theory, if the error correction of the first AU is successful, the error correction module can determine that the voltage is the optimal voltage of the first plane that needs error correction. There is no need to adjust the voltage of each AU individually and then reread it. The error correction module can directly use this optimal voltage to reread other erroneous AUs on the plane, reducing the time and complexity of the error correction operation.
[0069] It should be added that once all the error AUs of the plane have been reread, the error correction module will end the error correction operation on the current plane regardless of whether the error correction is successful. The strategy of using the optimal voltage to correct the remaining error AUs only once is to improve efficiency and reduce unnecessary reread operations.
[0070] See also Figure 2 In one embodiment, if the first error access unit is successfully corrected, the voltage is determined to be the optimal voltage of the first plane requiring error correction, and the method further includes:
[0071] S201: If a normal read operation performed using the voltage fails, determining whether the index value of the voltage is less than or equal to the maximum index value of the voltage in the re-read table.
[0072] In this embodiment, during the SSD data error correction process, when the first voltage value in the reread table is used to correct the first AU, if the data is still erroneous and cannot be read, the error correction module will check whether the index value of the currently used voltage value in the reread table is less than or equal to the maximum index value of the voltage in the reread table. If the index value of the current voltage is already the maximum value, it means that all available voltage values have been tried, and an error correction termination command is sent to the first plane that needs error correction, and the error correction process will end.
[0073] S202: If the index value of the voltage is less than or equal to the maximum index value of the voltage in the re-reading table, sequentially selecting the voltages in the re-reading table to correct the first erroneous access unit until the first erroneous access unit is successfully corrected.
[0074] In this embodiment, before starting the error correction process, a variable is initialized to track the index value of the currently used voltage in the reread table. If the initial variable is set to 0, it indicates the first voltage in the reread table. When the first error access unit (AU) fails to be corrected using the current voltage, the error correction module increments the index value of the current voltage to try the next voltage value in the reread table. If the index value of the current voltage is less than the maximum index value of the voltage in the reread table, the error correction module selects the next voltage value in the reread table in the order of the indexes to correct the first AU, and repeats the process, selecting the next voltage value each time, until a voltage that can successfully correct the error of the first AU is found.
[0075] S203: Determine that the selected voltage is the optimal voltage of the first plane requiring error correction.
[0076] In this embodiment, if the voltage value that can successfully correct the first erroneous AU is determined, the voltage value will be used as the optimal voltage for the remaining erroneous AUs in the error correction plane. The error correction module sets the selected voltage value as the optimal voltage of the current plane. For each remaining erroneous AU in the plane, the error correction module will use this optimal voltage as a reference voltage to reread the data of the erroneous AU.
[0077] S104: Correcting other erroneous access units of the first plane requiring error correction in sequence according to the optimal voltage.
[0078] In this embodiment, the error correction module sets the optimal voltage of the plane to be corrected as its reference voltage, traverses all AUs marked as errors except the first AU in the current plane, and for each AU marked as an error, the error correction module performs a reread operation at the optimal voltage.
[0079] See also Figure 3 In one embodiment, the step of sequentially correcting other error access units of the first plane requiring error correction according to the optimal voltage includes:
[0080] S1041: If all other error access units are successfully corrected using the optimal voltage, it is determined whether there is a plane that needs to be corrected but has not been corrected.
[0081] In this embodiment, the error correction module checks whether all AUs of the current plane have been successfully corrected using the optimal voltage. If all erroneous AUs of the current plane have been successfully corrected, the error correction module checks whether there are other planes that have not yet been corrected in the Die on the strip.
[0082] S1042: If there is a plane that needs error correction but has not been completed, locate the next plane that needs error correction.
[0083] In this embodiment, if there is an uncorrected plane in Die that needs correction, the correction module will locate the next plane that needs correction. For the newly located plane that needs correction, the correction module will repeat the previous process and first try to use the first voltage in the rereading table for correction. If it fails, other voltage values in the rereading table will be selected in turn.
[0084] S1043: If there is no plane that needs error correction but has not yet been completed, a default voltage setting command is issued.
[0085] In this embodiment, if all planes that need to be corrected have completed error correction, the error correction module will issue a default voltage setting command to set the read voltage in the current error-corrected Die to the default value so that the next normal read and write operation can be performed. After issuing the default voltage setting command, the error correction process will usually end. At this time, all known error AUs should have been corrected and the SSD will return to the normal read and write operation mode.
[0086] In one embodiment, before determining whether there is a plane requiring error correction that has not been completed, the method further includes: if the error correction of the first error access unit fails, sending an error correction termination command to the first plane requiring error correction; if error correction of other error access units using the optimal voltage is unsuccessful, sending an error correction termination command to the first plane requiring error correction.
[0087] In this embodiment, when the first error AU fails to successfully correct errors using all the voltages in the reread table, the error correction module will send an error correction termination command to the first plane that needs error correction, and stop further error correction operations on the current plane that needs error correction. If the first error AU is successfully corrected and the optimal voltage is determined, when the optimal voltage is used to correct other error AUs in sequence, there is an unsuccessful situation. For each error AU, the error correction module only uses the optimal voltage to perform a reread operation once, and will not try other voltage values or multiple rereads in this case. That is, if other error access units fail to correct errors, the error correction module will send an error correction termination command to the first plane that needs error correction to stop further error correction operations on all remaining error AUs.
[0088] See also Figure 4 In one embodiment, before locating a first plane requiring error correction and selecting a first erroneous access unit from the first plane requiring error correction, the method further comprises:
[0089] S401: Identify all planes that need error correction through the bitmaps of access units in all planes.
[0090] In this embodiment, the error correction module first checks the bitmap (AuBitmap) of the access units in all planes to identify which AUs in which plane contain erroneous data structures. If an AU is erroneous, the bit in its corresponding bitmap will be set to 1. For example, if all four AUs in two planes (Plane0 and Plane1) are erroneous, AuBitmap is 0xFF.
[0091] S402: Mark all planes that need error correction, and locate the first plane that needs error correction.
[0092] In this embodiment, by checking AuBitmap and finding the first plane containing at least one erroneous AU, for example, if the bitmap is 0xFF, it means 4 AUs in two planes (Plane0 and Plane1), and AuBitmap shows that the AU in Plane0 has errors earlier, then Plane0 will be selected as the first plane to be corrected.
[0093] S403: Selecting the first erroneous access unit from the first plane requiring error correction according to the bitmap of the access unit.
[0094] In this embodiment, when the first plane to be corrected is determined, the error correction module further selects an error AU from this plane as the starting point for error correction. This is done by checking the AU bitmap in the plane. When an AU with a bitmap of 1 appears in the bitmap of the first error plane, it is marked as the first error AU. For example, if both AU0 and AU1 in Plane0 have errors, AU0 will be selected as the first error AU. Since the position of the Read error is random, selecting the first error AU can ensure that the error correction operation starts from the AU with the earliest error, thereby recovering as much data as possible.
[0095] The solid-state hard disk data error correction method provided in this embodiment locates the first plane that needs error correction, selects the first error access unit from the first plane that needs error correction; selects the voltage in the reread table to correct the first error access unit; if the first error access unit is successfully corrected, determines the voltage as the optimal voltage of the first plane that needs error correction; and sequentially corrects other error access units of the first plane that needs error correction according to the optimal voltage. The present application selects local data in the plane, i.e., the first error access unit, to quickly obtain the optimal voltage of the plane that needs error correction, thereby shortening the time to obtain the optimal voltage and improving the data error correction efficiency.
[0096] Example 2
[0097] In addition, an embodiment of the present application provides a solid state hard disk data error correction device.
[0098] like Figure 5As shown, the solid state hard disk data error correction device 500 includes:
[0099] A positioning module 501 is used to locate a first plane requiring error correction, and select a first error access unit from the first plane requiring error correction;
[0100] A selection module 502 is used to select a voltage in a rereading table to perform error correction on the first erroneous access unit;
[0101] A judgment module 503 is used to judge if the first error access unit is corrected successfully, and determine that the voltage is the optimal voltage of the first plane requiring error correction;
[0102] The error correction module 504 is used to sequentially correct other error access units of the first plane requiring error correction according to the optimal voltage.
[0103] Optionally, the selection module 502 is further used to traverse the voltages in the reread table; and select the first voltage in the reread table to perform error correction on the first erroneous access unit.
[0104] Optionally, the selection module 502 is further configured to send a first voltage setting command to the first erroneous access unit; and perform a normal read operation using the first voltage to read data of the first erroneous access unit.
[0105] Optionally, the judgment module 503 shown is also used to judge whether the index value of the voltage is less than or equal to the maximum index value of the voltage in the reread table if a normal read operation fails to be performed using the voltage; if the index value of the voltage is less than or equal to the maximum index value of the voltage in the reread table, then selecting the voltages in the reread table in turn to correct the first erroneous access unit until the first erroneous access unit is successfully corrected; and determining that the selected voltage is the optimal voltage for the first plane that needs to be corrected.
[0106] Optionally, the error correction module 504 shown is also used to determine whether there is an uncorrected plane that needs error correction if all other error access units are successfully corrected using the optimal voltage; if there is an uncorrected plane that needs error correction, locate the next plane that needs error correction; if there is no uncorrected plane that needs error correction, issue a default voltage setting command.
[0107] Optionally, the error correction module 504 shown is also used to send an error correction termination command to the first plane that needs error correction if the error correction of the first error access unit fails; if the error correction of other error access units using the optimal voltage is unsuccessful, send an error correction termination command to the first plane that needs error correction.
[0108] Optionally, the positioning module 501 shown is also used to identify all planes that need error correction through the bitmap of the access unit in all planes; mark all planes that need error correction, and locate the first plane that needs error correction; and select the first erroneous access unit from the first plane that needs error correction according to the bitmap of the access unit.
[0109] The solid state disk data error correction device 500 provided in this embodiment can implement the solid state disk data error correction method provided in Embodiment 1, and will not be described again here to avoid repetition.
[0110] The solid-state hard disk data error correction device provided in this embodiment locates the first plane that needs error correction, selects the first error access unit from the first plane that needs error correction; selects the voltage in the reread table to correct the first error access unit; if the first error access unit is successfully corrected, determines the voltage as the optimal voltage of the first plane that needs error correction; and sequentially corrects other error access units of the first plane that needs error correction according to the optimal voltage. The present application selects local data in the plane, i.e., the first error access unit, to quickly obtain the optimal voltage of the plane that needs error correction, thereby shortening the time to obtain the optimal voltage and improving the data error correction efficiency.
[0111] Example 3
[0112] In addition, an embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program runs on the processor, the solid-state hard disk data error correction method provided in Example 1 is executed.
[0113] The electronic device provided in the embodiment of the present invention can execute the steps of the solid state hard disk data error correction method provided in the above method embodiment 1, which will not be described again here to avoid repetition.
[0114] Example 4
[0115] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the solid-state hard disk data error correction method provided in Example 1 is implemented.
[0116] In this embodiment, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0117] The computer-readable storage medium provided in this embodiment can implement the solid-state hard disk data error correction method provided in Example 1, and will not be described again here to avoid repetition.
[0118] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal 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. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or terminal including the element.
[0119] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0120] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for correcting data errors in a solid state drive, characterized in that: The method comprises: Locating a first plane requiring error correction, and selecting a first error access unit from the first plane requiring error correction; Selecting a voltage in the rereading table to perform error correction on the first erroneous access unit; If the first error access unit is successfully corrected, determining the voltage to be the optimal voltage of the first plane requiring error correction; Other error access units of the first plane requiring error correction are corrected in sequence according to the optimal voltage.
2. The method according to claim 1, characterized in that: Selecting a voltage in the rereading table to correct the first erroneous access unit includes: Iterating through the voltages in the reread table; A first voltage in the re-read table is selected to perform error correction on the first erroneous access unit.
3. The method according to claim 2, characterized in that Selecting the first voltage in the reread table to correct the first erroneous access unit includes: Sending a first voltage setting command to the first erroneous access unit; A normal read operation is performed using the first voltage to read data of the first erroneous access unit.
4. The method according to claim 3, characterized in that If the first error access unit is successfully corrected, determining the voltage as the optimal voltage of the first plane requiring error correction, the method further includes: If a normal read operation fails through the voltage, determining whether the index value of the voltage is less than or equal to the maximum index value of the voltage in the re-read table; If the index value of the voltage is less than or equal to the maximum index value of the voltage in the re-reading table, then the voltages in the re-reading table are sequentially selected to correct the first erroneous access unit until the first erroneous access unit is successfully corrected; The selected voltage is determined to be the optimal voltage of the first plane requiring error correction.
5. The method according to claim 1, characterized in that The step of sequentially correcting other error access units of the first plane requiring error correction according to the optimal voltage includes: If all other error access units are successfully corrected using the optimal voltage, it is determined whether there is an uncorrected plane that needs to be corrected; If there is a plane that needs to be corrected but has not been corrected, locate the next plane that needs to be corrected; If there is no plane that needs to be corrected but has not been corrected, a default voltage setting command is issued.
6. The method according to claim 5, characterized in that Before determining whether there is a plane that needs error correction but has not been completed, the method further includes: If the error correction of the first erroneous access unit fails, sending an error correction termination command to the first plane requiring error correction; If error correction of other erroneous access units using the optimal voltage is unsuccessful, an error correction termination command is sent to the first plane requiring error correction.
7. The method according to claim 1, characterized in that Before locating a first plane requiring error correction and selecting a first erroneous access unit from the first plane requiring error correction, the method further includes: Identify all planes that need error correction through the bitmap of access units in all planes; Mark all the planes that need error correction, and locate the first plane that needs error correction; According to the bitmap of the access unit, the first erroneous access unit is selected from the first plane requiring error correction.
8. A solid state hard disk data error correction device, characterized in that: The device comprises: A positioning module, used for positioning a first plane requiring error correction, and selecting a first error access unit from the first plane requiring error correction; A selection module, used for selecting a voltage in a rereading table to perform error correction on the first erroneous access unit; A judgment module, configured to determine that the voltage is the optimal voltage of the first plane requiring error correction if the first error access unit is successfully corrected; The error correction module is used to sequentially correct other error access units of the first plane requiring error correction according to the optimal voltage.
9. An electronic device, characterized in that: It comprises a memory and a processor, wherein the memory stores a computer program, and when the processor is running, the computer program executes the solid state hard disk data error correction method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: It stores a computer program, which, when running on a processor, executes the solid state hard disk data error correction method described in any one of claims 1 to 7.
Citation Information
Cited By
Method for executing rereading operation, electronic equipment, storage medium and program product
CN120832098A
