# US 2022/0283962 A1 · Storage controller managing completion timing, and operating method thereof

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

- Number: US 2022/0283962 A1
- Document ID: US20220283962A1
- Status: Published application
- Kind: A1
- Application number: 17/751,798
- Filed: 2022-05-24
- Published: 2022-09-08
- Earliest claimed: 2019-12-23
- Assignees: Sumsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Sangmuk HWANG; Jaegeun Park; Hojun Shim; Byungchul Yoo
- Web page: https://patentgrep.com/patent/US20220283962A1

## CPC

- G06F 13/1642: {with request queuing}
- G06F 13/30: with priority control
- G06F 13/161: {with latency improvement}
- G06F 13/1689: {Synchronisation and timing concerns (synchronisation on a memory bus G06F13/4234)}
- G06F 13/18: based on priority control (G06F13/1605 takes precedence)
- G06F 13/28: using burst mode transfer, e.g. direct memory access {DMA}, cycle steal (G06F13/32 takes precedence)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A storage controller includes a command manager and a direct memory access (DMA) engine. The command manager receives a first submission queue doorbell from an external device, fetches a first command including a first latency from the external device in response to the first submission queue doorbell, and determines a first timing to write a first completion into the external device based on the first latency, the first completion indicating that the first command is completely processed. The DMA engine receives a request signal requesting processing of the first command from the command manager, transfer data, which the first command requests, based on a DMA transfer in response to the request signal, and outputs a complete signal, which indicates that the first command is completely processed, to the command manager.

## Claims

### Claim 1

A storage controller comprising:
a command manager configured to receive a first submission queue doorbell from an external device, to fetch a first command including a first latency from the external device in response to the first submission queue doorbell, and to determine a first timing to write a first completion into the external device based on the first latency, the first completion indicating that the first command is completely processed; and
a direct memory access (DMA) engine configured to receive a request signal requesting processing of the first command from the command manager, to transfer data, which the first command requests, based on a DMA transfer in response to the request signal, and to output a complete signal, which indicates that the first command is completely processed, to the command manager.

### Claim 2 (depends on 1)

The storage controller of claim 1, wherein the command manager includes:
a latency calculator configured to calculate a time point to write the first completion into a completion queue based on the first latency; and
a timing controller configured to determine the first timing at which to write the first completion into the completion queue based on the time point.

### Claim 3 (depends on 1)

The storage controller of claim 1, wherein the command manager is configured to:
receive a second submission queue doorbell from the external device;
fetch a second command including a second latency from the external device in response to the second submission queue doorbell; and
determine a second timing to write a second completion into the external device based on the second latency, the second completion indicating that the second command is completely processed.

### Claim 4 (depends on 3)

The storage controller of claim 3, wherein the second timing to write the second completion is prior to the first timing to write the first completion, and
the first latency includes a first interval latency indicating a time period from a time point at which the second completion is written to a time point at which the first completion is to be written.

### Claim 5 (depends on 3)

The storage controller of claim 3, wherein the first latency includes a first processing latency indicating a time period from a time point at which the first command is fetched to a time point at which the first completion is to be written into a completion queue,
the second latency includes a second processing latency indicating a time period from a time point at which the second command is fetched to a time point at which the second completion is to be written into the completion queue, and
the command manager is configured to determine an order of processing the first command and the second command, based on the first processing latency and the second processing latency.

### Claim 6 (depends on 1)

The storage controller of claim 1, wherein the DMA engine stores data into a nonvolatile memory device or reads data stored in the nonvolatile memory device, without a control of the external device.

### Claim 7

A storage device comprising:
a nonvolatile memory device; and
a controller configured to receive a first submission queue doorbell and a second submission queue doorbell from an external device, and to fetch a first command in response to the first submission queue doorbell and fetch a second command in response to the second submission queue doorbell,
wherein the first command includes a first latency, and the second command includes a second latency,
the controller is configured to determine a first timing to write a first completion into the external device based on the first latency and a second timing to write a second completion into the external device based on the second latency, the first completion indicating that the first command is completely processed, the second completion indicating that the second command is completely processed, and
the controller is configured to determine an order of processing the first command and the second command based on the first latency and the second latency.

### Claim 8 (depends on 7)

The storage device of claim 7, wherein the controller compares a first time period corresponding to the first latency and a second time period corresponding to the second latency, and determines the order of processing the first command and the second command based on the first time period and the second time period.

### Claim 9 (depends on 7)

The storage device of claim 7, wherein the controller stores data in the nonvolatile memory device or reads data stored in the nonvolatile memory device, without a control of the external device.

### Claim 10 (depends on 7)

The storage device of claim 7, wherein the first latency indicates a time period from a time point when the controller fetches the first command stored in a first submission queue to a time point when the first completion is written into a first completion queue.

### Claim 11 (depends on 7)

The storage device of claim 7, wherein the first latency indicates a time period from a time point when a third completion is written into a first completion queue to a time point when the first completion is written into the first completion queue.

### Claim 12 (depends on 7)

The storage device of claim 7, wherein the storage device communicates with the external device through a non-volatile memory express (NVMe) interface.

### Claim 13 (depends on 7)

The storage device of claim 7, wherein the controller communicates with the nonvolatile memory device based on a direct memory access transfer.

### Claim 14

A storage device comprising:
a nonvolatile memory device; and
a controller configured to fetch a first command including a first latency and a second command including a second latency, and to determine a first timing to write a first completion into an external device based on the first latency and a second timing to write a second completion into the external device based on the second latency,
wherein the first completion indicates that the first command is completely processed,
the second completion indicates that the second command is completely processed, and
the controller is configured to compare a first time period corresponding to the first latency and a second time period corresponding to the second latency, and to determine a priority for processing the first command and the second command based on the first time period and the second time period.

### Claim 15 (depends on 14)

The storage device of claim 14, wherein the controller compares the first time period and the second time period to determine an order of processing the first command and the second command.

### Claim 16 (depends on 14)

The storage device of claim 14, wherein the controller stores data in the nonvolatile memory device or reads data stored in the nonvolatile memory device, without a control of the external device.

### Claim 17 (depends on 14)

The storage device of claim 14, wherein the first latency indicates a time period from a time point when the controller fetches the first command stored in a first submission queue to a time point when the first completion is written into a first completion queue.

### Claim 18 (depends on 14)

The storage device of claim 14, wherein the first latency indicates a time period from a time point when a third completion is written into a first completion queue to a time point when the first completion is written into the first completion queue.

### Claim 19 (depends on 14)

The storage device of claim 14, wherein the storage device communicates with the external device through a non-volatile memory express (NVMe) interface.

### Claim 20 (depends on 14)

The storage device of claim 14, wherein the controller determines the priority such that when the first time period is shorter than the second time period, the first command is processed before the second command.
