# US 2023/0147206 A1 · Data Integrity Protection Of SSDs Utilizing Streams

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

- Number: US 2023/0147206 A1
- Document ID: US20230147206A1
- Status: Published application
- Kind: A1
- Application number: 18/093,734
- Filed: 2023-01-05
- Published: 2023-05-11
- Earliest claimed: 2020-05-26
- Assignees: Western Digital Technologies, Inc.
- Applicants: Western Digital Technologies, Inc.
- Inventors: Daniel L. HELMICK; Peter GRAYSON
- Web page: https://patentgrep.com/patent/US20230147206A1

## CPC

- G06F 3/065: {Replication mechanisms}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 1/30: Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations (for resetting only G06F1/24)
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/061: {Improving I/O performance}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0656: {Data buffering arrangements}
- G06F 3/068: {Hybrid storage device}
- G06F 11/108: {Parity data distribution in semiconductor storages, e.g. in SSD}
- G06F 11/1441: {Resetting or repowering}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 12/0804: with main memory updating (G06F12/0806 takes precedence)
- G06F 12/10: Address translation
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F 2212/657: Virtual address space management
- G06F 2212/7203: Temporary buffering, e.g. using volatile buffer or dedicated buffer blocks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure generally relates to methods of operating storage devices. The storage device comprises a controller comprising first random access memory (RAM1), second random access memory (RAM2), and a storage unit divided into a plurality of streams. When a write command is received to write data to a stream, change log data is generated and stored in the RAM1, the previous delta data for the stream is copied from the RAM2 to the RAM1 to be updated with the change log data, and the updated delta data is copied to the RAM2. The delta data stored in the RAM2 is copied to the storage unit periodically. The controller tracks which delta data has been copied to the RAM2 and to the storage unit. During a power failure, the delta data and the change log data are copied from the RAM1 or the RAM2 to the storage unit.

## Claims

### Claim 1

A storage device, comprising:
a non-volatile storage unit, wherein a capacity of the non-volatile storage unit is divided into a plurality of streams, and wherein the non-volatile storage unit comprises a plurality of dies, each of the plurality of dies comprising a plurality of erase blocks;
a first volatile memory unit; and
a controller coupled to the non-volatile storage unit and the first volatile memory unit, the controller comprising a second volatile memory unit, wherein the controller is configured to:
receive one or more commands to write data to a first stream of the plurality of streams;
generate change log data for the first stream in a temporary location in the second volatile memory unit; and
copy the change log data for the first stream to the non-volatile storage unit upon experiencing a power failure event.

### Claim 2 (depends on 1)

The storage device of claim 1, wherein the controller is further configured to:
copy previous delta data for the first stream from the first volatile memory unit to the second volatile memory unit upon receiving the one or more commands to write data to the first stream; and
update the previous delta data with the change log data in the second volatile memory unit.

### Claim 3 (depends on 2)

The storage device of claim 2, wherein the controller is further configured to:
copy the updated delta data from the second volatile memory unit to the first volatile memory unit; and
copy the updated delta data from the second volatile memory unit to the non-volatile storage unit.

### Claim 4 (depends on 3)

The storage device of claim 3, wherein the controller is further configured to:
track when the previous delta data has been updated with the change log data; and
copy the change log data to the non-volatile storage unit when the previous delta data has not yet been updated with the change log data.

### Claim 5 (depends on 1)

The storage device of claim 1, further comprising one or more energy storage devices configured to provide power to the controller, wherein the controller is further configured to use the power provided by the one or more energy storage devices to copy the change log data for the first stream to the non-volatile storage unit upon experiencing the power failure event.

### Claim 6 (depends on 1)

The storage device of claim 1, wherein the first volatile memory unit stores a first logical to physical address table, the first logical to physical address table associating logical block addresses of data to a physical address of where the data is stored in the non-volatile storage unit.

### Claim 7 (depends on 6)

The storage device of claim 6, wherein the controller is further configured to:
partition the first logical to physical address table into sections; and
update a second logical to physical address table stored in the non-volatile storage unit, wherein the second logical to physical address table is updated in the partitioned section size.

### Claim 8 (depends on 1)

The storage device of claim 1, wherein the first volatile memory unit comprises a plurality of ranks, and wherein the plurality of ranks is divided into one or more sections.

### Claim 9

A storage device, comprising:
a non-volatile storage unit, wherein a capacity of the non-volatile storage unit is divided into a plurality of streams, and wherein the non-volatile storage unit comprises a plurality of dies, each of the plurality of dies comprising a plurality of erase blocks;
a first volatile memory unit comprising a plurality of ranks, wherein the plurality of ranks is divided into one or more sections; and
a controller coupled to the non-volatile storage unit and the first volatile memory unit, the controller comprising a second volatile memory unit, wherein the controller is configured to:
receive one or more write commands to write data to one or more streams of the plurality of streams;
update delta data associated with at least one stream of the one or more streams for each of the one or more write commands received in the second volatile memory unit, wherein delta data is updated for a particular stream each time a command is received to write data to the particular stream;
copy the delta data associated with the at least one stream from the second volatile memory unit to the plurality of ranks of the first volatile memory unit;
determine when a majority of the ranks within each section of the one or more sections have been updated or written to; and
copy at least one section of the one or more sections to the non-volatile storage unit when the determination is made that the majority of the ranks within the at least one section have been updated or written to.

### Claim 10 (depends on 9)

The storage device of claim 9, wherein each of the one or more sections stores data for about 1 stream to about 5 streams.

### Claim 11 (depends on 9)

The storage device of claim 9, further comprising one or more energy storage devices configured to provide power to the controller, wherein the controller is further configured to use the power provided by the one or more energy storage devices to copy all data stored in the first volatile memory unit to the non-volatile storage unit upon experiencing a power failure event.

### Claim 12 (depends on 9)

The storage device of claim 9, wherein each of the one or more sections comprising about 1 rank to about 10 ranks.

### Claim 13 (depends on 9)

The storage device of claim 9, wherein:
the second volatile memory unit is static random-access memory (SRAM);
the first volatile memory unit is dynamic random-access memory (DRAM); and
the non-volatile storage unit is NAND memory.

### Claim 14 (depends on 9)

The storage device of claim 9, wherein the first volatile memory unit is magnetoresistive random-access memory (MRAM).

### Claim 15

A storage device, comprising:
a non-volatile storage unit, wherein a capacity of the non-volatile storage unit is divided into a plurality of streams, and wherein the non-volatile storage unit comprises a plurality of dies, each die of the plurality of dies comprising a plurality of erase blocks;
a first volatile memory unit comprising a plurality of ranks, wherein the plurality of ranks is divided into one or more sections; and
a controller coupled to the non-volatile storage unit and the first volatile memory unit, the controller comprising a second volatile memory unit, wherein the controller is configured to:
receive one or more write commands to write data to one or more streams of the plurality of streams;
copy previous delta data associated with at least one stream from the first volatile memory unit to the second volatile memory unit responsive to receiving the one or more commands;
generate change log data associated with the at least one stream for each write command of the one or more write commands received in the second volatile memory unit;
update delta data associated with the at least one stream of the one or more streams for each write command of the one or more write commands received in the second volatile memory unit, wherein the delta data is updated for a particular stream each time a command is received to write data to the particular stream;
copy the updated delta data associated with the at least one stream from the second volatile memory unit to the plurality of ranks of the first volatile memory unit; and
copy at least one section of the one or more sections to the non-volatile storage unit when a determination is made that a majority of the ranks within the at least one section have been updated or written to.

### Claim 16 (depends on 15)

The storage device of claim 15, wherein updating the delta data associated with the at least one stream comprises updating the previous delta data with the change log data.

### Claim 17 (depends on 15)

The storage device of claim 15, wherein the controller is further configured to:
track whether the previous delta data has been updated with the change log data; and
copy the change log data to the non-volatile storage unit responsive to the previous delta data having not yet been updated with the change log data.

### Claim 18 (depends on 15)

The storage device of claim 15, wherein the controller is further configured to copy the updated delta data from the first volatile memory unit to a parking section in the non-volatile storage unit.

### Claim 19 (depends on 15)

The storage device of claim 15, further comprising one or more energy storage devices configured to provide power to the controller, wherein the controller is further configured to use the power provided by the one or more energy storage devices to copy the one or more sections of the plurality of ranks of the first volatile memory unit to the non-volatile storage unit responsive to experiencing a power failure event.

### Claim 20 (depends on 15)

The storage device of claim 15, wherein the first volatile memory unit stores a first logical to physical address table, and wherein the controller is further configured to partition the first logical to physical address table into sections, and update a second logical to physical address table stored in the non-volatile storage unit, the second logical to physical address table being updated in the partitioned section size.
