# US 2023/0055737 A1 · Memory controller with read error handling

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0055737 A1
- Document ID: US20230055737A1
- Status: Published application
- Kind: A1
- Application number: 17/981,298
- Filed: 2022-11-04
- Published: 2023-02-23
- Earliest claimed: 2021-03-30
- Assignees: Yangtze Memory Technologies Co., Ltd.
- Applicants: Yangtze Memory Technologies Co., Ltd.
- Inventors: Boxuan Cheng; Wei Tao; Weizhen Kong; Jian Cao
- Web page: https://patentgrep.com/patent/US20230055737A1

## CPC

- G11C 29/42: using error correcting codes [ECC] or parity check
- G11C 29/4401: {for self repair}
- H03M 13/1108: {Hard decision decoding, e.g. bit flipping, modified or weighted bit flipping}
- H03M 13/1111: {Soft-decision decoding, e.g. by means of message passing or belief propagation algorithms}
- H03M 13/3707: {Adaptive decoding and hybrid decoding, e.g. decoding methods or techniques providing more than one decoding algorithm for one code}
- H03M 13/3746: {with iterative decoding}
- G11C: STATIC STORES (semiconductor memory devices H10B)
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)

## Abstract

A method for handling a read error on a block of a memory device is disclosed. In response to a read failure indicating that at least one error handling mechanism has handled the read error on the block and fails to read data stored in the block, a memory test is trigged to be performed on the block. The memory test is configured to determine whether the block malfunctions.

## Claims

### Claim 1

A method for handling a read error on a block of a memory device, comprising:
in response to a read failure indicating that at least one error handling mechanism has handled the read error on the block and fails to read data stored in the block, triggering to perform a memory test on the block, the memory test being configured to determine whether the block malfunctions.

### Claim 2 (depends on 1)

The method of claim 1, wherein the memory test comprises a set of test procedures configured to apply a plurality of read voltages to evaluate whether the block is a bad block.

### Claim 3 (depends on 1)

The method of claim 1, wherein performing the memory test comprises:
applying a plurality of read voltages to a word line coupled to the block; and
detecting, at least in part, an output current of each memory cell in the block to determine whether there is any abnormality occurring to the output current, thereby determining whether the block malfunctions.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
in response to determining that the block passes the memory test:
releasing the block from a list of temporary bad blocks, the temporal bad blocks being configured as inaccessible, at least, before performing the memory test on the block; and
pushing the block to a target block list of a garbage collection to identify the block as a candidate block for recycling.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
in response to determining that the block fails the memory test:
updating a mapping table to include the block that fails the memory test to identify the block as a bad block.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
before performing the memory test on the block:
pushing the block to a test queue that is configured to include a set of blocks of the memory device waiting for the memory test; and
pushing the block to a list of temporary bad blocks, the temporal bad blocks being configured as inaccessible, at least, before performing the memory test on the block.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
in response to determining that there is a task to be fulfilled with higher priority than the memory test:
performing the task before performing the memory test on the block.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
applying the at least one error handling mechanism to handle the read error on the block; and
in response to the at least one error handling mechanism failing to read the data stored in the block, generating notification data indicative of the read failure of the at least one error handling mechanism on reading the data stored in the block.

### Claim 9 (depends on 1)

The method of claim 1, wherein the read failure of the at least one error handling mechanism comprises one of:
a first read failure indicating that a first error handling mechanism failed on handling the read error on the block, the first error handling mechanism being configured to use a default read voltage to read the data stored in the block and a low density parity check (LDPC) hard decoding strategy for data decoding;
a second read failure indicating that the first error handling mechanism and a second error handling mechanism failed on handling the read error on the block, the second error handling mechanism configured to use a set of read voltages in a read-retry table to read the data stored in the block and the LDPC hard decoding strategy for the data decoding;
a third read failure indicating that the first error handling mechanism, the second error handling mechanism, and a third error handling mechanism failed on handling the read error on the block, the third error handling mechanism being configured to use a set of shifted read voltages to read the data stored in the block and an LDPC soft decoding strategy for the data decoding; or
a fourth read failure indicating that the first error handling mechanism, the second error handling mechanism, the third error handling mechanism, and a fourth error handling mechanism failed on handling the read error on the block, the fourth error handling mechanism being configured to use a redundant array of independent disks (RAID) data restoration strategy to handle the read error on the block.

### Claim 10

A system, comprising:
a memory device comprising an array of memory cells that comprises a plurality of blocks configured for storing data; and
a controller coupled to the memory device and configured to:
in response to a read failure indicating that at least one error handling mechanism has handled a read error on one block of the plurality of blocks and fails to read the data stored in the block, trigger to perform a memory test on the block, the memory test being configured to determine whether the block malfunctions.

### Claim 11 (depends on 10)

The system of claim 10, wherein the memory test comprises a set of test procedures configured to apply a plurality of read voltages to evaluate whether the block is a bad block.

### Claim 12 (depends on 10)

The system of claim 10, wherein the controller is further configured to:
apply a plurality of read voltages to a word line coupled to the block; and
control to detect, at least in part, an output current of each memory cell in the block to determine whether there is any abnormality occurring to the output current, thereby determining whether the block malfunctions.

### Claim 13 (depends on 10)

The system of claim 10, wherein the controller is further configured to:
in response to determining that the block passes the memory test:
release the block from a list of temporary bad blocks, the temporal bad blocks being configured as inaccessible, at least, before performing the memory test on the block; and
push the block to a target block list of a garbage collection to identify the block as a candidate block for recycling.

### Claim 14 (depends on 10)

The system of claim 10, wherein the controller is further configured to:
in response to determining that the block fails the memory test:
update a mapping table to include the block that fails the memory test to identify the block as a bad block.

### Claim 15 (depends on 10)

The system of claim 10, wherein:
the controller comprises a test queue configured to include a set of blocks of the memory device waiting for the memory test; and
before performing the memory test on the block, the controller is further configured to:
push the block to the test queue; and
push the block to a list of temporary bad blocks, the temporal bad blocks being configured as inaccessible, at least, before performing the memory test on the block.

### Claim 16 (depends on 15)

The system of claim 15, wherein in response to determining that there is a task to be fulfilled with higher priority than the memory test, the controller is further configured to:
perform the task before performing the memory test on the block.

### Claim 17 (depends on 10)

The system of claim 10, wherein the controller is configured to:
apply the at least one error handling mechanism to handle the read error on the block; and
in response to the at least one error handling mechanism failing to read the data stored in the block, generate notification data indicative of the read failure of the at least one error handling mechanism on reading the data stored in the block.

### Claim 18 (depends on 10)

The system of claim 10, wherein the read failure of the at least one error handling mechanism comprises one of:
a first read failure indicating that a first error handling mechanism failed on handling the read error on the block, the first error handling mechanism being configured to use a default read voltage to read the data stored in the block and a low density parity check (LDPC) hard decoding strategy for data decoding;
a second read failure indicating that the first error handling mechanism and a second error handling mechanism failed on handling the read error on the block, the second error handling mechanism configured to use a set of read voltages in a read-retry table to read the data stored in the block and the LDPC hard decoding strategy for the data decoding;
a third read failure indicating that the first error handling mechanism, the second error handling mechanism, and a third error handling mechanism failed on handling the read error on the block, the third error handling mechanism being configured to use a set of shifted read voltages to read the data stored in the block and an LDPC soft decoding strategy for the data decoding; or
a fourth read failure indicating that the first error handling mechanism, the second error handling mechanism, the third error handling mechanism, and a fourth error handling mechanism failed on handling the read error on the block, the fourth error handling mechanism being configured to use a redundant array of independent disks (RAID) data restoration strategy to handle the read error on the block.

### Claim 19 (depends on 10)

The system of claim 10, further comprising:
a host configured to send a read request, for reading the data stored in the block, to the memory device through the controller,
wherein the controller is further configured to:
in response to the at least one error handling mechanism reading the data stored in the block successfully, return the data to the host; and
in response to the read failure indicating that at least one error handling mechanism failing to read the data stored in the block, report a data loss to the host.

### Claim 20

A non-transitory storage medium, coupled to a processor and storing instructions that, when executed by the processor, cause the processor to:
in response to a read failure indicating that at least one error handling mechanism has handled a read error on a block of a memory device and failed to read data stored in the block, trigger to perform a memory test on the block, the memory test being configured to determine whether the block malfunctions.
