Computing fast link equipment information display method and device, equipment and medium
Through the coordinated work of the substrate management controller and the basic input and output system, the computing fast link device information is read and displayed, and the problem of BIOS adapting due to different manufacturer rules when obtaining CXL memory information is solved, and the CXL memory information is realized The full-stage display of the system provides a general computing fast link device information display solution.
Patent Information
- Application Number
- CN202411356984.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2044-09-27
AI Technical Summary
In the prior art, when BIOS obtains CXL memory information, it is necessary to continuously adapt to the new CXL card due to different rules set by the manufacturer, and it is impossible to display the memory information throughout the stage, which lacks universality.
Accessing the computing fast link device through the substrate management controller, reading device information and saving it to shared memory, using the basic input and output system to write protocols and poll the serial bus device, determining the target device information, generating and displaying the display string, Implement general computing fast link equipment information display.
It avoids the adaptation problem of BIOS due to different manufacturer rules when obtaining CXL memory information, realizes the full-stage display of CXL memory information, and provides a general computing fast link device information display solution.
Smart Images

Figure CN119271334A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing technology, and in particular to a method, device, equipment and medium for displaying computing fast link equipment information. Background Art
[0002] Basic input and output systems and baseboard management controllers are an indispensable part of modern data centers and enterprise IT infrastructure. They work together and play their irreplaceable roles to ensure server operation, greatly improving the efficiency of server maintenance and system reliability.
[0003] In the existing technology, the BIOS (Basic Input Output System) is usually required to obtain memory information from the configuration space and add it to the asset information through the memory map. However, this method has certain shortcomings. The CXL (Compute Express Link) specification does not stipulate that the device must map memory information to the memory. Mapping memory information to the host memory space is a custom function of some manufacturers. Even if different manufacturers have done mapping, the custom interfaces between manufacturers may be different. Therefore, this method is not universal. In addition, the existing technology cannot display memory information at all stages.
[0004] It can be seen that how to set up a universal method for displaying information of computing fast link devices is a problem that those skilled in the art need to solve. Summary of the invention
[0005] The purpose of the embodiments of the present invention is to provide a method, device, equipment and medium for displaying computing fast link device information, which can avoid the problem that the BIOS will constantly adapt to new CXL cards due to different rules set by manufacturers when obtaining CXL memory information, and realize a universal computing fast link device information display solution. The specific solution is as follows:
[0006] In a first aspect, the present application discloses a method for displaying information of a computing fast link device, comprising:
[0007] Accessing the computing fast link device through a preset channel using a baseboard management controller to read 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;
[0008] Writing the device information stored in the preset shared memory into a first preset protocol through a basic input / output system, and polling a plurality of connected serial bus devices through a second preset protocol to determine a target serial bus device corresponding to a preset device type among the plurality of serial bus devices;
[0009] If the first preset protocol contains target device information corresponding to the target serial bus device, 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 accessing the computing fast link device through a preset channel by using a baseboard management controller to read 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] Using a baseboard management controller to access a computing fast link device through a preset channel, and determining whether the computing fast link device is successfully accessed;
[0012] If the computing fast link device is successfully accessed, the device information corresponding to the computing fast link device is read from the computing fast link device according to a preset command and an address offset corresponding to the computing fast link device, and the device information is stored in a preset shared memory based on a preset storage offset.
[0013] Optionally, the step of writing the device information stored in the preset shared memory into a first preset protocol through a basic input / output system, and polling a plurality of connected serial bus devices through a second preset protocol to determine a target serial bus device corresponding to a preset device type among the plurality of serial bus devices includes:
[0014] Checking, through a basic input / output system, whether the device information sent by the baseboard management controller exists in the preset shared memory, and if the device information exists, writing the device information into a first preset protocol;
[0015] Polling the configuration spaces of the connected serial bus devices through a second preset protocol to extract the operator identifiers and device identifiers respectively corresponding to the serial bus devices, and determining 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 computing fast link device type based on the operator identifier and the device identifier, the serial bus device corresponding to the operator identifier and the device identifier is used as a serial bus device to be determined, and the spatial configuration capability of the serial bus device to be determined is confirmed;
[0017] The protocol type supported by the to-be-determined serial bus device is searched through the spatial configuration capability. If the protocol type supported by the to-be-determined serial bus device meets a preset protocol support condition, the to-be-determined serial bus device is used as a target serial bus device.
[0018] Optionally, if the first preset protocol contains target device information corresponding to the target serial bus device, generating a target display string based on the target device information, and displaying the target display string through a preset display page, further includes:
[0019] If target device information corresponding to the target serial bus device exists in the first preset protocol, the target device information is parsed from the first preset protocol, and a memory structure is constructed based on the target device information to send the memory structure to the baseboard management controller so that the baseboard management controller displays the memory structure.
[0020] Optionally, if the first preset protocol contains target device information corresponding to the target serial bus device, generating a target display string based on the target device information, and displaying the target display string through a preset display page, further includes:
[0021] Creating a device information display field, and filling the device information display field with the target device information to obtain an information field to be displayed;
[0022] The information field to be displayed is displayed through the Post page in the basic input and output system.
[0023] Optionally, if the first preset protocol contains target device information corresponding to the target serial bus device, 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, the target device information is parsed from the first preset protocol, and target hardware information in the target device information is determined;
[0025] Determine the device type and memory information of the target serial bus device from the target device information;
[0026] A target display string is generated according to 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, generating a target display string according to 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, the device number and the function number;
[0029] generating a second display string corresponding to the device type according to the device type, and generating a third display string based on the memory information;
[0030] concatenating the first display string, the second display string, and the third display string to obtain a 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 a preset option page through the encoding file.
[0032] In a second aspect, the present application discloses a device for displaying information of a computing fast link device, comprising:
[0033] An information saving module, used to access the computing fast link device through a preset channel using a 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] a device determination module, configured to write the device information stored in the preset shared memory into a first preset protocol through a basic input / output system, and to poll a plurality of connected serial bus devices through a second preset protocol to determine a target serial bus device corresponding to a 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 corresponding to the target serial bus device if the first preset protocol contains target device information corresponding to the target serial bus device, and display the target display string through a preset display page.
[0036] In a third aspect, the present application discloses an electronic device, comprising:
[0037] Memory for storing computer programs;
[0038] The processor is used to execute the computer program to implement the steps of the aforementioned method for calculating fast link device information display.
[0039] In a fourth aspect, the present application discloses a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the aforementioned method for calculating fast link device information display are implemented.
[0040] In the present application, firstly, a baseboard management controller can be used to access a computing fast link device through a preset channel, 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, and then write the device information saved in the preset shared memory into a first preset protocol through a basic input / output system, and poll a number of connected serial bus devices through a second preset protocol to determine a target serial bus device corresponding to a preset device type among the number of serial bus devices, and 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 effect: Through the method of the present application, the baseboard management controller can be used to access the computing fast link device through the 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, and then the device information saved in the preset shared memory can be written into the first preset protocol through the basic input and output system, and the connected serial bus devices can be polled through the second preset protocol to determine the target serial bus device corresponding to the preset device type among the serial bus devices; if there is target device information corresponding to the target serial bus device 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 the preset display page. In this way, the problem that the BIOS will constantly adapt to the new CXL card due to different rules set by the manufacturer when obtaining the CXL memory information can be avoided, and the memory information of CXL can be displayed through the preset display interface, thereby realizing a general computing fast link device information display scheme. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 A flow chart of a method for displaying fast link device information provided by an embodiment of the present invention;
[0044] Figure 2A timing diagram of a method for displaying fast link device information provided by an embodiment of the present invention;
[0045] Figure 3 A flowchart of a specific method for displaying fast link device information provided by an embodiment of the present invention;
[0046] Figure 4 A schematic diagram of the structure of a device for displaying fast link information provided by an embodiment of the present invention;
[0047] Figure 5 A structural diagram of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0049] The terms "including" and "having" in the specification of the present invention and the above-mentioned drawings, as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.
[0050] In the existing technology, BIOS is usually required to obtain memory information from the configuration space and add it to the asset information through memory map. However, this method has certain shortcomings. The CXL specification does not stipulate that the device must map memory information to the memory. Mapping memory information to the host memory space is a custom function of some manufacturers. Even if different manufacturers have done mapping, the custom interfaces between manufacturers may be different. Therefore, this method is not universal. In addition, the existing technology cannot display memory information at all stages.
[0051] In order to overcome the above problems, the present application discloses a method, apparatus, device and medium for displaying computing fast link device information, which can avoid the problem that BIOS has to constantly adapt to new CXL cards when obtaining CXL memory information due to different rules set by manufacturers, and can display CXL memory information through a preset display interface.
[0052] See also Figure 1 As shown, the embodiment of the present application discloses a method for displaying information of computing fast link equipment, including:
[0053] Step S11: using a baseboard management controller to access a computing fast link device through a preset channel, 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.
[0054] In this embodiment, Figure 2 As shown, it is necessary to use the baseboard management controller to access the computing fast link device through a preset channel, and read the device information of the computing fast link device when the baseboard management controller successfully accesses the computing fast link device. Specifically, each time the BMC (Baseboard Management Controller) is powered on, it accesses the CXL device memory, that is, the memory of the computing fast link device, through a specified I2C (Inter-Integrated Circuit) channel and address. Then it is necessary to determine whether the memory of the computing fast link device can be successfully accessed. If it can be successfully accessed, the original SPD information read, that is, the device information of the computing fast link device, needs to be put into the shared memory. It should be noted that there is a certain offset in the storage in the memory of the computing fast link device. In actual operation, all offset contents can be read out using a For loop plus 1. Therefore, if the computing fast link device is successfully accessed, the device information corresponding to the computing fast link device can be read from the computing fast link device according to the preset I2C command and the address offset corresponding to the computing fast link device.
[0055] Furthermore, after reading the device information corresponding to the computing fast link device, it is necessary to store the read device information in the preset shared memory according to the preset storage offset. Specifically, the read SPD information (SPD, Serial Presence Detect) needs to be placed together with the specified address offset in the shared memory for interaction between BIOS and BMC. During the next boot process, BIOS reads data at the specified offset to directly obtain the CXL device memory SPD information. In this way, the speed and efficiency of information acquisition can be effectively improved.
[0056] It is further necessary to explain that, since there may be multiple computing fast link devices, different storage offsets can be set for each fast link device, and a mapping relationship between different fast link devices and the corresponding storage offsets set can be established, and the mapping relationship can be saved in a preset data storage medium, and then each time the 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 according to the mapping relationship, and then the data can be stored according to the offset. In this way, on the one hand, it is ensured that different fast link devices correspond to different storage offsets, thereby ensuring the security of data storage; on the other hand, by saving the mapping relationship between different fast link devices and the corresponding storage offsets set through the preset data storage medium, the data offset corresponding to the fast link device can be quickly confirmed through the mapping relationship when data is stored next time, thereby improving data storage efficiency.
[0057] Step S12: writing the device information stored in the preset shared memory into a first preset protocol through a basic input / output system, and polling a plurality of connected serial bus devices through a second preset protocol to determine a target serial bus device corresponding to a preset device type among the plurality of serial bus devices.
[0058] In this embodiment, Figure 2 As shown, it is necessary to write the device information saved in the preset shared memory into the first preset protocol through BIOS, that is, the basic input and output system. Specifically, it is necessary to check through the basic input and output system 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, it is necessary to write the device information into a customized first preset protocol, wherein the first preset protocol is SPD PROTOCOL.
[0059] Furthermore, after writing the device information into the customized first preset protocol, it is necessary to poll several connected serial bus devices through the second preset protocol to determine whether there is a computing fast link device type in the connected serial bus devices. Specifically, after each power-on, it is necessary to poll the configuration space of the PCIe (peripheral component interconnectexpress, a high-speed serial computer expansion bus standard) device to find the CXL Type3 type device. It is necessary to poll the configuration space of each PCIe device through the customized second preset protocol, that is, EFI_PCI_IO_PROTOCOL, and then extract the operator identifier Vendor ID and device identifier Device ID corresponding to the device from the configuration space. Then, it is necessary to determine whether the device type of the device is a computing fast link device type, that is, a CXL device, through the operator identifier Vendor ID and the device identifier 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 computing fast link device type, that is, a CXL device, through the device's operator ID and the device ID, the serial bus device corresponding to the operator ID and the device ID needs to be used as a serial bus device to be determined, and then the spatial configuration capability DVSEC Capability (DesignatedVendor-Specific Extended Capability) of the serial bus device to be determined is searched, and then the protocol type supported by the serial bus device to be determined is searched through the spatial configuration capability of the device, and it is determined whether the protocol type supported by the serial bus device to be determined meets the preset protocol support condition. It should be noted that the preset protocol support condition is 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 is characterized that the type of the serial bus device to be determined is the CXL Type3 type, and the serial bus device to be determined can be used as the target serial bus device. In this way, the CXLType3 type device in the serial bus device can be accurately determined, ensuring the accuracy of the subsequent acquisition of device information, and indirectly improving the efficiency of information acquisition.
[0061] Step S13: If the first preset protocol contains target device information corresponding to the target serial bus device, 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 the first preset protocol contains target device information corresponding to the target serial bus device, the target device information corresponding to the target serial bus device can be parsed from the first preset protocol, and then the target hardware information in the target device information, such as various identification information, is determined, and then 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 the target device information corresponding to the target serial bus device is obtained and the target display string is generated based on the target device information, it also includes: if the target device information corresponding to the target serial bus device exists in the first preset protocol, 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 displays 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, and then saved in a custom SPD memory structure, and the memory structure is sent to the BMC baseboard management controller, and then the received memory structure is displayed by the baseboard management controller.
[0064] It is further necessary to explain that before the target device information corresponding to the target serial bus device and the target display string is generated based on the target device information, it also 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 basic input and output system. That is, the device information display field CXL Memory can be created, and 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 is displayed through the Post page in the BIOS basic input and output system. In this way, more ways to display CXL memory can be added, not only limited to the web pages of BIOS and BMC, but also POST interface display and Setup display can be added, so that no matter at any stage of the server or in what way the user uses the server, the memory information related to the CXL device can be seen.
[0065] It can be seen that in this embodiment, the baseboard management controller can be used to access the computing fast link device through the 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, and then the device information saved in the preset shared memory can be written into the first preset protocol through the basic input and output system, and the connected serial bus devices can be polled through the second preset protocol to determine the target serial bus device corresponding to the preset device type among the serial bus devices; if there is target device information corresponding to the target serial bus device 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 the preset display page. In this way, the problem that the BIOS will constantly adapt to the new CXL card due to different rules set by the manufacturer when obtaining the CXL memory information can be avoided, and the memory information of CXL can be displayed through the preset display interface, thereby realizing a general computing fast link device information display solution.
[0066] Based on the above embodiments, it can be known that through the method of the present application, a target display string can be generated based on the target device information, and the target display string can be displayed through a preset display page. For this reason, this embodiment describes in detail how to generate a target display string and display the target display string. Figure 3 As shown, the embodiment of the present application discloses a method for displaying information of computing fast link equipment, including:
[0067] Step S21: using a baseboard management controller to access a computing fast link device through a preset channel, 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.
[0068] Step S22: write the device information stored in the preset shared memory into a first preset protocol through a basic input / output system, and poll the connected serial bus devices through a second preset protocol to determine a target serial bus device corresponding to a preset device type among the serial bus devices.
[0069] Step S23: 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 target hardware information in the target device information is determined.
[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 customized first preset protocol SPD PROTOCOL can be obtained, it is necessary to parse the device information corresponding to the target serial bus device in the first preset protocol SPD PROTOCOL, and then determine the target hardware information in the target device information. It should be noted that the target hardware information in this embodiment is the bus number Bus Number, the device number Device Number and the function number 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, the device type and memory information of the target serial bus device need to be extracted from the target device information. For example, the device type of the target serial bus device is CXL Type 3, and the memory information includes memory frequency, memory manufacturer, memory capacity and memory type.
[0073] Step S25: Generate a target display string according to 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 according to the determined bus number BusNumber, device number Device Number and function number Function Number, for example, BusNumber=2A, Device Number=02, 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 according to the device type, for example, it is necessary to determine the form of the CXLtype3 type device, if it is E3.S, generate the string "E3.S", if it is AIC form, generate the string "AIC_DIMM0 / 1". And it is necessary to generate a third display string 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 type, then the generated second display string is "4800MT / s ADRx4 64GB RDIMM". Then the first display string, the second display string and the third display string are spliced to obtain the target display string. For example, the above-obtained strings are spliced to obtain the target display string "BDF:2A:02.0 :E3.S 4800MT / s A DRx4 64GB RDIMM". Finally, it is necessary to create a Setup setting option corresponding to the target device information, and update the target display string to the UNI (Unicode) encoding file corresponding to the setup option, and display the target display string corresponding to the setup option on the preset option page through the encoding file. In this way, you can know which CXL device the memory belongs to by intuitive viewing.
[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 also be allocated to different hosts. Therefore, the option graying out condition is added. When the memory does not belong to the current host, the option is grayed out.
[0076] It can be seen that, through the method of the embodiment, it is necessary to parse the target device information from the first preset protocol, and determine the target hardware information in the target device information, and then determine the device type and memory information of the target serial bus device from the target device information, and determine the bus number, device number and function number included in the target hardware information to generate the corresponding first display string, and generate the corresponding second display string according to the device type, and generate the third display string based on the memory information, and finally, the first display string, the second display string and the third display string can be spliced to obtain the target display string, and create a setting option corresponding to the target device information, so as to 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. In this way, it is possible to know which CXL device the memory belongs to only by intuitive viewing, which effectively improves the efficiency of information confirmation.
[0077] See also Figure 4 As shown, the embodiment of the present application discloses a device for displaying information of a computing fast link device, including:
[0078] The information saving module 11 is used to access the computing fast link device through a preset channel using the baseboard management controller, so as to read the 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 a basic input and output system, and poll a plurality of connected serial bus devices through a second preset protocol to determine a target serial bus device corresponding to a preset device type among the plurality of serial bus devices;
[0080] The information display module 13 is configured to generate a target display string based on the target device information corresponding to the target serial bus device if the first preset protocol contains target device information corresponding to the target serial bus device, and display the target display string through a preset display page.
[0081] In this embodiment, the baseboard management controller can first be used to access the computing fast link device through a preset channel, 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, and then write the device information saved in the preset shared memory into a first preset protocol through a basic input and output system, and poll several connected serial bus devices through a second preset protocol to determine a target serial bus device corresponding to a preset device type among the several serial bus devices, and finally, if there is target device information corresponding to the target serial bus device 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. It can be seen that through the method of the present application, the baseboard management controller can be used to access the computing fast link device through the 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, and then the device information saved in the preset shared memory can be written into the first preset protocol through the basic input and output system, and the connected serial bus devices can be polled through the second preset protocol to determine the target serial bus device corresponding to the preset device type among the serial bus devices; if there is target device information corresponding to the target serial bus device 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 the preset display page. In this way, the problem that the BIOS will constantly adapt to the new CXL card due to different rules set by the manufacturer when obtaining the CXL memory information can be avoided, and the memory information of CXL can be displayed through the preset display interface, thereby realizing a general computing fast link device information display scheme.
[0082] In some embodiments, the information storage module 11 may specifically include:
[0083] A device access unit, used to access the computing fast link device through a preset channel using a baseboard management controller, and determine whether the computing fast link device is successfully accessed;
[0084] A data storage unit is used to read device information corresponding to the computing fast link device from the computing fast link device according to a preset command and an address offset corresponding to the computing fast link device if the computing fast link device is successfully accessed, and store the device information in a preset shared memory based on a preset storage offset.
[0085] In some embodiments, the device determination module 12 may specifically include:
[0086] A data writing unit, used for checking whether the device information sent by the baseboard management controller exists in the preset shared memory through a basic input and output system, and if the device information exists, writing the device information into a first preset protocol;
[0087] a device type determination unit, configured to poll the configuration space of a plurality of serial bus devices connected through a second preset protocol to extract the operator identifiers and device identifiers respectively corresponding to the plurality of serial bus devices, 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] a parameter determination unit, configured to, if it is determined based on the operator identifier and the device identifier that the device type of the corresponding serial bus device is a computing fast link device type, use the serial bus device corresponding to the operator identifier and the device identifier as a serial bus device to be determined, and confirm the spatial configuration capability of the serial bus device to be determined;
[0089] The device determining unit is used to search the protocol type supported by the to-be-determined serial bus device through the space configuration capability, and if the protocol type supported by the to-be-determined serial bus device meets the preset protocol support condition, the to-be-determined serial bus device is used 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 used to parse the target device information from the first preset protocol if there is target device information corresponding to the target serial bus device in the first preset protocol, and to construct a memory structure based on the target device information, so as to send the memory structure to the baseboard management controller so that the baseboard management controller displays the memory structure.
[0092] In some embodiments, the computing fast link device information display device may further include:
[0093] A field filling unit, used for creating a device information display field, and filling the device information display field with the target device information to obtain an information field to be displayed;
[0094] The second information display unit is used to display the to-be-displayed information field through a Post page in a basic input and output system.
[0095] In some embodiments, the information display module 13 may specifically include:
[0096] a first information determining unit, configured to parse the target device information from the first preset protocol and determine target hardware information in the target device information if target device information corresponding to the target serial bus device exists in the first preset protocol;
[0097] A second information determining unit, configured to determine a device type and memory information of the target serial bus device from the target device information;
[0098] The character string display submodule is used to generate a target display character string according to the target hardware information, the device type and the memory information, and display the target display character string through a preset display page.
[0099] In some embodiments, the string display submodule may specifically include:
[0100] A first character string generating unit, configured to determine a bus number, a device number, and a function number included in the target hardware information, and to generate a first display character string corresponding to the bus number, the device number, and the function number;
[0101] a second character string generating unit, configured to generate a second display character string corresponding to the device type according to the device type, and to generate a third display character string based on the memory information;
[0102] a character string concatenation unit, configured to concatenate the first display character string, the second display character string and the third display character string to obtain a target display character string;
[0103] A character string display unit is used to create a setting option corresponding to the target device information, and update the target display character string to the encoding file corresponding to the setting option, and display the target display character string corresponding to the setting option on a preset option page through the encoding file.
[0104] Furthermore, the present application also discloses an electronic device. Figure 5 It is a structural diagram of an electronic device according to an exemplary embodiment, and the content in the figure cannot be regarded as any limitation on the scope of use of this application. The electronic device may specifically 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. Among them, the memory 22 is used to store a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the method for displaying fast link device information disclosed in any of the aforementioned embodiments. In addition, the electronic device in this embodiment may specifically be an electronic computer.
[0105] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device; the communication interface 24 can create a data transmission channel between the electronic device and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain 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 storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a 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 various hardware devices on the electronic device and the computer program 222, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the method for displaying computing fast link device information performed by the electronic device disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.
[0108] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned disclosed method for displaying computing fast link device information is implemented. For the specific steps of the method, reference may be made to the corresponding contents disclosed in the aforementioned embodiments, and no further description will be given here.
[0109] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0110] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0111] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0112] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0113] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for displaying information of computing fast link equipment, characterized in that: include: Accessing the computing fast link device through a preset channel using a baseboard management controller to read 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; Writing the device information stored in the preset shared memory into a first preset protocol through a basic input / output system, and polling a plurality of connected serial bus devices through a second preset protocol to determine a target serial bus device corresponding to a preset device type among the plurality of serial bus devices; If the first preset protocol contains target device information corresponding to the target serial bus device, a target display string is generated based on the target device information, and the target display string is displayed through a preset display page.
2. The method for displaying computing fast link device information 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 to read 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: Using a baseboard management controller to access a computing fast link device through a preset channel, and determining whether the computing fast link device is successfully accessed; If the computing fast link device is successfully accessed, the device information corresponding to the computing fast link device is read from the computing fast link device according to a preset command and an address offset corresponding to the computing fast link device, and the device information is stored in a preset shared memory based on a preset storage offset.
3. The method for displaying computing fast link device information according to claim 1, characterized in that: The method of writing the device information stored in the preset shared memory into a first preset protocol through a basic input / output system, and polling a plurality of connected serial bus devices through a second preset protocol to determine a target serial bus device corresponding to a preset device type among the plurality of serial bus devices, comprises: Checking, through a basic input / output system, whether the device information sent by the baseboard management controller exists in the preset shared memory, and if the device information exists, writing the device information into a first preset protocol; Polling the configuration spaces of the connected serial bus devices through a second preset protocol to extract the operator identifiers and device identifiers respectively corresponding to the serial bus devices, and determining 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 computing fast link device type based on the operator identifier and the device identifier, the serial bus device corresponding to the operator identifier and the device identifier is used as a serial bus device to be determined, and the spatial configuration capability of the serial bus device to be determined is confirmed; The protocol type supported by the to-be-determined serial bus device is searched through the spatial configuration capability. If the protocol type supported by the to-be-determined serial bus device meets a preset protocol support condition, the to-be-determined serial bus device is used as a target serial bus device.
4. The method for displaying computing fast link device information according to claim 1, characterized in that: If the first preset protocol contains target device information corresponding to the target serial bus device, generating a target display string based on the target device information, and displaying the target display string through a preset display page, the method further includes: If target device information corresponding to the target serial bus device exists in the first preset protocol, the target device information is parsed from the first preset protocol, and a memory structure is constructed based on the target device information to send the memory structure to the baseboard management controller so that the baseboard management controller displays the memory structure.
5. The method for displaying computing fast link device information according to claim 4, characterized in that: If the first preset protocol contains target device information corresponding to the target serial bus device, generating a target display string based on the target device information, and displaying the target display string through a preset display page, the method further includes: Creating a device information display field, and filling the device information display field with the target device information to obtain an information field to be displayed; The information field to be displayed is displayed through the Post page in the basic input and output system.
6. The method for displaying computing fast link device information according to any one of claims 1 to 5, characterized in that: If the first preset protocol contains target device information corresponding to the target serial bus device, generating a target display string based on the target device information, and displaying the target display string through a preset display page, comprises: 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 target hardware information in the target device information is determined; Determine the device type and memory information of the target serial bus device from the target device information; A target display string is generated according to the target hardware information, the device type, and the memory information, and the target display string is displayed through a preset display page.
7. The method for displaying computing fast link device information according to claim 6, characterized in that: The generating a target display string according to 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, the device number and the function number; generating a second display string corresponding to the device type according to the device type, and generating a third display string based on the memory information; concatenating the first display string, the second display string, and the third display string to obtain a 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 a preset option page through the encoding file.
8. A device for displaying information of computing fast link equipment, characterized in that: include: An information saving module, used to access the computing fast link device through a preset channel using a 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; a device determination module, configured to write the device information stored in the preset shared memory into a first preset protocol through a basic input / output system, and to poll a plurality of connected serial bus devices through a second preset protocol to determine a target serial bus device corresponding to a 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 corresponding to the target serial bus device if the first preset protocol contains target device information corresponding to the target serial bus device, and display the target display string through a preset display page.
9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program to implement the steps of the method for calculating fast link device information display as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for displaying fast link device information as claimed in any one of claims 1 to 7 are implemented.
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
BMC and BIOS asset information decoupling method, system and device
CN113900718A
BMC (Baseboard Management Controller)-based memory resource processing equipment, method and device and medium
CN115686872A
Display information acquisition method and device, electronic equipment and storage medium
CN115934447A