A method, device, equipment and medium for displaying information of a quick link device

By working together with the baseboard management controller and the basic input/output system, the cross-vendor compatibility issue of displaying information of computing fast link devices was resolved, and universal display of memory information at all stages was achieved.

CN119271334BActive Publication Date: 2026-04-21INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
INSPUR SUZHOU INTELLIGENT TECH CO LTD
Filing Date
2024-09-27
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

In the existing technology, the Compute Fast Link (CXL) specification does not stipulate that memory information must be mapped to memory space, resulting in different vendors' custom interfaces being incompatible and unable to display memory information at all stages.

Method used

The computer accesses the compute fast link device through the baseboard management controller, reads the device information and saves it to shared memory, uses the basic input/output system to determine the target serial bus device, and generates a display string to show the information.

Benefits of technology

It enables cross-vendor universal computing fast link device information display, avoiding the problem of frequent adaptation to new CXL cards due to different vendor rules, and improving the efficiency of information acquisition and the comprehensiveness of display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119271334B_ABST
    Figure CN119271334B_ABST
Patent Text Reader

Abstract

This invention discloses a method, apparatus, device, and medium for displaying information about computing fast link devices, relating to the field of information processing. The method includes: accessing a computing fast link device using a baseboard management controller to read device information from the device and save the device information to a preset shared memory; writing the device information saved in the preset shared memory into a first preset protocol via a basic input / output system, and polling several connected serial bus devices via a second preset protocol to determine a target serial bus device corresponding to a preset device type; if target device information corresponding to the target serial bus device exists in the first preset protocol, generating a target display string based on the target device information and displaying the target display string through a preset display page. This avoids the problem of constantly adapting to new versions due to different rules set by manufacturers, and achieves a universal solution for displaying information about computing fast link devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of information processing technology, and in particular to a method, apparatus, device, and medium for displaying information on a fast computing link device. Background Technology

[0002] Basic input / output systems and baseboard management controllers are indispensable parts of modern data centers and enterprise IT infrastructure. They work together and play irreplaceable roles to ensure server operation, greatly improving server maintenance efficiency and system reliability.

[0003] In existing technologies, the BIOS (Basic Input Output System) typically needs to obtain memory information from the configuration space and add it to the asset information via memory mapping. However, this method has certain shortcomings. The CXL (Compute Express Link) specification does not mandate that devices must map memory information to memory. Mapping memory information to the host memory space is a custom function of some vendors, and even if different vendors implement mapping, their custom interfaces may differ, making this method not universally applicable. Furthermore, existing technologies cannot display memory information at all stages.

[0004] It is evident that how to establish a universal method for displaying information about fast computing link devices is a problem that needs to be solved by those skilled in the art. Summary of the Invention

[0005] The purpose of this invention is to provide a method, apparatus, device, and medium for displaying information about fast computing link devices. This avoids the problem of BIOS constantly adapting to new CXL cards due to different manufacturer-defined rules when obtaining CXL memory information, thus achieving a universal solution for displaying fast computing link device information. The specific solution is as follows:

[0006] In the first aspect, this application discloses a method for displaying information about a fast-link computing device, including:

[0007] The baseboard management controller accesses the computing fast link device through a preset channel, and after successful access, reads device information from the computing fast link device and saves the device information to a preset shared memory based on a preset address offset.

[0008] The device information stored in the preset shared memory is written into the first preset protocol through the basic input / output system, and the accessed serial bus devices are polled through the second preset protocol to determine the target serial bus device that corresponds to the preset device type among the serial bus devices.

[0009] If the first preset protocol contains target device information corresponding to the target serial bus device, then a target display string is generated based on the target device information, and the target display string is displayed through a preset display page.

[0010] Optionally, the step of using the baseboard management controller to access the computing fast link device through a preset channel, and then reading device information from the computing fast link device after successful access and saving the device information to a preset shared memory based on a preset address offset, includes:

[0011] The baseboard management controller accesses the computing fast link device through a preset channel and determines whether the access to the computing fast link device is successful.

[0012] If the fast computing link device is successfully accessed, the device information corresponding to the fast computing link device is read from the fast computing link device according to the preset command and the address offset of the fast computing link device, and the device information is stored in the preset shared memory based on the preset storage offset.

[0013] Optionally, the step of writing the device information stored in the preset shared memory into a first preset protocol via the basic input / output system, and polling the accessed serial bus devices via a second preset protocol to determine the target serial bus device among the serial bus devices that corresponds to the preset device type, includes:

[0014] The system checks whether the device information sent by the baseboard management controller exists in the preset shared memory through the basic input / output system. If the device information exists, the device information is written into the first preset protocol.

[0015] The configuration space of several serial bus devices accessed by polling through a second preset protocol is used to extract the operator identifier and device identifier corresponding to the several serial bus devices respectively, and to determine whether the device type of the corresponding serial bus device is a computing fast link device type based on the operator identifier and the device identifier.

[0016] If the device type of the corresponding serial bus device is determined to be a compute fast link device type based on the operator identifier and the device identifier, then the serial bus device corresponding to the operator identifier and the device identifier is taken as the serial bus device to be determined, and the spatial configuration capability of the serial bus device to be determined is confirmed.

[0017] The spatial configuration capability is used to find the protocol types supported by the serial bus device to be determined. If the protocol types supported by the serial bus device to be determined meet the preset protocol support conditions, then the serial bus device to be determined is selected as the target serial bus device.

[0018] Optionally, before generating a target display string based on the target device information and displaying the target display string through a preset display page if target device information corresponding to the target serial bus device exists in the first preset protocol, the method further includes:

[0019] If the first preset protocol contains target device information corresponding to the target serial bus device, the target device information is parsed from the first preset protocol, and a memory structure is constructed based on the target device information. The memory structure is then sent to the baseboard management controller so that the baseboard management controller can display the memory structure.

[0020] Optionally, before generating a target display string based on the target device information and displaying the target display string through a preset display page if target device information corresponding to the target serial bus device exists in the first preset protocol, the method further includes:

[0021] Create a device information display field, and populate the device information display field with the target device information to obtain the information field to be displayed;

[0022] The information field to be displayed is shown through the Post page in the basic input / output system.

[0023] Optionally, if the first preset protocol contains target device information corresponding to the target serial bus device, then generating a target display string based on the target device information and displaying the target display string through a preset display page includes:

[0024] If the first preset protocol contains target device information corresponding to the target serial bus device, then the target device information is parsed from the first preset protocol, and the target hardware information in the target device information is determined.

[0025] The device type and memory information of the target serial bus device are determined from the target device information;

[0026] A target display string is generated based on the target hardware information, the device type, and the memory information, and the target display string is displayed through a preset display page.

[0027] Optionally, the step of generating a target display string based on the target hardware information, the device type, and the memory information, and displaying the target display string through a preset display page, includes:

[0028] Determine the bus number, device number, and function number included in the target hardware information, and generate a first display string corresponding to the bus number, device number, and function number;

[0029] A second display string corresponding to the device type is generated based on the device type, and a third display string is generated based on the memory information;

[0030] The first display string, the second display string, and the third display string are concatenated to obtain the target display string;

[0031] Create a setting option corresponding to the target device information, update the target display string to the encoding file corresponding to the setting option, and display the target display string corresponding to the setting option on the preset option page through the encoding file.

[0032] Secondly, this application discloses a device for displaying information about a fast-link computing device, comprising:

[0033] The information storage module is used to access the computing fast link device through a preset channel using the baseboard management controller, so as to read device information from the computing fast link device after successful access, and save the device information to a preset shared memory based on a preset address offset;

[0034] The device determination module is used to write the device information stored in the preset shared memory into a first preset protocol through the basic input / output system, and to poll a plurality of serial bus devices that have been connected through a second preset protocol to determine the target serial bus device that corresponds to the preset device type among the plurality of serial bus devices;

[0035] The information display module is used to generate a target display string based on the target device information if there is target device information corresponding to the target serial bus device in the first preset protocol, and to display the target display string through a preset display page.

[0036] Thirdly, this application discloses an electronic device, including:

[0037] Memory, used to store computer programs;

[0038] A processor is used to execute the computer program to implement the steps of the aforementioned method for displaying fast link device information.

[0039] Fourthly, this application discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the aforementioned method for displaying information about a fast-link device.

[0040] In this application, the baseboard management controller first accesses the computing fast link device through a preset channel. After successful access, device information is read from the computing fast link device, and the device information is saved to a preset shared memory based on a preset address offset. Then, the device information saved in the preset shared memory is written into a first preset protocol through the basic input / output system. A plurality of serial bus devices that have been accessed are polled through a second preset protocol to determine the target serial bus device that corresponds to a preset device type among the plurality of serial bus devices. Finally, if target device information corresponding to the target serial bus device exists in the first preset protocol, a target display string is generated based on the target device information, and the target display string is displayed through a preset display page.

[0041] Beneficial Effects: The method of this application allows the baseboard management controller to access the compute fast link device through a preset channel. Upon successful access, device information is read from the compute fast link device, and the device information is saved to a preset shared memory based on a preset address offset. Then, the device information saved in the preset shared memory can be written to a first preset protocol via the basic input / output system. A second preset protocol is then used to poll several connected serial bus devices to determine the target serial bus device corresponding to a preset device type. If target device information corresponding to the target serial bus device exists in the first preset protocol, a target display string is generated based on the target device information and displayed through a preset display page. This avoids the problem of the BIOS constantly adapting to new CXL cards due to different manufacturer-defined rules when obtaining CXL memory information, and allows the display of CXL memory information through a preset display interface, thus achieving a universal compute fast link device information display scheme. Attached Figure Description

[0042] To more clearly illustrate the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0043] Figure 1 A flowchart illustrating a method for displaying fast link device information provided in an embodiment of the present invention;

[0044] Figure 2A timing diagram of a method for displaying fast link device information provided in an embodiment of the present invention;

[0045] Figure 3 A flowchart illustrating a specific method for displaying information about a fast-link computing device, provided in an embodiment of the present invention;

[0046] Figure 4 This is a schematic diagram of a device for displaying information about a fast-link computing device, provided in an embodiment of the present invention.

[0047] Figure 5 This is a structural diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0048] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present invention.

[0049] The terms "comprising" and "having," and any variations thereof, in the specification and accompanying drawings of this invention are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may include steps or units not listed.

[0050] In existing technologies, the BIOS typically needs to obtain memory information from the configuration space and add it to the asset information via memory mapping. However, this method has certain shortcomings. The CXL specification does not mandate that devices must map memory information to memory; mapping memory information to the host memory space is a custom function of some manufacturers. Even if different manufacturers implement mapping, their custom interfaces may differ, making this method not universally applicable. Furthermore, existing technologies cannot display memory information at all stages.

[0051] To overcome the above problems, this application discloses a method, apparatus, device and medium for displaying information of computing fast link devices, which can avoid the problem that the BIOS has to constantly adapt to new CXL cards due to different rules set by manufacturers when obtaining CXL memory information, and can display CXL memory information through a preset display interface.

[0052] See Figure 1 As shown in the figure, this application discloses a method for displaying information about a fast link device, including:

[0053] Step S11: Use the baseboard management controller to access the computing fast link device through a preset channel, so as to read the device information from the computing fast link device after successful access, and save the device information to the preset shared memory based on the preset address offset.

[0054] In this embodiment, as Figure 2 As shown, the Baseboard Management Controller (BMC) needs to access the compute fast link device through a preset channel. If the BMC successfully accesses the compute fast link device, it reads the device information. Specifically, each time the BMC powers on, it accesses the CXL device memory (the compute fast link device's memory) through a specified I2C (Inter-Integrated Circuit) channel and address. It then determines whether access to the compute fast link device's memory is successful. If successful, the read raw SPD information (the compute fast link device's device information) is placed into shared memory. It should be noted that the compute fast link device's memory has a certain offset. In practice, a For loop can be used to increment the offset by 1 to read all offset content. Therefore, if the compute fast link device is successfully accessed, the device information can be read from the compute fast link device based on the preset I2C command and the corresponding address offset.

[0055] Furthermore, after reading the device information corresponding to the fast-link device, the read device information needs to be stored in a preset shared memory according to a preset storage offset. Specifically, the read SPD information (SPD, or Serial Presence Detect) needs to be placed at a specified address offset in the shared memory used for interaction between the BIOS and BMC. During the next boot, the BIOS reads data from the specified offset to directly obtain the CXL device memory SPD information. This effectively improves the speed and efficiency of information acquisition.

[0056] Furthermore, since there may be multiple fast link devices, different storage offsets can be set for each fast link device, and a mapping relationship between different fast link devices and their corresponding storage offsets can be established. This mapping relationship is saved in a preset data storage medium. Then, each time a target fast link device is polled, the mapping relationship corresponding to the target fast link device can be determined from the data storage medium, and the offset corresponding to the target fast link device can be determined based on the mapping relationship. Data is then stored based on this offset. In this way, on the one hand, it ensures that different fast link devices correspond to different storage offsets, thereby ensuring data storage security; on the other hand, by saving the mapping relationship between different fast link devices and their corresponding storage offsets in the preset data storage medium, the data offset corresponding to the fast link device can be quickly identified through the mapping relationship during the next data storage, thereby improving data storage efficiency.

[0057] Step S12: Write the device information stored in the preset shared memory into the first preset protocol through the basic input / output system, and poll the accessed serial bus devices through the second preset protocol to determine the target serial bus device that corresponds to the preset device type among the serial bus devices.

[0058] In this embodiment, as Figure 2 As shown, the device information stored in the preset shared memory needs to be written into the first preset protocol through the BIOS, i.e., the basic input / output system. Specifically, the basic input / output system needs to check whether there is device information sent by the baseboard management controller in the preset shared memory. If there is device information sent by the baseboard management controller in the preset shared memory, the device information needs to be written into the custom first preset protocol, where the first preset protocol is SPD PROTOCOL.

[0059] Furthermore, after writing the device information into the custom first preset protocol, it is necessary to poll several connected serial bus devices through the second preset protocol to determine whether there is a compute fast link device type among the connected serial bus devices. Specifically, after each power-on, it is necessary to poll the configuration space of PCIe (peripheral component interconnect express, a high-speed serial computer expansion bus standard) devices to find CXL Type 3 devices. It is necessary to poll the configuration space of each PCIe device through the custom second preset protocol, namely EFI_PCI_IO_PROTOCOL, and then extract the corresponding Vendor ID and Device ID from the configuration space. Then, it is necessary to determine whether the device type of the device is a compute fast link device type, i.e., a CXL device, through the Vendor ID and Device ID.

[0060] Another step, such as Figure 2 As shown, if the device type of the corresponding serial bus device is determined to be a compute fast link device type, i.e., a CXL device, based on the device's operator identifier and device identifier, then the serial bus device corresponding to the operator identifier (Vendor ID) and device identifier (Device ID) needs to be selected as the serial bus device to be determined. Then, the spatial configuration capability (DVSEC Capability) of the serial bus device to be determined is searched. Next, the protocol types supported by the serial bus device to be determined are searched based on the device's spatial configuration capability, and it is determined whether the protocol types supported by the serial bus device to be determined meet the preset protocol support conditions. It should be noted that the preset protocol support conditions are that the serial bus device to be determined supports the CXL.io protocol and the CXL.memory protocol. If the serial bus device to be determined supports the CXL.io protocol and the CXL.memory protocol, it indicates that the type of the serial bus device to be determined is CXL Type 3, and thus the serial bus device to be determined can be selected as the target serial bus device. In this way, CXL Type 3 devices can be accurately identified among the serial bus devices, ensuring the accuracy of subsequent device information acquisition and indirectly improving the efficiency of information acquisition.

[0061] Step S13: If there is target device information corresponding to the target serial bus device in the first preset protocol, then a target display string is generated based on the target device information, and the target display string is displayed through a preset display page.

[0062] In this embodiment, if there is target device information corresponding to the target serial bus device in the first preset protocol, the target device information corresponding to the target serial bus device can be parsed from the first preset protocol. Then, the target hardware information in the target device information, such as various identification information, is determined. Subsequently, the device type and memory information of the target serial bus device are determined from the target device information. Finally, a target display string is generated based on the target hardware information, device type, and memory information, and the target display string is displayed through the preset Setup display page.

[0063] It should be noted that before generating the target display string based on the target display string corresponding to the target serial bus device, the process further includes: if target device information corresponding to the target serial bus device exists in the first preset protocol, then the target device information is parsed from the first preset protocol, and a memory structure is constructed based on the target device information, so as to send the memory structure to the baseboard management controller, so that the baseboard management controller can display the memory structure. That is, if a target serial bus device of type CXL Type3 is detected and the target device information in the first preset protocol SPD PROTOCOL can be obtained, the target device information is parsed from the SPD first preset protocol SPD PROTOCOL, and a CXL asset information format containing memory information is constructed, then saved in a custom SPD memory structure, and the memory structure is sent to the BMC baseboard management controller, and then the baseboard management controller displays the received memory structure.

[0064] Further explanation is needed: before generating the target display string based on the target device information corresponding to the target serial bus device, the process includes: creating a device information display field and filling the device information display field with the target device information to obtain the information field to be displayed; and displaying the information field to be displayed through the Post page in the BIOS basic input / output system. That is, a device information display field "CXL Memory" can be created, then the device information display field "CXL Memory" can be filled with the target device information to obtain the information field to be displayed, and finally the information field to be displayed can be displayed through the Post page in the BIOS basic input / output system. This allows for more ways to display CXL memory, not just limited to the BIOS and BMC web pages, but also including POST interface displays and Setup displays. Therefore, regardless of the user's stage of server operation or the method of using the server, they can see the memory information related to the CXL device.

[0065] Therefore, in this embodiment, the baseboard management controller can access the compute fast link device through a preset channel. After successful access, it reads device information from the compute fast link device and saves the device information to a preset shared memory based on a preset address offset. Then, the device information saved in the preset shared memory can be written into a first preset protocol through the basic input / output system. A second preset protocol is then used to poll several accessed serial bus devices to determine the target serial bus device corresponding to a preset device type. If target device information corresponding to the target serial bus device exists in the first preset protocol, a target display string is generated based on the target device information and displayed through a preset display page. This avoids the problem of the BIOS constantly adapting to new CXL cards due to different manufacturer-defined rules when obtaining CXL memory information, and allows the display of CXL memory information through a preset display interface, thus achieving a universal compute fast link device information display scheme.

[0066] As can be seen from the foregoing embodiments, the method of this application can generate a target display string based on the target device information and display the target display string through a preset display page. Therefore, this embodiment provides a detailed explanation of how to generate the target display string and how to display it. See also... Figure 3 As shown in the figure, this application discloses a method for displaying information about a fast link device, including:

[0067] Step S21: Use the baseboard management controller to access the computing fast link device through a preset channel, so as to read the device information from the computing fast link device after successful access, and save the device information to the preset shared memory based on the preset address offset.

[0068] Step S22: Write the device information stored in the preset shared memory into the first preset protocol through the basic input / output system, and poll the accessed serial bus devices through the second preset protocol to determine the target serial bus device that corresponds to the preset device type among the serial bus devices.

[0069] Step S23: If there is target device information corresponding to the target serial bus device in the first preset protocol, then parse the target device information from the first preset protocol and determine the target hardware information in the target device information.

[0070] In this embodiment, if a target serial bus device of type CXL Type3 is detected, and the device information corresponding to the target serial bus device in the custom first preset protocol SPD PROTOCOL can be obtained, then the device information corresponding to the target serial bus device in the first preset protocol SPD PROTOCOL needs to be parsed out, and then the target hardware information in the target device information needs to be determined. It should be noted that the target hardware information in this embodiment is the bus number, device number, and function number.

[0071] Step S24: Determine the device type and memory information of the target serial bus device from the target device information.

[0072] In this embodiment, it is necessary to extract the device type and memory information of the target serial bus device from the target device information. For example, the device type of the target serial bus device is CXL Type3, and the memory information includes memory frequency, memory manufacturer, memory capacity, and memory type.

[0073] Step S25: Generate a target display string based on the target hardware information, the device type, and the memory information, and display the target display string through a preset display page.

[0074] In this embodiment, it is necessary to determine the bus number, device number, and function number included in the target hardware information, and generate a first display string corresponding to the bus number, device number, and function number. That is, it is necessary to generate a first display string based on the determined bus number, device number, and function number. For example, if BusNumber=2A, Device Number=02, and Function Number=0, then the generated first display string is "BDF:2A:02.0". Then, it is necessary to generate a second display string corresponding to the device type. For example, it is necessary to determine the form of the CXLtype3 type device. If it is E3.S, the string "E3.S" is generated; if it is AIC form, the string "AIC_DIMM0 / 1" is generated. Furthermore, a third display string needs to be generated based on the memory information. For example, if the memory frequency is 4800MT / s, the memory manufacturer is A, the memory capacity is 64GB, and the memory type is DIMM, then the generated second display string would be "4800MT / s ADRx4 64GB RDIMM". Then, the first, second, and third display strings are concatenated to obtain the target display string. For example, concatenating the above strings yields the target display string "BDF:2A:02.0 :E3.S 4800MT / s A DRx4 64GB RDIMM". Finally, a Setup option corresponding to the target device information needs to be created, and the target display string is updated to the UNI (Unicode) encoding file corresponding to the setup option. The target display string corresponding to the setup option is then displayed on the preset option page using the encoding file. In this way, it is easy to see which CXL device the memory belongs to through visual inspection.

[0075] Furthermore, since CXL 2.0 supports CXL Switch, the same CXL device can be connected to two hosts, and the memory on the CXL can be allocated to different hosts. Therefore, an option graying condition has been added. When the memory does not belong to the current host, the option is grayed out.

[0076] Therefore, the method described in this embodiment requires parsing the target device information from the first preset protocol and determining the target hardware information within it. Then, it determines the device type and memory information of the target serial bus device from the target device information, and identifies the bus number, device number, and function number included in the target hardware information to generate a corresponding first display string. A second display string is generated based on the device type, and a third display string is generated based on the memory information. Finally, the first, second, and third display strings are concatenated to obtain the target display string, and a setting option corresponding to the target device information is created. The target display string is then updated in the encoding file corresponding to the setting option, and the target display string corresponding to the setting option is displayed on the preset option page using the encoding file. In this way, it is possible to determine which CXL device the memory belongs to simply by visual inspection, effectively improving the efficiency of information confirmation.

[0077] See Figure 4 As shown in the figure, this application discloses a device for displaying information about a fast-link computing device, including:

[0078] The information storage module 11 is used to access the computing fast link device through a preset channel using the baseboard management controller, so as to read device information from the computing fast link device after successful access, and save the device information to a preset shared memory based on a preset address offset.

[0079] The device determination module 12 is used to write the device information stored in the preset shared memory into a first preset protocol through the basic input / output system, and to poll a plurality of serial bus devices that have been connected through a second preset protocol to determine the target serial bus device that corresponds to the preset device type among the plurality of serial bus devices.

[0080] The information display module 13 is used to generate a target display string based on the target device information if there is target device information corresponding to the target serial bus device in the first preset protocol, and to display the target display string through a preset display page.

[0081] In this embodiment, the baseboard management controller first accesses the compute fast link device through a preset channel. After successful access, device information is read from the compute fast link device, and the device information is saved to a preset shared memory based on a preset address offset. Then, the device information saved in the preset shared memory is written into a first preset protocol through the basic input / output system. A plurality of serial bus devices that have been accessed are polled through a second preset protocol to determine the target serial bus device that corresponds to a preset device type. Finally, if target device information corresponding to the target serial bus device exists in the first preset protocol, a target display string is generated based on the target device information, and the target display string is displayed through a preset display page. Therefore, the method of this application allows the baseboard management controller to access the compute fast link device through a preset channel. Upon successful access, device information is read from the compute fast link device, and the device information is saved to a preset shared memory based on a preset address offset. Then, the device information saved in the preset shared memory is written to a first preset protocol via the basic input / output system, and a second preset protocol is used to poll several accessed serial bus devices to determine the target serial bus device corresponding to a preset device type. If target device information corresponding to the target serial bus device exists in the first preset protocol, a target display string is generated based on the target device information and displayed through a preset display page. This avoids the problem of the BIOS constantly adapting to new CXL cards due to different manufacturer-defined rules when obtaining CXL memory information, and allows the display of CXL memory information through a preset display interface, thus achieving a universal compute fast link device information display scheme.

[0082] In some embodiments, the information storage module 11 may specifically include:

[0083] The device access unit is used to access the computing fast link device through a preset channel using the baseboard management controller, and to determine whether the access to the computing fast link device is successful.

[0084] The data storage unit is configured to, if successful access to the computing fast link device, read the device information corresponding to the computing fast link device from the computing fast link device according to a preset command and the address offset corresponding to the computing fast link device, and store the device information to a preset shared memory based on a preset storage offset.

[0085] In some embodiments, the device determination module 12 may specifically include:

[0086] The data writing unit is used to check whether the device information sent by the baseboard management controller exists in the preset shared memory through the basic input / output system. If the device information exists, the device information is written into the first preset protocol.

[0087] The device type determination unit is used to poll the configuration space of a plurality of serial bus devices accessed via a second preset protocol, so as to extract the operator identifier and device identifier corresponding to the plurality of serial bus devices respectively, and determine whether the device type of the corresponding serial bus device is a computing fast link device type based on the operator identifier and the device identifier.

[0088] The parameter determination unit is configured to, if the device type of the corresponding serial bus device is determined to be a compute fast link device type based on the operator identifier and the device identifier, then take the serial bus device corresponding to the operator identifier and the device identifier as the serial bus device to be determined, and confirm the spatial configuration capability of the serial bus device to be determined.

[0089] The device determination unit is used to find the protocol types supported by the serial bus device to be determined through the spatial configuration capability. If the protocol types supported by the serial bus device to be determined meet the preset protocol support conditions, the serial bus device to be determined is selected as the target serial bus device.

[0090] In some embodiments, the computing fast link device information display device may further include:

[0091] The first information display unit is configured to, if there is target device information corresponding to the target serial bus device in the first preset protocol, parse the target device information from the first preset protocol, construct a memory structure based on the target device information, and send the memory structure to the baseboard management controller so that the baseboard management controller can display the memory structure.

[0092] In some embodiments, the computing fast link device information display device may further include:

[0093] A field filling unit is used to create a device information display field and fill the device information display field with the target device information to obtain the information field to be displayed;

[0094] The second information display unit is used to display the information field to be displayed through the Post page in the basic input / output system.

[0095] In some embodiments, the information display module 13 may specifically include:

[0096] The first information determining unit is configured to, if there is target device information corresponding to the target serial bus device in the first preset protocol, parse out the target device information from the first preset protocol and determine the target hardware information in the target device information;

[0097] The second information determining unit is used to determine the device type and memory information of the target serial bus device from the target device information;

[0098] The string display submodule is used to generate a target display string based on the target hardware information, the device type, and the memory information, and to display the target display string through a preset display page.

[0099] In some embodiments, the string display submodule may specifically include:

[0100] The first string generation unit is used to determine the bus number, device number, and function number included in the target hardware information, and generate a first display string corresponding to the bus number, the device number, and the function number;

[0101] The second string generation unit is used to generate a second display string corresponding to the device type according to the device type, and to generate a third display string based on the memory information;

[0102] A string concatenation unit is used to concatenate the first display string, the second display string, and the third display string to obtain the target display string;

[0103] A string display unit is used to create a setting option corresponding to the target device information, update the target display string to the encoding file corresponding to the setting option, and display the target display string corresponding to the setting option on a preset option page through the encoding file.

[0104] Furthermore, embodiments of this application also disclose an electronic device, Figure 5 This is a structural diagram of an electronic device according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application. Specifically, the electronic device may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the computational fast link device information display method disclosed in any of the foregoing embodiments. Furthermore, the electronic device in this embodiment may specifically be a computer.

[0105] In this embodiment, the power supply 23 is used to provide operating voltage for various hardware devices on the electronic device; the communication interface 24 can create a data transmission channel between the electronic device and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0106] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0107] The operating system 221 is used to manage and control the various hardware devices on the electronic device and the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the computational fast link device information display method executed by the electronic device as disclosed in any of the foregoing embodiments, the computer program 222 may further include a computer program capable of performing other specific tasks.

[0108] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned method for displaying information about a fast-link computing device. Specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.

[0109] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.

[0110] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0111] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0112] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0113] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for displaying information about fast-link devices, characterized in that, include: The baseboard management controller accesses the computing fast link device through a preset channel, and after successful access, reads device information from the computing fast link device and saves the device information to a preset shared memory based on a preset address offset. The device information stored in the preset shared memory is written into the first preset protocol through the basic input / output system, and the accessed serial bus devices are polled through the second preset protocol to determine the target serial bus device that corresponds to the preset device type among the serial bus devices. If the first preset protocol contains target device information corresponding to the target serial bus device, then a target display string is generated based on the target device information, and the target display string is displayed through a preset display page; The step of writing the device information stored in the preset shared memory into a first preset protocol via a basic input / output system, and polling a plurality of connected serial bus devices via a second preset protocol to determine a target serial bus device among the plurality of serial bus devices that corresponds to a preset device type, includes: The system checks whether the device information sent by the baseboard management controller exists in the preset shared memory through the basic input / output system. If the device information exists, the device information is written into the first preset protocol. The configuration space of several serial bus devices accessed by polling through a second preset protocol is used to extract the operator identifier and device identifier corresponding to the several serial bus devices respectively, and to determine whether the device type of the corresponding serial bus device is a computing fast link device type based on the operator identifier and the device identifier. If the device type of the corresponding serial bus device is determined to be a compute fast link device type based on the operator identifier and the device identifier, then the serial bus device corresponding to the operator identifier and the device identifier is taken as the serial bus device to be determined, and the spatial configuration capability of the serial bus device to be determined is confirmed. The spatial configuration capability is used to find the protocol types supported by the serial bus device to be determined. If the protocol types supported by the serial bus device to be determined meet the preset protocol support conditions, then the serial bus device to be determined is selected as the target serial bus device.

2. The method for displaying information about fast-link devices according to claim 1, characterized in that, The method of using a baseboard management controller to access a computing fast link device through a preset channel, and then reading device information from the computing fast link device after successful access and saving the device information to a preset shared memory based on a preset address offset, includes: The baseboard management controller accesses the computing fast link device through a preset channel and determines whether the access to the computing fast link device is successful. If the fast computing link device is successfully accessed, the device information corresponding to the fast computing link device is read from the fast computing link device according to the preset command and the address offset of the fast computing link device, and the device information is stored in the preset shared memory based on the preset storage offset.

3. The method for displaying information about fast-link devices according to claim 1, characterized in that, Before generating a target display string based on the target device information and displaying the target display string through a preset display page, if the first preset protocol contains target device information corresponding to the target serial bus device, the method further includes: If the first preset protocol contains target device information corresponding to the target serial bus device, the target device information is parsed from the first preset protocol, and a memory structure is constructed based on the target device information. The memory structure is then sent to the baseboard management controller so that the baseboard management controller can display the memory structure.

4. The method for displaying information about fast-link devices according to claim 3, characterized in that, Before generating a target display string based on the target device information and displaying the target display string through a preset display page, if the first preset protocol contains target device information corresponding to the target serial bus device, the method further includes: Create a device information display field, and populate the device information display field with the target device information to obtain the information field to be displayed; The information field to be displayed is shown through the Post page in the basic input / output system.

5. The method for displaying information about a fast-link computing device according to any one of claims 1 to 4, characterized in that, If the first preset protocol contains target device information corresponding to the target serial bus device, then a target display string is generated based on the target device information, and the target display string is displayed through a preset display page, including: If the first preset protocol contains target device information corresponding to the target serial bus device, then the target device information is parsed from the first preset protocol, and the target hardware information in the target device information is determined. The device type and memory information of the target serial bus device are determined from the target device information; A target display string is generated based on the target hardware information, the device type, and the memory information, and the target display string is displayed through a preset display page.

6. The method for displaying information about fast-link devices according to claim 5, characterized in that, The step of generating a target display string based on the target hardware information, the device type, and the memory information, and displaying the target display string through a preset display page, includes: Determine the bus number, device number, and function number included in the target hardware information, and generate a first display string corresponding to the bus number, device number, and function number; A second display string corresponding to the device type is generated based on the device type, and a third display string is generated based on the memory information; The first display string, the second display string, and the third display string are concatenated to obtain the target display string; Create a setting option corresponding to the target device information, update the target display string to the encoding file corresponding to the setting option, and display the target display string corresponding to the setting option on the preset option page through the encoding file.

7. A device for displaying information about a high-speed computing link device, characterized in that, include: The information storage module is used to access the computing fast link device through a preset channel using the baseboard management controller, so as to read device information from the computing fast link device after successful access, and save the device information to a preset shared memory based on a preset address offset; The device determination module is used to write the device information stored in the preset shared memory into a first preset protocol through the basic input / output system, and to poll a plurality of serial bus devices that have been connected through a second preset protocol to determine the target serial bus device that corresponds to the preset device type among the plurality of serial bus devices; The information display module is used to generate a target display string based on the target device information if there is target device information corresponding to the target serial bus device in the first preset protocol, and to display the target display string through a preset display page; The device determination module includes: The data writing unit is used to check whether the device information sent by the baseboard management controller exists in the preset shared memory through the basic input / output system. If the device information exists, the device information is written into the first preset protocol. The device type determination unit is used to poll the configuration space of a plurality of serial bus devices accessed through a second preset protocol, so as to extract the operator identifier and device identifier corresponding to the plurality of serial bus devices respectively, and determine whether the device type of the corresponding serial bus device is a computing fast link device type based on the operator identifier and the device identifier. The parameter determination unit is configured to, if the device type of the corresponding serial bus device is determined to be a compute fast link device type based on the operator identifier and the device identifier, then take the serial bus device corresponding to the operator identifier and the device identifier as the serial bus device to be determined, and confirm the spatial configuration capability of the serial bus device to be determined. The device determination unit is used to find the protocol types supported by the serial bus device to be determined through the spatial configuration capability. If the protocol types supported by the serial bus device to be determined meet the preset protocol support conditions, the serial bus device to be determined is selected as the target serial bus device.

8. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the method for displaying fast link device information as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method for displaying fast link device information as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method, device, system and equipment for acquiring motherboard information based on domestic platform

    CN109144583A

  • Reliable boot system for computer device

    CN112181499A