# US 2022/0292017 A1 · Enhancing cache dirty information

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

- Number: US 2022/0292017 A1
- Document ID: US20220292017A1
- Status: Published application
- Kind: A1
- Application number: 17/200,149
- Filed: 2021-03-12
- Published: 2022-09-15
- Earliest claimed: 2021-03-12
- Assignees: Kioxia Corporation
- Applicants: Kioxia Corporation
- Inventors: David Symons; Ezequiel Alves
- Web page: https://patentgrep.com/patent/US20220292017A1

## CPC

- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 12/0804: with main memory updating (G06F12/0806 takes precedence)
- G06F 12/0871: Allocation or management of cache space
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F 2212/222: Non-volatile memory
- G06F 2212/7201: Logical to physical mapping or translation of blocks or pages
- G06F 2212/7203: Temporary buffering, e.g. using volatile buffer or dedicated buffer blocks
- G11C 14/0018: {whereby the nonvolatile element is an EEPROM element, e.g. a floating gate or metal-nitride-oxide-silicon [MNOS] transistor}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A method performed by a controller comprising assigning a first status indicator to entries in a first address line in a volatile memory belonging to a first region of an LUT stored in a non-volatile memory, and a second status indicator to entries in the first address line in the volatile memory belonging to a second region of the LUT, setting either the first or second status indicator to a dirty status based on whether a cache updated entry at an address m in the volatile memory belongs to the first or second region of the LUT, and writing, based on the dirty status of the first and second status indicator at the address m, all entries in the volatile memory associated with the first region or the second region containing the updated entry to the non-volatile memory.

## Claims

### Claim 1

A memory storage system comprising:
a non-volatile semiconductor memory device configured to store a look-up table (LUT) comprising entries grouped into at least one first region and at least one second region;
a volatile semiconductor memory device configured to temporarily store the entries of the LUT from the non-volatile semiconductor memory device; and
a controller configured to store and retrieve data in the non-volatile semiconductor memory device in response to commands received from a host external to the memory storage system, the controller comprising a cache comprising a plurality of cache lines communicatively coupled to the volatile semiconductor memory device and configured to temporarily store in a cache line z of the plurality of cache lines entries read from an address m of a plurality of addresses of the volatile semiconductor device, the controller configured to:
assign a first status indicator and a second status indicator to each of the plurality of cache lines in the cache corresponding to a plurality of cached addresses of the volatile semiconductor memory device, the first status indicator corresponding to entries of a first cached address of the volatile semiconductor memory device belonging to the first region of the LUT, and the second status indicator corresponding to entries of the first cached address of the volatile semiconductor memory device belonging to the second region of the LUT,
update an entry of the LUT at the address m in the volatile semiconductor memory device read into the cache line z of the cache,
set either the first status indicator or the second status indicator to a dirty status based on whether an updated entry in the cache line z read from the address m is in the first region or the second region of the LUT, respectively, and
copy, based on the dirty status of the first status indicator or the second status indicator of the cache line z, all entries in the volatile semiconductor memory device associated with the first region or the second region containing the updated entry to the non-volatile semiconductor memory device.

### Claim 2 (depends on 1)

The memory storage system of claim 1, wherein the controller is further configured to:
read the entry of the LUT at address m to the cache line z; and
write the cache line z back to address m of the volatile semiconductor memory device.

### Claim 3 (depends on 1)

The memory storage system of claim 1, wherein the controller is configured to update only one entry of the LUT in the cache at a time.

### Claim 4 (depends on 1)

The memory storage system of claim 1, wherein the controller is configured to repeatedly update entries of the LUT in the volatile semiconductor memory device via the cache based on commands received from the host.

### Claim 5 (depends on 1)

The memory storage system of claim 1, wherein the LUT maps a logical cluster address (LCA) to a media cluster address (MCA) in the non-volatile semiconductor memory device.

### Claim 6 (depends on 1)

The memory storage system of claim 1, wherein the non-volatile semiconductor memory device is configured to store a second LUT which maps an index associated with each of the at least one first region and the at least one second region to a media cluster address (MCA) in the non-volatile semiconductor memory device.

### Claim 7 (depends on 6)

The memory storage system of claim 6, wherein the controller is further configured to:
access the second LUT to determine a starting MCA address of the region containing the updated entry in the non-volatile semiconductor memory device.

### Claim 8 (depends on 1)

The memory storage system of claim 1, wherein the controller is further configured to:
copy the LUT from the non-volatile semiconductor memory device to the volatile semiconductor memory device when the memory storage system first starts up.

### Claim 9 (depends on 1)

The memory storage system of claim 1, wherein the first and second status indicators each comprise a bit.

### Claim 10 (depends on 9)

The memory storage system of claim 9, wherein each bit is set to a clean status before the entry of the LUT at the address m is updated in the cache.

### Claim 11 (depends on 10)

The memory storage system of claim 10, wherein the controller sets the bit to ‘0’ for the clean status, and sets the bit to ‘1’ for the dirty status.

### Claim 12 (depends on 1)

The memory storage system of claim 1, wherein the cache comprises a write back cache.

### Claim 13 (depends on 1)

The memory storage system of claim 1, wherein the cache is formed in a portion of the volatile semiconductor memory device.

### Claim 14 (depends on 1)

The memory storage system of claim 1, wherein the non-volatile semiconductor memory device is a NAND semiconductor memory.

### Claim 15 (depends on 1)

The memory storage system of claim 1, wherein the volatile semiconductor memory device is a Dynamic Random Access Memory (DRAM).

### Claim 16 (depends on 1)

The memory storage system of claim 1, wherein the cache comprises a Static Random Access Memory (SRAM).

### Claim 17 (depends on 1)

The memory storage system of claim 1, wherein the controller comprises a system-on-chip (SoC) controller.

### Claim 18 (depends on 17)

The memory storage system of claim 17, wherein at least a portion of the volatile semiconductor memory device is external to the SoC controller.

### Claim 19

A method performed by a controller of a memory storage system comprising a non-volatile semiconductor memory device configured to store a look-up table (LUT) comprising entries grouped into at least one first region and at least one second region, a volatile semiconductor memory device configured to temporarily store the entries of the LUT from the non-volatile semiconductor memory device, and a cache comprising a plurality of cache lines communicatively coupled to the volatile semiconductor memory device and configured to temporarily store in a cache line z of the plurality of cache lines entries read from an address m of a plurality of address lines of the volatile semiconductor device, the method comprising the steps of:
assigning a first status indicator and a second status indicator to each of the plurality of cache lines in the cache corresponding to a plurality of cached addresses of the volatile semiconductor memory device, the first status indicator assigned to entries of a first cached address of the volatile semiconductor memory device belonging to the first region of the LUT, and the second status indicator assigned to entries of the first cached address of the volatile semiconductor memory device belonging to the second region of the LUT;
updating an entry of the LUT at the address m in the volatile semiconductor memory device read into the cache line z of the cache;
setting either the first status indicator or the second status indicator to a dirty status based on whether an updated entry in the cache line z read from the address m is in the first region or the second region of the LUT, respectively; and
copying, based on the dirty status of the first status indicator or the second status indicator of the cache line z, all entries in the volatile semiconductor memory device associated with the first region or the second region containing the updated entry to the non-volatile semiconductor memory device.

### Claim 20 (depends on 19)

The method of claim 19, further comprising the steps of:
reading the entry of the LUT at address m to the cache line z; and
writing the cache line z back to address m of the volatile semiconductor memory device.

### Claim 21 (depends on 19)

The method of claim 19, wherein the step of updating is performed on only one entry of the LUT in the cache at a time.

### Claim 22 (depends on 19)

The method of claim 19, wherein the step of updating is performed repeatedly based on commands received from the host.

### Claim 23 (depends on 19)

The method of claim 19, wherein the LUT maps a logical cluster address (LCA) to a media cluster address (MCA) in the non-volatile semiconductor memory device.

### Claim 24 (depends on 19)

The method of claim 19, wherein the non-volatile semiconductor memory device is configured to store a second LUT which maps an index associated with each of the at least one first region and the at least one second region to a media cluster address (MCA) in the non-volatile semiconductor memory device.

### Claim 25 (depends on 24)

The method of claim 24, further comprising the step of:
accessing the second LUT to determine a starting MCA address of the region containing the updated entry in the non-volatile semiconductor memory device.

### Claim 26 (depends on 19)

The method of claim 19, further comprising the step of:
copying the LUT from the non-volatile semiconductor memory device to the volatile semiconductor memory device when the SSD first starts up.

### Claim 27 (depends on 19)

The method of claim 19, wherein the first and second status indicators each comprise a bit.

### Claim 28 (depends on 27)

The method of claim 27, further comprising the step of:
setting each bit to a clean status before the entry of the LUT at the address m is updated in the cache.

### Claim 29 (depends on 28)

The method of claim 28, wherein setting a bit to the clean status comprises setting the bit to ‘0’, and setting a bit to the dirty status comprises setting the bit to ‘1’.
