# US 2022/0035564 A1 · Systems and methods for processing commands for storage devices

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

- Number: US 2022/0035564 A1
- Document ID: US20220035564A1
- Status: Published application
- Kind: A1
- Application number: 17/024,598
- Filed: 2020-09-17
- Published: 2022-02-03
- Earliest claimed: 2020-07-28
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Fnu Vikram Singh; Srinivasa Raju Nadakuditi
- Web page: https://patentgrep.com/patent/US20220035564A1

## 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/0607: {by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device}
- 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

Methods and systems for processing a command from a host to a storage device are disclosed. A first controller of the storage device receives a first command from the host via a first queue. The first queue is exposed to the host. The storage device generates a second command based on the first command, and submits the second command to a second controller of the storage device via a second queue. The second command and the second queue are unexposed to the host. The second controller obtains and processes the second command from the second queue, where the processing is for accessing non-volatile storage media of the storage device. Based on status of the second command, the first controller transmits a signal to the host for indicating completion of the first command.

## Claims

### Claim 1

A method for processing a command from a host to a storage device, the method comprising:
receiving, by a first controller of the storage device, a first command from the host via a first queue, wherein the first queue is exposed to the host;
generating, by the storage device, a second command based on the first command;
submitting, by the storage device, the second command to a second controller of the storage device via a second queue, wherein the second command and the second queue are unexposed to the host;
obtaining and processing, by the second controller, the second command from the second queue, wherein the processing is for accessing non-volatile storage media of the storage device; and
based on status of the second command, transmitting, by the first controller, a signal to the host for indicating completion of the first command.

### Claim 2 (depends on 1)

The method of claim 1, wherein the second command includes a portion of the first command.

### Claim 3 (depends on 2)

The method of claim 2, wherein the first command is associated with an operation and first and second memory ranges, wherein the second command includes the operation and the first memory range, the method further comprising:
generating, by the storage device, a third command including the operation and the second memory range;
submitting, by the storage device, the third command to the second controller via the second queue; and
obtaining and processing, by the second controller, the third command from the second queue,
wherein, the transmitting by the first controller of the signal to the host for indicating completion of the first command, is based on status of the second command and status of the third command.

### Claim 4 (depends on 3)

The method of claim 3, wherein the operation comprises deallocating the first and second memory ranges.

### Claim 5 (depends on 3)

The method of claim 3, wherein the second and third commands are obtained and processed concurrently.

### Claim 6 (depends on 1)

The method of claim 1, wherein the second command is different from the first command.

### Claim 7 (depends on 1)

The method of claim 1 wherein the storage device is a non-volatile storage device, the first controller and the second controller adhere to a non-volatile memory express (NVMe) protocol, the first queue comprises a submission queue adhering to the NVMe protocol, and the first command comprises an NVMe command.

### Claim 8 (depends on 1)

The method of claim 1 further comprising:
submitting, by the second controller, a first completion status to a first completion queue, wherein the first completion queue is unexposed to the host.

### Claim 9 (depends on 8)

The method of claim 8, wherein the transmitting of the signal includes submitting a second completion status to a second completion queue based on processing the first completion status to the first completion queue, wherein the second completion queue is exposed to the host.

### Claim 10

A storage device comprising:
non-volatile storage media;
one or more processors coupled to the non-volatile storage media, the one or more processors being configured to respectively:
receive, via a first controller and first queue, a first command from the host, wherein the first queue is exposed to the host;
generate a second command based on the first command;
submit the second command to a second controller via a second queue, wherein the second command and the second queue are unexposed to the host;
obtain and process, via the second controller, the second command from the second queue, wherein the one or more processors is further configured to access the non-volatile storage media of the storage device for processing the second command; and
based on status of the second command, transmit, via the first controller, a signal to the host for indicating completion of the first command.

### Claim 11 (depends on 10)

The storage device of claim 10, wherein the second command includes a portion of the first command.

### Claim 12 (depends on 11)

The storage device of claim 11, wherein the first command is associated with an operation and first and second memory ranges, wherein the second command includes the operation and the first memory range, and wherein the one or more processors are further configured to:
generate a third command including the operation and the second memory range;
submit the third command to the second controller via the second queue; and
obtain, via the second controller, the third command from the second queue,
wherein, the transmitting by the first controller of the signal to the host for indicating completion of the first command, is based on status of the second command and status of the third command.

### Claim 13 (depends on 12)

The storage device of claim 12, wherein the operation comprises deallocating the first and second memory ranges.

### Claim 14 (depends on 12)

The storage device of claim 12, wherein the second and third commands are obtained and processed concurrently.

### Claim 15 (depends on 10)

The storage device of claim 10, wherein the second command is different from the first command.

### Claim 16 (depends on 10)

The storage device of claim 10, wherein the storage device is a non-volatile storage device, the first controller and the second controller adhere to a non-volatile memory express (NVMe) protocol, the first queue comprises a submission queue adhering to the NVMe protocol, and the first command comprises an NVMe command.

### Claim 17 (depends on 10)

The storage device of claim 10, wherein the one or more processors are further configured to:
submit, via the second controller, a first completion status to a first completion queue, wherein the first completion queue is unexposed to the host.

### Claim 18 (depends on 17)

The storage device of claim 17, wherein the transmitting of the signal includes submitting a second completion status to a second completion queue based on processing the first completion status to the first completion queue, wherein the second completion queue is exposed to the host.
