# US 2023/0069122 A1 · Metadata management for ungraceful shutdown of a memory sub-system

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

- Number: US 2023/0069122 A1
- Document ID: US20230069122A1
- Status: Published application
- Kind: A1
- Application number: 17/458,173
- Filed: 2021-08-26
- Published: 2023-03-02
- Earliest claimed: 2021-08-26
- Assignees: Micron Technology, Inc.
- Applicants: Micron Technology, Inc.
- Inventors: Seungjune Jeon; Fangfang Zhu; Juane Li; Jiangli Zhu; Ning Chen
- Web page: https://patentgrep.com/patent/US20230069122A1

## CPC

- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 12/1009: using page tables, e.g. page table structures
- G06F 2212/1008: Correctness of operation, e.g. memory ordering
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F 2212/1044: Space efficiency improvement
- G06F 2212/7201: Logical to physical mapping or translation of blocks or pages
- G06F 2212/7204: Capacity control, e.g. partitioning, end-of-life degradation
- G06F 2212/7207: management of metadata or control data
- G06F 2212/7208: Multiple device management, e.g. distributing data over multiple flash devices
- G06F 2212/7211: Wear leveling
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A logical-to-physical (L2P) data structure and a physical-to-logical (P2L) data structure are maintained. The L2P data structure comprises table entries that map a logical address to a physical address. The P2L data structure comprises data entries that map a physical address to a logical address. The P2L data entries also comprise a data move status, a base address, and a boundary indicator. A move operation is detected, wherein the move operation indicates that data referenced by a logical address is to be moved from a source physical address to a destination physical address. Responsive to detecting the move operation, the data move status associated with the source physical address in the P2L data structure is updated.

## Claims

### Claim 1

A system comprising:
a plurality of memory devices; and
a processing device, operatively coupled with the memory device, to perform operations comprising:
maintaining, on a memory device of the plurality of memory devices, a logical-to-physical (L2P) data structure comprising a plurality of L2P table entries, each L2P table entry mapping a logical address to a physical address identifying a super management unit (SMU) on one of the plurality of memory devices;
maintaining, on the memory device, a physical-to-logical (P2L) data structure comprising a plurality of P2L table entries, each P2L table entry mapping a physical address identifying an SMU on the memory device to a corresponding logical address, wherein a P2L table entry comprises a data move status, a base address, and a boundary indicator;
detecting an SMU move operation, wherein the SMU move operation indicates that data referenced by a logical SMU (LSMU) is to be moved from a source physical SMU (PSMU) to a destination PSMU; and
responsive to detecting the SMU move operation, updating the data move status associated with the source PSMU in the P2L data structure.

### Claim 2 (depends on 1)

The system of claim 1, wherein the memory device is a volatile memory device, and wherein the L2P data structure and P2L data structure are maintained on a non-volatile memory device.

### Claim 3 (depends on 1)

The system of claim 1, wherein the data move status is updated to indicate that the source PSMU is associated with the SMU move operation as the source PSMU.

### Claim 4 (depends on 1)

The system of claim 1, wherein the operations further comprise:
updating a P2L table entry corresponding to the destination PSMU to map to the LSMU;
updating the base address of the P2L table entry corresponding to the destination PSMU, wherein the updated base address is randomly selected; and
updating the data move status of the P2L table entry corresponding to the destination PSMU, the data move status indicating that the destination PSMU is associated with the SMU move as the destination PSMU.

### Claim 5 (depends on 1)

The system of claim 1, wherein the operations further comprise:
updating a first boundary indicator of the P2L table entry corresponding to the destination PSMU by reversing a binary value of the first boundary indicator.

### Claim 6 (depends on 1)

The system of claim 1, wherein the operations further comprise:
performing the SMU move operation.

### Claim 7 (depends on 6)

The system of claim 6, wherein performing the SMU move operation comprises:
identifying a plurality of MUs referenced by the source PSMU;
reading data referenced by an MU in the plurality of MUs;
updating a second boundary indicator associated with the MU by reversing a binary value of the second boundary indicator; and
writing the data to the destination PSMU.

### Claim 8 (depends on 6)

The system of claim 6, wherein the operations further comprise:
responsive to performing the SMU move operation, updating an L2P table entry corresponding to the LSMU to map to the destination PSMU; and
updating the P2L table entry corresponding to the source PSMU to unmap the source PSMU; and
updating the data move status to indicate that the source PSMU is not associated with the SMU move.

### Claim 9 (depends on 8)

The system of claim 8, wherein the operations further comprise:
updating the data move status associated with P2L table entry corresponding to the destination PSMU to indicate that the destination PSMU is not associated with the SMU move.

### Claim at position 10

10-15. (canceled)

### Claim 16

A non-transitory computer-readable storage medium comprising instructions that, when executed by a processing device, cause the processing device to perform operations comprising:
maintaining, on a memory device of a memory sub-system, a logical-to-physical (L2P) data structure comprising a plurality of L2P table entries, each L2P table entry mapping a logical address to a physical address identifying a super management unit (SMU) on the memory device;
maintaining, on the memory device, a physical-to-logical (P2L) data structure comprising a plurality of P2L table entries, each P2L table entry mapping a physical address identifying an SMU on the memory device to a corresponding logical address, wherein a P2L table entry comprises a data move status, a base address, and a boundary indicator;
detecting an SMU move operation, wherein the SMU move operation indicates that data referenced by a logical SMU (LSMU) is to be moved from a source physical SMU (PSMU) to a destination PSMU; and
responsive to detecting the SMU move operation, updating the data move status associated with the source PSMU in the P2L data structure.

### Claim 17 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, wherein the data move status is updated to indicate that the source PSMU is associated with the SMU move operation as the source PSMU.

### Claim 18 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, wherein the processing device is to perform operations further comprising:
updating the P2L table entry corresponding to the destination PSMU to map to the LSMU;
updating the base address of the P2L table entry corresponding to the destination PSMU, wherein the updated base address is randomly selected;
updating the data move status of the P2L table entry corresponding to the destination PSMU, the data move status indicating that the destination PSMU is associated with the SMU move as the destination PSMU; and
updating a first boundary indicator of the P2L table entry corresponding to the destination PSMU, by reversing a binary value of the first boundary indicator.

### Claim 19 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, wherein the processing device is to perform operations further comprising:
performing the SMU move operation.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage medium of claim 19, wherein the processing device is to perform operations further comprising:
responsive to performing the SMU move operation, updating the L2P table entry corresponding to the LSMU to map to the destination PSMU; and
updating the P2L table entry corresponding to the source PSMU to unmap the source PSMU;
updating the data move status to indicate that the source PSMU is not associated with the SMU move; and
updating the data move status associated with P2L table entry corresponding to the destination PSMU to indicate that the destination PSMU is not associated with the SMU move.

### Claim 21

A method comprising:
maintaining, on a memory device of a memory sub-system, a logical-to-physical (L2P) data structure comprising a plurality of L2P table entries, each L2P table entry mapping a logical address to a physical address identifying a super management unit (SMU) on the memory device;
maintaining, on the memory device, a physical-to-logical (P2L) data structure comprising a plurality of P2L table entries, each P2L table entry mapping a physical address identifying an SMU on the memory device to a corresponding logical address, wherein a P2L table entry comprises a data move status, a base address, and a boundary indicator;
detecting an SMU move operation, wherein the SMU move operation indicates that data referenced by a logical SMU (LSMU) is to be moved from a source physical SMU (PSMU) to a destination PSMU; and
responsive to detecting the SMU move operation, updating the data move status associated with the source PSMU in the P2L data structure.

### Claim 22 (depends on 21)

The method of claim 21, wherein the memory device is a volatile memory device, and wherein the L2P data structure and P2L data structure are maintained on a non-volatile memory device.

### Claim 23 (depends on 21)

The method of claim 21, wherein the data move status is updated to indicate that the source PSMU is associated with the SMU move operation as the source PSMU.

### Claim 24 (depends on 21)

The method of claim 21, further comprising:
updating a P2L table entry corresponding to the destination PSMU to map to the LSMU;
updating the base address of the P2L table entry corresponding to the destination PSMU, wherein the updated base address is randomly selected; and
updating the data move status of the P2L table entry corresponding to the destination PSMU, the data move status indicating that the destination PSMU is associated with the SMU move as the destination PSMU.

### Claim 25 (depends on 21)

The method of claim 21, further comprising:
updating a first boundary indicator of the P2L table entry corresponding to the destination PSMU by reversing a binary value of the first boundary indicator.

### Claim 26 (depends on 21)

The method of claim 21, further comprising:
performing the SMU move operation by:
identifying a plurality of MUs referenced by the source PSMU;
reading data referenced by an MU in the plurality of MUs;
updating a second boundary indicator associated with the MU by reversing a binary value of the second boundary indicator; and
writing the data to the destination PSMU;
responsive to performing the SMU move operation, updating an L2P table entry corresponding to the LSMU to map to the destination PSMU; and
updating the P2L table entry corresponding to the source PSMU to unmap the source PSMU;
updating the data move status to indicate that the source PSMU is not associated with the SMU move; and
updating the data move status associated with P2L table entry corresponding to the destination PSMU to indicate that the destination PSMU is not associated with the SMU move.
