# US 11,442,657 B1 · Abnormal data management method, memory storage device, and memory control circuit unit

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

- Number: US 11,442,657 B1
- Document ID: US11442657B1
- Status: Granted
- Kind: B1
- Application number: 17/207,737
- Filed: 2021-03-21
- Published: 2022-09-15
- Granted: 2022-09-13
- Earliest claimed: 2021-03-09
- Assignees: Hefei Core Storage Electronic Limited
- Applicants: Hefei Core Storage Electronic Limited
- Inventors: Yan Zheng; Zhi Wang; Kai-Di Zhu
- Web page: https://patentgrep.com/patent/US11442657B1

## CPC

- G06F 3/0655: {Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices}
- G06F 3/061: {Improving I/O performance}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/064: {Management of blocks}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 11/073: {in a memory management context, e.g. virtual memory or cache management (memory management G06F12/00; testing of static memory units G11C29/00)}
- G06F 11/0754: {by exceeding limits}
- G06F 11/0787: {Storage of error reports, e.g. persistent data storage, storage using memory protection}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A memory management method, a memory storage device, and a memory control circuit unit are provided. The memory management method includes: storing first management information in a rewritable non-volatile memory module, wherein the first management information reflects a storage status of abnormal data in a first physical unit in the rewritable non-volatile memory module; receiving a read command from a host system, wherein the read command instructs to read data stored in a logical unit corresponding to a physical node in the first physical unit; inquiring the first management information according to the read command; transmitting data read from the physical node to the host system if an inquiring result reflects that the abnormal data is not stored in the physical node; and transmitting error information to the host system if the inquiring result reflects that the abnormal data is stored in the physical node.

## Claims

### Claim 1

A memory management method, applicable to a rewritable non-volatile memory module, wherein the rewritable non-volatile memory module comprises a plurality of physical units, the memory management method comprising:
executing a data consolidation operation to copy abnormal data from a second physical unit among the plurality of physical units to a first physical unit among the plurality of physical units;
storing first management information in the rewritable non-volatile memory module and updating the first management information according to second management information, wherein the first management information reflects a storage status of the abnormal data in the first physical unit, and the second management information reflects a storage status of the abnormal data in the second physical unit;
receiving a read command from a host system, wherein the read command instructs to read data stored in at least one logical unit, and the at least one logical unit corresponds to at least one physical node in the first physical unit;
inquiring the first management information according to the read command;
transmitting data read from the at least one physical node to the host system when an inquiring result reflects that the abnormal data is not stored in the at least one physical node; and
transmitting error information to the host system when the inquiring result reflects that the abnormal data is stored in the at least one physical node.

### Claim 2 (depends on 1)

The memory management method according to claim 1, wherein the abnormal data comprises at least one of corrupted data and uncorrectable data.

### Claim 3 (depends on 1)

The memory management method according to claim 1, wherein the first management information comprises unit management information, which reflects whether the abnormal data is stored in the first physical unit.

### Claim 4 (depends on 3)

The memory management method according to claim 3, wherein the first management information further comprises node management information, which reflects whether the abnormal data is stored in the at least one physical node.

### Claim 5 (depends on 4)

The memory management method according to claim 4, wherein the step of inquiring the first management information according to the read command comprises:
obtaining a storage address of the node management information in the rewritable non-volatile memory module according to the unit management information; and
reading the node management information from the storage address.

### Claim 6 (depends on 1)

The memory management method according to claim 1, further comprising:
resetting the second management information after copying the abnormal data from the second physical unit to the first physical unit.

### Claim 7

A memory storage device, comprising:
a connection interface unit, configured to couple to a host system;
a rewritable non-volatile memory module, comprising a plurality of physical units; and
a memory control circuit unit, coupled to the connection interface unit and the rewritable non-volatile memory module, wherein
the memory control circuit unit is configured to execute a data consolidation operation to copy abnormal data from a second physical unit among the plurality of physical units to a first physical unit among the plurality of physical units,
the memory control circuit unit is further configured to store first management information in the rewritable non-volatile memory module and update the first management information according to second management information, wherein the first management information reflects a storage status of the abnormal data in the first physical unit, and the second management information reflects a storage status of the abnormal data in the second physical unit,
the memory control circuit unit is further configured to receive a read command from the host system, wherein the read command instructs to read data stored in at least one logical unit, and the at least one logical unit corresponds to at least one physical node in the first physical unit,
the memory control circuit unit is further configured to inquire the first management information according to the read command,
the memory control circuit unit is further configured to transmit data read from the at least one physical node to the host system when an inquiring result reflects that the abnormal data is not stored in the at least one physical node, and
the memory control circuit unit is further configured to transmit error information to the host system when the inquiring result reflects that the abnormal data is stored in the at least one physical node.

### Claim 8 (depends on 7)

The memory storage device according to claim 7, wherein the abnormal data comprises at least one of corrupted data and uncorrectable data.

### Claim 9 (depends on 7)

The memory storage device according to claim 7, wherein the first management information comprises unit management information, which reflects whether the abnormal data is stored in the first physical unit.

### Claim 10 (depends on 9)

The memory storage device according to claim 9, wherein the first management information further comprises node management information, which reflects whether the abnormal data is stored in the at least one physical node.

### Claim 11 (depends on 10)

The memory storage device according to claim 10, wherein the operation of inquiring the first management information according to the read command comprises:
obtaining a storage address of the node management information in the rewritable non-volatile memory module according to the unit management information; and
reading the node management information from the storage address.

### Claim 12 (depends on 7)

The memory storage device according to claim 7, wherein the memory control circuit unit is further configured to reset the second management information after copying the abnormal data from the second physical unit to the first physical unit.

### Claim 13

A memory control circuit unit, configured to control a rewritable non-volatile memory module, wherein the rewritable non-volatile memory module comprises a plurality of physical units, the memory control circuit unit comprising:
a host interface, configured to couple to a host system;
a memory interface, configured to couple to the rewritable non-volatile memory module; and
a memory management circuit, coupled to the host interface and the memory interface, wherein
the memory management circuit is configured to execute a data consolidation operation to copy abnormal data from a second physical unit among the plurality of physical units to a first physical unit among the plurality of physical units,
the memory management circuit is further configured to store first management information in the rewritable non-volatile memory module and update the first management information according to second management information, wherein the first management information reflects a storage status of the abnormal data in the first physical unit, and the second management information reflects a storage status of the abnormal data in the second physical unit,
the memory management circuit is further configured to receive a read command from the host system, wherein the read command instructs to read data stored in at least one logical unit, and the at least one logical unit corresponds to at least one physical node in the first physical unit,
the memory management circuit is further configured to inquire the first management information according to the read command,
the memory management circuit is further configured to transmit data read from the at least one physical node to the host system when an inquiring result reflects that the abnormal data is not stored in the at least one physical node, and
the memory management circuit is further configured to transmit error information to the host system when the inquiring result reflects that the abnormal data is stored in the at least one physical node.

### Claim 14 (depends on 13)

The memory control circuit unit according to claim 13, wherein the abnormal data comprises at least one of corrupted data and uncorrectable data.

### Claim 15 (depends on 13)

The memory control circuit unit according to claim 13, wherein the first management information comprises unit management information, which reflects whether the abnormal data is stored in the first physical unit.

### Claim 16 (depends on 15)

The memory control circuit unit according to claim 15, wherein the first management information further comprises node management information, which reflects whether the abnormal data is stored in the at least one physical node.

### Claim 17 (depends on 16)

The memory control circuit unit according to claim 16, wherein the operation of inquiring the first management information according to the read command comprises:
obtaining a storage address of the node management information in the rewritable non-volatile memory module according to the unit management information; and
reading the node management information from the storage address.

### Claim 18 (depends on 13)

The memory control circuit unit according to claim 13, wherein the memory management circuit is further configured to reset the second management information after copying the abnormal data from the second physical unit to the first physical unit.
