PCIE (Peripheral Component Interface Express) port resource allocation method and device, main backboard system and server

By introducing a substrate management controller and IO extender into the server, and using the switching module to flexibly allocate PCIE port resources, the problem of solidification of traditional backplane design functions and low resource utilization is solved, and higher scalability and compatibility is achieved. Ensures the stability and reliability of the server.

CN118916319APending Publication Date: 2024-11-08GUANGDONG HONGJUN MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410962456.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The backplane design function of traditional servers is solidified and cannot adapt to changing application scenarios and user needs, resulting in limited resources, low utilization, complex upgrade and maintenance, poor compatibility, and limited scalability of PCIE ports.

Method used

By introducing the substrate management controller into the motherboard to communicate with the IO expander and interface module of the backboard, the switching module flexibly allocates PCIE port resources, generates control signals based on the on-site signal of the interface, and the control switching module is connected to the PCIE port of the processor , realize flexible allocation and protection of resources.

Benefits of technology

It improves the utilization rate of PCIE port resources, improves the scalability and compatibility of the backplane, ensures the stable operation and reliability of the server, and simplifies configuration and management operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118916319A_ABST
    Figure CN118916319A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of servers, and provides a PCIE (Peripheral Component Interface Express) port resource allocation method and device, a main backboard system and a server. The baseboard management controller is in communication connection with the IO expander and the plurality of interface modules, each PCIE port of the processor is in communication connection with the corresponding switching module, and two PCIE ports of the switching module are in communication connection with a first type of interface and a second type of interface in the interface modules respectively; the substrate management controller obtains an in-place signal of a first type of interface in the target interface module through the IO expander, judges whether the first type of interface in the target interface module is connected with equipment or not and generates a corresponding control signal according to the in-place signal; and controlling one PCIE port in the target switching module connected with the target interface module to be communicated with the corresponding PCIE port of the processor through the IO expander according to the control signal. The PCIE port resources are flexibly allocated, and the expansibility of the backboard is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and in particular to a PCIE port resource allocation method, device, main backplane system and server. Background Art

[0002] With the continuous development of server technology, the requirements for the flexibility and scalability of hardware resources are getting higher and higher. In particular, the PCIE (Peripheral Component Interconnect Express) port has become an indispensable part of server hardware connection due to its advantage in data transmission speed.

[0003] Currently, the PCIE ports of the processors in servers need to connect to various types of devices to achieve different functions such as computing, storage, network communication, etc. However, the backplane interface in traditional servers is single and can usually only be connected to fixed types of devices, which cannot adapt to changing application scenarios and user needs. In addition, PCIE port resources are limited, so how to allocate PCIE port resources has become a crucial issue. Summary of the invention

[0004] In view of this, an object of the present invention is to provide a PCIE port resource allocation method, device, main backplane system and server.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0006] In a first aspect, the present invention provides a PCIE port resource allocation method, which is applied to a baseboard management controller in a mainboard, wherein the baseboard management controller is communicatively connected to an IO expander and a plurality of interface modules in a backplane, each PCIE port of a processor in the mainboard is communicatively connected to a corresponding switching module in the backplane, two PCIE ports of a switching module are communicatively connected to a first type interface and a second type interface in an interface module, respectively, the IO expander is communicatively connected to each of the switching modules and each of the first type interfaces, and the PCIE port resource allocation method comprises:

[0007] Obtaining, through the IO expander, a presence signal of a first type of interface in a target interface module; the target interface module is any one of the interface modules;

[0008] According to the presence signal, determining whether the first type interface in the target interface module is connected to a device, and generating a corresponding control signal;

[0009] According to the control signal, the IO expander controls a PCIE port in the target switching module connected to the target interface module to be connected to a corresponding PCIE port of the processor, so as to allocate PCIE port resources.

[0010] In an optional implementation, the step of determining whether a device is connected to the first type interface in the target interface module according to the presence signal and generating a corresponding control signal includes:

[0011] When the in-place signal is at a low level, determining that a device is connected to the first type interface in the target interface module, and generating a first control signal;

[0012] When the in-place signal is at a high level, it is determined that the first type interface in the target interface module is not connected to a device, and a second control signal is generated.

[0013] In an optional implementation, the step of controlling, according to the control signal, through the IO expander, a PCIE port in the target switching module connected to the target interface module to be connected to a corresponding PCIE port of the processor comprises:

[0014] When the control signal is a first control signal, according to the first control signal, the first PCIE port is controlled to be connected to the corresponding PCIE port of the processor through the IO expander, and the first PCIE port is a PCIE port in the target switching module that is connected to the first type interface communication of the target interface module.

[0015] In an optional implementation, the step of controlling, according to the control signal, through the IO expander, a PCIE port in the target switching module connected to the target interface module to be connected to a corresponding PCIE port of the processor comprises:

[0016] When the control signal is a second control signal, according to the second control signal, the second PCIE port is controlled to be connected to the corresponding PCIE port of the processor through the IO expander, and the second PCIE port is a PCIE port in the target switching module that is connected to the second type interface communication of the target interface module.

[0017] In an optional embodiment, the backplane further includes a plurality of power controllers, one of the power controllers is electrically connected to one of the first type interfaces and supplies power to it, each of the power controllers is communicatively connected to the IO expander, and the PCIE port resource allocation method further includes:

[0018] When an abnormality is detected in the first type interface of the target interface module, a power-off signal is generated, and the power-off signal is transmitted to the target power controller connected to the first type interface of the target interface module through the IO expander, so that the target power controller stops supplying power.

[0019] In a second aspect, the present invention provides a PCIE port resource allocation device, which is applied to a baseboard management controller in a mainboard, wherein the baseboard management controller is communicatively connected to an IO expander and a plurality of interface modules in a backplane, each PCIE port of a processor in the mainboard is communicatively connected to a corresponding switching module in the backplane, two PCIE ports of a switching module are communicatively connected to a first type interface and a second type interface in an interface module, respectively, the IO expander is communicatively connected to each of the switching modules and each of the first type interfaces, and the PCIE port resource allocation device comprises:

[0020] An acquisition module, used for acquiring a presence signal of a first type of interface in a target interface module through the IO expander; the target interface module is any one of the interface modules;

[0021] A generating module, configured to determine whether a device is connected to the first type interface in the target interface module according to the presence signal, and to generate a corresponding control signal;

[0022] The allocation module is used to control a PCIE port in the target switching module connected to the target interface module to be connected to the corresponding PCIE port of the processor through the IO expander according to the control signal, so as to allocate PCIE port resources.

[0023] In an optional implementation manner, the generating module is further used for:

[0024] When the in-place signal is at a low level, determining that a device is connected to the first type interface in the target interface module, and generating a first control signal;

[0025] When the in-place signal is at a high level, it is determined that the first type interface in the target interface module is not connected to a device, and a second control signal is generated.

[0026] In an optional implementation manner, the PCIE port resource allocation device further includes a protection module, which is used to:

[0027] When an abnormality is detected in the first type interface of the target interface module, a power-off signal is generated, and the power-off signal is transmitted to the target power controller connected to the first type interface of the target interface module through the IO expander, so that the target power controller stops supplying power.

[0028] In a third aspect, the present invention provides a main backplane system, comprising a main board and a backplane, the main board comprising a baseboard management controller and a processor, the backplane comprising an IO expander, multiple interface modules and multiple switching modules, the baseboard management controller is communicatively connected to the IO expander and the multiple interface modules, each PCIE port of the processor is communicatively connected to the corresponding switching module, the two PCIE ports of one of the switching modules are respectively communicatively connected to a first type interface and a second type interface in one of the interface modules, the IO expander is communicatively connected to each of the switching modules and each of the first type interfaces; wherein the baseboard management controller is used to implement the PCIE port resource allocation method described in any one of the aforementioned embodiments.

[0029] In a fourth aspect, the present invention provides a server, wherein the server comprises the main backplane system described in the aforementioned embodiment.

[0030] The PCIE port resource allocation method, device, main backplane system and server provided by the present invention, the baseboard management controller in the mainboard is connected to the IO expander and multiple interface modules in the backplane, each PCIE port of the processor in the mainboard is connected to the corresponding switching module in the backplane, the two PCIE ports of a switching module are connected to the first type interface and the second type interface in an interface module, and the IO expander is connected to each switching module and each first type interface; the baseboard management controller obtains the in-position signal of the first type interface in the target interface module through the IO expander; and according to the in-position signal, it is determined whether the first type interface in the target interface module is connected to a device and generates a corresponding control signal; then, according to the control signal, through the IO expander, a PCIE port in the target switching module connected to the target interface module is controlled to be connected to the corresponding PCIE port of the processor to allocate PCIE port resources. Thus, flexible allocation of PCIE port resources is achieved, the utilization rate of PCIE port resources is improved, the expansibility and compatibility of the backplane are improved, and the stable operation and reliability of the server are guaranteed.

[0031] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0033] Figure 1 One of the exemplary diagrams of the main backplane system provided by the embodiment of the present invention is shown;

[0034] Figure 2 One of the flow diagrams of the PCIE port resource allocation method provided in an embodiment of the present invention is shown;

[0035] Figure 3 A second exemplary diagram of a main backplane system provided by an embodiment of the present invention is shown;

[0036] Figure 4 The second flowchart of the PCIE port resource allocation method provided by the embodiment of the present invention is shown;

[0037] Figure 5 A functional module diagram of a PCIE port resource allocation device provided by an embodiment of the present invention is shown.

[0038] Icons: 300 - PCIE port resource allocation device; 310 - acquisition module; 330 - generation module; 350 - allocation module, 370 - protection module. DETAILED DESCRIPTION

[0039] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0040] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present invention.

[0041] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0042] Currently, the PCIE ports of the processors in servers need to connect to various types of devices to achieve different functions such as computing, storage, network communication, etc. However, they often have the following problems: (1) Functional fixation: The backplane design of traditional servers usually has fixed functions and interface configurations, which cannot adapt to changing application scenarios and user needs. Once the design is completed, the functions of the backplane cannot be changed, which limits the flexibility and scalability of the server. (2) Resource waste: Due to functional fixation, when certain interfaces or functions are not used in a specific scenario, the PCIE resources and other hardware resources they occupy will be wasted. This not only increases hardware costs, but may also lead to performance bottlenecks. (3) Difficulty in upgrading and maintenance: Due to the complex design and manufacturing process of traditional backplanes and the tight coupling between hardware components, when upgrading or maintenance is required, the entire backplane or related components often need to be replaced. This not only increases costs, but may also affect the stability and reliability of the server. (4) Complex configuration and management: Users are required to manually perform configuration and management operations, which makes the operation cumbersome and complicated, which not only increases the burden on users, but also may lead to configuration errors. (5) Limited scalability: Traditional backplane designs often only support a limited number of interfaces and functions. When a new interface or function needs to be added, it may be necessary to redesign the entire backplane or add additional hardware components. This not only increases the complexity of design and manufacturing, but may also affect the overall performance and reliability of the server. (6) Lack of standardization: Server backplanes of different brands and models often have different designs and interface standards, which leads to poor compatibility and integration. Users may need to purchase hardware components of specific brands and models to use with the backplane, which increases the complexity of hardware selection and procurement. Therefore, an embodiment of the present invention provides a main backplane system and a corresponding PCIE port resource allocation method to improve the above problems.

[0043] See also Figure 1 , is an example diagram of a main backplane system provided by an embodiment of the present invention. The main backplane system includes a mainboard and a backplane. The mainboard includes a processor and a baseboard management controller, and the processor has two PCIE ports, namely S1 and S2. The backplane includes an IO expander, two switching modules, namely switching module 1 and switching module 2, and two interface modules, namely interface module 1 and interface module 2; switching module 1 has two PCIE ports, namely A1 and B1, and switching module 2 has two PCIE ports, namely A2 and B2; interface module 1 includes a first type interface 1 and a second type interface 1, and interface module 2 includes a first type interface 2 and a second type interface 2.

[0044] Among them, one PCIE port of the processor, namely S1, is connected to the switching module 1 through a high-speed connector, and another PCIE port of the processor, namely S2, is connected to the switching module 2 through a high-speed connector. The baseboard management controller is connected to the IO expander, the first type interface 1 and the first type interface 2 through an I2C (Inter-Integrated Circuit) bus, and is connected to the second type interface 1 and the second type interface 2 through a network bus such as an NC-SI (Network Controller Sideband Interface) bus.

[0045] A1, a PCIE port of the switch module 1, is connected to the first type interface 1 in the interface module 1; another PCIE port of the switch module 1, B1, is connected to the second type interface 1 in the interface module 2. A2, a PCIE port of the switch module 2, is connected to the first type interface 2 in the interface module 2; another PCIE port of the switch module 2, B2, is connected to the second type interface 2 in the interface module 2. The IO expander is connected to the switch module 1, the switch module 2, the first type interface 1, and the first type interface 2 via I2C.

[0046] Optionally, the mainboard further includes a power supply for supplying power thereto, the backplane further includes a power supply for supplying power thereto, and the power supply on the mainboard is electrically connected to the power supply on the backplane via a power cable. It should be understood that Figure 1 The main backplane system shown is only an example. The number of PCIE ports of the processor, the number of switching modules and the number of interface modules can be set according to actual conditions, and the embodiment of the present invention is not limited.

[0047] In the motherboard, the processor can be a CPU (Central Processing Unit), a NP (Network Processor), a DSP digital signal processor, an ASIC special integrated circuit, an FPGA off-the-shelf programmable gate array or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The baseboard management controller is a BMC (Baseboard Management Controller), which is used to implement the PCIE port resource allocation method provided in the embodiment of the present invention, and it can also realize the sending and receiving of network data through the NC-SI bus.

[0048] In the backplane, the switching module can be a Mux (Multiplexer) or a Switch, which is an important component in the backplane for controlling the flow of data. It can switch the PCIE link by switching the PCIE port. The IO expander is an input / output expander, which is used to increase the number of input / output pins of the baseboard management controller so that the baseboard management controller can obtain information through the IO expander and control the corresponding devices. The first type of interface is an interface that uses interface protocols such as M.2, U.2, E1.S or E1.L, and is used to connect a storage device, which can be a solid-state drive. The second type of interface is an interface that uses a network NIC interface protocol, which is used to connect a network device, which can be a network controller.

[0049] High-speed connectors are used to connect the motherboard and backplane through signal cables, and they support various high-speed data transmission protocols, such as PCI Express, SAS (Serial Attached SCSI) and SATA (Serial ATA) standards to meet the needs of various high-speed interfaces.

[0050] The following will use the above-mentioned baseboard management controller as the execution body and combine Figure 1 , introduces each step in each method provided in an embodiment of the present invention and the corresponding technical effects.

[0051] See also Figure 2 , is a flow chart of a PCIE port resource allocation method provided in an embodiment of the present invention.

[0052] Step S202, obtaining a presence signal of a first type of interface in a target interface module through an IO expander; the target interface module is any interface module;

[0053] Step S204, judging whether a device is connected to the first type interface in the target interface module according to the presence signal, and generating a corresponding control signal;

[0054] Step S206, according to the control signal, through the IO expander, controlling a PCIE port in the target switching module connected to the target interface module to communicate with the corresponding PCIE port of the processor, so as to allocate PCIE port resources.

[0055] It is understandable that the baseboard management controller processes each interface module in a similar manner. For simplicity, the target interface module is Figure 1 The interface module 1 in FIG. 1 is used as an example for description.

[0056] In this embodiment, the baseboard management controller obtains the presence signal of the first type interface 1 in the interface module 1 through the IO expander. Then, according to the presence signal, it is determined whether the first type interface 1 is connected to a device, and a corresponding control signal is generated according to the determination result.

[0057] Then, the PCIE port A1 of the control switching module 1 is connected to the corresponding PCIE port S1 of the processor, that is, the PCIE port S1 of the processor is assigned to the first type interface 1, so that the processor communicates with the storage device connected to the first type interface 1, that is, a PCIE link between the processor and the storage device is formed. Alternatively, the PCIE port B1 of the control switching module 1 is connected to the corresponding PCIE port S1 of the processor, that is, the PCIE port S1 of the processor is assigned to the second type interface 1, so that the processor communicates with the network device connected to the second type interface 1, that is, a PCIE link between the processor and the network device is formed.

[0058] It can be understood that the embodiment of the present invention realizes flexible allocation of PCIE port resources by setting various types of interfaces in the backplane and controlling the switching module to switch the PCIE port connected to the PCIE port of the processor according to the in-place signal of the interface, thereby improving the utilization rate of PCIE port resources and the scalability and compatibility of the backplane, and at the same time providing guarantee for the stable operation and reliability of the server.

[0059] It can be seen that based on the above steps, the baseboard management controller in the mainboard is connected to the IO expander and multiple interface modules in the backplane, each PCIE port of the processor in the mainboard is connected to the corresponding switching module in the backplane, the two PCIE ports of a switching module are connected to the first type interface and the second type interface in an interface module respectively, and the IO expander is connected to each switching module and each first type interface; the baseboard management controller obtains the in-position signal of the first type interface in the target interface module through the IO expander; and according to the in-position signal, it determines whether the first type interface in the target interface module is connected to a device and generates a corresponding control signal; then, according to the control signal, through the IO expander, control a PCIE port in the target switching module connected to the target interface module to be connected to the corresponding PCIE port of the processor to allocate PCIE port resources. Thereby, flexible allocation of PCIE port resources is achieved, the utilization rate of PCIE port resources is improved, and the scalability and compatibility of the backplane are improved, while providing a guarantee for the stable operation and reliability of the server.

[0060] Optionally, for step S204, an embodiment of the present invention provides a possible implementation method.

[0061] Step S204a, when the in-place signal is at a low level, determining that a device is connected to the first type interface in the target interface module, and generating a first control signal;

[0062] Step S204b: when the in-place signal is at a high level, it is determined that the first type interface in the target interface module is not connected to a device, and a second control signal is generated.

[0063] In this embodiment, a presence detection circuit is provided for the first type interface in each interface module, and the presence detection circuit is used to output a presence signal according to whether there is a device connected to the first type interface. When the first type interface is connected to a device, i.e., a storage device, the presence signal output by the presence detection circuit is a low level; when the first type interface is not connected to a device, i.e., a storage device, the presence detection circuit outputs a high level presence signal.

[0064] The baseboard management controller can then obtain the in-place signal through the IO expander, and use it to determine whether a device is connected to the first type interface, to control which PCIE port in the corresponding switching module is connected to the PCIE port corresponding to the processor, so as to realize flexible allocation of PCIE port resources.

[0065] For ease of understanding, the target interface module is interface module 1. If the baseboard management controller obtains the presence signal of the first type interface 1 through the IO expander at a low level, it means that the first type interface 1 is connected to a storage device, and a first control signal is generated. If the baseboard management controller obtains the presence signal of the first type interface 1 through the IO expander at a high level, it means that the first type interface 1 is connected to a storage device, and a second control signal is generated.

[0066] Optionally, for step S206, the present invention provides a possible implementation method.

[0067] Step S206a, when the control signal is the first control signal, according to the first control signal, through the IO expander, control the first PCIE port to be connected to the corresponding PCIE port of the processor, and the first PCIE port is a PCIE port in the target switching module that is connected to the first type interface communication of the target interface module.

[0068] For ease of understanding, the target interface module is interface module 1. If the first type interface 1 is connected to a storage device, the baseboard management controller generates a first control signal, and controls the first PCIE port, i.e., the PCIE port A1 of the switching module 1, through the IO expander according to the first control signal, to communicate with the corresponding PCIE port S1 of the processor, i.e., assigning the PCIE port S1 of the processor to the first type interface 1, so that the processor communicates with the storage device connected to the first type interface 1, i.e., forming a PCIE link between the processor and the storage device.

[0069] Optionally, for step S206, the present invention provides another possible implementation manner.

[0070] Step S206b, when the control signal is the second control signal, according to the second control signal, through the IO expander, control the second PCIE port to be connected to the corresponding PCIE port of the processor, and the second PCIE port is a PCIE port in the target switching module that is connected to the second type interface communication of the target interface module.

[0071] For ease of understanding, the target interface module is interface module 1. If the first type interface 1 is not connected to a storage device, the baseboard management controller generates a second control signal, and controls the second PCIE port, i.e., the PCIE port B1 of the switching module 1, through the IO expander according to the second control signal, to communicate with the corresponding PCIE port S1 of the processor, i.e., to assign the PCIE port S1 of the processor to the second type interface 1, so that the processor communicates with the network device connected to the second type interface 1, i.e., to form a PCIE link between the processor and the network device.

[0072] Optionally, based on Figure 1 The main backplane system shown in FIG. 1 is another example of a main backplane system provided in the embodiment of the present invention. Figure 3 The backplane of the main backplane system also includes four power controllers, namely power controller 1, power controller 2, power controller 3 and power controller 4, and power controller 1 is electrically connected to the first type interface 1 and supplies power to it, power controller 2 is electrically connected to the second type interface 1 and supplies power to it, power controller 3 is electrically connected to the first type interface 2 and supplies power to it, and power controller 4 is electrically connected to the second type interface 2 and supplies power to it. Based on Figure 3 The main backplane system shown in the embodiment of the present invention further provides a possible implementation method after the above step S206. Figure 4 .

[0073] Step S208, when an abnormality is detected in the first type interface of the target interface module, a power-off signal is generated, and the power-off signal is transmitted to the target power controller connected to the first type interface of the target interface module through the IO expander, so that the target power controller stops supplying power.

[0074] In this embodiment, when the baseboard management controller detects that any interface in the interface module has a fault, in order to protect the device connected to the faulty interface and ensure stable backplane performance, it will generate a power-off signal and transmit the power-off signal to the power controller connected to the faulty interface through the IO expander, so that the power controller stops supplying power to it, thereby realizing hot plugging of the faulty interface.

[0075] Optionally, in order to detect whether the faulty interface has returned to normal, the BMC will also generate a power-on signal, and transmit the power-on signal to the power controller electrically connected to the faulty interface through the IO expander, so that the power controller starts to supply power to it, thereby detecting whether the faulty interface is still in an abnormal state. If the fault disappears, it means that the faulty interface has returned to normal, and then the device connected to the faulty interface is restarted. If the fault does not disappear, it means that the faulty interface is still in an abnormal state, then the power controller is controlled again to stop supplying power to the faulty interface, and the faulty interface is recorded to facilitate subsequent maintenance personnel to perform repairs. For ease of understanding, the above-mentioned target interface module is interface module 1 for further explanation. When the baseboard management controller detects that the first type of interface 1 is abnormal, it will generate a power-off signal, and transmit the power-off signal to the power controller connected to the first type of interface 1, that is, the power controller 1, through the IO expander, so that the power controller 1 stops supplying power to the first type of interface 1, thereby realizing hot plugging of the first type of interface 1. In order to execute the corresponding steps in the above-mentioned embodiments and various possible methods, a method for implementing a PCIE port resource allocation device is given below. Please refer to Figure 5 , is a functional module diagram of a PCIE port resource allocation device 300 provided in an embodiment of the present invention. It should be noted that the basic principle and technical effects of the PCIE port resource allocation device 300 provided in this embodiment are the same as those of the above embodiment. For the sake of brief description, for matters not mentioned in this embodiment, reference may be made to the corresponding contents in the above embodiment. The PCIE port resource allocation device 300 includes:

[0076] The acquisition module 310 is used to acquire a presence signal of a first type of interface in a target interface module through an IO expander; the target interface module is any interface module;

[0077] A generating module 330, configured to determine whether a device is connected to the first type interface in the target interface module according to the presence signal, and to generate a corresponding control signal;

[0078] The allocation module 350 is used to control a PCIE port in the target switching module connected to the target interface module to communicate with the corresponding PCIE port of the processor through the IO expander according to the control signal, so as to allocate PCIE port resources.

[0079] Optionally, the generation module 330 is also used to: when the in-place signal is at a low level, determine that the first type interface in the target interface module is connected to a device, and generate a first control signal; when the in-place signal is at a high level, determine that the first type interface in the target interface module is not connected to a device, and generate a second control signal.

[0080] Optionally, the allocation module 350 is also used to: when the control signal is a first control signal, according to the first control signal, control the first PCIE port to be connected to the corresponding PCIE port of the processor through the IO expander, and the first PCIE port is a PCIE port in the target switching module that is connected to the first type interface communication of the target interface module.

[0081] Optionally, the allocation module 350 is also used to: when the control signal is a second control signal, control the second PCIE port to be connected to the corresponding PCIE port of the processor through the IO expander according to the second control signal, and the second PCIE port is a PCIE port in the target switching module that is connected to the second type of interface communication with the target interface module.

[0082] Optionally, the PCIE port resource allocation device 300 also includes a protection module 370, which is used to generate a power-off signal when an abnormality is detected in the first type interface of the target interface module, and transmit the power-off signal to a target power controller connected to the first type interface of the target interface module through an IO expander to stop the target power controller from supplying power.

[0083] The embodiment of the present invention also provides a main backplane system, including a mainboard and a backplane, the mainboard includes a baseboard management controller and a processor, the backplane includes an IO expander, multiple interface modules and multiple switching modules, the baseboard management controller is communicatively connected with the IO expander and the multiple interface modules, each PCIE port of the processor is communicatively connected with the corresponding switching module, the two PCIE ports of a switching module are communicatively connected with the first type interface and the second type interface in an interface module respectively, and the IO expander is communicatively connected with each switching module and each first type interface. Optionally, the backplane also includes multiple power controllers, one power controller is electrically connected with a first type interface and supplies power to it, and each power controller is communicatively connected with the IO expander. Among them, the baseboard management controller is used to implement the PCIE port resource allocation method disclosed in the embodiment of the present invention.

[0084] An embodiment of the present invention further provides a server, which includes the main backplane system provided by the embodiment of the present invention.

[0085] In several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0086] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0087] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0088] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A PCIE port resource allocation method, It is characterized in that A baseboard management controller applied to a mainboard, the baseboard management controller is communicatively connected with an IO expander and a plurality of interface modules in a backplane, each PCIE port of a processor in the mainboard is communicatively connected with a corresponding switching module in the backplane, two PCIE ports of a switching module are communicatively connected with a first type interface and a second type interface in an interface module respectively, the IO expander is communicatively connected with each switching module and each first type interface, and the PCIE port resource allocation method comprises: Obtaining, through the IO expander, a presence signal of a first type of interface in a target interface module; the target interface module is any one of the interface modules; According to the presence signal, determining whether the first type interface in the target interface module is connected to a device, and generating a corresponding control signal; According to the control signal, the IO expander controls a PCIE port in the target switching module connected to the target interface module to be connected to a corresponding PCIE port of the processor, so as to allocate PCIE port resources.

2. The PCIE port resource allocation method according to claim 1, It is characterized in that The step of determining whether a device is connected to the first type interface in the target interface module according to the presence signal and generating a corresponding control signal comprises: When the in-place signal is at a low level, determining that a device is connected to the first type interface in the target interface module, and generating a first control signal; When the in-place signal is at a high level, it is determined that the first type interface in the target interface module is not connected to a device, and a second control signal is generated.

3. The PCIE port resource allocation method according to claim 2, It is characterized in that The step of controlling, according to the control signal, through the IO expander, a PCIE port in the target switching module connected to the target interface module to be connected to a corresponding PCIE port of the processor comprises: When the control signal is a first control signal, according to the first control signal, the first PCIE port is controlled to be connected to the corresponding PCIE port of the processor through the IO expander, and the first PCIE port is a PCIE port in the target switching module that is connected to the first type interface communication of the target interface module.

4. The PCIE port resource allocation method according to claim 2, It is characterized in that The step of controlling, according to the control signal, through the IO expander, a PCIE port in the target switching module connected to the target interface module to be connected to a corresponding PCIE port of the processor comprises: When the control signal is a second control signal, according to the second control signal, the second PCIE port is controlled to be connected to the corresponding PCIE port of the processor through the IO expander, and the second PCIE port is a PCIE port in the target switching module that is connected to the second type interface communication of the target interface module.

5. The PCIE port resource allocation method according to claim 1, It is characterized in that The backplane further includes a plurality of power controllers, one of the power controllers is electrically connected to one of the first type interfaces and supplies power to it, each of the power controllers is communicatively connected to the IO expander, and the PCIE port resource allocation method further includes: When an abnormality is detected in the first type interface of the target interface module, a power-off signal is generated, and the power-off signal is transmitted to the target power controller connected to the first type interface of the target interface module through the IO expander, so that the target power controller stops supplying power.

6. A PCIE port resource allocation device, It is characterized in that A baseboard management controller applied to a mainboard, the baseboard management controller is communicatively connected with an IO expander and a plurality of interface modules in a backplane, each PCIE port of a processor in the mainboard is communicatively connected with a corresponding switching module in the backplane, two PCIE ports of a switching module are communicatively connected with a first type interface and a second type interface in an interface module respectively, the IO expander is communicatively connected with each switching module and each first type interface, and the PCIE port resource allocation device comprises: An acquisition module, used for acquiring a presence signal of a first type of interface in a target interface module through the IO expander; the target interface module is any one of the interface modules; A generating module, configured to determine whether a device is connected to the first type interface in the target interface module according to the presence signal, and to generate a corresponding control signal; The allocation module is used to control a PCIE port in the target switching module connected to the target interface module to be connected to the corresponding PCIE port of the processor through the IO expander according to the control signal, so as to allocate PCIE port resources.

7. The PCIE port resource allocation device according to claim 6, It is characterized in that The generation module is also used for: When the in-place signal is at a low level, determining that a device is connected to the first type interface in the target interface module, and generating a first control signal; When the in-place signal is at a high level, it is determined that the first type interface in the target interface module is not connected to a device, and a second control signal is generated.

8. The PCIE port resource allocation device according to claim 6, It is characterized in that The PCIE port resource allocation device further includes a protection module, which is used for: When an abnormality is detected in the first type interface of the target interface module, a power-off signal is generated, and the power-off signal is transmitted to the target power controller connected to the first type interface of the target interface module through the IO expander, so that the target power controller stops supplying power.

9. A main backplane system, It is characterized in that The invention comprises a mainboard and a backplane, wherein the mainboard comprises a baseboard management controller and a processor, the backplane comprises an IO expander, a plurality of interface modules and a plurality of switching modules, the baseboard management controller is communicatively connected with the IO expander and the plurality of interface modules, each PCIE port of the processor is communicatively connected with a corresponding switching module, two PCIE ports of a switching module are communicatively connected with a first type interface and a second type interface in an interface module respectively, and the IO expander is communicatively connected with each switching module and each first type interface; wherein the baseboard management controller is used to implement the PCIE port resource allocation method according to any one of claims 1 to 5.

10. A server, It is characterized in that The server comprises the main backplane system according to claim 9.