Adaptation method for computing high-speed interconnection link CXL equipment
By obtaining the register fields of the root port of the CPU, adaptively configure the initialization parameters of the CXL device and report them to the BMC, solving the problem that the BIOS cannot adapt to the CXL device adaptively, and improving system flexibility and management accuracy.
Patent Information
- Application Number
- CN202410964065.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-11-26
AI Technical Summary
In the prior art, BIOS cannot adapt to CXL devices adaptively, resulting in poor system flexibility and scalability, and the connection of the root port of the CPU is not possible, affecting the management accuracy of CXL devices.
By obtaining the register fields corresponding to the root port of the CPU, determining the device type and adapting to configure the initialization parameters, the automatic adaptation of the CXL device is realized, and reporting it to the BMC to establish a communication channel, improving the accuracy of the BMC's out-of-band management of the CXL device.
It improves the flexibility and scalability of the system, simplifies the configuration process of CXL devices, and enhances the management accuracy and convenience of CXL devices.
Smart Images

Figure CN119025460A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of servers, and in particular to an adaptation method for computing a high-speed interconnect link CXL device. Background Art
[0002] Compute Express Link (CXL) is a high-speed interconnect technology standard that is used to meet the needs of efficient data interaction between the central processing unit (CPU) and dedicated accelerators (such as GPU, FPGA, AI chips, etc.) in computing and storage systems. Since CXL is a high-speed interconnect technology standard developed based on the Peripheral Component Interconnect Express (PCIe), CXL devices can be physically connected to the CPU through the existing root port.
[0003] In the current technology, in order to support the normal operation of the CXL device connected to the CPU, it is necessary to manually identify the root port connected to the CXL device in the CPU, and manually configure the corresponding initialization parameters for the root port connected to the CXL device. Subsequently, the Basic Input Output System (BIOS) is used to perform link enumeration in the startup phase, and the corresponding system resources are allocated to the CXL device to support the normal operation of the CXL device connected to the root port of the CPU.
[0004] It can be seen that the reason why the initialization parameters of the root port connected to the CXL device need to be manually identified and configured in the current technology is that the BIOS cannot obtain the connection status of the CPU's root port, that is, the device connected to the root port is a CXL device or a PCIe device. As a result, the BIOS cannot achieve adaptive adaptation of the CXL device, resulting in poor overall system flexibility and scalability. Summary of the invention
[0005] The present application provides an adaptation method for computing a high-speed interconnect link CXL device, which realizes adaptive adaptation of the CXL device and improves the overall flexibility and scalability of the system; further, the BIOS can obtain the connection status of the root port of the CPU, and then report the corresponding relationship between the root port and the CXL device connected to it to the BMC, so that a communication channel can be established between the BMC and the CXL device, thereby improving the accuracy of the BMC's out-of-band management of the CXL device connected to the root port of the CPU.
[0006] In order to achieve the above objectives, this application adopts the following technical solutions:
[0007] In the first aspect, the present application provides an adaptation method for computing a high-speed interconnect link CXL device, comprising: obtaining a register field corresponding to a current root port in a first controller, the register field being used to store a type identifier of a device connected to a root port of a central processing unit of a computing device; determining the type of device connected to the current root port according to the register field corresponding to the current root port; when the type of device connected to the current root port is a CXL device, initializing and configuring the current root port to facilitate link enumeration, and allocating system resources to the CXL device connected to the current root port. Since the BIOS can obtain the connection relationship of the root port of the central processing unit, that is, the BIOS can obtain the type of device connected to the current root port, when it is determined that the device connected to the current root port is a CXL device, the initialization parameters of the current root port are adaptively configured according to the connection status of the root port, and there is no need to manually identify and configure the initialization parameters of the CXL device, thereby achieving adaptive adaptation of the CXL device, and improving the overall flexibility and scalability of the system. Furthermore, the BIOS can obtain the connection status of the root port of the CPU, so the BIOS can report the correspondence between the current root port and the CXL device connected to it to the BMC, so that the BMC can establish a communication channel with the CXL device. The BMC can perform accurate out-of-band management of the CXL device connected to the CPU root port based on the communication channel.
[0008] In a possible implementation, the register field corresponding to the current root port is a device identifier filled in by the first controller according to the type of the device connected to the current root port. The device identifier of the device connected to the root port is filled in the corresponding register field through the hardware capability of the first controller, thereby assisting the BIOS in determining the type of the device connected to the current root port according to the register field.
[0009] In a possible implementation, initializing and configuring the current root port includes: initializing and configuring the current root port according to the initialization parameters of the CXL device set in advance; or receiving a setting operation of the user for the initialization parameters of the CXL device connected to the current root port; in response to the setting operation, obtaining the initialization parameters of the CXL device input by the user; and initializing and configuring the current root port according to the initialization parameters of the CXL device input by the user. In the present application, the current root port can be initialized and configured by fixed initialization parameters, or the current root port can be initialized and configured in response to the setting operation of the user, so as to complete the initialization operation of the current root port according to the user's needs.
[0010] In a possible implementation, the current root port is initialized and configured, including: configuring the CXL bandwidth for the current root port, the CXL bandwidth is the maximum transmission rate of data transmission between the central processor and the CXL device connected through CXL; configuring the working mode of the current root port, the working modes of the current root port include: CXL.io mode, CXL.memory mode and CXL.cache mode; enabling the CXL extended memory recognition of the current root port; configuring the slot information corresponding to the current root port, the slot information is the identification information of the physical slot of the CXL device connected to the current root port on the computing device. In this application, the slot information corresponding to the current root port is configured, so that the user can obtain the CXL device and the slot connected to the CXL device, so as to facilitate the subsequent accurate problem location.
[0011] In one possible implementation, the identification information is a unique identifier of a slot corresponding to a pre-set root port; configuring the slot information corresponding to the current root port includes: determining the unique identifier of the slot corresponding to the current root port based on the current root port; and configuring the slot information corresponding to the current root port based on the unique identifier of the slot corresponding to the current root port.
[0012] In a possible implementation, when the device type connected to the current root port is a PCIe device, the current root port is initialized and configured to start link enumeration and configure system resources for the PCIe device connected to the current root port. The present application also implements adaptive adaptation of PCIe devices.
[0013] In a possible implementation, during the link enumeration process, the devices connected to the root port are scanned and identified one by one, and unique BDF information is assigned to each device connected to the root port, and the BDF information includes: bus information, device information and function information. BDF information is used to represent the device in the PCIe bus architecture. After each device connected to the root port is assigned unique BDF information, the device can be regarded as part of the system resources and can be accessed and controlled by the operating system and driver through the BDF information.
[0014] In a possible implementation, the BDF information of the CXL device is stored in the root complex register block RCRB space corresponding to the CXL device, so that the BIOS can subsequently obtain the BDF information corresponding to the CXL device from the RCRB space corresponding to the CXL device.
[0015] In a possible implementation, the devices connected to each root port are traversed; when the device connected to the root port is a CXL device, the CXL device information is reported to the operating system and the out-of-band management controller; when the device connected to the root port is a PCIe device, the PCIe device information is reported to the operating system and the out-of-band management controller. For the operating system, the CXL device information / PCIe device information can assist the operating system in completing the hardware identification and initialization process, ensuring that the operating system can correctly configure the CXL device / PCIe device and load the necessary driver; for the out-of-band management controller, the out-of-band management controller can use the CXL device information / PCIe device information to perform hardware health checks.
[0016] In a possible implementation, the BDF information of the CXL device is read from the RCRB space corresponding to the CXL device; the BDF information of the CXL device and the initialization configuration information of the root port connected to the CXL device are reported to the operating system and the out-of-band management controller; the initialization configuration information of the root port connected to the CXL device includes: the CXL bandwidth, working mode, enabling parameters and slot information of the root port.
[0017] In a second aspect, the present application provides a computing device, including a memory and a processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the processor executes the CXL device adaptation method in the first aspect and its possible implementations.
[0018] In a third aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed on a computing device, the computing device implements the CXL device adaptation method in the first aspect and its possible implementations.
[0019] In a fourth aspect, an embodiment of the present application provides a computer program product, which includes computer program instructions. When the computer program instructions are executed on a computing device, the computing device implements the CXL device adaptation method in the first aspect and possible implementations thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A schematic diagram of the structure of a server provided in an embodiment of the present application;
[0021] Figure 2 A flowchart of a method for calculating an adaptation of a high-speed interconnect link CXL device provided in an embodiment of the present application;
[0022] Figure 3A schematic diagram of a process for initializing and configuring the current root port provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] The terms "first", "second", "third", etc. in the specification, claims and drawings of this application are used to distinguish different objects rather than to limit a specific order.
[0024] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0025] In order to make the description of the following embodiments clear and concise, a brief introduction to the related technology is first given:
[0026] Peripheral Component Interconnect Express (PCIe) is a high-speed serial computer expansion bus standard that is primarily used to expand computer system bus data throughput and increase device communication speed.
[0027] Compute Express Link (CXL) is a high-speed interconnect technology standard developed based on PCIe. Specifically, CXL reuses the physical layer of PCIe and expands on the logical layer to add support for cache coherence and direct memory access. CXL reuses the physical layer of PCIe, that is, CXL is compatible with PCIe on the logical layer, which means that CXL can use the existing PCIe infrastructure.
[0028] CXL plays a vital role in application scenarios such as data centers, cloud computing, edge computing, and hybrid memory systems.
[0029] In the data center architecture, CXL enables the CPU to work more efficiently with different types of accelerators (such as graphics processors GPU, field-programmable gate arrays FPGA, application-specific integrated circuits ASIC, etc.) and dedicated memory devices to support large-scale parallel computing tasks (such as artificial intelligence, machine learning, big data analysis, etc.).
[0030] In cloud computing environments, CXL can promote more efficient resource sharing and virtualization, allowing cloud service providers to configure and manage hardware resources more flexibly. For example, CXL supports memory expansion and pooling, allowing cloud service providers to dynamically increase or reallocate memory resources to different virtual machines or containers, thereby improving resource utilization and response speed.
[0031] In edge computing scenarios, CXL can support efficient operation and real-time data processing of edge servers, so that edge servers can process large amounts of data in real time, which is important for applications that require fast responses. For example, CXL edge servers can tightly integrate accelerators such as GPU, FPGA, and ASIC. This integration significantly improves the real-time processing capabilities of large amounts of data and ensures low-latency responses.
[0032] In hybrid memory systems, CXL allows the CPU to directly connect and communicate with different types of memory devices (such as DRAM, persistent memory, etc.), and CXL supports dynamic allocation and reallocation of memory resources according to the needs of different workloads, thereby improving the flexibility of memory configuration.
[0033] The embodiment of the present application provides an adaptation method for computing a high-speed interconnect link CXL device, including: obtaining a register field corresponding to the current root port in the first controller; determining the type of device connected to the current root port according to the obtained register field; when determining that the type of device connected to the current root port is a CXL device, initializing and configuring the current root port to facilitate link building enumeration, and allocating corresponding system resources to the CXL device connected to the current root port to complete the adaptation of the CXL device. Since the BIOS can obtain the connection status of the CPU's root port, the initialization parameters of the current root port are adaptively configured according to the connection status of the root port, and there is no need to manually identify and configure the initialization parameters of the root port connected to the CXL device, thereby realizing the BIOS adaptive adaptation of the CXL device, and improving the overall flexibility and scalability of the computing device system.
[0034] Furthermore, the BIOS can obtain the connection status of the CPU's root port, so the BIOS can obtain information such as the correspondence between the CPU's root port and the CXL device connected thereto, and report the correspondence between the root port and the CXL device connected thereto to the BMC, so that the BMC can establish a communication channel with the CXL device, and the BMC can accurately manage the CXL device connected to the CPU's root port out-of-band based on the communication channel. Exemplarily, the BMC detects that there is an abnormality in the information of the CXL device B, and the BMC can determine which root port the CXL device B is connected to, thereby enabling the BMC to accurately manage the CXL device out-of-band.
[0035] Embodiment 1:
[0036] Before introducing a method for adapting a computing high-speed interconnect link CXL device provided in an embodiment of the present application, first Figure 1 , an application scenario of a CXL device adaptation method provided in an embodiment of the present application is introduced by way of example.
[0037] like Figure 1 As shown, a CXL device adaptation method provided in an embodiment of the present application is applied to a server 10. The server 10 includes a mainboard, wherein the mainboard includes a CPU, a BIOS chip, an out-of-band management controller, and a complex programmable logic device.
[0038] It should be noted that if Figure 1 The server 10 shown is a computing device. The adaptation method of a CXL device provided in the embodiment of the present application can also be applied to other computing devices, such as personal computers (PCs), supercomputers, etc., which is not specifically limited in the present application.
[0039] Specifically, the out-of-band management controller is connected to the BIOS chip through the IPMI bus, and the out-of-band management controller is connected to the complex programmable logic device through a local bus (Local Bus).
[0040] IPMI (Intelligent Platform Management Interface) is an emerging hardware management protocol that provides remote management and monitoring capabilities for servers, storage, and network devices. That is, the communication between the out-of-band management controller and the BIOS chip is based on IPMI.
[0041] The local bus, also known as the system bus, allows data to be quickly transferred within the system to support efficient system operation. The local bus is used inside the server, allowing the various hardware components in the server to communicate quickly and efficiently.
[0042] Among them, the CPU (central processing unit) is the computing and control core of the server system and the final execution unit for information processing and program running. The CPU includes multiple root ports, such as Figure 1 As shown, only the CPU including three root ports is taken as an example.
[0043] In the embodiment of the present application, the root port may refer to the port on the non-root bridge that is closest to the root bridge. In the PCIe architecture, the root complex is the core of the PCIe architecture, usually integrated in the CPU or north bridge chip, responsible for managing the initialization, configuration, error handling and data packet routing of the PCIe bus; in the PCIe architecture, the topology of PCIe is a tree topology, and the root port can be regarded as the root node in the PCIe tree topology, that is, the root port can be used to connect PCIe devices. For PCIe devices, whether directly connected or indirectly connected through a PCIe switch, they will communicate with the root complex through the connected root port.
[0044] Specifically, the root complex includes a PCIe controller, which provides physical layer and data link layer functions, enabling the CPU to communicate with various devices through the PCIe bus.
[0045] It can be seen that in the PCIe architecture, the main function of the root port is to serve as a port between the root complex and the external PCIe device. It is responsible for not only forwarding data from the CPU to the PCIe device, but also returning data from the PCIe device to the CPU. The existence of the root port enables PCIe devices to be connected in a tree topology, thus forming an efficient and scalable bus system that can support high-speed data transmission and the simultaneous connection of a large number of devices.
[0046] Furthermore, since CXL reuses the physical layer of PCIe, that is, CXL is compatible with PCIe at the logical layer, the root port can also be used to connect CXL devices.
[0047] Specifically, for the root port connected to the PCIe device and the root port connected to the CXL device, although both are root ports, the protocols followed by the root port connected to the PCIe device and the root port connected to the CXL device are different, that is, the root port connected to the PCIe device follows the PCIe protocol, and the root port connected to the CXL device follows the CXL protocol. Exemplarily, in order to enable the root port to support the CXL device, it can be achieved by updating the firmware (Firmware, FW). The firmware update can add or modify the underlying software module of the root port so that it can support the CXL protocol. Specifically, the firmware of the PCIe controller in the root complex is upgraded so that it can correctly parse the CXL protocol commands and provide corresponding services.
[0048] It should be noted that in Figure 1 In the application scenario shown, one CPU is provided on the mainboard. In addition, there may be two or more CPUs on the mainboard. This application does not specifically limit the number of CPUs provided on the mainboard.
[0049] Among them, the out-of-band management controller is a management component independent of the CPU, which can remotely maintain and manage the CPU and the devices connected to the root port of the CPU (PCIe devices or CXL devices), and can communicate with the CPU through the out-of-band management interface of the server.
[0050] It should be noted that the out-of-band management controller can be a monitoring management unit outside the server, a management system in a management chip outside the processor, a baseboard management controller (BMC), a system management module (SMM), etc. This application does not specifically limit the specific form of the out-of-band management controller. For example, Figure 1 As shown, in the following embodiments, the out-of-band management controller is described by taking BMC as an example.
[0051] Among them, the BIOS chip is a specific ROM chip used to store the BIOS program. BIOS (Basic InputOutput System) is a set of programs solidified on the ROM chip on the mainboard of the server. BIOS stores the most important basic input and output programs of the server, and also includes the self-test program after power-on and the system self-start program. The main function of BIOS is to provide the server with the lowest level and most direct hardware settings and control. Furthermore, BIOS is run before the operating system (OS) after the server is powered on. In an embodiment of the present application, BIOS provides the functions of chain enumeration during the server startup phase, allocating resources to PCIe devices and CXL devices connected to the CPU, and reporting information of PCIe devices and CXL devices to the BMC.
[0052] A ROM chip is a physical hardware, which is essentially a storage device. It is a rectangular or square chip in a small flash EEPROM memory module on the motherboard. This type of chip can store BIOS programs. In addition, ROM chips can also store other programs and codes.
[0053] It should be noted that BIOS and OS belong to the software level of the server and are not Figure 1 Shown in.
[0054] Among them, a complex programmable logic device (CPLD) is a high-density, high-speed, low-power programmable logic device. It is a digital integrated circuit in which users construct logical functions according to their own needs. Furthermore, a complex programmable logic device includes one or more registers, and the register of a load-editable logic device is a basic storage element for temporarily storing data or control signals. In an embodiment of the present application, one or more registers included in the complex programmable device are used to store type identifiers corresponding to devices connected to multiple root ports of the CPU, and the type identifier is used to indicate that the device connected to the root port is a CXL device or a PCIe device.
[0055] It should be noted that in Figure 1 In the description, the first controller is described as a complex programmable logic device CPLD. In addition, the first controller can also be a microprocessor (Microprocessor), such as ARM, MIPS; it can also be a field programmable gate array (FPGA), etc., and this application does not make specific limitations.
[0056] The above combination Figure 1 The following is an example of an application scenario of a method for calculating the adaptation of a high-speed interconnect link CXL device provided in an embodiment of the present application. Figure 1 The application scenario shown, combined with Figure 2 and Figure 3 , a method for adapting a computing high-speed interconnect link CXL device provided in an embodiment of the present application is introduced in detail.
[0057] like Figure 2 As shown, an adaptation method for computing a high-speed interconnect link CXL device provided in an embodiment of the present application includes the following steps:
[0058] S201. The server fills in the register field corresponding to the CPLD according to the type of the device connected to the root port.
[0059] Specifically, the CPLD on the server motherboard fills the corresponding type identifier into its corresponding register field according to the type of device connected to the root port, that is, the filled corresponding register field is the type identifier, which is used to indicate whether the device type connected to the root port is a CXL device or a PCIe device.
[0060] The type identifier is a preset identifier for distinguishing a CXL device from a PCIe device. Exemplarily, the first type identifier is used to indicate that the device connected to the root port is a CXL device, and the second type identifier is used to indicate that the device connected to the root port is a PCIe device.
[0061] In a possible implementation, the CPLD includes a register for storing type identifiers corresponding to devices connected to all root ports. Exemplarily, a mainboard of a server includes a CPU, and the CPU includes five root ports, namely root port 1, root port 2, root port 3, root port 4, and root port 5. The CPLD on the mainboard of the server includes a register A, and register A is used to store type identifiers corresponding to devices connected to the five root ports. The fields of register A can be divided into field a1, field a2, field a3, field a4, and field a5, wherein field a1 of register A is used to represent the type identifier of the device connected to root port 1, field a2 is used to represent the type identifier of the device connected to root port 2, field a3 is used to represent the type identifier of the device connected to root port 3, field a4 is used to represent the type identifier of the device connected to root port 4, and field a5 is used to represent the type identifier of the device connected to root port 5.
[0062] In another possible implementation, the CPLD includes a plurality of registers for storing the type identification of the devices connected to the corresponding root ports, respectively, wherein the number of registers for storing the type identification of the devices connected to the root ports is the same as the number of root ports included in the CPU in the server. Exemplarily, a mainboard of the server includes a CPU, and the CPU includes five root ports, namely, root port 1, root port 2, root port 3, root port 4, and root port 5, and the CPLD on the mainboard of the server includes five corresponding registers, namely, register B1, register B2, register B3, register B4, and register B5, wherein the field of register B1 is used to represent the type identification of the device connected to root port 1, the field of register B2 is used to represent the type identification of the device connected to root port 2, the field of register B3 is used to represent the type identification of the device connected to root port 3, the field of register B4 is used to represent the type identification of the device connected to root port 4, and the field of register B5 is used to represent the type identification of the device connected to root port 5.
[0063] It should be noted that it is the hardware capability of the CPLD that the CPLD fills in the corresponding register field according to the type identifier of the device connected to the root port. The CPLD can actively identify the device type of the device connected to the root port and fill in the type identifier in the corresponding register field.
[0064] S202: The server obtains a register field corresponding to the CPLD.
[0065] Specifically, the BIOS of the server obtains the register field corresponding to the CPLD.
[0066] In a possible implementation, when type identifiers of devices connected to all root ports of the CPU are stored in a register, the BIOS obtains a field in the register corresponding to the current root port.
[0067] In another possible implementation, when type identifiers of devices connected to the root ports of the CPU are stored respectively through multiple registers, the BIOS obtains a field in the register corresponding to the current root port.
[0068] S203: The server determines whether the device currently connected to the root port is a PCIe device according to the acquired register field.
[0069] Specifically, the BIOS of the server determines whether the device connected to the current root port is a PCIe device according to the acquired register field. Exemplarily, when the acquired register field is a second type identifier, it is determined that the device connected to the current root port is a PCIe device; when the acquired register field is not a second type identifier, it is determined that the device connected to the current root port is not a PCIe device. Exemplarily, the device connected to the current root port is not a PCIe device, and may be a CXL device, an expansion card, a network card, etc.
[0070] When it is determined that the device currently connected to the root port is a PCIe device, proceed to S204.
[0071] When it is determined that the device currently connected to the root port is not a PCIe device, proceed to S205.
[0072] S204: The server performs corresponding initialization configuration on the current root port.
[0073] Specifically, the server BIOS performs corresponding initialization configuration on the root port (ie, the current root port) to which the PCIe device is connected according to the requirements of the PCIe device.
[0074] The initialization configuration of the root port to which the PCIe device is connected includes: configuration of the power management state, configuration of the link width, configuration of the speed, and the like.
[0075] In general, PCIe devices can be divided into multiple versions according to the different transmission rates of PCIe devices. Different versions are generally named PCIe1.0, PCIe2.0, PCIe3.0, PCIe4.0, PCIe5.0, etc. For PCIe devices with version PCIe3.0, the maximum transmission rate supported is 8GT / s; for PCIe devices with version PCIe4.0, the maximum transmission rate supported is 16GT / s; for PCIe devices with version PCIe5.0, the maximum transmission rate supported is 32GT / S. For PCIe devices with different versions, the server BIOS has different initialization configurations for the root port connected to the PCIe device. For example, for a PCIe device with version PCIe3.0, the BIOS will configure the PCIe device to configure the maximum transmission speed to meet the maximum transmission speed corresponding to PCIe3.0.
[0076] S205: The server determines whether the device currently connected to the root port is a CXL device according to the acquired register field.
[0077] Specifically, the server BIOS determines whether the device currently connected to the root port is a CXL device according to the acquired register field. Exemplarily, when the acquired register field is a first type identifier, it is determined that the device currently connected to the root port is a CXL device; when the acquired register field is not a first type identifier, it is determined that the device currently connected to the root port is not a CXL device. Exemplarily, the device currently connected to the root port is not a CXL device, and the above S203 determines that the device currently connected to the root port is not a PCIe device. The device currently connected to the root port may be an expansion card, a network card, a professional audio interface, etc.
[0078] It should be noted that due to the high flexibility and scalability of the PCIe protocol, almost any device capable of high-speed transmission through a standardized interface can be connected to the root port through an appropriate adapter or controller.
[0079] When it is determined that the device currently connected to the root port is a CXL device, proceed to S206.
[0080] When it is determined that the device currently connected to the root port is not a CXL device, the same initialization configuration as that of a PCIe device can be performed.
[0081] S206: The server initializes the configuration of the current root port.
[0082] Specifically, the server BIOS performs corresponding initialization configuration on the root port (ie, the current root port) connected to the CXL device according to the initialization parameters of the CXL device.
[0083] In a possible implementation, fixed initialization parameters of the CXL device are preset. When the BIOS determines that the device connected to the current root port is a CXL device, the BIOS performs initialization configuration on the current root port according to the preset fixed initialization parameters of the CXL device.
[0084] In another possible implementation, the server BIOS obtains the initialization parameters of the CXL device input by the user in response to the user's setting operation on the initialization parameters of the CXL device, and the BIOS initializes the current root port according to the initialization parameters of the CXL device input by the user, so as to complete the initialization configuration of the current root port according to the user's requirements.
[0085] The initialization parameters include: CXL bandwidth, working mode, enabling parameters, etc. In addition, the initialization parameters may also include error detection mechanism, interrupt mode, etc. Exemplarily, the error detection mechanism may be CRC check, parity check, etc. to ensure the reliability of data transmission and the stability of the link; the interrupt mode defines how the device generates interrupt signals and how the system handles these terminals.
[0086] For ease of understanding, the following Figure 3 The following describes in detail how the server implements the corresponding initialization configuration of the current root port in an embodiment of the present application.
[0087] S301. The server configures a CXL bandwidth for the current root port.
[0088] Specifically, the BIOS of the server configures a corresponding CXL bandwidth for a root port (current root port) connected to the CXL device according to the CXL bandwidth in the initialization parameters.
[0089] Among them, CXL bandwidth refers to the maximum rate of data transmission between devices connected via CXL. CXL bandwidth can be used to reflect the ability of data to be transmitted from one point to another in a very short time.
[0090] In a possible implementation, the user manually configures the corresponding CXL bandwidth according to the setting interface provided by the BIOS and the hardware data of the CXL device; the BIOS implements the configuration of the CXL bandwidth of the root port connected to the CXL device in response to the corresponding CXL bandwidth manually configured by the user.
[0091] The hardware data of the CXL device includes: the highest CXL version it supports (such as CXL1.0, CXL2.0, etc.) and the maximum bandwidth capability (usually based on the PCIe version, such as PCIe4.0x16, PCIe5.0x16, etc.) It should be noted that there is a corresponding relationship between the CXL version and the maximum bandwidth capability.
[0092] Exemplarily, the hardware data of the CXL device is obtained to determine that the maximum bandwidth capability supported by the CXL device is PCIe5.0x16; if the system supports the maximum bandwidth capability, the corresponding CXL bandwidth is manually configured to be the bandwidth corresponding to PCIe5.0x16, or the hardware data of the CXL device is obtained to determine that the highest CXL version supported by the CXL device is CXL2.0, and the corresponding CXL bandwidth is manually configured to be the bandwidth corresponding to the CXL2.0 version. It should be noted that the bandwidth corresponding to PCIe5.0x16 is the same as the bandwidth corresponding to CXL2.0.
[0093] In another possible implementation, the BIOS configures the CXL bandwidth of the root port (ie, the current root port) connected to the CXL device based on the pre-configured initialization parameters of the fixed CXL device.
[0094] Furthermore, in a possible implementation, the BIOS of the server can configure the CXL bandwidth by configuring the key elements of the CXL bandwidth. The key elements of the CXL bandwidth include: transmission rate, link width, encoding overhead, etc.
[0095] The transmission rate refers to the maximum transmission rate of data transmission supported by the CXL device. For example, if the version of the CXL device is CXL 2.0, the maximum transmission rate of data transmission supported by the CXL device is 32 GT / s.
[0096] Link width refers to the number of data transmission channels (lanes) in the root port connected to the CXL device. Link width directly affects the data transmission rate and total bandwidth of the CXL device. For example, a single-channel connection (can be abbreviated as x1) provides the most basic bandwidth; a dual-channel connection (can be abbreviated as x2) provides twice the bandwidth of x1.
[0097] Coding overhead refers to the additional information added during the actual data transmission process for error detection, correction, synchronization or other purposes. This additional information does not directly carry user data, so it occupies part of the bandwidth and affects the overall effective data transmission rate.
[0098] S302: The server configures the working mode of the current root port.
[0099] Specifically, the BIOS of the server configures the working mode corresponding to the root port (ie, the current root port) connected to the CXL device according to the working mode in the initialization parameters.
[0100] The working mode (SubsystemMode) of the root port refers to the way the root port interacts with the CXL device, that is, the way the CXL device interacts with the server's CPU. The working mode is set based on the characteristics of data transmission, memory access rights, and communication between devices.
[0101] Specifically, the working modes of the CXL device include: CXL.io mode, CXL.memory mode and CXL.cache mode.
[0102] The working mode of the root port is related to the CXL protocol supported by the CXL device connected to it. For example, when the CXL protocol supported by the CXL device connected to the current root port is the CXL.io protocol, the working mode of the current root port is the CXL.io mode; when the CXL protocol supported by the CXL device connected to the current root port is the CXL.memory protocol, the working mode of the current root port is the CXL.memory mode; when the CXL protocol supported by the CXL device connected to the current root port is the CXL.cache protocol, the working mode of the current root port is the CXL.cache mode.
[0103] Among them, the CXL.io protocol is the basis of the CXL protocol, providing high-speed input / output capabilities, and is suitable for CXL devices that do not require memory consistency or cache consistency; when the root port needs to connect to a CXL device with the CXL.io protocol, the root port works in CXL.io mode. The root port in CXL.io mode focuses on high-bandwidth and low-latency data transmission.
[0104] Among them, the CXL.memory protocol allows other devices to directly access the memory of the CXL device, providing a unified memory access space, which is crucial for memory-intensive applications in high-performance computing and data center environments; when the root port needs to be connected to a CXL device with the CXL.memory protocol, the root port works in CXL.memory mode. The root port in CXL.memory mode enables the processor to access the memory of the CXL device to which it is connected across physical boundaries, significantly reducing the latency and overhead of data movement. In general, the root port in CXL.memory mode provides powerful memory access capabilities for high-performance computing, data centers, and cloud computing environments, and achieves significant improvements in data processing efficiency and system performance through direct memory access and a unified memory space.
[0105] Among them, the CXL.cache protocol provides cache consistency, allowing the processor and CXL devices to share cache content and ensure cache consistency; when the root port needs to connect to a CXL device that uses the CXL.cache protocol, the root port works in CXL.cache mode. The root port in CXL.chache mode implements cache consistency between the processor and the CXL device it is connected to, that is, it ensures that the cache data between the processor and the CXL device it is connected to remains consistent, thereby optimizing data processing efficiency and system performance.
[0106] S303: The server enables CXL extended memory recognition of the current root port.
[0107] In a possible implementation, the CXL device includes a CXL extended memory inside. The CXL extended memory refers to a memory inside the CXL device, and the memory may be a memory module (Dual Inline Memory Modules, DIMMS) or a DRAM.
[0108] Specifically, the BIOS of the server enables the CXL extended memory recognition of the CXL device according to the enable parameter in the initialization parameter.
[0109] The enable parameter is used to indicate whether the CXL device can recognize the CXL extended memory.
[0110] It should be noted that, in general, the CXL device needs to be able to recognize the CXL extended memory, that is, the server's BIOS enables the CXL extended memory recognition of the CXL device. Exemplarily, when the CXL extended memory recognition of the CXL device is enabled, the CPU can recognize the extended memory of the CXL device through the root port connected to the CXL device. When the CPU recognizes the extended memory of the CXL device, the server's CPU will recommend a consistency model through the CXL protocol, so that the CPU can directly access the extended memory of the CXL device, thereby achieving an increase in memory capacity, an improvement in bandwidth, and more efficient computing acceleration.
[0111] S304: The server configures the slot information corresponding to the current root port.
[0112] Among them, slot refers to the physical slot on the server motherboard used to install various hardware devices.
[0113] Specifically, the BIOS of the server configures corresponding slot information according to the current root port.
[0114] The slot information is identification information of a physical slot of the CXL device connected to the current root port on the computing device (ie, the server).
[0115] The server BIOS obtains the correspondence between the CXL device, the root port and the slot by configuring the slot information corresponding to the current root port, so that the user can perceive that the slot and the CXL device connected to the slot are currently being initialized.
[0116] The root port is a port sensed by the server, that is, the server can obtain the root port and the CXL device connected to it, but the user cannot perceive the root port information. For example, the BMC prompts the user that the CXL device N connected to the root port M is faulty and needs to be manually checked by the user. At this time, the user cannot perceive which slot / slot the root port M is, so the faulty CXL device N cannot be effectively located. The server configures the slot information corresponding to the current root port so that the user can obtain the CXL device and the slot to which the CXL device is connected, so as to facilitate accurate problem location in the future.
[0117] For ease of understanding, the following uses Table 1 and Table 2 as examples to illustrate the advantages of configuring the slot information corresponding to the CXL device.
[0118] If, in the embodiment of the present application, the server does not configure the slot information corresponding to the CXL device, the corresponding relationship between the root port and the CXL device connected thereto as shown in Table 1 can be obtained.
[0119] Table 1
[0120] Root Port CXL Equipment Root Port 1 —— Root Port 2 CXL Device A Root Port 3 —— Root Port 4 CXL Device B Root Port 5 CXL Device C
[0121] As shown in Table 1, the server knows that root port 2 is connected to CXL device A, root port 4 is connected to CXL device B, and root port 5 is connected to CXL device C. Root port 1 and root port 3 are not connected to CXL devices. If the BMC subsequently detects that CXL device B is abnormal, CXL device B needs to be replaced manually. At this time, the server knows that the root port connected to CXL device B is root port 4, that is, CXL device B connected to root port 4 needs to be replaced manually. Then, the BMC can send a prompt message carrying root port 4 to the user to prompt the user to replace CXL device B connected to root port 4. However, the user cannot perceive which slot root port 4 is, and cannot accurately replace CXL device B connected to root port 4, resulting in inaccurate problem location.
[0122] In the embodiment of the present application, when the server configures the slot information corresponding to the CXL device, the corresponding relationship between the root port, the CXL device connected thereto, and the corresponding slot can be obtained as shown in Table 2.
[0123] Table 2
[0124] Root Port CXL Equipment Slot Information Root Port 1 —— —— Root Port 2 CXL Device A Slot a Root Port 3 —— —— Root Port 4 CXL Device B Slot b Root Port 5 CXL Device C Slot c
[0125] As shown in Table 2, the server knows that root port 2 is connected to CXL device A, root port 4 is connected to CXL device B, and root port 5 is connected to CXL device C, and the corresponding slot a is configured for CXL device A, the corresponding slot b is configured for CXL device B, and the corresponding slot c is configured for CXL device C. If the BMC detects that CXL device B is abnormal later, it is necessary to manually replace CXL device B. At this time, the server knows that the root port connected to the CXL device is root port 4, and the server knows that the slot information corresponding to root port 4 is slot b, that is, it is necessary to manually replace CXL device B connected to slot b. Then, the BMC can send a prompt message carrying slot b to the user to prompt the user to replace CXL device B connected to slot b. The user can perceive which slot slot b is and can accurately replace CXL device B connected to slot b (root port 4), thereby improving the accuracy of problem location.
[0126] Further, in a possible implementation, the identification information of the physical slot is the unique identifier of the slot corresponding to the pre-set root port; based on the current root port, the unique identifier of the slot corresponding to the current root port is determined; based on the unique identifier of the slot corresponding to the current root port, the slot information corresponding to the current root port is configured.
[0127] The above is a detailed description of how the server performs the corresponding initialization configuration on the current root port in combination with S301-S304. After the server performs the initialization configuration on the root port connecting the CXL device and the PCIe device, it proceeds to S207.
[0128] S207: The server starts link building enumeration and allocates corresponding system resources to the device connected to the root port.
[0129] Specifically, the server's BIOS starts link enumeration and allocates corresponding system resources to the device connected to the root port to support the normal operation of the device connected to the root port. The server's BIOS performs a series of initialization processes during the startup phase, including link enumeration and system resource configuration for the device connected to the server CPU.
[0130] The link establishment and enumeration performed by the BIOS of the server includes: link establishment and device enumeration.
[0131] Link establishment refers to the BIOS initializing the hardware interface. In the embodiment of the present application, the BIOS initializes the root port, activates the physical link, and determines that the device connected to the root port can communicate with the server's CPU through the communication link, that is, the device connected to the PCIe bus can be identified (the device connected to the CPU's root port can be identified).
[0132] Device enumeration, after the link is established, the BIOS will traverse the PCIe bus to discover all connected devices, that is, the BIOS will scan and identify the devices connected to the root port one by one. Specifically, device enumeration includes reading the configuration space of the device connected to the root port, obtaining the device's vendor ID, device ID, class code and other information to determine the type and function of the device connected to the root port. The device enumeration process helps the BIOS build a list of connected devices and prepare for the subsequent allocation of system resources.
[0133] Furthermore, during the device enumeration process, the BIOS scans and identifies the devices connected to the root port one by one, and allocates unique BDF information to each device connected to the root port.
[0134] Among them, BDF information consists of three parts of information, namely Bus information, Device information, and Function information. BDF information is used to identify devices in the PCIe bus architecture. After each device connected to the root port is assigned unique BDF information, the device can be regarded as part of the system resources and can be accessed and controlled by the operating system and its driver through BDF information.
[0135] Bus information: used to identify different PCIe buses in the system. A system can have multiple buses to connect different devices.
[0136] Device information: used to distinguish different physical devices on the same bus. Multiple devices can be connected to each bus.
[0137] Function information: For multi-function devices, it is used to indicate the different functions within the device. Most devices have only one function, but there are devices with multiple functions, each of which can be configured and used independently.
[0138] Furthermore, for CXL devices, when the BIOS allocates unique BDF information to the CXL device connected to the root port during the link enumeration process, the BDF information will be stored in the root complex register block (RCRB) space corresponding to the CXL device, so that the BIOS can subsequently obtain the BDF information corresponding to the CXL device from the RCRB space corresponding to the device.
[0139] The Root Complex Register Block (RCRB) space is a set of registers in the Root Complex. For CXL devices, these registers are important for configuring, monitoring, and managing CXL devices and their communication with the CPU.
[0140] Furthermore, since CXL is built on top of PCIe and introduces additional features and protocol layers, CXL devices still need to follow the discovery and configuration process of PCIe devices, that is, access control can be performed through the Root Complex. In a CXL environment, RCRB may contain CXL protocol-specific extended registers (e.g., CXL DVSECs, Designated Vendor-Specific Extended Capabilities), which provide direct configuration and monitoring capabilities for CXL features, allowing the system to more effectively manage and optimize the functions of CXL-based devices.
[0141] After the server BIOS performs link enumeration and obtains the enumeration, the server BIOS allocates necessary system resources, such as interrupts, I / O addresses, DMA channels, and memory mapping, to the devices connected to the root port according to the device enumeration results of the BIOS to ensure that the devices connected to the root port can work normally.
[0142] In an embodiment of the present application, the BIOS of the server can identify the type of device (PCIe device / CXL device) connected to the root port through the register field of the CPLD corresponding to the current root port; when the BIOS of the server identifies that the device connected to the current root port is a CXL device, the CXL is initialized and configured. After the initialization configuration of all devices connected to the root ports is completed, the BIOS of the server starts the chain enumeration and allocates corresponding system resources to the devices, completing the adaptation of the devices connected to the root port of the CPU. Since the BIOS can obtain the connection status of the root port of the CPU and adaptively configure the CXL device according to the connection status of the root port, there is no need to manually identify and configure the initialization parameters of the CXL device, thereby realizing the adaptive adaptation of the BIOS to the CXL device, thereby improving the overall flexibility and scalability of the server system. Exemplarily, through adaptive adaptation, users can flexibly add or remove devices as needed without complex manual configuration, which greatly simplifies the process of system setup and management and improves the convenience and efficiency of user use.
[0143] S208: The server traverses the devices connected to each root port on each CPU.
[0144] Specifically, the server's BIOS traverses the devices connected to each root port on each CPU.
[0145] S209: The server reports information about the device connected to each root port to the operating system and the out-of-band management controller.
[0146] Depending on the type of the device connected to the root port, the specific process of the server reporting the device information to the operating system and the out-of-band management controller may be different.
[0147] In a possible implementation, when the BIOS of the server traverses and finds that the device connected to the root port is a CXL device, the server reports the CXL device information to the operating system and the out-of-band management controller.
[0148] The CXL device information includes a series of key features, functions and configurations of the CXL device, which are important for ensuring the correct identification, configuration, management and optimization of the CXL device. For example, in the embodiment of the present application, the CXL device information includes: BDF information of the CXL device, initialization configuration information of the root port connected to the CXL device, and allocated system resource information.
[0149] It should be noted that the initialization configuration information of the root port connected to the CXL device can be understood as the initialization parameters relied upon when initializing the configuration of the root port.
[0150] Specifically, the BIOS of the server reads the BDF information of the CXL device from the RCRB space corresponding to the CXL device, and reports the BDF information of the CXL device and the initialization configuration information of the root port connected to the CXL device (including: CXL bandwidth, working mode, enabling parameters, slot information), etc. to the operating system (OS) and the out-of-band management controller (BMC), so that the operating system and the out-of-band management controller can effectively manage the CXL device.
[0151] Among them, the operating system (OS) is a computer program that manages the server's hardware and software resources. It is the core component of the server and is responsible for coordinating the interaction between hardware and software, providing an interactive interface, and providing an appropriate environment for applications.
[0152] For OS, CXL device information can assist OS in completing the hardware identification and initialization process, ensuring OS can correctly configure all CXL devices and load necessary drivers, so that CXL devices can be used in OS; based on CXL device information, OS can reasonably map and configure system resources to ensure CXL devices can operate efficiently; OS can make more appropriate resource scheduling decisions based on CXL device information, etc. In summary, OS receiving CXL device information reported by BIOS is a key step to achieve efficient, flexible and safe operation of OS, which is not only related to the normal startup of OS, but also affects the performance optimization, resource management and fault handling of OS throughout its life cycle.
[0153] For BMC, BMC can use CXL device information to perform hardware health checks, such as detecting the temperature, energy consumption, error status, etc. of CXL devices, and can also warn of potential hardware failures. In some cases, BMC can even take predefined fault recovery actions, such as restarting the CXL device or adjusting the working mode of the CXL device, to avoid the spread of the fault impact; it can also integrate the received CXL device information into the BMC management system interface or log, so that users can remotely monitor the status, configuration and performance of CXL devices. In general, the CXL device information reported by BIOS received by BMC can realize the out-of-band management function of BMC for CXL devices, thereby enhancing the manageability, reliability and security of the server system.
[0154] Furthermore, the CXL device information includes slot information, and the BMC can accurately locate and feedback the CXL device with fault problems based on the slot information. Exemplarily, in the current technology, the BMC determines and feedbacks that the CXL device N connected to the root port M has a fault, when the user cannot perceive which slot / slot the root port M is; in the embodiment of the present application, the BMC determines which slot is connected to the CXL device N (taking slot F as an example) based on the received slot information, the root port M and the CXL device N, and then the BMC feedbacks to the user that the CXL device N connected to slot F has a fault, and the user can quickly locate the CXL device N with a fault based on the slot F returned by the BMC, so as to adjust the CXL device N to solve the fault problem of the CXL device N. That is, in the embodiment of the present application, the BIOS of the server can identify the CXL device connected to the root port, and can establish a corresponding relationship between the root port and the slot through the configuration of the slot information, so that a communication channel can be effectively established between the BMC and the CXL device, so that the BMC can accurately manage the CXL device connected to the root port out-of-band, thereby achieving accurate problem location and abnormal alarm, etc.
[0155] In another possible implementation, when the BIOS of the server traverses to find that the device connected to the root port is a PCIe device, the server reports the PCIe device information to the operating system and the out-of-band management controller. The PCIe device information is obtained from a standard PCIe configuration space, which is a memory area used by PCIe devices to store and provide their configuration information. Each PCIe device has a PCIe configuration space.
[0156] Among them, PCIe device information includes the specifications, functions and configurations of the PCIe device, which are important for ensuring the correct identification, configuration, management and optimization performance of the PCIe device. Exemplarily, in an embodiment of the present application, the PCIe device information includes: BDF information of the PCIe device, initialization parameters of the PCIe device and allocated system resource information.
[0157] Specifically, the server's BIOS reports the BDF information of the PCIe device and the initialization configuration information of the PCIe device (including slot information) to the operating system (OS) and the out-of-band management controller (BMC), so that the operating system and the out-of-band management controller can effectively manage the PCIe device.
[0158] It should be noted that the purpose and function of the reported PCIe device information for the OS and BMC are similar to the purpose and function of the reported CXL device information for the OS and BMC, and will not be described in detail here.
[0159] The embodiment of the present application provides an adaptation method for a CXL device, including: obtaining a register field corresponding to a CPLD; when determining that the device connected to the current root port is a CXL device according to the obtained register field, initializing the configuration of the current root port, the initialization configuration includes: configuring the CXL bandwidth, configuring the working mode of the CXL device, enabling the CXL extended memory recognition, and configuring the slot information corresponding to the CXL device; after initializing the configuration of the devices connected to the root ports of all CPUs, starting the chain building enumeration, and allocating corresponding system resources to the devices connected to the root ports to complete the adaptation of the CXL device. Since the BIOS can obtain the connection status of the root port of the CPU, the CXL device is adaptively configured according to the connection status of the root port, and there is no need to manually identify and configure the initialization parameters of the CXL device, thereby realizing the BIOS adaptive adaptation of the CXL device, thereby improving the overall flexibility and scalability of the server system.
[0160] Furthermore, after the chain enumeration is completed, the devices connected to each root port on each CPU are traversed; when the device connected to the root port is a CXL device, the CXL device information is reported to the OS and BMC. The server's BIOS can identify the CXL device connected to the root port, that is, the BIOS can obtain the correspondence between the root port and the CXL device, and report the correspondence between the root port and the CXL device connected to it to the BMC, so that the BMC can establish a communication channel with the CXL device. The BMC can accurately manage the CXL device connected to the CPU root port out of band based on the communication channel.
[0161] Furthermore, the BIOS can establish a corresponding relationship between the root port and the slot by configuring the slot information of the root port, and report the slot information to the BMC. When the BMC detects an abnormality in the CXL device, it can determine the slot corresponding to the root port based on the root port to which the CXL device is connected, thereby achieving accurate problem location and abnormal alarm.
[0162] In addition, an embodiment of the present application further provides a computing device, the server including a processor and a memory, the processor is connected to the memory, the memory stores computer-executable instructions, and the processor implements the CXL device adaptation method in the above embodiment when executing the computer-executable instructions.
[0163] The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed on a computer, the computer is enabled to execute the CXL device adaptation method in the above embodiment.
[0164] For the explanation of the relevant contents and description of the beneficial effects of any of the above-mentioned computer-readable storage media, reference may be made to the above-mentioned corresponding embodiments, which will not be repeated here.
[0165] The present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to perform any of the CXL device adaptation methods in the above embodiments. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes one or more available media integrated therein. The available media may be magnetic media (e.g., floppy disk, hard disk, tape), optical media (e.g., DVD), or semiconductor media (e.g., SSD), etc.
[0166] It should be noted that the above-mentioned devices for storing computer instructions or computer programs provided in the embodiments of the present application, such as but not limited to the above-mentioned memories, computer-readable storage media and communication chips, etc., are all non-transitory.
[0167] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. Computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that contains one or more servers that can be integrated with a medium. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).
[0168] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art may understand and implement other changes to the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple situations. A single processor or other unit may implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.
[0169] Although the present application has been described in conjunction with specific features and embodiments thereof, it is obvious that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely exemplary illustrations of the present application as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art may make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for adapting a computing high-speed interconnect link CXL device, characterized in that: include: Obtaining a register field corresponding to the current root port in the first controller; the register field is used to store a type identifier of a device connected to the root port of the central processor of the computing device; Determining, according to the corresponding register field, a device type connected to the current root port; When the device type connected to the current root port is a CXL device, the current root port is initialized and configured to facilitate link building enumeration, and system resources are allocated to the CXL device connected to the current root port.
2. The method according to claim 1, characterized in that The register field corresponding to the current root port is a type identifier filled in by the first controller according to the type of the device connected to the current root port.
3. The method according to claim 1, characterized in that The initializing configuration of the current root port includes: Initializing and configuring the current root port according to preset initialization parameters of the CXL device connected to the current root port; or, receiving a user's setting operation for initialization parameters of a CXL device connected to the current root port; In response to the setting operation, obtaining initialization parameters of the CXL device input by a user; Initialize and configure the current root port according to the initialization parameters of the CXL device input by the user.
4. The method according to claim 1, characterized in that: The initializing configuration of the current root port includes: Configure a CXL bandwidth for the current root port; the CXL bandwidth is a maximum transmission rate of data transmission between a central processor and the CXL device connected via CXL; Configure the working mode of the current root port; the working modes of the current root port include: CXL.io mode, CXL.memory mode and CXL.cache mode; Enabling CXL extended memory identification of the current root port; The slot information corresponding to the current root port is configured, where the slot information is identification information of a physical slot of a CXL device connected to the current root port on the computing device.
5. The method according to claim 4, characterized in that The identification information is: a unique identification of a slot corresponding to a preset root port; The configuring the slot information corresponding to the current root port includes: Determine, according to the current root port, a unique identifier of a slot corresponding to the current root port; Based on the unique identifier of the slot corresponding to the current root port, the slot information corresponding to the current root port is configured.
6. The method according to claim 1, characterized in that The method further comprises: When the device type connected to the current root port is a PCIe device, the current root port is initialized and configured to start link building enumeration, and system resources are configured for the PCIe device connected to the current root port.
7. The method according to claim 6, characterized in that The method further comprises: During the link building and enumeration process, the devices connected to the root port are scanned and identified one by one, and unique BDF information is allocated to each device connected to the root port; the BDF information includes: bus information, device information and function information.
8. The method according to claim 7, characterized in that When the device connected to the root port is a CXL device, the method further includes: The BDF information of the CXL device is stored in the root complex register block RCRB space corresponding to the CXL device.
9. The method according to claim 8, characterized in that After the chain building enumeration is completed, the method further includes: Traverse the devices connected to each root port; When the device connected to the root port is a CXL device, the CXL device information is reported to the operating system and the out-of-band management controller; when the device connected to the root port is a PCIe device, the PCIe device information is reported to the operating system and the out-of-band management controller.
10. The method according to claim 9, characterized in that The CXL device information includes: BDF information of the CXL device and initialization configuration information of the root port connected to the CXL device; reporting the CXL device information to the operating system and the out-of-band management controller includes: Reading the BDF information of the CXL device from the RCRB space corresponding to the CXL device; Reporting the BDF information of the CXL device and the initialization configuration information of the root port connected to the CXL device to the operating system and the out-of-band management controller; the initialization configuration information of the root port connected to the CXL device includes: the CXL bandwidth, working mode, enabling parameters, and slot information of the root port.
Citation Information
Cited By
Automatic configuration method and device for storage interface equipment, equipment and medium
CN119883390A
GPU BOX, server, interconnection system and high-speed interconnection and data interaction method
CN120705096A
MIPS multiprocessor system based on CXL interface and computer equipment
CN121560811A
