# US 2022/0291861 A1 · Data exchange between host and storage device using compute functions

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

- Number: US 2022/0291861 A1
- Document ID: US20220291861A1
- Status: Published application
- Kind: A1
- Application number: 17/200,349
- Filed: 2021-03-12
- Published: 2022-09-15
- Earliest claimed: 2021-03-12
- Assignees: Kioxia Corporation
- Applicants: Kioxia Corporation
- Inventors: Krishna R. Malakapalli; Gary James Calder
- Web page: https://patentgrep.com/patent/US20220291861A1

## CPC

- G06F 3/0655: {Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices}
- G06F 3/0688: {Non-volatile semiconductor memory arrays}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/065: {Replication mechanisms}
- G06F 3/0656: {Data buffering arrangements}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Various implementations described herein relate to systems and methods for a storage device (e.g., a Solid State Drive (SSD)) to perform a Compute Function (CF), including receiving a command from a host, the command identifying the CF, and in response to receiving the command, performing the CF on at least one of internal data stored in the storage device or external data transferred from the host to determine the computation result of the CF.

## Claims

### Claim 1

A non-transitory computer-readable medium comprising computer readable instructions, such that when executed by at least one processor of a storage device, causes the processor to:
receive a command from a host, wherein the command identifies a Compute Function (CF);
in response to receiving the command, perform the CF on at least one of internal data stored in the storage device or external data transferred from the host to determine a computation result.

### Claim 2 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein
the CF comprises one of an mathematical or arithmetic operation, a logical operation, a Boolean operation, a bitwise operation, a compare operation, a string operation, a database query language function, a Reed-Solomon or Erasure coding operation, a data encryption operation, or a database stable operation;
the mathematical or arithmetic operation comprises one or more of: add, subtract, multiply, divide or Galois field (GF);
the logical operation comprises one or more of: AND, OR, NAND, NOR, NOT or XOR;
the Boolean operation comprises one or more of: AND, OR, or XOR;
the bitwise operation comprises one or more of: logical shift, arithmetic shift, or rotate;
the compare operation comprises one or more of: greater than, less than, or not equal to;
the string operation comprises one or more of a copy, find, or compare; and
the database query language function comprises one or more of: AVG( ) FIRST( ), LAST( ) MAX( ) MIN( ), and SUM( ).

### Claim 3 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein
the command is a write command identifying the external data; and
performing the CF on at least one of the internal data or external data comprises performing the CF on the external data

### Claim 4 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein
the command is a write command identifying the internal data and the external data; and
performing the CF on at least one of the internal data or external data comprises performing the CF on the internal data and the external data.

### Claim 5 (depends on 4)

The non-transitory computer-readable medium of claim 4, wherein the internal data comprises one of:
data stored in a non-volatile storage memory of the storage device;
data stored in a drive buffer of the storage device; or
coefficient data stored in a coefficient table of the storage device.

### Claim 6 (depends on 4)

The non-transitory computer-readable medium of claim 4, wherein
the write command identifies a number of logical blocks of the internal data and a number of logical blocks of the external data; and
the number of the logical blocks of the internal data and the number of the logical blocks of the external data are same.

### Claim 7 (depends on 4)

The non-transitory computer-readable medium of claim 4, wherein
the write command identifies a number of logical blocks of the internal data and a number of logical blocks of the external data; and
the number of the logical blocks of the internal data and the number of the logical blocks of the external data are different.

### Claim 8 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the processor is further caused to write the external data or the computation result of the CF to a non-volatile storage memory of the storage device.

### Claim 9 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the processor is further caused to write the external data to a non-volatile storage memory of the storage device before, while, or after performing the CF on the external data.

### Claim 10 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the command is a read command identifying the internal data; and
performing the CF on at least one of the internal data or external data comprises
performing the CF on the internal data.

### Claim 11 (depends on 10)

The non-transitory computer-readable medium of claim 10, wherein the processor is further caused to provide the internal data or the computation result of the CF to the host.

### Claim 12 (depends on 10)

The non-transitory computer-readable medium of claim 10, wherein the processor is further caused to provide the internal data to the host before, while, or after performing the CF on the internal data.

### Claim 13 (depends on 10)

The non-transitory computer-readable medium of claim 10, wherein
the internal data comprises first internal data and second internal data;
the read command identifies the first internal data and the second internal data; and
performing the CF on the internal data comprises performing the CF on the first internal data and the second internal.

### Claim 14 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein
the first internal data comprises data stored in a non-volatile storage memory of the storage device; and
the second internal data comprises one of:
data stored in a non-volatile storage memory of the storage device;
data stored in a drive buffer of the storage device; or
coefficient data stored in a coefficient table of the storage device.

### Claim 15 (depends on 14)

The non-transitory computer-readable medium of claim 14, wherein the processor is further caused to provide the first internal data or the computation result of the CF to the host.

### Claim 16 (depends on 14)

The non-transitory computer-readable medium of claim 14, wherein the processor is further caused to provide the first internal data to the host before, while, or after performing the CF on the first internal data and the second internal data.

### Claim 17 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein
the read command identifies a number of logical blocks of the first internal data and a number of logical blocks of the second internal data; and
the number of the logical blocks of the first internal data and the number of the logical blocks of the second internal data are same.

### Claim 18 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein
the read command identifies a number of logical blocks of the first internal data and a number of logical blocks of the second internal data; and
the number of the logical blocks of the first internal data and the number of the logical blocks of the second internal data are different.

### Claim 19

A storage device, comprising:
a non-volatile storage; and
a controller configured to:
receive a command from a host, wherein the command identifies a Compute Function (CF);
in response to receiving the command, perform the CF on at least one of internal data stored in the storage device or external data transferred from the host to determine a computation result.

### Claim 20

A method, comprising:
receiving, by a controller of a storage device, a command from a host, wherein the command identifies a Compute Function (CF);
in response to receiving the command, performing, by the controller, the CF on at least one of internal data stored in the storage device or external data transferred from the host to determine a computation result.
