# US 2021/0278987 A1 · Rolling xor protection in efficient pipeline

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

- Number: US 2021/0278987 A1
- Document ID: US20210278987A1
- Status: Published application
- Kind: A1
- Application number: 17/314,772
- Filed: 2021-05-07
- Published: 2021-09-09
- Earliest claimed: 2019-07-30
- Assignees: Western Digital Technologies, Inc.
- Applicants: Western Digital Technologies, Inc.
- Inventors: Yoav MARKUS; Alexander BAZARSKY; Alexander KALMANOVICH
- Web page: https://patentgrep.com/patent/US20210278987A1

## CPC

- G06F 3/0647: {Migration mechanisms}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/064: {Management of blocks}
- G06F 3/0652: {Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0673: {Single storage device}
- G06F 11/108: {Parity data distribution in semiconductor storages, e.g. in SSD}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 2201/83: the solution involving signatures
- G06F 2201/84: Using snapshots, i.e. a logical point-in-time copy of the data
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F 2212/7203: Temporary buffering, e.g. using volatile buffer or dedicated buffer blocks
- G06F 2212/7207: management of metadata or control data
- G06F 2212/7208: Multiple device management, e.g. distributing data over multiple flash devices
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems, apparatus and methods for generation of XOR signature metadata and XOR signature management are presented. In one or more embodiments, a storage device controller includes a host interface, configured to receive one or more string lines (SLs) of data from a host, the one or more SLs to be programmed into a non-volatile memory (NVM), and processing circuitry. The processing circuitry is configured to, for each of the one or more SLs, generate signature metadata and provide the signature metadata in a header of the SL. The processing circuitry is still further configured to XOR two or more of the SLs with their respective signature metadata to generate a snapshot, and write the snapshot to the NVM.

## Claims

### Claim 1

An apparatus, comprising:
means for determining, following a UGSD, whether a write process to a MLC NVM was ongoing;
means for reading metadata of a last written XOR signature to a SLC NVM, the XOR signature protecting data being written to the MLC NVM; and
means for determining if the last written XOR signature is a partial signature.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the means for reading metadata further comprises means for obtaining memory locations that were indicated as absent from the last XOR signature.

### Claim 3 (depends on 1)

The apparatus of claim 1, further comprising means for completing the XOR signature, and means for writing the completed XOR signature to SLC NVM.

### Claim 4 (depends on 1)

The apparatus of claim 1, further comprising:
an interface configured to receive one or more string lines (SLs) of data from a host device; and
a non-volatile storage interface for communicating with the MLC NVM and SLC NVM.

### Claim 5 (depends on 1)

The apparatus of claim 1, further comprising a memory management module comprising a CPU and XRAM.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the apparatus is configured to:
receive a string line (SL) of a set of protected data for including in a signature;
generate updated signature metadata for the SL; and
store the updated signature metadata in temporary storage.

### Claim 7 (depends on 6)

The apparatus of claim 6, wherein storing the updated signature metadata in temporary storage comprises overwriting a previous version of the metadata.

### Claim 8 (depends on 7)

The apparatus of claim 7, wherein the apparatus is further configured to XOR the SL with a previous version of the signature in temporary storage to generate an updated signature.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein the apparatus is further configured to overwrite a previous version of the signature with the updated signature.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein the apparatus is further configured to determine whether there is another SL to include in the signature.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein the apparatus is further configured to, upon determining that there is another SL to include in the signature:
copy the updated metadata from temporary storage;
append the updated metadata to the updated signature; and
program the updated metadata and updated signature to a SLC block.

### Claim 12 (depends on 10)

The apparatus of claim 10, wherein the apparatus is further configured to, upon determining that there is not another SL to include in the signature:
receive a string line (SL) of a set of protected data for including in a signature;
generate updated signature metadata for the SL; and
store the updated signature metadata in temporary storage.

### Claim 13 (depends on 1)

The apparatus of claim 1, wherein the apparatus is further configured to determine that a write process was ongoing at a time of a UGSD.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein the apparatus is further configured to read metadata of a last written SLC XOR signature.

### Claim 15 (depends on 14)

The apparatus of claim 14, wherein the apparatus is further configured to read MLC locations that were indicated as absent from the last written SLC XOR signature.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein the apparatus is further configured to use missing host data to complete the last written SLC XOR signature and write the last written SLC XOR signature to SLC.

### Claim 17 (depends on 1)

The apparatus of claim 1, wherein the apparatus is further configured to update a RAM database with XOR signature metadata.

### Claim 18 (depends on 17)

The apparatus of claim 17, wherein the apparatus is further configured to periodically program the RAM database to a management block.

### Claim 19 (depends on 1)

The apparatus of claim 1, further comprising memory means.

### Claim 20 (depends on 19)

The apparatus of claim 19, wherein the memory means comprises the MLC NVM and the SLC NVM.
