A PCIE resource identification method, device, equipment and storage medium
By detecting the connection between the CPU and the PCIE Riser in the server, PCIE resources are automatically identified, which solves the problem of complex and inaccurate resource identification in the existing technology, improves identification efficiency and accuracy, and reduces resource consumption and costs.
Patent Information
- Application Number
- CN202310140856.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-15
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-02-15
AI Technical Summary
In the existing technology, servers need to manually operate jump caps or DIP switches when identifying PCIE resources, resulting in a complex resource identification process that consumes manpower and material resources and has low accuracy. As the number of CPUs and connection methods increase, the problem becomes more prominent. .
After detecting the connection between the target CPU in the motherboard and the PCIE Riser, the target CPU transmits the selection signal to the PCIE Riser, uses the signal input port to obtain the card slot information, and determines the mapping relationship between the signal output port and the card slot information based on the selection signal. Implement automated resource identification.
It reduces the consumption of human and material resources in the process of PCIE resource identification, improves the accuracy and efficiency of resource identification results, facilitates subsequent data processing, improves server performance and reduces signal transmission costs.
Smart Images

Figure CN116069701B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a PCIE resource identification method, device, equipment and storage medium. Background Art
[0002] With the rapid development of server computing power, the CPU in the server motherboard usually transmits the high-speed serial computer expansion bus (Peripheral Component Interconnect Express, PCIE) signal to the card slot (PCIESlot) on the expansion board (PCIE Riser) through the PCIE signal output port (PCIE Port), Cable bus and signal input port to support more PCIE devices through PCIE Riser.
[0003] Figure 1a It is a schematic diagram of the connection between the server motherboard CPU and the PCIE Riser in the prior art, wherein multiple card slots can be configured in the PCIE Riser. In this scenario, the server needs to obtain the mapping relationship between the PCIE Port in the CPU and the corresponding PCIE Slot, and use this mapping relationship as the PCIE resource identification result corresponding to the CPU, and then perform corresponding data processing according to the resource identification result. In the prior art, after the CPU is connected to the PCIE Riser, it is necessary to manually obtain the mapping relationship between the PCIE Port and the corresponding PCIE Slot, and then perform corresponding operations on the jump cap or the dip switch according to the mapping relationship, so that the server determines the PCIE resource identification result according to the trigger signal of the jump cap or the dip switch.
[0004] However, as the number of CPUs on the motherboard increases and the number of connection methods between the CPU and the PCIE Riser increases, the number of jumpers or DIP switches that need to be configured in the server will also increase, which makes the PCIE resource identification process more difficult, consumes more human and material resources, and the accuracy of the PCIE resource identification results is low. Summary of the invention
[0005] The present invention provides a PCIE resource identification method, device, equipment and storage medium, which can reduce the human and material resources consumed in the PCIE resource identification process and improve the accuracy of PCIE resource identification results.
[0006] According to one aspect of the present invention, a PCIE resource identification method is provided, which is applied to a server and includes:
[0007] After detecting that the target CPU in the mainboard is connected to the expansion board PCIE Riser, the target CPU selection signal is transmitted to the PCIE Riser through the target CPU;
[0008] Wherein, a plurality of CPUs are pre-deployed in the motherboard, and each of the CPUs is connected to the PCIE Riser through a corresponding PCIE signal output port;
[0009] Receive a target CPU selection signal through a signal input port in the PCIE Riser, and obtain target card slot information corresponding to the target CPU in the PCIE Riser according to the signal input port;
[0010] According to the target CPU selection signal, a mapping relationship between a PCIE signal output port in the target CPU and target card slot information is determined, and the mapping relationship is used as a PCIE resource identification result corresponding to the target CPU.
[0011] Optionally, a plurality of motherboard connectors MCIO are pre-deployed in the motherboard, and a plurality of expansion connectors MCIO are pre-deployed in the PCIE Riser; the target CPU is connected to the PCIERiser via the target motherboard MCIO and the target expansion MCIO;
[0012] The target CPU selection signal is transmitted to the PCIE Riser through the target CPU, including:
[0013] Transmitting a target CPU selection signal to a target expansion MCIO via the target mainboard MCIO;
[0014] Receiving a target CPU selection signal through a signal input port in the PCIE Riser, and acquiring target card slot information corresponding to the target CPU in the PCIE Riser according to the signal input port, including:
[0015] A target CPU selection signal is received through the target extended MCIO, and target card slot information corresponding to the target CPU in the PCIE Riser is acquired according to the target extended MCIO.
[0016] Optionally, transmitting the target CPU selection signal to the target extended MCIO through the target mainboard MCIO includes:
[0017] Transmitting a target CPU selection signal and a target address signal corresponding to the target mainboard MCIO to a target expansion MCIO via the target mainboard MCIO;
[0018] Receiving a target CPU selection signal through the target extended MCIO includes:
[0019] A target CPU selection signal and a target address signal corresponding to the target mainboard MCIO are received through the target extended MCIO.
[0020] Optionally, the PCIE signal output port includes a plurality of signal output pins;
[0021] According to the target CPU selection signal, determining a mapping relationship between a PCIE signal output port in the target CPU and target card slot information, and using the mapping relationship as a PCIE resource identification result corresponding to the target CPU, including:
[0022] Determine a target signal output pin in the target CPU according to the target CPU selection signal and a target address signal corresponding to the target mainboard MCIO;
[0023] A mapping relationship between the target signal output pin and the target card slot information is established, and the mapping relationship is used as a PCIE resource identification result corresponding to the target CPU.
[0024] Optionally, determining a target signal output pin in the target CPU according to the target CPU selection signal and a target address signal corresponding to the target mainboard MCIO includes:
[0025] In a preset resource mapping table, obtaining a target signal output pin corresponding to the target CPU selection signal and the target address signal;
[0026] The resource mapping table pre-stores mapping relationships among different CPU selection signals, different mainboard MCIO address signals, and signal output pins.
[0027] Optionally, determining a target signal output pin in the target CPU according to the target CPU selection signal and a target address signal corresponding to the target mainboard MCIO includes:
[0028] The target CPU selection signal and the target address signal are transmitted to a baseboard management controller BMC in the server through a target extended MCIO;
[0029] The target signal output pin in the target CPU is determined through the BMC according to the target CPU selection signal and the target address signal.
[0030] Optionally, the target CPU selection signal and the target address signal are transmitted to a baseboard management controller BMC in the server through a target extended MCIO, including:
[0031] The target CPU selection signal and the target address signal are transmitted to the signal converter in the PCI E Riser through the target extended MCIO;
[0032] The target CPU selection signal and the target address signal are converted into an internal integrated circuit signal by the signal converter, and the internal integrated circuit signal is transmitted to the BMC.
[0033] According to another aspect of the present invention, a PCIE resource identification device is provided, which is applied to a server, and the device includes:
[0034] A signal transmission module is used to detect that the target CPU in the mainboard is connected to the expansion board PCIE Riser, and then transmit the target CPU selection signal to the PCIE Riser through the target CPU;
[0035] Wherein, a plurality of CPUs are pre-deployed in the motherboard, and each of the CPUs is connected to the PCIE Riser through a corresponding PCIE signal output port;
[0036] A card slot information acquisition module, used to receive a target CPU selection signal through a signal input port in the PCIE Riser, and acquire target card slot information corresponding to the target CPU in the PCIE Riser according to the signal input port;
[0037] The resource identification module is used to determine the mapping relationship between the PCIE signal output port in the target CPU and the target card slot information according to the target CPU selection signal, and use the mapping relationship as the PCIE resource identification result corresponding to the target CPU.
[0038] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0039] at least one processor; and
[0040] a memory communicatively connected to the at least one processor; wherein,
[0041] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the PCIE resource identification method described in any embodiment of the present invention.
[0042] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the PCIE resource identification method described in any embodiment of the present invention when executed.
[0043] The technical solution provided by the embodiment of the present invention detects that the target CPU in the mainboard is connected to the expansion board PCI E Riser, transmits the target CPU selection signal to the PCIE Riser through the target CPU, receives the target CPU selection signal through the signal input port in the PCI E Riser, obtains the target card slot information corresponding to the target CPU in the PCI E Riser according to the signal input port, determines the mapping relationship between the PCIE signal output port in the target CPU and the target card slot information according to the target CPU selection signal, and uses the mapping relationship as a technical means for the PCIE resource identification result corresponding to the target CPU, which can reduce the human and material resources consumed in the PCIE resource identification process, improve the accuracy of the PCIE resource identification result, improve the efficiency of PCIE resource identification, and improve the precision of the PCIE resource identification result, so that the server can perform subsequent data processing according to the resource identification result, and the BMC can monitor the status of the server according to the resource identification result, improve the performance of the server, reduce the signal transmission cost, and improve the reliability of the signal transmission result.
[0044] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of 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 creative work.
[0046] Figure 1a It is a structural diagram of the connection between the server motherboard CPU and the PCIE Riser in the prior art;
[0047] Figure 1b is a flow chart of a PCIE resource identification method provided according to an embodiment of the present invention;
[0048] Figure 1c It is a structural diagram of a server motherboard CPU and a PCIE Riser connection provided by an embodiment of the present invention;
[0049] Figure 2a is a flowchart of another PCIE resource identification method provided according to an embodiment of the present invention;
[0050] Figure 2bIt is a structural schematic diagram of another server motherboard CPU and PCIE Riser connection provided by an embodiment of the present invention;
[0051] Figure 3a is a flowchart of another PCIE resource identification method provided according to an embodiment of the present invention;
[0052] Figure 3b It is a structural schematic diagram of another server motherboard CPU and PCIE Riser connection provided by an embodiment of the present invention;
[0053] Figure 4 is a structural schematic diagram of a PCIE resource identification device provided according to an embodiment of the present invention;
[0054] Figure 5 It is a structural schematic diagram of an electronic device for implementing the PCIE resource identification method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0055] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.
[0056] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0057] Figure 1b The flowchart of a PCIE resource identification method provided by an embodiment of the present invention is applicable to identifying the PCIE resources of the CPU in the server. The method can be executed by a PCIE resource identification device, which can be implemented in the form of hardware and / or software. The PCIE resource identification device can be configured in the server. Figure 1b As shown, the method includes:
[0058] Step 110: After detecting that the target CPU in the mainboard is connected to the expansion board PCIE Riser, the target CPU selection signal is transmitted to the PCIE Riser through the target CPU.
[0059] In this embodiment, the motherboard may be a mainboard in a server, and a plurality of CPUs are pre-deployed in the motherboard, and each of the CPUs may be connected to a PCIE Riser through a corresponding PCIE signal output port (ie, a PCIE Port). Optionally, after each CPU is connected to the PCIE Riser, a preset indication signal may be triggered so that the server identifies the PCIE resource of the CPU through the indication signal.
[0060] In this step, optionally, if the server detects an indication signal triggered by the target CPU, it can be determined that the target CPU is connected to the PCIE Riser, and the target CPU is controlled to transmit a target CPU selection signal to the PCIE Riser.
[0061] The target CPU selection signal may be an identification signal corresponding to the target CPU. Specifically, the target CPU selection signal may be represented by two binary digits, such as 00, 01, 10 or 11.
[0062] Step 120: Receive a target CPU selection signal through a signal input port in the PCIE Riser, and obtain target card slot information corresponding to the target CPU in the PCIE Riser according to the signal input port.
[0063] In this embodiment, optionally, after receiving the target CPU selection signal through the signal input port in the PCIE Riser, the port information (such as port identification or ID, etc.) of the signal input port can be obtained, and then the card slot information matching the signal input port is determined according to the pre-stored correspondence between different signal input ports and card slots (PCIE Slot) in the PCIE Riser, and the card slot information is used as the target card slot information corresponding to the target CPU.
[0064] Step 130: Determine a mapping relationship between a PCIE signal output port in the target CPU and target card slot information according to the target CPU selection signal, and use the mapping relationship as a PCIE resource identification result corresponding to the target CPU.
[0065] In this embodiment, optionally, each CPU in the motherboard can be pre-configured with a specific PCIE signal output port. The server can select a signal according to the target CPU, determine the PCIE signal output port information (including port identification or ID, etc.) corresponding to the target CPU, and then establish a mapping relationship between the port information and the target card slot information, and use the mapping relationship as the PCIE resource identification result corresponding to the target CPU.
[0066] In this embodiment, the target card slot information corresponding to the target CPU is determined through the signal input port in the PCIE Riser, and the PCIE signal output port corresponding to the target CPU is determined according to the target CPU selection signal. The server can automatically determine the mapping relationship between the PCIE Port in the target CPU and the PCIE Slot in the PCIE Riser, without manually performing corresponding operations on the jumper cap or the DIP switch, thereby realizing automatic identification of the PCIE resources of the CPU, reducing the human and material resources consumed in the PCIE resource identification process, and improving the accuracy of the PCIE resource identification results.
[0067] The technical solution provided by the embodiment of the present invention detects that the target CPU in the mainboard is connected to the expansion board PCI E Riser, transmits the target CPU selection signal to the PCIE Riser through the target CPU, receives the target CPU selection signal through the signal input port in the PCI E Riser, obtains the target card slot information corresponding to the target CPU in the PCI E Riser according to the signal input port, determines the mapping relationship between the PCIE signal output port in the target CPU and the target card slot information according to the target CPU selection signal, and uses the mapping relationship as a technical means for the PCIE resource identification result corresponding to the target CPU, which can reduce the human and material resources consumed in the PCIE resource identification process and improve the accuracy of the PCIE resource identification result.
[0068] Based on the above embodiment, multiple motherboard connectors (Mini CoolEdge Input / Output, MCIO) are pre-deployed in the motherboard, and multiple extended MCIOs are pre-deployed in the PCIE Riser; the target CPU is connected to the PCIE Riser through the target motherboard MCIO and the target extended MCIO.
[0069] The motherboard MCIO may be a PCIE signal connector deployed on the server motherboard, and the extended MCIO may be a PCIE signal connector deployed on the PCIE Riser. The target motherboard MCIO may be an MCIO on the mainboard connected to the target CPU, and the target extended MCIO may be an MCIO on the PCIE Riser connected to the target motherboard MCIO.
[0070] In a specific embodiment, Figure 1c It can be a schematic diagram of the connection between a server motherboard CPU and a PCI E Riser in this embodiment, such as Figure 1c As shown, the CPU can transmit the PCIE signal to the card slot on the PCIE Riser via the motherboard MCIO, the extended MCIO and the Cable bus. Optionally, the PCIE Port in the CPU can support up to 16-bit PCIE signals, and the MCIO can support 8-bit PCIE signals. When the signal bit number output by the PCIE Port exceeds 8 bits, the PCIE Port can be connected to multiple MCIOs.
[0071] In a specific embodiment, the target CPU selection signal is transmitted to the PCIERiser through the target CPU, including: transmitting the target CPU selection signal to the target extended MCIO through the target motherboard MCIO; receiving the target CPU selection signal through the signal input port in the PCIE Riser, and obtaining the target card slot information corresponding to the target CPU in the PCIERiser according to the signal input port, including: receiving the target CPU selection signal through the target extended MCIO, and obtaining the target card slot information corresponding to the target CPU in the PCIE Riser according to the target extended MCIO.
[0072] In this embodiment, optionally, each extended MCIO in the PCIE Riser can correspond one-to-one to each card slot. After receiving the target CPU selection signal through the target extended MCIO, the card slot information corresponding to the target extended MCIO can be determined according to the pre-stored correspondence between each extended MCIO and the card slot, and the card slot information is used as the target card slot information corresponding to the target CPU.
[0073] The advantage of this setting is that, since MCIO has the advantages of high signal transmission efficiency and high reliability of transmission results, transmitting the CPU's PCIE signal and CPU selection signal through MCIO can improve the transmission efficiency of PCIE signals on the one hand, and improve the PCIE resource identification efficiency and the accuracy of PCIE resource identification results on the other hand.
[0074] Figure 2aA flowchart of another PCIE resource identification method provided by an embodiment of the present invention, such as Figure 2a As shown, the method includes:
[0075] Step 210: After detecting that the target CPU in the mainboard is connected to the expansion board PCIE Riser, the target CPU selection signal and the target address signal corresponding to the target mainboard MCIO are transmitted to the target expansion MCIO through the target mainboard MCIO.
[0076] In this embodiment, optionally, each CPU in the motherboard can be pre-configured with multiple PCIE signal output ports, and each PCIE signal output port includes multiple signal output pins. After detecting that the target CPU is connected to the expansion board PCIE Riser, the target CPU selection signal can be transmitted to the target motherboard MCIO through the target CPU, and the target motherboard MCIO transmits the target CPU selection signal and the target address signal corresponding to the target motherboard MCIO to the target expansion MCIO.
[0077] The target address signal may be an identification signal corresponding to the target mainboard MCIO. Specifically, the target address signal may be represented by a three-bit binary number, such as 000, 001, 010, 011 or 100.
[0078] Step 220: Receive a target CPU selection signal and a target address signal corresponding to the target mainboard MCIO through the target extended MCIO, and obtain target card slot information corresponding to the target CPU in the PCIE Riser according to the target extended MCIO.
[0079] In this embodiment, each motherboard MCIO can correspond to multiple specific signal output pins in the CPU. The CPU selection signal and the target address signal are transmitted to the target extension MCIO through the target motherboard MCIO, so that the server can accurately obtain the pin information of the target CPU output PCIE signal, thereby improving the accuracy of the PCIE resource identification results.
[0080] Step 230: Determine a target signal output pin in the target CPU according to the target CPU selection signal and the target address signal corresponding to the target mainboard MCIO.
[0081] In this embodiment, optionally, the target CPU connected to the PCIE Riser can be located according to the target CPU selection signal, and then the pin for outputting the PCIE signal in the target CPU (that is, the target signal output pin) can be determined according to the target address signal and the correspondence between different motherboard MCIO and signal output pins.
[0082] In a specific embodiment, Figure 2b It can be a structural diagram of a server motherboard CPU and a PCI E Riser connection in this embodiment, such as Figure 2b As shown, multiple CPUs (such as CPU0, CPU1, CPU2, etc.) can be deployed on the motherboard, and multiple PCIE Ports can be configured on each CPU. Each PCIE Port can include 16 signal output pins ( Figure 2b (not shown in the figure), these 16 signal output pins can be Lane0, Lane1, Lane2, Lane3...Lane15.
[0083] In one implementation of the present embodiment, determining the target signal output pin in the target CPU according to the target CPU selection signal and the target address signal corresponding to the target motherboard MCIO includes: obtaining the target signal output pin corresponding to the target CPU selection signal and the target address signal in a preset resource mapping table; wherein the resource mapping table pre-stores the mapping relationship between different CPU selection signals, different motherboard MCIO address signals and signal output pins.
[0084] In a specific embodiment, the resource mapping table may be as shown in Table 1, where CPU_SEL represents a CPU selection signal, MCIO_ADD represents an MCIO address signal, and PCIe Port represents a signal output pin. Figure 2b As an example, assuming that the target CPU selection signal is 01 and the target address signal corresponding to the target motherboard MCIO is 000, the target signal output pin can be determined to be Lane0-7 in the first PCIE Port of CPU1. Assuming that the target CPU selection signal is 01 and the target address signal corresponding to the target motherboard MCIO is 001, the target signal output pin can be determined to be Lane8-15 in the first PCIE Port of CPU1. Assuming that the target CPU selection signal is 01 and the target address signal corresponding to the target motherboard MCIO is 011, the target signal output pin can be determined to be Lane8-15 in the second PCIE Port of CPU1.
[0085] The advantage of this setting is that by pre-building a resource mapping table, the target signal output pin can be quickly determined according to the target CPU selection signal and the target address signal, thereby improving the efficiency of PCIE resource identification.
[0086] Step 240: Establish a mapping relationship between the target signal output pin and the target card slot information, and use the mapping relationship as a PCIE resource identification result corresponding to the target CPU.
[0087] The advantage of this setting is that by using the mapping relationship between the target signal output pin and the target card slot information as the PCIE resource identification result of the target CPU, the accuracy of the PCIE resource identification result can be improved, making it easier for the server to perform subsequent data processing based on the resource identification result.
[0088] The technical solution provided by the embodiment of the present invention detects that a target CPU in a mainboard is connected to a PCIE riser, transmits a target CPU selection signal and a target address signal corresponding to the target mainboard MCIO to a target extended MCIO through a target mainboard MCIO, receives the target CPU selection signal and the target address signal through the target extended MCIO, obtains target card slot information corresponding to the target CPU in the PCIE riser according to the target extended MCIO, determines a target signal output pin in the target CPU according to the target CPU selection signal and the target address signal, establishes a mapping relationship between the target signal output pin and the target card slot information, and uses the mapping relationship as a technical means for a PCIE resource identification result corresponding to the target CPU, thereby reducing the human and material resources consumed in the PCIE resource identification process and improving the accuracy of the PCIE resource identification result.
[0089] Table 1
[0090]
[0091]
[0092] Figure 3a A flowchart of another PCIE resource identification method provided by an embodiment of the present invention, such as Figure 3a As shown, the method includes:
[0093] Step 310: After detecting that the target CPU in the mainboard is connected to the expansion board PCIE Riser, the target CPU selection signal and the target address signal corresponding to the target mainboard MCIO are transmitted to the target expansion MCIO through the target mainboard MCIO.
[0094] Step 320: Receive a target CPU selection signal and a target address signal corresponding to the target mainboard MCIO through the target extended MCIO, and obtain target card slot information corresponding to the target CPU in the PCIE Riser according to the target extended MCIO.
[0095] Step 330: Transmit the target CPU selection signal and the target address signal to a baseboard management controller (BMC) in the server through the target extended MCIO.
[0096] In this embodiment, the BMC may be a basic core functional subsystem of the server, responsible for core functions such as hardware status management, operating system management, health status management, and power consumption management of the server.
[0097] In one implementation of this embodiment, the target CPU selection signal and the target address signal are transmitted to the baseboard management controller BMC in the server through the target extended MCIO, including: transmitting the target CPU selection signal and the target address signal to the signal converter in the PCIE Riser through the target extended MCIO; converting the target CPU selection signal and the target address signal into internal integrated circuit signals through the signal converter, and transmitting the internal integrated circuit signals to the BMC.
[0098] In a specific embodiment, Figure 3b This is a schematic diagram of the structure of the connection between the server motherboard CPU and the PCI E Riser in this embodiment. Figure 3b As shown, after the extended MCIO receives the CPU selection signal and the address signal, it can transmit the CPU selection signal and the address signal to the signal converter PCA9555, and convert the CPU selection signal and the address signal into an Inter-Integrated Circuit (I2C) signal through PCA9555, and transmit the I2C signal to the BMC on the motherboard.
[0099] The advantage of such a setting is that by converting the target CPU selection signal and the target address signal into an I2C signal, the signal transmission cost can be reduced and the reliability of the signal transmission result can be improved.
[0100] Step 340: Determine the target signal output pin in the target CPU through the BMC according to the target CPU selection signal and the target address signal.
[0101] In this step, optionally, the BMC may determine a target signal output pin in the target CPU according to the I2C signal transmitted by the PCA9555.
[0102] The advantage of this setting is that by determining the target signal output pin in the target CPU through the BMC, on the one hand, the efficiency of PCIE resource identification can be improved, and on the other hand, it can facilitate the BMC to monitor the status of the server according to the resource identification result, thereby improving the performance of the server.
[0103] Step 350: Establish a mapping relationship between the target signal output pin and the target card slot information, and use the mapping relationship as a PCIE resource identification result corresponding to the target CPU.
[0104] In this embodiment, optionally, the target card slot information can be sent to the BMC through the target extended MCIO, a mapping relationship between the target signal output pin and the target card slot information can be established through the BMC, and the mapping relationship can be used as the PCIE resource identification result corresponding to the target CPU.
[0105] The technical solution provided by the embodiment of the present invention detects that the target CPU in the mainboard is connected to the expansion board PCIERiser, and then transmits the target CPU selection signal and the target address signal corresponding to the target mainboard MCIO to the target expansion MCIO through the target mainboard MCIO, receives the target CPU selection signal and the target address signal corresponding to the target mainboard MCIO through the target expansion MCIO, obtains the target card slot information corresponding to the target CPU in the PCIE Riser according to the target expansion MCIO, transmits the target CPU selection signal and the target address signal to the BMC in the server through the target expansion MCIO, determines the target signal output pin in the target CPU according to the target CPU selection signal and the target address signal through the BMC, establishes a mapping relationship between the target signal output pin and the target card slot information, and uses the mapping relationship as a technical means for the PCIE resource identification result corresponding to the target CPU, which can reduce the human and material resources consumed in the PCIE resource identification process and improve the accuracy of the PCIE resource identification result.
[0106] Figure 4 A schematic diagram of the structure of a PCIE resource identification device provided in an embodiment of the present invention, wherein the device is applied in a server, such as Figure 4 As shown, the device includes: a signal transmission module 410 , a card slot information acquisition module 420 and a resource identification module 430 .
[0107] The signal transmission module 410 is used to transmit a target CPU selection signal to the PCIE Riser through the target CPU after detecting that the target CPU in the mainboard is connected to the PCIE Riser of the expansion board;
[0108] Wherein, a plurality of CPUs are pre-deployed in the motherboard, and each of the CPUs is connected to the PCIE Riser through a corresponding PCIE signal output port;
[0109] The card slot information acquisition module 420 is used to receive a target CPU selection signal through a signal input port in the PCIE Riser, and acquire target card slot information corresponding to the target CPU in the PCIE Riser according to the signal input port;
[0110] The resource identification module 430 is used to determine the mapping relationship between the PCIE signal output port in the target CPU and the target card slot information according to the target CPU selection signal, and use the mapping relationship as the PCIE resource identification result corresponding to the target CPU.
[0111] The technical solution provided by the embodiment of the present invention detects that the target CPU in the mainboard is connected to the expansion board PCI E Riser, transmits the target CPU selection signal to the PCIE Riser through the target CPU, receives the target CPU selection signal through the signal input port in the PCI E Riser, obtains the target card slot information corresponding to the target CPU in the PCI E Riser according to the signal input port, determines the mapping relationship between the PCIE signal output port in the target CPU and the target card slot information according to the target CPU selection signal, and uses the mapping relationship as a technical means for the PCIE resource identification result corresponding to the target CPU, which can reduce the human and material resources consumed in the PCIE resource identification process and improve the accuracy of the PCIE resource identification result.
[0112] Based on the above embodiment, a plurality of motherboard connectors MCIO are pre-deployed in the motherboard, and a plurality of expansion connectors MCIO are pre-deployed in the PCIE Riser; the target CPU is connected to the PCIE Riser through the target motherboard MCIO and the target expansion MCIO; and the PCIE signal output port includes a plurality of signal output pins.
[0113] The signal transmission module 410 includes:
[0114] A selection signal transmission unit, used for transmitting a target CPU selection signal to a target expansion MCIO via the target mainboard MCIO;
[0115] The address signal transmission unit is used to transmit the target CPU selection signal and the target address signal corresponding to the target mainboard MCIO to the target extended MCIO through the target mainboard MCIO.
[0116] The card slot information acquisition module 420 includes:
[0117] A selection signal receiving unit is used to receive a target CPU selection signal through the target extended MCIO, and obtain target card slot information corresponding to the target CPU in the PCIE Riser according to the target extended MCIO;
[0118] The address signal receiving unit is used to receive a target CPU selection signal and a target address signal corresponding to the target mainboard MCIO through the target expansion MCIO.
[0119] The resource identification module 430 includes:
[0120] A target pin determination unit, used to determine a target signal output pin in a target CPU according to the target CPU selection signal and a target address signal corresponding to the target mainboard MCIO;
[0121] A relationship establishing unit, used to establish a mapping relationship between the target signal output pin and the target card slot information, and use the mapping relationship as a PCIE resource identification result corresponding to the target CPU;
[0122] A table lookup unit, used to obtain a target signal output pin corresponding to the target CPU selection signal and the target address signal in a preset resource mapping table;
[0123] The resource mapping table pre-stores mapping relationships between different CPU selection signals, different mainboard MCIO address signals and signal output pins;
[0124] An extended MCIO processing unit, used for transmitting the target CPU selection signal and the target address signal to a baseboard management controller BMC in the server through a target extended MCIO;
[0125] A BMC processing unit, configured to determine a target signal output pin in a target CPU according to the target CPU selection signal and a target address signal through the BMC;
[0126] The signal conversion unit is used to transmit the target CPU selection signal and the target address signal to the signal converter in the PCIE Riser through the target extended MCIO; convert the target CPU selection signal and the target address signal into an internal integrated circuit signal through the signal converter, and transmit the internal integrated circuit signal to the BMC.
[0127] The above device can execute the methods provided by all the above embodiments of the present invention, and has the corresponding functional modules and beneficial effects of executing the above methods. For technical details not fully described in the embodiments of the present invention, please refer to the methods provided by all the above embodiments of the present invention.
[0128] Figure 5A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0129] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0130] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0131] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as the PCIE resource identification method.
[0132] In some embodiments, the PCIE resource identification method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the PCIE resource identification method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the PCIE resource identification method in any other appropriate manner (e.g., by means of firmware).
[0133] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0134] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0135] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0136] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0137] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0138] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0139] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0140] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A PCIE resource identification method, characterized in that: Applied to a server, the method comprises: After detecting that the target CPU in the mainboard is connected to the expansion board PCIE Riser, the target CPU selection signal is transmitted to the target expansion MCIO through the target mainboard MCIO; Wherein, a plurality of CPUs are pre-deployed in the motherboard, each of the CPUs is connected to a PCIE Riser via a corresponding PCIE signal output port, a plurality of motherboard connectors MCIO are pre-deployed in the motherboard, and a plurality of expansion connectors MCIO are pre-deployed in the PCIE Riser; The target CPU is connected to the PCIE Riser via the target mainboard MCIO and the target extended MCIO; Receiving a target CPU selection signal through the target extended MCIO, and acquiring target card slot information corresponding to the target CPU in the PCI E Riser according to the target extended MCIO; According to the target CPU selection signal, a mapping relationship between a PCIE signal output port in the target CPU and target card slot information is determined, and the mapping relationship is used as a PCIE resource identification result corresponding to the target CPU.
2. The method according to claim 1, characterized in that The target CPU selection signal is transmitted to the target expansion MCIO through the target mainboard MCIO, including: Transmitting a target CPU selection signal and a target address signal corresponding to the target mainboard MCIO to a target expansion MCIO via the target mainboard MCIO; Receiving a target CPU selection signal through the target extended MCIO includes: A target CPU selection signal and a target address signal corresponding to the target mainboard MCIO are received through the target extended MCIO.
3. The method according to claim 2, characterized in that The PCIE signal output port includes a plurality of signal output pins; According to the target CPU selection signal, determining a mapping relationship between a PCIE signal output port in the target CPU and target card slot information, and using the mapping relationship as a PCIE resource identification result corresponding to the target CPU, including: Determine a target signal output pin in the target CPU according to the target CPU selection signal and a target address signal corresponding to the target mainboard MCIO; A mapping relationship between the target signal output pin and the target card slot information is established, and the mapping relationship is used as a PCIE resource identification result corresponding to the target CPU.
4. The method according to claim 3, characterized in that Determining a target signal output pin in the target CPU according to the target CPU selection signal and a target address signal corresponding to the target mainboard MCIO includes: In a preset resource mapping table, obtaining a target signal output pin corresponding to the target CPU selection signal and the target address signal; The resource mapping table pre-stores mapping relationships among different CPU selection signals, different mainboard MCIO address signals, and signal output pins.
5. The method according to claim 3, characterized in that: Determining a target signal output pin in the target CPU according to the target CPU selection signal and a target address signal corresponding to the target mainboard MCIO includes: The target CPU selection signal and the target address signal are transmitted to a baseboard management controller BMC in the server through a target extended MCIO; The target signal output pin in the target CPU is determined through the BMC according to the target CPU selection signal and the target address signal.
6. The method according to claim 5, characterized in that The target CPU selection signal and the target address signal are transmitted to a baseboard management controller BMC in the server through a target extended MCIO, including: The target CPU selection signal and the target address signal are transmitted to the signal converter in the PCIE Riser through the target extended MCIO; The target CPU selection signal and the target address signal are converted into an internal integrated circuit signal by the signal converter, and the internal integrated circuit signal is transmitted to the BMC.
7. A PCIE resource identification device, characterized in that: Applied to a server, the device comprises: A signal transmission module is used to detect that the target CPU in the mainboard is connected to the expansion board PCIE Riser, and then transmit the target CPU selection signal to the PCIE Riser through the target CPU; Wherein, a plurality of CPUs are pre-deployed in the motherboard, each of the CPUs is connected to a PCIE Riser via a corresponding PCIE signal output port, a plurality of motherboard connectors MCIO are pre-deployed in the motherboard, and a plurality of expansion connectors MCIO are pre-deployed in the PCIE Riser; The target CPU is connected to the PCIE Riser via the target mainboard MCIO and the target extended MCIO; A card slot information acquisition module, used to receive a target CPU selection signal through a signal input port in the PCIE Riser, and acquire target card slot information corresponding to the target CPU in the PCIE Riser according to the signal input port; A resource identification module, used to determine the mapping relationship between the PCIE signal output port in the target CPU and the target card slot information according to the target CPU selection signal, and use the mapping relationship as the PCIE resource identification result corresponding to the target CPU; The signal transmission module comprises: A selection signal transmission unit, used for transmitting a target CPU selection signal to a target expansion MCIO via the target mainboard MCIO; The card slot information acquisition module includes: The selection signal receiving unit is used to receive the target CPU selection signal through the target extended MCIO, and obtain the target card slot information corresponding to the target CPU in the PCIE Riser according to the target extended MCIO.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the PCIE resource identification method described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the PCIE resource identification method according to any one of claims 1 to 6 when executed.
