# US 2018/0321864 A1 · System and method for processing non-contiguous submission and completion queues

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

- Number: US 2018/0321864 A1
- Document ID: US20180321864A1
- Status: Published application
- Kind: A1
- Application number: 15/585,808
- Filed: 2017-05-03
- Published: 2018-11-08
- Earliest claimed: 2017-05-03
- Assignees: Western Digital Technologies, Inc.
- Applicants: Western Digital Technologies, Inc.
- Inventors: Shay Benisty
- Web page: https://patentgrep.com/patent/US20180321864A1

## CPC

- G06F 3/0625: {Power saving in storage systems}
- G06F 1/3275: {Power saving in memory, e.g. RAM, cache}
- G06F 1/3287: by switching off individual functional units in the computer system
- G06F 3/0634: {by changing the state or mode of one or more devices}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 3/0688: {Non-volatile semiconductor memory arrays}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 12/0811: with multilevel cache hierarchies
- G06F 2212/283: Plural cache memories
- G06F 2212/3042: being part of a memory device, e.g. cache DRAM
- G06F 2212/7203: Temporary buffering, e.g. using volatile buffer or dedicated buffer blocks
- G06F 2212/7204: Capacity control, e.g. partitioning, end-of-life degradation
- G06F 2212/7205: Cleaning, compaction, garbage collection, erase control
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- Y02D 30/50: in wire-line communication networks, e.g. low power modes or reduced link rate
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

Systems and methods for processing non-contiguous submission and completion queues are disclosed. NVM Express (NVMe) implements a paired submission queue and completion queue mechanism, with host software on the host device placing commands into the submission queue. The submission and completion queues may be contiguous or non-contiguous in host device memory. Non-contiguous queues may be defined by a link to a list on the host device that lists the non-contiguous sections in memory. In practice, the memory device stores the list in one type of memory (such as DRAM) and the link in a different type of memory (such as always on memory or non-volatile memory). In this way, the link may be accessed in various modes (such as low power mode) in order to recreate the list in DRAM.

## Claims

### Claim 1

A method comprising:
storing, in a first type of memory in a memory device, a link to a list of non-contiguous sections in host memory that defines a non-contiguous queue;
storing part or all of the list of non-contiguous sections in a second type of memory in the memory device, the first type of memory maintaining data therein during at least a part of operation of the memory device in which data is not maintained in the second type of memory;
determining to re-store at least a part of the list of non-contiguous sections; and
in response to determining to re-store the at least a part of the list of non-contiguous sections, re-storing the at least a part of the list of non-contiguous sections by:
accessing the link stored in the first type of memory in the memory device;
using the link to access in the host memory at least a part of the list of non-contiguous sections; and
re-storing the at least a part of the list of non-contiguous sections in the second type of memory.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first type of memory comprises always-on memory.

### Claim 3 (depends on 2)

The method of claim 2, wherein:
the first type of memory maintains the data therein during a low power mode of the memory device; and
the second type of memory does not maintain the data therein during the low power mode of the memory device.

### Claim 4 (depends on 1)

The method of claim 1, wherein:
the first type of memory comprises a first type of cache; and
the second type of memory comprises a second type of cache.

### Claim 5 (depends on 1)

The method of claim 1, wherein the list of non-contiguous sections comprises a list of physical region pages.

### Claim 6 (depends on 1)

The method of claim 1, wherein determining to re-store at least a part of the list of non-contiguous sections is in response to the memory device exiting low power mode.

### Claim 7 (depends on 1)

The method of claim 1, wherein determining to re-store at least a part of the list of non-contiguous sections is in response to determining that the part or all of the list of non-contiguous sections stored in the second type of memory is corrupted.

### Claim 8 (depends on 1)

The method of claim 1, wherein:
the memory device determines a section of the list of non-contiguous sections stored in the second type of memory that is corrupted; and
re-storing the at least a part of the list of non-contiguous sections comprises re-storing the section of the list of non-contiguous sections that is corrupted.

### Claim 9 (depends on 1)

The method of claim 1, wherein:
storing part or all of the list of non-contiguous sections in the second type of memory comprises storing all of the list of non-contiguous sections in the second type of memory; and
re-storing the at least a part of the list of non-contiguous sections in the second type of memory comprises re-storing all of the list of non-contiguous sections in the second type of memory.

### Claim 10 (depends on 1)

The method of claim 1, wherein the non-contiguous queue is a non-contiguous submission queue.

### Claim 11 (depends on 1)

The method of claim 1, wherein:
the first type of memory comprises non-volatile memory; and
the second type of memory comprises cache.

### Claim 12

A memory device comprising:
memory comprising a first type of memory and a second type of memory, the first type of memory maintaining data therein during a mode of the memory device and the second type of memory not maintaining data therein during the mode of the memory device; and
a controller in communication with the memory, the controller configured to:
store a link in the first type of memory, the link comprising an address in a host device to a list of non-contiguous sections for a queue;
store part or all of the list of non-contiguous sections in the second type of memory;
determine to enter the mode; and
in response to determining to exit the mode:
use the link stored in the first type of memory to access at least a part of the list of non-contiguous sections for the queue in the host device; and
store the at least a part of the list of non-contiguous sections for the queue in the second type of memory.

### Claim 13 (depends on 12)

The memory device of claim 12, wherein:
the first type of memory comprises always-on memory; and
the second type of memory comprises dynamic random access memory (DRAM).

### Claim 14 (depends on 13)

The memory device of claim 13, wherein the controller is further configured to store all of the list of non-contiguous sections in the DRAM.

### Claim 15 (depends on 12)

The memory device of claim 12, wherein:
the first type of memory comprises non-volatile memory; and
the second type of memory comprises cache memory.

### Claim 16 (depends on 12)

The memory device of claim 12, wherein the mode comprises a low power mode.

### Claim 17 (depends on 16)

The memory device of claim 16, wherein responsive to the controller determining to exit the low power mode, the controller is further configured to access the link in always-on memory to store the list of non-contiguous sections for the queue in dynamic random access memory (DRAM).

### Claim 18 (depends on 17)

The memory device of claim 17, wherein the queue is a submission queue.

### Claim 19

A non-volatile memory device comprising:
memory comprising a first type of cache and a second type of cache, the first type of cache maintaining data therein during at least a part of operation of the memory device in which data is not maintained in the second type of cache;
means for storing a link in the first type of cache, the link to a list of non-contiguous sections of a submission queue in host memory on a host device;
means for storing part or all of the list of non-contiguous sections in the second type of cache in the memory device;
means for determining to re-store at least a part of the list of non-contiguous sections; and
in response to determining to re-store the at least a part of the list of non-contiguous sections, means for re-storing the at least a part of the list of non-contiguous sections, comprising:
means for accessing the link stored in the first type of cache;
means for using the link to access, in the host device, at least a part of the list of non-contiguous sections; and
means for re-storing the at least a part of the list of non-contiguous sections in the second type of cache.

### Claim 20 (depends on 19)

The memory device of claim 19, wherein:
the first type of cache comprises always-on memory; and
the second type of cache comprises dynamic random access memory (DRAM).
