Pcie device positioning management method and system, terminal and storage medium

CN116303200BActive Publication Date: 2026-10-23INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310171989.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2026-10-23
Estimated Expiration
2043-02-27

AI Technical Summary

Benefits of technology

[0061]本发明的有益效果在于,本发明提供的PCIE设备定位管理方法、系统、终端及存储介质,通过分析服务器内部结构,为各种PC IE设备规划物理位置,并记录规划好的物理位置,在物理位置的指导下为服务器组装PCIE设备,从而实现了服务器的物理位置的记录和后续查询,本发明可以定位PC IE设备的链路位置和物理位置,不需经过人工的对服务器机箱的查看与解析,很大程度上方便了对PC IE设备的掌控、使用和测试。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116303200B_ABST
    Figure CN116303200B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of servers, and specifically provides a PCIE device positioning management method and system, a terminal and a storage medium, which comprise the following steps: planning a physical position of a PCIE device in a server according to a PCIE device type, and marking the physical position on the PCIE device; installing the PCIE device in a corresponding position of the server based on the marked physical position on the PCIE device in a server assembly stage; and parsing a device type from a link position of the PCIE device in a server running stage, and obtaining the physical position of the PCIE device based on a corresponding relationship between the device type and the physical position. The application can position the link position and the physical position of the PCIE device, does not need to pass through manual checking and parsing of a server case, and greatly facilitates control, use and testing of the PCIE device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of server technology, and specifically to a PCIe device location management method, system, terminal, and storage medium. Background Technology

[0002] PCI-Express (Peripheral Component Interface Express) is a high-speed serial computer expansion bus standard. It features high-speed, point-to-point, dual-channel, high-bandwidth transmission, where each connected device has its own dedicated channel bandwidth and does not share the bus bandwidth. PCIe exists in two forms: M.2 interface and standard PCIe slots. PCIe offers strong expandability, supporting devices such as graphics cards, solid-state drives (PCIe interface), wireless network cards, wired network cards, sound cards, video capture cards, PCIe to M.2 adapters, PCIe to USB adapters, and PCIe to Type-C adapters. Since a server typically hosts a variety of PCIe devices, accurate identification and location of these devices is crucial.

[0003] PC I / O device information can typically be viewed in the BIOS setup page, or after the server has entered the operating system (e.g., using the `l spc i` command in Linux), or through the BMC web page. While these methods—including the BIOS setup page, the BMC web page, and operating system commands—all provide information about connected PC I / O devices and their corresponding motherboard connections, they don't directly reveal the device's actual location within the chassis. You must then examine the silkscreen markings on the cables connected to the device to locate the corresponding silkscreen interface on the motherboard and finally pinpoint the specific PC I / O device.

[0004] This method of searching is extremely inconvenient, especially for machines with complex internal structures, greatly increasing the difficulty of checking the motherboard silkscreen. It is time-consuming and laborious, and if a faulty PCIe device is encountered, its actual location cannot be quickly found, which is extremely inconvenient for both production and users. Summary of the Invention

[0005] To address the technical problem of existing technologies being unable to quickly obtain the spatial location of PCIe devices within the chassis, this invention provides a PCIe device positioning management method, system, terminal, and storage medium to solve the aforementioned technical problem.

[0006] In a first aspect, the present invention provides a PCIe device location management method, comprising:

[0007] Based on the PC IE device type, the physical location of the PC IE device in the server is planned, and the physical location is marked on the PC IE device;

[0008] During the server assembly phase, the PCIe devices are installed in the appropriate locations on the server based on their physical locations marked on the PCIe devices.

[0009] During server operation, the device type is parsed from the link location of the PCIe device, and the physical location of the PCIe device is obtained based on the correspondence between the device type and the physical location.

[0010] Furthermore, based on the PCIe device type, the physical location of the PCIe device within the server is planned, and the physical location is marked on the PCIe device, including:

[0011] Based on the standard installation pattern of the target server model, plan the physical location for the PCIE device and print the physical location in the form of a QR code;

[0012] Stick the QR code on the surface of the PC IE device.

[0013] Furthermore, based on the standard installation pattern of the target server model, the physical location of the PC IE device is planned, and the physical location is printed in the form of a QR code, including:

[0014] The internal space of the target server model is simulated as a coordinate system;

[0015] The coordinates of various PC IE devices of the target model server in the normal installation mode are simulated and printed as QR codes to identify the physical location.

[0016] Save the mapping relationship between PC IE device type and physical location coordinates as a PC IE location mapping table for the target model server.

[0017] Furthermore, during the server assembly phase, the PCIe devices are installed in the appropriate locations on the server based on their physical locations as marked on the PCIe devices, including:

[0018] During the server assembly phase, a scanning device is used to scan the QR code on the PCIe device to obtain the physical location of the PCIe device;

[0019] Install the PC IE device to the appropriate location indicated by the physical location indicator.

[0020] Furthermore, during server operation, the device type is parsed from the link location of the PCIe device, and the physical location for locating the PCIe device is obtained based on the correspondence between device type and physical location, including:

[0021] Configure a link location generation mechanism for the server system, and generate link locations for PC IE devices accessing the server based on the link location generation mechanism. The link locations include PC IE device types.

[0022] The device type is parsed from the link location of the target PCIe device, and the corresponding physical location is queried according to the mapping table to output the physical location of the target PCIe device.

[0023] Furthermore, the link location generation mechanism includes:

[0024] Identify the device type of the PC IE device accessing the server;

[0025] Based on the port number to which the PC IE device is connected, generate numbers for PC IE devices of the same type in ascending order;

[0026] Combine the device type and number into a link location according to the set format.

[0027] Furthermore, after constructing the mapping relationship between link locations and physical locations based on the actual PCIe link topology of the server, the method further includes:

[0028] After the server is powered on, capture the server's PCIe link information to obtain the link locations of all PCIe devices connected to the server.

[0029] The temperature information of all PCIe devices is captured by BMC, and the target PCIe devices with abnormal temperature information are filtered out.

[0030] The physical location of the target PCIe device is obtained based on the link location of the target PCIe device, and the physical location is written into the PCIe device alarm information.

[0031] In a second aspect, the present invention provides a PCIE device positioning management system, comprising:

[0032] A location planning unit is used to plan the physical location of a PCIE device in the server according to the PCIE device type, and mark the physical location on the PCIE device;

[0033] The location reading unit is used to install the PCIe device in the appropriate location on the server based on the physical location marked on the PCIe device during the server assembly phase.

[0034] The location query unit is used to parse the device type from the link location of the PCIe device during the server operation phase, and obtain the physical location of the PCIe device based on the correspondence between the device type and the physical location.

[0035] Furthermore, the location planning unit is specifically implemented as follows:

[0036] Based on the standard installation pattern of the target server model, plan the physical location for the PCIE device and print the physical location in the form of a QR code;

[0037] Stick the QR code on the surface of the PC IE device.

[0038] Furthermore, based on the standard installation pattern of the target server model, the physical location of the PC IE device is planned, and the physical location is printed in the form of a QR code, including:

[0039] The internal space of the target server model is simulated as a coordinate system;

[0040] The coordinates of various PC IE devices of the target model server in the normal installation mode are simulated and printed as QR codes to identify the physical location.

[0041] Save the mapping relationship between PC IE device type and physical location coordinates as a PC IE location mapping table for the target model server.

[0042] Furthermore, the location reading unit specifically performs the following:

[0043] During the server assembly phase, a scanning device is used to scan the QR code on the PCIe device to obtain the physical location of the PCIe device;

[0044] Install the PC IE device to the appropriate location indicated by the physical location indicator.

[0045] Furthermore, the location query unit performs the following specific actions:

[0046] Configure a link location generation mechanism for the server system, and generate link locations for PC IE devices accessing the server based on the link location generation mechanism. The link locations include PC IE device types.

[0047] The device type is parsed from the link location of the target PCIe device, and the corresponding physical location is queried according to the mapping table to output the physical location of the target PCIe device.

[0048] Furthermore, the link location generation mechanism includes:

[0049] Identify the device type of the PC IE device accessing the server;

[0050] Based on the port number to which the PC IE device is connected, generate numbers for PC IE devices of the same type in ascending order;

[0051] Combine the device type and number into a link location according to the set format.

[0052] Furthermore, the system also performs:

[0053] After the server is powered on, capture the server's PCIe link information to obtain the link locations of all PCIe devices connected to the server.

[0054] The temperature information of all PCIe devices is captured by BMC, and the target PCIe devices with abnormal temperature information are filtered out.

[0055] The physical location of the target PCIe device is obtained based on the link location of the target PCIe device, and the physical location is written into the PCIe device alarm information.

[0056] Thirdly, a terminal is provided, including:

[0057] Processor, memory, among which,

[0058] This memory is used to store computer programs.

[0059] The processor is used to retrieve and run the computer program from memory, causing the terminal to perform the terminal method described above.

[0060] Fourthly, a computer storage medium is provided, wherein instructions are stored therein, which, when executed on a computer, cause the computer to perform the methods described in the above aspects.

[0061] The beneficial effects of this invention are that the PCIE device positioning management method, system, terminal, and storage medium provided by this invention analyze the internal structure of the server, plan the physical location for various PCIE devices, and record the planned physical location. Under the guidance of the physical location, PCIE devices are assembled on the server, thereby realizing the recording and subsequent query of the server's physical location. This invention can locate the link location and physical location of PCIE devices without the need for manual inspection and analysis of the server chassis, which greatly facilitates the control, use, and testing of PCIE devices.

[0062] Furthermore, the design principle of this invention is reliable, the structure is simple, and it has a very wide range of application prospects. Attached Figure Description

[0063] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0064] Figure 1 This is a schematic flowchart of a method according to an embodiment of the present invention.

[0065] Figure 2 This is a schematic block diagram of a system according to an embodiment of the present invention.

[0066] Figure 3 This is a schematic diagram of the structure of a terminal provided in an embodiment of the present invention. Detailed Implementation

[0067] To enable those skilled in the art to better understand the technical solutions of this invention, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this invention.

[0068] The key terms used in this invention will be explained below.

[0069] BMC, or Baseboard Management Controller, is a remote management controller for servers. It allows for operations such as firmware upgrades and monitoring of equipment even when the machine is not powered on. Fully implementing IPMI functionality in a BMC requires a powerful 16-bit or 32-bit microcontroller, RAM for data storage, flash memory for non-volatile data storage, and firmware. It provides basic remote manageability for secure remote reboots, secure power-on, LAN alerts, and system health monitoring. In addition to basic IPMI and system monitoring functions, the mBMC can also enable rapid BIOS selection and protection by utilizing one of the two flash memories to store previous BIOS images. For example, if the system fails to boot after a remote BIOS upgrade, remote administrators can switch back to a previously working BIOS image to boot the system. Once the BIOS image is upgraded, it can also be locked to effectively prevent virus attacks.

[0070] BIOS is an abbreviation for "Basic Input Output System." On IBM PC-compatible systems, it's an industry-standard firmware interface. It's a set of programs embedded in a ROM chip on the computer's motherboard. It stores the computer's most important basic input / output programs, power-on self-test (POST) programs, and system startup programs. It can read and write specific system settings from the CMOS. Its main function is to provide the lowest-level, most direct hardware settings and control for the computer. In addition, BIOS provides some system parameters to the operating system. Changes to the system hardware are hidden by BIOS; programs use BIOS functions rather than directly controlling the hardware. Modern operating systems often ignore the abstraction layer provided by BIOS and directly control hardware components.

[0071] PCI-IE (Peripheral Component Interconnection Express) is a high-speed serial computer expansion bus standard, originally named "3GIO". It was proposed by Intel in 2001 to replace the older PCI, PCI-X, and AGP bus standards. PCIe features high-speed serial point-to-point dual-channel high-bandwidth transmission. Connected devices are allocated dedicated channel bandwidth and do not share bus bandwidth. It primarily supports active power management, error reporting, end-to-end reliable transmission, hot-plugging, and Quality of Service (QoS) functions.

[0072] Figure 1 This is a schematic flowchart illustrating a method according to an embodiment of the present invention. Wherein, Figure 1 The implementing entity can be a PCIe device positioning management system.

[0073] like Figure 1 As shown, the method includes:

[0074] Step 110: Based on the PC IE device type, plan the physical location of the PC IE device in the server, and mark the physical location on the PC IE device;

[0075] Step 120: During the server assembly phase, install the PCIe devices in the appropriate locations on the server based on the physical locations marked on the PCIe devices.

[0076] Step 130: During the server operation phase, parse the device type from the link location of the PC IE device, and obtain the physical location for locating the PC IE device based on the correspondence between the device type and the physical location.

[0077] To facilitate understanding of the present invention, the following description further illustrates the PCIE device positioning management method provided by the present invention, based on the principle of the PCIE device positioning management method and the process of positioning management of PCIE devices in the embodiments.

[0078] Specifically, the PCIe device location management method includes:

[0079] S1. Based on the PC IE device type, plan the physical location of the PC IE device in the server, and mark the physical location on the PC IE device.

[0080] The internal space of the target server is simulated as a coordinate system; the coordinates of various PCIe devices on the target server in a normal installation mode are simulated, and these coordinates are printed as QR codes to identify their physical locations; the mapping relationship between PCIe device types and physical location coordinates is saved as a PCIe location mapping table for the target server. Specifically, based on the normal installation mode of the target server, physical locations are planned for the PCIe devices, and these locations are printed as QR codes; the QR codes are then affixed to the surface of the PCIe devices.

[0081] Specifically, a 3D model of the target server model is constructed, with the PCIe device components within the model proportionally scaled to the actual server size. A spatial coordinate system is established for the 3D model, generating the coordinates of each PCIe device interface within this system, and these coordinates are defined as the physical locations of the PCIe devices. The PCIe device types and their corresponding physical locations are saved to a PCIe location mapping table, for example, device name xxx, device type xxx, device location Front X, Up Y, Left Z.

[0082] Before assembling the server, determine the physical location of each PCIe device based on its type. Print the physical location as a QR code and affix it to each PCIe device. During server assembly, the installer can use a QR code scanner to scan the PCIe devices to be installed, obtain their physical locations, and then install them in the appropriate positions on the server.

[0083] S2. During the server assembly phase, the PCIe devices are installed in the corresponding locations on the server based on the physical locations marked on the PCIe devices.

[0084] During the server assembly phase, use a scanning device to scan the QR code on the PCIe device to obtain the physical location of the PCIe device; then install the PCIe device in the corresponding location indicated by the physical location.

[0085] Specifically, when assembling the server, the assembly personnel use a QR code scanner to scan the PC IE device to be installed, obtain its physical location, and then install it in the corresponding location on the server.

[0086] S3. During the server operation phase, parse the device type from the link location of the PCIe device, and obtain the physical location for locating the PCIe device based on the correspondence between the device type and the physical location.

[0087] A link location generation mechanism is set up for the server system. Based on this mechanism, link locations are generated for PC I / O devices accessing the server. The link locations include the PC I / O device type. The device type is parsed from the link locations of the target PC I / O devices, and the corresponding physical location is queried according to the mapping table to output the physical location of the target PC I / O device. The link location generation mechanism includes: identifying the device type of the PC I / O devices accessing the server; generating numbers for PC I / O devices of the same type according to the port number they access, sorted from smallest to largest; and combining the device type and number according to a set format to form the link location.

[0088] For example, the system assigns a link location of "CPU0_PC IE1" to a PC IE device based on the link location generation mechanism. It can be seen that the PC IE device type is CPU. Then, the physical location of the CPU is looked up based on the mapping table, and the information "Device n: Device name xxx, Device type xxx, Device location Front X, Up Y, Left Z" is obtained.

[0089] The system can directly display the link location and physical location information of all PCIe devices on the display interface, and can also perform independent queries.

[0090] In addition, abnormal PC IE devices can be located based on server self-test, including: capturing server PC IE link information after the server is powered on to obtain the link location of all PC IE devices connected to the server; capturing the temperature information of all PC IE devices through BMC and filtering out target PC IE devices with abnormal temperature information; obtaining the physical location of the target PC IE device based on the link location of the target PC IE device and writing the physical location into the PC IE device alarm information.

[0091] Specifically, after the server powers on, it quickly analyzes all connection link information and temporarily stores it in the BIOS module, simultaneously synchronizing it to the BMC module. Then, the BIOS and BMC modules can be used to obtain the entire onboard information and external device status of the currently used server. The entire server's operational logic is quickly clarified. The BIOS serial port logs are cached and analyzed to obtain information about external PCIe devices, including device type, operating bandwidth, slot bandwidth, and operating speed. The BMC collects temperature and actual location information from the external PCIe device's sensors. The obtained PCIe link information, PCIe device information, and temperature information are matched and comprehensively analyzed. The current server operation information is checked to determine if the server has passed the post-test (POST) phase. If a crash occurs during the POST phase, the machine's BIOS serial port log will print the specific device detected at the time of the crash. The link location in the serial port log is then compared with the theoretical location scanned by the corresponding machine. For example, if the serial port prints the location "CPU0_PC IE 1", compare it with the theoretical location information initially planned in the actual link, which is also "CPU0_PCIE 1". Determine if the current crash is caused by the installed PCIE device. If so, based on the link location information, locate the physical location and report the actual physical location of the device within the chassis and the error type. The physical location is presented as follows:

[0092] Device Name: xxx, Device Location: Front X, Up Y, Left Z. Or

[0093] Device Name: xxx, Device Location: Back X, Down Y, River Z.

[0094] If not, it will report an issue caused by a non-PC IE device. The analysis results will then be passed to BMC. View the results in the configured path.

[0095] If the server successfully enters the operating system after passing the post phase, you can use specific commands or the configured path to view the physical location information of all PC I / O devices within the chassis and perform real-time monitoring.

[0096] Here is an example of feedback:

[0097] Device n: Device name xxx, device type xxx, device location Front X, Up Y, Left Z.

[0098] like Figure 2As shown, the system 200 includes:

[0099] The location planning unit 210 is used to plan the physical location of the PC IE device in the server according to the PC IE device type, and mark the physical location on the PC IE device;

[0100] The location reading unit 220 is used to install the PCIe device in the corresponding location on the server based on the physical location marked on the PCIe device during the server assembly phase.

[0101] The location query unit 230 is used to parse the device type from the link location of the PCIe device during the server operation phase, and obtain the physical location of the PCIe device based on the correspondence between the device type and the physical location.

[0102] Optionally, as an embodiment of the present invention, the location planning unit specifically performs the following:

[0103] Based on the standard installation pattern of the target server model, plan the physical location for the PCIE device and print the physical location in the form of a QR code;

[0104] Stick the QR code on the surface of the PC IE device.

[0105] Optionally, as an embodiment of the present invention, according to the conventional installation mode of the target model server, a physical location for the PC IE device is planned, and the physical location is printed in the form of a QR code, including:

[0106] The internal space of the target server model is simulated as a coordinate system;

[0107] The coordinates of various PC IE devices of the target model server in the normal installation mode are simulated and printed as QR codes to identify the physical location.

[0108] Save the mapping relationship between PC IE device type and physical location coordinates as a PC IE location mapping table for the target model server.

[0109] Optionally, as an embodiment of the present invention, the location reading unit specifically performs the following:

[0110] During the server assembly phase, a scanning device is used to scan the QR code on the PCIe device to obtain the physical location of the PCIe device;

[0111] Install the PC IE device to the appropriate location indicated by the physical location indicator.

[0112] Optionally, as an embodiment of the present invention, the location query unit specifically performs the following:

[0113] Configure a link location generation mechanism for the server system, and generate link locations for PC IE devices accessing the server based on the link location generation mechanism. The link locations include PC IE device types.

[0114] The device type is parsed from the link location of the target PCIe device, and the corresponding physical location is queried according to the mapping table to output the physical location of the target PCIe device.

[0115] Optionally, as an embodiment of the present invention, the link location generation mechanism includes:

[0116] Identify the device type of the PC IE device accessing the server;

[0117] Based on the port number to which the PC IE device is connected, generate numbers for PC IE devices of the same type in ascending order;

[0118] Combine the device type and number into a link location according to the set format.

[0119] Optionally, as an embodiment of the present invention, the system further performs:

[0120] After the server is powered on, capture the server's PCIe link information to obtain the link locations of all PCIe devices connected to the server.

[0121] The temperature information of all PCIe devices is captured by BMC, and the target PCIe devices with abnormal temperature information are filtered out.

[0122] The physical location of the target PCIe device is obtained based on the link location of the target PCIe device, and the physical location is written into the PCIe device alarm information.

[0123] Figure 3 This is a schematic diagram of the structure of a terminal 300 provided in an embodiment of the present invention. The terminal 300 can be used to execute the PCIE device positioning management method provided in the embodiment of the present invention.

[0124] The terminal 300 may include a processor 310, a memory 320, and a communication unit 330. These components communicate via one or more buses. Those skilled in the art will understand that the server structure shown in the figure does not constitute a limitation of the present invention. It may be a bus topology or a star topology, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0125] The memory 320 can be used to store the execution instructions of the processor 310. The memory 320 can be implemented by any type of volatile or non-volatile memory terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. When the execution instructions in the memory 320 are executed by the processor 310, the terminal 300 is able to perform some or all of the steps in the above method embodiments.

[0126] The processor 310 serves as the control center of the storage terminal, connecting various parts of the electronic terminal via various interfaces and lines. It executes software programs and / or modules stored in the memory 320, and calls data stored in the memory to perform various functions of the electronic terminal and / or process data. The processor can be composed of integrated circuits (ICs), such as a single packaged IC or multiple packaged ICs with the same or different functions connected together. For example, the processor 310 may consist only of a central processing unit (CPU). In this embodiment of the invention, the CPU may have a single processing core or include multiple processing cores.

[0127] The communication unit 330 is used to establish a communication channel, enabling the storage terminal to communicate with other terminals. It can receive user data sent by other terminals or send user data to other terminals.

[0128] The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, which, when executed, may include some or all of the steps provided in the embodiments of the present invention. The storage medium may be a magnetic disk, an optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0129] Therefore, this invention analyzes the internal structure of the server, plans the physical locations of various PC IE devices, and records the planned physical locations. Guided by these physical locations, the PC IE devices are assembled on the server, thereby realizing the recording and subsequent querying of the server's physical location. This invention can locate the link location and physical location of PC IE devices without requiring manual inspection and analysis of the server chassis, greatly facilitating the control, use, and testing of PC IE devices. The technical effects achieved by this embodiment can be found in the description above, and will not be repeated here.

[0130] Those skilled in the art will clearly understand that the techniques in the embodiments of the present invention can be implemented using software and necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, or any other medium capable of storing program code. It includes several instructions to cause a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

[0131] The same or similar parts between the various embodiments in this specification can be referred to mutually. In particular, the terminal embodiments are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.

[0132] In the embodiments provided by this invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between systems or units may be electrical, mechanical, or other forms.

[0133] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0134] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0135] Although the present invention has been described in detail with reference to the accompanying drawings and preferred embodiments, the invention is not limited thereto. Various equivalent modifications or substitutions can be made to the embodiments of the invention by those skilled in the art without departing from the spirit and essence of the invention, and such modifications or substitutions should all be within the scope of the invention. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the invention should also be covered within the protection scope of the invention. Therefore, the protection scope of the invention should be determined by the scope of the claims.

Claims

1. A PCIe device location management method, characterized in that, include: Based on the PCIe device type, the physical location of the PCIe device in the server is planned, and the physical location is marked on the PCIe device; The steps for obtaining the physical location include: constructing a 3D model of the target server model, with the PCIe device components inside the model being proportional to the actual server size; constructing a spatial coordinate system for the 3D model, generating the coordinates of each PCIe device interface in the spatial coordinate system, and defining these coordinates as the physical location of the PCIe device. During the server assembly phase, the PCIe devices are installed in the appropriate locations on the server based on their physical locations marked on the PCIe devices. During server operation, the device type is parsed from the link location of the PCIe device, and the physical location of the PCIe device is obtained based on the correspondence between the device type and the physical location. The PCIE device location management method further includes: saving the mapping relationship between PCIE device type and physical location coordinates as a PCIE location mapping table for the target model server; During server operation, the device type is resolved from the link location of the PCIe device. Based on the correspondence between device type and physical location, the physical location used to locate the PCIe device is obtained, including: Configure a link location generation mechanism for the server system, and generate link locations for PCIe devices accessing the server based on the link location generation mechanism. The link locations include PCIe device types. The device type is parsed from the link location of the target PCIe device, and the corresponding physical location is queried according to the mapping table to output the physical location of the target PCIe device; The link location generation mechanism includes: Identify the device type of the PCIe device accessing the server; Based on the port number to which the PCIe device is connected, generate numbers for PCIe devices of the same type in ascending order. Combine the device type and number into a link location according to the set format; The method further includes: capturing server PCIe link information after the server is powered on to obtain the link location of all PCIe devices connected to the server; capturing the temperature information of all PCIe devices through BMC and filtering out target PCIe devices with abnormal temperature information; obtaining the physical location of the target PCIe device based on the link location of the target PCIe device and writing the physical location into the PCIe device alarm information.

2. The method according to claim 1, characterized in that, Based on the PCIe device type, the physical location of the PCIe device in the server is planned, and the physical location is marked on the PCIe device, including: Based on the standard installation pattern of the target server model, plan the physical location for the PCIE device and print the physical location in the form of a QR code; Stick the QR code on the surface of the PCIe device.

3. The method according to claim 2, characterized in that, Based on the standard installation pattern of the target server model, plan the physical location for the PCIe devices and print the physical location in the form of a QR code, including: The internal space of the target server model is simulated as a coordinate system; The coordinates of various PCIe devices on the target model server in a normal installation mode are simulated, and the coordinates are printed as QR codes to identify the physical location.

4. The method according to claim 2, characterized in that, During the server assembly phase, the PCIe devices are installed in their corresponding locations on the server based on their physical locations as marked on the PCIe devices, including: During the server assembly phase, a scanning device is used to scan the QR code on the PCIe device to obtain the physical location of the PCIe device; Install the PCIe device to the appropriate location indicated by the physical location indicator.

5. A PCIe device positioning management system, characterized in that, include: A location planning unit is used to plan the physical location of a PCIe device in the server according to the PCIe device type, and mark the physical location on the PCIe device. The steps for obtaining the physical location include: constructing a 3D model of the target server model, with the PCIE device components inside the model being proportional to the actual server size; constructing a spatial coordinate system for the 3D model, generating the coordinates of each PCIE device interface in the spatial coordinate system, and defining these coordinates as the physical location of the PCIE device. The location reading unit is used to install the PCIe device in the corresponding location on the server based on the physical location marked on the PCIe device during the server assembly phase. The location query unit is used to parse the device type from the link location of the PCIe device during the server operation phase, and obtain the physical location of the PCIe device based on the correspondence between the device type and the physical location. The PCIE device positioning management system is further configured to perform the following steps: save the mapping relationship between PCIE device type and physical location coordinates as a PCIE location mapping table for the target model server; During server operation, the device type is resolved from the link location of the PCIe device. Based on the correspondence between device type and physical location, the physical location used to locate the PCIe device is obtained, including: Configure a link location generation mechanism for the server system, and generate link locations for PCIe devices accessing the server based on the link location generation mechanism. The link locations include PCIe device types. The device type is parsed from the link location of the target PCIe device, and the corresponding physical location is queried according to the mapping table to output the physical location of the target PCIe device; The link location generation mechanism includes: Identify the device type of the PCIe device accessing the server; Based on the port number to which the PCIe device is connected, generate numbers for PCIe devices of the same type in ascending order. Combine the device type and number into a link location according to the set format; The system also performs the following actions: after the server is powered on, it captures the server's PCIe link information to obtain the link locations of all PCIe devices connected to the server; it captures the temperature information of all PCIe devices through the BMC and filters out target PCIe devices with abnormal temperature information; it obtains the physical location of the target PCIe device based on the link location of the target PCIe device and writes the physical location into the PCIe device alarm information.

6. A terminal, characterized in that, include: processor; Memory used to store the processor's execution instructions; The processor is configured to perform the method according to any one of claims 1-4.

7. A computer-readable storage medium storing a computer program, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • System for automatically identifying physical location of equipment in asset operation and maintenance process

    CN104391779A

  • Method and device for prompting and detecting installation position

    CN112130531A

  • PCIE (Peripheral Component Interface Express) equipment positioning method and device and related equipment

    CN114077452A

  • Heat dissipation regulation and control method, system and device and server

    CN114489292A