Multi-Port Compute Express Link Host Device, Compute Express Link Device, And Method Using The Same
The CXL host device with multiple root ports and cross-port dispatcher addresses scalability issues by enabling efficient cache-coherent memory access and message handling in high-performance computing systems, enhancing flexibility and performance.
Patent Information
- Application Number
- US19/681504
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Priority Date
- 2026-03-25
- Filing Date
- 2026-05-19
- Publication Date
- 2026-11-26
AI Technical Summary
The existing CXL standards (1.0, 1.1, and 2.0) limit the number of devices that can be connected to a CPU and do not support multiple switches or cache coherence across multiple computers, restricting scalability and flexibility in high-performance computing systems.
A CXL host device with multiple root ports and a cross-port dispatcher to identify associations between reception and transmission messages using transaction identification information, allowing appropriate message processing and transmission port selection based on activation status and dependency considerations.
Enables efficient and scalable cache-coherent distributed shared memory access by thousands of hosts, overcoming limitations of previous standards and ensuring proper message handling in multi-port configurations.
Smart Images

Figure US20260377349A1-D00000_ABST
Abstract
Description
CROSS REFERENCE TO RELATED APPLICATIONS
[0001] This application claims the benefit of Korean Patent Application Nos. 10-2025-0065264, filed May. 20, 2025 and 10-2026-0053791, filed Mar. 25, 2026, which are hereby incorporated by reference in their entireties into this application.BACKGROUND OF THE INVENTION1. Technical Field
[0002] The present disclosure relates generally to a Compute Express Link (CXL), and more particularly to multi-port CXL devices.2. Description of the Related Art
[0003] In a high-performance computing system, in order to process large volumes of data, data is distributed and stored across multiple computation nodes, and a final result is calculated by exchanging results obtained from processing the stored data in a distributed manner. However, as the number of nodes participating in computation increases, the time required for data exchange increases, and thus large-capacity memory is required. In order to implement the large-capacity memory, a network that ensures cache coherence is required together with the memory.
[0004] CXL 1.0 and CXL 1.1 standards define an existing Peripheral Component Interconnect Express (PCIe) protocol as CXL.io, and newly introduce CXL.cache and CXL.mem protocols with added cache coherence functionality. The CXL.cache protocol allows a device (e.g., a peripheral device) to cache data, stored in memory connected to a Central Processing Unit (CPU), in a cache within the device, and ensures cache coherence between the CPU and the device. The CXL.mem protocol allows data stored in the memory within the device to be cached in a CPU cache. The CXL 1.0 and 1.1 standards classify devices into three types depending on the characteristics of devices connected to a computer. A CXL Type 1 device is a CXL device that uses only the CXL.cache protocol, and is a device such as a coprocessor that does not have separate memory within the device. A CXL Type 3 device is a device that uses only the CXL.mem protocol, and is a device (e.g., a memory expander) enabling expansion of the size of a memory space usable by a host. A CXL Type 2 device is a device that uses both the CXL.cache protocol and the CXL.mem protocol, and that has memory within the device, as in the case of a Graphics Processing Unit (GPU), and also performs computation.
[0005] The CXL 1.0 and 1.1 standards ensure only cache coherence between a device and a CPU within a single computer, and define only a situation in which the CPU is directly connected to the device. Therefore, a single device could be connected to only one host, and only one device could be connected per Root Port (RP) of the CPU.
[0006] Because the number of RPs that can be connected to one CPU is limited, only three devices can be connected in practice to one CPU in CXL 1.0 and 1.1 standards. In order to solve this expansibility issue, a CXL switch expanded from a PCIe switch has been presented in a CXL 2.0 standard. Further, the CXL 2.0 standard allows a single memory device (Type 3 device) to be divided into a maximum of 16 logical devices (LDs) and to be used (Multi-Logical Device: MLD), and enables two or more different computers to be connected to a single CXL switch, thereby allowing a maximum of 16 hosts (computers) to share and use the single memory device in a distribution manner. However, the CXL 2.0 standard does not define a case in which a CXL switch is connected below another CXL switch, and thus only a maximum of one switch may be present between the host and the device.
[0007] A CXL 3.0 standard resolves a limitation in the number of switches in the CXL 2.0 standard and adds a back-invalidation operation for cache-coherent distributed shared memory to the CXL.mem protocol. Further, the concept of a CXL fabric has been introduced in which thousands of host devices are implemented as a single network beyond the physical limitations of PCIe. By means of this, it becomes possible to implement a cache-coherent network and cache-coherent distributed shared memory that allow thousands of hosts to simultaneously access large-capacity memory.
[0008] Korean Patent Application Publication No. 10-2024-0162453 discloses a CXL switch that manages cache coherence, but fails to disclose devices that support multiple ports.SUMMARY OF THE INVENTION
[0009] Accordingly, the present disclosure has been made keeping in mind the above problems occurring in the prior art, and an object of the present disclosure is to provide a CXL host device including multiple root ports.
[0010] Another object of the present disclosure is to allow a CXL host device using multiple ports to appropriately process a reception message that is received through a port different from a transmission port through which a transmission message is transmitted, among multiple root ports, and that corresponds to the transmission message.
[0011] A further object of the present disclosure is to allow a host to associate a reception message corresponding to a transmission message with a root port used for message transmission by using transaction identification information (Unique Queue ID (UQID), Command Queue ID (CQID), or tag) including root port identification information in a CXL device environment supporting multiple ports.
[0012] Yet another object of the present disclosure is to allow a multi-port CXL device to appropriately determine a transmission port based on whether an association identification operation is activated.
[0013] In accordance with an aspect of the present disclosure to accomplish the above objects, there is provided a Compute Express Link (CXL) host device, including multiple root ports; and a cross-port dispatcher configured to identify an association between a reception message corresponding to a transmission message transmitted through a transmission root port, which is one of the multiple root ports, and the transmission root port.
[0014] Here, the association may be identified even when a reception root port through which the reception message is received is different from the transmission root port.
[0015] Here, the association may be identified based on transaction identification information included in the reception message.
[0016] Here, the association may be identified based on whether root port identification information contained in the transaction identification information included in the reception message corresponds to the transmission root port.
[0017] Here, the transaction identification information included in the reception message may be generated based on transaction identification information included in the transmission message.
[0018] Here, the transaction identification information included in the reception message may include activation information indicating whether an association identification operation of identifying the association is activated.
[0019] Here, when the association identification operation is deactivated, the reception root port may be treated as the transmission root port.
[0020] Here, the reception message may be forwarded to the transmission root port when the reception root port is different from the transmission root port.
[0021] In accordance with another aspect of the present disclosure to accomplish the above objects, there is provided a Compute Express Link (CXL) device, including multiple ports; and a transmission port selector configured to determine a transmission port through which a current transmission message is to be transmitted among the multiple ports based on whether an association identification operation is activated.
[0022] Here, the association identification operation may be an operation of identifying an association between a transmission root port through which a host transmits a transmission message and a reception message received by the host in response to the transmission message.
[0023] Here, the transmission port selector may determine the transmission port using one of multiple port selection schemes including a first scheme corresponding to a case in which the association identification operation is activated and a second scheme corresponding to a case in which the association identification operation is not activated.
[0024] Here, the first scheme may determine one of the multiple ports as the transmission port without considering a dependency of the current transmission message, the dependency being determined in consideration of a message transmission / reception history, and the second scheme may determine one of the multiple ports as the transmission port in consideration of the dependency.
[0025] Here, when the association identification operation is activated, occurrence or non-occurrence of a port conflict may not be checked, the occurrence or non-occurrence of the port conflict being determined based on whether messages in which identical transaction identification information (Unique Queue ID (UQID), Command Queue ID (CQID) or tag) is used are present among messages received through one or more of the multiple ports.
[0026] In accordance with a further aspect of the present disclosure to accomplish the above objects, there is provided a method for transmitting / receiving Compute Express Link (CXL) messages in a CXL host device, including transmitting a transmission message through a transmission root port, which is one of multiple root ports; receiving a reception message corresponding to the transmission message; and identifying an association between the reception message and the transmission root port.
[0027] Here, the association may be identified even when a reception root port through which the reception message is received is different from the transmission root port.
[0028] Here, the association may be identified based on transaction identification information included in the reception message. Here, the association may be identified based on whether root port identification information contained in the transaction identification information included in the reception message corresponds to the transmission root port.
[0029] Here, the transaction identification information included in the reception message may be generated based on transaction identification information included in the transmission message.
[0030] Here, the transaction identification information included in the reception message may include activation information indicating whether an association identification operation of identifying the association is activated.
[0031] Here, when the association identification operation is deactivated, the reception root port may be treated as the transmission root port.
[0032] Here, the reception message may be forwarded to the transmission root port when the reception root port is different from the transmission root port.BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The above and other objects, features and advantages of the present disclosure will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings, in which:
[0034] FIG. 1 is a diagram illustrating an example of a network topology that can be configured using a multi-port CXL device according to an embodiment of the present disclosure;
[0035] FIG. 2 is a diagram illustrating another example of a network topology that can be configured using a multi-port CXL device according to an embodiment of the present disclosure;
[0036] FIG. 3 is a diagram illustrating an example of a network topology that can be configured using a CXL port expander according to an embodiment of the present disclosure;
[0037] FIG. 4 is a diagram illustrating another example of a network topology that can be configured using a CXL port expander according to an embodiment of the present disclosure;
[0038] FIG. 5 is a block diagram illustrating usage examples of a CXL port expander according to an embodiment of the present disclosure;
[0039] FIG. 6 is a diagram illustrating an ordering problem that may occur in a multi-port CXL device according to an embodiment of the present disclosure.
[0040] FIG. 7 is a block diagram illustrating an example of a multi-port CXL device according to an embodiment of the present disclosure;
[0041] FIG. 8 is an operation flowchart illustrating an example of a method in which a multi-port CXL device transmits / receives CXL messages according to an embodiment of the present disclosure;
[0042] FIG. 9 is a diagram illustrating an example of a CXL host device according to an embodiment of the present disclosure;
[0043] FIG. 10 is a diagram illustrating an example of transaction identification information according to an embodiment of the present disclosure;
[0044] FIG. 11 is a diagram illustrating a process in which an M2S Request (Req) is transmitted from a CXL host device to a multi-port CXL device;
[0045] FIG. 12 is a diagram illustrating a process in which an S2M DRS is transmitted from a multi-port CXL device to a CXL host device; and
[0046] FIG. 13 is an operation flowchart illustrating a method for transmitting / receiving CXL messages according to an embodiment of the present disclosure.DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0047] The present disclosure will be described in detail with reference to the attached drawings. Repeated descriptions and descriptions of known functions and configurations which have been deemed to make the gist of the present disclosure unnecessarily obscure will be omitted below. The embodiments of the present disclosure are provided to more fully describe the present disclosure to those skilled in the art. Therefore, the shapes, sizes, etc. of elements in the drawings may be exaggerated for clear illustration.
[0048] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the attached drawings.
[0049] A CXL device, which will be described below, may encompass all of CXL Type 1, Type 2, and Type 3 devices. Here, the CXL device of the present disclosure may refer to a CXL Type 1 device and a CXL Type 2 device that support multiple ports. Furthermore, the CXL device of the present disclosure may refer to a CXL port expander (or port expander) capable of expanding ports in a multi-port configuration, or may refer to a CXL Type 1 or Type 2 device that includes the port expander in the form of a device, a chip, or logic.
[0050] In particular, a multi-port CXL.cache device may be a CXL device that provides connection through multiple ports and has open CXL.cache channels.
[0051] In particular, the CXL port expander may be a device that is connected to, attached to or contained in the CXL device to expand the number of ports of the corresponding CXL device. Here, the CXL port expander may be an additional device having the form of a module, a chip, an agent or logic, and may be a device separate from the CXL device or a device conceptually included in the CXL device. That is, the CXL port expander may form a multi-port CXL device from a single-port CXL device, or form an expanded multi-port CXL device to which ports are added by increasing the number of ports of the multi-port CXL device.
[0052] The multi-port CXL.cache device may be a CXL.cache device having multiple ports, and may be a CXL device that enables CXL.cache message generation, interpretation, and processing using CXL.cache channels. Here, the CXL.cache device may include a Type 1 device and a Type 2 device.
[0053] A root port (RP) may be connected to each of multiple ports of the multi-port CXL device. Here, each of the multiple ports of the multi-port CXL device may be directly connected to the root port, or may be connected thereto via a single switch or multiple switches.
[0054] The number of root ports connected to each of the multiple ports of the multi-port CXL device may not be limited. However, it may be easier to implement a design in which a single root port is connected to each of the multiple ports of the multi-port CXL device. Here, the multi-port CXL device may be a multi-port CXL Type 1 device, a multi-port CXL Type 2 device, or a port expander.
[0055] Root ports respectively connected to multiple ports of the multi-port CXL device may belong to multiple hosts or host bridges, but it may be desirable to implement a design in which root ports belong to a single host based on logic and settings of a Host-managed Device Memory (HDM) decoder or the like in an existing single port CXL device. Hereinafter, although description will be made based on a case in which each of the multiple ports of the multi-port CXL device is connected to one root port of a single host, the technical spirit of the present disclosure is not limited thereto.
[0056] Here, in order to support the multi-port CXL device, additional instructions may be used to perform direct or indirect communication with a fabric manager, management or maintenance.
[0057] FIG. 1 is a diagram illustrating an example of a network topology that can be configured using a multi-port CXL device according to an embodiment of the present disclosure.
[0058] Referring to FIG. 1, the network topology includes a CXL Central Processing Unit (CPU) 110, CXL switches 120, and multi-port CXL devices 131 and 132.
[0059] The CXL CPU 110 may be a host, and may include multiple root ports. For example, the CXL CPU 110 may include four root ports.
[0060] Each of the CXL switches 120 may include one upstream port and two downstream ports. The upstream port of each of the CXL switches 120 may be connected to one of the root ports of the CXL CPU 110, one of the downstream ports of each of the CXL switches 120 may be connected to the multi-port CXL device 131, and the other may be connected to the multi-port CXL device 132.
[0061] Each of the multi-port CXL devices 131 and 132 may include four ports. Here, the multi-port CXL devices 131 and 132 may be connected to the CXL CPU 110 through the CXL switches 120. Here, the multiple ports of each of the multi-port CXL devices 131 and 132 may be respectively connected to the multiple root ports of the CXL CPU 110. FIG. 2 is a diagram illustrating another example of a network topology that can be configured using a multi-port CXL device according to an embodiment of the present disclosure.
[0062] Referring to FIG. 2, the network topology includes a CXL Central Processing Unit (CPU) 110, a CXL switch fabric 220, and multi-port CXL devices 131 and 132.
[0063] The CXL CPU 110 may be a host, and may include multiple root ports. For example, the CXL CPU 110 may include four root ports.
[0064] The CXL switch fabric 220 provides paths between the CXL CPU 110 and the multi-port CXL devices 131 and 132. Here, the CXL switch fabric 220 may include multiple switches. Here, the multiple switches may be Hierarchy-Based Routing (HBR) switches or Port-Based Routing (PBR) switches.
[0065] Each of the multi-port CXL devices 131 and 132 may include four ports. Here, the multi-port CXL devices 131 and 132 may be connected to the CXL CPU 110 through the CXL switch fabric 220. Here, the multiple ports of each of the multi-port CXL devices 131 and 132 may be respectively connected to the multiple root ports of the CXL CPU 110.
[0066] The examples illustrated in FIGS. 1 and 2 show a basic network topology, and more complex topology configurations are also possible. The network components and topologies are not limited to these examples, and may be implemented in various forms. Here, the topologies may include all topologies that can be configured through the CXL switch fabric. In the examples illustrated in FIGS. 1 and 2, only a minimum number of ports required for describing connections are indicated, and a greater number of ports than those illustrated in FIGS. 1 and 2 may be used.
[0067] Even in the case where the multi-port CXL devices are used, there may be a need to support CXL features such as the ordering rule of CXL messages and memory interleaving. For this, each multi-port CXL device or CXL port expander may provide functionalities for supporting CXL features.
[0068] Here, the multi-port CXL device may be a device in which a CXL port expander is contained as internal logic. Here, the ordering rule of CXL messages may be maintained by the CXL port expander within the multi-port CXL device. Here, the CXL port expander may perform appropriate processing according to each CXL message such that ordering rules required in the CXL specification are maintained. Here, the CXL port expander may equally apply operations and methods to be used according to respective CXL messages. Here, the same logic and data structures may be used to implement the CXL port expander and support functions thereof.
[0069] However, unlike the CXL port expander that exists as a device separate from the CXL device, the multi-port CXL device needs to include elements for providing functions of an existing CXL device in addition to operations, methods, logic, and data structures for supporting multiple ports. Furthermore, during a process of incorporating all of them, the performance of duplicated logic and data structures and repetitive operations and methods may be improved using various optimization techniques such as reuse and reduction.
[0070] Methods for implementing the CXL port expander and the multi-port CXL device are not limited to embodiments described here, and may be implemented using various schemes known in the art.
[0071] Here, the CXL port expander may be a device, a chip or logic that is added to a CXL device to expand the number of ports of the corresponding CXL device.
[0072] Here, the CXL port expander may be added to a single-port CXL device and may perform a function of converting the single-port CXL device into a multi-port CXL device.
[0073] Here, the CXL port expander may be added to a multi-port CXL device, and may perform a function of converting the multi-port CXL device into a multi-port CXL device having more ports.
[0074] Here, the CXL port expander may receive a CXL message from an external system and determine a port of a CXL device with the CXL port expander attached thereto, to which the message is to be forwarded, and may then appropriately convert message components, fields or information, such as a tag and a memory address.
[0075] Here, the CXL port expander may determine a port to which a CXL message that is transmitted to an external system from the CXL device with the CXL port expander attached thereto is to be forwarded, among externally connected ports, and may then appropriately convert, store, and recover message components, fields or information such as a tag and a memory address.
[0076] In this case, the CXL port expander may perform an operation of maintaining an ordering rule and supporting CXL features such as memory interleaving, and an operation of internally maintaining and managing the data structures. Here, the CXL port expander may be referred to as a spray chip, a spray module, a spray agent or the like.
[0077] FIG. 3 is a diagram illustrating an example of a network topology that can be configured using a CXL port expander according to an embodiment of the present disclosure.
[0078] Referring to FIG. 3, the network topology includes a CXL Central Processing Unit (CPU) 110, CXL switches 320, CXL port expanders 331, 332, and 333, and single-port CXL devices 341, 342, and 343.
[0079] The CXL CPU 110 may be a host, and may include multiple root ports. For example, the CXL CPU 110 may include four root ports.
[0080] Each of the CXL switches 320 may include one upstream port and three downstream ports. The upstream port of each of the CXL switches 320 may be connected to one of root ports of the CXL CPU 110, one of the downstream ports of each of the CXL switches 320 may be connected to the CXL port expander 331, another may be connected to the CXL port expander 332, and the remaining one may be connected to the CXL port expander 333.
[0081] Each of the CXL port expanders 331, 332, and 333 may include four host-side ports and one device-side port. Here, the CXL port expanders 331, 332, and 333 may be connected to the CXL CPU 110 through the CXL switches 320. Here, the host-side multiple ports of each of the CXL port expanders 331, 332, and 333 may be respectively connected to multiple root ports of the CXL CPU 110.
[0082] The CXL port expander 331 is connected to the single-port CXL device 341 and performs a function of expanding the number of ports of the single-port CXL device 341 (from 1 to 4).
[0083] The CXL port expander 332 is connected to the single-port CXL device 342 and performs a function of expanding the number of ports of the single-port CXL device 342 (from 1 to 4).
[0084] The CXL port expander 333 is connected to the single-port CXL device 343 and performs a function of expanding the number of ports of the single-port CXL device 343 (from 1 to 4).
[0085] As will be described later, the CXL port expander 331 and the single-port CXL device 341, illustrated in FIG. 3, may correspond to a multi-port CXL device. Here, the CXL port expander 332 and the single-port CXL device 342, illustrated in FIG. 3, may correspond to a multi-port CXL device. Here, the CXL port expander 333 and the single-port CXL device 343, illustrated in FIG. 3, may correspond to a multi-port CXL device.
[0086] FIG. 4 is a diagram illustrating another example of a network topology that can be configured using a CXL port expander according to an embodiment of the present disclosure.
[0087] Referring to FIG. 4, the network topology includes a CXL Central Processing Unit (CPU) 110, a CXL switch fabric 420, CXL port expanders 331, 332, and 333, and single-port CXL devices 341, 342, and 343.
[0088] The CXL CPU 110 may be a host, and may include multiple root ports. For example, the CXL CPU 110 may include four root ports.
[0089] The CXL switch fabric 420 provides paths between the CXL CPU 110 and the CXL port expanders 331, 332, and 333. Here, the CXL switch fabric 420 may include multiple switches. Here, the multiple switches may be Hierarchy-Based Routing (HBR) switches or Port-Based Routing (PBR) switches.
[0090] Each of the CXL port expanders 331, 332, and 333 may include four host-side ports and one device-side port. Here, the CXL port expanders 331, 332, and 333 may be connected to the CXL CPU 110 through the CXL switch fabric 420. Here, the host-side multiple ports of each of the CXL port expanders 331, 332, and 333 may be respectively connected to multiple root ports of the CXL CPU 110.
[0091] The CXL port expander 331 is connected to the single-port CXL device 341 and performs a function of expanding the number of ports of the single-port CXL device 341 (from 1 to 4).
[0092] The CXL port expander 332 is connected to the single-port CXL device 342 and performs a function of expanding the number of ports of the single-port CXL device 342 (from 1 to 4).
[0093] The CXL port expander 333 is connected to the single-port CXL device 343 and performs a function of expanding the number of ports of the single-port CXL device 343 (from 1 to 4).
[0094] As will be described later, the CXL port expander 331 and the single-port CXL device 341, illustrated in FIG. 4, may correspond to a multi-port CXL device. Here, the CXL port expander 332 and the single-port CXL device 342, illustrated in FIG. 4, may correspond to a multi-port CXL device. Here, the CXL port expander 333 and the single-port CXL device 343, illustrated in FIG. 4, may correspond to a multi-port CXL device.
[0095] The examples illustrated in FIGS. 3 and 4 show a basic network topology, and more complex topology configurations are also possible. The network components and topologies are not limited to these examples, and may be implemented in various forms. Here, the topologies may include all topologies that can be configured through the CXL switch fabric. In the examples illustrated in FIGS. 3 and 4, only a minimum number of ports required for describing connections are indicated, and a greater number of ports than those illustrated in FIGS. 3 and 4 may be used.
[0096] Each of the CXL port expanders 331, 332, and 333 illustrated in FIGS. 3 and 4 may be present as a separate device such as a module, or may be implemented in the form of internal logic or chip of the CXL device. Schemes for implementing the CXL port expanders 331, 332, and 333 or schemes for connecting them to the CXL devices are not limited to the embodiments of FIGS. 3 and 4, and may enable implementations or connections in various manners.
[0097] As illustrated in FIGS. 3 and 4, a multi-port CXL device may be implemented by coupling a single-port CXL device to a CXL port expander.
[0098] Similarly, a multi-port CXL device having a greater number of ports may be implemented by coupling a multi-port CXL device to a CXL port expander.
[0099] Although only a single CXL CPU is illustrated in the examples shown in FIGS. 1-4, the network topology may include multiple CXL CPUs (CXL host devices), and each of the multiple CXL CPUs, each having multiple ports, may be connected to one or more multi-port CXL devices through CXL switches or a CXL fabric.
[0100] FIG. 5 is a block diagram illustrating usage examples of a CXL port expander according to an embodiment of the present disclosure.
[0101] Referring to FIG. 5, the CXL port expander may be implemented as a device or a module 511 or 512 independent of a CXL device 521 or 522, or may also be implemented as a chip 513 or internal logic 514 for configuring a multi-port CXL device 523 or 524.
[0102] The CXL port expander 511 may be implemented as a device or a module independent of the single-port CXL device 521 and connected to the single-port CXL device 521, and may function to expand the number of ports of the single-port CXL device 521 (from 1 to 4).
[0103] The CXL port expander 512 may be implemented as a device or a module independent of the multi-port CXL device 522 and connected to the multi-port CXL device 522, and may function to expand the number of ports of the multi-port CXL device 522 (from 2 to 4).
[0104] In this way, the CXL port expander implemented as a device or a module independent of a CXL device may be referred to as a spray module. Here, the CXL device and the CXL port expander may be collectively regarded as a multi-port CXL device.
[0105] The CXL port expander 513 may be implemented in the form of an internal chip for configuring the multi-port CXL device 523. In this way, when the CXL port expander 513 is implemented as the internal chip of the multi-port CXL device 523, it may be referred to as a spray chip.
[0106] The CXL port expander 514 may be implemented in the form of internal logic for configuring the multi-port CXL device 524. In this way, when the CXL port expander 514 is implemented as the internal logic of the multi-port CXL device 524, it may be referred to as a spray agent.
[0107] Schemes for implementing the CXL port expanders or schemes for connecting the CXL port expanders to the CXL devices are not limited to the example illustrated in FIG. 5, and various schemes may be used as the schemes.
[0108] Here, the CXL devices 521, 522, 523, and 524 illustrated in FIG. 5 may be CXL.cache devices.
[0109] The multi-port CXL devices or the CXL port expanders may need to support CXL features such as the ordering rule of CXL messages and memory interleaving.
[0110] Here, the implementation of the multi-port CXL devices may vary depending on the functions of network components connected through network topologies, such as a host, a host bridge, a root port, a CXL CPU, a CXL switch, and a CXL device.
[0111] In the present disclosure, description will be mainly made based on a method by which each multi-port CXL device can be implemented when each network component supports only the minimum functionality satisfying the CXL specification. That is, a case in which additional functions not specified in the CXL specification are not provided is mainly described, and examples implemented such that modification of an existing CXL specification is removed or minimized are mainly described.
[0112] However, when network components support some additional functions or when the CXL specification is partially modified, corresponding optimization may be achieved.
[0113] FIG. 6 is a diagram illustrating an ordering problem that may occur in a multi-port CXL device according to an embodiment of the present disclosure.
[0114] Referring to FIG. 6, it can be seen that messages A and B are transmitted from a multi-port CXL device 610 corresponding to a source to a multi-port CXL device 620 corresponding to a destination via paths provided through switches 630.
[0115] Each of the multi-port CXL devices 610 and 620 illustrated in FIG. 6 may be a CXL Type 1 device or a CXL Type 2 device, and may be a CXL CPU.
[0116] The switches 630 illustrated in FIG. 6 are simplified for convenience of description. The switches 630 for providing paths between the CXL devices 610 and 620 may form a fabric having a complicated structure, or may include switches having a hierarchical structure. Here, the switches 630 may include a Hierarchy-Based Routing (HBR) switch or a Port-Based Routing (PBR) switch.
[0117] In the example illustrated in FIG. 6, messages A and B may each be a CXL.io, CXL.cache or CXL.mem message.
[0118] When message A is transmitted first and then message B is transmitted from the CXL device 610, if the two messages A and B are transmitted through different paths, the two messages A and B may undergo different routing processes, and thus the order in which messages A and B arrive at the destination CXL device 620 may differ from the transmission order of the messages (e.g., message B may arrive earlier than message A). If ordering between messages A and B is required to be ensured, such a situation may be problematic because the ordering rule cannot be satisfied. In particular, in a multi-port situation, as illustrated in FIG. 6, merely transmitting messages through different ports results in different paths, and thus particular care is required to address such issues.
[0119] Among CXL messages, messages for which the ordering rule needs to be maintained are present.
[0120] That is, among messages defined by the CXL specification (e.g., CXL 3.2 specification) or messages defined by the PCIe specification (e.g., PCIe Base Specification Revision 6.3), messages for which the ordering rule needs to be maintained are present. In this case, the messages may be CXL.io, CXL.cache or CXL.mem messages.
[0121] For example, all Transaction Layer Packets (TLPs), other than Unordered I / O (UIO), need to maintain the ordering thereof.
[0122] For example, in the relationship between Host-to-Device Request (H2D Req) and H2D Response (H2D Rsp) in CXL Type 1 and Type 2 devices, an Snp* (Snoop) message, which is an H2D Req, may be required to push a Go* (Global Order) message.
[0123] For example, in association with a Master to Subordinate Request (M2S Req) in the case of Host-managed Device Memory - D (HDM-D) in the CXL Type 2 device, MemRd* and MemInv* messages, which are M2S Req messages, may be required to push a Mem*Fwd message, which is an M2S Req message.
[0124] For example, in association with Subordinate-to-Master Non-Data Response (S2M NDR) in the case of Host-managed Device Memory – DB (HDM-DB) in CXL Type 2 and Type 3 devices, a BIConflictAck message, which is an S2M NDR message, cannot pass a Cmp* message, which is an S2M NDR message previously transmitted to the same address.
[0125] Therefore, in particular, a multi-port CXL device may distinguish messages that are required to maintain such an ordering rule from messages that are not required to maintain the ordering rule, and may determine ports for transmitting the corresponding messages in different ways.
[0126] For example, when the CXL device transmits a Transaction Layer Packet (TLP) other than a Unordered I / O (UIO) packet, it may be determined that the TLP desired to be transmitted has a dependency on a previously transmitted TLP, and the same port as that used to transmit the previously transmitted TLP may be determined as the transmission port of the corresponding TLP.
[0127] For example, when the CXL Type 1 and Type 2 devices transmit a Snp*(Snoop) message, which is a H2D Req, it may be determined that the Snp* message desired to be transmitted has a dependency on a Go* message, which is a previously transmitted H2D Rsp, and the same port as that used to transmit the previously transmitted Go* message may be determined as the transmission port of the corresponding Snp* message.
[0128] For example, when the CXL Type 2 device transmits a MemRd* or MemInv* message, which is an M2S Req, it may be determined that the MemRd* or MemInv* message desired to be transmitted has a dependency on the previously transmitted Mem*Fwd message, and the same port as that used to transmit the previously transmitted Mem*Fwd message may be determined as the transmission port of the corresponding MemRd* or MemInv* message.
[0129] For example, when the CXL Type 2 and Type 3 devices transmit a BIConflictAck message, which is an S2M NDR, it may be determined that the BIConflictAck message desired to be transmitted has a dependency on a Cmp* message, which is an S2M NDR previously transmitted to the same address, and the same port as that used to transmit the previously transmitted Cmp* message may be determined as the transmission port of the corresponding BIConflictAck message.
[0130] As described above, when it is determined that the message desired to be transmitted does not have a dependency on other previously transmitted messages, the multi-port CXL device may determine a port through which the message is to be transmitted among multiple ports based on various policies such as a modular policy or a round robin policy.
[0131] Here, the determination of whether a dependency exists may be made in consideration of a transmission / reception history of messages desired to be transmitted. For example, when a message, for which ordering needs to be maintained with respect to the message to be currently transmitted, is included among previously transmitted messages, the message to be currently transmitted may be determined to have a dependency. For example, when a message, for which ordering needs to be maintained with respect to the message to be currently transmitted, is not included among the previously transmitted messages, the message to be currently transmitted may be determined to have no dependency.
[0132] If the multi-port CXL device randomly transmits messages through various ports without considering a dependency, maintaining an ordering rule defined in specifications such as the CXL specification may be impossible or impose an excessive load. Therefore, when presence of a dependency is determined and some of messages to be transmitted are transmitted through the same port as the transmission or reception port of related messages, the likelihood of serious issues occurring may be significantly reduced.
[0133] Hereinafter, situations to be considered in the multi-port CXL device or port expander will be described in detail.
[0134] First, situations to be considered in a multi-port CXL device or a CXL port expander corresponding to a CXL Type 1 or 2 device that uses CXL.cache will be described.
[0135] In a case in which a CXL message is received from an external system by a port expander or a CXL device with multiple ports attached thereto (H2D), a H2D Req may be a CXL message used when a host attempts to snoop a specific memory address in a CXL.cache device.
[0136] According to implementation of the host, it may be possible to independently generate Unique Queue ID (UQID) values of an Upstream to Device (U2D) Request (Req) for respective root ports, or generate the UQID values on a per-host basis, on a per-host bridge basis, or on a per-device basis corresponding to other devices. The case where UQID values are independently generated for respective root ports is the case where the host provides the minimum functionality, and defining the functions of the multi-port CXL device or the CXL port expander based on the assumption of this case may be advantageous in terms of compatibility. In this case, UQID values of separate H2D Req messages received through different ports among multiple ports of the multi-port CXL device or the CXL port expander may be identical to each other. That is, since messages are transmitted through different ports, (separate) H2D Req messages corresponding to different transactions may be transmitted by unintentionally utilizing the same UQID value when UQID values are generated on a per-port basis. The multi-port CXL device or CXL port expander may recognize such a situation as a port conflict, and may change the UQIDs of at least some of H2D Req messages so that H2D Req messages corresponding to the port conflict use non-duplicated UQIDs. Therefore, the multi-port CXL device or CXL port expander may include a remapper for remapping transaction identification information such as a Unique Queue ID (UQID), a Command Queue ID (CQID) or a tag. Here, if the multi-port CXL device is regarded as including the CXL port expander, respective ports connected to downstream ports of the CXL port expander should be processed to receive non-duplicated UQIDs (transaction identification information), and a transaction identification information remapper, which is shared by each, some, or all of these ports, may be included in the CXL port expander. Here, the remapper may newly generate UQID so that ports under management do not receive the same UQID, and may change the UQID value of the U2D Req to the newly generated value. Thereafter, in order to deliver a message such as a Device-to-Host Response (D2H Rsp) in conformity with ordering, the multi-port CXL device or the CXL port expander may need to store or manage information such as a port through which a Host-to-Device Request (H2D Req) message is received, a previous UQID value, and a changed UQID value. When the UQID of one of two messages for which a UQID conflict occurs is changed to another UQID, messages having different UQIDs are processed in a subsequent stage. When a message including UQID is received in a subsequent stage, the multi-port CXL device or the port expander may determine whether the received UQID is the UQID generated and allocated by the multi-port CXL device or the port expander, replace the UQID with its original UQID, and transmit the message including the original UQID through an upstream path.
[0137] If an additional function is provided from the host, and the UQID value of U2D Req can be generated on a per-host basis, a per-host bridge basis, or a per-device basis corresponding to other devices, there may be no concern about the occurrence of a port conflict described above. That is, in this case, messages using appropriately different UQID values may be transmitted, and thus a receiving side that receives the messages need not be concerned about UQID conflicts. Information related to such an additional function may be shared with network components explicitly or implicitly by a fabric manager. In this case, it may be ensured that the UQID values of separate U2D Req messages received through respective multiple ports connected to the outside of the multi-port CXL device or the CXL port expander are not duplicated. Therefore, a UQID remapping process may be unnecessary, and optimization such as reducing information to be stored and managed, for example, ports and UQID values, may be achieved.
[0138] When a CXL message is received from an external system by the CXL port expander or multi-port CXL device with multiple ports attached thereto (H2D), H2D Rsp and H2D Data may be messages corresponding to the response of the host to D2H Req, which is a request transmitted from the device, and data. In this case, when transmitting a Device-to-Host Request (D2H Req), the device already selects a port and transmits the D2H Req through the selected port, and thus the host may transmit the H2D Rsp and H2D Data through the corresponding port. Therefore, the multi-port CXL device or the CXL port expander may simply forward the H2D Rsp and the H2D Data received through each port to a subsequent stage without change. However, in the case of H2D Rsp having a UQID value, the same issue as H2D Req may be shared, and thus there may be a need to equally apply remapping of the UQID value. This may also become unnecessary as the host provides an additional function to apply optimization.
[0139] When a CXL message is transmitted to an external system from the multi-port CXL device or CXL port expander (D2H), D2H Req may be a CXL message that is transmitted when the CXL.cache device desires to access the cache, memory or host-attached device memory of the host.
[0140] The multi-port CXL device or CXL port expander that transmits the D2H Req message may select a transmission port based on the value of a memory address field specified in the message. Here, the port through which the D2H Req message is to be transmitted may be selected using various policies such as a modular policy or a round robin policy. When the round robin policy is used, a method of separately maintaining and managing information, such as memory addresses and ports, mapping relationships or the like, may be additionally applied to ensure that the D2H Req for the same memory address be transmitted through the same port. When the port is selected based on the memory address value in this way, the host transmits H2D Req, H2D Rsp or H2D Data through a root port through which the D2H Req is received, and thus ordering of CXL.cache messages may be ensured.
[0141] Meanwhile, when a cache operation in a connected CXL device is normally performed as required by the CXL specification, and functions such as appropriately processing an H2D Req message received while waiting for an H2D Rsp message after a D2H Req message has been transmitted are guaranteed, the CXL port expander may transmit the D2H Req through any one of externally connected ports.
[0142] When a CXL message is transmitted from the multi-port CXL device or the CXL port expander to the external system (D2H), D2H Rsp and D2H Data may be CXL messages that are transmitted from the device in response to the request from the host. Here, the multi-port CXL device or the CXL port expander may forward the D2H Rsp and D2H Data through the port through which the H2D Req or H2D Rsp has been received. That is, the D2H Rsp or the D2H Data has a dependency on the H2D Req or H2D Rsp that is a previously transmitted or received message in consideration of a message transmission / reception history, and thus a port corresponding to the H2D Req or H2D Rsp, which is a message corresponding to dependency, may be determined to be the port through which the D2H Rsp or D2H Data is to be transmitted. Here, the provided D2H Rsp and D2H Data (received from the CXL device in the case of the port expander, or internally generated in the case of the multi-port CXL device) may include a UQID field for identifying which H2D Req or H2D Rsp the D2H Rsp and D2H Data respond to. Here, a UQID value recorded in the UQID field may be a remapped value, and, in this case, the multi-port CXL device or the CXL port expander may, based on the UQID value, retrieve information about an original UQID and an original port, stored during a remapping process, change the UQID value to the original UQID value based on the retrieved information, and transmit the D2H Rsp and D2H Data messages through the original port. In this case, since the host receives the D2H Req and D2H Data through the root port through which the H2D Req has been transmitted, ordering of the CXL.cache may be ensured.
[0143] When the host allocates UQID values on a per-device basis other than on a per-root port basis, remapping of the UQID values may not be performed, and in this case, it is sufficient to properly perform only port selection. When, on the host side, it is possible to perform processing such as routing D2H Rsp and D2H Data, which are received through a root port different from the root port used for transmission, to the root port used for transmission based on the UQID values, no problems may occur even if D2H Rsp and D2H Data are transmitted through any port among all or some ports.
[0144] Next, situations to be considered in a multi-port CXL device or a CXL port expander corresponding to a CXL Type 2 or 3 device that uses CXL.mem will be described.
[0145] When a CXL message is received from an external system by the CXL port expander or multi-port CXL device with multiple ports attached thereto (M2S), Master to Subordinate Request (M2S Req) and Master to Subordinate Read with Data (M2S RwD) may be memory access request messages transmitted from a master to a subordinate.
[0146] Depending on the implementation of the host, tags of the M2S Req and M2S RwD may be independently generated for respective root ports, or may be generated on a per-host basis, a per-host bridge basis, or a per-device basis corresponding to other devices. The case where tag values are independently generated for respective root ports is the case where the host provides the minimum functionality, and defining the functions of the multi-port CXL device or the CXL port expander based on the assumption of this case may be advantageous in terms of compatibility. In this case, tag values of separate M2S Req and M2S RwD messages received through different ports among multiple ports of the multi-port CXL device or the CXL port expander may be identical to each other. That is, since messages are transmitted through different ports, (separate) M2S Req messages or M2S RwD messages corresponding to different transactions may be transmitted by unintentionally utilizing the same tags when tag values are generated on a per-port basis. The multi-port CXL device or CXL port expander may recognize such a situation as a port conflict, and may change the tags of at least some of M2S Req or M2S RwD messages so that the M2S Req or M2S RwD messages corresponding to the port conflict use non-duplicated tags. Therefore, the multi-port CXL device or CXL port expander may include a remapper for remapping transaction identification information such as a Unique Queue ID (UQID), a Command Queue ID (CQID) or a tag. Here, if the multi-port CXL device is regarded as including the CXL port expander, respective ports connected to downstream ports of the CXL port expander should be processed to receive non-duplicated tags (transaction identification information), and a transaction identification information remapper, which is shared by each, some, or all of these ports, may be included in the CXL port expander. Here, the remapper may newly generate a tag so that ports under management do not receive the same tag, and may change the tag value of the M2S Req or M2S RwD to the newly generated value. Thereafter, in order to deliver messages such as Subordinate to Master Non-Data Response (S2M NDR) or Subordinate to Master Data Response (S2M DRS) messages in conformity with ordering, the multi-port CXL device or the CXL port expander may need to store or manage information such as the port through which the M2S Req or M2S RwD message is received, a previous tag value, and a changed tag value. When the tag of one of two messages in which a tag conflict occurs is changed to another tag, messages having different tags are processed in a subsequent stage. When a message including the tag is received in a subsequent stage, the multi-port CXL device or the port expander may determine whether the received tag is the tag generated and allocated by the multi-port CXL device or the port expander, replace the tag with its original tag, and transmit the message through an upstream path. However, in the case of the M2S RwD message, before the remapping process is performed, whether messages including the same tag have been transmitted through a root port may be determined. When the messages have been transmitted, the tag of the corresponding message is changed to a newly allocated tag, and the message including the newly allocated tag may be delivered to a subsequent stage. Therefore, the remapper needs to internally maintain a count and manage when to deallocate the corresponding information, and various schemes may be applied for specific implementation methods and detailed operations.
[0147] If an additional function is provided from the host and then the tag value of M2S Req or M2S RwD can be generated on a per-host basis, a per-host bridge basis, or a per-device basis corresponding to other devices, there may be no concern about the occurrence of a port conflict described above. That is, in this case, messages using appropriately different tag values may be transmitted, and thus a receiving side that receives the messages need not be concerned about tag conflicts. Information related to such an additional function may be shared with network components explicitly or implicitly by a fabric manager. In this case, it may be ensured that the tag values of separate M2S Req or M2S RwD messages received through respective multiple ports connected to the outside of the multi-port CXL device or the CXL port expander do not overlap. Therefore, a tag remapping process may be unnecessary, and optimization such as reducing information to be stored and managed, for example, ports and tag values, may be achieved. However, when memory interleaving is set, address translation corresponding to interleaving rules may not be performed.
[0148] When a CXL message is received from an external system by the CXL port expander or the multi-port CXL device with multiple ports attached thereto (H2D), M2S Back-Invalidate Response (BIRsp) may be a response to an S2M Back Invalidate Snoop (BISnp) message transmitted from the subordinate to the master. In this case, when the BISnp message is transmitted, the subordinate already selects a port and transmits the BISnp message through the port, and thus the host may also transmit the M2S BIRsp through the corresponding port. Therefore, the multi-port CXL device or the CXL port expander may forward the M2S BIRsp message, received through each port, to a subsequent stage without change.
[0149] When a CXL message is transmitted to an external system from the multi-port CXL device or the CXL port expander (S2M), an S2M BISnp message may be a snoop request message that is transmitted from the subordinate to the master, and may contain a memory address to be snooped. The multi-port CXL device or CXL port expander that transmits the S2M BISnp message may select a transmission port based on the value of a memory address field specified in the S2M BISnp message. In this case, because the multi-port CXL device or the CXL port expander is aware of HDM decoder information related to root ports or switches connected to externally connected ports, ports through which the S2M BISnp message is to be transmitted may be known. In addition, when a snoop filter is separately managed for each root port, transmission of BISnp messages may be minimized. Further, the multi-port CXL device or the CXL port expander may be aware of a memory interleaving configuration. Here, the memory interleaving configuration may be information necessary to calculate ports such as an interleaving unit, and may be provided by system software of the host. The reason for this is that a port through which the corresponding message is to be transmitted may be determined by utilizing interleaving configuration and port count information based on a snoop target address included in the S2M BISnp message. Because BITag is generated by a subordinate device, the likelihood of duplicated generation may not be present. Therefore, remapping may not be separately performed, and the host transmits the M2S Rsp message through the root port through which the S2M BISnp message is received, thus ensuring ordering of CXL.mem messages. If, on the host side, it is possible to perform processing, such as routing the S2M BISnp message, which is received through another root port, to a root port to be processed based on a memory address, no problems may occur even if the S2M BISnp message is transmitted through any port among all or some ports.
[0150] When a CXL message is transmitted to an external system from the multi-port CXL device or the CXL port expander (S2M), S2M NDR may be a response that is transmitted from the subordinate to the master and that does not include data. The multi-port CXL device or CXL port expander that transmits the S2M NDR message may forward the S2M NDR message to the port through which the M2S Req or M2S RwD message has been received. That is, considering a message transmission / reception history, the S2M NDR has a dependency on the M2S Req or M2S RwD that is a previously transmitted or received message, and thus the port corresponding to M2S Req or M2S RwD that is the message corresponding to the dependency may be determined to be a port through which the S2M NDR is to be transmitted. Here, the provided S2M NDR (i.e., received from the CXL device in the case of a port expander, and internally generated in the case of the multi-port CXL device) may include a Tag field for identifying which M2S Req or M2S RwD the corresponding S2M NDR responds to. Here, a tag value recorded in the tag field may be a remapped value, and, in this case, the multi-port CXL device or the CXL port expander may, based on the tag value, retrieve information about an original tag and an original port, stored during a remapping process, change the tag value to the original tag value based on the retrieved information, and transmit the M2S NDR message through the original port. In this case, since the master receives the S2M NDR message through the port through which the M2S Req or M2S RwD has been transmitted, ordering of CXL.mem may be ensured.
[0151] When the host allocates tag values on a per-device basis other than on a per-root port basis, remapping of the tag values may not be performed, and in this case, it is sufficient to properly perform only port selection. Even if, on the host side, it is possible to perform processing such as routing a related S2M NDR, received through a root port different from the root port used to transmit the M2S Req or RwD, to the root port used to transmit the M2S Req or RwD based on the tag value, it may be safer to transmit the S2M NDR to the original port through which the M2S Req or RwD request is received to maintain ordering between Cmp* and BIConflictAck.
[0152] When a CXL message is transmitted to an external system from the multi-port CXL device or the CXL port expander (S2M), S2M DRS may be a response that is transmitted from the subordinate to the master and that includes data. The multi-port CXL device or CXL port expander that transmits the S2M NDR message may forward the S2M NDR message to the port through which the M2S Req or M2S RwD message has been received. That is, considering a message transmission / reception history, the S2M DRS has a dependency on the M2S Req or M2S RwD that is a previously transmitted or received message, and thus the port corresponding to M2S Req or M2S RwD that is the message corresponding to the dependency may be determined to be a port through which the S2M DRS is to be transmitted. Here, the provided S2M DRS (i.e., received from the CXL device in the case of the port expander, and internally generated in the case of the multi-port CXL device) may include a Tag field for identifying which M2S Req or M2S RwD the corresponding S2M NDR responds to. Here, a tag value recorded in the tag field may be a remapped value, and, in this case, the multi-port CXL device or the CXL port expander may, based on the tag value, retrieve information about an original tag and an original port, stored during a remapping process, change the tag value to the original tag value based on the retrieved information, and transmit the M2S DRS message to the original port. In this case, since the master receives the S2M DRS message through the port through which the M2S Req or M2S RwD has been transmitted, ordering of CXL.mem may be ensured.
[0153] When the host allocates tag values on a per-device basis other than on a per-root port basis, remapping of the tag values may not be performed, and in this case, it is sufficient to properly perform only port selection. When, on the host side, it is possible to perform processing such as routing a related S2M DRS, received at a root port different from the root port used to transmit the M2S Req or RwD, to the root port used to transmit the M2S Req or RwD based on the tag value, no problems may occur even if the S2M DRS message is transmitted through any port among all or some ports.
[0154] Next, situations to be considered in a multi-port CXL device or a CXL port expander that uses CXL.io will be described.
[0155] When a CXL message is received from an external system by the CXL port expander or the multi-port CXL device with multiple ports attached thereto, an Unordered I / O (UIO) Transaction Layer Packet (TLP) is a message type introduced to relax limitations of conventional PCI / PCIe ordering rules. Since IDs of entities that transmit the TLP are different, message ordering may not be required to be ensured. Therefore, because completer / requester IDs are different, it may be sufficient to forward the corresponding message to a subsequent stage without remapping of transaction identification information (Unique Queue ID (UQID), Command Queue ID (CQID) or tag), unlike the foregoing CXL.cache or CXL.mem. In this case, IDs may be identical to each other depending on the configuration of Virtual Hierarchy (VH), but, generally, respective VH configurations in a single system have different bus number ranges, and thus IDs may not overlap each other.
[0156] When a CXL message is transmitted to an external system from the multi-port CXL device or the CXL port expander, Unordered I / O (UIO) Transaction Layer Packets (TLP) do not need to ensure message ordering, as described above, thus enabling messages to be transmitted through any port.
[0157] FIG. 7 is a block diagram illustrating an example of a multi-port CXL device according to an embodiment of the present disclosure.
[0158] Referring to FIG. 7, the multi-port CXL device according to an embodiment of the present disclosure may include multiple ports 705-1, 705-2, ..., 705-N, a message processor 710, a transmission port selector 720, and a remapper 730.
[0159] The multiple ports 705-1, 705-2, ..., 705-N receive CXL messages from an external system, or transmit CXL messages to the external system.
[0160] The message processor 710 may process CXL messages, received through one or more of the multiple ports 705-1, 705-2, ..., 705-N, and may perform operations required for message processing. Here, the message processor 710 may process the received messages, and may perform various operations required in the CXL specification or the like to generate messages corresponding to responses to the received messages.
[0161] According to an embodiment, the message processor 710 may forward the received CXL messages to a subsequent CXL device (which may be a single-port CXL device). Here, the message processor 710 may modify at least some of the CXL messages and deliver the modified messages to a subsequent CXL device. In this case, a multi-port CXL device 700 illustrated in FIG. 7 may be regarded as a CXL port expander. That is, FIG. 7 may be a block diagram illustrating an example of the CXL port expander 700 according to an embodiment of the present disclosure.
[0162] The transmission port selector 720 determines a transmission port through which a current transmission message is to be transmitted among the multiple ports 705-1, 705-2, ..., 705-N based on the dependency of the current transmission message, which is determined in consideration of a message transmission / reception history.
[0163] Here, the transmission port selector 720 may determine the transmission port using one of multiple port selection schemes.
[0164] Here, the dependency may be determined based on ordering association of the current transmission message with one or more of previously transmitted / received messages. For example, when the current transmission message is a D2H Rsp, the D2H Rsp may be determined to have a dependency on an H2D Req that is a previously received message. For example, when the current transmission message is a D2H Req, it may be determined that the message is distinguished from previously transmitted / received messages, and thus it may be determined that a dependency on the previously transmitted / received messages is not present.
[0165] Here, the multiple port selection schemes may include a first scheme corresponding to a case in which the dependency is present and a second scheme corresponding to a case in which the dependency is not present. In this case, the multiple port selection schemes may further include other port selection schemes such as a third scheme or a fourth scheme.
[0166] Here, the first scheme may determine the same port as a previous port corresponding to the dependency as the transmission port so that transaction ordering is ensured, and the second scheme may determine one of the multiple ports as the transmission port in a manner different from the first scheme.
[0167] For example, when the current transmission message is a D2H Rsp, the D2H Rsp may be determined to have a dependency on the H2D Req that is a previously received message, and the port may be selected using the first scheme. Here, the previous port corresponding to the dependency may be a port through which the H2D Req is received. That is, the previous port corresponding to the dependency may be a port through which the previously transmitted / received message corresponding to the dependency has been transmitted or received.
[0168] For example, the second scheme may select a port depending on the value of a memory address field included in the current transmission message. Here, the port may be selected based on various policies such as a modular or round robin policy. That is, the second scheme may determine the transmission port in consideration of an address corresponding to the current transmission message.
[0169] The remapper 730, which is a transaction identification information remapper, may be configured to, when a port conflict occurs among messages received from one or more of the multiple ports, change transaction identification information of at least one of messages in which the same transaction identification information (e.g., Unique Queue ID (UQID), Command Queue ID (CQID), or a tag) is used among the received messages.
[0170] Here, a port conflict may be detected depending on whether a unique transaction identification information condition is satisfied. That is, a port conflict may be detected based on whether transaction identification information of CXL messages received through different ports is duplicated.
[0171] When a situation such as duplication of transaction identification information of CXL messages received through the multiple ports unintentionally occurs, the remapper 730 may change at least a portion of the duplicated transaction identification information so that a unique transaction identification information condition is satisfied.
[0172] FIG. 8 is an operation flowchart illustrating a method in which a multi-port CXL device transmits / receives CXL messages according to an embodiment of the present disclosure.
[0173] Referring to FIG. 8, the method for transmitting / receiving CXL messages according to the embodiment of the present disclosure determines a dependency of a current transmission message in consideration of a message transmission / reception history at step S810.
[0174] Further, the method for transmitting / receiving CXL messages according to the embodiment of the present disclosure determines a transmission port through which the current transmission message is to be transmitted among the multiple ports of the multi-port CXL device based on the dependency at step S820.
[0175] Here, at step S820, the transmission port may be determined using one of multiple port selection schemes.
[0176] Here, the multiple port selection schemes may include a first scheme corresponding to a case in which the dependency is present and a second scheme corresponding to a case in which the dependency is not present. In this case, the multiple port selection schemes may further include other port selection schemes such as a third scheme or a fourth scheme.
[0177] Here, the first scheme may determine the same port as a previous port corresponding to the dependency as the transmission port so that transaction ordering is ensured, and the second scheme may determine one of the multiple ports as the transmission port in a manner different from the first scheme.
[0178] Furthermore, the method for transmitting / receiving CXL messages according to the embodiment of the present disclosure transmits the current transmission message through the transmission port at step S830.
[0179] Although not explicitly illustrated in FIG. 8, the method for transmitting / receiving CXL messages according to the embodiment of the present disclosure may further include the step of, when a port conflict between messages received from one or more of the multiple ports occurs, changing transaction identification information of at least one of the messages in which the same transaction identification information (Unique Queue ID (UQID), Command Queue ID (CQID) or tag) is used among the received messages.
[0180] Here, a port conflict may be detected depending on whether a unique transaction identification information condition is satisfied. That is, a port conflict may be detected based on whether transaction identification information of CXL messages received through different ports is duplicated.
[0181] The step of changing the transaction identification information of at least one of the messages in which transaction identification information (e.g., Unique Queue ID (UQID), Command Queue ID (CQID) or tag) is used, among the received messages, when a situation in which transaction identification information of CXL messages received through multiple ports is duplicated unintentionally occurs, may change at least a portion of the duplicated transaction identification information so that the unique transaction identification information condition is satisfied.
[0182] Individual steps illustrated in FIG. 8 may be performed in the order illustrated in FIG. 8, in reverse order, or simultaneously.
[0183] FIG. 9 is a diagram illustrating an example of a CXL host device according to an embodiment of the present disclosure.
[0184] Referring to FIG. 9, a CXL host device 900 according to an embodiment of the present disclosure includes multiple root ports 910-1, 910-2, 910-3, and 910-4 and a cross-port dispatcher 920.
[0185] Transmission messages transmitted from the CXL host device 900 or reception messages received by the CXL host device 900 are transmitted or received through the multiple root ports 910-1, 910-2, 910-3, and 910-4.
[0186] The cross-port dispatcher 920 identifies an association between a reception message corresponding to a transmission message transmitted through a transmission root port, which is one of the multiple root ports 910-1, 910-2, 910-3, and 910-4, and the transmission root port.
[0187] In particular, in a multi-port environment, a reception message corresponding to a response to a transmission message transmitted through the transmission root port 910-1 (RP #0), which is one of the multiple root ports 910-1, 910-2, 910-3, and 910-4, may be received through the root port 910-3 (RP #2) different from the transmission root port 910-1 (RP #0).
[0188] In this case, the association may be identified even in a case in which the reception root port 910-3 (RP #2) through which the reception message is received is different from the transmission root port 910-1 (RP #0).
[0189] In this way, when associated messages are transmitted / received using different ports, confusion in the operation of the CXL host device or the like, or an inefficient operation may be caused. For example, in the multi-port environment, with respect to ordering of CXL.mem, an S2M DRS or S2M NDR may be received through a root port different from a root port through which an M2S Req has been transmitted. Therefore, the CXL host device needs to be capable of recognizing a response received through a root port other than the root port used to transmit the request as a response to the request.
[0190] In the example illustrated in FIG. 9, a message corresponding to the request is transmitted through the root port 910-1 (RP #0), and a message corresponding to a response to the request is received through the root port 910-3 (RP #2) (S910).
[0191] The reception message received through the root port 910-3 (RP #2) is provided to the cross-port dispatcher 920 (S920).
[0192] Here, the association may be identified based on transaction identification information included in the reception message.
[0193] The cross-port dispatcher 920 may obtain transaction identification information 930 included in the reception message, and may identify the root port 910-1 (RP #0) using root port identification information (e.g., port ID) included in the transaction identification information 930 (S930).
[0194] Here, the transaction identification information 930 may be Unique Queue ID (UQID), Command Queue ID (CQID) or tag. Here, the transaction identification information 930 may be obtained by additionally including the port identification information in the existing Unique Queue ID (UQID), Command Queue ID (CQID) or tag. Here, the port identification information may be included in some bits of the transaction identification information 930, wherein some bits may be reserved bits.
[0195] That is, the association may be identified based on whether the root port identification information contained in the transaction identification information 930 included in the reception message corresponds to the transmission root port 910-1 (RP #0).
[0196] Consequently, the reception message is received through the root port 910-3 (RP #2), but the cross-port dispatcher 920 may identify the association between the reception message and the root port 910-1 (RP #0), and thus it can be determined that the reception message is related to the transmission message that is transmitted through the root port 910-1 (RP #0).
[0197] Here, the transaction identification information 930 included in the reception message may be generated based on the transaction identification information included in the transmission message.
[0198] Here, when the reception root port 910-3 (RP #2) is different from the transmission root port 910-1 (RP #0), the reception message may be forwarded to the transmission root port 910-1 (RP #0).
[0199] Here, the transaction identification information 930 included in the reception message may include activation information indicating whether an association identification operation of identifying the association is activated. In the example illustrated in FIG. 9, it can be seen that the transaction identification information 930 includes activation information of 0 (indicating that the association identification operation has been activated).
[0200] Even if a response message to a request message that is transmitted through a specific root port is input through a root port other than the corresponding root port, it is possible to identify an appropriate root port by the association identification operation of the cross-port dispatcher 920. For example, the cross-port dispatcher 920 may identify, using a transaction identifier of an input S2M response packet, which request the input S2M response packet corresponds to, and may forward the S2M response packet to an original requester (core). Here, the cross-port dispatcher 920 may correspond to a hardware component that aggregates all S2M packets to a central point in a crossbar form.
[0201] Such an association identification operation may be activated or deactivated.
[0202] When the association identification operation is activated, the host may identify a root port related to a response even if the response is input through any of the root ports of the CXL host device.
[0203] When the association identification operation is deactivated, it may be difficult for the CXL host device to appropriately process a response that is received through a root port different from the root port through which the message has been transmitted. Therefore, when the association identification operation is deactivated, normal processing may be possible only when the response is received through the same root port as the root port through which the message has been transmitted. A scheme for determining a port in consideration of such message dependency has been described above.
[0204] By enabling activation and deactivation of the association identification operation to be selectively applied, overhead required for tracking may be eliminated according to a situation, and a burden on the host or device operation may be selectively adjusted.
[0205] FIG. 10 is a diagram illustrating an example of transaction identification information according to an embodiment of the present disclosure.
[0206] Referring to FIG. 10, it can be seen that transaction identification information 1000 includes activation information 1010 indicating whether an association identification operation is activated, and port identification information 1020.
[0207] For example, the activation information 1010 may be 1-bit information, and it is possible to determine, based on the activation information, whether port identification information (port ID) is included in the corresponding transaction identification information.
[0208] For example, a case in which the activation information 1010 is 0 may indicate activation of the association identification operation, and thus it may be possible to check the port identification information and determine a root port from which a request is received.
[0209] For example, a case in which the activation information 1010 is 1 may indicate deactivation of the association identification operation, and a response to the request may be required to be received through the same port as that of the request. Here, when the association identification operation is deactivated, the reception root port may be treated as the transmission root port. That is, when the association identification operation is deactivated, a request message corresponding to a response message may be considered to have been transmitted through the receiving root port. In this case, the association identification operation may be deactivated by the cross-port dispatcher.
[0210] Although the activation information 1010 is illustrated as being included at the beginning of the transaction identification information in the example illustrated in FIG. 10, the position of the activation information is not limited thereto.
[0211] When intending to appropriately process a case in which a response message to a specific message is received through another root port, the CXL host device may set the activation information 1010 of the transaction identification information included in the corresponding message to 0.
[0212] The transaction identification information included in the response message is generated based on transaction identification information included in the request message. Accordingly, when receiving the response message and activation information of the transaction identification information included in the response message is 0, the CXL host device may perform root port tracking with reference to port identification information and then transmit a reception message to a root port used to request the message.
[0213] The transaction identification information such as a tag may be allocated on a per-root port basis, a per-host bridge basis, or a per-root complex basis. For example, when the transaction identification information is allocated on a per-root port basis, the transaction identification information may be uniquely allocated within the root port, but there may occur a case in which the same transaction identification information is allocated from other root ports. Here, when root port identification information corresponding to a root port identifier (RP physical port ID) is included in the transaction identification information, differentiation from transaction identification information generated from other root ports may be ensured. In this way, transaction identification information including information indicating a root port from which a request is transmitted may be referred to as global transaction identification information. Here, the root port identification information may be inserted into an appropriate bit field of the transaction identification information while maintaining the existing bit width (i.e., the original number of bits) of the transaction identification information. Here, the root port identification information may also be inserted into a reserved field of the transaction identification information.
[0214] According to an embodiment, a single global M2S request table covering the entire root complex may be maintained. In this case, the global M2S request table may be equipped with a queue having an appropriate length to control the number of manageable M2S requests. In this case, the appropriate length may be determined in consideration of traffic occurring in the system and the number of requests that can be concurrently processed (in a situation in which S2M responses to the M2S requests have not yet been received). When there is high traffic, some messages may disable the association identification operation by setting activation information thereof to 1, thereby eliminating the need for association management.
[0215] According to an embodiment, M2S requests generated from all root ports may be managed in a queue having a defined depth. Here, the number of M2S requests being concurrently processed (in a situation in which S2M responses to M2S requests are not yet received) may be limited, and thus it is possible to prevent issues that may occur when the system exceeds the maximum concurrent processing capacity thereof. For example, in a system with the maximum concurrent processing capacity of 100, if 60 requests are transmitted from root port 1 and 60 requests are transmitted from root port 2, the system may fail to handle responses to the requests (messages) that exceed the capacity.
[0216] Therefore, by activating the association identification operation for specific messages and deactivating the association identification operation for other messages, such a concurrent processing issue may be solved. With respect to a message for which the association identification operation is activated, the CXL host device should be able to properly identify the association regardless of which port the response is received through. With respect to a message for which the association identification operation is deactivated, it should be ensured that the response from the CXL device is received through the same port as the transmission root port.
[0217] FIG. 11 is a diagram illustrating a process in which an M2S Request (Req) is transmitted from a CXL host device to a multi-port CXL device.
[0218] Referring to FIG. 11, it can be seen that an M2S Req message is transmitted from a CXL host device 1110 having multiple root ports 1111-1, 1111-2, 1111-3, and 1111-4 to a multi-port CXL device 1120 having multiple ports 1121-1, 1121-2, 1121-3, and 1121-4.
[0219] Here, the multi-port CXL device 1120 may be a CXL port expander, which may be connected to a CXL device (single-port CXL device) through a port 1123.
[0220] In the example illustrated in FIG. 11, the M2S Req message may be transmitted from the CXL host device 1110 through the root port 1111-1, and may be received by the multi-port CXL device 1120 through the port 1121-1. Here, the M2S Req message received by the multi-port CXL device 1120 may include an address of 0x0123_4567 corresponding to the root port 1111-1 and also include transaction identification information (a tag of Ox12FF).
[0221] As described above, the port information or transaction identification information of the received message may be stored in a mapping table, and the information stored in the mapping table may be used to transmit a response message.
[0222] Although not explicitly illustrated in FIG. 11, the CXL host device 1110 may include a cross-port dispatcher that identifies an association between a reception message corresponding to a transmission message transmitted through the transmission root port 1111-1, which is one of the multiple root ports 1111-1, 1111-2, 1111-3, and 1111-4, and the transmission root port 1111-1. That is, when the association identification operation is activated, the CXL host device 1110 illustrated in FIG. 11 is capable of identifying the association between a received response message and the root port 1111-1 even if a response message to the message transmitted through the root port 1111-1 is received through any one of other root ports 1111-2, 1111-3, and 1111-4.
[0223] FIG. 12 is a diagram illustrating a process in which an S2M DRS is transmitted from a multi-port CXL device to a CXL host device.
[0224] Referring to FIG. 12, it can be seen that an S2M DRS message is transmitted from a multi-port CXL device 1120 having multiple ports 1121-1, 1121-2, 1121-3, and 1121-4 to a CXL host device 1110 having multiple root ports 1111-1, 1111-2, 1111-3, and 1111-4.
[0225] Here, the multi-port CXL device 1120 may be a CXL port expander, and may generate the S2M DRS message based on data received from a CXL device (single- port CXL device) through a port 1123.
[0226] Here, information stored in a mapping table may be used to generate information that is included in the S2M DRS message.
[0227] When the association identification operation is not activated, the host may appropriately process the S2M DRS message only when the S2M DRS message is transmitted through the root port 1111-1 through which an S2M Req message corresponding to the S2M DRS message has been transmitted. Therefore, the multi-port CXL device 1120 may enable the S2M DRS message to be transmitted to the port 1121-1 through which the S2M Req message has been received, via a path 1210. Here, the path 1210 may be a path corresponding to the port 1121-1 and the root port 1111-1, which are connected to each other. For this, the multi-port CXL device 1120 needs to store the port number through which the M2S Req has been received in the mapping table, and to select a port with reference to the port number when generating a response.
[0228] The transmission port selector 720 illustrated in FIG. 7 may determine a transmission port through which a current transmission message is to be transmitted among the multiple ports based on whether the association identification operation is activated.
[0229] Here, the association identification operation may be an operation of identifying an association between a transmission root port through which the host transmits a transmission message and a reception message received by the host in response to the transmission message.
[0230] Here, the transmission port selector may determine the transmission port using one of multiple port selection schemes including a first scheme corresponding to a case in which the association identification operation is activated and a second scheme corresponding to a case in which the association identification operation is not activated.
[0231] Here, the first scheme may determine one of the multiple ports as the transmission port without considering a dependency of the current transmission message, the dependency being determined in consideration of a message transmission / reception history, and the second scheme may determine one of the multiple transmission ports as the transmission port in consideration of the dependency. Both the first scheme and the second scheme described above in FIG. 8 or the like may correspond to the second scheme described in relation to the association identification operation.
[0232] Here, when the association identification operation is activated, occurrence or non-occurrence of a port conflict determined based on whether messages in which the same transaction identification information (Unique Queue ID (UQID), Command Queue ID (CQID) or tag) is used are present among messages received through one or more of the multiple ports may not be checked. The reason for this is that, when the association identification operation is activated, global transaction identification information is used, and thus a port conflict does not occur.
[0233] Here, whether the association identification operation is activated may be determined for each transmission message. For example, the association identification operation may be activated for specific messages, and the association identification operation may be deactivated for other messages.
[0234] When the association identification operation is activated, the host may identify an association between the root port 1111-1 and a received S2M DRS message and appropriately process the received message even if the S2M DRS message is not transmitted through the root port 1111-1 through which an S2M Req message corresponding to the S2M DRS message has been transmitted. Therefore, the multi-port CXL device 1120 may transmit the S2M DRS message via any of paths 1220. Consequently, when the association identification operation is activated, the multi-port CXL device 1120 does not need to store the port number through which the M2S Req message has been received. Accordingly, an operation of identifying the port through which the M2S Req message has been received with reference to the mapping table is not required, and thus the overhead required for performing this operation may be reduced.
[0235] FIG. 13 is an operation flowchart illustrating a method for transmitting / receiving CXL messages according to an embodiment of the present disclosure.
[0236] Referring to FIG. 13, a method in which a CXL host device transmits / receives CXL messages transmits a transmission message through a transmission root port, which is one of multiple root ports, at step S1310.
[0237] Also, the method in which the CXL host device transmits / receives CXL messages receives a reception message corresponding to the transmission message at step S1320.
[0238] Further, the method in which the CXL host device transmits / receives CXL messages identifies an association between the reception message and the transmission root port at step S1330.
[0239] Here, the association may be identified even in a case in which a reception root port through which the reception message is received is different from the transmission root port.
[0240] Here, the association may be identified based on transaction identification information included in the reception message.
[0241] Here, the transaction identification information included in the reception message may be generated based on transaction identification information included in the transmission message.
[0242] Here, the association may be identified based on whether root port identification information contained in the transaction identification information included in the reception message corresponds to the transmission root port.
[0243] Here, the transaction identification information included in the transmission message or the reception message may include activation information indicating whether an association identification operation of identifying the association is activated.
[0244] Here, when the association identification operation is deactivated, the reception root port may be treated as the transmission root port.
[0245] Here, the reception message may be forwarded to the transmission root port when the reception root port is different from the transmission root port.
[0246] According to the present disclosure, a CXL host device including multiple root ports is provided.
[0247] Further, the present disclosure allows a CXL host device using multiple ports to appropriately process a reception message that is received through a port different from a transmission port through which a transmission message is transmitted, among multiple root ports, and that corresponds to the transmission message.
[0248] Further, the present disclosure allows a host to associate a reception message corresponding to a transmission message with a root port used for message transmission by using transaction identification information (Unique Queue ID (UQID), Command Queue ID (CQID), or tag) including root port identification information in a CXL device environment supporting multiple ports.
[0249] Furthermore, the present disclosure allows a multi-port CXL device to appropriately determine a transmission port based on whether an association identification operation is activated.
[0250] As described above, in the CXL host device, the multi-port CXL device, the CXL port expander, and the method for transmitting / receiving CXL messages according to the present disclosure, the configurations and schemes in the above-described embodiments are not limitedly applied, and some or all of the above embodiments can be selectively combined and configured such that various modifications are possible.
Claims
1. A Compute Express Link (CXL) host device, comprising:multiple root ports; anda cross-port dispatcher configured to identify an association between a reception message corresponding to a transmission message transmitted through a transmission root port, which is one of the multiple root ports, and the transmission root port.
2. The CXL host device of claim 1, wherein the association is identified even when a reception root port through which the reception message is received is different from the transmission root port.
3. The CXL host device of claim 2, wherein the association is identified based on transaction identification information included in the reception message.
4. The CXL host device of claim 3, wherein the association is identified based on whether root port identification information contained in the transaction identification information included in the reception message corresponds to the transmission root port.
5. The CXL host device of claim 4, wherein the transaction identification information included in the reception message is generated based on transaction identification information included in the transmission message.
6. The CXL host device of claim 5, wherein the transaction identification information included in the reception message includes activation information indicating whether an association identification operation of identifying the association is activated.
7. The CXL host device of claim 6, wherein when the association identification operation is deactivated, the reception root port is treated as the transmission root port.
8. The CXL host device of claim 5, wherein the reception message is forwarded to the transmission root port when the reception root port is different from the transmission root port.
9. A Compute Express Link (CXL) device, comprising:multiple ports; anda transmission port selector configured to determine a transmission port through which a current transmission message is to be transmitted among the multiple ports based on whether an association identification operation is activated.
10. The CXL device of claim 9, wherein the association identification operation is an operation of identifying an association between a transmission root port through which a host transmits a transmission message and a reception message received by the host in response to the transmission message.
11. The CXL device of claim 10, wherein the transmission port selector determines the transmission port using one of multiple port selection schemes including a first scheme corresponding to a case in which the association identification operation is activated and a second scheme corresponding to a case in which the association identification operation is not activated.
12. The CXL device of claim 11, wherein:the first scheme determines one of the multiple ports as the transmission port without considering a dependency of the current transmission message, the dependency being determined in consideration of a message transmission / reception history, andthe second scheme determines one of the multiple ports as the transmission port in consideration of the dependency.
13. The CXL device of claim 11, wherein when the association identification operation is activated, occurrence or non-occurrence of a port conflict is not checked, the occurrence or non-occurrence of the port conflict being determined based on whether messages in which identical transaction identification information (Unique Queue ID (UQID), Command Queue ID (CQID) or tag) is used are present among messages received through one or more of the multiple ports.
14. A method for transmitting / receiving Compute Express Link (CXL) messages in a CXL host device, comprising:transmitting a transmission message through a transmission root port, which is one of multiple root ports;receiving a reception message corresponding to the transmission message; andidentifying an association between the reception message and the transmission root port.
15. The method of claim 14, wherein the association is identified even when a reception root port through which the reception message is received is different from the transmission root port.
16. The method of claim 15, wherein the association is identified based on whether root port identification information contained in transaction identification information included in the reception message corresponds to the transmission root port.
17. The method of claim 16, wherein the transaction identification information included in the reception message includes activation information indicating whether an association identification operation of identifying the association is activated.
