# US 2021/0334161 A1 · Storage Devices Hiding Parity Swapping Behavior

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

- Number: US 2021/0334161 A1
- Document ID: US20210334161A1
- Status: Published application
- Kind: A1
- Application number: 17/349,438
- Filed: 2021-06-16
- Published: 2021-10-28
- Earliest claimed: 2020-04-24
- Assignees: Western Digital Technologies, Inc.
- Applicants: Western Digital Technologies, Inc.
- Inventors: Daniel L. HELMICK; Peter GRAYSON; Sergey Anatolievich GOROBETS
- Web page: https://patentgrep.com/patent/US20210334161A1

## CPC

- G06F 11/1076: {Parity data used in redundant arrays of independent storages, e.g. in RAID systems}
- G06F 3/061: {Improving I/O performance}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0644: {Management of space entities, e.g. partitions, extents, pools}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 3/068: {Hybrid storage device}
- G06F 11/1048: {using arrangements adapted for a specific error detection or correction feature}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G11C 11/005: {comprising combined but independently operative RAM-ROM, RAM-PROM, RAM-EPROM cells}
- G11C 14/0018: {whereby the nonvolatile element is an EEPROM element, e.g. a floating gate or metal-nitride-oxide-silicon [MNOS] transistor}
- G11C 14/0063: {and the nonvolatile element is an EEPROM element, e.g. a floating gate or MNOS transistor}
- G06F 2212/7209: Validity control, e.g. using flags, time stamps or sequence numbers
- G11C 11/409: Read-write [R-W] circuits
- G11C 11/413: Auxiliary circuits, e.g. for addressing, decoding, driving, writing, sensing, timing or power reduction
- G11C 16/10: Programming or data input circuits
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## 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 zones. By restricting the host to have a minimum write size, the data transfer speed to RAM2, RAM1, and the storage unit can be optimized. A temporary buffer is utilized within the RAM1 to update parity data for the corresponding commands. The parity data is updated in the RAM1 and written to the RAM2 in the corresponding zone. The parity data may be copied from the RAM2 to the RAM1 to update the parity data in the temporary buffer when commands are received to write data to corresponding zones. As the parity data is updated, the corresponding command is simultaneously written to the corresponding zone.

## 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 zones;
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:
copy first parity data for a first zone of the plurality of zones from the first volatile memory unit to a first location in the second volatile memory unit; and
update the first parity data with new first parity data in the second volatile memory unit.

### Claim 2 (depends on 1)

The storage device of claim 1, wherein the first parity data is updated with the new first parity data in the first location in the second volatile memory unit.

### Claim 3 (depends on 1)

The storage device of claim 1, wherein the first parity data is updated with the new first parity data in a temporary location in the second volatile memory unit.

### Claim 4 (depends on 1)

The storage device of claim 1, wherein the storage device has a minimum write size based on a program time of writing the data to one or more zones of the plurality of zones.

### Claim 5 (depends on 1)

The storage device of claim 1, wherein the storage device has a minimum write size based on a transfer speed for copying the first parity data from the first volatile memory unit to the second volatile memory unit.

### Claim 6 (depends on 1)

The storage device of claim 1, wherein the storage device has a minimum write size based on an amount of time it takes to generate the new first parity data.

### Claim 7 (depends on 1)

The storage device of claim 1, wherein the controller is further configured to:
copy the updated first parity data from the second volatile memory unit to the first volatile memory unit; and
erase a temporary location in the second volatile memory unit after the first parity data is updated with the new first parity data.

### Claim 8 (depends on 1)

The storage device of claim 1, wherein the controller is further configured to:
copy second parity data for a second zone from the first volatile memory unit to a second location in the second volatile memory unit; and
update the second parity data with the new second parity data in a temporary location in the second volatile memory unit.

### Claim 9 (depends on 8)

The storage device of claim 8, wherein the controller is further configured to copy the updated first parity data from the second volatile memory unit to the first volatile memory unit after updating the first parity data with the new first parity data.

### Claim 10 (depends on 8)

The storage device of claim 8, wherein the controller is further configured to copy the updated second parity data from the second volatile memory unit to the first volatile memory unit after updating the second parity data with the new second parity data.

### Claim 11 (depends on 8)

The storage device of claim 8, wherein a minimum write size is selected by the storage device to match a program time of writing data associated with one or more commands to the plurality of zones to a transfer speed for copying previous parity data from the first volatile memory unit to the second volatile memory unit.

### Claim 12 (depends on 11)

The storage device of claim 11, wherein the minimum write size is about 1 MiB or greater.

### Claim 13 (depends on 8)

The storage device of claim 8, wherein the controller comprises an XOR engine configured to generate the first parity data and update the second parity data.

### Claim 14 (depends on 8)

The storage device of claim 8, wherein the first volatile memory unit is a DRAM unit, and wherein the second volatile memory unit is a SRAM unit.

### 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 zones;
a DRAM unit; and
a controller coupled to the non-volatile storage unit and the DRAM unit, the controller comprising a SRAM unit, wherein the controller is configured to:
copy first parity data for a first zone of the plurality of zones from the DRAM unit to a first location in the SRAM unit;
combine the first parity data with new first parity data in the SRAM unit; and
copy the combined first parity data from the SRAM unit to a first location in the DRAM unit.

### Claim 16 (depends on 15)

The storage device of claim 15, wherein a minimum write size for the storage device is about 1 MiB or greater.

### Claim 17 (depends on 15)

The storage device of claim 15, wherein a minimum write size for the storage device is based on an amount of time it takes to generate the new first parity data.

### Claim 18 (depends on 15)

The storage device of claim 15, wherein the controller is further configured to calculate and determine a minimum write size for commands to write data received from a host device.

### Claim 19 (depends on 15)

The storage device of claim 15, wherein the controller is further configured to erase a temporary location in the SRAM unit after copying the combined first parity data from the SRAM unit to the DRAM unit.

### Claim 20 (depends on 15)

The storage device of claim 15, wherein the controller is further configured to:
receive a second command to write data in a minimum write size to the first zone;
simultaneously, update the combined first parity data for the first zone in the first location in the SRAM unit, and write the data associated with the second command to the first zone; and
copy the updated combined first parity data from the SRAM unit to the first location in the DRAM unit.
