Search

CN-115966241-B - Storage device and data protection processing performance optimization method thereof

CN115966241BCN 115966241 BCN115966241 BCN 115966241BCN-115966241-B

Abstract

The invention discloses a storage device and a data protection processing performance optimization method thereof. The storage device includes a memory and a controller. The controller comprises a first detection module, a second detection module, a command generation module and an error correction code circuit. The first detection module performs data error correction on error data read from the memory and judges whether the data error correction fails. The second detection module judges whether a valid index exists in the preferred detection table when the data error correction fails and judges whether a valid index exists in the conventional detection table when the valid index does not exist in the preferred detection table. The command generating module generates a set feature command according to the effective index when the effective index exists in the optimal detection table or the conventional detection table, controls the retry number to be increased once, and effectively configures error data in the memory through the error correction code circuit according to the effective index. Error data is identified as an uncorrectable error correction code when no valid index is present in both the preferred and conventional detection tables.

Inventors

  • WEI YIXIN

Assignees

  • 中山市江波龙电子有限公司

Dates

Publication Date
20260508
Application Date
20211009

Claims (10)

  1. 1. A memory device comprises a memory and a controller, wherein the controller can read data stored in the memory based on a request of an external device, and is used for detecting and correcting error data read from the memory by the controller, and the memory device is characterized in that the controller comprises: The detection module is used for judging whether the data error correction fails or not; The rereading module is used for executing rereading operation on the memory by adopting parameters in a dynamically adjustable optimal detection table; the adjusting module is used for dynamically adjusting parameters in the preferred detection table according to the rereading times; The detection module detects whether the data error correction fails after the re-reading operation is performed by using the parameters in the preferred detection table, ends when the re-reading operation is performed by using the parameters in the preferred detection table and the data error correction is successful, performs the re-reading operation on the memory by using the parameters in a conventional detection table when the re-reading operation is performed by using the parameters in the preferred detection table and the data error correction is failed, detects whether the data error correction fails after the re-reading operation is performed by using the parameters in the conventional detection table, ends when the re-reading operation is performed by using the parameters in the conventional detection table and the data error correction is successful, and recognizes that the memory has uncorrectable errors when the re-reading operation is performed by using the parameters in the conventional detection table and the data error correction is failed.
  2. 2. The storage device of claim 1, wherein the controller further comprises: a third detection module for judging whether the re-reading times is greater than zero when the data error correction is successful, and And the adjusting module is used for updating the preferred detection table according to the set characteristic command when the re-reading times are greater than zero, and clearing the retry times.
  3. 3. The storage device of claim 2, wherein the adjustment module adjusts a current valid index to a specified location within the preference detection table.
  4. 4. The storage device of claim 1, wherein the regular test table comprises the preferred test table and a plurality of test parameters not included in the preferred test table.
  5. 5. A storage device according to claim 3, wherein the valid index is that the data address corresponding to the detection parameter coincides with the data address corresponding to the error data.
  6. 6. The data protection processing performance optimization method of the storage device comprises a memory and a controller, wherein the controller can read data stored in the memory based on a request of an external device, the controller is used for detecting and correcting error data read from the memory by the controller, and the controller comprises a first detection module, a second detection module, a command generation module and an error correction code circuit, and is characterized by comprising the following steps: the first detection module performs data error correction on error data read from the memory; The first detection module judges whether the data error correction fails or not; When the data error correction fails, the second detection module judges whether a valid index exists in a preferred detection table; when no effective index exists in the preferred detection table, the second detection module judges whether the effective index exists in a conventional detection table, wherein the detection parameters in the preferred detection table are less than the detection parameters in the conventional detection table; when an effective index exists in the preferred detection table or an effective index exists in the conventional detection table, the command generation module generates a set feature command according to the effective index; the command generation module controls the retry times to be increased once, and effectively configures the data in the memory through the error correction code circuit according to the effective index; The second detection module identifies the erroneous data as an uncorrectable error correction code when the valid index is not present in both the preferred detection table and the regular detection table.
  7. 7. The method of optimizing data protection processing performance as set forth in claim 6, wherein the controller further includes a third detection module and an adjustment module, the method further comprising: When the data error correction is successful, the third detection module judges whether the retry number is greater than zero; when the retry number is greater than zero, the adjustment module updates the preferred detection table according to the set feature command; And the adjustment module clears the retry times.
  8. 8. The data protection processing performance optimization method of claim 7, wherein the adjustment module adjusts the current valid index to a specified location within the preferred detection table.
  9. 9. The data protection processing performance optimization method according to claim 6, wherein the regular detection table includes the preference detection table and a plurality of detection parameters not included in the preference detection table.
  10. 10. The method of optimizing data protection processing performance according to claim 6, wherein the effective index is that a data address corresponding to the detection parameter is identical to a data address corresponding to the error data.

Description

Storage device and data protection processing performance optimization method thereof Technical Field The present invention relates to the field of data storage technologies, and in particular, to a storage device and a data protection processing performance optimization method thereof. Background The memory may generate error correction codes (Error checking code, ECC) during the data read. At this time, it is generally necessary to correct the ECC using a retry table (retry table) provided by the manufacturer. Since the memory uses the method of searching the retry table one by one when performing data correction, the delay time of the memory to the write command becomes longer as the number of times of performing trial-and-error increases, and the data processing speed of the memory becomes extremely slow. Disclosure of Invention In view of the above, the present invention provides a memory device and a method for optimizing data protection processing performance thereof, which aims to solve the problem in the prior art that the data processing speed of the memory is slow when error data is corrected. The invention provides a storage device, which comprises a memory and a controller, wherein the controller can read data stored in the memory based on a request of an external device, and is used for detecting and correcting error data read from the memory by the controller, and the controller comprises: the first detection module is used for carrying out data error correction on error data read from the memory and judging whether the data error correction fails or not; A second detection module for judging whether a valid index exists in a preferred detection table when the data error correction fails, judging whether the valid index exists in a conventional detection table when the valid index does not exist in the preferred detection table, wherein the detection parameters in the preferred detection table are smaller than the detection parameters in the conventional detection table, the detection parameters stored in the preferred detection table are the detection parameters which are indexed for a plurality of times within a predetermined period and are arranged according to the index time sequence, and The command generation module is used for generating a set characteristic command according to the effective index when the effective index exists in the optimal detection table or the conventional detection table, controlling the retry number to be increased once, and effectively configuring error data in the memory through the error correction code circuit according to the effective index; Wherein the second detection module identifies the erroneous data as an uncorrectable error correction code when no valid index exists in both the preferred detection table and the regular detection table. The invention also provides a data protection processing performance optimization method of the storage device, wherein the storage device comprises a memory and a controller, the controller can read data stored in the memory based on a request of an external device, the controller is used for detecting and correcting error data read from the memory by the controller, the controller comprises a first detection module, a second detection module, a command generation module and an error correction code circuit, and the data protection processing performance optimization method comprises the following steps: the first detection module performs data error correction on error data read from the memory; The first detection module judges whether the data error correction fails or not; When the data error correction fails, the second detection module judges whether a valid index exists in a preferable detection table or not; when no effective index exists in the preferred detection table, the second detection module judges whether the effective index exists in a conventional detection table, wherein the detection parameters in the preferred detection table are less than the detection parameters in the conventional detection table; when an effective index exists in the preferred detection table or an effective index exists in the conventional detection table, the command generation module generates a set feature command according to the effective index; the command generation module controls the retry times to be increased once, and effectively configures the data in the memory through the error correction code circuit according to the effective index; The second detection module identifies the erroneous data as an uncorrectable error correction code when the valid index is not present in both the preferred detection table and the regular detection table. According to the storage device and the data protection processing performance optimization method thereof, the optimized detection table is set, when data error correction is carried out on data read from the storage device, whether the effective index exists in the optim