Multi-Port CXL Host Device And Method Using The Same

The CXL host device with multiple root ports and unified memory access addresses inefficiencies in existing CXL standards by enabling efficient access to large-capacity memory across multiple hosts, reducing traffic and space waste while maintaining cache coherence.

US20260377325A1Pending Publication Date: 2026-11-26PANMNESIA INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
US19/681661
Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Priority Date
2026-04-09
Filing Date
2026-05-19
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing CXL standards limit the number of devices that can be connected to a CPU, restrict cache coherence to a single computer, and do not support multiple ports, leading to inefficiencies in data exchange and memory utilization in high-performance computing systems.

Method used

A CXL host device with multiple root ports and a memory system that provides a unified host physical address space, allowing efficient access to a multi-port CXL device by selecting appropriate root ports based on sub-areas and using interleaving logic to map memory spaces, reducing unnecessary traffic and space waste.

Benefits of technology

Enables efficient access to large-capacity memory by multiple hosts, reducing traffic and space waste in CXL fabric topologies, and ensuring cache coherence across thousands of devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US20260377325A1-D00000_ABST
    Figure US20260377325A1-D00000_ABST
Patent Text Reader

Abstract

A Compute Express Link (CXL) host device includes multiple root ports, each corresponding to at least one sub-area, and a memory configured to provide a host physical address space corresponding to a memory address space of a multi-port CXL device connected through the multiple root ports.
Need to check novelty before this filing date? Find Prior Art

Description

CROSS REFERENCE TO RELATED APPLICATIONS

[0001] This application claims the benefit of Korean Patent Application Nos. 10-2025-0065263, filed May 20, 2025 and 10-2026-0064338, filed Apr. 9, 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 and a memory configured to provide a host physical address space corresponding to a memory address space of a multi-port CXL device.

[0010] Another object of the present disclosure is to allow a multi-port CXL host device to regard the memory spaces of a multi-port CXL device as a single memory, thereby reducing unnecessary traffic and space waste caused by the multi-port CXL device in a CXL fabric topology and enabling efficient transactions.

[0011] A further object of the present disclosure is to allow a multi-port CXL host device to appropriately select at least one root port corresponding to an access target sub-area to access the memory when accessing the memory of a multi-port CXL device, thus enabling the multi-port CXL host device to access the memory of the multi-port CXL device.

[0012] 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, each corresponding to at least one sub-area; and a memory configured to provide a host physical address space corresponding to a memory address space of a multi-port CXL device connected through the multiple root ports.

[0013] Here, sub-areas corresponding to the multiple root ports may not overlap each other, and a set of the sub-areas may correspond to the memory address space of the multi-port CXL device.

[0014] Here, among the multiple root ports, at least one root port used to access an access target in the memory address space of the multi-port CXL device may be determined based on sub-areas in the host physical address space corresponding to the access target.

[0015] Here, the sub-areas in the host physical address space corresponding to the access target may be identified based on a page table configured to store mapping information for mapping contiguously arranged virtual sub-areas in the host virtual address space to the sub-areas.

[0016] Here, the sub-areas may be contiguously arranged in the host physical address space, and may be mapped to the multiple root ports based on CXL memory interleaving.

[0017] Here, the sub-areas may be contiguously arranged in the host physical address space, and may be mapped to the multiple root ports based on an interleaving logic configured to map the sub-areas to the multiple root ports.

[0018] Here, the interleaving logic may include performing mapping based on the host physical address space of the sub-areas corresponding to the access target.

[0019] Here, the sub-areas may be selected one by one and may be sequentially mapped to the root ports.

[0020] In accordance with another aspect of the present disclosure to accomplish the above objects, there is provided a CXL-based memory access method for accessing a memory of a multi-port CXL device in a CXL host device including multiple root ports, including identifying a memory address space of a multi-port CXL device desired to be accessed; identifying at least one sub-area of a host physical address space corresponding to the memory address space of the multi-port CXL device; identifying at least one root port corresponding to the at least one sub-area among the multiple root ports; and accessing the memory address space of the multi-port CXL device using the at least one root port.

[0021] Here, sub-areas corresponding to the multiple root ports may not overlap each other, and a set of the sub-areas may correspond to the memory address space of the multi-port CXL device.

[0022] Here, among the multiple root ports, at least one root port used to access an access target in the memory address space of the multi-port CXL device may be determined based on sub-areas in the host physical address space corresponding to the access target.

[0023] Here, the sub-areas in the host physical address space corresponding to the access target may be identified based on a page table configured to store mapping information for mapping contiguously arranged virtual sub-areas in the host virtual address space to the sub-areas.

[0024] Here, the sub-areas may be contiguously arranged in the host physical address space, and may be mapped to the multiple root ports based on CXL memory interleaving.

[0025] Here, the sub-areas may be contiguously arranged in the host physical address space, and may be mapped to the multiple root ports based on an interleaving logic configured to map the sub-areas to the multiple root ports.

[0026] Here, the interleaving logic may include performing mapping based on the host physical address space of the sub-areas corresponding to the access target.

[0027] Here, the sub-areas may be selected one by one and may be sequentially mapped to the root ports.BRIEF DESCRIPTION OF THE DRAWINGS

[0028] 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:

[0029] 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;

[0030] 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;

[0031] 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;

[0032] 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;

[0033] FIG. 5 is a block diagram illustrating usage examples of a CXL port expander according to an embodiment of the present disclosure;

[0034] 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.

[0035] FIG. 7 is a block diagram illustrating an example of a multi-port CXL device according to an embodiment of the present disclosure;

[0036] 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;

[0037] FIG. 9 is a diagram illustrating an example of a CXL host device according to an embodiment of the present disclosure;

[0038] FIG. 10 is a diagram illustrating an example of transaction identification information according to an embodiment of the present disclosure;

[0039] 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;

[0040] 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;

[0041] FIG. 13 is an operation flowchart illustrating a method for transmitting / receiving CXL messages according to an embodiment of the present disclosure;

[0042] FIG. 14 is a block diagram illustrating the configuration of a CXL system according to an embodiment of the present disclosure;

[0043] FIG. 15 is a diagram illustrating a process in which unique identifier information of a multi-port CXL device is transmitted to a CXL fabric manager through a plurality of CXL switches;

[0044] FIG. 16 is a diagram illustrating a process of performing a routing operation by adding parameters for traffic management to a routing table;

[0045] FIG. 17 is a diagram illustrating an example of a folded Clos network topology according to an embodiment of the present disclosure;

[0046] FIG. 18 is a diagram illustrating another example of a folded Clos network topology according to an embodiment of the present disclosure;

[0047] FIG. 19 is a diagram illustrating a further example of a folded Clos network topology according to an embodiment of the present disclosure;

[0048] FIG. 20 is a diagram illustrating a Fat-Tree topology corresponding to a folded Clos network;

[0049] FIG. 21 is a diagram illustrating an operation in which a fabric manager receives unique identifier information of a multi-port CXL device in a CXL system according to an embodiment of the present disclosure;

[0050] FIG. 22 is an operation flowchart illustrating a message transmission / reception method for multi-port device identification according to an embodiment of the present disclosure;

[0051] FIG. 23 is an operation flowchart illustrating a multi-port device identification method according to an embodiment of the present disclosure;

[0052] FIG. 24 is a diagram illustrating a multi-port CXL host device and a multi-port CXL device connected through a CXL fabric according to an embodiment of the present disclosure;

[0053] FIG. 25 is a diagram illustrating a case in which a memory address space of a multi-port CXL device is recognized as multiple memory address spaces in a physical address space of a multi-port CXL host device;

[0054] FIG. 26 is a diagram illustrating a method in which a multi-port CXL host device recognizes a single multi-port CXL device connected to different root ports;

[0055] FIG. 27 is a diagram illustrating an example of the configuration of a multi-port CXL host device according to an embodiment of the present disclosure;

[0056] FIG. 28 is a diagram illustrating a method in which a multi-port CXL host device interleaves a memory through a virtual address space according to an embodiment of the present disclosure;

[0057] FIG. 29 is a diagram illustrating an example in which a multi-port CXL host device interleaves a memory using a CXL memory interleaving function according to an embodiment of the present disclosure;

[0058] FIG. 30 is a diagram illustrating an example in which a multi-port CXL host device maps sub-areas to multiple root ports based on an interleaving logic according to an embodiment of the present disclosure; and

[0059] FIG. 31 is an operation flowchart illustrating a method in which a multi-port CXL host device accesses the memory of a multi-port CXL device according to an embodiment of the present disclosure.DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0060] 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.

[0061] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the attached drawings.

[0062] 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.

[0063] 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.

[0064] 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.

[0065] 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.

[0066] 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.

[0067] 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.

[0068] 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.

[0069] 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.

[0070] 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.

[0071] 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.

[0072] 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.

[0073] 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.

[0074] 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.

[0075] 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.

[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] 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.

[0078] 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.

[0079] 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.

[0080] 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.

[0081] 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.

[0082] 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.

[0083] 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.

[0084] 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.

[0085] 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.

[0086] 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.

[0087] 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.

[0088] 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.

[0089] 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.

[0090] 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.

[0091] 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.

[0092] 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.

[0093] 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.

[0094] 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.

[0095] 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).

[0096] 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).

[0097] 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).

[0098] 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.

[0099] 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.

[0100] 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.

[0101] 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.

[0102] 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.

[0103] 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.

[0104] 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).

[0105] 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).

[0106] 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).

[0107] 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.

[0108] 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.

[0109] 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.

[0110] 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.

[0111] 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.

[0112] 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.

[0113] FIG. 5 is a block diagram illustrating usage examples of a CXL port expander according to an embodiment of the present disclosure.

[0114] 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.

[0115] 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).

[0116] 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).

[0117] 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.

[0118] 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.

[0119] 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.

[0120] 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.

[0121] Here, the CXL devices 521, 522, 523, and 524 illustrated in FIG. 5 may be CXL.cache devices.

[0122] 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.

[0123] 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.

[0124] 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.

[0125] However, when network components support some additional functions or when the CXL specification is partially modified, corresponding optimization may be achieved.

[0126] 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.

[0127] 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.

[0128] 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.

[0129] 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.

[0130] In the example illustrated in FIG. 6, messages A and B may each be a CXL.io, CXL.cache or CXL.mem message.

[0131] 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.

[0132] Among CXL messages, messages for which the ordering rule needs to be maintained are present.

[0133] 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.

[0134] For example, all Transaction Layer Packets (TLPs), other than Unordered I / O (UIO), need to maintain the ordering thereof.

[0135] 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.

[0136] 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.

[0137] 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.

[0138] 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.

[0139] For example, when the CXL device transmits a Transaction Layer Packet (TLP) other than an 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.

[0140] 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.

[0141] 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.

[0142] 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.

[0143] 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.

[0144] 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.

[0145] 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.

[0146] Hereinafter, situations to be considered in the multi-port CXL device or port expander will be described in detail.

[0147] 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.

[0148] 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.

[0149] 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.

[0150] 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.

[0151] 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.

[0152] 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.

[0153] 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.

[0154] 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.

[0155] 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.

[0156] 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.

[0157] 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.

[0158] 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.

[0159] 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.

[0160] 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.

[0161] 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.

[0162] 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.

[0163] 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.

[0164] 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.

[0165] 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.

[0166] 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.

[0167] Next, situations to be considered in a multi-port CXL device or a CXL port expander that uses CXL.io will be described.

[0168] 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.

[0169] 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 (TLPs) do not need to ensure message ordering, as described above, thus enabling messages to be transmitted through any port.

[0170] FIG. 7 is a block diagram illustrating an example of a multi-port CXL device according to an embodiment of the present disclosure.

[0171] 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.

[0172] The multiple ports 705-1, 705-2, ..., 705-N receive CXL messages from an external system, or transmit CXL messages to the external system.

[0173] 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.

[0174] 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.

[0175] 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.

[0176] Here, the transmission port selector 720 may determine the transmission port using one of multiple port selection schemes.

[0177] 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.

[0178] 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.

[0179] 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.

[0180] 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.

[0181] 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.

[0182] 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.

[0183] 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.

[0184] 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.

[0185] 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.

[0186] 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.

[0187] 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.

[0188] Here, at step S820, the transmission port may be determined using one of multiple port selection schemes.

[0189] 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.

[0190] 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.

[0191] 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.

[0192] 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.

[0193] 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.

[0194] 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.

[0195] Individual steps illustrated in FIG. 8 may be performed in the order illustrated in FIG. 8, in reverse order, or simultaneously.

[0196] FIG. 9 is a diagram illustrating an example of a CXL host device according to an embodiment of the present disclosure.

[0197] 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.

[0198] 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.

[0199] 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.

[0200] 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).

[0201] 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).

[0202] 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.

[0203] 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).

[0204] The reception message received through the root port 910-3 (RP #2) is provided to the cross-port dispatcher 920 (S920).

[0205] Here, the association may be identified based on transaction identification information included in the reception message.

[0206] 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).

[0207] 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.

[0208] 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).

[0209] 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).

[0210] 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.

[0211] 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).

[0212] 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).

[0213] 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.

[0214] Such an association identification operation may be activated or deactivated.

[0215] 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.

[0216] 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.

[0217] 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.

[0218] FIG. 10 is a diagram illustrating an example of transaction identification information according to an embodiment of the present disclosure.

[0219] 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.

[0220] 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.

[0221] 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.

[0222] 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.

[0223] 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.

[0224] 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.

[0225] 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.

[0226] 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.

[0227] 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.

[0228] 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.

[0229] 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.

[0230] 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.

[0231] 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.

[0232] 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.

[0233] 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).

[0234] 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.

[0235] 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.

[0236] 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.

[0237] 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.

[0238] 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.

[0239] Here, information stored in a mapping table may be used to generate information that is included in the S2M DRS message.

[0240] 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.

[0241] 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.

[0242] 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.

[0243] 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.

[0244] 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.

[0245] 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.

[0246] 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.

[0247] 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.

[0248] FIG. 13 is an operation flowchart illustrating a method for transmitting / receiving CXL messages according to an embodiment of the present disclosure.

[0249] 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.

[0250] 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.

[0251] 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.

[0252] 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.

[0253] Here, the association may be identified based on transaction identification information included in the reception message.

[0254] Here, the transaction identification information included in the reception message may be generated based on transaction identification information included in the transmission message.

[0255] 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.

[0256] 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.

[0257] Here, when the association identification operation is deactivated, the reception root port may be treated as the transmission root port.

[0258] Here, the reception message may be forwarded to the transmission root port when the reception root port is different from the transmission root port.

[0259] Hereinafter, a topology initialization method for a CXL fabric including a multi-port CXL.cache device as an endpoint (EP) will be described.

[0260] FIG. 14 is a diagram illustrating a configurable example of a CXL system according to an embodiment of the present disclosure.

[0261] Referring to FIG. 14, the CXL system may include multi-port CXL devices 1410 and 1430 and a CXL switch fabric 1440, and may further include a host 1420 that is capable of accessing the CXL devices.

[0262] The CXL switch fabric 1440 includes a plurality of CXL switches and a device for managing a topology.

[0263] Here, the multi-port CXL device may transmit unique identifier information through all connected ports so as to be recognized as a single device.

[0264] Here, because the device for managing the topology (hereinafter also referred to as ‘topology management device’) refers to a CXL fabric manager or a device for performing a similar function, it is not limited to the CXL fabric manager described in the present disclosure and includes devices for performing equivalent or similar functions.

[0265] Such a topology management device may recognize that a multi-port CXL device is present in the topology, and may identify which switch’s downstream port each port is connected to, thereby determining the overall structure of the topology including the multi-port CXL device.

[0266] This may be enabled by allowing the topology management device to recognize that the multi-port CXL device transmits unique identifier information created by the multi-port CXL device through all ports thereof during a topology initialization process.

[0267] Here, the topology management device may discover switches through a switch discovery process in a CXL standard. Thereafter, the topology management device may perform a process of assigning IDs to ports included in switches or devices constituting the topology including the multi-port CXL device, and may especially assign different Port IDs (PIDs) to downstream ports of a switch located immediately above the multi-port CXL device.

[0268] Thereafter, the topology management device may be provided with link partner information created from a switch directly connected to the multi-port CXL device.

[0269] Here, the link partner information may be response information corresponding to Get PBR Link Partner Info of the topology management device and may be provided with the link partner information included in a Vendor Defined Message (VDM).

[0270] Here, when a Hierarchy-Based Routing (HBR) switch is included in the CXL switch fabric, the multi-port CXL device connected to the CXL switch fabric may specify unique identifier information (e.g., Universally Unique Identifier (UUID)) in such a way as to add a structure for a new vendor designation and extension function (e.g., Designated Vendor Specific Extended Capabilities (DVSEC)) to a configuration space of the device.

[0271] Thereafter, the fabric manager may access a CXL Control Interface (CXL Component Interface (CCI)) of the multi-port CXL device in a command tunneling manner using the PID of a device identified through a search command (Fabric Crawl Out) in the CXL standard.

[0272] In this case, the fabric manager may be connected to each device through a standard communication protocol Management Component Transport Protocol (MCTP) for directly delivering management messages between devices, and may then access the CXL component interface (CCI) of the corresponding device.

[0273] In addition, when there is no PID assigned to the CXL device, the fabric manager may access the CXL component interface (CCI) through an edge switch directly connected to the corresponding device. By utilizing the foregoing methods, the fabric manager may also access the CXL component interface (CCI) of the multi-port CXL device.

[0274] Here, a protocol management device such as the CXL fabric manager may assign different PIDs to downstream ports above respective ports of one multi-port CXL device to perform routing management.

[0275] Here, because the PID assignment operation is an operation related to PID assignment to upstream ports of an edge switch, downstream ports of a downstream edge switch, and fabric ports, and is used for a routing process, assignment is uniquely performed such that PIDs do not overlap each other, as in the case of the existing CXL standard.

[0276] Here, the multi-port CXL device may distinguish messages that are required to maintain 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.

[0277] 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.

[0278] Here, whether a dependency exists may be determined in consideration of a transmission / reception history of messages desired to be transmitted.

[0279] Here, when a port conflict occurs among messages received from one or more of the multiple ports, the multi-port CXL device may further include a remapper that changes transaction identification information of at least one of messages in which the same transaction identification information is used among the received messages.

[0280] Here, the port conflict may be detected based on whether one transaction identification information condition is satisfied.

[0281] Here, the multi-port CXL device may include a transmission port selector that determines 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.

[0282] 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.

[0283] Here, when the association identification operation is activated, occurrence or non-occurrence of a port conflict may not be checked, wherein occurrence or non-occurrence of a port conflict may be determined based on whether messages in which the same transaction identification information is used are present among messages received through one or more of the multiple ports.

[0284] FIG. 15 is a diagram illustrating a process in which unique identifier information of a multi-port CXL device is transmitted to a CXL fabric manager through a plurality of CXL switches.

[0285] Referring to FIG. 15, a CXL system includes a multi-port CXL device 1510 and a CXL switch fabric. The CXL switch fabric may include a plurality of CXL switches 1521, 1522, 1523, and 1524, and a CXL fabric manager 1530 or a device for performing a similar function as a device for managing a topology.

[0286] Here, the multi-port CXL device 1510 transmits unique identifier information to all ports connected to the CXL switches 1521, 1522, 1523, and 1524 so as to be recognized as a single device.

[0287] In detail, after the device creates the unique identifier information, it needs to transmit the unique identifier information to switches connected to the device. The reason for this is that the switches are not directly connected to each other, and thus the switches cannot share unique identifier information received from one switch with other switches.

[0288] Here, a process (UUID spray) in which the device transmits the unique identifier information to the switches connected thereto may be performed by transmitting link partner information corresponding to the unique identifier information.

[0289] Here, the unique identifier information may be transmitted in a form in which the unique ID of the device is contained in a 16B Link Partner ID field.

[0290] Here, the link partner information may be a Link Partner Info Vendor Defined Message (VDM) in the standard.

[0291] The transmission of the unique identifier may occur at a time point at which initialization of Flow Control Credit (InitFC) ends and at a time point at which a payload field of the Link Partner Info VDM is updated.

[0292] Switches having ports connected to the same device provide the same unique identifier information for the corresponding ports to the CXL fabric manager, thus allowing the fabric manager to recognize that some of ports of the switches are physically connected to the same device.

[0293] Here, the switches may provide unique identifier information to the CXL fabric manager based on MCTP.

[0294] Here, the CXL switch fabric may recognize that at least two of the ports of the multi-port CXL device are ports corresponding to the single device based on the unique identifier information transmitted through the at least two of the ports of the multi-port CXL device.

[0295] Here, the unique identifier information may be transmitted through a vendor defined message.

[0296] FIG. 16 is a diagram illustrating a process of performing a routing operation by adding parameters for traffic management to a routing table.

[0297] Referring to FIG. 16, it can be seen that routing is performed based on a routing table 1650 included in a CXL switch.

[0298] As a device for managing a topology, a CXL fabric manager 1530 or a similar device may assign different PIDs to respective ports of the multi-port device when fine-grained management such as traffic control through PID assignment for each port is required.

[0299] In this case, routing to a downstream port of an edge switch directly connected to each port of the device is performed. Even if multiple PIDs are not assigned to the device, a Physical Port ID may be obtained through both the number of ports and link partner information, created based on unique identifier information, in response to a link partner information request. Further, the CXL fabric manager may identify that the corresponding device is a multi-port device because it recognizes that the unique identifier information is identical. Therefore, even if different PIDs cannot be assigned to respective ports of the device, no routing issue arises.

[0300] Here, the link partner information request may be Get PBR Link Partner Info in the CXL standard.

[0301] Here, the link partner information may be a Link Partner Info VDM, and may be provided to the CXL fabric manager through a vendor defined message.

[0302] As in the example illustrated in FIG. 16, when a routing operation from a source multi-port CXL device 1610 to a destination multi-port CXL device 1630 through an edge switch 1521 is performed, this routing is performed among PIDs of downstream ports of a switch connected immediately above non-overlapping devices in an overall structure, and thus selection of an output port (Egress Port) from an input port (Ingress Port) may be used, as in the case of an existing Destination Routing Table (DRT) referenced to determine to which output port a message received by the switch is to be forwarded. When routing from the source multi-port CXL device 1610 to the edge switches 1521, 1522, 1523, and 1524 is performed, the multi-port CXL device 1610 needs to perform routing using an operation of allocating a message for respective ports depending on the addresses or in consideration of an ordering rule such as an operation of storing the number of a port through which a message has been received and transmitting the message through the same port. For this operation, a task such as spraying based on addresses is required and is considered by a spray chip, which is a CXL port expander in an accelerator stage, to distribute messages, and thus an operation to be additionally performed in a routing stage may not be required.

[0303] Here, messages distributed from the multi-port CXL device to the switches may be routed according to previously assigned non-duplicated unique PIDs.

[0304] Here, new parameters for traffic management may be added to the routing table 1650 present in each switch so as to perform fine-grained routing control for each message in a situation in which the multi-port CXL device is considered.

[0305] Here, information for fine-grained routing control may be information having a preset number of bits (preset bit width).

[0306] The new parameters may include a parameter for preventing proceeding to a next port or a specific port by checking a bit in a specific message, and a parameter related to management of traffic associated with a multi-path environment.

[0307] According to the CXL standard, the CXL device refers only to CXL Type 1, Type 2, and Type 3 devices, and the CXL standard specifically supports three sub-protocols, namely CXL.io, CXL.cache, and CXL.mem.

[0308] Although the CXL standard does not explicitly define a CXL device, the CXL device refers to a peripheral device that supports some or all of CXL sub-protocols. Although the term ‘peripheral device’ generally refers to an I / O device, a memory device, or an accelerator, other than CPUs and switches, the peripheral device is not limited thereto in the present disclosure. A CXL Type 1 device refers to a device supporting only CXL.io and CXL.cache. A CXL Type 2 device refers to a device supporting CXL.io, CXL.cache, and CXL.mem. A CXL Type 3 device refers to a device supporting only CXL.io and CXL.mem. However, in the present disclosure, the CXL device is used as the term including a CXL CPU and a CXL switch.

[0309] FIG. 17 is a diagram illustrating an example of a folded Clos network topology according to an embodiment of the present disclosure.

[0310] Referring to FIG. 17, the network topology includes a plurality of level-2 switches 1741, 1742, 1743, and 1744 configured within a pod 1750, and a plurality of subgroups 1731, 1732, 1733, and 1734 connected to the level-2 switches.

[0311] Among the subgroups, a first subgroup 1731 may be configured to include a single level-1 switch 1720 and a plurality of single-port CXL devices 1711, 1712, 1713, and 1714, and the remaining subgroups 1732, 1733, and 1734 may be configured to have substantially the same structure as the first subgroup 1731.

[0312] As in the example of FIG. 17, when the single-port CXL devices and corresponding downstream ports of the level-1 switch are connected through n lanes per port, and upstream ports of the level-1 switch and downstream ports of the level-2 switches are connected through m lanes per port, the overall throughput of the network is limited within the total bandwidth provided by each port. Here, n and m may vary depending on the specifications of CXL devices and switches constituting a topology, and may be, for example, arbitrary natural numbers that are set for description of the present disclosure in the present specification.

[0313] FIG. 18 is a diagram illustrating another example of a folded Clos network topology according to an embodiment of the present disclosure.

[0314] Another example of the folded Clos network topology illustrated in FIG. 18 is configured such that, when following the existing CXL standard, a multi-port structure is supported for a CXL CPU, a CXL switch, and a CXL Type 3 device, whereas only a single-port structure is allowed for other devices, and thus the topology cannot include a CXL Type 1 device or a CXL Type 2 device.

[0315] Here, the CXL Type 1 device and the CXL Type 2 device refer to accelerator devices that are typically used. Therefore, as in the case of a conventional scheme, configuring a topology without the corresponding device is a structure which is inefficient and is not used.

[0316] Accordingly, the present disclosure proposes the need for a multi-port CXL Type 1 device and a multi-port CXL Type 2 device and an efficient topology based thereon, as well as a method for implementing a CXL device, a memory management method, and a topology initialization and setting method, which are not disclosed in conventional schemes, thereby presenting the feasibility of the present topology.

[0317] Referring to FIG. 18, another example of a network topology may include multiple planes 1841, 1842, 1843, and 1844, each composed of a plurality of level-2 switches, and multiple pods 1831, 1832, 1833, and 1834 connected to the multiple planes.

[0318] When each level-1 switch may be connected to a number of multi-port CXL devices identical to the number of downstream ports, and the multi-port CXL devices connected to the level-1 switch are configured such that ports having the same offset number are interconnected, the offset number of each multi-port CXL device may be assigned to each port using an arbitrary method, and may have a value that increments sequentially starting from 0 by 1. The level-1 switches and the multi-port CXL devices, connected according to the above-described connection method, are grouped and designated as a pod. A number of pods identical to the number of downstream ports may be connected to each level-2 switch. The pods connected to each level-2 switch are configured such that ports having the same offset number are interconnected. The offset number in the pods may be assigned using an arbitrary method, and may have a value that increments sequentially starting from 0 by 1.

[0319] Among the plurality of pods, pod 11831 includes a plurality of multi-port CXL devices 1811, 1812, 1813, and 1814 and a plurality of level-1 switches 1821, 1822, 1823, and 1824. Pod 21832, pod 31833, and pod 41834 may be configured to have substantially the same structure as pod 11831.

[0320] Although CXL devices supporting multiple ports based on the CXL standard are limited to a CXL CPU, a CXL switch, and a CXL Type 3 device, the present disclosure assumes that a CXL Type 1 device and a CXL Type 2 device support multiple ports using the above-described multi-port CXL.cache device and CXL port expander.

[0321] Here, a CXL switch fabric includes a plurality of level-1 switches constituting the pods 1831, 1832, 1833, and 1834 together with the multi-port CXL devices; and a plurality of level-2 switches, each having downstream ports to which at least one of the level-1 switches is connected.

[0322] Here, downstream ports of each of the plurality of level-1 switches may be connected to different multi-port CXL devices included in the corresponding pod.

[0323] Here, each of the multi-port CXL devices may be a CXL Type 1 device or a CXL Type 2 device.

[0324] Here, when there are many multi-port CXL devices to be connected, or the number of ports of each switch is small, each level-2 switch may be extended by connecting a level-3 switch to the upstream port of the level-2 switch. Such extension may also be applied equally to a level-3 switch, and may be achieved until all of desired multi-port CXL devices are connected, but may be limited by the CXL standard.

[0325] Here, the multi-port CXL device may be composed of different devices, such as a CXL CPU, a CXL Type 1 device, a CXL Type 2 device, and a CXL Type 3 device.

[0326] Here, the switches at each level have the same number of lanes and ports used for connections and the same bandwidth per lane. For this, it is common to configure the switches using identical switches.

[0327] In this case, the plurality of level-1 switches may receive unique identifier information from the different multi-port CXL devices, respectively, and may create link partner information based on the unique identifier information and provide the link partner information to the fabric manager.

[0328] Here, the fabric manager may recognize the single device based on the unique identifier information included in the link partner information provided from at least one of the plurality of level-1 switches.

[0329] As in the example illustrated in FIG. 18, when the number of ports of each multi-port CXL device, the number of downstream ports and upstream ports of each level-1 switch, and the number of downstream ports of each level-2 switch are 4, the number of lanes per port of each multi-port CXL device and downstream ports of each level-1 switch is n, and the number of lanes per port of the upstream ports of each level-1 switch and the downstream ports of each level-2 switch is m, various topologies may be flexibly configured because one CXL device may be connected in various directions, compared to the example illustrated in FIG. 17. Also, the total number of lanes of each CXL device may increase, and the total bandwidth provided by each port may increase within the range of the same number of switches, and thus the throughput of the overall network may be increased. Here, n and m may vary depending on the specifications of CXL devices and CXL switches constituting a topology, and may be, for example, arbitrary natural numbers that are set for description of the present disclosure in the present specification.

[0330] Furthermore, when the density of each device increases and the number of connectable devices per leaf switch increases, the number of layers of an upper spine switch may be reduced, and thus a network architecture may be simplified and design and maintenance costs may be lowered.

[0331] FIG. 19 is a diagram illustrating a further example of a folded Clos network topology according to an embodiment of the present disclosure.

[0332] Referring to FIG. 19, the network topology includes multiple planes 1941, 1942, 1943, and 1944, each composed of a plurality of level-2 switches, and a plurality of pods 1931, 1932, 1933, and 1934 connected to the planes. Among the plurality of pods, pod 11931 includes a plurality of multi-port CXL devices 1910 and a plurality of level-1 switches 1920. Pod 21932, pod 31933, and pod 41934 may be configured to have substantially the same structure as pod 11931.

[0333] As in the example illustrated in FIG. 19, when the number of ports of each multi-port CXL device, the number of downstream ports and upstream ports of each level-1 switch, the number of downstream ports of each level-2 switch is 4k, the number of lanes per port of each multi-port CXL device and the downstream ports of each level-1 switch is n / k, and the number of lanes per port of the upstream ports of each level-1 switch and the downstream ports of each level-2 switch is m / k, the total number of lanes for all ports of a single CXL device is the same as that of the example illustrated in FIG. 17. However, as the number of lanes per port may be reduced and the number of ports may be increased, it becomes possible to connect more devices to one switch, thus reducing the number of switches required to construct the overall network, with the result that cost reduction and space efficiency may be improved. Here, n, m, and k may vary depending on the specifications of CXL devices and switches constituting a topology, and may be natural numbers that are set for description of the present disclosure, wherein k is a value greater than n and m and is a multiple of n and m.

[0334] When, instead of reducing the number of lanes per port of multi-port CXL devices constituting the folded Clos topology, the number of ports is increased to increase the total number of lanes, balance between the number of ports and the bandwidth is adjusted, and thus the effects of respective advantages of the topology illustrated in FIG. 18 and the topology illustrated in FIG. 19 may be slightly diminished. However, since both advantages may be utilized, the overall efficiency may have high value.

[0335] FIG. 20 is a diagram illustrating a Fat-Tree topology corresponding to a folded Clos network.

[0336] The folded Clos network is a representative method for configuring the Fat-Tree topology, and is typically used as the name of 3-Tree-Fat-Tree or Spine-Leaf.

[0337] Referring to FIG. 20, the Fat-Tree topology may be based on a tree model divided into multiple layers, and may include a terminal node layer 2010, an edge switch layer 2020, an aggregation switch layer 2030, and a core switch layer 2040.

[0338] Here, the terminal node layer 2010 may indicate leaf nodes located at the lowest level of the tree, and may include a plurality of endpoint devices connected to the network. For example, the endpoint devices may be the above-described multi-port CXL devices.

[0339] Here, the edge switch layer 2020 may include primary switches directly connected to devices of the terminal node layer 2010. For example, the switches in this layer may correspond to level-1 switches connected to the multi-port CXL devices.

[0340] Here, the aggregation switch layer 2030 may include mid-level switches for aggregating traffic between an upper layer and a lower layer. The aggregation switch layer 2030 may interconnect the switches of the edge switch layer 2020.

[0341] For example, the aggregation switch layer 2030 of FIG. 20 may correspond to the level-2 switches of FIGS. 17 and 18.

[0342] Here, the core switch layer 2040 may be a root node located at the top level of the tree, and may include a core switch that centrally manages the traffic of the overall network.

[0343] In particular, the Fat-Tree structure is characterized in that, in order to prevent bottlenecks, it is configured such that the total bandwidth of connection links between nodes increases toward higher layers, thereby enabling efficient communication. Since the Fat-Tree structure refers to the entire hierarchy topology having the above-described characteristics, connection methods may be implemented using various methods without being strictly constrained.

[0344] As illustrated in FIG. 20, a link between the core switch layer 2040 and the aggregation switch layer 2030 may be configured to have greater bandwidth (e.g., by assigning a larger number of lanes) than connection links between lower layers.

[0345] FIG. 21 is a diagram illustrating an operation in which a fabric manager receives unique identifier information of a multi-port CXL device in a CXL system according to an embodiment of the present disclosure.

[0346] Referring to FIG. 21, the CXL system includes a multi-port CXL device 2110, a plurality of CXL switches 2121, 2122, 2123, and 2124, a host 2130, and a CXL fabric manager 2140 that is a device for managing a topology, or a device for performing a similar function.

[0347] In the multi-port CXL device 2110, after unique identifier information is created, a process of creating link partner information corresponding to the unique identifier information and transmitting the link partner information to the plurality of switches 2121, 2122, 2123, and 2124 connected to the multi-port CXL device 2110 is performed.

[0348] Thereafter, the CXL fabric manager 2140 may be provided with pieces of unique identifier information received by switches from the device through a link partner information request command, and when the pieces of unique identifier information received from respective switches are identical to each other, may identify and determine one multi-port CXL device corresponding to the unique identifier information.

[0349] Here, the link partner information request command may be Get PBR Link Partner Info in a CXL standard.

[0350] Here, the link partner information may be a message corresponding to the link partner information request command of the device for managing the topology, may be a Link Partner Info VDM, and may be transmitted through a vendor defined message.

[0351] FIG. 22 is an operation flowchart illustrating a message transmission / reception method for multi-port device identification according to an embodiment of the present disclosure.

[0352] Referring to FIG. 22, the message transmission / reception method for multi-port device identification receives pieces of unique identifier information from all connected ports, respectively, at step S2210.

[0353] Here, the unique identifier information may be received through a vendor defined message.

[0354] When the corresponding device creates the unique identifier information, all switches connected to the ports of the device receive the unique identifier information through all ports connected to the device from the device. The reason for this is that, when the number of switches connected to the device is two or more, the switches are not directly connected to each other, thus making it impossible to share the unique identifier information of the device.

[0355] Here, an entity that creates the unique identifier information (UUID) may be a port expander or a spray chip within the device, and may create unique identifier information (UUID) and spray the unique identifier information through each port.

[0356] Also, the message transmission / reception method for multi-port device identification creates link partner information based on the unique identifier information at step S2220.

[0357] Here, the link partner information may be response information corresponding to a link partner information request command of a device for managing a topology.

[0358] Here, the link partner information request command may be Get PBR Link Partner Info in a CXL standard.

[0359] Furthermore, the message transmission / reception method for multi-port device identification transmits the link partner information to the fabric manager at step S2230.

[0360] Here, the link partner information may be a Link Partner Info Vendor Defined Message (VDM).

[0361] Here, the link partner information may include the same unique identifier information corresponding to different ports.

[0362] Here, the unique identifier information may be used to recognize one multi-port CXL device.

[0363] FIG. 23 is an operation flowchart illustrating a multi-port device identification method according to an embodiment of the present disclosure.

[0364] Referring to FIG. 23, the multi-port device identification method receives link partner information from at least one CXL switch at step S2310.

[0365] Further, ports connected to at least one CXL switch are identified based on the link partner information at step S2320.

[0366] Further, at least some of the ports are recognized as one multi-port CXL device based on unique identifier information included in the link partner information at step S2330.

[0367] Here, the ports may include two or more ports of the one multi-port CXL device, which are connected to different CXL switches or different downstream ports and provide the same unique identifier information.

[0368] Here, the ports may be identified based on port information included in the link partner information.

[0369] Here, the link partner information may be response information corresponding to a link partner information request command of a device for managing a topology.

[0370] Here, the link partner information request command may be Get PBR Link Partner Info in a CXL standard.

[0371] Here, the link partner information may be a Link Partner VDM, and may include the same unique identifier information corresponding to different ports.

[0372] Here, the two or more ports may be recognized as ports of the one multi-port CXL device based on the same unique identifier information.

[0373] Here, the two or more ports may provide the same unique identifier information to different CXL switches or different downstream ports through a vendor defined message.

[0374] According to the present disclosure, it is possible to allow a device for managing a topology that has a multi-port device as a component thereof (e.g., a CXL fabric manager or a device for performing a similar function) to recognize that a multi-port device is present in the topology.

[0375] Further, the present disclosure can identify which switch’s downstream port each port is connected to, thereby allowing the overall structure of a topology including a multi-port device to be determined.

[0376] Furthermore, the present disclosure can configure a topology based on a CXL Type 1 device or a CXL Type 2 device that supports multiple ports, thus improving configuration efficiency compared to a topology configured using a single-port CXL device.

[0377] A physically identical device accessed by a CXL host device through different root ports is treated as separate, independent devices. Contiguous memory address spaces mapped to respective root ports may be statically allocated to a physical address space of the CXL host device. Therefore, a memory address space of one CXL device is redundantly mapped to different locations within the physical address space of the CXL host device.

[0378] FIG. 24 is a diagram illustrating a multi-port CXL host device and a multi-port CXL device connected through a CXL fabric according to an embodiment of the present disclosure.

[0379] Referring to FIG. 24, it can be seen that a CXL CPU (Host) 2410 having four root ports and a multi-port CXL device (CXL Device) 2430 having four ports are connected through a CXL fabric (CXL FABRIC) 2420.

[0380] Although not explicitly illustrated in FIG. 24, the multi-port CXL host device 2410 and the multi-port CXL device 2430 may be directly connected to each other without the CXL fabric 2420.

[0381] Here, the CXL CPU 2410 may be a CXL host device, and may include multiple root ports. For example, the CXL CPU 2410 may include four root ports.

[0382] Here, the CXL host device may include multiple root ports, each of which corresponds to at least one sub-area, and a memory that provides a host physical address space corresponding to the memory address space of the multi-port CXL device connected through the multiple root ports. For example, the CXL host device 2410 may include four root ports, each of which corresponds to at least one sub-area, and a memory that provides a host physical address space corresponding to the memory address space of the multi-port CXL device connected through the four root ports.

[0383] For example, the sub-areas may refer to areas obtained by dividing an area corresponding to the memory address space of the multi-port CXL device into interleaving units within the host physical address space.

[0384] For example, interleaving may be a memory management technique that distributes and allocates contiguous memory addresses across a plurality of independent memory banks or modules.

[0385] Here, the sub-areas corresponding to the multiple root ports may not overlap each other, and a set of the sub-areas may correspond to the memory address space of the multi-port CXL device.

[0386] Here, among the multiple root ports, at least one root port used to access an access target in the memory address space of the multi-port CXL device may be determined based on the sub-areas in the host physical address space, corresponding to the access target.

[0387] Here, the sub-areas within the host physical address space corresponding to the access target may be identified based on a page table that stores mapping information for mapping contiguously arranged virtual sub-areas in a host virtual address space to the sub-areas.

[0388] For example, the host virtual address space may refer to logical and contiguous virtual memory areas allocated by an operating system and hardware to individual processes. This provides an environment in which each program appears to exclusively use an independent memory, thereby preventing intrusion into a memory space between processes, and allowing operation to be performed through mapping to the physical address of hardware at which actual data is stored through the system’s page table. Here, the physical address of the hardware may be the physical address space of the multi-port CXL host device.

[0389] For example, the virtual sub-areas may refer to areas obtained by dividing an area corresponding to the memory address space of the multi-port CXL device into interleaving units within the host virtual address space.

[0390] Here, in the host physical address space, the sub-areas may be contiguously arranged, and may be mapped to the multiple root ports based on an interleaving logic that maps the sub-areas to the multiple root ports.

[0391] Here, the interleaving logic may include performing mapping based on the host physical address space of the sub-areas corresponding to the access target.

[0392] Here, the sub-areas may be selected one by one, and may be sequentially mapped to the root ports.

[0393] The CXL fabric 2420 provides a path between the CXL CPU 2410 and the multi-port CXL device 2430.

[0394] Here, the CXL fabric 2420 may include multiple switches. Here, the multiple switches may be Hierarchy-Based Routing (HBR) switches or Port-Based Routing (PBR) switches.

[0395] The multi-port CXL device 2430 may encompass all of CXL Type 1, Type 2, and Type 3 devices.

[0396] For example, the multi-port CXL device 2430 may be a multi-port CXL Type 2 device. In this case, the multi-port CXL Type 2 device may be basically connected to a single CXL host device. Since the multi-port CXL Type 2 device exposes the memory space to the host, the memory address space of one CXL device may be redundantly mapped to different locations within the CXL host physical address space.

[0397] FIG. 25 is a diagram illustrating a case in which a memory address space of a multi-port CXL device is recognized as multiple memory address spaces in a physical address space of a multi-port CXL host device.

[0398] Referring to FIG. 25, it can be seen that an area 2520 within a physical address space 2540 of the multi-port CXL device (Device Physical Address space), which can be accessed by the CXL host device, is redundantly mapped to four different areas 2511, 2512, 2513, and 2514 in a CPU physical address space (CPU Physical Address space) 2530.

[0399] The CPU may be the CXL host device, and may include multiple root ports. For example, the CPU may include four root ports.

[0400] When the multi-port CXL host device, the multi-port CXL device, and switches are connected in relation to FIG. 25, an example in which the physical address space of the multi-port CXL device is redundantly mapped to the physical address space of the multi-port CXL host device is illustrated in FIG. 26.

[0401] FIG. 26 is a diagram illustrating a method in which the multi-port CXL host device recognizes one multi-port CXL device connected to different root ports.

[0402] Referring to FIG. 26, a CPU 2610 may include two root ports 2671 and 2672, and the two root ports 2671 and 2672 are connected to an accelerator 2620 through respective switches 2681 and 2682. Here, it can be seen that there are areas 2651 and 2652 appearing by redundantly mapping a Host-managed Device Memory (HDM)-DB 2660 within the physical address space 2640 of the accelerator device 2620 into spaces 2691 and 2692 allocated to respective root ports 2671 and 2672 within a host physical address space 2630.

[0403] The CPU 2610 may be a CXL host device, and may include multiple root ports. For example, the CPU 2610 may include four root ports.

[0404] Here, the accelerator device 2620 may be a multi-port CXL device.

[0405] Here, the accelerator device 2620 may be a multi-port CXL Type 2 device.

[0406] Here, the physical address space 2640 of the accelerator device may include the memory address space of the CXL device.

[0407] Here, the HDM-DB 2660 may be the memory address space of the multi-port CXL device.

[0408] Here, when the CXL Type 2 or Type 3 device maps an internal memory space thereof to the address space of the host, the Host-managed Device Memory (HDM) may refer to the address space. The HDM may be classified into HDM-D, HDM-DB, and HDM-H depending on a scope and a method in which cache coherency is maintained.

[0409] Here, the HDM-DB 2660 may support a Back-Invalidate protocol that allows a device or a switch to directly request the host to invalidate a cache of the corresponding data.

[0410] In this way, from the perspective of the CXL CPU (host), the physically identical CXL device that accesses the CXL CPU through different root ports may be treated as separate, independent CXL devices. The contiguous memory address spaces mapped to respective root ports of the CXL CPU (host) may be statically allocated. Therefore, the memory address space of one CXL device may appear to be redundantly mapped to different locations in the Host Physical Address (HPA) space of the CXL CPU (host). Such redundant mapping causes traffic imbalance in messages or message traffic, thus deteriorating network performance. A multi-port CXL Type 2 device is basically connected to a single CXL CPU (host), and exposes a memory space to the host, thus causing such a problem.

[0411] FIG. 27 is a diagram illustrating an example of the configuration of a CXL host device according to an embodiment of the present disclosure.

[0412] Referring to FIG. 27, a CPU 2710 according to an embodiment of the present disclosure includes sub-areas 2761, 2762, 2763, 2764, and 2765, four root ports 2731, 2732, 2733, and 2734, and a memory 2740 that provides a host physical address space 2720 corresponding to a memory address space of a multi-port CXL device connected through the four root ports 2731, 2732, 2733, and 2734.

[0413] Here, the CPU 2710 may be the CXL host device, and may include multiple root ports.

[0414] The example illustrated in FIG. 27 shows a case in which, in a set 2750 of the sub-areas, the five sub-areas 2761, 2762, 2763, 2764, and 2765 correspond to the four root ports 2731, 2732, 2733, and 2734. The sub-areas 2761, 2762, 2763, 2764, and 2765 may not overlap each other, and the sub-area set 2750 including the sub-areas 2761, 2762, 2763, 2764, and 2765 may correspond to the memory address space of the multi-port CXL device.

[0415] The sub-areas 2761, 2762, 2763, 2764, and 2765 may denote a subset of the sub-area set 2750.

[0416] Here, the sub-area set 2750 may have a single area corresponding to the memory address space of the multi-port CXL device.

[0417] Here, the host physical address space 2720 may have an area, corresponding to the memory address space of the multi-port CXL device, for each root port. From the perspective of the CPU 2710, a physically identical multi-port CXL device that accesses the CPU 2710 through different root ports is treated as separate, independent CXL devices. Contiguous address spaces mapped to respective root ports may be statically allocated to the host physical address space 2720 of the CPU 2710. Therefore, the memory address space of one CXL device may be redundantly mapped to different locations within the host physical address space of the CXL host device. Even in a case in which, for each root port, an area corresponding to the memory address space of the multi-port CXL device is present, the sub-areas 2761, 2762, 2763, 2764, and 2765 may not overlap each other, and the sub-area set 2750 including the sub-areas 2761, 2762, 2763, 2764, and 2765 may correspond to the memory address space of the multi-port CXL device.

[0418] Here, among the four root ports 2731, 2732, 2733, and 2734, at least one root port 2731, 2732, 2733, and 2734 used to access the access target in the memory address space of the multi-port CXL device may be determined based on the sub-areas 2761, 2762, 2763, 2764, and 2765 in the host physical address space 2720 corresponding to the access target.

[0419] For example, when the CPU 2710 accesses an access target in the memory address space of a multi-port CXL device corresponding to the sub-area 2761, it may be determined that the root port 2731 (RP #0) is to be used to access the access target.

[0420] For example, when the CPU 2710 accesses an access target in the memory address space of a multi-port CXL device corresponding to the sub-area 2762, it may be determined that the root port 2732 (RP #1) is to be used to access the access target.

[0421] For example, when the CPU 2710 accesses an access target in the memory address space of a multi-port CXL device corresponding to the sub-area 2763, it may be determined that the root port 2733 (RP #2) is to be used to access the access target.

[0422] For example, when the CPU 2710 accesses an access target in the memory address space of a multi-port CXL device corresponding to the sub-area 2764, it may be determined that the root port 2734 (RP #3) is to be used to access the access target.

[0423] For example, when the CPU 2710 accesses an access target in the memory address space of a multi-port CXL device corresponding to the sub-area 2765, it may be determined that the root port 2731 (RP #0) is to be used to access the access target.

[0424] FIG. 28 is a diagram illustrating a method in which a CXL host device interleaves a memory through a virtual address space according to an embodiment of the present disclosure.

[0425] Referring to FIG. 28, sub-areas 2841, 2842, 2843, 2844, and 2845 in a host physical address space 2820 corresponding to an access target in a CPU 2870 may be identified based on a page table that stores mapping information for mapping contiguously arranged virtual sub-areas 2831, 2832, 2833, 2834, and 2835 in a host virtual address space 2810 to the sub-areas 2841, 2842, 2843, 2844, and 2845.

[0426] Here, the CPU 2870 may be a CXL host device, and may include multiple root ports. For example, the CPU 2870 may include four root ports 2851, 2852, 2853, and 2854.

[0427] Here, the page table of the CPU 2870 may store mapping information for mapping the contiguously arranged virtual sub-areas 2831, 2832, 2833, 2834, and 2835 in the host virtual address space 2810 to the sub-areas 2841, 2842, 2843, 2844, and 2845.

[0428] For example, the CPU 2870 may store, in the page table, mapping information for mapping the virtual sub-area 2831 to the sub-area 2841.

[0429] For example, the CPU 2870 may store, in the page table, mapping information for mapping the virtual sub-area 2832 to the sub-area 2842.

[0430] For example, the CPU 2870 may store, in the page table, mapping information for mapping the virtual sub-area 2833 to the sub-area 2843.

[0431] For example, the CPU 2870 may store, in the page table, mapping information for mapping the virtual sub-area 2834 to the sub-area 2844.

[0432] For example, the CPU 2870 may store, in the page table, mapping information for mapping the virtual sub-area 2835 to the sub-area 2845.

[0433] Here, the sub-areas 2841, 2842, 2843, 2844, and 2845 corresponding to the four root ports 2851, 2852, 2853, and 2854 may not overlap each other, and a set of the sub-areas may correspond to the memory address space of the multi-port CXL device.

[0434] The virtual sub-areas 2831, 2832, 2833, 2834, and 2835 may denote a subset of a set 2860 of the virtual sub-areas. The set 2860 of the virtual sub-areas may correspond to the memory address space of the multi-port CXL device.

[0435] Here, among the four root ports 2851, 2852, 2853, and 2854, at least one root port used to access an access target in the memory address space of the multi-port CXL device may be determined based on the sub-areas in the host physical address space, corresponding to the access target. Further, based on the page table that stores mapping information for mapping the virtual sub-areas 2831, 2832, 2833, 2834, and 2835 in the host virtual address space 2810 to the sub-areas 2841, 2842, 2843, 2844, and 2845 in the host physical address space 2820, a root port through which access to the access target is to be made may be determined using the virtual sub-areas 2831, 2832, 2833, 2834, and 2835.

[0436] For example, when accessing an access target in the memory address space of the multi-port CXL device corresponding to the virtual sub-area 2831 in the host virtual address space 2810, the sub-area 2841 of the host physical address space 2820 may be identified based on the page table, and a root port that is used to access the access target in the memory address space of the multi-port CXL device may be determined as the root port 2851 (RP #0) to which the sub-area 2841 is mapped.

[0437] For example, when accessing an access target in the memory address space of the multi-port CXL device corresponding to the virtual sub-area 2832 in the host virtual address space 2810, the sub-area 2842 of the host physical address space 2820 may be identified based on the page table, and a root port that is used to access the access target in the memory address space of the multi-port CXL device may be determined as the root port 2852 (RP #1) to which the sub-area 2842 is mapped.

[0438] For example, when accessing an access target in the memory address space of the multi-port CXL device corresponding to the virtual sub-area 2833 in the host virtual address space 2810, the sub-area 2843 of the host physical address space 2820 may be identified based on the page table, and a root port that is used to access the access target in the memory address space of the multi-port CXL device may be determined as the root port 2853 (RP #2) to which the sub-area 2843 is mapped.

[0439] For example, when accessing an access target in the memory address space of the multi-port CXL device corresponding to the virtual sub-area 2834 in the host virtual address space 2810, the sub-area 2844 of the host physical address space 2820 may be identified based on the page table, and a root port that is used to access the access target in the memory address space of the multi-port CXL device may be determined as the root port 2854 (RP #3) to which the sub-area 2844 is mapped.

[0440] For example, when accessing an access target in the memory address space of the multi-port CXL device corresponding to the virtual sub-area 2835 in the host virtual address space 2810, the sub-area 2845 of the host physical address space 2820 may be identified based on the page table, and a root port that is used to access the access target in the memory address space of the multi-port CXL device may be determined as the root port 2851 (RP #0) to which the sub-area 2845 is mapped.

[0441] The sub-areas 2841, 2842, 2843, 2844, and 2845 corresponding to the four root ports 2851, 2852, 2853, and 2854 may not overlap each other, and a set of the sub-areas may correspond to the memory address space of the multi-port CXL device. Furthermore, since the mapping information for mapping the sub-areas 2841, 2842, 2843, 2844, and 2845 to the virtual sub-areas 2831, 2832, 2833, 2834, and 2835 is stored in the page table, the access target in the memory address space of the multi-port CXL device may be accessed through the set 2860 of the virtual sub-areas of the host virtual address space 2810.

[0442] However, in this case, the PCIe Address Translation Service (ATS) needs to be utilized, and communication is performed through a non-Unordered I / O (UIO) CXL.io Transaction Layer Packet (TLP), and thus communication speed, bottlenecks, or the like may need to be considered.

[0443] Although an interleaving unit varies depending on an operating system (OS), it may be set by software, and may not be limited to a specific unit.

[0444] For example, a method for performing interleaving on a 4 KB basis may be implemented.

[0445] For example, the interleaving unit may be designated and managed by a user through software in conformity with the characteristics of an application that is used.

[0446] For example, the interleaving unit may be set using a method designated by system software.

[0447] For example, contiguous virtual address spaces may be divided into interleaving units and mapped to be interleaved across the HDM space through the page table.

[0448] In this environment, the multi-port CXL device may support an Address Translation Service (ATS). Typically, a server-class CPU may support all service types. Here, the multi-port CXL device may be an accelerator.

[0449] In this case, because the multi-port CXL host device does not perform unnecessary memory access, and does not cache unnecessary data in a cache, the waste of a cache space may be reduced, and message traffic may also be decreased. Further, data may be prevented from being cached in a space that is not used, thus reducing unnecessary Back-Invalidate Snoop (BIsnp) and preventing traffic from being concentrated on a specific root port.

[0450] FIG. 29 is a diagram illustrating an example in which a CXL host device interleaves a memory using a CXL memory interleaving function according to an embodiment of the present disclosure.

[0451] Referring to FIG. 29, sub-areas 2921, 2922, 2923, 2924, and 2925 may be contiguously arranged in a host physical address space 2910 in a CPU 2930. In the CPU 2930, the sub-areas 2921, 2922, 2923, 2924, and 2925 may be mapped to four root ports 2941, 2942, 2943, and 2944 based on CXL memory interleaving.

[0452] The CPU 2930 may be a CXL host device, and may include multiple root ports. For example, the CPU 2930 may include the four root ports 2941, 2942, 2943, and 2944.

[0453] Here, the sub-areas 2921, 2922, 2923, 2924, and 2925 corresponding to the four root ports 2941, 2942, 2943, and 2944 may not overlap each other, and a set 2950 of the sub-areas may correspond to a memory address space of a multi-port CXL device. The sub-areas2921, 2922, 2923, 2924, and 2925 may indicate only a subset of the set 2950 of sub-areas.

[0454] Here, among the four root ports 2941, 2942, 2943, and 2944, at least one root port used to access the access target in the memory address space of the multi-port CXL device may be determined based on the sub-areas 2921, 2922, 2923, 2924, and 2925 in the host physical address space 2910 corresponding to the access target.

[0455] Here, the multi-port CXL device connected to the multi-port CXL host device may be a CXL Type 2 device. A memory space of the CXL Type 2 device may be defined by HDM-D / HDM-DB according to the CXL specification, and the corresponding memory space may be interleaved according to the CXL specification.

[0456] Software that performs memory interleaving may interleave the HDM itself mapped to the host address space on a specific size unit, and may then allocate interleaved results to different root ports.

[0457] Here, the sub-areas 2921, 2922, 2923, 2924, and 2925 may be selected one by one, and may be sequentially mapped to the root ports 2941, 2942, 2943, and 2944.

[0458] For example, the sub-area 2921 may be mapped to the root port 2944 (RP #3), the sub-area 2922 may be mapped to the root port 2941 (RP #0), the sub-area 2923 may be mapped to the root port 2942 (RP #1), the sub-area 2924 may be mapped to the root port 2943 (RP #2), and the sub-area 2925 may be mapped to the root port 2944 (RP #3).

[0459] In this case, because the multi-port CXL host device does not perform unnecessary memory access, and does not cache unnecessary data in a cache, the waste of a cache space may be reduced, and message traffic may also be decreased.

[0460] FIG. 30 is a diagram illustrating an example in which a multi-port CXL host device maps sub-areas to multiple root ports based on an interleaving logic according to an embodiment of the present disclosure.

[0461] Referring to FIG. 30, sub-areas 3021, 3022, 3023, 3024, and 3025 may be contiguously arranged in a host physical address space 3010 in a CPU 3050 according to an embodiment of the present disclosure, and may be mapped to four root ports 3041, 3042, 3043, and 3044 based on an interleaving logic 3030 that maps the sub-areas 3021, 3022, 3023, 3024, and 3025 to the four root ports 3041, 3042, 3043, and 3044. By means of this, modification of OS and software may be minimized.

[0462] Here, the interleaving logic 3030 may include performing mapping based on the host physical address space 3010 of the sub-areas corresponding to the access target.

[0463] Here, the CPU 3050 may be a CXL host device, and may include multiple root ports. For example, the CPU 3050 may include the four root ports 3041, 3042, 3043, and 3044.

[0464] Here, the sub-areas 3021, 3022, 3023, 3024, and 3025 corresponding to the four root ports 3041, 3042, 3043, and 3044 may not overlap each other, and a set 3060 of the sub-areas may correspond to the memory address space of the multi-port CXL device.

[0465] Here, among the four root ports 3041, 3042, 3043, and 3044, at least one root port used to access the access target in the memory address space of the multi-port CXL device may be determined based on the sub-areas 3021, 3022, 3023, 3024, and 3025 in the host physical address space 3010 corresponding to the access target.

[0466] For example, the interleaving logic 3030 may be integrated into the Memory Management Unit (MMU) / Input / Output Memory Management Unit (IOMMU) in the CPU 3050. Furthermore, the interleaving logic 3030 may adopt a scheme for selecting a root port based on a specific bit of the host physical address space 3010.

[0467] For example, this may be a scheme for selecting a root port depending on a remainder obtained by dividing the specific bit of the host physical address space 3010 by N, which is the number of multiple ports of the multi-port CXL host device.

[0468] For example, when there are four root ports, the scheme may be a scheme for selecting a root port depending on the value of (phys_addr[14:12] % 4). Here, the phys_addr[14:12] may denote bit values ranging from 12-th to 14-th bits of the host physical address space. % may refer to a modulo operation.

[0469] For example, it may be assumed that the sub-areas 3021, 3022, 3023, 3024, and 3025 are allocated to contiguous spaces. A root port for accessing the memory address space of the multi-port CXL device may be determined as the root port 3041 (RP #0) depending on a remainder obtained by dividing the specific bit of the host physical address space of the sub-area 3021 by 4, which is the number of multiple ports. For example, a root port for accessing the memory address space of the multi-port CXL device may be determined as the root port 3042 (RP #1) depending on a remainder obtained by dividing the specific bit of the host physical address space of the sub-area 3022 by 4, which is the number of multiple ports. A root port for accessing the memory address space of the multi-port CXL device may be determined as the root port 3043 (RP #2) depending on a remainder obtained by dividing the specific bit of the host physical address space of the sub-area 3023 by 4, which is the number of multiple ports. A root port for accessing the memory address space of the multi-port CXL device may be determined as the root port 3044 (RP #3) depending on a remainder obtained by dividing the specific bit of the host physical address space of the sub-area 3024 by 4, which is the number of multiple ports. A root port for accessing the memory address space of the multi-port CXL device may be determined as the root port 3041 (RP #0) depending on a remainder obtained by dividing the specific bit of the host physical address space of the sub-area 3025 by 4, which is the number of multiple ports.

[0470] For example, when address translation is performed, port mapping may be automatically performed. In this case, the operating system may not use the page table. In this case, the CPU may directly map the corresponding root port.

[0471] For example, during memory access, port selection may be automated. When a cache miss or the like occurs, the corresponding port may be determined based on addresses. Here, occurrence of a cache miss may refer to a situation in which a message exits the CPU via the root port in order to access the memory space of the CXL device connected through the root port of the CPU.

[0472] Here, the interleaving logic may adopt a scheme for selecting the sub-areas one by one and sequentially mapping the sub-areas to the root ports. For example, the sub-area 3021 may be mapped to the root port 3044 (RP #3), the sub-area 3022 may be mapped to the root port 3041 (RP #0), the sub-area 3023 may be mapped to the root port 3042 (RP #1), the sub-area 3024 may be mapped to the root port 3043 (RP #2), and the sub-area 3025 may be mapped to the root port 3044 (RP #3).

[0473] In this case, because the multi-port CXL host device does not perform unnecessary memory access, and does not cache unnecessary data in a cache, the waste of a cache space may be reduced, and message traffic may also be decreased.

[0474] FIG. 31 is an operation flowchart illustrating a method in which a multi-port CXL host device accesses the memory of a multi-port CXL device according to an embodiment of the present disclosure.

[0475] Referring to FIG. 31, a CXL-based memory access method according to an embodiment of the present disclosure identifies a memory address space of the multi-port CXL device desired to be accessed at step S3110.

[0476] Also, the CXL-based memory access method identifies at least one sub-area of a host physical address space corresponding to the memory address space of the multi-port CXL device at step S3120.

[0477] Further, the CXL-based memory access method identifies at least one root port corresponding to the at least one sub-area among the multiple root ports at step S3130.

[0478] Furthermore, the CXL-based memory access method accesses the memory address space of the multi-port CXL device using the at least one root port at step S3140.

[0479] Here, the sub-areas corresponding to the multiple root ports may not overlap each other, and a set of the sub-areas may correspond to the memory address space of the multi-port CXL device.

[0480] Here, among the multiple root ports, at least one root port used to access an access target in the memory address space of the multi-port CXL device may be determined based on the sub-areas in the host physical address space, corresponding to the access target.

[0481] Here, the sub-areas within the host physical address space corresponding to the access target may be identified based on a page table that stores mapping information for mapping contiguously arranged virtual sub-areas in the host virtual address space to the sub-areas.

[0482] For example, the CXL-based memory access method may identify sub-areas in the host physical address space corresponding to virtual sub-areas based on a page table by identifying virtual sub-areas in the host virtual address space corresponding to the access target in the memory address space of the multi-port CXL device.

[0483] In this case, the sub-areas may be contiguously arranged in the host physical address space, and may be mapped to the multiple root ports based on CXL memory interleaving.

[0484] Here, in the host physical address space, the sub-areas may be contiguously arranged, and may be mapped to the multiple root ports based on an interleaving logic that maps the sub-areas to the multiple root ports.

[0485] Here, the interleaving logic may include performing mapping based on the host physical address space of the sub-areas corresponding to the access target.

[0486] Here, the sub-areas may be selected one by one, and may be sequentially mapped to the root ports.

[0487] Individual steps illustrated in FIG. 31 may be performed in the order illustrated in FIG. 31, in reverse order, or simultaneously.

[0488] According to the present disclosure, there is provided a CXL host device including multiple root ports and a memory configured to provide a host physical address space corresponding to a memory address space of a multi-port CXL device.

[0489] Further, the present disclosure may allow a multi-port CXL host device to regard the memory spaces of a multi-port CXL device as a single memory, thereby reducing unnecessary traffic and space waste caused by the multi-port CXL device in a CXL fabric topology and enabling efficient transactions.

[0490] Furthermore, the present disclosure allows a multi-port CXL host device to access the memory of a multi-port CXL device using at least one root port when the multi-port CXL host device accesses the memory of the multi-port CXL device.

[0491] As described above, in the CXL system, the CXL host device, the multi-port CXL device, the CXL port expander, the method for transmitting / receiving CXL messages, the message transmission / reception method for multi-port device identification, and the method for accessing the memory of the multi-port CXL device 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 so that various modifications are possible.

Claims

1. A Compute Express Link (CXL) host device, comprising:multiple root ports, each corresponding to at least one sub-area; anda memory configured to provide a host physical address space corresponding to a memory address space of a multi-port CXL device connected through the multiple root ports.

2. The CXL host device of claim 1, wherein sub-areas corresponding to the multiple root ports do not overlap each other, and a set of the sub-areas corresponds to the memory address space of the multi-port CXL device.

3. The CXL host device of claim 2, wherein, among the multiple root ports, at least one root port used to access an access target in the memory address space of the multi-port CXL device is determined based on sub-areas in the host physical address space corresponding to the access target.

4. The CXL host device of claim 3, wherein the sub-areas in the host physical address space corresponding to the access target are identified based on a page table configured to store mapping information for mapping contiguously arranged virtual sub-areas in the host virtual address space to the sub-areas.

5. The CXL host device of claim 3, wherein the sub-areas are contiguously arranged in the host physical address space, and are mapped to the multiple root ports based on CXL memory interleaving.

6. The CXL host device of claim 3, wherein the sub-areas are contiguously arranged in the host physical address space, and are mapped to the multiple root ports based on an interleaving logic configured to map the sub-areas to the multiple root ports.

7. The CXL host device of claim 6, wherein the interleaving logic includes performing mapping based on the host physical address space of the sub-areas corresponding to the access target.

8. The CXL host device of claim 3, wherein the sub-areas are selected one by one and are sequentially mapped to the root ports.

9. A CXL-based memory access method for accessing a memory of a multi-port CXL device in a CXL host device including multiple root ports, comprising:identifying a memory address space of a multi-port CXL device desired to be accessed;identifying at least one sub-area of a host physical address space corresponding to the memory address space of the multi-port CXL device;identifying at least one root port corresponding to the at least one sub-area among the multiple root ports; andaccessing the memory address space of the multi-port CXL device using the at least one root port.

10. The CXL-based memory access method of claim 9, wherein sub-areas corresponding to the multiple root ports do not overlap each other, and a set of the sub-areas corresponds to the memory address space of the multi-port CXL device.

11. The CXL-based memory access method of claim 10, wherein, among the multiple root ports, at least one root port used to access an access target in the memory address space of the multi-port CXL device is determined based on sub-areas in the host physical address space corresponding to the access target.

12. The CXL-based memory access method of claim 11, wherein the sub-areas in the host physical address space corresponding to the access target are identified based on a page table configured to store mapping information for mapping contiguously arranged virtual sub-areas in the host virtual address space to the sub-areas.

13. The CXL-based memory access method of claim 11, wherein the sub-areas are contiguously arranged in the host physical address space, and are mapped to the multiple root ports based on CXL memory interleaving.

14. The CXL-based memory access method of claim 11, wherein the sub-areas are contiguously arranged in the host physical address space, and are mapped to the multiple root ports based on an interleaving logic configured to map the sub-areas to the multiple root ports.

15. The CXL-based memory access method of claim 14, wherein the interleaving logic includes performing mapping based on the host physical address space of the sub-areas corresponding to the access target.

16. The CXL-based memory access method of claim 11, wherein the sub-areas are selected one by one and are sequentially mapped to the root ports.