CN111901164A - Adaptive control method, device, equipment and system for OCP NIC network card - Google Patents
Adaptive control method, device, equipment and system for OCP NIC network card Download PDFInfo
- Publication number
- CN111901164A CN111901164A CN202010692755.8A CN202010692755A CN111901164A CN 111901164 A CN111901164 A CN 111901164A CN 202010692755 A CN202010692755 A CN 202010692755A CN 111901164 A CN111901164 A CN 111901164A
- Authority
- CN
- China
- Prior art keywords
- ocp
- network card
- cpu
- working mode
- ocp nic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 20
- 230000003044 adaptive effect Effects 0.000 title claims description 13
- 230000006978 adaptation Effects 0.000 claims abstract description 54
- 238000011144 upstream manufacturing Methods 0.000 claims abstract description 41
- 238000004891 communication Methods 0.000 claims abstract description 21
- 238000004590 computer program Methods 0.000 claims description 6
- 238000012423 maintenance Methods 0.000 abstract description 9
- 238000010586 diagram Methods 0.000 description 10
- 238000013461 design Methods 0.000 description 6
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- PCHJSUWPFVWCPO-UHFFFAOYSA-N gold Chemical compound [Au] PCHJSUWPFVWCPO-UHFFFAOYSA-N 0.000 description 1
- 239000010931 gold Substances 0.000 description 1
- 229910052737 gold Inorganic materials 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0026—PCI express
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses an adaptation control method, a device, equipment and a system of an OCP NIC network card, wherein the method comprises the following steps: obtaining network card type information of an OCP NIC network card; acquiring connection information of a CPU corresponding to an OCP NIC network card; determining the working mode of the OCP NIC according to the type information and the connection information of the network card; controlling an OCP NIC network card and a target CPU, and carrying out PCIe communication according to an upstream PCIe link and a bandwidth corresponding to a working mode; the target CPU is a CPU corresponding to a working mode in the CPU; the method comprises the steps of determining the working mode of an OCP NIC network card by utilizing the type of the network card and the connection information of a CPU which are acquired in real time; and dynamically splitting an upstream PCIe link and bandwidth by using the determined working mode, so that the server can be compatible with various OCP NIC network cards, and the operation and maintenance accidents of a computer room caused by inserting the OCP NIC network cards wrongly are reduced.
Description
Technical Field
The invention relates to the field of servers, in particular to an adaptation control method, device, equipment and system for an OCP NIC network card.
Background
Nowadays, a server becomes an indispensable data computing requirement in the fields of scientific research, internet, telecommunication and the like, the design of the server is required to be more intelligent and efficient naturally, and the functions of the server are required to be more flexible and dynamic in the technical level. At present, the development speed of the information age is faster and faster, and the surge of data volume and the maintenance of a large system of server groups to a machine room undoubtedly become the management difficulty of most enterprises and organizations. Meanwhile, the server room is naturally required to be more intelligent and diversified in maintenance, and the operation of the server is required to be simpler and more flexible.
Under the push and organization of the OCP (technical association alliance of a server) association, more and more enterprises and organizations increasingly demand OCP NIC (Network Interface Card) cards in cloud computing server systems, which requires that server solution providers and complete manufacturers perfectly adapt to the compatibility of the OCP NIC cards.
In the prior art, a mainboard of a conventional server adopts an adaptive design of an OCP NIC network card with a fixed upstream PCIe link and a fixed bandwidth, the server design has limited types of compatible OCP NIC network cards and cannot meet compatible requirements of various OCP NIC network cards, a 4C +/4C connector of the fixed OCP NIC network card is mainly placed on the mainboard, and an upstream PCIe signal of the connector is connected to a fixed CPU (central processing unit) or a bridge chip to provide a fixed PCIe link and a fixed bandwidth for the OCP NIC network card. Although the standard design of providing a fixed PCIe (peripheral component interconnect express) link to the OCP NIC card based on the motherboard is effective, the standard design can only be compatible with a limited type of OCP NIC network card, and is not dynamically adjusted according to the requirements of the customers. Taking the use of the OCPNIC network card for the server by the client as an example, if the operation and maintenance personnel are not completely familiar with the design inside the server in the computer room and the types of the peripheral OCP NIC network cards, when an a-type OCP NIC network card is inserted into the server that only supports a B-type OCP NIC network card, the server will have the problem of incompatible adaptation external-plug-in OCP NIC network cards, which causes the server to be down and the OCP NIC network card not to work normally, and is not favorable for the user experience.
Therefore, how to enable the server to be compatible with various OCP NIC network cards reduces the operation and maintenance accidents of the computer room caused by inserting the OCP NIC network cards in a wrong way, improves the user experience, and is a problem which needs to be solved urgently nowadays.
Disclosure of Invention
The invention aims to provide an adaptation control method, device, equipment and system of an OCP NIC network card, so as to realize the dynamic splitting of an upstream PCIe link and bandwidth of the OCP NIC network card and enable a server to be compatible with various OCP NIC network cards.
In order to solve the above technical problem, the present invention provides an adaptation control method for an OCP NIC network card, including:
obtaining network card type information of an OCP NIC network card through an OCP adapter plate; the OCP NIC network card is connected with the OCP adapter board;
acquiring connection information of a CPU corresponding to the OCP NIC network card through the OCP adapter board; the CPU is connected with the OCP NIC network card through the OCP adapter plate, and the connection information comprises CPU address information;
determining the working mode of the OCP NIC according to the network card type information and the connection information;
controlling the OCP NIC network card and the target CPU, and carrying out PCIe communication according to an upstream PCIe link and a bandwidth corresponding to the working mode; and the target CPU is a CPU corresponding to the working mode in the CPU.
Optionally, the controlling the OCP NIC network card and the target CPU to perform PCIe communication according to the upstream PCIe link and the bandwidth corresponding to the working mode includes:
and sending the working mode to a BIOS through the OCP adapter plate so as to complete the configuration of an upstream PCIe link and a bandwidth corresponding to the working mode before the target CPU is powered on by using the BIOS.
Optionally, the determining the working mode of the OCP NIC network card according to the network card type information and the connection information includes:
and searching the working mode by utilizing a preset working mode selection list according to the network card type information and the connection information.
The invention also provides an adaptation control device of the OCP NIC network card, which comprises:
the network card type acquisition module is used for acquiring the network card type information of the OCP NIC network card through the OCP adapter plate; the OCP NIC network card is connected with the OCP adapter board;
the CPU connection acquisition module is used for acquiring the connection information of the CPU corresponding to the OCP NIC network card through the OCP adapter plate; the CPU is connected with the OCP NIC network card through the OCP adapter plate, and the connection information comprises CPU address information;
the determining module is used for determining the working mode of the OCP NIC according to the network card type information and the connection information;
the configuration module is used for controlling the OCP NIC network card and the target CPU and carrying out PCIe communication according to an upstream PCIe link and a bandwidth corresponding to the working mode; and the target CPU is a CPU corresponding to the working mode in the CPU.
Optionally, the configuration module includes:
and the sending submodule is used for sending the working mode to the BIOS through the OCP adapter plate so as to complete the configuration of an upstream PCIe link and a bandwidth corresponding to the working mode before the target CPU is powered on by utilizing the BIOS.
Optionally, the determining module is specifically configured to search the working mode by using a preset working mode selection list according to the network card type information and the connection information.
The invention also provides an adaptation control device of the OCP NIC network card, which comprises:
a memory for storing a computer program;
and a processor, configured to implement the steps of the adaptation control device for the OCP NIC network card as described above when executing the computer program.
The invention also provides an adaptation control system of the OCP NIC network card, which comprises:
an adaptation control device as described above;
the OCP adapter board is connected with the adaptive control equipment and is used for detecting the network card type information of the OCP NIC network card and the connection information of the CPU corresponding to the OCP NIC network card;
and the OCP NIC network card and the CPU are connected with the OCP adapter board.
Optionally, the system further comprises:
the BIOS is connected with the OCP adapter board and the CPU and is used for configuring an upstream PCIe link and a bandwidth corresponding to a working mode between the OCP NIC network card and the target CPU before the target CPU is powered on according to the working mode of the OCP NIC network card sent by the adaptation control equipment through the OCP adapter board; and the target CPU is a CPU corresponding to the working mode in the CPU.
Optionally, the adaptive control device is specifically a CPLD.
The invention provides an adaptation control method of an OCP NIC network card, which comprises the following steps: obtaining network card type information of the OCPNIC network card through the OCP adapter plate; the OCP NIC network card is connected with the OCP adapter board; acquiring connection information of a CPU corresponding to the OCPNIC network card through an OCP adapter plate; the CPU is connected with an OCP NIC network card through an OCP adapter board, and the connection information comprises CPU address information; determining the working mode of the OCP NIC according to the type information and the connection information of the network card; controlling the OCPNIC network card and the target CPU, and carrying out PCIe communication according to an upstream PCIe link and a bandwidth corresponding to a working mode; the target CPU is a CPU corresponding to a working mode in the CPU;
therefore, the working mode of the OCP NIC network card is determined according to the type information and the connection information of the network card, and the working mode of the OCP NIC network card is determined by utilizing the type of the OCP NIC network card and the connection information of the CPU which are obtained in real time; through controlling the OCP NIC network card and the target CPU, PCIe communication is carried out according to an upstream PCIe link and a bandwidth corresponding to a working mode, and the upstream PCIe link and the bandwidth are dynamically split by utilizing the determined working mode of the OCP NIC network card, so that the server can be compatible with various OCP NIC network cards, machine room operation and maintenance accidents caused by inserting the OCP NIC network cards in error are reduced, and user experience is improved. In addition, the invention also provides an adaptation control device, equipment and a system of the OCP NIC network card, and the adaptation control device, the equipment and the system also have the beneficial effects.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of an adaptation control method for an OCP NIC network card according to an embodiment of the present invention;
fig. 2 is a schematic connection diagram of an OCP NIC network card according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an adaptation control system of an OCP NIC network card according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating an obtaining manner of network card type information of an OCP NIC network card according to an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating an obtaining manner of connection information of a CPU according to an embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating a splitting manner of an upstream PCIe link and a bandwidth according to an embodiment of the present invention;
fig. 7 is a schematic diagram illustrating a sending and fetching manner of a working mode of an OCP NIC network card according to an embodiment of the present invention;
fig. 8 is a block diagram of an adaptation control device of an OCP NIC network card according to an embodiment of the present invention;
fig. 9 is a block diagram of a structure of an adaptation control system of an OCP NIC network card according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of an adaptation control method for an OCP NIC network card according to an embodiment of the present invention. The method can comprise the following steps:
step 101: obtaining network card type information of an OCP NIC network card through an OCP adapter plate; and the OCP NIC network card is connected with the OCP adapter board.
It can be understood that the purpose of this step may be to obtain, by a processor in an adaptation control device (e.g., the intelligent control center in fig. 2) of the OCP NIC network card in the server, network card type information of the OCP NIC network card connected to the OCP adapter board through the OCP adapter board (e.g., the OCP Riser adapter board in fig. 2), so as to determine the network card type of the OCP NIC network card extrapolated from the server. That is, as shown in fig. 2, an OCP Riser adapter board (i.e., an OCP adapter board) may be connected to the OCP NIC network card and the intelligent control center (i.e., the adaptive control device), respectively.
Specifically, for the specific connection mode between the OCP adapter board and the adaptation control device and the OCP NIC network card in this embodiment, the specific connection mode may be set by a designer according to a practical scene and a user requirement, for example, when the server is an ARM (Advanced RISCMachine, a RISC instruction processing set with low power consumption cost) server, the adaptation control device (i.e., the intelligent control center CPLD) in the ARM server shown in fig. 3 may be connected to the OCP adapter board (i.e., the OCP RISER) through a golden finger, and the OCP adapter board may be connected to the OCP NIC network card through a Primary 4C +/Secondary4C connector (i.e., a Primary 4C + Conn and a Secondary4C Conn). As long as the processor of the adaptive control device in the server can obtain the network card type information of the OCP NIC network card through the OCP adapter board, this embodiment does not impose any limitation on this.
It should be noted that, in this step, a specific manner in which the processor of the adaptation control device obtains the network card type information of the OCP NIC network card through the OCP adapter board may be set by a designer, as shown in fig. 3 and 4, the OCP adapter board (i.e., OCP RISER) may receive the network card type information (i.e., the state of PRSNTB [3:0 ]) of the OCP NIC network card (e.g., the network card of the OCP NIC 3.0) through the Primary 4C +/Secondary4C connector (i.e., Primary 4C + Conn and Secondary4C Conn), and then the OCP adapter board transmits the network card type information to the adaptation control device (i.e., the intelligent control center CPLD) through a gold finger. The present embodiment does not set any limit to this.
Specifically, the embodiment does not limit the specific content of the network card type information of the OCP NIC network card, and may be set by a designer, for example, when the OCP NIC network card is an OCP NIC 3.0 network card, the network card type information of the OCP NIC network card may be the state of the PRSNTB [3:0] signal.
Step 102: acquiring connection information of a CPU corresponding to an OCP NIC network card through an OCP adapter board; the CPU is connected with the OCP NIC network card through the OCP adapter board, and the connection information comprises CPU address information.
It can be understood that, in this step, the CPU corresponding to the OCP NIC network card may be a CPU capable of performing subsequent PCIe communication with the OCP NIC network card, such as all or part of CPUs that establish PCIe connection with the OCP patch board. The purpose of this step may be that a processor in an adaptation control device (for example, the intelligent control center CPLD in fig. 3) of the OCP NIC network card in the server acquires, through an OCP RISER (for example, the OCP RISER in fig. 3), connection information of a CPU that is connected to the OCP RISER and that is capable of performing subsequent PCIe communication with the OCP NIC network card, so as to determine a specific connection condition of CPUs that are capable of performing subsequent PCIe communication with the extrapolated OCP NIC network card in the server, that is, a PCIe link condition where each CPU is connected to the OCP RISER. That is, as shown in fig. 3, the OCP patch panel (i.e., OCP RISER) may be connected to the CPU (i.e., PU0 and CPU1) corresponding to the OCP NIC network card through a SlimSAS (an interface specification) connector.
Specifically, for the specific connection mode of the OCP patch panel and the CPU corresponding to the OCP NIC network card in this embodiment, a designer may set the connection mode by himself according to a practical scenario and a user requirement, for example, when the server is an ARM server, as shown in fig. 3 and 5, the OCP patch panel (i.e., OCP RISER) is connected to the CPU (i.e., CPU0 and CPU1) corresponding to the OCP NIC network card through a SlimSAS connector, for example, 4 SlimSAS connectors may be set on the OCP patch panel, each SlimSAS connector is connected to the SlimSAS connector of one CPU through an x8 SlimSAS line, that is, the CPU0 and the CPU1 are respectively connected to 2 SlimSAS connectors on the OCP patch panel. As long as the processor of the adaptive control device in the server can obtain the connection information of the CPU corresponding to the OCP NIC network card through the OCP adapter board, this embodiment does not limit this.
It should be noted that, in this step, a specific manner in which the processor of the adaptation control device obtains the connection information of the CPU corresponding to the OCP NIC network card through the OCP patch panel may be set by a designer, as shown in fig. 3 and fig. 5, the processor of the adaptation control device may read a logic state of an IO port (input/output port) of a preset chip (e.g., PCA9555 chip) in the OCP patch panel through an I2C (Inter-Integrated Circuit bus) signal connected to the OCP patch panel, and obtain a CPU Address ID (i.e., CPU Address information in the connection information) of an upstream PCIe signal of the OCP NIC network card, so as to determine which CPU (CPU0 or CPU1) the 1st/2 x8 lane SlimSAS comes from; the preset chip may be a chip which is arranged in the OCP adapter board and stores connection information of the CPU. The present embodiment does not set any limit to this.
Specifically, the specific content of the connection information of the CPU corresponding to the OCP NIC network card may be set by a designer, and as shown in fig. 5, the connection information of the CPU may include a CPU Address ID (CPU Address information). As long as the processor of the adaptation control device can determine, according to the connection information of the CPU, the PCIe link of the specific connection between the CPU corresponding to the OCP NIC network card and the OCP patch board (i.e., the OCPNIC network card) and the CPU connected to each PCIe link, which is not limited in this embodiment.
It can be understood that there is no necessary logical order between this step and step 101, and this step may be performed first in step 101 and then in this embodiment, or this step may be performed first and then in step 101, or two steps may be performed simultaneously, which is not limited in this embodiment.
Step 103: and determining the working mode of the OCP NIC according to the network card type information and the connection information.
It can be understood that the purpose of this step may be that the processor of the adaptation control device determines, according to the network card type information of the OCP NIC network card and the connection information of the CPU corresponding to the OCP NIC network card, a working mode in which the processor of the OCP NIC network card performs PCIe communication with a corresponding CPU (i.e., a target CPU), so as to determine a target CPU and an upstream PCIe link and a bandwidth in which the OCP NIC network card performs PCIe communication. That is, the working mode of the OCP NIC network card determined in this step may include: target CPU information, upstream PCIe link information, and bandwidth information.
Specifically, the specific manner in which the processor of the adaptation control device determines the working mode of the OCP NIC network card in this step according to the network card type information and the connection information may be set by a designer, and the processor may search the working mode of the OCP NIC network card corresponding to the network card type information and the connection information by using a preset working mode selection list according to the network card type information and the connection information, that is, the optimal working mode of different types of OCP NIC network cards under various CPU connection conditions may be set in the preset working mode selection list. For example, when the OCP NIC network Card is an OCP NIC 3.0 network Card, the preset working mode selection list may be "Table 36: PCIe Bifurcation Decoder for x32, x16, x8, x4, x2 and x1 Card width" in the OCP NIC 3.0 protocol, that is, the processor may perform a list query according to the network Card type information and the connection information and according to "Table 36: PCIe Bifurcation Decoder for x32, x16, x8, x4, x2 and x1 Card width" in the OCP NIC 3.0 protocol, so as to obtain the working mode of the OCP NIC network Card.
Step 104: controlling an OCP NIC network card and a target CPU, and carrying out PCIe communication according to an upstream PCIe link and a bandwidth corresponding to a working mode; the target CPU is a CPU corresponding to the working mode in the CPU.
It can be understood that the purpose of this step may be that the processor of the adaptation control device controls the OCP NIC network card and the CPU (i.e., the target CPU) corresponding to the determined working mode, so that the subsequent OCP NIC network card and the target CPU may perform PCIe communication according to the upstream PCIe link and the bandwidth corresponding to the working mode, thereby implementing dynamic adjustment of the upstream PCIe link and the bandwidth of the OCP NIC network card, enabling the server to compatibly adapt to multiple types of OCP NIC network cards, reducing machine room operation and maintenance accidents caused by incompatibility of the inserted OCP NIC network cards, and improving user experience.
Specifically, the processor of the adaptive control device in this step controls the OCP NIC network card and the target CPU, and the specific mode of PCIe communication according to the upstream PCIe link and the bandwidth corresponding to the working mode may be set by the designer, for example, when the server is an ARM server, that is, a server of an ARM architecture, since the ARM server needs to complete the splitting of the upstream PCIe link and the bandwidth before the start-up, the processor in this step may complete the splitting of the upstream PCIe link and the bandwidth between the OCP NIC network card and the target CPU before the target CPU starts up; for example, the step may include sending the working mode to the BIOS through the OCP patch panel, so as to complete the configuration of the upstream PCIe link and the bandwidth corresponding to the working mode before the target CPU is powered on by using the BIOS; as shown in fig. 6, after determining the working mode of the OCP NIC network card, the processor of the adaptation control device (i.e., the intelligent control center) may set a BID (i.e., BW _ TYPE _ ID) state corresponding to the working mode through a general GPIO Expansion (i.e., input/output interface) in the OCP patch board (i.e., OCP RISER), so that the OCP patch board reports the BID state to a preset working mode chip (e.g., PCA9555 chip) on the motherboard through a cable, so that the BIOS (basic input/output system) on the motherboard can read the BID state through I2C to determine the working mode of the OCP NIC network card, and complete splitting of an upstream PCIe link and a bandwidth between the OCP NIC network card corresponding to the working mode and the target CPU.
Correspondingly, the step may further include the step of transmitting the determined working mode of the OCP NIC network card to the OCP NIC network card and the target CPU by the processor of the adaptation control device, so that the subsequent OCP NIC network card and the target CPU may perform PCIe communication according to the upstream PCIe link and the bandwidth corresponding to the working mode. As shown in fig. 6, after the BIOS on the motherboard reads the BID state through I2C to determine the working mode of the OCP NIC network card, and completes the splitting of the upstream PCIe link and the bandwidth between the OCP NIC network card corresponding to the working mode and the target CPU, the read BID state may be transmitted to the target CPU (e.g., CPU0) through I2C; as shown in fig. 7, after determining the working mode of the OCP NIC network card, the processor of the adaptive control device (i.e., the intelligent control center) may set a BIF [2:0] signal corresponding to the working mode through a general GPIO Expansion (input/output interface) in the OCP RISER (i.e., the OCP RISER), so that the OCP NIC network card can obtain the BIF [2:0] signal through the Primary 4C +/Secondary4C connector (i.e., the Primary 4C + Conn and the Secondary4C Conn), and obtain the determined working mode of the OCP NIC network card.
In this embodiment, the working mode of the OCP NIC network card is determined according to the type information and the connection information of the network card, and the working mode of the OCP NIC network card is determined by using the type of the OCP NIC network card and the connection information of the CPU, which are obtained in real time; through controlling the OCP NIC network card and the target CPU, PCIe communication is carried out according to an upstream PCIe link and a bandwidth corresponding to a working mode, and the upstream PCIe link and the bandwidth are dynamically split by utilizing the determined working mode of the OCP NIC network card, so that the server can be compatible with various OCP NIC network cards, machine room operation and maintenance accidents caused by inserting the OCP NIC network cards in error are reduced, and user experience is improved.
Referring to fig. 8, fig. 8 is a block diagram illustrating a structure of an adaptation control device of an OCP NIC network card according to an embodiment of the present invention. The apparatus may include:
the network card type obtaining module 10 is configured to obtain network card type information of the OCP NIC network card through the OCP adapter board; the OCP NIC network card is connected with the OCP adapter board;
the CPU connection obtaining module 20 is configured to obtain, through the OCP adapter board, connection information of the CPU corresponding to the OCP NIC network card; the CPU is connected with an OCP NIC network card through an OCP adapter board, and the connection information comprises CPU address information;
the determining module 30 is configured to determine a working mode of the OCP NIC network card according to the network card type information and the connection information;
the configuration module 40 is used for controlling the OCP NIC network card and the target CPU and carrying out PCIe communication according to an upstream PCIe link and a bandwidth corresponding to a working mode; the target CPU is a CPU corresponding to the working mode in the CPU.
Optionally, the configuration module 40 may include:
and the sending submodule is used for sending the working mode to the BIOS through the OCP adapter plate so as to complete the configuration of an upstream PCIe link and a bandwidth corresponding to the working mode before the target CPU is powered on by using the BIOS.
Optionally, the determining module 30 may be specifically configured to search for the working mode by using a preset working mode selection list according to the network card type information and the connection information.
In this embodiment, in the embodiment of the present invention, the determining module 30 determines the working mode of the OCP NIC network card according to the network card type information and the connection information, and determines the working mode of the OCPNIC network card by using the real-time obtained type of the OCP NIC network card and the connection information of the CPU; the OCP NIC network card and the target CPU are controlled by the configuration module 40, PCIe communication is carried out according to an upstream PCIe link and a bandwidth corresponding to a working mode, and the upstream PCIe link and the bandwidth are dynamically split by utilizing the determined working mode of the OCP NIC network card, so that the server can be compatible with various OCP NIC network cards, the operation and maintenance accidents of a computer room caused by inserting the OCP NIC network card incorrectly are reduced, and the user experience is improved
An embodiment of the present invention further provides an adaptation control device for an OCP NIC network card, including: a memory for storing a computer program; and a processor, configured to implement the steps of the adaptation control device of the OCP NIC network card provided in the above embodiment when executing the computer program.
Referring to fig. 9, fig. 9 is a block diagram of a structure of an adaptation control system of an OCP NIC network card according to an embodiment of the present invention, where the system may include:
the adaptation control device 100 of the OCP NIC network card provided in the above embodiment;
the OCP adapter board 200 connected to the adaptation control device 100 is configured to detect network card type information of the OCP NIC network card 300 and connection information of the CPU400 corresponding to the OCP NIC network card 300;
an OCP NIC network card 300 and a CPU400 connected with the OCP adapter board 200.
Optionally, the system may further include:
the BIOS is connected with the OCP adapter board and the CPU and is used for configuring an upstream PCIe link and a bandwidth corresponding to a working mode between the OCP NIC network card and the target CPU before the target CPU is electrified according to the working mode of the OCPNIC network card sent by the adaptation control equipment through the OCP adapter board; the target CPU is a CPU corresponding to the working mode in the CPU.
Optionally, the embodiment does not limit the specific device type of the adaptive control device 100, for example, the adaptive control device 100 may be specifically a CPLD (complex programmable logic device), may also be specifically an FPGA (field programmable gate array), and may also be a combination of the two.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the device, the apparatus and the system disclosed by the embodiment, since the device corresponds to the method disclosed by the embodiment, the description is relatively simple, and the relevant points can be referred to the description of the method.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The foregoing describes a detailed description of a method, an apparatus, a device and a system for controlling the adaptation of an OCP NIC network card according to the present invention. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
Claims (10)
1. An adaptation control method for an OCP NIC network card, comprising:
obtaining network card type information of an OCP NIC network card through an OCP adapter plate; the OCP NIC network card is connected with the OCP adapter board;
acquiring connection information of a CPU corresponding to the OCP NIC network card through the OCP adapter board; the CPU is connected with the OCP NIC network card through the OCP adapter plate, and the connection information comprises CPU address information;
determining the working mode of the OCP NIC according to the network card type information and the connection information;
controlling the OCP NIC network card and the target CPU, and carrying out PCIe communication according to an upstream PCIe link and a bandwidth corresponding to the working mode; and the target CPU is a CPU corresponding to the working mode in the CPU.
2. The OCP NIC adapter control method of claim 1, wherein the controlling the OCP NIC adapter and the target CPU to perform PCIe communication according to the upstream PCIe link and bandwidth corresponding to the working mode comprises:
and sending the working mode to a BIOS through the OCP adapter plate so as to complete the configuration of an upstream PCIe link and a bandwidth corresponding to the working mode before the target CPU is powered on by using the BIOS.
3. The OCP NIC network card adaptation control method of claim 1, wherein the determining the working mode of the OCP NIC network card according to the network card type information and the connection information comprises:
and searching the working mode by utilizing a preset working mode selection list according to the network card type information and the connection information.
4. An adaptation control device of an OCP NIC network card, comprising:
the network card type acquisition module is used for acquiring the network card type information of the OCP NIC network card through the OCP adapter plate; the OCP NIC network card is connected with the OCP adapter board;
the CPU connection acquisition module is used for acquiring the connection information of the CPU corresponding to the OCP NIC network card through the OCP adapter plate; the CPU is connected with the OCP NIC network card through the OCP adapter plate, and the connection information comprises CPU address information;
the determining module is used for determining the working mode of the OCP NIC according to the network card type information and the connection information;
the configuration module is used for controlling the OCP NIC network card and the target CPU and carrying out PCIe communication according to an upstream PCIe link and a bandwidth corresponding to the working mode; and the target CPU is a CPU corresponding to the working mode in the CPU.
5. The OCP NIC card adaptation control device of claim 4, wherein the configuration module comprises:
and the sending submodule is used for sending the working mode to the BIOS through the OCP adapter plate so as to complete the configuration of an upstream PCIe link and a bandwidth corresponding to the working mode before the target CPU is powered on by utilizing the BIOS.
6. The OCP NIC card adaptation control device of claim 4, wherein the determining module is specifically configured to search for the working mode by using a preset working mode selection list according to the network card type information and the connection information.
7. An adaptation control device of an OCP NIC network card, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the adaptation control device of the OCP NIC network card according to any one of claims 1 to 3 when executing the computer program.
8. An adaptation control system of an OCP NIC network card, comprising:
the adaptation control device of claim 7;
the OCP adapter board is connected with the adaptive control equipment and is used for detecting the network card type information of the OCP NIC network card and the connection information of the CPU corresponding to the OCP NIC network card;
and the OCP NIC network card and the CPU are connected with the OCP adapter board.
9. The adaptation control system of claim 8, further comprising:
the BIOS is connected with the OCP adapter board and the CPU and is used for configuring an upstream PCIe link and a bandwidth corresponding to a working mode between the OCP NIC network card and the target CPU before the target CPU is powered on according to the working mode of the OCP NIC network card sent by the adaptation control equipment through the OCP adapter board; and the target CPU is a CPU corresponding to the working mode in the CPU.
10. The adaptation control system according to claim 8, characterized in that the adaptation control device is embodied as a CPLD.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010692755.8A CN111901164B (en) | 2020-07-17 | 2020-07-17 | Adaptive control method, device, equipment and system of OCP NIC network card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010692755.8A CN111901164B (en) | 2020-07-17 | 2020-07-17 | Adaptive control method, device, equipment and system of OCP NIC network card |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111901164A true CN111901164A (en) | 2020-11-06 |
CN111901164B CN111901164B (en) | 2023-04-28 |
Family
ID=73190193
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010692755.8A Active CN111901164B (en) | 2020-07-17 | 2020-07-17 | Adaptive control method, device, equipment and system of OCP NIC network card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111901164B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112615739A (en) * | 2020-12-10 | 2021-04-06 | 苏州浪潮智能科技有限公司 | Method and system for adapting OCP3.0 network card in multi-host application environment |
CN112732627A (en) * | 2021-01-08 | 2021-04-30 | 苏州浪潮智能科技有限公司 | OCP device and server |
CN113645049A (en) * | 2021-07-30 | 2021-11-12 | 苏州浪潮智能科技有限公司 | Network card electrifying method, system, storage medium and equipment |
CN114676077A (en) * | 2022-03-18 | 2022-06-28 | 苏州浪潮智能科技有限公司 | Intelligent network card automatic identification and resource allocation system and method compatible with different systems |
WO2023272989A1 (en) * | 2021-06-30 | 2023-01-05 | 苏州浪潮智能科技有限公司 | Bandwidth allocation method for ocp network card, and related apparatus |
WO2023045389A1 (en) * | 2021-09-26 | 2023-03-30 | 华为技术有限公司 | Network card adaptation circuit, network card adaptation method, and related apparatus |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8631163B1 (en) * | 2003-12-11 | 2014-01-14 | At&T Intellectual Property Ii, L.P. | Automatic connectivity determiner and configurator |
CN108228489A (en) * | 2018-01-02 | 2018-06-29 | 郑州云海信息技术有限公司 | A kind of method that more network interface cards are connected based on OCP standards |
CN210639540U (en) * | 2019-11-21 | 2020-05-29 | 苏州浪潮智能科技有限公司 | OCP NIC3.0 adapter card capable of supporting Multihost |
CN111400217A (en) * | 2020-02-29 | 2020-07-10 | 苏州浪潮智能科技有限公司 | OCP adapter card and computer equipment |
-
2020
- 2020-07-17 CN CN202010692755.8A patent/CN111901164B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8631163B1 (en) * | 2003-12-11 | 2014-01-14 | At&T Intellectual Property Ii, L.P. | Automatic connectivity determiner and configurator |
CN108228489A (en) * | 2018-01-02 | 2018-06-29 | 郑州云海信息技术有限公司 | A kind of method that more network interface cards are connected based on OCP standards |
CN210639540U (en) * | 2019-11-21 | 2020-05-29 | 苏州浪潮智能科技有限公司 | OCP NIC3.0 adapter card capable of supporting Multihost |
CN111400217A (en) * | 2020-02-29 | 2020-07-10 | 苏州浪潮智能科技有限公司 | OCP adapter card and computer equipment |
US20230047735A1 (en) * | 2020-02-29 | 2023-02-16 | Inspur Suzhou Intelligent Technology Co., Ltd. | Ocp adapter card and computer device |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112615739A (en) * | 2020-12-10 | 2021-04-06 | 苏州浪潮智能科技有限公司 | Method and system for adapting OCP3.0 network card in multi-host application environment |
CN112615739B (en) * | 2020-12-10 | 2022-05-10 | 苏州浪潮智能科技有限公司 | Method and system for adapting OCP3.0 network card in multi-host application environment |
CN112732627A (en) * | 2021-01-08 | 2021-04-30 | 苏州浪潮智能科技有限公司 | OCP device and server |
CN112732627B (en) * | 2021-01-08 | 2023-01-10 | 苏州浪潮智能科技有限公司 | OCP device and server |
WO2023272989A1 (en) * | 2021-06-30 | 2023-01-05 | 苏州浪潮智能科技有限公司 | Bandwidth allocation method for ocp network card, and related apparatus |
CN113645049A (en) * | 2021-07-30 | 2021-11-12 | 苏州浪潮智能科技有限公司 | Network card electrifying method, system, storage medium and equipment |
CN113645049B (en) * | 2021-07-30 | 2022-11-18 | 苏州浪潮智能科技有限公司 | Network card electrifying method, system, storage medium and equipment |
WO2023045389A1 (en) * | 2021-09-26 | 2023-03-30 | 华为技术有限公司 | Network card adaptation circuit, network card adaptation method, and related apparatus |
CN114676077A (en) * | 2022-03-18 | 2022-06-28 | 苏州浪潮智能科技有限公司 | Intelligent network card automatic identification and resource allocation system and method compatible with different systems |
CN114676077B (en) * | 2022-03-18 | 2023-07-18 | 苏州浪潮智能科技有限公司 | Intelligent network card automatic identification and resource allocation system and method compatible with different systems |
Also Published As
Publication number | Publication date |
---|---|
CN111901164B (en) | 2023-04-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111901164B (en) | Adaptive control method, device, equipment and system of OCP NIC network card | |
CN111159085B (en) | Automatic configuration method of PCIE (peripheral component interface express) bandwidth, server mainboard and server | |
CN1892586B (en) | Centralized hot-pluggable video controller and redirectional logic unit | |
CN113872796B (en) | Server and node equipment information acquisition method, device, equipment and medium thereof | |
CN109947682B (en) | Server mainboard and server | |
WO2024078223A1 (en) | Electronic device, and pcie topology configuration method and apparatus thereof | |
CN115686872B (en) | Memory resource processing equipment, method, device and medium based on BMC (baseboard management controller) | |
CN110362511B (en) | PCIE equipment | |
CN116069701A (en) | PCIE resource identification method, device, equipment and storage medium | |
CN116644011B (en) | Quick identification method, device and equipment of I2C equipment and storage medium | |
US10176133B2 (en) | Smart device with no AP | |
WO2024113767A1 (en) | Power-on method and power-on apparatus for smart network interface cards | |
CN105677606A (en) | Hot-swapping method of bus device and bus device | |
CN112615739B (en) | Method and system for adapting OCP3.0 network card in multi-host application environment | |
CN113961489A (en) | Data access method, device, equipment and storage medium | |
CN212515790U (en) | Server system configuration switching device and multi-configuration server | |
CN216014148U (en) | Server and server backboard | |
CN111061661B (en) | PowerPC platform-based RapidIO data packet processing method and device | |
CN117971135B (en) | Storage device access method and device, storage medium and electronic device | |
CN112732627B (en) | OCP device and server | |
CN114490475A (en) | PCI-E adapter card, network card access method, device, equipment and medium | |
CN115237849B (en) | Dynamically reconfigurable and heterogeneous computing module and computing device | |
CN113645088B (en) | Automatic regulation method, system, device and medium for network card NCSI signal | |
CN210983372U (en) | Hardware arbitration device under double-partition mode | |
CN116880327A (en) | Main and standby platform cascading method, device, equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |