# US 2022/0283739 A1 · Revised Host Command Generation For Unaligned Access

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

- Number: US 2022/0283739 A1
- Document ID: US20220283739A1
- Status: Published application
- Kind: A1
- Application number: 17/195,399
- Filed: 2021-03-08
- Published: 2022-09-08
- Earliest claimed: 2021-03-08
- Assignees: Western Digital Technologies, Inc.
- Applicants: Western Digital Technologies, Inc.
- Inventors: Shay BENISTY
- Web page: https://patentgrep.com/patent/US20220283739A1

## CPC

- G06F 3/061: {Improving I/O performance}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/064: {Management of blocks}
- 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

A data storage device includes a memory device and a controller. The controller is configured to receive host commands, such as write commands. Upon determining that a received plurality of write commands are sequential, but includes one or more write commands that are unaligned with a memory granularity of the memory device, the one or more write commands are revised such that the one or more write commands are aligned with the memory granularity. The revised write command includes a first of the one or more write commands and a portion of a second of the one or more write commands. A beginning of the revised write command is aligned with the memory granularity and the end of the revised write command is also aligned with the memory granularity.

## Claims

### Claim 1

A data storage device, comprising:
a memory device; and
a controller coupled to the memory device, wherein the controller is configured to:
receive a first write command and a second write command, wherein the first write command is not aligned to a memory granularity of the memory device;
revise the first write command such that the first write command is aligned with the memory granularity of the memory device; and
write data associated with the first write command and a first portion of the second write command to the memory device.

### Claim 2 (depends on 1)

The data storage device of claim 1, wherein the first write command is not aligned with to the memory granularity of the memory device.

### Claim 3 (depends on 2)

The data storage device of claim 2, wherein the controller is further configured to revise the first write command such that an end of the revised first write command is aligned with the memory granularity of the memory device.

### Claim 4 (depends on 2)

The data storage device of claim 2, wherein the controller is further configured to generate first internal data pointers for the revised first command, and wherein the first internal data pointers are stored in either a controller memory buffer (CMB) or a host memory buffer (HMB).

### Claim 5 (depends on 1)

The data storage device of claim 1, wherein the first write command and the second write command are sequential, and wherein the first write command and the second write command are not aligned with the memory granularity of the memory device.

### Claim 6 (depends on 1)

The data storage device of claim 1, wherein the first write command is unaligned in logical block address (LBA) and aligned in size with the memory granularity of the memory device.

### Claim 7 (depends on 6)

The data storage device of claim 6, wherein the second write command is unaligned in LBA and unaligned in size with the memory granularity of the memory device.

### Claim 8 (depends on 7)

The data storage device of claim 7, wherein the revised second write command is aligned in LBA and aligned in size with the memory granularity of the memory device.

### Claim 9 (depends on 8)

The data storage device of claim 8, wherein the first write command is revised to be unaligned in LBA and aligned in size with the memory granularity of the memory device.

### Claim 10

A data storage device, comprising:
a memory device; and
a controller coupled to the memory device, the controller comprising a revised host command generator, wherein the revised host command generator comprises:
a command generator;
a timer;
a pending host command storage; and
a contiguous detector to detect sequential write commands.

### Claim 11 (depends on 10)

The data storage device of claim 10, wherein the controller is configured to:
determine that revised host command is enabled;
determine whether consecutive unaligned commands are present; and
upon determining that consecutive unaligned commands are present, generate a revised host command for the detected sequential write commands.

### Claim 12 (depends on 10)

The data storage device of claim 10, wherein the pending host command storage is distinct from the memory device.

### Claim 13 (depends on 10)

The data storage device of claim 10, wherein the command generator is configured to generate revised host write commands, wherein the revised host write commands are aligned to one or more of a size and an address of memory granularity of the memory device.

### Claim 14 (depends on 10)

The data storage device of claim 10, wherein the timer is configured to cause the controller to send a non-modified host write command to the memory device upon expiration of the timer.

### Claim 15 (depends on 10)

The data storage device of claim 10, wherein the controller is configured to post a completion message to a host device upon processing a revised host command.

### Claim 16 (depends on 10)

The data storage device of claim 10, wherein the pending host command storage is configured to store a host command until either the timer expires or the host command is revised and sent to the memory device.

### Claim 17 (depends on 10)

The data storage device of claim 10, wherein the controller is configured to dynamically align host write command sizes and addresses based upon detecting unaligned host write command sizes and addresses.

### Claim 18

A data storage device, comprising:
memory means; and
a controller coupled to the memory means, wherein the controller is configured to:
modify a first command to align a size of the modified first command with a memory granularity of the memory means; and
modify a second command to align both a size and address of the modified second command with the memory granularity of the memory means, wherein the first command and the second command are sequential.

### Claim 19 (depends on 18)

The data storage device of claim 18, wherein the controller is further configured to modify a third command to align an address of the modified third command with the memory granularity of the memory means.

### Claim 20 (depends on 19)

The data storage device of claim 19, wherein the modified first command has an unaligned address and wherein the modified third command has an unaligned size of the memory granularity of the memory means.
