Accelerator structure
Through the combination of Intel Accelerator Link (IAL) protocol and PCIe protocol, the problem of low accelerator memory access efficiency in traditional systems is solved, and efficient accelerator memory access and low-power memory management are achieved.
Patent Information
- Application Number
- CN202210127989.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2017-09-29
- Filing Date
- 2018-08-28
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2038-08-28
AI Technical Summary
In traditional computing systems, the cache coherence mechanism between the accelerator and the host device causes the accelerator to access its local memory inefficiently, limiting the bandwidth and deployment options of the accelerator.
Adopts the Intel Accelerator Link (IAL) protocol, extends the R-Link protocol, supports the PCIe protocol, provides a coherent accelerator structure, allows the accelerator to directly access the host memory address space, and optimizes cache coherence through dynamic multiplexing and bias operations performance and reduce the cost of using PCIe links.
It improves the memory access efficiency and bandwidth of the accelerator, reduces the ecosystem entry burden of the PCIe link, supports more efficient memory models and platform portability, and reduces power consumption.
Smart Images

Figure CN114461548B_ABST
Abstract
Description
[0001] This application is a divisional application of the patent application with the same name with application number 201810988366.2 filed on August 28, 2018. Technical Field
[0002] The present disclosure relates generally to the field of interconnect devices and, more particularly, but not exclusively, to systems and methods for coherent memory devices over Peripheral Component Interconnect Express (PCIe). Background Art
[0003] A computing system includes various components for managing the demand for processor resources. For example, a developer may include a hardware accelerator (or "accelerator") operably coupled to a central processing unit (CPU). Typically, an accelerator is an autonomous element configured to perform functions delegated to it by the CPU. An accelerator may be configured for a specific function and / or may be programmable. For example, an accelerator may be configured to perform specific calculations, graphics functions, etc. When the accelerator performs a specified function, the CPU is free to use resources for other needs. In traditional systems, an operating system (OS) can manage the physical memory available within a computing system (e.g., "system memory"); however, the OS does not manage or allocate memory local to the accelerator. As a result, memory protection mechanisms such as cache coherence introduce inefficiencies into accelerator-based configurations. For example, traditional cache coherence mechanisms limit the ability of an accelerator to access its connected local memory at very high bandwidth and / or limit the deployment options of the accelerator. BRIEF DESCRIPTION OF THE DRAWINGS
[0004] The present invention will be best understood from the following detailed description when read in conjunction with the accompanying drawings. It should be emphasized that, in accordance with standard practice in the industry, various features are not necessarily drawn to scale and are for illustration purposes only. Where a scale is shown, either explicitly or implicitly, it is provided only as an illustrative example. In other embodiments, the size of various features may be arbitrarily increased or decreased for clarity.
[0005] Figure 1 An example operating environment is shown that can be representative of various embodiments according to one or more examples of the present specification.
[0006] Figure 2a An example of a fully coherent operating environment according to one or more examples of the present specification is shown.
[0007] Figure 2b An example of a non-coherent operating environment according to one or more examples of the present specification is shown.
[0008] Figure 2cAn example of a coherent engine without a biased operating environment is shown according to one or more examples of the present specification.
[0009] Figure 3 An example of an operating environment that can be representative of various embodiments according to one or more examples of the present specification is shown.
[0010] Figure 4 Another example operating environment that can represent various embodiments according to one or more examples of the present specification is shown.
[0011] Figure 5a and 5b Other example operating environments that can represent various embodiments according to one or more examples of the present specification are shown.
[0012] Figure 6 An embodiment of a logic flow according to one or more examples of the present specification is shown.
[0013] Figure 7 is a block diagram illustrating a structure according to one or more examples of the present specification.
[0014] Figure 8 is a flow chart illustrating a method according to one or more examples of the present specification.
[0015] Fig. 9 is operated via PCIe according to one or more examples of the present specification Block diagram of the Accelerator Link Memory (IAL.mem) read.
[0016] Fig.10 is a block diagram of an IAL.mem write over PCIe operation according to one or more examples of the present specification.
[0017] Fig.11 is a block diagram of IAL.mem data completion via PCIe operations according to one or more examples of the present specification.
[0018] Fig.12 An embodiment of a structure consisting of point-to-point links interconnecting a set of components according to one or more examples of the present specification is shown.
[0019] Fig.13 An embodiment of a layered protocol stack according to one or more embodiments of the present specification is shown.
[0020] Fig.14 An embodiment of a PCIe transaction descriptor according to one or more examples of the present specification is shown.
[0021] Fig.15An embodiment of a PCIe serial point-to-point architecture according to one or more examples of the present specification is shown. DETAILED DESCRIPTION
[0022] This manual The Accelerator Link (IAL) is an extension of the Rosetta Link (R-Link) multi-chip package (MCP) interconnect link. IAL extends the R-Link protocol to enable support for accelerators and input / output (IO) devices that may not be adequately supported by the baseline R-Link or Peripheral Component Interconnect Express (PCIe) protocols.
[0023] The following disclosure provides many different embodiments or examples for realizing the different features of the present disclosure. The specific examples of components and arrangements are described below to simplify the present disclosure. Of course, these are merely examples and are not restrictive. In addition, the present disclosure may repeat reference numbers and / or letters in various examples. This repetition is for the purpose of simplicity and clarity, and does not itself constrain the relationship between the various embodiments and / or configurations discussed. Different embodiments may have different advantages, and any embodiment does not necessarily require a specific advantage.
[0024] In the following description, many specific details are set forth, such as specific types of processors and system configurations, specific hardware structures, specific architecture and microarchitecture details, specific register configurations, specific instruction types, specific system components, specific measurements / heights, specific processor pipeline stages and examples of operations, etc., in order to provide a thorough understanding of the present invention. However, it will be apparent to those skilled in the art that these specific details need not be employed to implement the present invention.
[0025] In other instances, well-known components or methods, such as specific and alternative processor architectures, specific logic circuits / code for described algorithms, specific firmware code, specific interconnect operations, specific logic configurations, specific manufacturing techniques and materials, specific compiler implementations, specific expressions of algorithms in code, specific power-off and gating techniques / logic, and other specific operating details of computer systems have not been described in detail in order to avoid unnecessarily obscuring the present invention.
[0026] Although the following embodiments may be described with reference to energy conservation and energy efficiency in a particular integrated circuit, such as in a computing platform or microprocessor, other embodiments are also applicable to other types of integrated circuits and logic devices. Similar techniques and teachings of the embodiments described herein can be applied to other types of circuits or semiconductor devices that can also benefit from better energy efficiency and energy conservation. For example, the disclosed embodiments are not limited to desktop computer systems or Ultrabooks. TM, and can also be used in other devices such as handheld devices, tablet computers, other thin notebooks, system-on-chip (SOC) devices, and embedded applications.
[0027] Some examples of handheld devices include cellular phones, Internet protocol devices, digital cameras, personal digital assistants (PDAs), and handheld personal computers (PCs). Embedded applications typically include microcontrollers, digital signal processors (DSPs), systems on chips (SoCs), network personal computers (NetPCs), set-top boxes, network hubs, wide area network (WAN) switches, or any other system that can perform the functions and operations taught below. In addition, the apparatus, methods, and systems described herein are not limited to physical computing devices, but may also involve software optimization for energy conservation and efficiency. As will become apparent in the following description, embodiments of the methods, apparatus, and systems described herein (whether with reference to hardware, firmware, software, or a combination thereof) are critical to a "green technology" future that is balanced with performance considerations.
[0028] Various embodiments may generally relate to techniques for providing cache coherence between multiple components within a processing system. In some embodiments, the multiple components may include a processor, such as a central processing unit (CPU), and a logic device communicatively coupled to the processor. In various embodiments, the logic device may include a locally attached memory. In some embodiments, the multiple components may include a processor communicatively coupled to an accelerator having a locally attached memory (e.g., a logic device memory).
[0029] In some embodiments, the processing system may operate a coherent bias process that is configured to provide multiple cache coherence processes. In some embodiments, the multiple cache coherence processes may include a device bias process and a host bias process (collectively referred to as a "bias protocol flow"). In some embodiments, the host bias process may route requests to a locally attached memory of a logical device, including requests from a logical device, through a coherence component of a processor. In some embodiments, the device bias process may route a logical device request for a logical device memory directly to the logical device memory, for example, without consulting a coherence component of a processor. In various embodiments, the cache coherence process may switch between a device bias process and a host bias process based on a bias indicator determined using application software, hardware hints, combinations thereof, and the like. The embodiments are not limited to this context.
[0030] The IAL described in this specification uses an optimized accelerator protocol (OAP), which is a further extension of the R-Link MCP interconnect protocol. In one example, IAL can be used to provide an interconnect structure to an accelerator device (in some examples, the accelerator device can be a heavy accelerator that performs, for example, graphics processing, intensive computing, SmartNIC services, or similar processing). The accelerator can have its own attached accelerator memory, and an interconnect structure such as IAL or a PCIe-based structure in some embodiments can be used to attach the processor to the accelerator. The interconnect structure can be a coherent accelerator structure, in which case the accelerator memory can be mapped to the memory address space of the host device. The coherent accelerator structure can maintain consistency within the accelerator and consistency between the accelerator and the host device. This can be used to implement the most advanced memory and implement consistency support for these types of accelerators.
[0031] Advantageously, a coherent accelerator structure according to the present specification can provide optimizations that improve efficiency and throughput. For example, an accelerator can have a certain number of memory banks, where a corresponding n last level caches (LLCs) are each controlled by an LLC controller. The structure can provide different types of interconnects to connect the accelerator and its caches to memory, and to connect the structure to a host device.
[0032] As an illustration, throughout this specification, buses or interconnects connecting devices of the same nature are referred to as "horizontal" interconnects, while interconnects or buses connecting different devices upstream and downstream may be referred to as "vertical" interconnects. The terms "horizontal" and "vertical" are used herein merely for convenience and are not meant to imply any necessary physical arrangement of the interconnects or buses, or to require that they must be physically orthogonal to one another on the die.
[0033] For example, an accelerator may include 8 memory banks with corresponding 8 LLCs, which may be level 3 (L3) caches, each controlled by an LLC controller. The coherent accelerator structure may be divided into multiple independent "slices". Each slice serves a memory bank and its corresponding LLC, and operates substantially independently of other slices. In an example, each slice may utilize biased operations provided by the IAL and provide parallel paths to the memory bank. Memory operations involving a host device may be routed through a structural coherent engine (FCE) that provides consistency with the host device. However, the LLC of any single slice may also have a parallel bypass path that directly writes to the memory that connects the LLC directly to the memory bank, bypassing the FCE. For example, this may be achieved by providing bias logic (e.g., host bias or accelerator bias) in the LLC controller itself. The LLC controller may be physically separated from the FCE and may be upstream of the FCE in a vertical orientation, enabling accelerator biased memory operations to bypass the FCE and write directly to the memory bank.
[0034] Embodiments of the present specification can also achieve significant power savings by providing a power manager that selectively shuts down portions of the coherent structure when not in use. For example, the accelerator can be a very large bandwidth accelerator that can perform many operations per second. When the accelerator is performing its acceleration function, it is making heavy use of the structure and requires extremely high bandwidth so that the calculated values can be flushed to the memory in a timely manner after calculation. However, once the calculation is completed, the host device may not be ready to consume the data. In this case, portions of the interconnect, such as the vertical bus from the FCE to the LLC controller, and the horizontal bus between the LLC controller and the LLC itself, can be powered off. These can remain powered off until the accelerator receives new data to operate on.
[0035] The following table illustrates several categories of accelerators. Note that the baseline R-Link may only support the first two categories of accelerators, while IAL can support all five categories of accelerators.
[0036]
[0037] Note that embodiments of these accelerators may require some degree of cache coherence to support usage models other than producer-consumer. Thus, IAL is a coherent accelerator link.
[0038] IAL uses a combination of three protocols dynamically multiplexed onto a common link to enable the accelerator model disclosed above. These protocols include:
[0039] · System-on-Chip Fabric (IOSF) - A reformatted PCIe-based interconnect that provides a non-coherent in-order semantics protocol. The IOSF may include an on-chip implementation of all or part of the PCIe standard. The IOSF packages PCIe traffic so that it can be sent to a companion chip, such as a system-on-chip (SoC) or multi-chip module (MCM). The IOSF supports device discovery, device configuration, error reporting, interrupts, direct memory access (DMA) style data transfers, and various services provided as part of the PCIe standard.
[0040] • In-die Interconnect (IDI) - enables devices to issue coherent read and write requests to the processor.
[0041] Scalable Memory Interconnect (SMI) - enables the processor to access memory attached to the accelerator.
[0042] These three protocols can be used in different combinations (e.g., IOSF only, IOSF plus IDI, IOSF plus IDI plus SMI, IOSF plus SMI) to support the various models described in the table above.
[0043] As a baseline, IAL provides a single link or bus definition that can cover all five accelerator models through a combination of the aforementioned protocols. Note that producer-consumer accelerators are essentially PCIe accelerators. They only require the IOSF protocol, which is already a reformatted version of PCIe. IOSF supports some Accelerator Interface Architecture (AiA) operations, such as support for the enqueue (ENQ) instruction, which industry standard PCIe devices may not support. Therefore, IOSF provides added value over PCIe for this type of accelerator. Producer-consumer plus accelerators are accelerators that can use only the IDI layer and IOSF layer of IAL.
[0044] In some embodiments, software assisted device memory and autonomous device memory may require the SMI protocol over the IAL, including the inclusion of special operation codes (opcodes) over the SMI and special controller support for flows associated with those opcodes in the processor. These additions support the consistency deviation model of the IAL. Usages may use all of the IOSF, IDI, and SMI.
[0045] The giant cache usage also uses IOSF, IDI, and SMI, but new qualifiers may also be added to the IDI and SMI protocols that are specifically designed for giant cache accelerators (i.e., not used in the device memory model discussed above). The giant cache may add new special controller support in the processor that is not required for any other usage.
[0046] IAL refers to these three protocols as IAL.IO, IAL.cache, and IAL.mem. The combination of these three protocols provides the desired performance benefits for the five accelerator models.
[0047] To achieve these benefits, IAL can use the R-Link (for MCP) or Flexbus (for discrete) physical layer to allow dynamic multiplexing of IO, cache and mem protocols.
[0048] However, some form factors do not natively support the R-Link or Flexbus physical layers. In particular, Class 3 and Class 4 device memory accelerators may not support R-Link or Flexbus. Existing examples of these may use standard PCIe, which restricts the device to a proprietary memory model, rather than providing coherent memory that can be mapped into the write-back memory address space of the host device. This model is limited because the memory attached to the device is therefore not directly addressable by software. This can result in suboptimal data marshaling between host and device memory over bandwidth-constrained PCIe links.
[0049] Thus, embodiments of the present specification provide consistency semantics that follow the same defined deviation model-based definitions defined by IAL, which retains the benefits of consistency without incurring the traditional overhead. All of this can be provided over existing PCIe physical links.
[0050] Thus, some of the benefits of IAL can be achieved at a physical layer that does not provide the dynamic multiplexing between IO, cache, and mem protocols provided by R-Link and Flexbus. Advantageously, enabling the IAL protocol over PCIe for certain classes of devices reduces the burden of entry for the ecosystem of devices that use physical PCIe links. This enables the use of existing PCIe infrastructure, including the use of off-the-shelf components such as switches, root ports, and endpoints. This also allows for easier cross-platform use of devices with attached memory using either traditional dedicated memory models or coherent system addressable memory models suitable for the installation facility.
[0051] To support class 3 and class 4 devices (software assisted memory and autonomous device memory) as described above, the components of IAL can be mapped as follows:
[0052] IOSF or IAL.io can use standard PCIe. This can be used for device discovery, enumeration, configuration, error reporting, interrupts, and DMA-style data transfers.
[0053] SMI or IAL.mem can use SMI tunneling through PCIe. The following describes the details of SMI tunneling through PCIe, including the following Fig. 9, the tunnels described in 10 and 11.
[0054] In some embodiments of the present specification, IDI or IAL.cache are not supported. IDI enables a device to issue coherent read or write requests to host memory. Although IAL.cache may not be supported, the methods disclosed herein can be used to enable deviation-based coherency for device-attached memory.
[0055] To achieve this result, the accelerator device can use one of its standard PCIe memory base address register (BAR) regions for the size of its attached memory. To do this, the device can implement a designated vendor-specific extension capability (DVSEC), similar to the standard IAL, to point to the BAR region that should be mapped into the coherent address space. In addition, the DVSEC can declare additional information such as memory type, latency, and other attributes that help the basic input / output system (BIOS) map this memory into the system address decoder in the coherent region. The BIOS can then program the memory base address and limit the host physical address in the device.
[0056] This allows the host to read device-attached memory using standard PCIe memory read (MRd) opcodes.
[0057] However, for writes, non-posted semantics may be required, since access to metadata may be required upon completion. To obtain NP MWr on PCIe, the following reserved encoding may be used:
[0058] Fmt[2:0]-011b
[0059] Type [4:0] -11011b
[0060] Using the novel Non-Posted Memory Write (NP MWr) over PCIe has the added benefit of enabling the AiA ENQ instruction to efficiently submit work to the device.
[0061] To achieve the best quality of service, embodiments of the present specification may implement three different virtual channels (VC0, VC1 and VC2) to separate different traffic types, as follows:
[0062] VC0 → all memory-mapped input / output (MMIO) and configuration (CFG) traffic, both upstream and downstream
[0063] VC1 → IAL.mem write (from host to device)
[0064] VC2 → IAL.mem read (from host to device)
[0065] Note that because IAL.cache or IDI are not supported, embodiments of the present description may not allow the accelerator device to issue coherent reads or writes to the host memory.
[0066] Embodiments of the present specification may also have the ability to flush cache lines from the host (required for host to device bias flipping). This can be done at cache line granularity using non-allocate zero-length writes from devices on PCIe. Non-allocate semantics are described using transactions and transaction hints on transaction layer packets (TLPs).
[0067] TH=1,PH=01
[0068] This allows the host to invalidate a given line. The device can issue a read after the page bias flip to ensure that all rows are refreshed. The device can also implement a content addressable memory (CAM) to ensure that no new requests for the line are received from the host while the flip is in progress.
[0069] Systems and methods for coherent memory devices via PCIe will now be described with more particular reference to the accompanying drawings. It should be noted that certain reference numerals may be repeated throughout the drawings to indicate that a particular device or block is completely or substantially consistent throughout the drawings. However, this is not meant to imply any specific relationship between the various disclosed embodiments. In some examples, a class of elements may be referenced by a specific reference numeral ("widget 10"), while individual species or examples of the class may be referred to by hyphenated numbers ("first specific widget 10-1" and "second specific widget 10-2").
[0070] Figure 1 An example operating environment 100 is shown that can be representative of various embodiments according to one or more examples of the present specification. Figure 1 The operating environment 100 depicted in FIG. 1 may include a device 105 having a processor 110, such as a central processing unit (CPU). The processor 110 may include any type of computing element, such as, but not limited to, a microprocessor, a microcontroller, a complex instruction set computing (CISC) microprocessor, a reduced instruction set computing (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, a virtual processor, such as a virtual central processing unit (VCPU), or any other type of processor or processing circuit. In some embodiments, the processor 110 may be a processor available from Intel Corporation in Santa Clara, California. The company obtained One or more processors in a processor family. Although Figure 1Only one processor 110 is depicted in the figure, but the device may include multiple processors 110. The processor 110 may include a processing element 112, such as a processing core. In some embodiments, the processor 110 may include a multi-core processor with multiple processing cores. In various embodiments, the processor 110 may include a processor memory 114, which may include, for example, a processor cache or a local cache memory to efficiently access data processed by the processor 110. In some embodiments, the processor memory 114 may include a random access memory (RAM); however, the processor memory 114 may be implemented using other memory types, such as dynamic RAM (DRAM), synchronous DRAM (SDRAM), combinations thereof, etc.
[0071] like Figure 1 As shown, processor 110 may be communicatively coupled to logic device 120 via link 115. In various embodiments, logic device 120 may include a hardware device. In various embodiments, logic device 120 may include an accelerator. In some embodiments, logic device 120 may include a hardware accelerator. In various embodiments, logic device 120 may include an accelerator implemented in hardware, software, or any combination thereof.
[0072] Although an accelerator may be used as an example logic device 120 in this specific embodiment, the embodiments are not limited thereto, as the logic device 120 may include any type of device, processor (e.g., a graphics processing unit (GPU)), logic unit, circuit, integrated circuit, application specific integrated circuit (ASIC), field programmable gate array (FPGA), memory unit, computing unit, and / or the like capable of operating in accordance with some embodiments. In embodiments where the logic device 120 includes an accelerator, the logic device 120 may be configured to perform one or more functions of the processor 110. For example, the logic device 120 may include an accelerator operable to perform graphics functions (e.g., a GPU or graphics accelerator), floating point operations, fast Fourier transform (FFT) operations, and the like. In some embodiments, the logic device 120 may include an accelerator that is configured to operate using various hardware components, standards, protocols, and the like. Non-limiting examples of types of accelerators and / or accelerator technologies that can be used by the logic device may include OpenCAPI. TM , CCIX, GenZ, NVLink TM , Accelerator Interface Architecture (AiA), Cache Coherent Agent (CCA), Global Map and Coherent Device Memory (GCM), Graphics Media Accelerator (GMA) for directional input / output (IO) Virtualization technology (eg, VT-d, VT-x, etc.), shared virtual memory (SVM), etc. The embodiments are not limited in this context.
[0073] Logic device 120 may include a processing element 122, such as a processing core. In some embodiments, logic device 120 may include multiple processing elements 122. Logic device 120 may include logic device memory 124, such as a locally attached memory configured for logic device 120. In some embodiments, logic device memory 124 may include local memory, cache memory, etc. In various embodiments, logic device memory 124 may include random access memory (RAM); however, logic device memory 124 may be implemented using other memory types, such as dynamic RAM (DRAM), synchronous DRAM (SDRAM), combinations thereof, etc. In some embodiments, at least a portion of logic device memory 124 may be visible or accessible to processor 110. In some embodiments, at least a portion of logic device memory 124 may be visible or accessible to processor 110 as system memory (e.g., as an accessible portion of system memory 130).
[0074] In various embodiments, the processor 110 may execute the driver 118. In some embodiments, the driver 118 may be used to control various functional aspects of the logic device 120 and / or manage communications with one or more applications that use the logic device 120 and / or computational results generated by the logic device 120. In various embodiments, the logic device 120 may include and / or have access to bias information 126. In some embodiments, the bias information 126 may include information associated with a coherent biasing process. For example, the bias information 126 may include information indicating which cache coherence process may be effective for the logic device 120 and / or a particular process, application, thread, memory operation, etc. In some embodiments, the bias information 126 may be read, written, or otherwise managed by the driver 118.
[0075] In some embodiments, link 115 may include a bus component, such as a system bus. In various embodiments, link 115 may include a communication link (e.g., a multi-protocol link) operable to support multiple communication protocols. The supported communication protocols may include standard load / store IO protocols for component communication, including serial link protocols, device cache protocols, memory protocols, memory semantic protocols, directory bit support protocols, networking protocols, consistency protocols, accelerator protocols, data storage protocols, point-to-point protocols, structure-based protocols, on-package (or on-chip) protocols, structure-based on-package protocols, and / or the like. Non-limiting examples of supported communication protocols may include a peripheral component interconnect (PCI) protocol, a peripheral component interconnect express (PCIe or PCI-E) protocol, a universal serial bus (USB) protocol, a serial peripheral interface (SPI) protocol, a serial AT attachment (SATA) protocol, QuickPath Interconnect (QPI) protocol, UltraPath Interconnect (UPI) protocol, Optimized Accelerator Protocol (OAP), Accelerator Link (IAL), Intra-Device Interconnect (IDI) protocol (or IAL.cache), On-chip extensible fabric (IOSF) protocol (or IAL.io), scalable memory interconnect (SMI) protocol (or IAL.mem), SMI third generation (SMI3), and / or similar protocols. In some embodiments, link 115 may support intra-device protocols (e.g., IDI) and memory interconnect protocols (e.g., SMI3). In various embodiments, link 115 may support intra-device protocols (e.g., IDI), memory interconnect protocols (e.g., SMI3), and fabric-based protocols (e.g., IOSF).
[0076] In some embodiments, the device 105 may include a system memory 130. In various embodiments, the system memory 130 may include a main system memory for the device 105. The system memory 130 may store data and sequences of instructions executed by the processor 110 or any other device or component of the device 105. In some embodiments, the system memory 130 may be a RAM; however, the system memory 130 may be implemented using other memory types, such as dynamic DRAM, SDRAM, combinations thereof, etc. In various embodiments, the system memory 130 may store software applications 140 (e.g., "host software") that are executable by the processor 110. In some embodiments, the software application 140 may use or otherwise be associated with the logic device 120. For example, the software application 140 may be configured to use computational results generated by the logic device 120.
[0077] The apparatus may include coherent logic 150 to provide a cache coherence process. In various embodiments, the coherent logic 150 may be implemented in hardware, software, or a combination thereof. In some embodiments, at least a portion of the coherent logic 150 may be disposed in the processor 110, partially disposed in the processor 110, or otherwise associated with the processor 110. For example, in some embodiments, the coherent logic 150 for the cache coherence element or process 152 may be disposed within the processor 110. In some embodiments, the processor 110 may include a coherent controller 116 to perform various cache coherence processes, such as the cache coherence process 152. In some embodiments, the cache coherence process 152 may include one or more standard cache coherence techniques, functions, methods, processes, elements (including hardware or software elements), protocols, etc., performed by the processor 110. Typically, the cache coherence process 152 may include a standard protocol for managing a cache of the system so as not to lose data or not to overwrite data before transferring the data from the cache to the target memory. Non-limiting examples of standard protocols performed or supported by cache coherence process 152 may include a snoop-based (or snoop) protocol, a write-invalidate protocol, a write-update protocol, a directory-based protocol, a hardware-based protocol (e.g., a modified exclusive shared invalidate (MESI) protocol), a private memory-based protocol, and / or the like. In some embodiments, cache coherence process 152 may include one or more standard cache coherence protocols for maintaining cache coherence of logical device 120 having attached logical device memory 124. In some embodiments, cache coherence process 150 may be implemented in hardware, software, or a combination thereof.
[0078] In some embodiments, the coherent logic 150 may include coherent bias processes, such as a host bias process or element 154 and a device bias process or element 156. In general, the coherent bias process may operate to maintain cache coherency associated with requests, data flows, and / or other memory operations associated with the logic device memory 122. In some embodiments, at least a portion of the coherent logic, such as the host bias process 154, the device bias process 156, and / or the bias selection component 158 may be disposed external to the processor 110, such as in one or more separate coherent logic 150 units. In some embodiments, the host bias process 154, the device bias process 156, and / or the bias selection component 158 may be implemented in hardware, software, or a combination thereof.
[0079] In some embodiments, the host bias process 154 may include techniques, processes, data flows, data, algorithms, etc., for handling requests to the logical device memory 124 by the cache coherence process 152 of the processor 110, including requests from the logical device 120. In various embodiments, the device bias process 156 may include techniques, processes, data flows, data, algorithms, etc., for allowing the logical device 120 to directly access the logical device memory 124, for example, without using a cache coherence process. In some embodiments, the bias selection process 158 may include techniques, processes, data flows, data, algorithms, etc. for activating the host bias process 154 or the device bias process 156 as an active bias process for requests associated with the logical device memory. In various embodiments, the active bias process may be based on the bias information 126, which may include data, data structures, and / or processes used by the bias selection process to determine the active bias process and / or set the active bias process.
[0080] Figure 2a An example of a fully coherent operating environment 200A is shown. Figure 2a The operating environment 200A depicted in FIG. 2 may include a device 202 having a CPU 210 including a plurality of processing cores 212a-n. Figure 2a As shown, the CPU may include various protocol agents, such as a cache agent 214, a host agent 216, a memory agent 218, and / or similar agents. Typically, the cache agent 214 may operate to initiate transactions into coherent memory and retain copies in its own cache structure. The cache agent 214 may be defined by messages that it may receive and send according to the behavior defined in the cache consistency protocol associated with the CPU. The cache agent 214 may also provide copies of coherent memory contents to other cache agents (e.g., accelerator cache agents 224). The host agent 216 may be responsible for the protocol side of the memory interaction of the CPU 210, including coherent and non-coherent host agent protocols. For example, the host agent 216 may sort memory reads / writes. The host agent 216 may be configured to service coherent transactions, including handshaking with the cache agent when necessary. The host agent 216 may operate to supervise a portion of the coherent memory of the CPU 210, for example, to maintain the consistency of a given address space. The host agent 216 may be responsible for managing conflicts that may arise between different cache agents. For example, the host agent 216 can provide appropriate data and ownership responses based on the flow of a given transaction. The memory agent 218 can operate to manage access to memory. For example, the memory agent 218 can facilitate memory operations (e.g., load / store operations) and functions (e.g., swap and / or the like) of the CPU 210.
[0081] like Figure 2a As shown in , the device 202 may include an accelerator 220 operably coupled to the CPU 210. The accelerator 220 may include an accelerator engine 222 operable to perform functions (e.g., calculations, etc.) offloaded by the CPU 210. The accelerator 220 may include an accelerator cache agent 224 and a memory agent 228.
[0082] The accelerator 220 and the CPU 210 may be configured according to and / or may include various conventional hardware and / or memory access techniques. Figure 2a As shown, all memory accesses, including those initiated by the accelerator 220, must pass through the path 230. The path 230 may include non-coherent links, such as PCIe links. In the configuration of the device 202, the accelerator engine 222 may be able to directly access the accelerator cache agent 224 and the memory agent 228, rather than the cache agent 214, the host agent 216, or the memory agent 218. Similarly, the core 212a-n will not be able to directly access the memory agent 228. Therefore, the memory behind the memory agent 228 will not be part of the system address map seen by the core 212a-n. Because the core 212a-n cannot access the public memory agent, data can only be exchanged through copies. In some implementations, a driver can be used to facilitate copying data back and forth between the memory agents 218 and 228. For example, the driver can include a runtime element that creates a shared memory abstraction that hides all copies from the programmer. In contrast, and as described in detail below, some embodiments may provide a configuration in which when the accelerator engine wishes to access accelerator memory, such as via the accelerator proxy 228, requests from the accelerator engine may be forced to traverse a link between the accelerator and the CPU.
[0083] Figure 2b An example of a non-coherent operating environment 200B is shown. Figure 2b The operating environment 200B depicted in FIG. 2 may include an accelerator 220 having an accelerator host agent 226. The CPU 210 and the accelerator 220 may be operably coupled via a non-coherent path 232 (eg, a UPI path or a CCIX path).
[0084] For the operation of the device 204, the accelerator engine 222 and the core 212a-n can access both the memory agents 228 and 218. The core 212a-n can access the memory 218 without crossing the link 232, and the accelerator agent 222 can access the memory 228 without crossing. The cost of these local accesses from 222 to 228 is the need to build a host agent 226 so that it can track the consistency of all accesses from the core 212a-n to the memory 228. When the device 204 includes multiple CPU 210 devices that are all connected through other instances of the link 232, this requirement leads to complexity and high resource usage. The host agent 226 needs to be able to track the consistency of all cores 212a-n on all instances of the CPU 210. This can become quite expensive in terms of performance, area, and power, especially for large configurations. Specifically, for access from the CPU 210, it adversely affects the performance efficiency of accesses between the accelerator 222 and the memory 228, even if the access from the CPU 210 is expected to be relatively small.
[0085] Figure 2c An example of a coherent engine without a biased operating environment 200C is shown. As shown in FIG2 , the device 206 may include an accelerator 220 operably coupled to the CPU 210 via coherent links 236 and 238. The accelerator 220 may include an accelerator engine 222 that is operable to perform functions (e.g., calculations, etc.) offloaded from the CPU 210. The accelerator 220 may include an accelerator cache agent 224, an accelerator host agent 226, and a memory agent 228.
[0086] In the configuration of the device 206, the accelerator 220 and the CPU 210 may be configured according to and / or include various conventional hardware and / or memory access techniques, such as CCIX, GCM, standard consistency protocols (e.g., symmetric consistency protocols), and / or the like. For example, as shown in FIG. 2, all memory accesses, including accesses initiated by the accelerator 220, must pass through path 230. In this manner, in order to access the accelerator memory (e.g., through the memory agent 228), the accelerator 220 must pass through the CPU 220 (and, therefore, the consistency protocol associated with the CPU). Therefore, the device may not provide the ability to access certain memory, such as accelerator-attached memory associated with the accelerator 220, as part of the system memory (e.g., as part of the system address map), which may allow host software to set operands and access the results of the accelerator 220's calculations without the overhead of, for example, IO direct memory access (DMA) data copies. Such data copies may require driver calls, interrupts, and MMIO accesses, which are inefficient and complex compared to memory accesses. Figure 2c As shown, the inability to access accelerator-attached memory without cache coherence overhead can be detrimental to the execution time of computations offloaded to the accelerator 220. For example, in processes involving a large amount of streaming write memory traffic, cache coherence overhead can halve the effective write bandwidth seen by the accelerator 220.
[0087] The efficiency of operand setup, result access, and accelerator computation plays a role in determining the effectiveness and benefit of offloading CPU 210 work to accelerator 220. If the cost of offloading work is too high, then offloading may not be beneficial or may be limited to very large tasks. Therefore, various developers have created accelerators that attempt to improve the efficiency of using accelerators (such as accelerator 220) with limited effectiveness compared to technologies configured according to some embodiments. For example, some traditional GPUs can operate without mapping accelerator-attached memory as part of the system address, and may or may not use certain virtual memory configurations (e.g., SVM) to access accelerator-attached memory. Therefore, in such a system, the accelerator-attached memory is invisible to the host system software. Instead, the accelerator-attached memory is accessed only through the runtime software layer provided by the GPU device driver. Data copies and page table manipulation systems are used to create the appearance of a system that enables virtual memory (e.g., SVM). Such a system is inefficient, especially compared to some embodiments, because the system requires memory replication, memory pinning, memory replication, and complex software, etc. These requirements result in significant overhead at memory page transition points that are not required in systems configured according to some embodiments. In certain other systems, conventional hardware consistency mechanisms are used for memory operations associated with accelerator-attached memory, which limits the accelerator's ability to access accelerator-attached memory at high bandwidth and / or limits deployment options for a given accelerator (e.g., accelerators attached via on-package or off-package links cannot be supported without significant bandwidth loss).
[0088] Typically, conventional systems may use one of two methods to access accelerator-attached memory: a fully consistent (or fully hardware consistent) method or a private memory model or method. The fully consistent method requires that all memory accesses, including accesses requested by the accelerator to the accelerator-attached memory, must pass through the consistency protocol of the corresponding CPU. In this manner, the accelerator must take a circuitous route to access the accelerator-attached memory because the request must at least be transmitted to the corresponding CPU, through the CPU consistency protocol, and then transmitted to the accelerator-attached memory. Therefore, when the accelerator accesses its own memory, the fully consistent method carries a consistency overhead that may significantly impair the data bandwidth that the accelerator can extract from its own attached memory. The private memory model requires a large amount of resource and time costs, such as memory copying, page pinning requirements, page copy data bandwidth costs, and / or page translation costs (e.g., translation lookaside buffer (TLB) defeats, page table operations, and / or the like). Therefore, some embodiments may provide a coherent biasing process that is configured to provide multiple cache consistency processes that provide better memory utilization and improved performance, etc. for a system including an accelerator-attached memory compared to conventional systems.
[0089] Figure 3 An example of an operating environment 300 is shown that may be representative of various embodiments. Figure 3 The operating environment 300 depicted in FIG. 3 may include an apparatus 305 operable to provide a coherent biasing process according to some embodiments. In some embodiments, the apparatus 305 may include a CPU 310 having a plurality of processing cores 312a-n and various protocol agents, such as a cache agent 314, a host agent 316, a memory agent 318, etc. The CPU 310 may be communicatively coupled to an accelerator 320 using various links 335, 340. The accelerator 320 may include an accelerator engine 312 and a memory agent 318, and may include or access biasing information 338.
[0090] like Figure 3As shown, the accelerator engine 322 can be directly communicatively coupled to the memory agent 328 via a biased coherent bypass 330. In various embodiments, the accelerator 320 can be configured to operate in a device bias process, wherein the biased coherent bypass 330 can allow memory requests of the accelerator engine 322 to directly access the accelerator's accelerator-attached memory (not shown) facilitated via the memory agent 328. In various embodiments, the accelerator 320 can be configured to operate in a host bias process, wherein memory operations associated with the accelerator-attached memory can be processed via the links 335, 340 using the CPU's cache coherence protocol, for example, via the cache agent 314 and the host agent 316. Thus, the accelerator 320 of the device 305 can utilize the coherence protocol of the CPU 310 when appropriate (e.g., when a non-accelerator entity requests the accelerator-attached memory), while allowing the accelerator 320 to directly access the accelerator-attached memory via the biased coherent bypass 330.
[0091] In some embodiments, the coherent bias (e.g., whether a device bias or a host bias is effective) can be stored in bias information 338. In various embodiments, bias information 338 can include and / or can be stored in various data structures, such as a data table (e.g., a "bias table"). In some embodiments, bias information 338 can include a bias indicator having a value indicating an effective bias (e.g., 0=host bias, 1=device bias). In some embodiments, bias information 338 and / or bias indicators can be at various levels of granularity, such as memory regions, page tables, address ranges, etc. For example, bias information 338 can specify that certain memory pages are set for device bias, while other memory pages are set for host bias. In some embodiments, bias information 338 can include a bias table that is configured to operate as a low-cost, scalable snoop filter.
[0092] Figure 4 An example operating environment 400 is shown that can represent various embodiments. According to some embodiments, Figure 4The operating environment 400 depicted in FIG. 4 may include an apparatus 405 operable to provide a coherent bias process. The apparatus 405 may include an accelerator 410 communicatively coupled to a main processor 445 via a link (or multi-protocol link) 489. The accelerator 410 and the main processor 445 may communicate via a link using interconnect structures 415 and 450, respectively, which allows data and messages to be passed between them. In some embodiments, the link 489 may include a multi-protocol link that can be used to support multiple protocols. For example, the link 489 and the interconnect structures 415 and 450 may support various communication protocols, including but not limited to serial link protocols, device cache protocols, memory protocols, memory semantic protocols, directory bit support protocols, networking protocols, consistency protocols, accelerator protocols, data storage protocols, point-to-point protocols, structure-based protocols, on-package (or on-chip) protocols, on-package protocols based on structures, and / or similar protocols. Non-limiting examples of supported communication protocols may include PCI, PCIe, USB, SPI, SATA, QPI, UPI, OAP, IAL, IDI, IOSF, SMI, SMI3, etc. In some embodiments, link 489 and interconnect structures 415 and 450 may support intra-device protocols (e.g., IDI) and memory interconnect protocols (e.g., SMI3). In various embodiments, link 489 and interconnect structures 415 and 450 may support intra-device protocols (e.g., IDI), memory interconnect protocols (e.g., SMI3), and fabric-based protocols (e.g., IOSF).
[0093] In some embodiments, the accelerator 410 may include bus logic 435 having a device TLB 437. In some embodiments, the bus logic 435 may be or may include PCIe logic. In various embodiments, the bus logic 435 may communicate over the interconnect 480 using a fabric-based protocol (e.g., IOSF) and / or a peripheral component interconnect express (PCIe or PCI-E) protocol. In various embodiments, communication over the interconnect 480 may be used for various functions including, but not limited to, discovery, register access (e.g., registers (not shown) of the accelerator 410), configuration, initialization, interrupts, direct memory access, and / or address translation services (ATS).
[0094] The accelerator 410 may include a core 420 having a host memory cache 422 and an accelerator memory cache 424. The core 420 may communicate using an interconnect 481 using, for example, an intra-device protocol (e.g., IDI) for various functions such as coherent requests and memory streaming. In various embodiments, the accelerator 410 may include a coherent logic 425 that includes or accesses bias mode information 427. The coherent logic 425 may communicate using an interconnect 482 using, for example, a memory interconnect protocol (e.g., SMI3). In some embodiments, communication through the interconnect 482 may be used for memory streaming. The accelerator 410 may be operably coupled to an accelerator memory 430 (e.g., as an accelerator-attached memory) that may store bias information 432.
[0095] In various embodiments, host processor 445 may be operably coupled to host memory 440 and may include coherent logic (or coherent and cache logic) 455 with a last level cache (LLC) 457. Coherent logic 455 may communicate using various interconnects, such as interconnects 484 and 485. In some embodiments, interconnects 484 and 485 may include a memory interconnect protocol (e.g., SMI3) and / or an intra-device protocol (e.g., IDI). In some embodiments, LLC 457 may include a combination of at least a portion of host memory 440 and accelerator memory 430.
[0096] Host processor 445 may include bus logic 460 having an input-output memory management unit (IOMMU) 462. In some embodiments, bus logic 460 may be or may include PCIe logic. In various embodiments, bus logic 460 may communicate via interconnects 486 and 488 using a fabric-based protocol (e.g., IOSF) and / or a peripheral component interconnect express (PCIe or PCI-E) protocol. In various embodiments, host processor 445 may include multiple cores 465a-n, each core having a cache 467a-n. In some embodiments, cores 465a-n may include Architecture (IA) core. Each of the cores 465a-n can communicate with the coherent logic 455 via interconnects 487a-n. In some embodiments, the interconnects 487a-n can support an intra-device protocol (e.g., IDI). In various embodiments, the host processor can include a device 470 operable to communicate with the bus logic 460 via interconnect 488. In some embodiments, the device 470 can include an IO device, such as a PCIe IO device.
[0097] In some embodiments, the apparatus 405 is operable to perform a coherent bias process applicable to various configurations, such as a system having an accelerator 410 and a host processor 445 (e.g., a computer processing complex including one or more computer processor chips), wherein the accelerator 410 is communicatively coupled to the host processor 445 via a multi-protocol link 489, and wherein memory is directly attached to the accelerator 410 and the host processor 445 (e.g., accelerator memory 430 and host memory 440, respectively). The coherent bias process provided by the apparatus 405 may provide a number of technical advantages over conventional systems, such as providing the accelerator 410 and "host" software running on the processing cores 465a-n to access the accelerator memory 430. The coherent bias process provided by the apparatus may include a host bias process and a device bias process (collectively, bias protocol streams) and a number of options for modulating and / or selecting the bias protocol stream for a particular memory access.
[0098] In some embodiments, a bias protocol flow may be implemented, at least in part, using a protocol layer (e.g., a "bias protocol layer") on the multi-protocol link 489. In some embodiments, the bias protocol layer may include: an intra-device protocol (e.g., IDI) and / or a memory interconnect protocol (e.g., SMI3). In some embodiments, the bias protocol flow may be enabled by using various information of the bias protocol layer, adding new information to the bias protocol layer, and / or adding support for the protocol. For example, the bias protocol flow may be implemented using existing opcodes for the intra-device protocol (e.g., IDI), adding opcodes to the memory interconnect protocol (e.g., SMI3) standard, and / or adding support for the memory interconnect protocol (e.g., SMI3) on the multi-protocol link 489 (e.g., a conventional multi-protocol link may only include an intra-device protocol (e.g., IDI) and a structure-based protocol (for example, IOSF)).
[0099] In some embodiments, the device 405 may be associated with at least one operating system (OS). The OS may be configured not to use the accelerator memory 430 or not to use certain portions of the accelerator memory 430. Such an OS may include support for a "memory-only NUMA module" (e.g., without a CPU). The device 405 may execute a driver (e.g., including the driver 118) to perform various accelerator memory services. Illustrative and non-limiting accelerator memory services implemented in the driver may include driver discovery and / or acquisition / allocation of the accelerator memory 430, providing an allocation API and mapping pages through an OS page mapping service, providing a process for managing multi-process memory oversubscription and work scheduling, providing an API to allow software applications to set and change the bias mode of a storage area of the accelerator memory 430, and / or returning a page to the driver's free page list and / or returning a page to a de-allocation API of a default bias mode.
[0100] Figure 5a An example of an operating environment 500 that can represent various embodiments is shown. According to some embodiments, Figure 5a The operating environment 500 depicted in FIG. 5 can provide a host bias process flow. Figure 5a As shown, the device 505 may include a CPU 510 communicatively coupled to an accelerator 520 via a link 540. In some embodiments, the link 540 may include a multi-protocol link. The CPU 510 may include a coherent controller 530 and may be communicatively coupled to a host memory 512. In various embodiments, the coherent controller 530 may be used to provide one or more standard cache coherence protocols. In some embodiments, the coherent controller 530 may include various agents and / or be associated with various agents, such as a host agent. In some embodiments, the CPU 510 may include and / or may be communicatively coupled to one or more IO devices. The accelerator 520 may be communicatively coupled to an accelerator memory 522.
[0101] The host bias process flows 550 and 560 may include a set of data flows that funnel all requests to the accelerator memory 522, including requests from the accelerator 520, through the coherent controller 530 in the CPU 510. In this manner, the accelerator 522 takes a circuitous route to access the accelerator memory 522, but allows accesses from both the accelerator 522 and the CPU 510 (including requests from IO devices via the CPU 510) to be kept consistent using the standard cache coherence protocol of the coherent controller 530. In some embodiments, the host bias process flows 550 and 560 may use an intra-device protocol (e.g., IDI). In some embodiments, the host bias process flows 550 and 560 may use standard opcodes of the intra-device protocol (e.g., IDI), for example, to issue requests to the coherent controller 530 over the multi-protocol link 540. In various embodiments, the coherent controller 530 may issue various coherence messages (e.g., snoops) generated by requests from the accelerator 520 to all peer processor chips and internal processor agents on behalf of the accelerator 520. In some embodiments, the various consistency messages may include point-to-point protocol (eg, UPI) consistency messages and / or intra-device protocol (eg, IDI) messages.
[0102] In some embodiments, the coherent controller 530 may conditionally issue a memory access message to an accelerator memory controller (not shown) of the accelerator 520 over the multi-protocol link 540. Such a memory access message may be the same or substantially similar to a memory access message that the coherent controller 530 may send to a CPU memory controller (not shown), and may include a new opcode that allows data to be returned directly to an agent inside the accelerator 520, rather than forcing the data to be returned to the coherent controller and then returned to the accelerator 520 over the multi-protocol link 540 as an intra-device protocol (e.g., IDI) response.
[0103] The host bias process flow 550 may include a flow resulting from a request or memory operation originating from the accelerator for the accelerator memory 522. The host bias process path 560 may include a flow resulting from a request or memory operation originating from the CPU 510 (or an IO device or a software application associated with the CPU 510) for the accelerator memory 522. When the device 505 is active in the host bias mode, the host bias process flows 550 and 560 may be used to access the accelerator memory 522, such as Figure 5aAs shown. In various embodiments, in the host bias mode, all requests from the CPU 510 targeting the accelerator memory 522 can be sent directly to the coherent controller 530. The coherent controller 530 can apply a standard cache coherence protocol and send a standard cache coherence message. In some embodiments, the coherent controller 530 can send a memory interconnect protocol (e.g., SMI3) command over the multi-protocol link 540 for such a request, wherein the memory interconnect protocol (e.g., SMI3) flows through the multi-protocol link 540 to return data.
[0104] Figure 5b Another example of an operating environment 500 that can represent various embodiments is shown. According to some embodiments, Figure 5a The operating environment 500 depicted in FIG. 5 may provide a device bias process flow. As shown in FIG. 5 , when the apparatus 505 is active in the device bias mode, a device bias path 570 may be used to access the accelerator memory 522. For example, the device bias flow or path 570 may allow the accelerator 520 to directly access the accelerator memory 522 without consulting the coherent controller 530. More specifically, the device bias path 570 may allow the accelerator 520 to directly access the accelerator memory 522 without having to send a request over the multi-protocol link 540.
[0105] In device bias mode, according to some embodiments, CPU 510 requests to accelerator memory may be issued the same or substantially similar to that described for host bias mode, but are different in the memory interconnect protocol (e.g., SMI3) portion of path 580. In some embodiments, in device bias mode, CPU 510 requests to attached memory may be completed as if they were issued as "uncached" requests. Typically, data for uncached requests during device bias mode is not cached in the CPU cache hierarchy. In this way, the accelerator 520 is allowed to access data in the accelerator memory 522 during device bias mode without consulting the coherent controller 530 of the CPU 510. In some embodiments, uncached requests may be implemented on an intra-device protocol (e.g., IDI) bus of the CPU 510. In various embodiments, uncached requests may be implemented using a globally observed once-used (GO-UO) protocol on a CPU 510 internal device protocol (e.g., IDI) bus. For example, a response to an uncached request may return a piece of data to CPU 510 and instruct CPU 510 to use the piece of data only once, e.g., to prevent caching of the piece of data and support use of an uncached data stream.
[0106] In some embodiments, the device 505 and / or the CPU 510 may not support GO-UO. In such embodiments, the uncached flow (e.g., path 580) may be implemented using a multi-message response sequence on a memory interconnect protocol (e.g., SMI3) of a multi-protocol link 540 and a CPU 510 internal device protocol (e.g., IDI) bus. For example, when the CPU 510 targets a "device bias" page of an accelerator 520, the accelerator 520 may set one or more states to block future requests from the accelerator 520 for the target memory region (e.g., cache line) and send a "device bias hit" response on a memory interconnect protocol (e.g., SMI3) line of the multi-protocol link 540. In response to the "device bias hit" message, the coherent controller 530 (or its agent) may return data to the requesting processor core, followed by a snoop invalidation message. When the corresponding processor core confirms that the snoop invalidation is completed, the coherent controller 530 (or its agent) can send a "device bias block complete" message to the accelerator 520 on the memory interconnect protocol (e.g., SMI3) line of the multi-protocol link 540. In response to receiving the "device bias block complete" message, the accelerator can clear the corresponding blocking state.
[0107] refer to Figure 4 , the bias mode information 427 may include a bias indicator configured to indicate a valid bias mode (e.g., a device bias mode or a host bias mode). The selection of the valid bias mode may be determined by the bias information 432. In some embodiments, the bias information 432 may include a bias table. In various embodiments, the bias table may include bias information 432 for certain areas of the accelerator memory, such as pages, lines, etc. In some embodiments, the bias table may include a bit (e.g., 1 or 3 bits) for each accelerator memory 430 memory page. In some embodiments, the bias table may be implemented using RAM, such as SRAM at the accelerator 410 and / or a stolen range of the accelerator memory 430, with or without a cache inside the accelerator 410.
[0108] In some embodiments, the bias information 432 may include a bias table entry in a bias table. In various embodiments, the bias table entry associated with each access to the accelerator memory 430 may be accessed prior to the actual access to the accelerator memory 430. In some embodiments, a local request from the accelerator 410 to find a page in its device bias may be forwarded directly to the accelerator memory 430. In various embodiments, a local request from the accelerator 410 to find a page in its host bias may be forwarded to the host processor 445, for example, as an intra-device protocol (e.g., IDI) request over the multi-protocol link 489. In some embodiments, for example, using a memory interconnect protocol (e.g., SMI3), a host processor 445 request to find a page in its device bias may use an uncached stream (e.g., Figure 5b In some embodiments, for example, using a memory interconnect protocol (e.g., SMI3), a host processor 445 requesting a page in its host offset may complete the request as a standard memory read of the accelerator memory (e.g., via Figure 5a Path 560).
[0109] The bias mode of the bias indicator of the bias mode information 427 of the region (e.g., memory page) of the accelerator memory 430 may be changed by a software-based system, a hardware-assisted system, a hardware-based system, or a combination thereof. In some embodiments, the bias indicator may be changed via an application programming interface (API) call (e.g., OpenCL), which in turn may call the accelerator 410 device driver (e.g., driver 118). The accelerator 410 device driver may send a message to the accelerator 410 (or enqueue a command descriptor) to instruct the accelerator 410 to change the bias indicator. In some embodiments, the change of the bias indicator may be accompanied by a cache refresh operation in the host processor 445. In various embodiments, the conversion from the host bias mode to the device bias mode may require a cache refresh operation, but the conversion from the device bias mode to the host bias mode may not require a cache refresh operation. In various embodiments, the software may change the bias mode of one or more memory regions of the accelerator memory 430 via a work request sent to the accelerator 430.
[0110] In some cases, the software may not be able or cannot easily determine when to make a bias conversion API call and identify the storage area that needs a bias conversion. In this case, the accelerator 410 can provide a bias conversion prompt process, wherein the accelerator 410 determines the need for a bias conversion and sends a message indicating the need for a bias conversion to the accelerator driver (e.g., driver 118). In various embodiments, the bias conversion prompt process can be activated in response to a bias table lookup, which triggers the accelerator 410 to access the host bias mode memory area or the host processor 445 to access the device bias mode memory area. In some embodiments, the bias conversion prompt process can signal the need for a bias conversion to the accelerator driver through an interrupt. In various embodiments, the bias table can include a bias state bit for enabling a bias conversion state value. The bias state bit can be used to allow access to a memory area during the process of a bias change (e.g., when a partial cache is refreshed and incremental cache pollution caused by subsequent requests must be suppressed).
[0111] Included herein are one or more logic flows representing exemplary methods for performing novel aspects of the disclosed architecture. Although one or more methods shown herein are shown and described as a series of actions for the purpose of simplifying the description, those skilled in the art will understand and appreciate that these methods are not limited by the order of the actions. Accordingly, some actions may occur in different orders and / or occur simultaneously with other actions shown and described herein. For example, those skilled in the art will understand and appreciate that the method may alternatively be represented as a series of interrelated states or events, such as in a state diagram. In addition, not all actions shown in the method may be required for the novel implementation.
[0112] The logic flow may be implemented in software, firmware, hardware, or any combination thereof. In software and firmware embodiments, the logic flow may be implemented by computer executable instructions stored on a non-transitory computer readable medium or machine readable medium (e.g., optical, magnetic, or semiconductor memory). The embodiments are not limited in this context.
[0113] Figure 6 An embodiment of a logic flow 600 is shown. Logic flow 600 may represent some or all operations performed by one or more embodiments described herein, such as apparatus 105, 305, 405, and 505. In some embodiments, logic flow 600 may represent some or all operations for a coherent bias process according to some embodiments.
[0114] like Figure 6As shown in, at block 602, the logic flow 600 can set the bias mode of the accelerator memory page to the host bias mode. For example, the host software application (e.g., software application 140) can set the bias mode of the accelerator device memory 430 to the host bias mode through a driver and / or API call. The host software application can use an API call (e.g., an OpenCL API) to convert the allocated (or target) page of the accelerator memory 430 storing the operand to the host bias. Since the allocated page is being converted from the device bias mode to the host bias mode, a cache refresh will not be started. The device bias mode can be specified in the bias table of the bias information 432.
[0115] At block 604, the logic flow 600 may push operands and / or data to accelerator memory pages. For example, the accelerator 420 may perform functions for a CPU that require certain operands. The host software application may push operands from a peer CPU core (e.g., core 465a) to an allocated page of the accelerator memory 430. The host processor 445 may generate operand data in the allocated page in the accelerator memory 430 (as well as anywhere in the host memory 440).
[0116] At block 606, the logic flow 600 may convert the accelerator memory page to the device bias mode. For example, the host software application may use an API call to convert the operand memory page of the accelerator memory 430 to the device bias mode. When the device bias conversion is complete, the host software application may submit the work to the accelerator 430. The accelerator 430 may perform the functions associated with the submitted work without the coherence overhead associated with the host.
[0117] At block 608, the logic flow 600 may generate a result using the operand by the accelerator and store the result in the accelerator memory page. For example, the accelerator 420 may use the operand to perform a function (e.g., floating point operations, graphics calculations, FFT operations, and / or similar functions) to generate a result. The result may be stored in the accelerator memory 430. In addition, the software application may use an API call to cause the work descriptor to submit a refresh of the operand page from the host cache. In some embodiments, a cache (or cache line) refresh routine (such as CLFLUSH) on an intra-device protocol (e.g., IDI) protocol may be used to perform a cache refresh. The result generated by the function may be stored in the allocated accelerator memory 430 page.
[0118] At block 610, the logic flow may set the bias mode of the accelerator memory page storing the result to the host bias mode. For example, the host software application may use an API call to convert the operand memory page of the accelerator memory 430 to the host bias mode without causing a consistency process and / or cache flush action. The host CPU 445 may access, cache, and share the result. At block 612, the logic flow 600 may provide the result from the accelerator memory page to the host software. For example, the host software application may access the result directly from the accelerator memory page 430. In some embodiments, the allocated accelerator memory page may be released by the logic flow. For example, the host software application may use a driver and / or API call to release the allocated memory page of the accelerator memory 430.
[0119] Figure 7 is a block diagram illustrating a structure according to one or more examples of the present specification. In this case, a coherent accelerator structure 700 is provided. The coherent accelerator structure 700 is interconnected with an IAL endpoint 728, which communicatively couples the coherent accelerator structure 700 to a host device, such as the host device disclosed in the aforementioned figures.
[0120] A coherent accelerator structure 700 is provided to communicatively couple an accelerator 740 and its attached memory 722 to a host device. The memory 722 includes a plurality of memory controllers 720-1 through 720-n. In one example, eight memory controllers 720 can service eight separate memory banks.
[0121] The fabric controller 736 includes a set of controllers and interconnects to provide a coherent memory fabric 700. In this example, the fabric controller 736 is divided into n separate slices to serve the n banks of memory 722. Each slice can be substantially independent of each other slice. As described above, the fabric controller 736 includes both a "vertical" interconnect 706 and a "horizontal" interconnect 708. Vertical interconnects are generally understood to connect upstream or downstream devices to each other. For example, the last level cache (LLC) 734 is vertically connected to the LLC controller 738, connected to the fabric, connected to the die-to-die interconnect (F2IDI) block that communicatively couples the fabric controller 736 to the accelerator 740. The F2IDI 730 provides a downstream link to the fabric stop 712, and can also provide a bypass interconnect 715. The bypass interconnect 715 connects the LLC controller 738 directly to the fabric to the memory interconnect 716, where the signal is multiplexed to the memory controller 720. In the non-bypass route, requests from F2IDI 730 travel along the horizontal interconnect to the host, then back to fabric stop 712 , then to fabric coherence engine 704 , and down to F2MEM 716 .
[0122] The horizontal bus includes a bus that interconnects the structure stops 712 to each other and connects the LLC controllers to each other.
[0123] In one example, the IAL endpoint 728 can receive packets from a host device including instructions to perform acceleration functions, as well as payloads including snoops for the accelerator to operate. The IAL endpoint 728 passes these to the L2FAB 718, which acts as a host device interconnect for the fabric controller 736. The L2FAB 718 can act as a link controller for the fabric, including providing an IAL interface controller (although in some embodiments, additional IAL control elements may also be provided, and generally, any combination of meta-stops that provide IAL interface control may be referred to as an "IAL interface controller"). The L2FAB 718 controls requests from the accelerator to the host and vice versa. The L2FAB 718 may also be an IDI agent and may need to act as an ordering agent between IDI requests from the accelerator and snoops from the host.
[0124] L2FAB 718 may then operate fabric stop 712-0 to populate the values into memory 722. Fabric stop L2FAB 718 may apply a load balancing algorithm, such as a hash based on a simple address, to tag payload data for a particular destination bank. Once the banks in memory 722 are populated with the appropriate data, accelerator 740 operates fabric controller 736 to fetch the values from memory to LLC 734 via LLC controller 738. Accelerator 740 performs its accelerated computations and then writes the outputs to LLC 734, where they are then passed downstream and written out to memory 722.
[0125] In some examples, the fabric stops 712, F2MEM controller 716, multiplexer 710, and F2IDI 730 may all be standard buses and interconnects that provide interconnections according to well-known principles. The aforementioned interconnects may provide virtual and physical channels, interconnects, buses, switching elements, and flow control mechanisms. They may also provide conflict resolution mechanisms associated with the interaction between requests issued by the accelerator or device agent and requests issued by the host. The fabric may include a physical bus in the horizontal direction, with the server ring switching as the bus passes through each slice. The fabric may also include a specially optimized horizontal interconnect 739 between LLC controllers 738.
[0126] Requests from the F2IDI 730 may be passed through hardware to split and multiplex traffic to the host between the horizontal fabric interconnect and the per-chip optimized path between the LLC controller 738 and the memory 722. This includes multiplexing the traffic and directing it to the IDI block where the traffic traverses the traditional route through the fabric stop 712 and FCE 704, or using IDI padding to direct the traffic to the bypass interconnect 715. The F2IDI 730-1 may also include hardware for managing ingress and egress to and from the horizontal fabric interconnect, such as by providing appropriate signals to the fabric stop 712.
[0127] The IAL interface controller 718 may be a suitable PCIe controller. The IAL interface controller provides an interface between the packetized IAL bus and the fabric interconnect. It is responsible for queuing and providing flow control for IAL messages and directing IAL messages to the appropriate fabric physical and virtual channels. The L2FAB 718 may also provide arbitration between multiple classes of IAL messages. It may further enforce IAL ordering rules.
[0128] At least three control structures within fabric controller 736 provide the novel and advantageous features of fabric controller 736 of the present specification. These include LLC controller 738, FCE 704, and power management module 750.
[0129] Advantageously, LLC controller 738 may also provide bias control functionality according to the IAL bias protocol. Thus, LLC controller 738 may include hardware for performing cache lookups, hardware for checking the IAL basis for cache miss requests, hardware for redirecting requests onto the appropriate interconnect path, and logic for responding to snoops issued by the host processor or by FCE 704.
[0130] When a request is diverted from fabric stop 712 to the host through L2FAB 718 , LLC controller 738 determines where the traffic should be directed through fabric stop 712 , directly to F2MEM 716 through bypass interconnect 715 , or to another memory controller through horizontal bus 739 .
[0131] Note that in some embodiments, LLC controller 738 is a physically separate device or block from FCE 704. A single block may be provided that provides the functionality of both LLC controller 738 and FCE 704. However, by separating the two blocks and providing IAL bias logic in LLC controller 738, a bypass interconnect 715 may be provided to speed up certain memory operations. Advantageously, in some embodiments, separating LLC controller 738 and FCE 704 may also facilitate selective power gating in portions of the fabric to more efficiently use resources.
[0132] The FCE 704 may include hardware for queuing, processing (e.g., issuing snoops to the LLC), and tracking SMI requests from the host. This provides consistency with the host device. The FCE 704 may also include hardware for queuing requests on each chip, optimizing paths to storage banks within the memory 722. Embodiments of the FCE may also include hardware for arbitrating and multiplexing the above-mentioned two request classes onto the CMI memory subsystem interface, and may include hardware or logic for resolving conflicts between the above-mentioned two request classes. Other embodiments of the FCE may provide support for ordering of requests from a direct vertical interconnect and requests from the FCE 704.
[0133] The power management module (PMM) 750 also provides advantages to embodiments of the present specification. For example, consider a situation where each independent slice in the fabric controller 736 vertically supports 1 GB per second of bandwidth. 1 GB per second is provided only as an illustrative example, and a real example of the fabric controller 736 may be much faster or much slower than 1 GB per second.
[0134] LLC 734 may have a higher bandwidth, for example, 10 times the vertical bandwidth of one slice of fabric controller 736. Thus, LLC 734 may have a bandwidth of 10 GB per second, which may be bidirectional, such that the total bandwidth through LLC 734 is 20 GB per second. Thus, with 8 slices of fabric controller 736 supporting 20 GB per second bidirectional, accelerator 740 may see a total bandwidth of 160 GB per second through horizontal bus 739. Thus, running LLC controller 738 and horizontal bus 739 at full speed consumes a large amount of power.
[0135] However, as described above, the vertical bandwidth may be 1 GB per slice, and the total IAL bandwidth may be approximately 10 GB per second. Thus, the bandwidth provided by the horizontal bus 739 is approximately an order of magnitude higher than the bandwidth of the entire fabric controller 736. For example, the horizontal bus 739 may include thousands of physical lines, while the vertical interconnect may include hundreds of physical lines. The horizontal fabric 708 may support the full bandwidth of the IAL, i.e., 10 GB per second in each direction, for a total of 20 GB per second.
[0136] The accelerator 740 can perform calculations and operate on the LLC 734 at a much higher speed than the host device can consume data. Therefore, data can enter the accelerator 740 in bursts and can then be consumed by the host processor as needed. Once the accelerator 740 completes its calculations and fills the LLC 734 with appropriate values, maintaining full bandwidth between the LLC controllers 738 consumes a lot of power, which is basically wasted because the LLC controllers 738 no longer need to communicate with each other when the accelerator 740 is idle. Therefore, when the accelerator 740 is idle, the LLC controller 738 can be powered off, thereby shutting down the horizontal bus 739, while making the appropriate vertical bus active, such as from the structure stop 712 to the FCE 704 to the F2MEM716 to the memory controller 720, and also maintaining the horizontal bus 708. Because the horizontal bus 739 operates at an order of magnitude or higher than the rest of the structure 700, this can save about an order of magnitude of power when the accelerator 740 is idle.
[0137] Note that some embodiments of the coherent accelerator structure 700 may also provide an isochronous controller that can be used to provide isochronous traffic to delay or time-sensitive elements. For example, if the accelerator 740 is a display accelerator, an isochronous display path may be provided to a display generator (DG) so that a connected display receives isochronous data.
[0138] The overall combination of agents and interconnects in the coherent accelerator structure 700 implements the IAL function in a high-performance, deadlock-free, and starvation-free manner. It provides increased efficiency by bypassing the interconnect 715 while saving energy.
[0139] Figure 8 800 is a flow chart of a method 800 according to one or more examples of the present specification. The method 800 shows a method of power saving, for example, Figure 7 The PMM 750 offers:
[0140] Inputs from the host device 804 may arrive at the coherent accelerator fabric, including instructions to perform computations and payloads for computations. In block 808, if the horizontal interconnect between the LLC controllers is powered down, the PMM powers up the interconnect to its full bandwidth.
[0141] The accelerator computes results according to its normal functions in block 812. In computing these results, it may operate the coherent accelerator fabric at its full available bandwidth, including the full bandwidth of the horizontal interconnects between LLC controllers.
[0142] When the results are complete, in block 816 , the accelerator fabric may flush the results to local memory 820 .
[0143] In decision block 824, the PMM determines whether there is new data available from the host that can be operated on. If any new data is available, control returns to block 812 and the accelerator continues to perform its acceleration function. Meanwhile, the host device can consume data directly from local memory 820, which can be mapped to the host memory address space in a coherent manner.
[0144] Returning to block 824, if no new data is available from the host, the PMM reduces power, such as shutting down the LLC controller, thereby disabling the high bandwidth horizontal interconnect between the LLC controllers in block 828. As described above, because the local memory 820 is mapped to the host address memory space, the host can continue to consume data from the local memory 820 at the full IAL bandwidth, which in some embodiments is much lower than the full bandwidth between the LLC controllers.
[0145] In block 832, the controller waits for new input from the host device and when new data is received, the interconnect may be powered for standby.
[0146] Figure 9-11 An example of an IAL.mem tunnel over PCIe is shown. The packet format depicted includes standard PCIe packet fields, except for the fields highlighted in grey. The grey fields are the fields that provide the new tunnel area.
[0147] Fig. 9 is a block diagram of an IAL.mem read via PCIe operation according to one or more examples of the present specification. The new fields include:
[0148] MemOpcode (4 bits) - Memory operation code. Contains information about the memory transaction that needs to be processed. For example, read, write, no operation, etc.
[0149] MetaField and MetaValue (2 bits) - Metadata field and metadata value. Together they specify which metadata field in the memory needs to be modified and to what value. Metadata fields in the memory usually contain information associated with the actual data. For example, QPI stores directory status in metadata.
[0150] TC (2 bits) - Traffic Class. Used to distinguish traffic belonging to different quality of service categories.
[0151] Snp Type (3 bits) - Snoop type. Used to maintain cache coherency between the host and the device.
[0152] R (5 digits) - reserved
[0153] Fig.10is a block diagram of IAL.mem write via PCIe operation according to one or more examples of the present specification. The new fields include:
[0154] MemOpcode (4 bits) - Memory operation code. Contains information about the memory transaction that needs to be processed. For example, read, write, no operation, etc.
[0155] MetaField and MetaValue (2 bits) - Metadata field and metadata value. Together they specify which metadata field in the memory needs to be modified and to what value. Metadata fields in the memory usually contain information associated with the actual data. For example, QPI stores directory status in metadata.
[0156] TC (2 bits) - Traffic Class. Used to distinguish traffic belonging to different quality of service categories.
[0157] Snp Type (3 bits) - Snoop type. Used to maintain cache coherency between the host and the device.
[0158] R (5 digits) - reserved
[0159] Fig.11 is a block diagram of IAL.mem data completed by PCIe operation according to one or more examples of the present specification. The new fields include:
[0160] R (1 bit) - reserved
[0161] Opcode (3 digits) – IAL.io opcode
[0162] MetaField and MetaValue (2 bits) - Metadata field and metadata value. Together they specify which metadata field in the memory needs to be modified and to what value. Metadata fields in the memory usually contain information associated with the actual data. For example, QPI stores directory status in metadata.
[0163] PCLS (4 bits) - Previous cache line state. Used to identify coherency transitions.
[0164] PRE (7 bits) - Performance encoding. Used by performance monitoring counters in the host.
[0165] Fig.12An embodiment of a structure consisting of point-to-point links interconnecting a set of components according to one or more examples of the present specification is shown. System 1200 includes a processor 1205 and a system memory 1210 coupled to a controller hub 1215. Processor 1205 includes any processing element, such as a microprocessor, a main processor, an embedded processor, a coprocessor, or other processor. Processor 1205 is coupled to controller hub 1215 via a front side bus (FSB) 1206. In one embodiment, FSB 1206 is a serial point-to-point interconnect as described below. In another embodiment, link 1206 includes a serial differential interconnect architecture that complies with a differential interconnect standard.
[0166] The system memory 1210 includes any memory device, such as random access memory (RAM), non-volatile (NV) memory, or other memory accessible to devices in the system 1200. The system memory 1210 is coupled to the controller hub 1215 through a memory interface 1216. Examples of a memory interface include a double data rate (DDR) memory interface, a dual channel DDR memory interface, and a dynamic RAM (DRAM) memory interface.
[0167] In one embodiment, controller hub 1215 is a root hub, root complex, or root controller in a Peripheral Component Interconnect Express (PCIe) interconnect hierarchy. Examples of controller hub 1215 include a chipset, a memory controller hub (MCH), a north bridge, an interconnect controller hub (ICH), a south bridge, and a root controller / hub. Typically, the term chipset refers to two physically separate controller hubs, a memory controller hub (MCH) coupled to an interconnect controller hub (ICH).
[0168] Note that current systems typically include an MCH integrated with processor 1205, while controller 1215 communicates with I / O devices in a similar manner as described below. In some embodiments, peer-to-peer routing is optionally supported through root complex 1215.
[0169] Here, controller hub 1215 is coupled to switch / bridge 1220 via serial link 1219. Input / output modules 1217 and 1221 (also referred to as interfaces / ports 1217 and 1221) include / implement a layered protocol stack to provide communication between controller hub 1215 and switch 1220. In one embodiment, multiple devices can be coupled to switch 1220.
[0170] The switch / bridge 1220 routes packets / messages from the device 1225 upstream (i.e., upward toward the root complex) to the controller hub 1215 and downstream (i.e., down the hierarchy away from the root controller) from the processor 1205 or system memory 1210 to the device 1225. In one embodiment, the switch 1220 is referred to as a logical component of multiple virtual PCI-to-PCI bridge devices.
[0171] Device 1225 includes any internal or external device or component to be coupled to an electronic system, such as an I / O device, a network interface controller (NIC), an add-on card, an audio processor, a network processor, a hard drive, a storage device, a CD / DVDROM, a monitor, a printer, a mouse, a keyboard, a router, a portable storage device, a Firewire device, a Universal Serial Bus (USB) device, a scanner, and other input / output devices. Usually in PCIe vernacular, for example, a device is referred to as an endpoint. Although not specifically shown, device 1225 can include a PCIe to PCI / PCI-X bridge, supporting traditional or other versions of PCI devices. Endpoint devices in PCIe are generally classified as traditional, PCIe, or root complex integrated endpoints.
[0172] The accelerator 1230 is also coupled to the controller hub 1215 via a serial link 1232. In one embodiment, the graphics accelerator 1230 is coupled to the MCH, which is coupled to the ICH. The switch 1220, and therefore the I / O device 1225, is then coupled to the ICH. The I / O modules 1231 and 1218 are also used to implement a layered protocol stack to communicate between the graphics accelerator 1230 and the controller hub 1215. Similar to the MCH discussion above, the graphics controller or graphics accelerator 1230 itself can be integrated into the processor 1205.
[0173] In some embodiments, the accelerator 1230 may be an accelerator, for example Figure 7 An accelerator 740 that provides coherent memory for processor 1205.
[0174] To support IAL over PCIe, controller hub 1215 (or another PCIe controller) may include extensions to the PCIe protocol including, as non-limiting examples, a mapping engine 1240, a tunneling engine 1242, a host bias to device bias flipping engine 1244, and a QoS engine 1246.
[0175] The mapping engine 1240 can be configured to provide opcode mapping between PCIe instructions and IAL.io (IOSF) opcodes. IOSF provides a non-coherent in-order semantics protocol and can provide services such as device discovery, device configuration, error reporting, interrupt provisioning, interrupt handling, and DMA-style data transfers by way of non-limiting example. The local PCIe can provide corresponding instructions, so in some cases, the mapping can be a one-to-one mapping.
[0176] The tunnel engine 1242 provides IAL.mem (SMI) tunneling over PCIe. This tunnel enables the host (e.g., processor) to map accelerator memory into the host memory address space and read from and write to the accelerator memory in a coherent manner. SMI is a transactional memory interface that can be used by a coherent engine on the host to tunnel IAL transactions over PCIe in a coherent manner. An example of a modified packet structure for such a tunnel is shown in Figure 9-11 In some cases, a special field for the tunnel may be allocated within one or more DVSEC fields of the PCIe packet.
[0177] The host bias to device bias flip engine 1244 provides the accelerator device with the ability to refresh the host cache line (required for host to device bias flip). This can be done using non-allocating zero-length writes (i.e., writes without byte enables set) at cache line granularity from the accelerator device on PCIe. Non-allocating semantics can be described using transactions and transaction hints on the transaction layer packet (TLP). For example:
[0178] TH=1,PH=01
[0179] This enables the device to invalidate a given cache line, thus enabling it to access its own memory space without losing coherency. The device can issue a read after a page bias flip to ensure that all lines are flushed. The device can also implement a CAM to ensure that no new requests for a line are received from the host while a flip is in progress.
[0180] The QoS engine 1246 may divide the IAL traffic into two or more virtual channels to optimize the interconnect. For example, these may include a first virtual channel (VC0) for MMIO and configuration operations, a second virtual channel (VC1) for host-to-device writes, and a third virtual channel (VC2) for host-to-device reads.
[0181] Fig.13An embodiment of a layered protocol stack according to one or more embodiments of the present specification is shown. The layered protocol stack 1300 includes any form of layered communication stack, such as a Quick Path Interconnect (QPI) stack, a PCie stack, a next generation high performance computing interconnect stack, or other layered stack. Although the following reference Figure 12-15 The discussion is given with respect to the PCIe stack, but the same concepts can be applied to other interconnect stacks. In one embodiment, the protocol stack 1300 is a PCIe protocol stack, including a transaction layer 1305, a link layer 1310, and a physical layer 1320.
[0182] Such as Fig.12 The interfaces 1217, 1218, 1221, 1222, 1226, and 1231 in the example may be represented as a communication protocol stack 1300. The representation as a communication protocol stack may also be referred to as a module or interface that implements / includes the protocol stack.
[0183] PCIe uses packets to transfer information between components. Packets are formed in the transaction layer 1305 and the data link layer 1310 to transfer information from a sending component to a receiving component.
[0184] As the transmitted packets flow through the other layers, they are extended with additional information needed to process the packets at those layers. On the receiving side, the reverse process occurs and the packet is transformed from its physical layer 1320 representation to the data link layer 1310 representation and finally (for transaction layer packets) into a form that can be processed by the transaction layer 1305 of the receiving device.
[0185] Transaction Layer
[0186] In one embodiment, the transaction layer 1305 is used to provide an interface between the processing core of the device and the interconnect architecture, such as the data link layer 1310 and the physical layer 1320. In this regard, the primary responsibility of the transaction layer 1305 is the assembly and disassembly of packets, i.e., transaction layer packets (TLPs). The transaction layer 1305 typically manages credit-based flow control of TLPs. PCIe implements split transactions, i.e., transactions with requests and responses separated by time, allowing the link to carry other traffic while the target device collects data for the response.
[0187] In addition, PCIe utilizes credit-based flow control. In this scheme, a device advertises an initial amount of credit for each receive buffer in the transaction layer 1305. At the external device at the opposite end of the link, e.g. Figure 1 The controller hub 115 in the embodiment of the present invention calculates the number of credits consumed by each TLP. If the transaction does not exceed the credit limit, the transaction can be sent. After receiving the reply, a certain number of credits will be restored. One advantage of the credit scheme is that if the credit limit is not reached, the delay in the return of credits will not affect performance.
[0188] In one embodiment, the four transaction address spaces include a configuration address space, a memory address space, an input / output address space, and a message address space. A memory space transaction includes one or more read requests and write requests to transfer data to or from a memory mapped location. In one embodiment, a memory space transaction can use two different address formats, for example, a short address format, such as a 32-bit address, or a long address format, such as a 64-bit address. Configuration space transactions are used to access the configuration space of a PCIe device. Transactions of the configuration space include read requests and write requests. Message space transactions (or simply messages) are defined to support in-band communication between PCIe agents.
[0189] Thus, in one embodiment, transaction layer 1305 assembles a packet header / payload 1306. The current format of the packet header / payload can be found in the PCIe specification at the PCIe specification website.
[0190] Fig.14 An embodiment of a PCIe transaction descriptor according to one or more examples of the present specification is shown. In one embodiment, the transaction descriptor 1400 is a mechanism for carrying transaction information. In this regard, the transaction descriptor 1400 supports the identification of transactions in the system. Other potential uses include tracking modifications to the default transaction ordering and the association of transactions with channels.
[0191] Transaction descriptor 1400 includes a global identifier field 1402, an attribute field 1404, and a channel identifier field 1406. In the illustrated example, global identifier field 1402 is depicted as including a local transaction identifier field 1408 and a source identifier field 1410. In one embodiment, global transaction identifier 1402 is unique for all outstanding requests.
[0192] According to one implementation, the local transaction identifier field 1408 is a field generated by the requesting agent and is unique to all outstanding requests that need to be completed by the requesting agent. In addition, in this example, the source identifier 1410 uniquely identifies the requester agent within the PCIe hierarchy. Therefore, together with the source ID 1410, the local transaction identifier 1408 field provides a global identification of a transaction within the hierarchy domain.
[0193] Attribute fields 1404 specify the characteristics and relationships of a transaction. In this regard, attribute fields 1404 can potentially be used to provide additional information that allows modification of the default processing of a transaction. In one embodiment, attribute fields 1404 include a priority field 1412, a reserved field 1414, an order field 1416, and a non-snooping field 1418. Here, the priority subfield 1412 can be modified by the initiator to assign a priority to a transaction. Reserved attribute fields 1414 are reserved for future use or vendor-defined use. Reserved attribute fields can be used to implement possible usage models that use priority or security attributes.
[0194] In this example, the sort attribute field 1416 is used to provide optional information that conveys the type of sorting that can modify the default sorting rules. According to an example implementation, a sort attribute of "0" indicates that the default sorting rules are to be applied, wherein a sort attribute of "1" indicates that the sorting is relaxed, writes can pass writes in the same direction, and read completions can pass writes in the same direction. The snoop attribute field 1418 is used to determine whether the transaction is snooped. As shown, the channel ID field 1406 identifies the channel associated with the transaction.
[0195] Link Layer
[0196] The link layer 1310 (also referred to as the data link layer 1310) acts as an intermediate level between the transaction layer 1305 and the physical layer 1320. In one embodiment, the responsibility of the data link layer 1310 is to provide a reliable mechanism for exchanging TLPs between two linked components. One side of the data link layer 1310 accepts the TLPs assembled by the transaction layer 1305, applies a packet sequence identifier 1311, i.e., an identification number or packet number, calculates and applies an error detection code, i.e., a CRC 1312, and submits the modified TLP to the physical layer 1320 for transmission across the physical layer to an external device.
[0197] Physical Layer
[0198] In one embodiment, the physical layer 1320 includes a logical sub-block 1321 and an electronic block 1322 to physically send packets to an external device. Here, the logical sub-block 1321 is responsible for the "digital" functions of the physical layer 1321. In this regard, the logical sub-block includes a transmit portion for preparing outgoing information for transmission by the physical sub-block 1322, and a receive portion for identifying and preparing received information before passing it to the link layer 1310.
[0199] Physical block 1322 includes a transmitter and a receiver. The transmitter is provided with symbols by logic sub-block 1321, and the transmitter serializes the symbols and sends them to an external device. The receiver is provided with serialized symbols from an external device and converts the received signal into a bit stream. The bit stream is deserialized and provided to logic sub-block 1321. In one embodiment, 8b / 10b transmission code is adopted, in which 10-bit symbols are sent / received. Here, special symbols are used to frame packets with frames 1323. In addition, in one example, the receiver also provides a symbol clock recovered from the incoming serial stream.
[0200] As described above, although the transaction layer 1305, link layer 1310, and physical layer 1320 are discussed with reference to a specific embodiment of the PCIe protocol stack, the layered protocol stack is not limited thereto. In fact, any layered protocol may be included / implemented. For example, a port / interface represented as a layered protocol includes: (1) a first layer for assembling packets, i.e., a transaction layer; a second layer for sequencing packets, i.e., a link layer; and a third layer for sending packets, i.e., a physical layer. As a specific example, a common standard interface (CSI) layered protocol is used.
[0201] Fig.15 An embodiment of a PCIe serial point-to-point structure according to one or more examples of the present specification is shown. Although an embodiment of a PCIe serial point-to-point link is shown, the serial point-to-point link is not limited thereto because it includes any transmission path for sending serial data. In the illustrated embodiment, the basic PCIe link includes two low-voltage differential drive signal pairs: a transmit pair 1506 / 1511 and a receive pair 1512 / 1507. Therefore, device 1505 includes a transmit logic 1506 that sends data to device 1510 and a receive logic 1507 that receives data from device 1510. In other words, two transmit paths, namely paths 1516 and 1517, and two receive paths, namely paths 1518 and 1519, are included in the PCIe link.
[0202] A transmission path refers to any path for transmitting data, such as a transmission line, copper wire, optical fiber, wireless communication channel, infrared communication link, or other communication path. A connection between two devices (such as device 1505 and device 1510) is called a link, such as link 1515. A link can support a channel - each channel represents a set of differential signal pairs (one pair for transmission and one pair for reception). To expand bandwidth, a link can aggregate multiple channels represented by xN, where N is any supported link width, such as 1, 2, 4, 8, 12, 16, 32, 64, or wider.
[0203] A differential pair refers to two transmission paths, such as lines 1516 and 1517, to transmit differential signals. As an example, when line 1516 switches from a low voltage level to a high voltage level, i.e., a rising edge, line 1517 drives from a high logic level to a low logic level, i.e., a falling edge. Differential signals potentially exhibit better electrical characteristics, such as better signal integrity, i.e., cross-coupling, voltage overshoot / undershoot, ringing, etc. This allows for better timing windows, which makes faster transmission frequencies possible.
[0204] The foregoing summarizes the features of one or more embodiments of the subject matter disclosed herein. These embodiments are provided to enable a person of ordinary skill in the art (PHOSITA) to better understand the various aspects of the present disclosure. Reference may be made to certain well-understood terms and underlying technologies and / or standards without detailed description. It is expected that PHOSITA will possess or obtain background knowledge or information in those technologies and standards sufficient to implement the teachings of this specification.
[0205] PHOSITA will understand that they can easily use this disclosure as a basis for designing or modifying other processes, structures or variations to achieve the same purposes and / or realize the same advantages of the embodiments described herein. PHOSITA will also recognize that such equivalent constructions do not depart from the spirit and scope of the present disclosure, and that they can make various changes, substitutions and modifications herein without departing from the spirit and scope of the present disclosure.
[0206] In the foregoing description, certain aspects of some or all embodiments have been described in more detail than is strictly necessary to implement the appended claims. These details are provided only for the purpose of non-limiting examples to provide context and illustration of the disclosed embodiments. It should not be understood that these details are necessary, and the claims should not be "understood" as limiting. The wording may refer to "one embodiment" or "an embodiment". These words and any other references to the embodiments should be broadly understood to refer to any combination of one or more embodiments. In addition, several features disclosed in a specific "embodiment" may also be distributed in multiple embodiments. For example, if features 1 and 2 are disclosed in an "embodiment", embodiment A may have feature 1 but lack feature 2, while embodiment B may have feature 2 but lack feature 1.
[0207] This specification may provide an explanation in a block diagram format, where certain features are disclosed in separate boxes. These should be broadly understood to disclose how various features interoperate, but it is not meant to imply that these features must necessarily be embodied in separate hardware or software. In addition, in the case where a single block discloses more than one feature in the same block, those features do not necessarily have to be embodied in the same hardware and / or software. For example, computer "memory" can be distributed or mapped between multiple levels of cache or local memory, main memory, battery-supported volatile memory, and various forms of persistent memory (such as hard disks, storage servers, optical storage, disks, tape drives, or similar devices) in some cases. In some embodiments, some components may be omitted or merged. In a general sense, the arrangement depicted in the figure may be more logical in its representation, and the physical architecture may include various arrangements, combinations, and / or mixtures of these elements. Countless possible design configurations can be used to achieve the operational goals outlined herein. Therefore, the associated infrastructure has countless alternative arrangements, design choices, device possibilities, hardware configurations, software implementations, and device options.
[0208] Reference may be made here to computer-readable media, which may be tangible and non-transitory computer-readable media. As used in this specification and throughout the claims, "computer-readable media" should be understood to include one or more computer-readable media of the same or different types. As a non-limiting example, a computer-readable medium may include an optical drive (e.g., CD / DVD / Blu-ray), a hard drive, a solid-state drive, a flash memory, or other non-volatile media. Computer-readable media may also include such media, such as a read-only memory (ROM), an FPGA or ASIC configured to execute a desired instruction, a storage instruction for programming an FPGA or ASIC to execute a desired instruction, an intellectual property (IP) block that can be integrated into other circuits in hardware, or, where appropriate, instructions encoded directly into hardware or microcode on a processor such as a microprocessor, a digital signal processor (DSP), a microcontroller, or any other suitable component, device, element, or object according to specific needs. The non-transitory storage medium herein is explicitly intended to include any non-transitory dedicated or programmable hardware configured to provide the disclosed operations or to cause a processor to perform the disclosed operations.
[0209] In this specification and claims, various elements may be "communicatively," "electrically," "mechanically," or otherwise "coupled" to each other. Such coupling may be direct, point-to-point, or may involve intermediate devices. For example, two devices may be communicatively coupled to each other via a controller that facilitates communication. Devices may be electrically coupled to each other via intermediate devices such as signal boosters, voltage dividers, or buffers. Mechanically coupled devices may be indirectly mechanically coupled.
[0210] Any "module" or "engine" disclosed herein may refer to or include software, a software stack, a combination of hardware, firmware and / or software, a circuit configured to perform the functions of the engine or module, or any computer-readable medium as described above. Where appropriate, these modules or engines may be provided on or in conjunction with a hardware platform that may include hardware computing resources such as processors, memory, storage, interconnects, networks and network interfaces, accelerators, or other suitable hardware. Such a hardware platform may be provided as a single monolithic device (e.g., in a PC form factor), or some or part of the functionality may be distributed (e.g., a "compound node" in a high-end data center, where computing, memory, storage, and other resources may be dynamically allocated and need not be local to each other).
[0211] Flowcharts, signal flow charts, or other diagrams showing operations performed in a particular order may be disclosed herein. Unless otherwise expressly stated, or unless required in a particular context, the order should be understood to be only a non-limiting example. In addition, where one operation is shown following another operation, other intervening operations may also occur, which may be related or unrelated. Some operations may also be performed simultaneously or in parallel. Where an operation is referred to as being "based on" or "according to" another item or operation, this should be understood to imply that the operation is at least partially based on or at least partially based on other items or operations. This should not be interpreted as implying that the operation is based only or entirely on the item or operation, or only or entirely based on the item or operation.
[0212] All or part of any hardware element disclosed herein can be easily provided in a system on chip (SoC), including a central processing unit (CPU) package. SoC represents an integrated circuit (IC) that integrates the components of a computer or other electronic system into a single chip. Thus, for example, a client device or a server device can be provided in whole or in part in a SoC. A SoC can contain digital, analog, mixed signal, and radio frequency functions, all of which can be provided on a single chip substrate. Other embodiments may include a multi-chip module (MCM), in which multiple chips are located within a single electronic package and are configured to interact closely with each other through the electronic package.
[0213] In a general sense, any appropriately configured circuit or processor can execute any type of instruction associated with data to implement the operations detailed herein. Any processor disclosed herein can transform an element or article (e.g., data) from one state or thing to another state or thing. In addition, based on specific needs and implementations, information tracked, sent, received or stored in the processor can be provided in any database, register, table, cache, queue, control list or storage structure, all of which can be referenced within any suitable time frame. Any memory or storage element disclosed herein should be deemed to be appropriately included in the broad terms "memory" and "storage".
[0214] The computer program logic that implements all or part of the functions described herein is embodied in various forms, including but not limited to source code form, computer executable form, machine instructions or microcode, programmable hardware, and various intermediate forms (e.g., forms generated by assemblers, compilers, linkers, or locators). In one example, the source code includes a series of computer program instructions implemented in various programming languages, such as object code, assembly language, or high-level languages such as OpenCL, FORTRAN, C, C++, JAVA, or HTML, for various operating systems or operating environments, or implemented in hardware description languages such as Spice, Verilog, and VHDL. The source code can define and use various data structures and communication messages. The source code can be in a computer executable form (e.g., by an interpreter), or the source code can be converted (e.g., by a translator, assembler, or compiler) into a computer executable form, or converted into an intermediate form, such as bytecode. Where appropriate, any of the foregoing can be used to construct or describe appropriate discrete or integrated circuits, whether sequential, combined, state machines, or other.
[0215] In an example embodiment, any number of circuits in the accompanying drawings can be implemented on a board of a related electronic device. The board can be a general circuit board that can hold various components of the internal electronic system of the electronic device and also provide connectors for other peripheral devices. Based on specific configuration requirements, processing requirements, and computing design, any suitable processor and memory can be appropriately coupled to the board. Note that, using the numerous examples provided herein, interactions can be described based on two, three, four or more electronic components. However, this is done only for the purpose of clarity and example. It should be appreciated that the system can be merged or reconfigured in any suitable manner. Along similar design alternatives, any of the components, modules, and elements shown in the accompanying drawings can be combined in various possible configurations, all of which are within the broad scope of this specification.
[0216] Numerous other changes, substitutions, variations, alterations, and modifications may be ascertained by those skilled in the art, and the present disclosure is intended to encompass all such changes, substitutions, variations, alterations, and modifications that fall within the scope of the appended claims. To assist the United States Patent and Trademark Office (USPTO) and any reader of any patent issued in this application in interpreting the appended claims, Applicants wish to note that Applicants: (a) do not intend any of the appended claims to invoke 35 USC Section 112 (pre-AIA) paragraph 6(6) (post-AIA) paragraph (f) as it existed on the filing date thereof, unless the phrase "means for..." or "step for..." is specifically used in a particular claim; and (b) do not intend, by any statement in the specification, to limit the present disclosure in any manner not expressly reflected in the appended claims.
[0217] Example Implementation
[0218] In one example, a fabric controller for providing a coherent accelerator fabric is disclosed, including: a host interconnect for communicatively coupling to a host device; a memory interconnect for communicatively coupling to an accelerator memory; an accelerator interconnect for communicatively coupling to an accelerator having a last level cache (LLC); and an LLC controller configured to provide bias checking for memory access operations.
[0219] A fabric controller is also disclosed, further comprising a fabric coherence engine (FCE) configured to map an accelerator memory to a host fabric memory address space, wherein the fabric controller is configured to direct host memory access operations to the accelerator memory via the FCE.
[0220] A fabric controller is also disclosed, wherein the FCE is physically separated from the LLC controller.
[0221] A fabric controller is also disclosed, further comprising a direct bypass bus for connecting the LLC to the memory interconnect and bypassing the FCE.
[0222] A fabric controller is also disclosed, wherein the fabric controller is configured to provide the fabric in a plurality of n independent slices.
[0223] A structural controller is also disclosed, wherein n=8.
[0224] Also disclosed is a fabric controller wherein the n independent slices include n independent LLC controllers interconnected by horizontal interconnects and communicatively coupled to corresponding memory controllers by corresponding vertical interconnects.
[0225] A fabric controller is also disclosed, further comprising: a power manager configured to determine that the LLC controller is idle, and to power down the horizontal interconnects and maintain corresponding vertical interconnects and host interconnects in an active state.
[0226] A fabric controller is also disclosed wherein the LLC is a level 3 cache.
[0227] A fabric controller is also disclosed wherein the host interconnect is an Intel Accelerator Link (IAL) compliant interconnect.
[0228] A fabric controller is also disclosed wherein the host interconnect is a PCIe interconnect.
[0229] A fabric controller is also disclosed, wherein the fabric controller is an integrated circuit.
[0230] A fabric controller is also disclosed, wherein the fabric controller is an intellectual property (IP) block.
[0231] Also disclosed is an accelerator apparatus, comprising: an accelerator including a last level cache (LLC); and a fabric controller for providing a coherent accelerator fabric, comprising: a host interconnect for communicatively coupling the accelerator to a host device; a memory interconnect for communicatively coupling the accelerator and the host device to an accelerator memory; an accelerator interconnect for communicatively coupling the accelerator fabric to the LLC; and an LLC controller configured to provide bias checking for memory access operations.
[0232] An accelerator device is also disclosed, wherein the fabric controller further comprises a fabric coherence engine (FCE) configured to enable the accelerator memory to be mapped to the host fabric memory address space, wherein the fabric controller is configured to direct host memory access operations to the accelerator memory via the FCE.
[0233] An accelerator device is also disclosed, wherein the FCE is physically separated from the LLC controller.
[0234] An accelerator device is also disclosed, wherein the fabric controller further comprises a direct bypass bus for connecting the LLC to the memory interconnect and bypassing the FCE.
[0235] An accelerator device is also disclosed, wherein the structure controller is configured to provide the structure in a plurality of n independent slices.
[0236] Also disclosed is an accelerator device, wherein n=8.
[0237] Also disclosed is an accelerator device wherein the n independent slices include n independent LLC controllers interconnected by horizontal interconnects and communicatively coupled to corresponding memory controllers by corresponding vertical interconnects.
[0238] An accelerator device is further disclosed, further comprising: a power manager configured to determine that the LLC controller is idle, and to power down the horizontal interconnect and maintain the corresponding vertical interconnect and the host interconnect in an active state.
[0239] An accelerator device is also disclosed, wherein the LLC is a level 3 cache.
[0240] An accelerator device is also disclosed, wherein the host interconnect is an Intel Accelerator Link (IAL) compliant interconnect.
[0241] Also disclosed is an accelerator device, wherein the host interconnect is a PCIe interconnect.
[0242] Also disclosed are one or more tangible, non-transitory computer-readable media having stored thereon instructions for providing a fabric controller, including instructions for: providing a host interconnect to communicatively couple to a host device; providing a memory interconnect to communicatively couple to an accelerator memory; providing an accelerator interconnect to communicatively couple to an accelerator having a last level cache (LLC); and providing an LLC controller configured to provide bias checking for memory access operations.
[0243] One or more tangible, non-transitory computer-readable media are further disclosed, wherein the instructions also provide a fabric coherence engine (FCE) configured to enable mapping of accelerator memory to a host fabric memory address space, wherein the fabric controller is configured to direct host memory access operations to the accelerator memory via the FCE.
[0244] Further disclosed are one or more tangible, non-transitory computer-readable media, wherein the FCE is physically separated from the LLC controller.
[0245] One or more tangible, non-transitory computer-readable media are also disclosed, also including a direct bypass bus for connecting the LLC to the memory interconnect and bypassing the FCE.
[0246] One or more tangible, non-transitory computer-readable media are also disclosed, wherein the fabric controller is configured to provide the fabric in a plurality of n independent slices.
[0247] Also disclosed are one or more tangible, non-transitory computer-readable media, wherein n=8.
[0248] One or more tangible, non-transitory computer-readable media are also disclosed, wherein the n independent slices include n independent LLC controllers interconnected by horizontal interconnects and communicatively coupled to respective memory controllers by respective vertical interconnects.
[0249] One or more tangible, non-transitory computer-readable media are also disclosed, wherein the instructions further provide a power manager configured to determine that the LLC controller is idle and to power down the horizontal interconnect and maintain corresponding vertical interconnects and host interconnects in an active state.
[0250] Also disclosed are one or more tangible, non-transitory computer-readable media wherein the LLC is a level 3 cache.
[0251] One or more tangible, non-transitory computer-readable media are also disclosed, wherein the host interconnect is an Intel Accelerator Link (IAL) compliant interconnect.
[0252] One or more tangible, non-transitory computer-readable media are also disclosed, wherein the host interconnect is a PCIe interconnect.
[0253] Also disclosed are one or more tangible, non-transitory computer-readable media, wherein the instructions include hardware instructions.
[0254] Also disclosed are one or more tangible, non-transitory computer-readable media, wherein the instructions include field programmable gate array (FPGA) instructions.
[0255] One or more tangible, non-transitory computer-readable media are also disclosed, wherein the instructions include data for programming a field programmable gate array (FPGA).
[0256] Also disclosed are one or more tangible, non-transitory computer-readable media, wherein the instructions include instructions for manufacturing a hardware device.
[0257] Also disclosed are one or more tangible, non-transitory computer-readable media, wherein the instructions include instructions for fabricating an intellectual property (IP) block.
[0258] Also disclosed is a method of providing a coherent accelerator structure, comprising: communicatively coupling to a host device; communicatively coupling to an accelerator memory; communicatively coupling to an accelerator having a last level cache (LLC); and providing bias checking of memory access operations within an LLC controller.
[0259] A method is also disclosed, further comprising providing a fabric coherence engine (FCE) configured to map an accelerator memory to a host fabric memory address space, wherein a fabric controller is configured to direct host memory access operations to the accelerator memory via the FCE.
[0260] A method is also disclosed wherein the FCE is physically separated from the LLC controller.
[0261] A method is also disclosed, further comprising providing a direct bypass path for connecting the LLC to the memory interconnect and bypassing the FCE.
[0262] A method is also disclosed, further comprising providing the structure in a plurality of n separate sheets.
[0263] A method is also disclosed, wherein n=8.
[0264] There is also a method wherein the n independent slices include n independent LLC controllers interconnected by horizontal interconnects and communicatively coupled to corresponding memory controllers by corresponding vertical interconnects.
[0265] A method is also disclosed, further comprising determining that the LLC controller is idle, and powering down the horizontal interconnects and maintaining corresponding vertical interconnects and host interconnects in an active state.
[0266] A method is also disclosed wherein the LLC is a level 3 cache.
[0267] A method is also disclosed wherein the host interconnect is an Intel Accelerator Link (IAL) compliant interconnect.
[0268] A method is also disclosed wherein the host interconnect is a PCIe interconnect.
[0269] Also disclosed is an apparatus comprising a unit for performing the method of any one of the above examples.
[0270] An apparatus is also disclosed, wherein the unit comprises a structure controller.
[0271] Also disclosed is an accelerator device, comprising an accelerator, an accelerator memory and a structure controller.
[0272] Also disclosed are one or more tangible, non-transitory computer-readable media having stored thereon instructions for providing methods or making the apparatus or devices of the plurality of examples described above.
Claims
1. A device for memory access, include: Ports, including: Protocol circuit device for: transmitting data in any one of a plurality of protocols over a link, wherein the plurality of protocols include an I / O protocol, a cache protocol, and a memory protocol, the link coupling the port to another computing device, and the data of the plurality of protocols to be carried on a common physical layer of the link; and A bias-based consistency model is supported, wherein the bias-based consistency model includes a host bias state and a device bias state.
2. The device according to claim 1, further comprising an attached memory, in, The other computing device comprises a host device, and the data is associated with a request for a block of data stored in the attached memory.
3. The device according to claim 2, in, During the host bias state, the protocol circuit means will send a coherence request to the host device for resolving coherence for a particular block of data in the attached memory based on an attempt by the apparatus to access the particular block of data.
4. The device according to claim 2 or 3, in, During the device bias state, the apparatus is allowed to access the corresponding data block without sending any transactions to the host device.
5. The device according to claim 2 or 3, in, The attached memory stores a plurality of data blocks, the host bias state is to be applied to a first subset of the plurality of data blocks, and the device bias state is to be applied to a second subset of the plurality of data blocks.
6. The apparatus of claim 5, further comprising a bias table for tracking, for each of the plurality of data blocks, whether the host bias state or the device bias state is to be applied to the corresponding data block.
7. The device according to any one of claims 1 to 3, in, The common physical layer includes a Peripheral Component Interconnect Express (PCIe) physical layer.
8. The device according to any one of claims 1 to 3, in, At least one of the plurality of protocols comprises a non-PCIe protocol.
9. The apparatus according to any one of claims 1 to 3, further comprising a hardware accelerator circuit arrangement.
10. A method for memory access, include: communicating between the device and the host via a link, wherein the link supports communication according to any one of a plurality of protocols, the plurality of protocols including an I / O protocol, a cache protocol, and a memory protocol, identifying a particular block of data stored in an attached memory of the device; determining whether a host bias mode or a device bias mode is to be applied to the particular data block; and Attempting to access the specific data block, wherein consistency of the specific data block is resolved based on whether the host bias mode or the device bias mode is applied to the specific data block.
11. The method according to claim 10, in, During the device bias mode, the device is allowed to access corresponding blocks of data in the attached memory without consulting the coherence agent of the host device.
12. The method according to claim 10 or 11, in, During the host bias mode, coherency is resolved by the host device for corresponding blocks of data in the attached memory.
13. The method according to claim 10 or 11, in, Determining whether the host bias mode or the device bias mode is to be applied to the specific data block includes accessing an entry in a bias table corresponding to the specific data block, wherein the entry identifies whether the host bias mode or the device bias mode is to be applied to the specific data block.
14. The method of claim 13, further comprising setting a value of the entry to change a bias mode applied to the particular data block.
15. The method according to claim 14, in, The value is set by software.
16. The method according to claim 14, in, The value is set by hardware.
17. A system for memory access, include: First device; as well as a second device coupled to the first device via a link, wherein the link supports communications according to any one of a plurality of protocols, the plurality of protocols including an I / O protocol, a cache protocol, and a memory protocol, and the plurality of protocols utilize a common physical layer; and wherein the second device comprises: attached memory; and Protocol circuit device for: determining whether a host bias state or a device bias state is to be applied to a particular block of data in the attached memory; and Based on whether the host bias state or the device bias state is applied, consistency is resolved for the specific data block.
18. The system according to claim 17, in, The first device includes a host processor and the second device includes an accelerator.
19. The system of claim 17 or 18, further comprising a software controller for defining whether the host bias state or the device bias state is to be applied to the specific data block.
20. The system according to any one of claims 17 to 18, in, The common physical layer includes a PCIe physical layer.
21. A method for memory access, include: Set the bias mode of the accelerator memory page to host bias mode; Pushing operands and / or data to the accelerator memory page; Converting the accelerator memory page to a device bias mode; generating a result using the operand via the accelerator and storing the result in the accelerator memory page; Setting the bias mode of the accelerator memory page storing the result to the host bias mode; as well as providing the results from the accelerator memory page to host software; The consistency of the accelerator memory page is solved based on the settings of the host bias mode and the device bias mode.
22. An apparatus for memory access, include: a unit for setting a bias mode of an accelerator memory page to a host bias mode; means for pushing operands and / or data to said accelerator memory page; means for converting the accelerator memory page to a device bias mode; means for generating a result using an operand via an accelerator and storing the result in a memory page of the accelerator; means for setting a bias mode of the accelerator memory page storing the result to the host bias mode; as well as means for providing said results from said accelerator memory page to host software; The consistency of the accelerator memory page is solved based on the settings of the host bias mode and the device bias mode.
