# US 2019/0095343 A1 · Low-latency accelerator

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

- Number: US 2019/0095343 A1
- Document ID: US20190095343A1
- Status: Published application
- Kind: A1
- Application number: 15/715,594
- Filed: 2017-09-26
- Published: 2019-03-28
- Earliest claimed: 2017-09-26
- Assignees: Intel Corporation
- Inventors: Vinodh Gopal
- Web page: https://patentgrep.com/patent/US20190095343A1

## CPC

- G06F 12/1036: for multiple virtual address spaces, e.g. segmentation (G06F12/1045 takes precedence)
- G06F 12/1027: using associative or pseudo-associative address translation means, e.g. translation look-aside buffer [TLB]
- G06F 12/109: for multiple virtual address spaces, e.g. segmentation (G06F12/1036 takes precedence)
- G06F 2212/1016: Performance improvement
- G06F 2212/654: Look-ahead translation
- G06F 2212/68: Details of translation look-aside buffer [TLB]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, apparatus and associated techniques and mechanisms for reducing latency in accelerators. The techniques and mechanisms are implemented in platform architectures supporting shared virtual memory (SVM) and includes use of SVM-enabled accelerators, along with translation look-aside buffers (TLBs). A request descriptor defining a job to be performed by an accelerator and referencing virtual addresses (VAs) and sizes of one or more buffers is enqueued via execution of a thread on a processor core. Under one approach, the descriptor includes hints comprising physical addresses or virtual address to physical address (VA-PA) translations that are obtained from one or more TLBs associated with the core using the buffer VAs. Under another approach employing TLB snooping, the buffer VAs are used as lookups and matching TLB entries ((VA-PA) translations) are used as hints. The hints are used to speculatively pre-fetch buffer data and speculatively start processing the pre-fetched buffer data on the accelerator.

## Claims

### Claim 1

A method performed on a computing platform having a multi-core processor coupled to one or more memory devices comprising system memory implemented as shared virtual memory (SVM), the multi-core processor having a plurality of cores, each core associated with at least one translation lookaside buffer (TLB), the multi-core processor further including at least one memory controller operatively coupled via at least one memory channel to one or more memory devices, the computing platform further including one or more SVM-capable accelerators having one or more functional units, the method comprising:
enqueuing, on an accelerator via execution of an execution thread on one of the plurality of cores, a request descriptor for the accelerator, the request descriptor defining a job to be performed by the accelerator and including information associated with one or more buffers in the system memory to be accessed by the accelerator during processing of the request descriptor;
speculatively pre-fetching, via the accelerator, buffer data from the system memory though use of the information in the request descriptor associated with the one or more buffers;
speculatively starting processing of the job by processing at least a portion of the buffer data that is pre-fetched using one or more functional units of the accelerator; and
verifying whether or not the buffer data that is speculatively pre-fetched is the correct buffer data to be processed by the job.

### Claim 2 (depends on 1)

The method of claim 1, wherein the information associated with the one or more buffers in the system memory comprises a virtual address, a size, and an address hint for each of the one or more buffers, the method further comprising:
for each of the one or more buffers,
using the address hint for the buffer to speculatively pre-fetch buffer data for the buffer.

### Claim 3 (depends on 2)

The method of claim 2, wherein the address hint for each of the one or more buffers comprises:
a physical address for at least a first page of one or more memory pages containing data corresponding to the buffer; or
a virtual address to physical address (VA-PA) translation for at least the first page of one or more memory pages containing data corresponding to the buffer.

### Claim 4 (depends on 2)

The method of claim 2, wherein the address hint for each of the one or more buffers is obtained through the use of an instruction set architecture (ISA) instruction in the execution thread executed by the processor core.

### Claim 5 (depends on 4)

The method of claim 4, wherein execution of the ISA instruction by the processor core causes the processor to:
for each of the one or more buffers,
use the virtual address of the buffer as a TLB lookup into one or more TLBs associated with the processor core, the TLB lookup returning a physical memory address comprising a hint.

### Claim 6 (depends on 2)

The method of claim 2, further comprising:
translating, for each of the one or more buffers, the virtual address for the buffer to a physical address to obtain a currently valid physical address for the buffer; and
verifying, for each of the one or more buffers, the address hint for the buffer with the currently valid physical address for the buffer.

### Claim 7 (depends on 6)

The method of claim 6, wherein translating a virtual address for a buffer to a physical address for the buffer is facilitated through use of a Peripheral Component Interconnect Express (PCIe) Address Translation Service.

### Claim 8 (depends on 1)

The method of claim 1, the information associated with the one or more buffers in system memory comprises a virtual address and a size of each of the one or more buffers, the method further comprising:
for each of the one or more buffers,
using the virtual address of the buffer as a TLB lookup into one or more TLBs associated with the core executing the thread, the TLB lookup identifying at least one of a physical memory address comprising a hint or a virtual address to physical address (VA-PA) translation comprising a hint; and
speculatively pre-fetching buffer data for the buffer using the hint.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
translating the virtual address for each of the one or more buffers to a physical address to obtain a currently valid physical address; and
verifying, for each of the one or more buffers, the hint for that buffer with the currently valid physical address for that buffer.

### Claim 10 (depends on 1)

The method of claim 1, wherein it is verified that the buffer data that is speculatively pre-fetched is the correct buffer data to be processed by the job, further comprising:
continuing processing of the job by processing all of the buffer data that is pre-fetched using one or more functional units of the accelerator.

### Claim 11

A computer system, comprising:
a multi-core processor, including:
a plurality of processor cores, each processor core having at least one associated translation lookaside buffer (TLB), each TLB to store a plurality of TLB entries comprising a virtual address to physical address (VA-PA) translation;
an interconnect fabric, communicatively coupled to each processor core and each TLB associated with each processor core;
a memory controller, communicatively coupled to the interconnect fabric and having one or more memory channels;
an input-output (TO) interface, communicatively coupled to the interconnect fabric; and
an IOTLB to store a plurality of TLB entries comprising VA-PA translations for one or more IO devices;
system memory comprising one or more memory devices, each communicatively coupled to at least one memory channel of the memory controller;
a shared virtual memory (SVM)-capable accelerator having one or more functional units, either embedded on the processor or communicatively coupled to the processor via the IO interface;
wherein the system is configured to,
enqueue, on the accelerator via execution of an execution thread on one of the plurality of cores, a request descriptor for the accelerator, the request descriptor defining a job to be performed by the accelerator and including information associated with one or more buffers in system memory to be accessed by the accelerator during processing of the request descriptor;
speculatively pre-fetch, via the accelerator, buffer data from the system memory though use of the information in the request descriptor associated with the one or more buffers;
speculatively start processing of the job by processing at least a portion of the buffer data that is pre-fetched using one or more functional units of the accelerator; and
verify whether or not the buffer data that is speculatively pre-fetched is the correct buffer data to be processed by the job.

### Claim 12 (depends on 11)

The computer system of claim 11, wherein the information associated with the one or more buffers in system memory comprises a virtual address, a size, and an address hint for each of the one or more buffers, wherein the system is further configured to:
for each of the one or more buffers,
employ the address hint for the buffer to speculatively pre-fetch buffer data for the buffer.

### Claim 13 (depends on 12)

The computer system of claim 12, wherein the address hint for each of the one or more buffers comprises:
a physical address for at least a first page of one or more memory pages containing data corresponding to the buffer; or
a virtual address to physical address (VA-PA) translation for at least the first page of one or more memory pages containing data corresponding to the buffer.

### Claim 14 (depends on 12)

The computer system of claim 12, wherein each of the processor cores has an instruction set architecture (ISA), and wherein the address hint for each of the one or more buffers is obtained through the use of an ISA instruction in the execution thread executed by the processor core.

### Claim 15 (depends on 14)

The computer system of claim 14, wherein execution of the ISA instruction by the processor core causes the processor to:
for each of the one or more buffers,
use the virtual address of the buffer as a TLB lookup into one or more TLBs associated with the processor core, the TLB lookup returning a physical memory address comprising a hint.

### Claim 16 (depends on 12)

The computer system of claim 12, wherein the system is further configured to:
translate, for each of the one or more buffers, the virtual address for the buffer to a physical address to obtain a currently valid physical address for the buffer; and
verify, for each of the one or more buffers, the address hint for the buffer with the currently valid physical address for the buffer.

### Claim 17 (depends on 16)

The computer system of claim 16, wherein the IO interface comprises a Peripheral Component Interconnect Express (PCIe) interface and wherein the processor includes a PCIe root complex coupled to the interconnect fabric and coupled to PCIe interface and the processor is configured to support PCIe Address Translation Service (ATS), and wherein translating a virtual address for a buffer to a physical address for the buffer is facilitated through use of the PCIe ATS.

### Claim 18 (depends on 11)

The computer system of claim 11, wherein the information associated with the one or more buffers in system memory comprises a virtual address and a size of each of the one or more buffers, and wherein the system is further configured to:
for each of the one or more buffers,
use the virtual address of the buffer as a TLB lookup into one or more TLBs associated with the core executing the thread, the TLB lookup identifying at least one of a physical memory address comprising a hint or a virtual address to physical address (VA-PA) translation comprising a hint; and
speculatively pre-fetch buffer data for the buffer using the hint.

### Claim 19 (depends on 18)

The computer system of claim 18, wherein the system is further configured to:
translate the virtual address for each of the one or more buffers to a physical address to obtain a currently valid physical address; and
verify, for each of the one or more buffers, the hint for that buffer with the currently valid physical address for that buffer.

### Claim 20 (depends on 11)

The computer system of claim 11, wherein in response to verifying that the buffer data that is speculatively pre-fetched is the correct buffer data to be processed by the job, the system is further configured to continue processing of the job by processing all of the buffer data that is pre-fetched using one or more functional units of the accelerator.

### Claim 21

A multi-core processor comprising:
a plurality of processor cores, each processor core having at least one associated translation lookaside buffer (TLB), each TLB to store a plurality of TLB entries comprising a virtual address to physical address (VA-PA) translation;
an interconnect fabric, communicatively coupled to each processor core and each TLB associated with each processor core;
a memory controller, communicatively coupled to the interconnect fabric and having one or more memory channels;
an accelerator, communicatively couple to the interconnect fabric, having one or more functional units and a request queue,
wherein the multi-core processor is configured to be installed in a computer system including system memory comprising one or more memory devices coupled to the one or more memory channels when the processor is installed in the computer system, the computer system employing a shared virtual memory (SVM) architecture, and wherein each processor core has an instruction set architecture (ISA) including an instruction that upon execution, causes the processor to:
enqueue a request descriptor in the accelerator request queue, the request descriptor defining a job to be performed by the accelerator and including an address hint for each of one or more buffers in system memory to be accessed by the accelerator during processing of the request descriptor,
wherein the address hint for a buffer is to be employed by the processor to speculatively pre-fetch buffer data corresponding to the buffer from the system memory.

### Claim 22 (depends on 21)

The multi-core processor of claim 21, wherein the multi-core processor is further configured to:
in response enqueuing the request descriptor in the accelerator request queue,
employ the address hint for each of the one or more buffers to speculatively pre-fetch buffer data from the system memory for that buffer;
speculatively start processing the job defined by the request descriptor by processing at least a portion of the buffer data that is pre-fetched using one or more functional units of the accelerator; and
verify whether or not the buffer data that is speculatively pre-fetched is the correct buffer data to be processed by the job.

### Claim 23 (depends on 21)

The multi-core processor of claim 21, wherein the ISA instruction includes a first operand to store an address of a portal on the accelerator portal to write a request descriptor to in a first register, a second operand to store an address of the request descriptor from a user application running in the system memory in a second register, and a third operand to store a length of the request descriptor in third register.

### Claim 24 (depends on 23)

The multi-core processor of claim 23, wherein execution of the ISA instruction by a processor core causes the processor to:
extract data from the request descriptor identifying a virtual address of each of one or more buffers;
for each of the one or more buffers,
use the virtual address of the buffer as a TLB lookup into one or more TLBs associated with the processor core, the TLB lookup returning a physical memory address comprising a hint; and
update the request descriptor to include the hint.

### Claim 25 (depends on 24)

The multi-core processor of claim 24, wherein at least one of the buffers includes data stored in multiple pages in the system memory, and wherein execution of the ISA instruction by a processor core causes the processor to:
update the request descriptor with a physical memory address for each of the multiple pages for each buffer that includes data stored in multiple pages in the system memory.
