# US 2023/0267080 A1 · Flexible queue provisioning for partitioned acceleration device

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

- Number: US 2023/0267080 A1
- Document ID: US20230267080A1
- Status: Published application
- Kind: A1
- Application number: 17/675,897
- Filed: 2022-02-18
- Published: 2023-08-24
- Earliest claimed: 2022-02-18
- Assignees: Xilinx, Inc.
- Applicants: Xilinx, Inc.
- Inventors: Cheng ZHEN; Sonal SANTAN; Min MA; Chien-Wei LAN
- Web page: https://patentgrep.com/patent/US20230267080A1

## CPC

- G06F 13/102: {where the program performs an interfacing function, e.g. device driver (G06F13/105 takes precedence; contention policies within device drivers G06F9/4881; scheduling within device drivers G06F9/52)}
- G06F 13/4221: {being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus}
- G06F 2213/0026: PCI express
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments herein describe partitioning an acceleration device based on the needs of each user application executing in a host. In one embodiment, a flexible queue provisioning method allows the acceleration device to be dynamically partitioned by pushing the configuration through a control command queue to the device by management software running in a trusted zone. The new configuration is parsed and verified by trusted firmware, which, then, creates isolated IO command queues on the acceleration device. These IO command queues can be directly mapped to a user application, VM, or other PCIe devices. In one embodiment, each IO command queue exposes only the compute resource assigned by the trusted firmware in the acceleration device.

## Claims

### Claim 1

An accelerator device, comprising:
a plurality of hardware resources divided into a plurality of partitions;
a plurality of input/output (IO) command queues, each assigned to a respective one of the plurality of partitions, wherein the plurality of IO command queues provide interfaces for receiving commands to perform accelerator tasks issued by an external host; and
a control command queue configured to receive commands from external management software to assign the plurality of hardware resources into the plurality of partitions.

### Claim 2 (depends on 1)

The accelerator device of claim 1, wherein at least a first one of the plurality of IO command queues is assigned to a software entity in the host, wherein the software entity in the host comprises a user application or a virtual machine.

### Claim 3 (depends on 2)

The accelerator device of claim 2, wherein at least a second one of the plurality of IO command queues is assigned to a different accelerator device via a peer-to-peer (P2P) PCIe connection.

### Claim 4 (depends on 1)

The accelerator device of claim 1, wherein hardware resources in a first partition of the plurality of partitions cannot access the IO command queues assigned to different partitions of the plurality of partitions.

### Claim 5 (depends on 4)

The accelerator device of claim 4, further comprising:
memory protection circuitry configured to, in response to the commands received from the external management software, prevent data for the plurality of partitions to be shared with hardware resources in a different partition.

### Claim 6 (depends on 1)

The accelerator device of claim 1, wherein the plurality of hardware resources form a heterogeneous processing system with different types of processing elements.

### Claim 7 (depends on 1)

The accelerator device of claim 1, further comprising:
a processor unit configured to, at boot time, use the commands received from the external management software to allocate the plurality of IO command queues and establish the plurality of partitions.

### Claim 8 (depends on 7)

The accelerator device of claim 7, wherein the processor unit is configured to, at runtime, use additional commands received from the external management software to alter the plurality of partitions and the plurality of IO command queues to form a different set of partitions.

### Claim 9 (depends on 1)

The accelerator device of claim 1, further comprising:
a plurality of virtual functions, each encapsulating a respective one of the plurality of IO command queues.

### Claim 10

A system on a chip (SoC), comprising:
a plurality of hardware resources divided into a plurality of partitions;
a plurality of input/output (IO) command queues, each assigned to a respective one of the plurality of partitions, wherein the plurality of IO command queues provide interfaces for receiving commands to perform accelerator tasks issued by an external host; and
a control command queue configured to receive commands from external management software to assign the plurality of hardware resources into the plurality of partitions.

### Claim 11 (depends on 10)

The SoC of claim 10, wherein each of the plurality of IO command queues is assigned to a different software entity in the host, wherein the software entities in the host comprise user applications or virtual machines.

### Claim 12 (depends on 10)

The SoC of claim 10, wherein hardware resources in a first partition of the plurality of partitions cannot access the IO command queues assigned to different partitions of the plurality of partitions.

### Claim 13 (depends on 12)

The SoC of claim 12, further comprising:
memory protection circuitry configured to, in response to the commands received from the external management software, prevent data for the plurality of partitions to be shared with hardware resources in a different partition.

### Claim 14 (depends on 10)

The SoC of claim 10, wherein the plurality of hardware resources can form a heterogeneous processing system with different types of processing elements.

### Claim 15 (depends on 10)

The SoC of claim 10, further comprising:
a processor unit configured to, at boot time, use the commands received from the external management software to allocate the plurality of IO command queues and establish the plurality of partitions.

### Claim 16 (depends on 15)

The SoC of claim 15, wherein the processor unit is configured to, at runtime, use additional commands received from the external management software to alter the plurality of partitions and the plurality of IO command queues to form a different set of partitions.

### Claim 17 (depends on 10)

The SoC of claim 10, further comprising:
a plurality of virtual functions, each encapsulating a respective one of the plurality of IO command queues.

### Claim 18

A method comprising:
advertising a control command queue in an acceleration device to external management software;
receiving, at the control command queue, commands for establishing IO command queues;
allocating the IO command queues, wherein each of the IO command queues corresponds to a respective partition formed from hardware resources in the acceleration device; and
informing designated applications executing in a host coupled to the acceleration device that the IO command queues have been allocated.

### Claim 19 (depends on 18)

The method of claim 18, further comprising:
encapsulating each of the IO command queues in a respective virtual function; and
advertising the virtual functions as new PCIe devices to the designated applications executing in the host.

### Claim 20 (depends on 18)

The method of claim 18, further comprising:
establishing memory protections in the acceleration device for the IO command queues to prevent hardware resources in one of the partitions from accessing data assigned to a different partition.
