Multi-Port Compute Express Link Device, Port Expander, And Method Using The Same
The CXL device with multiple ports and a transmission port selector resolves port conflicts and ensures transaction ordering, addressing limitations in existing standards to enhance data exchange and memory capacity in high-performance computing systems.
Patent Information
- Application Number
- US19/681514
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Priority Date
- 2026-03-11
- 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-coherent networks, leading to inefficiencies in data exchange and memory expansion.
A CXL device with multiple ports and a transmission port selector that determines the transmission port based on message dependency and history, along with a remapper to resolve port conflicts using Unique Queue IDs and Command Queue IDs.
Enables efficient expansion of ports and ensures transaction ordering, preventing malfunctions due to port conflicts, thereby enhancing data exchange and memory capacity in high-performance computing systems.
Smart Images

Figure US20260377348A1-D00000_ABST
Abstract
Description
CROSS REFERENCE TO RELATED APPLICATIONS
[0001] This application claims the benefit of Korean Patent Application Nos. 10-2025-0065265, filed May 20, 2025 and 10-2026-0043498, filed Mar. 11, 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 a CXL transaction ordering technology.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 device that supports multiple ports, or a CXL port expander that enables a port to be expanded to multiple ports.
[0010] Another object of the present disclosure is to ensure CXL transaction ordering in a CXL device environment that supports multiple ports.
[0011] A further object of the present disclosure is to prevent malfunction that may occur due to port conflicts between messages that use the same transaction identification information (e.g., Unique Queue ID (UQID), Command Queue ID (CQID), or tags) in the CXL device environment that supports multiple ports.
[0012] In accordance with an 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 a dependency of the current transmission message, the dependency being determined in consideration of a message transmission / reception history.
[0013] Here, the transmission port selector may be configured to determine the transmission port using one of multiple port selection schemes.
[0014] 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.
[0015] Here, the first scheme may determine a port identical to a previous port corresponding to the dependency as the transmission port such 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.
[0016] Here, the previous port corresponding to the dependency may be a port through which a previously transmitted or received message corresponding to the dependency has been transmitted or received.
[0017] Here, the second scheme may determine the transmission port in consideration of an address corresponding to the current transmission message.
[0018] Here, the CXL device may further include a remapper 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 identical transaction identification information including a Unique Queue ID (UQID), a Command Queue ID (CQID), or a tag is used among the received messages.
[0019] Here, the port conflict may be detected depending on whether a unique transaction identification information condition is satisfied.
[0020] In accordance with another aspect of the present disclosure to accomplish the above objects, there is provided a Compute Express Link (CXL) port expander connected to a 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 a dependency of the current transmission message, the dependency being determined in consideration of a message transmission / reception history.
[0021] Here, the transmission port selector may be configured to determine the transmission port using one of multiple port selection schemes.
[0022] 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.
[0023] Here, the first scheme may determine a port identical to a previous port corresponding to the dependency as the transmission port such 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.
[0024] Here, the previous port corresponding to the dependency may be a port through which a previously transmitted or received message corresponding to the dependency has been transmitted or received.
[0025] Here, the second scheme may determine the transmission port in consideration of an address corresponding to the current transmission message.
[0026] Here, the CXL port expander may further include a remapper 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 identical transaction identification information including a Unique Queue ID (UQID), a Command Queue ID (CQID), or a tag is used among the received messages.
[0027] Here, the port conflict may be detected depending on whether a unique transaction identification information condition is satisfied.
[0028] In accordance with a further aspect of the present disclosure to accomplish the above objects, there is provided a method for transmitting / receiving CXL messages in a multi-port CXL device, including determining a dependency of a current transmission message in consideration of a message transmission / reception history; determining a transmission port through which the current transmission message is to be transmitted among multiple ports of the multi-port CXL device based on the dependency; and transmitting the current transmission message through the transmission port.
[0029] Here, determining the transmission port may include determining the transmission port using one of multiple port selection schemes.
[0030] 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.
[0031] Here, the first scheme may determine a port identical to a previous port corresponding to the dependency as the transmission port such 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.
[0032] Here, the previous port corresponding to the dependency may be a port through which a previously transmitted or received message corresponding to the dependency is transmitted or received.
[0033] Here, the second scheme may determine the transmission port in consideration of an address corresponding to the current transmission message.
[0034] Here, the method for transmitting / receiving CXL messages may further include when a port conflict occurs among messages received from one or more of the multiple ports, changing transaction identification information of at least one of messages in which identical transaction identification information including a Unique Queue ID (UQID), a Command Queue ID (CQID), or a tag is used among the received messages.BRIEF DESCRIPTION OF THE DRAWINGS
[0035] 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:
[0036] 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;
[0037] 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;
[0038] 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;
[0039] 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;
[0040] FIG. 5 is a block diagram illustrating usage examples of a CXL port expander according to an embodiment of the present disclosure;
[0041] 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.
[0042] FIG. 7 is a block diagram illustrating an example of a multi-port CXL device according to an embodiment of the present disclosure; and
[0043] 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.DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0044] 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.
[0045] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the attached drawings.
[0046] A CXL device, which will be described below, may encompass all of CXL Type1, 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.
[0047] 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.
[0048] 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.
[0049] 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.
[0050] 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.
[0051] 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.
[0052] 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.
[0053] 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.
[0054] 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.
[0055] 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.
[0056] 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.
[0057] 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.
[0058] 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.
[0059] 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.
[0060] 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.
[0061] 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.
[0062] 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.
[0063] 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.
[0064] 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.
[0065] 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.
[0066] 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.
[0067] 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.
[0068] 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.
[0069] 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.
[0070] 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.
[0071] 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.
[0072] 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.
[0073] 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.
[0074] 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.
[0075] 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.
[0076] 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.
[0077] 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.
[0078] 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.
[0079] 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).
[0080] 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).
[0081] 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).
[0082] 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.
[0083] 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.
[0084] 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.
[0085] 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.
[0086] 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.
[0087] 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.
[0088] 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).
[0089] 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).
[0090] 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).
[0091] 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.
[0092] 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.
[0093] 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.
[0094] 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.
[0095] 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.
[0096] 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.
[0097] FIG. 5 is a block diagram illustrating usage examples of a CXL port expander according to an embodiment of the present disclosure.
[0098] 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.
[0099] 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).
[0100] 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).
[0101] 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.
[0102] 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.
[0103] 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.
[0104] 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.
[0105] Here, the CXL devices 521, 522, 523, and 524 illustrated in FIG. 5 may be CXL.cache devices.
[0106] 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.
[0107] 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.
[0108] 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.
[0109] However, when network components support some additional functions or when the CXL specification is partially modified, corresponding optimization may be achieved.
[0110] 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.
[0111] 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.
[0112] 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.
[0113] 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.
[0114] In the example illustrated in FIG. 6, messages A and B may each be a CXL.io, CXL.cache or CXL.mem message.
[0115] 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.
[0116] Among CXL messages, messages for which the ordering rule needs to be maintained are present.
[0117] 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.
[0118] For example, all Transaction Layer Packets (TLPs), other than Unordered I / O (UIO), need to maintain the ordering thereof.
[0119] 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.
[0120] 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.
[0121] 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.
[0122] 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.
[0123] 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.
[0124] 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.
[0125] 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.
[0126] 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.
[0127] 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.
[0128] 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.
[0129] 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.
[0130] Hereinafter, situations to be considered in the multi-port CXL device or port expander will be described in detail.
[0131] 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.
[0132] 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.
[0133] 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.
[0134] 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.
[0135] 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.
[0136] 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.
[0137] 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.
[0138] 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.
[0139] 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.
[0140] 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.
[0141] 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.
[0142] 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.
[0143] 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.
[0144] 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.
[0145] 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.
[0146] 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.
[0147] 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.
[0148] 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.
[0149] 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.
[0150] 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.
[0151] Next, situations to be considered in a multi-port CXL device or a CXL port expander that uses CXL.io will be described.
[0152] 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.
[0153] 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.
[0154] FIG. 7 is a block diagram illustrating an example of a multi-port CXL device according to an embodiment of the present disclosure.
[0155] 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.
[0156] The multiple ports 705-1, 705-2, ..., 705-N receive CXL messages from an external system, or transmit CXL messages to the external system.
[0157] 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.
[0158] 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.
[0159] 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.
[0160] Here, the transmission port selector 720 may determine the transmission port using one of multiple port selection schemes.
[0161] 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.
[0162] 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.
[0163] 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.
[0164] 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.
[0165] 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.
[0166] 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.
[0167] 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.
[0168] 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.
[0169] 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.
[0170] 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.
[0171] 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.
[0172] Here, at step S820, the transmission port may be determined using one of multiple port selection schemes.
[0173] 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.
[0174] 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.
[0175] 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.
[0176] 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.
[0177] 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.
[0178] 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.
[0179] Individual steps illustrated in FIG. 8 may be performed in the order illustrated in FIG. 8, in reverse order, or simultaneously.
[0180] According to the present disclosure, there is provided a CXL device that supports multiple ports, or a CXL port expander that enables a port to be expanded to multiple ports.
[0181] Further, the present disclosure can ensure CXL transaction ordering in a CXL device environment that supports multiple ports.
[0182] Furthermore, the present disclosure can prevent malfunction that may occur due to port conflicts between messages that use the same transaction identification information (e.g., Unique Queue ID (UQID), Command Queue ID (CQID), or tags) in the CXL device environment that supports multiple ports.
[0183] As described above, in 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) 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 a dependency of the current transmission message, the dependency being determined in consideration of a message transmission / reception history.
2. The CXL device of claim 1, wherein the transmission port selector is configured to determine the transmission port using one of multiple port selection schemes.
3. The CXL device of claim 2, wherein the multiple port selection schemes comprise 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.
4. The CXL device of claim 3, wherein:the first scheme determines a port identical to a previous port corresponding to the dependency as the transmission port such that transaction ordering is ensured, andthe second scheme determines one of the multiple ports as the transmission port in a manner different from the first scheme.
5. The CXL device of claim 4, wherein the previous port corresponding to the dependency is a port through which a previously transmitted or received message corresponding to the dependency has been transmitted or received.
6. The CXL device of claim 5, wherein the second scheme determines the transmission port in consideration of an address corresponding to the current transmission message.
7. The CXL device of claim 5, further comprising:a remapper 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 identical transaction identification information (Unique Queue ID (UQID), Command Queue ID (CQID), or tag) is used among the messages received from one or more of the multiple ports.
8. The CXL device of claim 7, wherein the port conflict is detected depending on whether a unique transaction identification information condition is satisfied.
9. A Compute Express Link (CXL) port expander connected to a 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 a dependency of the current transmission message, the dependency being determined in consideration of a message transmission / reception history.
10. The CXL port expander of claim 9, wherein the transmission port selector is configured to determine the transmission port using one of multiple port selection schemes.
11. The CXL port expander of claim 10, wherein the multiple port selection schemes comprise 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.
12. The CXL port expander of claim 11, wherein:the first scheme determines a port identical to a previous port corresponding to the dependency as the transmission port such that transaction ordering is ensured, andthe second scheme determines one of the multiple ports as the transmission port in a manner different from the first scheme.
13. The CXL port expander of claim 12, further comprising:a remapper 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 identical transaction identification information (Unique Queue ID (UQID), Command Queue ID (CQID), or tag) is used among the messages received from one or more of the multiple ports.
14. A method for transmitting / receiving CXL messages in a multi-port CXL device, comprising:determining a dependency of a current transmission message in consideration of a message transmission / reception history;determining a transmission port through which the current transmission message is to be transmitted among multiple ports of the multi-port CXL device based on the dependency; andtransmitting the current transmission message through the transmission port.
15. The method of claim 14, wherein determining the transmission port comprises:determining the transmission port using one of multiple port selection schemes.
16. The method of claim 15, wherein the multiple port selection schemes comprise 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.
17. The method of claim 16, wherein:the first scheme determines a port identical to a previous port corresponding to the dependency as the transmission port such that transaction ordering is ensured, andthe second scheme determines one of the multiple ports as the transmission port in a manner different from the first scheme.
18. The method of claim 17, further comprising:when a port conflict occurs among messages received from one or more of the multiple ports, changing transaction identification information of at least one of messages in which identical transaction identification information (Unique Queue ID (UQID),Command Queue ID (CQID), or tag) is used among the messages received from one or more of the multiple ports.
