# US 2022/0365577 A1 · Memory system and controller

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

- Number: US 2022/0365577 A1
- Document ID: US20220365577A1
- Status: Published application
- Kind: A1
- Application number: 17/878,788
- Filed: 2022-08-01
- Published: 2022-11-17
- Earliest claimed: 2014-09-10
- Assignees: Kioxia Corporation
- Applicants: Kioxia Corporation
- Inventors: Yoshihisa Kojima; Katsuhiko Ueki
- Web page: https://patentgrep.com/patent/US20220365577A1

## CPC

- G06F 1/263: {Arrangements for using multiple switchable power supplies, e.g. battery and AC (G06F1/30 takes precedence)}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 2212/2028: Battery-backed RAM
- G06F 2212/205: Hybrid memory, e.g. using both volatile and non-volatile memory
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In a memory system in an embodiment, in a case of normal operation, a control unit returns a write completion response upon completion of reception of write data from a host, and writes the write data into nonvolatile memory in a multiple values. In a case of unordinary power-off, changeover to operation using a backup battery is conducted and the control unit writes dirty data that is not completed in writing into the nonvolatile memory, into the nonvolatile memory with two values. When next boot, the control unit reads the dirty data from the nonvolatile memory into the volatile memory, and thereafter writes the dirty data into the nonvolatile memory in a multiple values.

## Claims

### Claim 1

A method of controlling a memory system, the memory system including a nonvolatile memory, a buffer, and a battery configured to store power on the basis of power supplied from an external supply, said method comprising:
in a case where power becomes unsupplied from the external supply, by using the power stored in the battery,
stopping accepting new write commands from a host;
cancelling a first write command received from the host if a completion response for the first write command has not been returned to the host; and
writing second data stored in the buffer into the nonvolatile memory if a completion response for a second write command received from the host has been returned to the host, the second data being data related to the second write command.

### Claim 2 (depends on 1)

The method according to claim 1, wherein
by cancelling the first write command, at least a part of first data is not written into the nonvolatile memory, the first data being data related to the first write command.

### Claim 3 (depends on 1)

The method according to claim 1, wherein
the memory system further includes a power control circuit that includes the battery, and
the power control circuit is configured to supply, to the nonvolatile memory or the buffer of the memory system, at least one of the power supplied from the external supply and the power stored in the battery.

### Claim 4 (depends on 1)

The method according to claim 1, wherein
the nonvolatile memory includes a memory cell, and
the method further comprises:
writing the second data into the nonvolatile memory so that the memory cell into which at least a part of the second data is written stores only one bit.

### Claim 5 (depends on 4)

The method according to claim 4, wherein
the nonvolatile memory further includes a plurality of blocks, each of the plurality of blocks being a unit for a data erase operation, a first block among the plurality of blocks including the memory cell, and
the method further comprises:
before the power becomes unsupplied from the external supply, by using the power supplied from the external supply,
performing a data erase operation on the first block; and
in the case where the power becomes unsupplied from the external supply, by using the power stored in the battery,
writing at least the part of the second data into the memory cell in the first block.

### Claim 6 (depends on 1)

The method according to claim 1, further comprising:
upon a start-up of the memory system after the second data has been written into the nonvolatile memory,
reading the second data from the nonvolatile memory using the power supplied from the external supply; and
writing third data into the nonvolatile memory using the power supplied from the external supply, the third data being the second data read from the nonvolatile memory.

### Claim 7 (depends on 6)

The method according to claim 6, wherein
the nonvolatile memory includes a plurality of memory cells including a first memory cell and a second memory cell, and
the method further comprises:
writing the second data into the nonvolatile memory so that the first memory cell into which at least a part of the second data is written stores only one bit, and
writing the third data into the nonvolatile memory so that the second memory cell into which at least a part of the third data is written stores more than one bit.

### Claim 8 (depends on 1)

The method according to claim 1, further comprising:
managing an address translation table to conduct address translation from a logical address of data specified by the host to a physical address specifying a location of the nonvolatile memory in which the data is stored;
storing, at a first timing, a snapshot of the address translation table into the nonvolatile memory;
storing, at a second timing after the first timing, a log into the buffer, the log indicating a difference of the address translation table from the snapshot; and
in the case where the power becomes unsupplied from the external supply, by using the power stored in the battery,
writing the log stored in the buffer into the nonvolatile memory.

### Claim 9 (depends on 8)

The method according to claim 8, further comprising:
upon a start-up of the memory system after the log has been written into the nonvolatile memory,
reading the snapshot and the log from the nonvolatile memory, and restoring the address translation table of the second timing by using the read snapshot and the read log.

### Claim 10 (depends on 1)

The method according to claim 1, wherein
the battery is composed of a capacitor.

### Claim 11

A method of controlling a solid state drive (SSD), the SSD including a NAND flash memory and a capacitor configured to store energy on the basis of energy supplied from a power source, said method comprising:
if a completion response for a first write command received from a host has not been returned to the host in a case where energy becomes unsupplied from the power source, by using energy discharged from the capacitor,
stopping all new operations to the NAND flash memory for the first write command; and
aborting the first write command received from the host.

### Claim 12 (depends on 11)

The method according to claim 11, further comprising:
in the case where the energy becomes unsupplied from the power source, stopping accepting new write commands from the host.

### Claim 13 (depends on 11)

The method according to claim 11, wherein,
by stopping all new operations to the NAND flash memory for the first write command, at least a part of first data is not committed to the NAND flash memory, the first data being data related to the first write command.

### Claim 14 (depends on 11)

The method according to claim 11, wherein
the SSD further includes a circuit configured to supply, to the NAND flash memory of the SSD, at least one of the energy supplied from the power source and the energy stored in the capacitor.

### Claim 15 (depends on 11)

The method according to claim 11, wherein
the SSD further includes a volatile memory, and
the method further comprises:
in the case where the energy becomes unsupplied from the power source,
committing data-in-flight buffered in the volatile memory to the NAND flash memory using the energy discharged from the capacitor, the data-in-flight being data acknowledged as written back to the host but not yet committed to the NAND flash memory.

### Claim 16 (depends on 15)

The method according to claim 15, further comprising:
committing the data-in-flight to the NAND flash memory in a single level cell (SLC) mode.

### Claim 17 (depends on 15)

The method according to claim 15, wherein
the NAND flash memory includes a plurality of blocks, each of the plurality of blocks being a unit for a data erase operation, and
the method further comprises:
before the energy becomes unsupplied from the power source, by using the energy supplied from the power source,
performing a data erase operation on a first block among the plurality of blocks; and
in the case where the energy becomes unsupplied from the power source, by using the energy discharged from the capacitor,
committing the data-in-flight to the first block.

### Claim 18 (depends on 15)

The method according to claim 15, further comprising:
upon a start-up of the SSD after the data-in-flight has been committed to the NAND flash memory,
reading the data-in-flight from the NAND flash memory; and
committing the read data-in-flight to the NAND flash memory in a multi level cell (MLC) mode.

### Claim 19 (depends on 11)

The method according to claim 11, wherein
the SSD further includes a dynamic random access memory (DRAM), and
the method further comprises:
managing a logical-to-physical address table in real-time using the DRAM; and
in the case where the energy becomes unsupplied from the power source, by using the energy discharged from the capacitor,
committing, to the NAND flash memory, information for rebuilding the logical-to-physical address table.

### Claim 20 (depends on 19)

The method according to claim 19, further comprising:
upon a start-up of the SSD after the information has been committed to the NAND flash memory,
rebuilding the logical-to-physical address table from the information.
