Universal core-to-accelerator communication architecture

By managing the core-to-accelerator communication channel in hardware, the ACRE architecture solves inefficiencies in existing communication methods, improves on-chip accelerator operating efficiency and system throughput, and simplifies driver and application design.

CN118696296APending Publication Date: 2024-09-24INTEL CORP
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202280091538.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-03-15
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing on-chip accelerator communication methods have inefficiencies, such as slow MMIO write speeds, shared queue management overhead, out-of-order execution, and quality of service (QoS) issues, resulting in inefficient on-chip accelerator operations and the lack of a common communication architecture. Complicates driver and application design.

Method used

A hardware-based core-to-accelerator communication architecture (ACRE) is proposed, which manages communication channels in hardware through sending agents and receiving agents, reduces software participation, unifies interfaces, achieves efficient communication, and implements QoS and dynamic batching through hardware monitoring events. deal with.

Benefits of technology

Significantly reduces CPU cycle consumption, reduces software development complexity, increases system throughput, simplifies driver and application design, and enables more efficient core-to-accelerator communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118696296A
    Figure CN118696296A
Patent Text Reader

Abstract

Methods and apparatus related to a generic core-to-accelerator communication architecture for enhanced performance and / or programmability are described. In an embodiment, a transmit agent is coupled to a processor core, and a receive agent is coupled to a hardware accelerator device. The memory stores data corresponding to a request from the processor core. The sending agent and the receiving agent maintain a communication channel in response to the request to facilitate communication between the processor core and the hardware accelerator device. Other embodiments are also disclosed and claimed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates generally to the field of computer processors. More specifically, embodiments relate to a general purpose core-to-accelerator communication architecture for enhanced performance and / or programmability. Background Art

[0002] Some on-chip accelerators may communicate through a combination of techniques including memory mapped input / output (MMIO) read / write operations, device direct memory access (DMA) read / write, and / or interrupt / polling operations. Such approaches may introduce a variety of inefficiencies during communication, such as slow MMIO write speeds, shared queue management overhead (e.g., due to dynamic request batch sizes and / or head / tail updates), out-of-order execution and quality of service (QoS) issues, cache line hopping (where cache lines are moved across multiple caches unnecessarily), etc.

[0003] Therefore, if such communication issues are adequately addressed, on-chip accelerators will operate more efficiently. BRIEF DESCRIPTION OF THE DRAWINGS

[0004] The detailed description is provided with reference to the accompanying drawings. In the drawings, the leftmost digit(s) of a reference number identifies the drawing in which the reference number first appears. The use of the same reference numbers in different drawings indicates similar or identical items.

[0005] Figure 1 Figure illustrates a comparative block diagram of communication models according to some embodiments.

[0006] Figure 2 A block diagram of a core-to-accelerator communication architecture is shown in accordance with an embodiment.

[0007] Figure 3A and Figure 3B A block diagram illustrates a hardware architecture for a core-to-accelerator communication architecture, according to some embodiments.

[0008] Figure 4A and Figure 4B A flow chart according to some embodiments is shown.

[0009] Figure 5 Sample pseudo-code 500 for implementing a core-to-accelerator communication architecture is illustrated, according to an embodiment.

[0010] Fig. 6A is a block diagram illustrating both an exemplary in-order pipeline and an exemplary register renaming, out-of-order issue / execution pipeline in accordance with an embodiment.

[0011] Figure 6B is a block diagram illustrating both an exemplary embodiment of an in-order architecture core and an exemplary register renaming, out-of-order issue / execution architecture core to be included in a processor in accordance with an embodiment.

[0012] Figure 7 The figure shows a block diagram of a SOC (System On Chip) package according to an embodiment.

[0013] Figure 8 is a block diagram of a processing system according to an embodiment.

[0014] Fig. 9 is a block diagram of an embodiment of a processor having one or more processor cores, according to some embodiments.

[0015] Fig.10 is a block diagram of a graphics processor according to an embodiment. DETAILED DESCRIPTION

[0016] In the following description, numerous specific details are set forth in order to provide a thorough understanding of the various embodiments. However, the various embodiments may be implemented without these specific details. In other instances, well-known methods, processes, components, and circuits are not described in detail to avoid obscuring the specific embodiments. In addition, various aspects of the embodiments may be performed using various means, such as integrated semiconductor circuits ("hardware"), computer-readable instructions organized into one or more programs ("software"), or some combination of hardware and software. For the purposes of this disclosure, references to "logic" shall mean hardware (such as, logic circuit systems or more generally circuit systems or circuits), software, firmware, or some combination thereof.

[0017] As mentioned above, some on-chip accelerators (such as those made by Intel Corporation of Santa Clara, California) The company provides Data Streaming Accelerator (DSA), Analysis Accelerator( Analytics Accelerator (IAX) and Dynamic Load Balancer (DLB) communicate through a combination of techniques including memory mapped input / output (MMIO) read / write operations, device direct memory access (DMA) read / write, and / or interrupt / mwait / polling operations. As discussed herein, "mwait" generally refers to a hint that allows a processor to stop instruction execution and enter an implementation-dependent optimized state until a class of events occurs that wakes up the processor based on memory location. Such an approach may introduce a variety of inefficiencies during communication, such as slow MMIO write speeds, shared queue management overhead (e.g., due to dynamic request batch sizes), out-of-order execution and quality of service (QoS) issues, cache line bouncing, etc.

[0018] In addition, the AcceleratorInterfacing Architecture (AIA) instruction set (e.g., including MOVDIR64B and ENQCMD instructions) introduced relatively recently by Intel Corporation is intended to improve MMIO write speeds. Although AIA supports efficient job dispatching, synchronization, and signaling for accelerators, the instruction set does not seem to be able to solve all higher-level software overhead issues, such as queue management and / or dynamic request batching, QoS, and out-of-order requirements. Additionally, even for experienced programmers, it may be difficult to adjust and develop highly efficient drivers and applications to fully utilize hardware accelerators. There is also no general communication architecture or implementation for accelerator communication, i.e., different hardware accelerators and drivers can be implemented in different ways depending on hardware and software developers. The lack of a general communication solution for accelerators leads to repeated implementation work and unexpected errors.

[0019] To this end, some embodiments provide a general core-to-accelerator communication architecture for enhanced performance and / or programmability. In an embodiment, a hardware-assisted method for unifying and simplifying driver and application development to utilize hardware accelerators is provided. With simplified software, a large number of central processing units (CPUs) or processor cycles can be saved for other valuable work.

[0020] In contrast, a combination of established low-level communication techniques can be used for core-to-accelerator communication. These may involve MMIO read / write using direct storage, DMA read / write performed by the accelerator, and result query based on interrupt / polling / mwait. However, the driver or application still needs to be designed to communicate with the accelerator efficiently using these low-level methods. Even with such techniques, direct storage can be strongly ordered relative to other direct storages to the same address. Since direct storage targets limited MMIO addresses from the accelerator to submit jobs, those MMIO writes may be serialized and reduce the speed of the processor core back end. In addition, batch processing can be used to optimize to reduce such overhead. Executing software batch processing may require high-level application participation to balance between waiting time and throughput. Therefore, these problems complicate the design and programming of drivers and applications.

[0021] Additionally, some existing software-based communication solutions can use a significant amount of CPU cycles. For example, for a driver that is driving an on-chip accelerator, more than 30 cycles may be spent in the CPU just to migrate a request. Reducing CPU overhead creates opportunities to speed up sub-100 cycle tasks such as memory allocation, data serialization / deserialization, etc.

[0022] In some embodiments, the core-to-accelerator communication architecture (sometimes referred to as "ACRE") utilizes a hardware-based approach to unify and simplify the core-to-accelerator communication interface. ACRE includes a sending agent and a receiving agent. These agents are in turn responsible for generating one or more communication channels between the core and the accelerator, and exchanging any necessary messages between the core and the accelerator without software involvement. Accordingly, ACRE can migrate software management of (one or more) communication channels to hardware agents, thereby removing software overhead and complexity from the CPU core.

[0023] In an embodiment, ACRE creates and maintains (one or more) core-to-accelerator communication channels in hardware. Some advantages include: (1) exposing fewer low-level hardware details to software, unifying interfaces and reducing programming workload; (2) reducing core pipeline overhead, leaving more cycles available for other useful work; and / or (3) additional features such as QoS or dynamic batching can be implemented in hardware by monitoring hardware events.

[0024] In contrast, to take advantage of an on-chip accelerator, an application may choose to use a user space driver to send (e.g., 64 bytes) a job descriptor through a shared descriptor ring buffer, or directly MMIO the job descriptor into the accelerator's incoming buffer. If a shared ring buffer is used, a batch descriptor or "doorbell" MMIO is written to the accelerator to notify the batch of job descriptors. The accelerator then DMAs a single job descriptor from the ring buffer. For result queries, software can poll a flag bit in the completion record written by the accelerator after the job is completed (e.g., using a DSA driver). Software can then read the result from the completion record and perform post-processing if necessary. In order to work with the driver, the upper layer application needs to be changed to correctly call (one or more) application programming interfaces (Application Programming Interface, API). For example, the driver may provide three APIs, including: Enqueue_op(), which enqueues the job into a shared ring buffer; Perform_ops(), which MMIOs the batch descriptor into the accelerator describing the previously enqueued job; and Completed_ops(), which checks the completed results from the accelerator. It is up to the application to call each of the APIs in a pipelined manner to obtain the optimal throughput-latency tradeoff.

[0025] In this type of communication method, software maintains a communication channel in shared memory and sends batch descriptors to the accelerator using MMIO writes (i.e., using direct storage similar to MOVDIR64B, or conventional storage to the MMIO address of the accelerator port). It is up to the driver and application developers to decide when and how to batch requests, and how to maintain a ring buffer (or another data structure if it is more efficient). There are two problems with this type of approach. These problems may prevent many computing systems from adopting hardware accelerators.

[0026] First, the maintenance workload of drivers and applications is high. It is not easy to develop highly efficient drivers and rewrite applications to use drivers and maintain drivers and applications across different hardware generations. The complexity of software development mainly comes from three aspects: (1) The asynchronous communication model requires the software to check results and submit jobs asynchronously. This requires careful software pipelining design to overlap CPU processing with accelerator processing. (2) Even with AIA instructions, software needs to dynamically evaluate batch size to trade off throughput against latency. Smaller batch sizes may result in a larger number of serial MMIO writes, but larger batches may result in additional queue latency in the software queue. This requires software to make dynamic decisions based on platform performance insights, which are not easy to obtain. (3) In a multi-tenant environment where software submits jobs using the ENQCMD instruction, a retry signal is returned to the software, and the software needs to make intelligent QoS decisions about when to retry and how often to retry. In general, a multi-tenant system allows multiple users to share a single hardware accelerator or device. Tenants can be individual users, but can also include groups of users (such as customer organizations) that share common access to a hardware accelerator or device and share privileges to the hardware accelerator or device. For example, tenants can include virtual machines (VMs), containers, and / or software applications. One goal of ACRE is to migrate those complexities to (one or more) hardware agents to provide a cleaner and more simplified software interface.

[0027] Second, the software communication channel requires a large number of CPU cycles that could be used for other valuable work. For example, a minimal implementation (with very low system throughput) might take about 8 CPU cycles per send request, but a full implementation might take more than 40 CPU cycles.

[0028] Figure 1 FIG. 1 shows a comparative block diagram of a communication model according to some embodiments. Figure 1 As shown on the left side of part (A) of FIG. 1 , some existing communication models may involve software changes and maintenance tasks, including software (SW) pipelined applications 102, highly tuned user space drivers 104 running on processor cores and / or accelerators (ACC) 106 hardware (HW). In an embodiment (see, for example, Figure 1 ), the proposed ACRE implementation has minimal changes to the application 110, with a thin driver 112 having channels that are efficiently maintained in hardware using the ACRE circuit system 114, which can be tuned or optimized (e.g., by the CPU vendor).

[0029] One embodiment proposes a hardware agent to solve the above-mentioned problems. In addition to saving software overhead, the development work for software implementation is also reduced by using (one or more) on-chip hardware accelerators, for example, exposing fewer hardware specification details to the software. In general, the hardware-based approach makes the software more robust to hardware errors, for example, ensuring low software maintenance across different products.

[0030] In an embodiment, ACRE logic includes hardware intellectual property (IP) blocks plus software co-design to migrate the following communication tasks from software: (1) shared ring buffer management; (2) dynamic batching algorithm, and MMIO write of batch descriptors; (3) notification-based result query method with cache line prefetch and demotion; and / or (4) QoS algorithm in a multi-tenant environment.

[0031] Figure 2 A block diagram of a core-to-accelerator communication architecture 200 is shown, according to an embodiment. One or more operations of a core-to-accelerator communication architecture (also sometimes referred to herein as “ACRE”) may be performed by the ACRE circuitry 114 .

[0032] More specifically, the ACRE circuit system 114 may be able to provide one or more sending agents (where, for simplicity, Figure 2 Two sending agents 202-1 and 202-2) and a receiving agent 204 are shown in the figure to solve the problems of existing software-based communication models. These agents can be used to establish a communication channel between one or more processor cores (e.g., core 206-1 and / or 206-2) and one or more accelerators 208. These agents (rather than software) manage the communication channel, thereby reducing the software overhead of queue maintenance. In at least one embodiment, the agent dynamically batches requests by detecting (one or more) streaming workloads to trade off between latency and throughput. The agent can downgrade and / or prefetch cache lines between the core's local cache (such as the first level (Level 1, L1) cache or the second level (Level 2, L2) cache) and the last level cache (Last Level Cache, LLC) 210 shared between the cores 206-1 / 206-1 to reduce cache line bounce overhead. In an embodiment, the receiving agent 204 (e.g., having monitoring logic) can perform rate limiting tasks for QoS in a multi-tenant environment. As shown in FIG. Figure 2As shown, the sending agent 202-1 / 202-2 and the receiving agent 204 can communicate through a shared memory (LLC 210) and direct MMIO storage 214. Although LLC 210 can be used as a shared memory to communicate between agents, other types of memory devices (or combinations of memory devices) accessible to the sending agent(s) and the receiving agent(s) can also be used to share data; therefore, embodiments are not limited to the use of LLC.

[0033] In an embodiment, ACRE includes two hardware components, a (one or more) sending agent (e.g., a processor core) on the sender side and a receiving agent (e.g., an accelerator) on the receiver side. The sending agent can act as a proxy for the sender to communicate with the receiving agent by creating a ring-based communication channel in the memory. The receiving agent acts as a proxy for the receiver, thereby buffering incoming requests in its internal buffer. It also helps maintain tenant QoS and track completion results. In at least one embodiment of some accelerator designs (such as the DSA provided by Intel Corporation of Santa Clara, California), a job descriptor-based communication model can be followed, in which each accelerated job or task is described by a (e.g., 64-byte) job descriptor. These job descriptors are passed through (one or more) communication channels, passed by a shared ring buffer in the memory (e.g., as shown in LLC 210) for the accelerator to read (e.g., using direct memory access (DMA) operation 212), or passed by a direct MMIO operation 214 for the receiving agent.

[0034] Figure 3A and Figure 3B A block diagram of a hardware architecture for a core-to-accelerator communication architecture is shown, according to some embodiments. One or more operations of a core-to-accelerator communication architecture (also sometimes referred to herein as “ACRE”) may be performed by ACRE circuitry 114 .

[0035] refer to Figure 3A and Figure 3B, the high-level workflow of the ACRE circuit system for sending batched acceleration job requests can be described as follows. First, software (e.g., via a processor core) sends a request 302 by writing a job descriptor to an internal register (labeled as a descriptor register 306) of a sending agent (304). The sending agent 304 then uses a weakly ordered store to store the descriptor in a shared ring buffer 346 in a memory 318. After accumulating a selected number of job descriptors (e.g., determined by comparing the number of stored job descriptors to a threshold), the sending agent 304 (e.g., using an MMIO write operation) writes 310 the batch descriptors to the MMIO queue 314 of the receiving agent 312. The MMIO write operation can be completed using a conventional write or AIA instruction. The MMIO write operation serves as a notification to the receiving agent 312 about the readiness status of the batch descriptors. The sending agent 304 can use the result query logic 342 to query the results of the acceleration job. The sending agent can write the descriptors to a write combining buffer (WC buffer 343) instead of directly writing to memory to improve performance. Send agent 304 may also read data from memory 318 using a CPU core's load queue 345 .

[0036] If the batch descriptor is accepted, the batch descriptor is buffered in the incoming request buffer 314 of the receiving agent for further processing by the accelerator 316. In some embodiments, the batch descriptor may be rejected by the receiving agent 312 due to a rate limit violation. Later, the accelerator 316 reads the batch descriptor from the receiving agent 312 and uses the DMA engine 320 to read a single job descriptor from the memory 318. Alternatively, the sending agent can directly write a single job descriptor MMIO to the receiving agent 310 without using a shared ring buffer stored in the memory 318. The sending agent 304 can use a hardware-based batching algorithm during runtime to detect which method is appropriate, for example, to decide whether to batch or not batch the operation. This mechanism can be compatible with any accelerator, and it can also work for accelerator-to-accelerator communication, thereby realizing a universal communication interface. The receiving agent can use occupancy monitoring logic (350) and occupancy table 352 to monitor the incoming queue (e.g., in the incoming request buffer 314) occupancy of each tenant on the platform. By monitoring occupancy, an occupancy-based algorithm can be designed to implement QoS features such as rate limiting. For example, if a tenant has a high queue occupancy, the receiving agent can reject the tenant's request more often to give more resources to other tenants. As will be discussed further below, an occupancy-based algorithm sets a threshold, and when the request count from a PASID is higher than the threshold, a retry signal is sent. In an embodiment, a request from a PASID higher than a certain threshold (as determined at operation 458 discussed below) will be returned at operation 460 with a "retry" signal. Otherwise, at operation 462, the descriptor is buffered in a hardware buffer for the accelerator to pick up later.

[0037] Figure 4A A flow chart of a method 400 for sending a proxy operation according to an embodiment is shown. Figure 4B FIG. 4 is a flowchart of a method 450 for receiving proxy operations according to one embodiment. One or more operations of method 400 and / or 450 may be performed by Figure 3A and Figure 3B Component execution in .

[0038] In an embodiment, the sending agent is a relatively small hardware circuit system located near the processor core. The sending agent can reuse the core's memory execution unit (such as a page miss handler, a load storage queue, and a write combining (WC) buffer) to access the memory. The sending agent may include control logic and multiple internal registers to manage the communication channel between the sender and the receiver. There may also be registers used by the core to directly write job descriptors or read results from the agent. In an embodiment, between the internal registers, the descriptor register is an 8×8 byte register used by software to write job descriptors. In one embodiment, each job descriptor is a 64-byte cache line consisting of a description of the accelerated job. For an example of a job descriptor format, reference may be made to the job descriptor format of DSA.

[0039] refer to Figure 3A-Figure 4B , at operation 402, the core writes the job descriptor to a register of the sending agent (such as descriptor register 306). At operation 404, a batching algorithm is called (e.g., executed by batching and sending logic 330). In one mode, the sending agent automatically detects whether batching is needed and how large a batch should be used. Although batching is generally preferred in streaming workloads, batching may introduce longer queuing wait times for requests that enter the queue earlier. A simple heuristic-based algorithm implemented in the sending agent can be described as follows: The sending agent starts with a target batch size of 1. In each time window (e.g., 1 millisecond (ms)), one of the following conditions may cause the batch size to double: 1) the number of requests per second is higher than a threshold, and 2) an excessive number of "retry" signals are sent from the receiving agent. Condition 1) implies that the software is a streaming workload. Batching generally reduces non-core pressure and promotes throughput in streaming situations. Condition 2) indicates that the receiving agent cannot accept more requests for some reason (e.g., high pressure, QoS reasons, etc.). Batching and buffering requests in a shared ring buffer can reduce the pressure from the receiving agent. If neither condition occurs during the time window, the batch size is halved. In some embodiments, other algorithms based on hardware performance monitoring counters can also be used. In addition, CPU vendors can enable proprietary algorithms to be implemented and delivered to customers without exposing the proprietary algorithms to software.

[0040] At operation 406, it is determined whether the batch size is 1. If so, at operation 408, a MIMO write operation 310 writes a single descriptor to the incoming request buffer 314 of the receiving agent. If the batch size is not 1, at operation 412, the descriptor is written 322 to a shared ring buffer in memory 318. Operation 414 determines whether the batch size has reached a threshold, and if the threshold is reached, operation 416 writes the batch descriptor MIMO to the incoming buffer 314 of the receiving agent. If the batch size has not been reached at operation 414, operation 415 increments the batch size, and the method 400 resumes at operation 412. If the batch size is reached at operation 414, operation 416 is performed to write the batch descriptor MMIO to the receiving agent, and the method 400 continues at operation 418. Operation 418 resets the flag and waits for the next request from the software. After operation 418, the method 400 resumes at operation 402.

[0041] In some embodiments, the software first checks the free flag from the flag register 332 to determine whether the descriptor register 306 is ready to be written. The software then uses a move (e.g., MOV) instruction to fill (e.g., eight) descriptor registers and reset the free flag (this can be performed before operation 402, for example, assuming that the core has checked availability before entering operation 402; otherwise, the software waits until availability is confirmed before continuing with operation 402). The sending agent then writes the descriptor to the head of the ring buffer allocated in memory using weakly ordered storage. After writing, the queue head register is incremented by 1 to indicate the occupancy of the queue entry. As a ring, if the value is greater than the queue depth, the head may be wrapped. Once the selected number of requests are queued (at operation 414), the sending agent writes the batch descriptor MMIO to the MMIO port of the receiving agent (at operation 416). This MMIO write operation is completed using direct storage (such as MOVDIR or ENQCMD instructions), or using a regular MMIO write. The sending agent can also maintain a completion bitmap in its internal register 334. The bitmap may be in the coherent domain and monitors the Require-for-ownership (RFO) signal sent during the operation of the coherence protocol. Each change in the bitmap indicates that a new result has been written to the memory by the accelerator. In one embodiment, the result is encapsulated in a 32-byte Completion Record (CR). The sending agent pre-fetches the completion record into a local cache 336 for future use by at least one core, and stores the address of the CR in its internal result buffer 338, and writes the first available CR address to the result register 340. If the buffer 338 is empty, the result register 340 is set to a zero value (NULL pointer).

[0042] refer to Figure 3B and Figure 4B , the receiving agent 312 on the accelerator side includes a hardware incoming request buffer 314 for buffering the incoming requests received at operation 452. The hardware incoming request buffer is different from the shared ring data structure in the memory 318. The incoming request sent from the sending agent 310 is temporarily buffered in the internal buffer before being picked up by the accelerator 316. If the incoming request is a batch job descriptor, the accelerator DMA engine 320 reads a single job descriptor from the shared ring structure in the memory 318. The receiving agent is responsible for two tasks. First, at operation 454, the receiving agent monitors the queue occupancy of the incoming request buffer 314 (for example, the occupancy monitoring logic 350 is monitoring the occupancy in the table 352) and keeps a record of the business from each process address space identifier (Process Address Space Identifier, PASID). This can be used to enable QoS features at operation 456. At operation 460, requests from PASIDs above a certain threshold (as determined at operation 458) will be returned with a "retry" signal. Otherwise, at operation 462, the descriptor is buffered in the hardware buffer for the accelerator to pick up later. Second, once the accelerator completes processing of each job and writing of the completion record, the accelerator notifies the receiving agent of the completion, and the receiving agent updates the completion bitmap 344 in the memory 318 to notify the sending agent of the job completion through the bitmap register 334. Since the bitmap is also stored in the bitmap register 334 in the sending agent, the operation of the consistency protocol updates the contents of the bitmap register 334, thereby notifying the sending agent. The sending agent then pre-fetches the completion record into the local cache 336 and buffers the address of the completion record in its internal register (internal register such as buffer 338, where the address is first buffered in buffer 338 and the header of buffer 338 is written to register 340) for the software to pick up the result later.

[0043] In addition, for the QoS algorithm, the receiving agent uses the queue occupancy of the internal buffer (e.g., buffer 314) to adjust the QoS for different processes. The internal occupancy table 352 that maps each PASID to the queue entry count is used to track the number of requests originating from each process. The additional counter for the total number of jobs can be used to track the total number of jobs queued in the incoming request buffer 314. The ratio set by the user can be used to adjust the ratio of the two counters. If the number of requests from a certain PASID is higher than the ratio threshold, then at operation 460, a new request with a "retry" signal is returned. Otherwise, at operation 462, the request is buffered in the internal buffer of the receiving agent and is picked up by the accelerator later.

[0044] Regarding notification-based result query flows (e.g., Figure 3A Result query logic 342 executes), once the accelerator 316 completes the job, the accelerator notifies the receiving agent 312 of the completion, and the receiving agent writes a completion bitmap 344 to indicate which entry in the ring buffer 346 is completed. The bitmap 344 is pinned in the local register stack of the sending agent in the consistency domain (e.g., the bitmap register 334) so ​​that the sending agent will receive an RFO signal when it is updated. As discussed herein, a "consistency domain" generally refers to the consistency of the data in the registers with the cached data. This can cover the CPU cache and the internal registers of the agent and / or core. The sending agent then retrieves the bitmap 344 and checks which entries have been completed. The sending agent pre-fetches the completion record of the completed request and buffers the address of the completion record in the sending agent's internal buffer (e.g., Figure 3A The completion record may be stored in any location in memory. In at least one embodiment, each request carries a pointer to the memory location to be the completion record. The accelerator will write the completion record, and the CPU or software will eventually need to read the record. The completion record is the result of the request completed by the accelerator. The software retrieves the address of the completion record from the internal register of the sending agent (e.g., register 340).

[0045] In an embodiment, with respect to context switching, the send agent 304 needs to context switch between multiple context values, including queue management values ​​(e.g., tail, head 348), completion record addresses waiting to be consumed by the core in the result buffer 338, and a bitmap register 334 for completion request tracking. During the context switch, the values ​​in the descriptor registers 306 need to be flushed to memory. The register values ​​associated with the context need to be saved (e.g., using an XSAVE operation / instruction to save the processor extension state) to memory for future reloading.

[0046] Figure 5 The figure shows a sample pseudo code 500 for implementing a core-to-accelerator communication architecture according to an embodiment. The pseudo code 500 follows the reference Figure 4A and Figure 4B Some of the operations discussed. Figure 5As shown, first initialize the channel identifier (channel identifier, ID) chanID. The driver can implement the sendJob() and checkResult() APIs. The application only calls these two APIs to communicate with the accelerator. In sendJob(), the software only needs to write a single job descriptor to the internal register of the sending agent (line 6). For checkResult(), the software only needs to read the result from the internal register of the agent (line 11). In the loop for streaming workloads, the application calls preProcess() and PostProcess() before and after sendJob and checkResult. Both the driver and the application are relatively simple and easy to maintain. Queue management, batch processing, and QoS-related work can all be handled by the ACRE hardware, which simplifies the maintenance and development of the software and also reduces the CPU cycles spent on software implementation.

[0047] In some implementations, ACRE can improve system throughput by three to seven times compared to systems without ACRE. Since the software interface is much simpler, the dynamic instruction count can also be significantly reduced.

[0048] Accordingly, at least one embodiment provides a hardware-based method to implement a general core to accelerator communication channel. Send agents and receive agents for creating and maintaining communication channels through shared ring buffers and MMIO direct storage operations are proposed. The proposed hardware architecture unifies the interface between the core and each accelerator, and may unify the interface between accelerators. Initial evaluation results show significant savings in CPU cycles and greatly reduced programming workload.

[0049] Additionally, some embodiments may be applied to a computing system including one or more processors (eg, where the one or more processors may include one or more processor cores), such as a computing system described with reference to Figure 1 The computing systems discussed in the following figures include, for example, desktop computers, workstations, computer servers, server blades, or mobile computing devices. Mobile computing devices may include smart phones, tablets, UMPCs (ultra mobile personal computers), laptops, ultrabooks, and the like. TM Computing devices, wearable devices (such as smart watches, smart rings, smart bracelets or smart glasses), etc. Exemplary Core Architectures, Processors, and Computer Architectures

[0050] Processor cores can be implemented in different ways, for different purposes, and in different processors. For example, implementations of such cores may include: 1) a general-purpose in-order core intended for general-purpose computing; 2) a high-performance general-purpose out-of-order core intended for general-purpose computing; 3) a special-purpose core intended primarily for graphics and / or scientific (throughput) computing. Implementations of different processors may include: 1) a CPU (central processing unit) that includes one or more general-purpose in-order cores intended for general-purpose computing and / or one or more general-purpose out-of-order cores intended for general-purpose computing; and 2) a coprocessor that includes one or more special-purpose cores intended primarily for graphics and / or scientific (throughput). Such different processors lead to different computer system architectures, which may include: 1) a coprocessor on a separate chip from the CPU; 2) a coprocessor in the same package as the CPU but on a separate die; 3) a coprocessor on the same die as the CPU (in which case such a coprocessor is sometimes referred to as dedicated logic or as a dedicated core, such as integrated graphics and / or scientific (throughput) logic); and 4) a system on a chip, which may include the described CPU (sometimes referred to as application core(s) or application processor(s), the coprocessor described above, and additional functionality on the same die. An exemplary core architecture is described next, followed by a description of an exemplary processor and computer architecture. Exemplary Core Architecture

[0051] Fig. 6A is a block diagram illustrating both an exemplary in-order pipeline and an exemplary register renaming, out-of-order issue / execution pipeline in accordance with various embodiments. Figure 6B is a block diagram illustrating an exemplary embodiment of an in-order architecture core and an exemplary register renaming, out-of-order issue / execution architecture core to be included in a processor in accordance with various embodiments. Figure 6A-6B The solid-line boxes in illustrate the in-order pipeline and in-order core, while the optionally added dashed-line boxes illustrate the register-renaming, out-of-order issue / execution pipeline and core. Considering that the in-order aspect is a subset of the out-of-order aspect, the out-of-order aspect will be described.

[0052] exist Fig. 6A , processor pipeline 600 includes a fetch stage 602, a length decode stage 604, a decode stage 606, an allocation stage 608, a rename stage 610, a dispatch (also known as dispatch or issue) stage 612, a register read / memory read stage 614, an execute stage 616, a write back / memory write stage 618, an exception handling stage 622, and a commit stage 624.

[0053] Figure 6BA processor core 690 is shown, which includes a front end unit 630, which is coupled to an execution engine unit 650, and both the front end unit 630 and the execution engine unit 650 are coupled to a memory unit 670. The core 690 can be a reduced instruction set computing (RISC) core, a complex instruction set computing (CISC) core, a very long instruction word (VLIW) core, or a hybrid or alternative core type. As a further option, the core 690 can be a special-purpose core, such as, for example, a network or communication core, a compression engine, a coprocessor core, a general purpose computing graphics processing unit (GPGPU) core, a graphics core, and the like.

[0054] The front end unit 630 includes a branch prediction unit 632, which is coupled to an instruction cache unit 634, which is coupled to an instruction translation lookaside buffer (TLB) 636, which is coupled to an instruction fetch unit 638, which is coupled to a decode unit 640. The decode unit 640 (or decoder) can decode the instruction and generate one or more micro-operations, microcode entry points, microinstructions, other instructions, or other control signals decoded from the original instruction, or otherwise reflecting the original instruction, or derived from the original instruction as output. The decode unit 940 can be implemented using a variety of different mechanisms. Examples of suitable mechanisms include, but are not limited to, lookup tables, hardware implementations, programmable logic arrays (PLA), microcode read only memories (ROM), etc. In one embodiment, core 690 includes a microcode ROM or other medium (eg, in decode unit 640 or otherwise within front end unit 630) that stores microcode for certain macroinstructions. Decode unit 640 is coupled to rename / allocator unit 652 in execution engine unit 650.

[0055] The execution engine unit 650 includes a rename / allocator unit 652 coupled to a retirement unit 654 and a set of one or more scheduler units 656. The scheduler unit(s) 656 represent any number of different schedulers, including reservation stations, central instruction windows, etc. The scheduler unit(s) 656 are coupled to physical register file(s) units 658. Each of the physical register file(s) units 658 represents one or more physical register files, where different physical register files store one or more different data types, such as scalar integers, scalar floating points, packed integers, packed floating points, vector integers, vector floating points, status (e.g., an instruction pointer that is the address of the next instruction to be executed), etc. In one embodiment, the physical register file(s) units 658 include a vector register unit, a write mask register unit, and a scalar register unit. These register units may provide architectural vector registers, vector mask registers, and general purpose registers. The physical register file(s) unit(s) 658 are overlapped by the retirement unit(s) 654 to illustrate various ways in which register renaming and out-of-order execution may be implemented (e.g., using reorder buffer(s) and retirement register file(s); using future stack(s), history buffer(s), retirement register file(s); using register map and register pool, etc.). The retirement unit(s) 654 and the physical register file(s) unit(s) 658 are coupled to execution cluster(s) 660. The execution cluster(s) 660 include a set of one or more execution units 662 and a set of one or more memory access units 664. The execution unit(s) 662 may perform various operations (e.g., shifts, additions, subtractions, multiplications) and may perform on various data types (e.g., scalar floating point, packed integer, packed floating point, vector integer, vector floating point). While some embodiments may include multiple execution units dedicated to a particular function or set of functions, other embodiments may include only one execution unit or multiple execution units that all perform all functions. Scheduler unit(s) 656, physical register file(s) units 658, and execution cluster(s) 660 are shown as possibly being multiple, as certain embodiments create separate pipelines for certain types of data / operations (e.g., a scalar integer pipeline, a scalar floating point / packed integer / packed floating point / vector integer / vector floating point pipeline, and / or a memory access pipeline each with its own scheduler unit, physical register file(s) units, and / or execution cluster - and in the case of separate memory access pipelines, certain embodiments are implemented in which only the execution cluster of that pipeline has memory access unit(s) 664).It should also be understood that where separate pipelines are used, one or more of these pipelines may be out-of-order issue / execution and the remaining pipelines may be in-order.

[0056] A set of memory access units 664 is coupled to a memory unit 670, which includes a data TLB unit 672, which is coupled to a data cache unit 674, which is coupled to a second level (L2) cache unit 676. In an exemplary embodiment, the memory access unit 664 may include a load unit, a store address unit, and a store data unit, each of which is coupled to the data TLB unit 672 in the memory unit 670. The instruction cache unit 634 is further coupled to a second level (L2) cache unit 676 in the memory unit 670. The L2 cache unit 676 is coupled to one or more other levels of cache and ultimately to the main memory.

[0057] As an example, an exemplary register renaming out-of-order issue / execution core architecture may implement pipeline 600 as follows: 1) instruction fetch 638 performs fetch stage 602 and length decode stage 604; 2) decode unit 640 performs decode stage 606; 3) rename / allocator unit 652 performs allocate stage 608 and rename stage 610; 4) (one or more) scheduler units 656 perform schedule stage 612; 5) (one or more) physical register file units 658 and memory units 670 perform register read / memory read stage 614; execution cluster 660 performs execute stage 616; 6) memory unit 670 and (one or more) physical register file units 658 perform write back / memory write stage 618; 7) each unit may be involved in an exception handling stage 622; and 8) retirement unit 654 and (one or more) physical register file units 658 perform commit stage 624.

[0058] Core 690 may support one or more instruction sets (e.g., the x86 instruction set (with some extensions that have been added with newer versions); the MIPS instruction set from MIPS Technologies, Inc. of Sunnyvale, California; the ARM instruction set from ARM Holdings, Inc. of Sunnyvale, California (with optional additional extensions such as NEON)), including the instruction(s) described herein. In one embodiment, core 690 includes logic to support packed data instruction set extensions (e.g., AVX1, AVX2), thereby allowing operations used by many multimedia applications to be performed using packed data.

[0059] Figure 7 The figure shows a block diagram of a SOC package according to an embodiment. Figure 7As shown in , SOC 702 includes one or more central processing unit (CPU) cores 720, one or more graphics processor unit (Graphics Processor Unit, GPU) cores 730, input / output (Input / Output, I / O) interface 740, and memory controller 742. The components of SOC package 702 can be coupled to an interconnect or bus such as discussed in other figures herein. In addition, SOC package 702 may include more or fewer components, such as those discussed in other figures herein. Further, each component of SOC package 702 may include one or more other components, for example, as discussed in other figures herein. In one embodiment, SOC package 702 (and its components) is provided on one or more integrated circuit (Integrated Circuit, IC) dies, for example, the one or more integrated circuit dies are packaged into a single semiconductor device.

[0060] like Figure 7 As shown in , SOC package 702 is coupled to memory 760 via memory controller 742. In an embodiment, memory 760 (or a portion thereof) may be integrated on SOC package 702.

[0061] The I / O interface 740 may be coupled to one or more I / O devices 770, for example, via an interconnect and / or bus such as discussed herein with reference to other figures. The I / O device(s) 770 may include one or more of a keyboard, a mouse, a touchpad, a display, an image / video capture device (such as a camera or camcorder / video recorder), a touch screen, a speaker, and the like.

[0062] Figure 8 800 is a block diagram of a processing system 800 according to an embodiment. In various embodiments, the system 800 includes one or more processors 802 and one or more graphics processors 808, and can be a single-processor desktop system, a multi-processor workstation system, or a server system with a large number of processors 802 or processor cores 807. In one embodiment, the system 800 is a processing platform incorporated into a system-on-a-chip (SoC or SOC) integrated circuit used in a mobile device, a handheld device, or an embedded device.

[0063] Embodiments of system 800 may include the following or may be incorporated in the following: server-based game platform, game console (including game and media console), mobile game console, handheld game console or online game console. In some embodiments, system 800 is a mobile phone, smart phone, tablet computing device or mobile Internet device. Data processing system 800 may also include wearable device, be coupled with wearable device or be integrated in wearable device, such as smart watch wearable device, smart glasses device, augmented reality device or virtual reality device. In some embodiments, data processing system 800 is a television set or set-top box device, and the television set or set-top box device has one or more processors 802 and a graphical interface generated by one or more graphics processors 808.

[0064] In some embodiments, one or more processors 802 each include one or more processor cores 807, which are used to process instructions, and these instructions, when executed, perform operations for system and user software. In some embodiments, each processor core in one or more processor cores 807 is configured to process a specific instruction set 809. In some embodiments, the instruction set 809 can promote complex instruction set computing (CISC), reduced instruction set computing (RISC), or calculation via very long instruction word (VLIW). Multiple processor cores 807 can each process different instruction sets 809, and different instruction sets 809 may include instructions for promoting the simulation of other instruction sets. The processor core 807 may also include other processing devices, such as a digital signal processor (DSP).

[0065] In some embodiments, the processor 802 includes a cache memory 804. Depending on the architecture, the processor 802 may have a single internal cache or multiple levels of internal cache. In some embodiments, the cache memory is shared between various components of the processor 802. In some embodiments, the processor 802 also uses an external cache (e.g., a Level-3 (L3) cache or a last level cache (LLC)) (not shown), which may be shared between the processor cores 807 using known cache coherence techniques. A register file 806 is additionally included in the processor 802, and the register file 806 may include different types of registers (e.g., integer registers, floating point registers, status registers, and instruction pointer registers) for storing different types of data. Some registers may be general purpose registers, while other registers may be specific to the design of the processor 802.

[0066] In some embodiments, the processor 802 is coupled to a processor bus 810 to transmit communication signals (such as addresses, data) or control signals between the processor 802 and other components in the system 800. In one embodiment, the system 800 uses an exemplary "hub" system architecture that includes a memory controller hub 816 and an input-output (I / O) controller hub 830. The memory controller hub 816 facilitates communication between memory devices and other components of the system 800, while the I / O controller hub (I / O Controller Hub, ICH) 830 provides connections to I / O devices via a local I / O bus. In one embodiment, the logic of the memory controller hub 816 is integrated within the processor.

[0067] The memory device 820 may be a dynamic random access memory (DRAM) device, a static random access memory (SRAM) device, a flash memory device, a phase change memory device, or some other memory device having suitable properties to act as a process memory. In one embodiment, the memory device 820 may operate as a system memory for the system 800 to store data 822 and instructions 821 for use when one or more processors 802 execute applications or processes. The memory controller hub 816 is also coupled to an optional external graphics processor 812, which may communicate with one or more graphics processors 808 in the processor 802 to perform graphics and media operations.

[0068] In some embodiments, the ICH 830 enables peripheral devices to be connected to the memory device 820 and the processor 802 via a high-speed I / O bus. The I / O peripherals include, but are not limited to, an audio controller 846, a firmware interface 828, a wireless transceiver 826 (e.g., Wi-Fi, Bluetooth), a data storage device 824 (e.g., a hard drive, flash memory, etc.), and a traditional I / O controller 840 for coupling traditional (e.g., Personal System 2 (PS / 2)) devices to the system. One or more Universal Serial Bus (USB) controllers 842 connect input devices (such as a combination of a keyboard and mouse 844). A network controller 834 may also be coupled to the ICH 830. In some embodiments, a high-performance network controller (not shown) is coupled to the processor bus 810. It will be appreciated that the system 800 shown is exemplary and not limiting, as other types of data processing systems configured in different ways may also be used. For example, I / O controller hub 830 may be integrated within one or more processors 802 , or memory controller hub 816 and I / O controller hub 830 may be integrated into a discrete external graphics processor, such as external graphics processor 812 .

[0069] Fig. 9 is a block diagram of an embodiment of a processor 900 having one or more processor cores 902A- 902N, an integrated memory controller 914 , and an integrated graphics processor 908 . Fig. 9 Those elements having the same reference numerals (or names) as elements of any other figure herein may operate or function in any manner similar to, but not limited to, any manner described elsewhere herein. Processor 900 may include additional cores, up to and including additional core 902N represented by a dashed box. Each of processor cores 902A to 902N includes one or more internal cache units 904A to 904N. In some embodiments, each processor core also has access to one or more shared cache units 906.

[0070] Internal cache units 904A to 904N and shared cache unit 906 represent a cache memory hierarchy within processor 900. The cache memory hierarchy may include at least one level of instruction and data cache within each processor core and one or more levels of shared mid-level cache, such as a second level (L2), third level (L3), fourth level (Level 4, L4), or other level of cache, where the highest level of cache before external memory is classified as LLC. In some embodiments, cache coherence logic maintains coherence between the various cache units 906 and 904A to 904N.

[0071] In some embodiments, the processor 900 may also include a set of one or more bus controller units 916 and a system agent core 910. The one or more bus controller units 916 manage a set of peripheral buses, such as one or more peripheral component interconnect buses (e.g., PCI, PCI Express). The system agent core 910 provides management functions for various processor components. In some embodiments, the system agent core 910 includes one or more integrated memory controllers 914 for managing access to various external memory devices (not shown).

[0072] In some embodiments, one or more of the processor cores 902A to 902N include support for simultaneous multithreaded operations. In such embodiments, the system agent core 910 includes components for coordinating and operating the cores 902A to 902N during multithreaded processing. The system agent core 910 may additionally include a power control unit (PCU) that includes logic and components for regulating the power state of the processor cores 902A to 902N and the graphics processor 908.

[0073] In some embodiments, the processor 900 additionally includes a graphics processor 908 for performing graphics processing operations. In some embodiments, the graphics processor 908 is coupled to a set of shared cache units 906 and a system agent core 910, which includes one or more integrated memory controllers 914. In some embodiments, a display controller 911 is coupled to the graphics processor 908 to drive the graphics processor output to one or more coupled displays. In some embodiments, the display controller 911 can be a separate module coupled to the graphics processor via at least one interconnect, or can be integrated within the graphics processor 908 or the system agent core 910.

[0074] In some embodiments, a ring-based interconnect unit 912 is used to couple the internal components of the processor 900. However, alternative interconnect units may be used, such as point-to-point interconnects, switched interconnects, or other technologies (including those known in the art). In some embodiments, the graphics processor 908 is coupled to the ring interconnect 912 via an I / O link 913.

[0075] Exemplary I / O link 913 represents at least one of a variety of I / O interconnects, including an on-package I / O interconnect that facilitates communication between various processor components and a high-performance embedded memory module 918, such as an eDRAM (or embedded DRAM) module. In some embodiments, each of the processor cores 902A-902N and the graphics processor 908 uses the embedded memory module 918 as a shared last level cache.

[0076] In some embodiments, processor cores 902A to 902N are homogeneous cores that execute the same instruction set architecture. In another embodiment, processor cores 902A to 902N are heterogeneous in terms of instruction set architecture (ISA), wherein one or more processor cores of processor cores 902A to 902N execute a first instruction set, while at least one of the other cores executes a subset of the first instruction set or a different instruction set. In one embodiment, processor cores 902A to 902N are heterogeneous in terms of microarchitecture, wherein one or more cores with relatively high power consumption are coupled with one or more power cores with lower power consumption. Additionally, processor 900 may be implemented on one or more chips, or as a SoC integrated circuit having the illustrated components in addition to other components.

[0077] Fig.10 1 is a block diagram of a graphics processor 1000, which may be a discrete graphics processing unit, or may be a graphics processor integrated with multiple processing cores. In some embodiments, the graphics processor communicates via a memory-mapped I / O interface to registers on the graphics processor and using commands placed into processor memory. In some embodiments, the graphics processor 1000 includes a memory interface 1014 for accessing memory. The memory interface 1014 may be an interface to local memory, one or more internal caches, one or more shared external caches, and / or to system memory.

[0078] In some embodiments, the graphics processor 1000 also includes a display controller 1002 for driving display output data to a display device 1020. The display controller 1002 includes hardware for compositing one or more overlay planes and multiple layers of video or user interface elements for a display. In some embodiments, the graphics processor 1000 includes a video codec engine 1006 for encoding media to one or more media encoding formats, decoding media from one or more media encoding formats, or transcoding media between one or more media encoding formats, including but not limited to: Moving Picture Experts Group (MPEG) formats (such as MPEG-2), Advanced Video Coding (AVC) formats (such as H.264 / MPEG-4 AVC), and Society of Motion Picture & Television Engineers (SMPTE) 321M / VC-1, and Joint Photographic Experts Group (JPEG) formats (such as JPEG, and Motion JPEG (Motion JPET, MJPEG) formats).

[0079] In some embodiments, graphics processor 1000 includes a block image transfer (BLIT) engine 1004 for performing two-dimensional (2D) rasterizer operations, including, for example, bit boundary block transfers. However, in one embodiment, 3D graphics operations are performed using one or more components of a graphics processing engine (GPE) 1010. In some embodiments, graphics processing engine 1010 is a compute engine for performing graphics operations, including three-dimensional (3D) graphics operations and media operations.

[0080] In some embodiments, GPE 1010 includes a 3D pipeline 1012 for performing 3D operations, such as rendering three-dimensional images and scenes using processing functions that act on 3D primitive shapes (e.g., rectangles, triangles, etc.). 3D pipeline 1012 includes programmable and fixed-function elements that perform various tasks within the element and / or spawn execution threads to 3D / media subsystem 1015. While 3D pipeline 1012 may be used to perform media operations, embodiments of GPE 1010 also include a media pipeline 1016 that is specifically used to perform media operations, such as video post-processing and image enhancement.

[0081] In some embodiments, the media pipeline 1016 includes fixed-function or programmable logic units for performing one or more specialized media operations, such as video decoding acceleration, video deinterlacing, and video encoding acceleration, instead of, or on behalf of, the video codec engine 1006. In some embodiments, the media pipeline 1016 additionally includes a thread generation unit to generate threads for execution on the 3D / media subsystem 1015. The generated threads perform calculations for media operations on one or more graphics execution units included in the 3D / media subsystem 1015.

[0082] In some embodiments, the 3D / media subsystem 1015 includes logic for executing threads generated by the 3D pipeline 1012 and the media pipeline 1016. In one embodiment, the pipeline sends thread execution requests to the 3D / media subsystem 1015, which includes thread dispatch logic for arbitrating and dispatching various requests for available thread execution resources. The execution resources include an array of graphics execution units for processing 3D and media threads. In some embodiments, the 3D / media subsystem 1015 includes one or more internal caches for thread instructions and data. In some embodiments, the subsystem also includes a shared memory for sharing data between threads and for storing output data, which includes registers and addressable memory.

[0083] In this specification, numerous specific details are set forth to provide a more thorough understanding. However, it will be apparent to those skilled in the art that the embodiments described herein can be implemented without one or more of these specific details. In other instances, well-known features are not described to avoid obscuring the details of the current embodiments.

[0084] The following examples relate to further embodiments. Example 1 includes an apparatus comprising: a sending agent coupled to a processor core; a receiving agent coupled to a hardware accelerator device; and a memory for storing data corresponding to a request from the processor core, wherein the sending agent and the receiving agent are used to maintain a communication channel in response to the request to facilitate communication between the processor core and the hardware accelerator device. Example 2 includes an apparatus as in Example 1, wherein the memory is used to store a circular buffer to be shared by the sending agent and the receiving agent. Example 3 includes an apparatus as in Example 2, wherein the circular buffer is used to provide a communication channel. Example 4 includes an apparatus as in Example 1, wherein one of the sending agent and the receiving agent is used to generate a communication channel. Example 5 includes an apparatus as in Example 1, wherein the memory includes a last level cache (LLC). Example 6 includes an apparatus as in Example 1, wherein the receiving agent is used to buffer incoming requests from the processor core in a buffer. Example 7 includes an apparatus as in Example 6, wherein the buffer is used to access via a memory mapped input / output (MMIO) load operation or an MMIO store operation. Example 8 includes an apparatus as in Example 1, wherein the request corresponds to a job to be performed by a hardware accelerator device. Example 9 includes an apparatus as in Example 8, wherein a job descriptor corresponding to the job is used to be transmitted through a communication channel. Example 10 includes an apparatus as in Example 9, wherein the job descriptor is used to be transmitted to the hardware accelerator device through a direct memory access (DMA) operation. Example 11 includes an apparatus as in Example 1, wherein the receiving agent is used to adjust the quality of service (QoS) for different processes using the occupancy data. Example 12 includes an apparatus as in Example 11, wherein the occupancy data is stored in a table that maps each process address space identifier (PASID) to a corresponding queue entry count. Example 13 includes an apparatus as in Example 1, wherein the completion of the request is used to be signaled by a completion bitmap. Example 14 includes an apparatus as in Example 13, wherein the completion bitmap is used to be stored in a memory or a register. Example 15 includes an apparatus as in Example 13, wherein the completion bitmap is in a consistency domain.

[0085] Example 16 includes one or more non-transitory computer-readable media, the one or more non-transitory computer-readable media including one or more instructions, which when executed on a processor, configure the processor to perform one or more operations to: cause a sending agent coupled to a processor core, and a receiving agent coupled to a hardware accelerator device to maintain a communication channel in response to a request from the processor core to facilitate communication between the processor core and the hardware accelerator device; and cause a memory to store data corresponding to the request from the processor core. Example 17 includes one or more computer-readable media as example 16, the one or more computer-readable media further including one or more instructions, which when executed on at least one processor, configure at least one processor to perform one or more operations to cause the memory to store a circular buffer to be shared by the sending agent and the receiving agent. Example 18 includes one or more computer-readable media as example 17, the one or more computer-readable media further including one or more instructions, which when executed on at least one processor, configure at least one processor to perform one or more operations to cause the circular buffer to provide a communication channel. Example 19 includes one or more computer-readable media as in Example 16, the one or more computer-readable media further including one or more instructions, which when executed on at least one processor, configure at least one processor to perform one or more operations to enable one of a sending agent and a receiving agent to generate a communication channel. Example 20 includes one or more computer-readable media as in Example 16, wherein the memory includes a last level cache (LLC). Example 21 includes one or more computer-readable media as in Example 16, the one or more computer-readable media further including one or more instructions, which when executed on at least one processor, configure at least one processor to perform one or more operations to enable a receiving agent to buffer incoming requests from a processor core in a buffer. Example 22 includes one or more computer-readable media as in Example 21, the one or more computer-readable media further including one or more instructions, which when executed on at least one processor, configure at least one processor to perform one or more operations to enable a buffer to be accessed via a memory-mapped input / output (MMIO) load operation or an MMIO store operation. Example 23 includes one or more computer-readable media as in Example 16, wherein the request corresponds to a job to be performed by a hardware accelerator device.Example 24 includes one or more computer-readable media as in example 16, further comprising one or more instructions that, when executed on at least one processor, configure the at least one processor to perform one or more operations to enable the receiving agent to utilize the occupancy data to adjust the quality of service (QoS) for different processes. Example 25 includes one or more computer-readable media as in example 16, further comprising one or more instructions that, when executed on at least one processor, configure the at least one processor to perform one or more operations to enable completion of the request to be signaled via a completion bitmap.

[0086] Example 26 includes a method comprising: a sending agent coupled to a processor core, and a receiving agent coupled to a hardware accelerator device maintaining a communication channel in response to a request from the processor core to facilitate communication between the processor core and the hardware accelerator device; and storing data corresponding to the request from the processor core in a memory. Example 27 includes the method of Example 26, further comprising: causing the memory to store a circular buffer to be shared by the sending agent and the receiving agent. Example 28 includes the method of Example 27, further comprising: causing the circular buffer to provide a communication channel. Example 29 includes the method of Example 26, further comprising: causing one of the sending agent and the receiving agent to generate a communication channel. Example 30 includes the method of Example 26, wherein the memory includes a last level cache (LLC).

[0087] Example 31 includes a device comprising means for performing a method as described in any of the previous examples. Example 32 includes a machine-readable storage device comprising machine-readable instructions that, when executed, are used to implement any of the methods described in any of the previous examples or to implement any of the means described in any of the previous examples.

[0088] In each embodiment, reference Figure 1 One or more operations discussed in the figures and below may be performed by one or more components (interchangeably referred to herein as "logic") discussed with reference to any of the figures.

[0089] In various embodiments, herein (for example, reference Figure 1 The operations discussed in the present invention (e.g., logic circuitry), software, firmware, or a combination thereof, may be implemented as hardware (e.g., logic circuitry), software, firmware, or a combination thereof, which may be provided as a computer program product, for example, including one or more tangible (e.g., non-transitory) machine-readable or computer-readable media having instructions (or software programs) stored thereon for programming a computer to perform the processes discussed herein. The machine-readable medium may include storage devices such as those discussed with reference to the accompanying drawings.

[0090] Additionally, such computer-readable media may be downloaded as a computer program product, where the program may be transmitted from a remote computer (e.g., a server) to a requesting computer (e.g., a client) via a data signal provided in a carrier wave or other propagation medium, via a communication link (e.g., a bus, a modem, or a network connection).

[0091] References in this specification to "one embodiment" or "an embodiment" mean that a particular feature, structure, and / or characteristic described in conjunction with the embodiment may be included in at least one implementation. The phrase "in one embodiment" appearing in various places in this specification may or may not all refer to the same embodiment.

[0092] Furthermore, in the specification and claims, the terms "coupled" and "connected," and their derivatives, may be used. In some embodiments, "connected" may be used to indicate that two or more elements are in direct physical or electrical contact with each other. "Coupled" may mean that two or more elements are in direct physical or electrical contact. However, "coupled" may also mean that two or more elements may not be in direct contact with each other, but may still cooperate or interact with each other.

[0093] Thus, although various embodiments have been described in language specific to structural features and / or methodological acts, it will be understood that the subject matter claimed may not be limited to the specific features or acts described. Instead, the specific features and acts are disclosed as sample forms of implementing the subject matter claimed.

Claims

1. A device, comprising: a sending agent coupled to the processor core; a receiving agent coupled to the hardware accelerator device; as well as a memory for storing data corresponding to a request from the processor core, The sending agent and the receiving agent are used to maintain a communication channel in response to the request to facilitate communication between the processor core and the hardware accelerator device.

2. The device according to claim 1, wherein: The memory is for storing a circular buffer to be shared by the sending agent and the receiving agent.

3. The device according to any one of claims 1 to 2, wherein: The ring buffer is used to provide the communication channel.

4. The device according to any one of claims 1 to 3, wherein: One of the sending agent and the receiving agent is configured to generate the communication channel.

5. The device according to any one of claims 1 to 4, wherein: The memory includes a last level cache (LLC).

6. The device according to any one of claims 1 to 5, wherein: The receiving agent is configured to buffer incoming requests from the processor core in a buffer.

7. The device according to any one of claims 1 to 6, wherein: The buffer is for access via a memory mapped input / output (MMIO) load operation or an MMIO store operation.

8. The device according to any one of claims 1 to 7, wherein: The request corresponds to a job to be performed by the hardware accelerator device.

9. The device according to any one of claims 1 to 8, wherein: A job descriptor corresponding to a job is adapted to be transmitted via the communication channel.

10. The device according to any one of claims 1 to 9, wherein: The job descriptor is configured to be transferred to the hardware accelerator device via a direct memory access (DMA) operation.

11. The device according to any one of claims 1 to 10, wherein: The receiving agent is used to utilize the occupancy data to adjust the quality of service (QoS) for different processes.

12. The device according to any one of claims 1 to 11, wherein: The occupancy data is stored in a table that maps each process address space identifier (PASID) to a corresponding queue entry count.

13. The device according to any one of claims 1 to 12, wherein: Completion of the request is signaled via a completion bitmap.

14. The device according to any one of claims 1 to 13, wherein: The completion bitmap is configured to be stored in the memory or register.

15. The device according to any one of claims 1 to 14, wherein: The completion bitmap is in the consistency domain.

16. One or more non-transitory computer-readable media comprising one or more instructions that, when executed on a processor, configure the processor to perform one or more operations to: causing a sending agent coupled to a processor core, and a receiving agent coupled to a hardware accelerator device to maintain a communication channel to facilitate communication between the processor core and the hardware accelerator device in response to a request from the processor core; and A memory is caused to store data corresponding to the request from the processor core.

17. The one or more computer-readable media of claim 16, further comprising one or more instructions that, when executed on the at least one processor, configure the at least one processor to perform one or more operations to cause the memory to store a circular buffer to be shared by the sending agent and the receiving agent.

18. One or more computer-readable media as described in any one of claims 16 to 17, further comprising one or more instructions that, when executed on the at least one processor, configure the at least one processor to perform one or more operations to cause the ring buffer to provide the communication channel.

19. One or more computer-readable media as described in any one of claims 16 to 18, further comprising one or more instructions that, when executed on the at least one processor, configure the at least one processor to perform one or more operations to cause one of the sending agent and the receiving agent to generate the communication channel.

20. One or more computer-readable media as claimed in any one of claims 16 to 19, wherein: The memory includes a last level cache (LLC).

21. One or more computer-readable media as described in any one of claims 16 to 20, further comprising one or more instructions that, when executed on the at least one processor, configure the at least one processor to perform one or more operations to cause the receiving agent to buffer incoming requests from the processor core in a buffer.

22. One or more computer-readable media as described in any one of claims 16 to 21, further comprising one or more instructions that, when executed on the at least one processor, configure the at least one processor to perform one or more operations to cause the buffer to be accessed via a memory mapped input / output (MMIO) load operation or an MMIO store operation.

23. One or more computer readable media as claimed in any one of claims 16 to 22, wherein: The request corresponds to a job to be performed by the hardware accelerator device.

24. One or more computer-readable media as described in any one of claims 16 to 23, further comprising one or more instructions that, when executed on the at least one processor, configure the at least one processor to perform one or more operations to enable the receiving agent to utilize the occupancy data to adjust the quality of service (QoS) for different processes.

25. One or more computer-readable media as described in any one of claims 16 to 24, further comprising one or more instructions that, when executed on the at least one processor, configure the at least one processor to perform one or more operations so that completion of the request is signaled via a completion bitmap.

26. A method comprising: a sending agent coupled to a processor core, and a receiving agent coupled to a hardware accelerator device to maintain a communication channel in response to a request from the processor core to facilitate communication between the processor core and the hardware accelerator device; as well as Data corresponding to the request from the processor core is stored in a memory.

27. The method of claim 26, further comprising: The memory is caused to store a circular buffer to be shared by the sending agent and the receiving agent.

28. The method of any one of claims 26 to 27, further comprising: The ring buffer is caused to provide the communication channel.

29. The method of any one of claims 26 to 28, further comprising: One of the sending agent and the receiving agent is caused to generate the communication channel.

30. The method of any one of claims 26 to 29, wherein: The memory includes a last level cache (LLC).

Citation Information

Cited By

  • Scalable access control checking for cross-address-space data movement

    US12455701B2

  • Flexible provisioning of coherent memory address decoders in hardware

    US12487762B2

  • Lane based normalized historical error counter view for faulty lane isolation and disambiguation of transient versus persistent errors

    US12541416B2

  • Scalable address decoding scheme for CXL Type-2 devices with programmable interleave granularity

    US12717744B2