# US 2006/0133396 A1 · Managing system memory resident device management queues

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

- Number: US 2006/0133396 A1
- Document ID: US20060133396A1
- Status: Published application
- Kind: A1
- Application number: 11/018,009
- Filed: 2004-12-20
- Published: 2006-06-22
- Earliest claimed: 2004-12-20
- Assignees: Intel Corporation
- Inventors: Hemal Shah; Gary Tsao; Arturo Arizpe; Scott Hahn; Ali Oztaskin; Greg Cummings; Ellen Deleganes
- Web page: https://patentgrep.com/patent/US20060133396A1

## CPC

- G06F 12/10: Address translation
- G06F 9/546: {Message passing systems or structures, e.g. queues}
- G06F 2209/548: Queue
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In one embodiment, a method is provided. The method of this embodiment provides determining if a management queue can be created, and if a management queue can be created, allocating virtually contiguous memory to a management queue associated with a device, registering the management queue, and creating a management queue context.

## Claims

### Claim 1

A method comprising:
determining if a management queue associated with a device can be created; and
if a management queue can be created:
allocating virtually contiguous memory to the management queue;
registering the management queue; and
creating a management queue context.

### Claim 2 (depends on 1)

The method of claim 1, wherein said determining if a management queue can be created comprises parameter checking, the parameter checking comprising:
determining if there is enough memory;
determining if management queues are available; and
determining if a requested management queue size can be supported.

### Claim 3 (depends on 1)

The method of claim 1, wherein said allocating virtually contiguous memory to a management queue comprises:
determining a size of the virtually contiguous memory; and
pinning the allocated virtually contiguous memory.

### Claim 4 (depends on 1)

The method of claim 1, wherein the management queue comprises a work queue, and the management queue context comprises a work queue context.

### Claim 5 (depends on 4)

The method of claim 4, wherein said creating a work queue context comprises creating information about the work queue, the information comprising at least one of:
a base address to indicate the starting address of the allocated virtually contiguous memory;
a size to indicate a size capacity of the work queue;
a read index to indicate an address at which a work queue element is to be read from the work queue; and
a write index to indicate an address at which a work queue element is to be written to the work queue.

### Claim 6 (depends on 1)

The method of claim 1, the method additionally comprising
performing parameter checking;
issuing a command to destroy the management queue context; and
if the management queue context is valid, destroying the management queue.

### Claim 7 (depends on 1)

The method of claim 1, additionally comprising:
checking one or more parameters to determine if resizing of the management queue is possible, the management queue having one or more management queue elements;
allocating virtually contiguous memory to a new management queue;
registering the new management queue;
copying the one or more management queue elements to the new management queue;
updating the new management queue; and
performing cleanup operations.

### Claim 8 (depends on 7)

The method of claim 7, additionally comprising stalling processing of the management queue of the management queue is active, prior to registering the new management queue.

### Claim 9 (depends on 8)

The method of claim 8, additionally comprising resuming processing of the one or more management queue elements on the new management queue.

### Claim 10 (depends on 1)

The method of claim 1, the method additionally comprising:
determining a next location on the management queue to which a management queue element may be written;
writing the management queue element to the management queue at a virtual address in virtual memory space; and
writing data associated with the management queue element to a physical address in physical memory space, wherein the physical address corresponds to the virtual address.

### Claim 11 (depends on 10)

The method of claim 10, wherein the virtual address is based on the management queue context of the device.

### Claim 12 (depends on 11)

The method of claim 11, wherein said writing the management queue element to a physical address in physical memory space comprises translating the virtual address to the physical address using a translation table.

### Claim 13 (depends on 1)

The method of claim 1, the method additionally comprising:
determining a next location on the management queue to which a management queue element may be read;
reading the management queue element from the management queue at a virtual address in virtual memory space; and
reading data associated with the management queue element from a physical address in physical memory space, wherein the physical address corresponds to the virtual address.

### Claim 14 (depends on 13)

The method of claim 13, wherein the virtual address is based on the management queue context of the device.

### Claim 15 (depends on 13)

The method of claim 13, wherein said reading the management queue element from a physical address in physical memory space comprises translating the virtual address to the physical address using a translation table.

### Claim 16

An apparatus comprising:
circuitry to:
determine if a management queue associated with a device can be created; and
if a management queue can be created, the circuitry to:
allocate virtually contiguous memory to the management queue;
register the management queue; and
create a management queue context.

### Claim 17 (depends on 16)

The apparatus of claim 16, wherein said circuitry to determine if a management queue can be created comprises parameter checking, said parameter checking circuitry to:
determine if there is enough memory;
determine if management queues are available; and
determine if a requested management queue size can be supported.

### Claim 18 (depends on 16)

The apparatus of claim 16, wherein said circuitry to allocate virtually contiguous memory to a management queue comprises circuitry to:
determine a size of the virtually contiguous memory; and
pin the allocated virtually contiguous memory.

### Claim 19 (depends on 16)

The apparatus of claim 16, wherein the management queue comprises a work queue, and the management queue context comprises a work queue context.

### Claim 20 (depends on 19)

The apparatus of claim 19, wherein said creating a work queue context comprises creating information about the work queue, the information comprising at least one of:
a base address to indicate the starting address of the allocated virtually contiguous memory;
a size to indicate a size capacity of the work queue;
a read index to indicate an address at which a work queue element is to be read from the work queue; and
a write index to indicate an address at which a work queue element is to be written to the work queue.

### Claim 21 (depends on 16)

The apparatus of claim 16, the apparatus additionally comprising circuitry to:
perform parameter checking;
issue a command to destroy the management queue context; and
if the management queue context is valid, destroy the management queue.

### Claim 22 (depends on 16)

The apparatus of claim 16, additionally comprising circuitry to:
check one or more parameters to determine if resizing of the management queue is possible, the management queue having one or more management queue elements;
allocate virtually contiguous memory to a new management queue;
register the new management queue;
copy the one or more management queue elements to the new management queue;
update the new management queue; and
perform cleanup operations.

### Claim 23 (depends on 16)

The apparatus of claim 16, the apparatus additionally comprising circuitry to:
determine a next location on the management queue to which a management queue element may be written;
write the management queue element to the management queue at a virtual address in virtual memory space; and
write data associated with the management queue element to a physical address in physical memory space, wherein the physical address corresponds to the virtual address.

### Claim 24 (depends on 16)

The apparatus of claim 16, the apparatus additionally comprising circuitry to:
determine a next location on the management queue to which a management queue element may be read;
read the management queue element from the management queue at a virtual address in virtual memory space; and
read data associated with the management queue element from a physical address in physical memory space, wherein the physical address corresponds to the virtual address.

### Claim 25

A system comprising:
a circuit board that includes a circuit card slot;
a device coupled to the circuit board via the circuit card slot; and
a memory having circuitry to manage the device, the circuitry to:
determine if a management queue associated with the device can be created; and
if a management queue can be created:
allocate virtually contiguous memory to the management queue;
register the management queue; and
create a management queue context.

### Claim 26 (depends on 25)

The system of claim 25, wherein the devices comprises an RNIC (RDMA—Remote Direct Memory Access—Network Interface Card).

### Claim 27 (depends on 25)

The system of claim 25, wherein said circuitry to determine if a management queue can be created comprises circuitry to check parameters, said circuitry to:
determine if there is enough memory;
determine if management queues are available; and
determine if a requested management queue size can be supported.

### Claim 28 (depends on 25)

The system of claim 25, wherein said circuitry to allocate virtually contiguous memory to a management queue comprises circuitry to:
determine a size of the virtually contiguous memory; and
pin the allocated virtually contiguous memory.

### Claim 29 (depends on 25)

The system of claim 25, said circuitry to additionally:
perform parameter checking;
issue a command to destroy the management queue context; and
if the management queue context is valid, destroy the management queue.

### Claim 30 (depends on 25)

The system of claim 25, said circuitry to additionally:
check one or more parameters to determine if resizing of the management queue is possible, the management queue having one or more management queue elements;
allocate virtually contiguous memory to a new management queue;
register the new management queue;
copy the one or more management queue elements to the new management queue;
update the new management queue; and
perform cleanup operations.

### Claim 31 (depends on 25)

The system of claim 25, said circuitry to additionally:
determine a next location on the management queue to which a management queue element may be written;
write the management queue element to the management queue at a virtual address in virtual memory space; and
write data associated with the management queue element to a physical address in physical memory space, wherein the physical address corresponds to the virtual address.

### Claim 32 (depends on 25)

The system of claim 25, said circuitry to additionally:
determine a next location on the management queue to which a management queue element may be read;
read the management queue element from the management queue at a virtual address in virtual memory space; and
read data associated with the management queue element from a physical address in physical memory space, wherein the physical address corresponds to the virtual address.

### Claim 33

An article of manufacture comprising a machine-readable medium having machine-accessible instructions, the instructions when executed by a machine, result in the following:
determining if a management queue associated with a device can be created; and
if a management queue can be created:
allocating virtually contiguous memory to the management queue;
registering the management queue; and
creating a management queue context.

### Claim 34 (depends on 33)

The article of claim 33, wherein said instructions that result in determining if a management queue can be created comprises instructions that result in:
determining if there is enough memory;
determining if management queues are available; and
determining if a requested management queue size can be supported.

### Claim 35 (depends on 33)

The article of claim 33, wherein the instructions that result in allocating virtually contiguous memory to a management queue comprises instructions that result in:
determining a size of the virtually contiguous memory; and
pinning the allocated virtually contiguous memory.

### Claim 36 (depends on 33)

The article of claim 33, additionally comprising instructions that result in:
performing parameter checking;
issuing a command to destroy the management queue context; and
if the management queue context is valid, destroying the management queue.

### Claim 37 (depends on 33)

The article of claim 33, additionally comprising instructions that result in:
checking one or more parameters to determine if resizing of the management queue is possible, the management queue having one or more management queue elements;
allocating virtually contiguous memory to a new management queue;
registering the new management queue;
copying the one or more management queue elements to the new management queue;
updating the new management queue; and
performing cleanup operations.

### Claim 38 (depends on 33)

The article of claim 33, additionally comprising instructions that result in:
determining a next location on the management queue to which a management queue element may be written;
writing the management queue element to the management queue at a virtual address in virtual memory space; and
writing data associated with the management queue element to a physical address in physical memory space, wherein the physical address corresponds to the virtual address.

### Claim 39 (depends on 33)

The article of claim 33, additionally comprising instructions that result in:
determining a next location on the management queue to which a management queue element may be read;
reading the management queue element from the management queue at a virtual address in virtual memory space; and
reading data associated with the management queue element from a physical address in physical memory space, wherein the physical address corresponds to the virtual address.
