# US 2017/0285940 A1 · Out of order read transfer with host memory buffer

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

- Number: US 2017/0285940 A1
- Document ID: US20170285940A1
- Status: Published application
- Kind: A1
- Application number: 15/088,692
- Filed: 2016-04-01
- Published: 2017-10-05
- Earliest claimed: 2016-04-01
- Assignees: SanDisk Technologies LLC
- Applicants: SanDisk Technologies Inc.
- Inventors: Shay Benisty; Tal Sharifie
- Web page: https://patentgrep.com/patent/US20170285940A1

## CPC

- G06F 3/061: {Improving I/O performance}
- G06F 3/0656: {Data buffering arrangements}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 3/0685: {Hybrid storage combining heterogeneous device types, e.g. hierarchical storage, hybrid arrays}
- G06F 3/0688: {Non-volatile semiconductor memory arrays}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 12/0871: Allocation or management of cache space
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A storage device may utilize a host memory buffer for re-ordering commands in a submission queue. Out of order commands in a submission queue that uses host virtual buffers that are not the same size may be difficult to search. Accordingly, commands in a submission queue may be correctly ordered in a host memory buffer before being put into the host virtual buffers. When the commands are in order, the search operation for specific data is improved.

## Claims

### Claim 1

A method for data transfer in a memory device comprising:
receiving one or more read commands from a host;
dynamically allocating a host memory buffer for the received read commands, wherein a size of the allocated host memory buffer is based on a transfer size of the read commands;
storing data associated with the read commands in the host memory buffer using an offset;
writing the stored data from the host memory buffer.

### Claim 2 (depends on 1)

The method of claim 1 wherein the host memory buffer is a portion allocated from memory on the host.

### Claim 3 (depends on 1)

The method of claim 1 wherein the writing further comprises:
transferring the stored data from the host memory buffer to a host buffer allocated by the host, wherein the host buffer is distinct from the host memory buffer.

### Claim 4 (depends on 3)

The method of claim 3 wherein the stored data is transferred to a plurality of host buffers of different sizes.

### Claim 5 (depends on 3)

The method of claim 3 wherein the host buffer and the host memory buffer are stored in memory of the host.

### Claim 6 (depends on 3)

The method of claim 3 wherein physical memory locations in host memory is based on a scatter gather list (SGL).

### Claim 7 (depends on 6)

The method of claim 6 wherein the storing of the data in the host memory buffer includes using the offset in the allocated host memory buffer to determine an order of the data.

### Claim 8 (depends on 7)

The method of claim 7 wherein the SGL list comprises a plurality of segments, each of which comprises a pointer to a subsequent segment.

### Claim 9 (depends on 8)

The method of claim 8 wherein each of the segments comprises descriptors that include a pointer to one of the host buffers allocated by the host and an indication of the size of that buffer.

### Claim 10 (depends on 1)

The method of claim 1 wherein the one or more read commands received from the host include data that is out of order.

### Claim 11 (depends on 10)

The method of claim 10 wherein data in the host memory buffer is re-ordered by using the offset in the host memory buffer.

### Claim 12

A host device connected to a memory device, the host device comprising:
one or more host buffers for receiving data from a read command issued from the host device to the memory device; and
a host memory buffer that is allocated based on a transfer size of the read command, wherein the host memory buffer temporarily stores and uses an offset for ordering the data from the read command before a transfer of the data to the one or more host buffers.

### Claim 13 (depends on 12)

The host device of claim 12 wherein the memory device utilizes a non-volatile memory express (NVMe) protocol.

### Claim 14 (depends on 13)

The host device of claim 13 wherein the host memory buffer is storage in the host device according to the NVMe protocol.

### Claim 15

A system for data transfer in a memory, the system comprising:
means for receiving a read command;
means for allocating a host memory buffer for the received read command, wherein a size of the allocated host memory buffer is based on a transfer size of the read command;
means for storing data associated with the read command in the host memory buffer using an offset to determine an order of the stored data; and
means for writing the stored data from the host memory buffer.

### Claim 16 (depends on 15)

The system of claim 15 further comprising:
means for transferring the stored data from the host memory buffer to a host buffer allocated by the host.

### Claim 17 (depends on 16)

The system of claim 16 wherein physical memory locations in host memory is based on a scatter gather list (SGL).

### Claim 18 (depends on 17)

The system of claim 17 wherein a size of the host buffer allocated by the host varies based on the read command.

### Claim 19 (depends on 16)

The system of claim 16 wherein the host memory buffer and the host buffer are memories at a host device.

### Claim 20 (depends on 15)

The system of claim 15 wherein the read command received from the host includes data that is out of order and is re-ordered with the host memory buffer.
