OCP card configuration method and device

By automatically identifying and configuring the type of OCP card in the server, the problem of insufficient utilization of OCP connection slot resources is solved, and efficient compatibility and flexible use of multi-function OCP cards are achieved, saving hardware costs.

CN120295678APending Publication Date: 2025-07-11SHENZHEN QIANHAI EVOC ASIA-PACIFIC ELECTRONIC EQUIP TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510352193.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-24
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

The existing OCP connection slot resources are insufficiently utilized and cannot be compatible with diversified function cards, resulting in waste of hardware resources and insufficient compatibility.

Method used

By introducing an OCP card configuration method in the server, the CPU control BMC obtains the OCP card type information in the OCP connection slot, and configures the channel group mode of the PCH according to the type, to realize the automatic identification and configuration of the multi-function OCP card.

Benefits of technology

Save physical space, avoid resource waste, improve compatibility and flexibility of OCP cards, simplify the hardware resource configuration process, and reduce human errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120295678A_ABST
    Figure CN120295678A_ABST
Patent Text Reader

Abstract

The present application is applicable to the technical field of computers, and provides an OCP card configuration method and device, the method comprising: in a server power-on process, controlling a PCH to determine whether an OCP connection slot is connected to a first OCP card, the first OCP card comprising a first sub-OCP card and a second sub-OCP card; if the OCP connection groove is connected with the first OCP card, the BMC is controlled to obtain first information of the first OCP card from the OCP connection groove, and the first information comprises a first type of a first sub-OCP card and a second type of a second sub-OCP card; and performing first configuration according to the first information, the first configuration being used for configuring a first channel group of the PCH corresponding to the first pin of the first sub OCP card into a first mode corresponding to the first type, and configuring a second channel group of the PCH corresponding to the second pin of the second sub OCP card into a second mode corresponding to the second type. Therefore, resource waste can be avoided, meanwhile, diversified requirements for use of the OCP card can be met through a single interface, and compatibility and flexibility are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of computer technology, and particularly relates to an OCP card configuration method and device. Background Art

[0002] Open Compute Project (OCP) cards, as standardized modules, are widely used in high-performance expansion scenarios of X86 servers.

[0003] Currently, in an X86 server, a central processing unit (CPU) is interconnected with an OCP connection slot through high-speed peripheral component interconnect express (PCIe) bus resources.

[0004] However, an OCP connection slot usually has pin resources that can access PCIe X16. Existing OCP function cards, such as OCP network interface cards (NICs), only occupy PCIe x8 or x4 channel bandwidth, resulting in idle remaining pin resources in the OCP connection slot and PCIe channel resources provided by the CPU, causing a waste rate of hardware resources. Moreover, existing OCP connection slots cannot be compatible with diverse function cards and cannot meet diverse requirements through a single physical interface. Summary of the Invention

[0005] Embodiments of this application provide an OCP card configuration method and device, which can avoid resource waste, and at the same time can meet diverse requirements for the use of OCP cards through a single interface, improving compatibility and flexibility.

[0006] In a first aspect, embodiments of this application provide an OCP card configuration method, which is applied to a central processing unit (CPU) of a server. The server further includes a platform control hub (PCH), an Open Compute Project (OCP) connection slot, and a baseboard management controller (BMC). The CPU is respectively connected to the PCH and the BMC, the PCH is connected to the OCP connection slot, and the BMC is connected to the OCP connection slot. The OCP connection slot is used to connect a first OCP card including a first sub-OCP card and a second sub-OCP card. The method includes:

[0007] During the power-on process of the server, control the PCH to determine whether the OCP connection slot is connected to the first OCP card;

[0008] If the OCP connection slot is connected to the first OCP card, control the BMC to obtain first information of the first OCP card from the OCP connection slot. The first information includes a first type of the first sub-OCP card and a second type of the second sub-OCP card;

[0009] Perform a first configuration according to the first information. The first configuration is used to configure the first channel group of the PCH corresponding to the first pin of the first sub - OCP card into a first mode corresponding to the first type, and configure the second channel group of the PCH corresponding to the second pin of the second sub - OCP card into a second mode corresponding to the second type.

[0010] In a possible implementation of the first aspect, the PCH includes a GPIO interface, and the GPIO interface is connected to the OCP connection slot. Controlling the PCH to determine whether the OCP connection slot is connected to the first OCP card includes:

[0011] Monitor the GPIO signal of the GPIO in the PCH and determine whether the GPIO signal is a first signal. The first signal is a signal used to indicate that the OCP connection slot is connected to the first OCP card. If the GPIO signal is the first signal, determine that the OCP connection slot is connected to the first OCP card. Among them, the GPIO signal can be a GPIO level signal.

[0012] Exemplarily, the first signal can be 0b00. That is, if the GPIO signal is 0b00, it can be determined that the OCP connection slot is connected to the first OCP card.

[0013] In a possible implementation of the first aspect, the OCP connection slot is also used to connect the second OCP card, and the method further includes:

[0014] If the GPIO signal is not the first signal, then determine whether the GPIO signal is a second signal. The second signal is a signal used to indicate that the OCP connection slot is connected to the second OCP card. If the GPIO signal is the second signal, determine that the OCP connection slot is connected to the second OCP card. Perform a second configuration according to the third type. The second configuration is used to configure the third channel group of the PCH into a third mode corresponding to the third type. The third type is the type of the second OCP card, and the third channel group includes the first channel group and the second channel group.

[0015] Exemplarily, the second signal can be 0b10. That is, if the GPIO signal is 0b10, it can be determined that the OCP connection slot is connected to the second OCP card.

[0016] In a possible implementation of the first aspect, controlling the BMC to obtain the first information of the first OCP card from the OCP connection slot includes:

[0017] Send a read command to the BMC. The read command is used to notify the BMC to obtain the first information of the first OCP card from the OCP connection slot. Receive the first information of the first OCP card from the BMC. The first information is obtained by the BMC from the OCP connection slot.

[0018] In a possible implementation of the first aspect, the PCH further includes a high-speed I / O bus HSIO. The HSIO is connected to the OCP connection slot. The HSIO includes N channels. The first channel group includes M channels out of the N channels, and the second channel group includes N - M channels out of the N channels. The first configuration is used to configure the M channels of the HSIO corresponding to the first pin of the first sub-OCP card into a first mode corresponding to a first type, and configure the N - M channels of the HSIO corresponding to the second pin of the second sub-OCP card into a second mode corresponding to a second type. The second configuration is used to configure all N channels of the HSIO into a third mode corresponding to a third type.

[0019] In a possible implementation of the first aspect, the first sub-OCP card is electrically connected to the OCP connection slot, and the second sub-OCP card is electrically connected to the first sub-OCP card.

[0020] In a possible implementation of the first aspect, during the server power-on process, controlling the PCH to determine whether the OCP connection slot is connected to the first OCP card includes:

[0021] During the process of the server displaying the login interface, controlling the PCH to determine whether the OCP connection slot is connected to the first OCP card.

[0022] In a second aspect, an embodiment of the present application provides an OCP card configuration device, which is applied to a central processing unit CPU of a server. The server includes a platform control hub PCH, an Open Compute Project OCP connection slot, and a baseboard management controller BMC. The CPU is respectively connected to the PCH and the BMC. The PCH is connected to the OCP connection slot, and the BMC is connected to the OCP connection slot. The OCP connection slot is used to connect a first OCP card including a first sub-OCP card and a second sub-OCP card. The device includes:

[0023] A determination module, configured to control the PCH to determine whether the OCP connection slot is connected to the first OCP card during the server power-on process;

[0024] An acquisition module, configured to, if the OCP connection slot is connected to the first OCP card, control the BMC to acquire first information of the first OCP card from the OCP connection slot. The first information includes the first type of the first sub-OCP card and the second type of the second sub-OCP card;

[0025] A configuration module, configured to perform a first configuration according to the first information. The first configuration is used to configure the first channel group of the PCH corresponding to the first pin of the first sub-OCP card into a first mode corresponding to the first type, and configure the second channel group of the PCH corresponding to the second pin of the second sub-OCP card into a second mode corresponding to the second type.

[0026] In a third aspect, an embodiment of the present application provides a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the OCP card configuration method described in any one of the above first aspects is implemented.

[0027] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the OCP card configuration method described in any one of the above first aspects is implemented.

[0028] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a server, the server is caused to execute the OCP card configuration method described in any one of the above first aspects.

[0029] It can be understood that the beneficial effects of the above second to fifth aspects can be referred to the relevant descriptions in the above first aspect, and will not be elaborated here.

[0030] Compared with the prior art, the beneficial effects of the embodiments of the present application are as follows: When it is determined that the OCP card connected in the OCP connection slot is the first OCP card, the CPU controls the BMC to obtain the first type of the first sub-OCP card and the second type of the second sub-OCP card from the OCP connection slot. Thus, the CPU can configure the first channel group of the PCH corresponding to the first pin of the first sub-OCP card as the first mode corresponding to the first type, and configure the second channel group of the PCH corresponding to the second pin of the second sub-OCP card as the second mode corresponding to the second type according to the first type and the second type. Therefore, by connecting a multifunctional first OCP card including the first sub-OCP card and the second sub-OCP card in one OCP connection slot, physical space can be saved, resource waste can be avoided, and the hardware cost of the OCP card can be saved. And through the automated identification of the type and configuration technology of each sub-OCP card, the diverse requirements for the use of the OCP card can be realized through a single interface, significantly improving the compatibility and flexibility of the server in using the OCP card. Description of the Drawings

[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0032] Figure 1 It is a schematic diagram of the configuration system of the server provided by an embodiment of the present application;

[0033] Figure 2 It is a schematic structural diagram of a first OCP card provided by an embodiment of the present application;

[0034] Figure 3 It is a schematic circuit diagram of a general OCP card provided by an embodiment of the present application;

[0035] Figure 4 It is a schematic circuit diagram of a general OCP card provided by an embodiment of the present application;

[0036] Figure 5 It is a schematic circuit diagram of a multi-functional OCP card provided by an embodiment of the present application;

[0037] Figure 6 It is a schematic circuit diagram of a multi-functional OCP card provided by an embodiment of the present application;

[0038] Figure 7 It is a schematic flowchart of an OCP card configuration method provided by an embodiment of the present application;

[0039] Figure 8 It is a schematic functional diagram of a PCH HSIO provided by an embodiment of the present application;

[0040] Figure 9 It is a schematic flowchart of an OCP card configuration method provided by an embodiment of the present application;

[0041] Figure 10 It is a relationship diagram between a first OCP card and an OCP connector provided by an embodiment of the present application;

[0042] Figure 11 It is a schematic structural diagram of an OCP card configuration device provided by an embodiment of the present application. Detailed implementation manners

[0043] In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. However, those skilled in the art should clearly understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from interfering with the description of the present application.

[0044] It should be understood that when used in the specification and appended claims of the present application, the term "comprising" indicates the presence of the described features, wholes, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.

[0045] It should also be understood that the term "and / or" as used in the specification and appended claims of this application refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0046] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "once" or "in response to determining" or "in response to detecting" depending on the context. Similarly, the phrase "if determined" or "if [the described condition or event] is detected" can be interpreted as meaning "once determined" or "in response to determining" or "once [the described condition or event] is detected" or "in response to detecting [the described condition or event]" depending on the context.

[0047] In addition, in the description of the specification and appended claims of this application, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.

[0048] Reference to "one embodiment" or "some embodiments" or the like described in the specification of this application means that a specific feature, structure, or characteristic described in connection with that embodiment is included in one or more embodiments of this application. Thus, statements such as "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments", etc. that appear in different places in this specification do not necessarily all refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "comprising", "including", "having", and their variants all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0049] To facilitate the understanding of the embodiments of this application, the relevant concepts involved in this application are first explained.

[0050] 1. Platform Controller Hub (PCH)

[0051] The PCH is responsible for coordinating the communication between the CPU and peripheral devices. Its main functions include I / O control, which is also to manage the connection and data transmission of high-speed devices such as USB, SATA, and PCIe through the high-speed I / O bus (HSIO) interface.

[0052] 2. OCP connection slot

[0053] The OCP connection slot is a modular interface that follows the Open Compute Project standard and is used to insert OCP cards.

[0054] 3. Control the baseboard management controller (BMC)

[0055] The BMC is an independent management subsystem in the server and has the ability to obtain relevant information of the OCP card from the OCP connection slot.

[0056] The OCP card configuration method provided in the embodiments of the present application can be applied to servers, and can also be applied to terminal devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, and personal digital assistants (PDAs). The embodiments of the present application do not impose any restrictions on the specific types of terminal devices.

[0057] The present application proposes an OCP card configuration method, device, server, and computer-readable storage medium. The method is applicable to scenarios where the OCP connection slot can install a general OCP card (the second OCP card in the following text) or a multi-functional OCP card (the first OCP card in the following text), and the CPU in the server can be configured according to different types of OCP cards.

[0058] For example, the general OCP card can be a memory card, a network card, an acceleration card, etc.

[0059] For example, the multi-functional OCP card can include at least two sub-OCP cards, and any one of the sub-OCP cards can be a memory card, a network card, an acceleration card, etc.

[0060] Among them, when the OCP card configuration method of the present application is executed by the server, as Figure 1 shown, the server includes a CPU, a PCH, an OCP connection slot, and a BMC. The CPU is respectively connected to the PCH and the BMC, the PCH is respectively connected to the OCP connection slot and the BMC, and the BMC is connected to the OCP connection slot. The BMC can communicate with the OCP connection slot through the I2C protocol or through other protocols, such as a software-simulated serial port protocol. The present application does not make specific limitations on this.

[0061] When the CPU controls the PCH to determine that the OCP card connected in the OCP connection slot is a multi-functional OCP card, the CPU can control the BMC to obtain the type of each sub-OCP card in the multi-functional OCP card from the OCP connection slot. Thus, the CPU can configure the channel group of the PCH corresponding to the pins of each sub-OCP card into the mode corresponding to the type of each sub-OCP card. Therefore, by connecting a multi-functional OCP card including at least two sub-OCP cards in one OCP connection slot, physical space can be saved, resource waste can be avoided, and relevant configurations can be automatically performed based on the type of each sub-OCP card. The diverse requirements for the use of OCP cards can be achieved through a single interface, significantly improving the compatibility and flexibility of the server in using OCP cards.

[0062] For example, the multi-functional OCP card includes two sub-OCP cards, namely the first sub-OCP card and the second sub-OCP card. When the type of the first sub-OCP card is a high-performance hardware expansion card, the channel group of the PCH can be configured into the PCIe mode. When the type of the second sub-OCP card is a memory card, the channel group of the PCH can be configured into the SATA mode.

[0063] Among them, as Figure 2 shown is the multi-functional OCP card, and the physical size of the multi-functional OCP card is the same as that of the general OCP card. Figure 2 (a) in Figure 2 can be the first sub-OCP card. The first sub-OCP card and the second sub-OCP card in Figure 2 (b) are connected through pins (which can also be called gold fingers). The first sub-OCP card can transmit power signals and GPIO signals (ID signals), etc. to the second sub-OCP card.

[0064] (c) in Figure 3 and Figure 4 can be the second sub-OCP card. The first sub-OCP card can be a network card, and the second sub-OCP card can be an M.2 memory card or a USB expansion interface card.

[0064] In addition, the OCP connection slot adopts the OCP specification type of 168Pin 4C+. The pin definition table of the OCP connection slot can be shown in Table 1, including the pins on side A and side B. The circuit schematic diagram of the general 168Pin OCP card is as Figure 3 and Figure 4 shown.

[0065] Table 1 Pin Definition Table

[0066]

[0067]

[0068]

[0069] Among them, the general OCP card includes the pins in four regions of OCP 1C, OCP 2C, OCP 3C, and OCP 4C. The general OCP card has a function. Depending on the data bandwidth of its implemented function, the number of pins required by the OCP card is different. When the general OCP card uses high data bandwidth, there are pins of OCP 1C, OCP 2C, OCP 3C, and OCP 4C on it (a total of 168 pins). When the general OCP card uses low data bandwidth, there are pins of OCP 1C, OCP 2C, and OCP 3C on it (a total of 112 pins). Combining Table 1, and Figure 3 and Figure 4 the circuit diagram of the general OCP card shown, it can be seen that:

[0070] OCP_A1 to OCP_A14 and OCP_B1 to OCP_B14 are the pins of OCP 1C, corresponding to Figure 4 CA1 to CA14 and CB1 to CB14 in

[0071] A1 to A28 and B1 to B28 are the pins of OCP 2C, corresponding to Figure 3 A1 to A28 and B1 to B28 in

[0072] A29 to A42 and B29 to B42 are the pins of OCP 3C, corresponding to Figure 3 A29 to A42 and B29 to B42 in

[0073] A43 to A70 and B43 to B70 are the pins of OCP 4C, corresponding to Figure 4 A43 to A70 and B43 to B70 in

[0074] Among them, there are two pins of SLOT_ID, OCP_B7 and OCP_A6, on OCP 1C for determining the type of the OCP card.

[0075] Among them, the PCH includes a high-speed I / O bus HSIO (high-speed input / output, HSIO) and a general-purpose input / output interface (general purpose input / output, GPIO). HSIO includes 16 channels from PCIe0 to PCIe15. The HSIO in the PCH includes, but is not limited to, three functions: PCIe, SATA, and USB. This application does not make specific limitations on this. That is, the embodiments of this application can be applicable to multiple models of PCH, and other functions (such as SAS function, I3C function, etc.) that can be provided in other models of PCH.

[0076] Among them, the first OCP card includes, but is not limited to, an OCP interface circuit designed according to the current OCP 168Pin specification. This application does not make specific limitations on this. Below, taking the example that there are pins of OCP 1C, OCP 2C, and OCP 3C (a total of 112Pin) on the first sub - OCP card and there are pins of OCP 4C (a total of 56Pin) on the second sub - OCP card for illustration. The first sub - OCP card and the second sub - OCP card each have one function, and there are a total of two functions.

[0077] As Figure 5 shown in the circuit diagram of the first OCP card, PCIe8 - PCIe15 in the HSIO of the PCH are correspondingly connected to 2C (the range of the 2C area is A1 - A28 and B1 - B28) and 3C (the range of 3C is A29 - A42 and B29 - B42) of the first OCP card. PCIe0 - PCIe7 in the PCH HSIO are correspondingly connected to 4C (the range of 4C is A43 - A70 and B43 - B70) of the first OCP card.

[0078] As Figure 6 shown in the circuit diagram of the first OCP card, the PCH can be connected to the SLOT_ID pin of the OCP connection slot through two GPIOs ( Figure 6 GPP_A23 and GPP_A22 in it) to obtain GPIO signals. The PCH can also be connected to the SLOT_ID pin of the OCP connection slot through other functional pins. This application does not make specific limitations on this. In addition, when the PCH is connected to the OCP connection slot through two GPIOs, it can be connected to the SLOT_ID pin of the OCP connection slot through two GPIOs, or the two GPIOs can also be connected to other undefined pins of the OCP connection slot. This application does not make specific limitations on this. The signals passed through the pins between the first sub - OCP card and the second sub - OCP card include SLOT_ID1, P12V, P3V3, SMCLK, SMSDA, etc. in OCP 1C. Among them, SMCLK and SMSDA are used for the first sub - OCP card and the second sub - OCP card to communicate with the BMC through the OCP connection slot, so that the BMC can read the type information of the first sub - OCP card and the second sub - OCP card.

[0079] Based on the above scenario description, below, in combination with the accompanying drawings and application scenarios, the OCP card configuration method provided by the embodiments of this application will be elaborated in detail.

[0080] Among them, the OCP card configuration method provided in the embodiments of this application is applied to the central processing unit (CPU) of a server. The server includes a platform control hub (PCH), an Open Compute Project (OCP) connection slot, and a baseboard management controller (BMC). The CPU is respectively connected to the PCH and the BMC, the PCH is respectively connected to the OCP connection slot and the BMC, the BMC is connected to the OCP connection slot, and the OCP connection slot is used to connect a first OCP card including a first sub-OCP card and a second sub-OCP card.

[0081] Please refer to Figure 7 , Figure 7 which shows a schematic flowchart of the OCP card configuration method provided in an embodiment of this application.

[0082] As Figure 7 shown, the OCP card configuration method provided in this application may include:

[0083] S101. During the power-on process of the server, control the PCH to determine whether the OCP connection slot is connected to the first OCP card.

[0084] Among them, the first OCP card may be referred to as a multi-functional OCP card. For the specific implementation of the first OCP card, reference may be made to Figure 2 the description of the multi-functional OCP card. For the specific implementation of the first sub-OCP card and the second sub-OCP card, reference may be made to Figure 2 the description of the first sub-OCP card and the second sub-OCP card.

[0085] Combined with Figure 1 , during the power-on process of the server, the CPU in the server may control the PCH to determine whether the OCP connection slot is connected to the first OCP card, that is, whether the first OCP card is installed. Specifically, the CPU may send a determination notice to the PCH so that the PCH determines whether the OCP connection slot is connected to the first OCP card according to the determination notice.

[0086] In some embodiments, the server may be connected to a display screen. During the power-on process of the server, controlling the PCH to determine whether the OCP connection slot is connected to the first OCP card includes: during the process of the display screen of the server displaying the login interface, controlling the PCH to determine whether the OCP connection slot is connected to the first OCP card.

[0087] S102. If the OCP connection slot is connected to the first OCP card, control the BMC to obtain first information of the first OCP card from the OCP connection slot, where the first information includes the first type of the first sub-OCP card and the second type of the second sub-OCP card.

[0088] Among them, the first information may be FRU information. Since the OCP connection slot is respectively connected to the BMC and the first OCP card, the BMC may obtain the FRU information from the OCP connection slot.

[0089] The first type of the first sub - OCP card and the second type of the second sub - OCP card can be the same or different, and this application does not make specific restrictions on this.

[0090] For example, the first type is a network card and the second type is a USB expansion interface card. Another example is that the first type of the first sub - OCP card is a high - performance hardware expansion card and the second type is a memory card.

[0091] S103: Perform a first configuration according to the first information. The first configuration is used to configure the first channel group of the PCH corresponding to the first pin of the first sub - OCP card into a first mode corresponding to the first type, and configure the second channel group of the PCH corresponding to the second pin of the second sub - OCP card into a second mode corresponding to the second type.

[0092] Among them, the first sub - OCP card has a first pin, and the second sub - OCP has a second pin. The PCH includes a first channel group and a second channel group. The first channel group includes multiple channels, the second channel group includes multiple channels, the first channel group corresponds to the first pin, and the second channel group corresponds to the second pin.

[0093] For example, the first pin of the first sub - OCP card may include the pins in the 2C area, that is, Figure 5 the pins of A1 - A28 and B1 - B28 in Figure 5 The second pin of the second sub - OCP card may include the pins in the 3C area and the 4C area, that is,

[0094] For example, the first channel group and the second channel group have a total of 16 channels. The first channel group includes 8 channels of PCIe8 - PCIe15, and the second channel group includes 8 channels of PCIe0 - PCIe7.

[0095] If the first type is a high - performance hardware expansion card, the mode of the first channel group of the PCH corresponding to the high - performance hardware expansion card is the PCIe mode, and the second type is a memory card, the mode of the second channel group of the PCH corresponding to the memory card is the SATA mode. Combining the above examples, the first configuration is used to configure the 8 channels of PCIe8 - PCIe15 corresponding to the pins of A1 - A28 and B1 - B28 in the 2C area into the PCIe mode, and configure the 8 channels of PCIe0 - PCIe7 corresponding to the pins of A29 - A42 and B29 - B42 in the 3C area and A43 - A70 and B43 - B70 in the 4C area into the SATA mode.

[0096] In some embodiments, the PCH includes a high-speed I / O bus HSIO, the HSIO is connected to an OCP connector, the HSIO includes N channels, the first channel group includes M channels out of the N channels, and the second channel group includes N-M channels out of the N channels; the first configuration is for configuring the M channels of the HSIO corresponding to the first pin of the first sub-OCP card as the first mode corresponding to the first type, and for configuring the N-M channels of the HSIO corresponding to the second pin of the second sub-OCP card as the second mode corresponding to the second type.

[0097] For example, N is 16, M is 8, the HSIO includes 16 channels, the first channel group includes 8 channels from PCIe8 to PCIe15 of the HSIO, and the second channel group includes 8 channels from PCIe0 to PCIe7 of the HSIO.

[0098] The OCP card configuration method provided by this application can, when the CPU controls the PCH to determine that the OCP card connected in the OCP connector is the first OCP card, control the BMC to obtain the first type of the first sub-OCP card and the second type of the second sub-OCP card from the OCP connector, so that the CPU can, according to the first type and the second type, configure the first channel group of the PCH corresponding to the first pin of the first sub-OCP card as the first mode corresponding to the first type, and configure the second channel group of the PCH corresponding to the second pin of the second sub-OCP card as the second mode corresponding to the second type. Thus, by connecting a multifunctional first OCP card including the first sub-OCP card and the second sub-OCP card in one OCP connector, physical space can be saved, resource waste can be avoided, and the hardware cost of the OCP card can be saved. And by means of the technology of automatically identifying the types and configurations of each sub-OCP card (such as network cards, function cards, integrated function cards, etc.), the compatibility and flexibility of the server in using the OCP card can be significantly improved.

[0099] Based on the above Figure 7 As described in the illustrated embodiments, the CPU of the server includes BIOS, the PCH includes GPIO and HSIO, the GPIO is connected to the OCP connector, and the BIOS can monitor the GPIO signals on the PCH to determine whether the OCP connector is connected to the first OCP card. When the first OCP card is connected, relevant configurations can be made for the HSIO of the PCH.

[0100] Among them, the function definition of the HSIO of the PCH is as Figure 8 shown (the example is the HSIO of the C620 PCH), and it can be seen that:

[0101] SATA0, USB0 to USB7, and PCIe0 to PCIe7 share a set of multiplexed pins, which can be configured as any one of the signals of the three functions of SATA, USB, and PCIe; SATA1, USB8 to USB9, and PCIe8 to PCIe15 share a set of multiplexed pins, which can be configured as any one of the signals of the three functions of SATA, PCIe, and USB.

[0102] In addition, PCIe0 to PCIe7 in the HSIO of the PCH are connected to the second sub - OCP card, which can be configured with the three functions of SATA, USB, and PCIe, and PCIe8 to PCIe15 in the HSIO of the PCH are connected to the first sub - OCP card, which can be configured with the three functions of SATA, USB, and PCIe. For example, if the PCIe8 to PCIe15 pins in the HSIO of the PCH are configured in the PCIe mode, the first sub - OCP card of the OCP can be designed as a general OCP board, such as a PCIe X8 OCP network card; if the PCIe0 to PCIe7 pins in the HSIO of the PCH are configured in the SATA mode, the second sub - OCP card can be designed as an OCP memory card.

[0103] Next, in combination with Figure 9 , the specific implementation process of the OCP card configuration method of this application will be introduced in detail.

[0104] Please refer to Figure 9 , Figure 9 which shows a schematic flow diagram of the OCP card configuration method provided by an embodiment of this application.

[0105] As Figure 9 shown, the OCP card configuration method provided by this application may include:

[0106] S201. During the server power - on process, monitor the GPIO signal of the GPIO in the PCH.

[0107] Among them, a basic input output system (BIOS) runs on the CPU, and the BIOS in the CPU can monitor the GPIO signal of the GPIO in the PCH.

[0108] Among them, the GPIO signal can be a GPIO level signal, or a timing signal or frequency value on the GPIO. This application does not make specific limitations on this. The following description will be made by taking the GPIO signal as a GPIO level signal as an example.

[0109] As Figure 10 shown, since the power signals on the OCP connection slot are all given from the first sub - OCP card and the second sub - OCP card (only the pins of the first sub - OCP card have power supply signals), the power supply of the second sub - OCP card (such asFigure 10 As shown in P12V and P3V3, it is transmitted through the pins between the first sub - OCP card and the second sub - OCP card. Similarly, the SLOT_ID signal on the second sub - OCP card is also transmitted through the pins between the first sub - OCP card and the second sub - OCP card.

[0110] Two GPIO pins of the GPIO of the PCH ( Figure 10 GPIO0 and GPIO1 in it) respectively control the SLOT_ID0 and SLOT_ID1 pins ( Figure 5 The range of the 1C area is OA1 - OA14 and OB1 - OB14) on the 1C area of the first OCP card Figure 10 IO0 and IO1 in it), and the area where the CPU monitors the GPIO level signal on the PCH is the area on the PCH corresponding to the 1C area of the first OCP card.

[0111] On the circuit from the PCH to the OCP connection slot, a pull - up circuit is used to pull up the levels of the SLOT_ID0 and SLOT_ID1 pins. When no first OCP card or second OCP card is inserted into the OCP connection slot, the PCH will detect that the GPIO level signals on GPIO0 and GPIO1 are both high (i.e., the reading of the GPIO level signal is 0b11).

[0112] On the first sub - OCP card in the first OCP card, ground SLOT_ID0 ( Figure 10 IO0 in it), connect SLOT_ID1 to a pull - up circuit. Then, after the first sub - OCP card is inserted into the OCP connection slot, the PCH will detect that the GPIO level signal on GPIO0 is low and the GPIO level signal on GPIO1 is high (i.e., the reading of the GPIO level signal is 0b10). Also, after the second OCP card is inserted into the OCP connection slot, the PCH will detect that the GPIO level signal on GPIO0 is low and the GPIO level signal on GPIO1 is high (i.e., the reading of the GPIO level signal is 0b10).

[0113] On the second sub - OCP card in the first OCP card, ground SLOT_ID1 ( Figure 10 IO1 in it). Then, after both the first sub - OCP card and the second sub - OCP card are inserted into the OCP connection slot, the PCH will detect that the GPIO level signals on GPIO0 and GPIO1 are both low (i.e., the reading of the GPIO level signal is 0b00).

[0114] It can be seen that the GPIO level signal may have three cases, which are the third signal used to indicate that the OCP connection slot is not connected to the first OCP card or the second OCP card (this signal can be represented as 0b11), the second signal used to indicate that the OCP connection slot is connected to the second OCP card (this signal can be represented as 0b10), and the first signal used to indicate that the OCP connection slot is connected to the first OCP card (this signal can be represented as 0b00).

[0115] S202. Determine whether the GPIO signal is the first signal, where the first signal is the signal used to indicate that the OCP connection slot is connected to the first OCP card.

[0116] When it is determined that the GPIO signal is the first signal, the CPU can execute S203; when it is determined that the GPIO signal is not the first signal, the CPU can execute S207.

[0117] S203. If the GPIO signal is the first signal, determine that the OCP connection slot is connected to the first OCP card.

[0118] Based on the above description, if the GPIO signal monitored by the CPU is the first signal, it can be determined that the OCP connection slot is connected to the first OCP card. In this way, data preparation can be done for the server to perform subsequent steps related to the first OCP card.

[0119] S204. Send a read command to the BMC, where the read command is used to notify the BMC to obtain the first information of the first OCP card from the OCP connection slot.

[0120] Specifically, the CPU in the server can send a read command to the BMC so that the BMC reads the first information of the first OCP card from the OCP connection slot, and the first information includes the first type of the first sub - OCP card and the second type of the second sub - OCP card.

[0121] S205. Receive the first information of the first OCP card from the BMC, where the first information is obtained by the BMC from the OCP connection slot.

[0122] In some embodiments, when receiving the read command sent by the CPU, the BMC can read the first information of the first OCP card from the OCP connection slot and send the first information to the CPU.

[0123] In other embodiments, when receiving the read command sent by the CPU, the BMC can read the first information of the first OCP card from the OCP connection slot, perform data parsing and processing on the first information (such as processing it into a format readable by the CPU), and then send the processed first information to the CPU.

[0124] Optionally, the PCH is connected to the BMC, and the CPU of the server can also send a read command to the BMC through the PCH, and receive the first information through the BMC and the PCH.

[0125] S206. Perform a first configuration according to the first information. The first configuration is used to configure the first channel group of the PCH corresponding to the first pin of the first sub-OCP card into the first mode corresponding to the first type, and configure the second channel group of the PCH corresponding to the second pin of the second sub-OCP card into the second mode corresponding to the second type.

[0126] Among them, the implementation of S206 is similar to that of S103 in the Figure 7 illustrated embodiment, and will not be elaborated here.

[0127] S207. Determine whether the GPIO signal is a second signal. The second signal is a signal used to indicate that the OCP connection slot is connected to the second OCP card.

[0128] Among them, for the description of the second signal, reference can be made to the description of the second signal in S201.

[0129] S208. If the GPIO signal is the second signal, determine that the OCP connection slot is connected to the second OCP card.

[0130] Based on the description of S201 above, if the GPIO signal monitored by the CPU is the second signal, it can be determined that the OCP connection slot is connected to the second OCP card.

[0131] S209. Perform a second configuration according to the third type. The second configuration is used to configure the third channel group of the PCH into the third mode corresponding to the third type. The third type is the type of the second OCP card, and the third channel group includes the first channel group and the second channel group.

[0132] Among them, the third channel group includes the first channel group and the second channel group. That is to say, the second configuration is used to configure both the first channel group and the second channel group of the PCH into the third mode corresponding to the third type.

[0133] For example, the first channel group and the second channel group have a total of 16 channels. The first channel group includes 8 channels from PCIe8 to PCIe15, and the second channel group includes 8 channels from PCIe0 to PCIe7.

[0134] If the third type is a high-performance hardware expansion card, the mode of the PCH corresponding to the high-performance hardware expansion card is the PCIe mode, and the second configuration is used to configure all 16 channels from PCIe0 to PCIe15 into the PCIe mode.

[0135] In some embodiments, the PCH includes HSIO, and the HSIO is connected to the OCP connection slot. The HSIO includes N channels, and the second configuration is used to configure all N channels of the HSIO into the third mode corresponding to the third type.

[0136] For example, N is 16, the HSIO includes 16 channels, the first channel group includes 8 channels from PCIe8 to PCIe15 of the HSIO, the second channel group includes 8 channels from PCIe0 to PCIe7, and the third channel group includes 8 channels from PCIe0 to PCIe16.

[0137] In this application, the BIOS in the CPU automatically monitors the GPIO signals on the PCH. The GPIO signals are divided into three types: the third signal for indicating that the OCP connection slot is not connected to the first OCP card and the second OCP card, the second signal for indicating that the OCP connection slot is connected to the second OCP card, and the first signal for indicating that the OCP connection slot is connected to the first OCP card. When it is determined that the GPIO signal is the first signal, the CPU can determine that the OCP connection slot is connected to the first OCP card. Thus, the CPU can send a read command to the BMC so that the BMC can obtain the first information of the first OCP card from the OCP connection slot, facilitating the CPU to perform the first configuration according to the first information. When it is determined that the GPIO signal is the second signal, the CPU can determine that the OCP connection slot is connected to the second OCP card. Thus, the CPU can perform the second configuration according to the type of the second OCP card. Therefore, by the cooperation of the BIOS and the BMC, reading the GPIO signal and the first information, and automatically configuring the pin status of the PCH, compared with the method of manually intervening and configuring the OCP card through physical switches and other means, it can ensure the correct configuration of resources, simplify the configuration process of hardware resources, reduce the possibility of human configuration errors, and ensure the fast and accurate resource configuration during the system startup process. Moreover, the automatic configuration function of the OCP card ensures that there are no conflicts in hardware resources, and all resources can be reasonably allocated according to the type and requirements of each OCP card. In addition, the BMC and the PCH work together to perform intelligent adjustment when there are problems with the OCP card hardware.

[0138] It should be understood that the magnitudes of the sequence numbers of the steps in the above embodiments do not mean the order of execution. The execution order of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of this application.

[0139] Corresponding to the OCP card configuration method in the above embodiments, Figure 11 The structural block diagram of the OCP card configuration device provided by the embodiment of this application is shown. For the sake of convenience of description, only the parts related to the embodiment of this application are shown.

[0140] Refer to Figure 11 and the device includes:

[0141] A determination module, configured to control the PCH to determine whether an OCP connection slot is connected to a first OCP card during the power-on process of the server;

[0142] An acquisition module, configured to, if the OCP connection slot is connected to the first OCP card, control the BMC to acquire first information of the first OCP card from the OCP connection slot, where the first information includes a first type of a first sub-OCP card and a second type of a second sub-OCP card;

[0143] A configuration module, configured to perform a first configuration according to the first information, where the first configuration is used to configure a first channel group of the PCH corresponding to a first pin of the first sub-OCP card into a first mode corresponding to the first type, and configure a second channel group of the PCH corresponding to a second pin of the second sub-OCP card into a second mode corresponding to the second type.

[0144] In some embodiments, the PCH includes a general-purpose input / output interface GPIO, and the GPIO is connected to the OCP connection slot; the determination module 301 is specifically configured to:

[0145] Monitor a GPIO signal on the PCH; determine whether the GPIO signal is a first signal, where the first signal is used to indicate that the OCP connection slot is connected to the first OCP card; if the GPIO signal is the first signal, determine that the OCP connection slot is connected to the first OCP card.

[0146] In some embodiments, the OCP connection slot is further configured to connect a second OCP card, and the determination module 301 is further configured to: if the GPIO signal is not the first signal, determine whether the GPIO signal is a second signal, where the second signal is a signal used to indicate that the OCP connection slot is connected to the second OCP card; if the GPIO signal is the second signal, determine that the OCP connection slot is connected to the second OCP card.

[0147] In some embodiments, the configuration module 303 is further configured to: perform a second configuration according to a third type, where the second configuration is used to configure a third channel group of the PCH into a third mode corresponding to the third type, the third type is the type of the second OCP card, and the third channel group includes the first channel group and the second channel group.

[0148] In some embodiments, the acquisition module 302 is specifically configured to: send a read command to the BMC, where the read command is used to notify the BMC to acquire the first information of the first OCP card from the OCP connection slot; receive the first information of the first OCP card from the BMC, where the first information is acquired by the BMC from the OCP connection slot.

[0149] In some embodiments, the PCH further includes a high-speed I / O bus HSIO, which is connected to the OCP connector slot. The HSIO includes N channels. The first channel group includes M channels out of the N channels, and the second channel group includes N-M channels out of the N channels. The first configuration is used to configure the M channels of the HSIO corresponding to the first pin of the first sub-OCP card into a first mode corresponding to a first type, and to configure the N-M channels of the HSIO corresponding to the second pin of the second sub-OCP card into a second mode corresponding to a second type. The second configuration is used to configure all N channels of the HSIO into a third mode corresponding to a third type.

[0150] In some embodiments, the first sub-OCP card is electrically connected to the OCP connector slot, and the second sub-OCP card is electrically connected to the first sub-OCP card.

[0151] In some embodiments, the determining module 301 is specifically configured to: during the process of the server displaying the login interface, control the PCH to determine whether the OCP connector slot is connected to the first OCP card.

[0152] It should be noted that, for the information interaction, execution process, etc. between the above-mentioned device / units, since they are based on the same concept as the method embodiments of the present application, their specific functions and the technical effects brought can be specifically referred to the method embodiment part, and will not be elaborated here.

[0153] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the above-mentioned division of each functional unit and module is used as an example. In actual applications, the above-mentioned functions can be allocated to different functional units and modules according to needs, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of each functional unit and module are only for the convenience of mutual distinction and do not limit the protection scope of the present application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the foregoing method embodiments, and will not be elaborated here.

[0154] An embodiment of the present application further provides a server, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor. When the processor executes the computer program, the steps in any of the foregoing method embodiments are implemented.

[0155] An embodiment of the present application further provides a computer-readable storage medium storing a computer program, which when executed by a processor, can implement the steps in the above-mentioned method embodiments.

[0156] An embodiment of the present application provides a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above-mentioned method embodiments when executed.

[0157] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above-mentioned method embodiments of the present application can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file or some intermediate form, etc. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the photographing device / terminal device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk, or an optical disc, etc. In some jurisdictions, according to legislation and patent practice, the computer-readable medium may not be an electrical carrier signal and a telecommunication signal.

[0158] In the above embodiments, the descriptions of the respective embodiments have their own emphases. For parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0159] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or by a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of the present application.

[0160] In the embodiments provided in the present application, it should be understood that the disclosed device / network device and method can be implemented in other ways. For example, the device / network device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections between each other can be through some interfaces. The indirect couplings or communication connections of the devices or units can be in electrical, mechanical or other forms.

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

[0162] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. An OCP card configuration method, characterized in that, A central processing unit (CPU) applied to a server, the server further comprising a platform control hub (PCH), an Open Compute Project (OCP) connection slot, and a baseboard management controller (BMC). The CPU is respectively connected to the PCH and the BMC. The PCH is connected to the OCP connection slot, and the BMC is connected to the OCP connection slot. The OCP connection slot is used to connect a first OCP card including a first sub-OCP card and a second sub-OCP card. The method includes: During the power-on process of the server, controlling the PCH to determine whether the OCP connection slot is connected to the first OCP card; If the OCP connection slot is connected to the first OCP card, controlling the BMC to obtain first information of the first OCP card from the OCP connection slot, the first information including a first type of the first sub-OCP card and a second type of the second sub-OCP card; Performing a first configuration according to the first information, the first configuration being used to configure a first channel group of the PCH corresponding to a first pin of the first sub-OCP card into a first mode corresponding to the first type, and to configure a second channel group of the PCH corresponding to a second pin of the second sub-OCP card into a second mode corresponding to the second type.

2. The OCP card configuration method according to claim 1, wherein The PCH includes a general-purpose input / output interface (GPIO), and the GPIO is connected to the OCP connection slot. The controlling the PCH to determine whether the OCP connection slot is connected to the first OCP card includes: Monitoring a GPIO signal of the GPIO in the PCH; Determining whether the GPIO signal is a first signal, the first signal being a signal used to indicate that the OCP connection slot is connected to the first OCP card; If the GPIO signal is the first signal, determining that the OCP connection slot is connected to the first OCP card.

3. The OCP card configuration method according to claim 2, characterized in that, The OCP connection slot is further used to connect a second OCP card, and the method further includes: If the GPIO signal is not the first signal, then determining whether the GPIO signal is a second signal, the second signal being a signal used to indicate that the OCP connection slot is connected to the second OCP card; If the GPIO signal is the second signal, determining that the OCP connection slot is connected to the second OCP card; Performing a second configuration according to a third type, the second configuration being used to configure a third channel group of the PCH into a third mode corresponding to the third type, the third type being the type of the second OCP card, and the third channel group including the first channel group and the second channel group.

4. The OCP card configuration method according to claim 3, wherein The GPIO signal is a GPIO level signal.

5. The OCP card configuration method according to claim 4, wherein, The controlling the BMC to obtain the first information of the first OCP card from the OCP connection slot includes: Sending a read command to the BMC, the read command being used to notify the BMC to obtain the first information of the first OCP card from the OCP connection slot; Receiving the first information of the first OCP card from the BMC.

6. The OCP card configuration method according to claim 5, wherein, The PCH further includes a high-speed I / O bus HSIO, the HSIO is connected to the OCP connection slot, the HSIO includes N channels, the first channel group includes M channels among the N channels, and the second channel group includes N-M channels among the N channels; The first configuration is used to configure the M channels of the HSIO corresponding to the first pins of the first sub-OCP card as the first mode corresponding to the first type, and configure the N-M channels of the HSIO corresponding to the second pins of the second sub-OCP card as the second mode corresponding to the second type; The second configuration is used to configure all the N channels of the HSIO as the third mode corresponding to the third type.

7. The OCP card configuration method according to any one of claims 1 to 5, characterized in that, During the power-on process of the server, controlling the PCH to determine whether the OCP connection slot is connected to a first OCP card includes: During the process that the server displays the login interface, controlling the PCH to determine whether the OCP connection slot is connected to the first OCP card.

8. An OCP card configuration device, characterized in that, Applied to a central processing unit CPU of a server, the server further includes a platform control hub PCH, an Open Compute Project OCP connection slot, and a baseboard management controller BMC. The CPU is respectively connected to the PCH and the BMC, the PCH is connected to the OCP connection slot, the BMC is connected to the OCP connection slot, and the OCP connection slot is used to connect a first OCP card including a first sub-OCP card and a second sub-OCP card; the device includes: A determination module, configured to control the PCH to determine whether the OCP connection slot is connected to a first OCP card during the power-on process of the server; An acquisition module, configured to, if the OCP connection slot is connected to the first OCP card, control the BMC to acquire first information of the first OCP card from the OCP connection slot, where the first information includes a first type of the first sub-OCP card and a second type of the second sub-OCP card; A configuration module, configured to perform a first configuration according to the first information, where the first configuration is used to configure a first channel group of the PCH corresponding to the first pins of the first sub-OCP card as a first mode corresponding to the first type, and configure a second channel group of the PCH corresponding to the second pins of the second sub-OCP card as a second mode corresponding to the second type.

9. A server, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, the method according to any one of claims 1 to 7 is implemented.