CN113645088A - Method, system and device for automatically adjusting network card NCSI signal and readable storage medium - Google Patents
Method, system and device for automatically adjusting network card NCSI signal and readable storage medium Download PDFInfo
- Publication number
- CN113645088A CN113645088A CN202110692789.1A CN202110692789A CN113645088A CN 113645088 A CN113645088 A CN 113645088A CN 202110692789 A CN202110692789 A CN 202110692789A CN 113645088 A CN113645088 A CN 113645088A
- Authority
- CN
- China
- Prior art keywords
- ncsi
- cpld
- network card
- signal
- bmc
- 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 38
- 230000006978 adaptation Effects 0.000 claims abstract description 42
- 238000004891 communication Methods 0.000 claims abstract description 33
- 238000012360 testing method Methods 0.000 claims abstract description 25
- 230000008054 signal transmission Effects 0.000 claims description 4
- 230000005540 biological transmission Effects 0.000 claims 1
- 238000012545 processing Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000003750 conditioning effect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
- G06F13/102—Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- 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/0016—Inter-integrated circuit (I2C)
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Information Transfer Systems (AREA)
Abstract
The invention provides a method, a system, a device and a readable storage medium for automatically adjusting a network card NCSI signal, wherein the method comprises the following steps: the NCSI signal of the BMC is accessed to the CPLD of the mainboard, and the NCSI signal is transmitted to the network card PHY chip through the CPLD of the mainboard; obtaining the ID value of the network card from the BIOS through the CPLD; judging whether an NCSI delay value of the network card is stored in the CPLD according to the ID value of the network card; if so, adjusting the NCSI time sequence according to the NCSI delay value, and establishing the communication between the network card and the BMC; if not, the NCSI delay value is adjusted through the CPLD, the network card is subjected to adaptation test after the adjustment is completed, and the current NCSI delay value is stored after the adaptation is successful. The invention effectively solves the problem that the network card adaptation fails under the conditions that the NCSI signal link is too long and the NCSI signal delay of the network card cannot be adjusted.
Description
Technical Field
The invention relates to the technical field of server testing, in particular to an automatic adjustment method, system and device of a network card NCSI signal and a readable storage medium.
Background
With the development of emerging technologies such as 5G, big data, cloud computing, industrial internet and the like, the interaction of network data in the server is more and more frequent, various PCIE network cards or OCP network cards are applied in a large amount, and the server has a great demand for the network cards. The network card is managed out of band by the server, and an engineer can manage and maintain the server at any place through network connection without going into a laboratory machine room through out-of-band management. NCSI (Network Controller Sideband Interface) is a signal Interface for realizing out-of-band management of a server.
To meet the various configuration needs of customers, such as: some configurations require that the NCSI is connected out through the front IO, and some configurations require that the NCSI is connected out through the rear IO, but only one interface for the NCSI to be led out from the BMC is provided, and the front-out and the rear-out of the NCSI are considered at the same time, so that the wiring length of the NCSI on the board can exceed 10 inches, and the length of the NCSI cable also exceeds 10 inches generally. The length of the NCSI signal wiring on the network card is not calculated, the length of the NCSI wiring of the BMC on the mainboard and the length of the corresponding cable exceed 20 inches, and the design requirements of the NCSI on a BMC manual are exceeded. The mainboard of different manufacturers can adapt to the network cards of different manufacturers, and the wiring length of the other party is unknown when the mainboard and the network cards are designed. The total routing of the NCSI exceeds the specification requirements, which may result in timing errors of the NCSI. Specifically, the establishing and holding time of the BMC NCSI RX signal on the motherboard cannot be kept to meet the timing requirement, but the delay of the intelligent network card connected to the NCSI cannot be adjusted to meet the timing requirement of the RX signal at the BMC receiving terminal. Therefore, the fixed delay of the NCSI signals of the network cards of different manufacturers is not exactly the same, so that the NCSI signal timing sequence on the motherboard hardly has a uniform delay value.
Therefore, how to implement automatic adjustment of the NCSI signal of the network card to adapt to network card devices of different manufacturers to implement stable communication of the network card is a problem to be solved urgently.
Disclosure of Invention
In view of the above problems, an object of the present invention is to provide a method, a system, a device and a readable storage medium for automatically adjusting an NCSI signal of a network card, so as to effectively solve the problem that the adaptation between a server and the network card fails due to the fact that the routing is too long and the timing delay of the NCSI cannot be automatically adjusted.
In order to achieve the purpose, the invention is realized by the following technical scheme: an automatic adjustment method for network card NCSI signals comprises the following steps:
the NCSI signal of the BMC is accessed to the CPLD of the mainboard, and the NCSI signal is transmitted to the network card PHY chip through the CPLD of the mainboard;
obtaining the ID value of the network card from the BIOS through the CPLD;
judging whether an NCSI delay value of the network card is stored in the CPLD according to the ID value of the network card;
if yes, reading the NCSI delay value, adjusting the NCSI time sequence according to the NCSI delay value, and establishing communication between the network card and the BMC;
if not, the NCSI delay value is adjusted through the CPLD, the network card is subjected to adaptation test after the adjustment is completed, and the current NCSI delay value is stored in the CPLD after the adaptation is successful.
Further, the accessing the NCSI signal of the BMC to the CPLD of the motherboard, and transmitting the NCSI signal to the network card PHY chip through the CPLD of the motherboard specifically includes:
establishing I2C signal connection between the BMC and the CPLD, wherein the I2C signal is used for transmitting the timing parameter and the NCSI delay value of the NCSI signal;
connecting an SMBUS signal of a platform control center on a mainboard to a CPLD, wherein the SMBUS signal is used for transmitting the ID of the PCIE equipment acquired from the BIOS;
storing the ID and NCSI delay values of the PCIE equipment in a FLASH of the CPLD;
and defining a GPIO interface of the CPLD, and transmitting signals between the BMC and the CPLD.
Further, the accessing the NCSI signal of the BMC to the CPLD of the motherboard, and transmitting the NCSI signal to the network card PHY chip through the CPLD of the motherboard further includes:
if the length of the current NCSI cable is larger than the preset length threshold value, a driver is arranged between the CPLD and the network card PHY chip, and the NCSI signal transmission of the CPLD and the network card PHY chip is carried out through the driver.
Further, the GPIO interface defining the CPLD includes:
defining GPIO interfaces TXD0, TXD1, TXEN, RXD0, RXD1, CRSDV and REFCLK of the CPLD as signal interfaces between the BMC and the CPLD;
a GPIO interface TXD0_ B, TXD1_ B, TXEN _ B, RXD0_ B, RXD1_ B, CRSDV _ B, REFCLK _ B of the CPLD is defined as a signal interface between the CPLD and the driver.
Further, the accessing the NCSI signal of the BMC to the CPLD of the motherboard, and transmitting the NCSI signal to the network card PHY chip through the CPLD of the motherboard further includes:
if the length of the current NCSI cable is larger than a preset length threshold value, the CPLD is connected with the network card PHY chip in series through a resistor.
Further, the GPIO interface defining the CPLD includes:
defining GPIO interfaces TXD0, TXD1, TXEN, RXD0, RXD1, CRSDV and REFCLK of the CPLD as signal interfaces between the BMC and the CPLD;
GPIO interfaces XD0_ B, TXD1_ B, TXEN _ B, RXD0_ B, RXD1_ B and CRSDV _ B of the CPLD are defined as signal interfaces between the CPLD and the platform control center.
Further, the adjusting of the NCSI delay value by the CPLD and the adaptation test of the network card after the adjustment are completed include the following steps:
step 1: the original data of the NCSI signal is received through the CPLD, and the delay time of the clock relative to the original data of the NCSI signal is adjusted forward or backward by 0.1ns to serve as the current NCSI delay value;
step 2: sending a ping command through the BMC;
and step 3: judging whether ping communication can be achieved, if so, turning to the step 4, and if not, turning to the step 7;
and 4, step 4: starting a pressure test of the network card;
and 5: judging whether the pressure of the network card passes, if so, turning to step 6, otherwise, turning to step 7;
step 6: the CPLD stores the current NCSI delay value in a FLASH of the CPLD;
and 7: the clock is continuously adjusted forward or backward by 0.1ns based on the current delay time as the current NCSI delay value, and goes to step 2.
Correspondingly, the invention also discloses an automatic adjusting system of the network card NCSI signal, which comprises:
the signal access unit is used for accessing the NCSI signal of the BMC to the CPLD of the mainboard and transmitting the NCSI signal to the network card PHY chip through the CPLD of the mainboard;
the data reading unit is used for acquiring the ID value of the network card from the BIOS through the CPLD;
the judging unit is used for judging whether the NCSI delay value of the network card is stored in the CPLD according to the ID value of the network card; the communication unit is used for adjusting the NCSI time sequence according to the NCSI delay value and establishing the communication between the network card and the BMC;
and the signal adjusting unit is used for adjusting the NCSI delay value through the CPLD, performing adaptation test of the network card after the adjustment is finished, and storing the current NCSI delay value in the CPLD after the adaptation is successful.
Further, the signal access unit is specifically configured to:
establishing I2C signal connection between the BMC and the CPLD, wherein the I2C signal is used for transmitting the timing parameter and the NCSI delay value of the NCSI signal;
connecting an SMBUS signal of a platform control center on a mainboard to a CPLD, wherein the SMBUS signal is used for transmitting the ID of the PCIE equipment acquired from the BIOS;
storing the ID and NCSI delay values of the PCIE equipment in a FLASH of the CPLD;
defining a GPIO interface of the CPLD, and transmitting signals between the BMC and the CPLD;
if the length of the current NCSI cable is larger than a preset length threshold value, a driver is arranged between the CPLD and the network card PHY chip, and NCSI signal transmission of the CPLD and the network card PHY chip is carried out through the driver;
if the length of the current NCSI cable is larger than a preset length threshold value, the CPLD is connected with the network card PHY chip in series through a resistor.
Further, the signal conditioning unit is specifically configured to:
the CPLD receives the original data of the NCSI signal, the clock is delayed forward by 0.1ns relative to the data or backward by 0.1ns, then the BMC sends out a ping command, and if the ping is enabled, the pressure test of the network card is carried out downwards. And after the pressure test is passed, the adjusted NCSI delay parameters are stored in a FLASH of the CPLD through the CPLD. If the pressure test of the network card does not pass the description and the time sequence does not meet the requirement, continuing to advance or retreat for delay, and adding an adjustment interval of 0.1ns on the basis of the last time for each adjustment.
Correspondingly, the invention discloses an automatic adjusting device of a network card NCSI signal, which comprises:
the memory is used for storing an automatic adjusting program of the network card NCSI signal;
and the processor is used for realizing the steps of the automatic adjustment method of the network card NCSI signal when executing the automatic adjustment program of the network card NCSI signal.
Correspondingly, the invention discloses a readable storage medium, wherein an automatic adjustment program of the network card NCSI signal is stored on the readable storage medium, and when the automatic adjustment program of the network card NCSI signal is executed by a processor, the steps of the automatic adjustment method of the network card NCSI signal are realized.
Compared with the prior art, the invention has the beneficial effects that:
1. the delay adjustment of the NCSI signal is realized through the CPLD when the network card is adapted, and then the delay value is stored in the FLASH of the CPLD. When different network cards are used, the CPLD reads delay values corresponding to the different network cards, so that the NCSI signals meet the establishment holding time and the network cards are kept in normal communication.
2. The method adjusts the NCSI signal time sequence delay through the CPLD, correspondingly stores the adjustment parameters and the ID information of the network card in the FLASH, and determines the delay value through the CPLD according to the ID information of different network cards after the system is started, thereby realizing the adaptation and normal communication of the network cards.
3. The invention can also be used in other application occasions where the delay needs to be adjusted by low-speed signals.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
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 flow chart of the method of the present invention;
fig. 2 is a system block diagram of the present invention.
In the figure, 1 is a signal access unit; 2 is a data reading unit; a judgment unit 3; 4 is a communication unit; and 5 is a signal adjusting unit.
Detailed Description
The core of the invention is to provide an automatic adjustment method of network card NCSI signal, in the prior art, BMC generally has two network interfaces, one is used for the specialized network management port, connect to RJ45 above; and the other one is connected to a PCIE network card or an OCP network card as a shared network port. The NCSI signal of the BMC is directly connected to the network card PHY through a cable, or is connected to the network card PHY through a cable through a switch. However, since the total routing of the NCSI on the motherboard and the network card is too long, and the NCSI link parameter is fixed, that is, the delay value of the timing sequence is fixed, the setup holding time of the NCS signal receiving end of the server does not meet the timing sequence requirement, which may cause a failure in the network card adaptation.
The method for automatically adjusting the network card NCSI signal provided by the invention comprises the steps of firstly, accessing the NCSI signal of the BMC to the CPLD of the mainboard, and transmitting the NCSI signal to the network card PHY chip through the CPLD of the mainboard. And then, the ID value of the network card is acquired from the BIOS through the CPLD, and whether the NCSI delay value of the network card is stored in the CPLD is judged according to the ID value of the network card. If yes, reading the NCSI delay value, adjusting the NCSI time sequence according to the NCSI delay value, and establishing communication between the network card and the BMC; if not, the NCSI delay value is adjusted through the CPLD, the network card is subjected to adaptation test after the adjustment is completed, and the current NCSI delay value is stored in the CPLD after the adaptation is successful. Therefore, the delay adjustment of the NCSI signal is realized through the CPLD when the network card is adapted, and then the delay value is stored in the FLASH of the CPLD. When different network cards are used, the CPLD reads delay values corresponding to the different network cards, so that the NCSI signals meet the establishment holding time and the network cards are kept in normal communication.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the 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.
The first embodiment is as follows:
as shown in fig. 1, the present embodiment provides an automatic adjustment method of a network card NCSI signal, including the following steps:
s1: and the NCSI signal of the BMC is accessed to the CPLD of the mainboard, and the NCSI signal is transmitted to the network card PHY chip through the CPLD of the mainboard.
Firstly, establishing I2C signal connection between the BMC and the CPLD, wherein the I2C signal is used for transmitting the timing parameter and the NCSI delay value of the NCSI signal; an SMBUS signal of a platform control center on the mainboard is connected to the CPLD, and the SMBUS signal is used for transmitting the ID of the PCIE equipment acquired from the BIOS; the ID and the NCSI delay value of the PCIE equipment are stored in the FLASH of the CPLD; and finally, defining a GPIO interface of the CPLD, wherein the GPIO interface is used for transmitting signals between the BMC and the CPLD.
Whether a driver (BUFFER chip) is needed to be collocated between the CPLD and the network card PHY for transmitting the NCSI signal is determined according to the length of the NCSI cable, and if the driver is not used, the NCSI signal is directly transmitted by serially connecting resistors; therefore, the GPIO interface of the CPLD is defined in two ways:
(1) when the driver is matched, GPIO interfaces TXD0, TXD1, TXEN, RXD0, RXD1, CRSDV and REFCLK of the CPLD are defined as signal interfaces between the BMC and the CPLD; a GPIO interface TXD0_ B, TXD1_ B, TXEN _ B, RXD0_ B, RXD1_ B, CRSDV _ B, REFCLK _ B of the CPLD is defined as a signal interface between the CPLD and the driver.
(2) When the driver is not matched, GPIO interfaces TXD0, TXD1, TXEN, RXD0, RXD1, CRSDV and REFCLK of the CPLD are defined as signal interfaces between the BMC and the CPLD; GPIO interfaces XD0_ B, TXD1_ B, TXEN _ B, RXD0_ B, RXD1_ B and CRSDV _ B of the CPLD are defined as signal interfaces between the CPLD and the platform control center.
S2: and obtaining the ID value of the network card from the BIOS through the CPLD.
S3: and judging whether the NCSI delay value of the network card is stored in the CPLD according to the ID value of the network card, if so, turning to the step S4, otherwise, turning to the step S5.
S4: and reading the NCSI delay value, adjusting the NCSI time sequence according to the NCSI delay value, and establishing the communication between the network card and the BMC.
S5: and adjusting the NCSI delay value through the CPLD, performing adaptation test of the network card after the adjustment is finished, and storing the current NCSI delay value in the CPLD after the adaptation is successful.
Wherein, step S5 includes the following steps:
step 1: the original data of the NCSI signal is received by the CPLD, and the delay time of the clock relative to the original data of the NCSI signal is adjusted forward or backward by 0.1ns as the current NCSI delay value.
Step 2: a ping command is issued by the BMC.
And step 3: and (4) judging whether ping communication can be achieved, if so, turning to the step 4, and if not, turning to the step 7.
And 4, step 4: and starting a pressure test of the network card.
And 5: and (6) judging whether the pressure of the network card passes, if so, turning to the step 6, and otherwise, turning to the step 7.
Step 6: the CPLD saves the current NCSI delay value in the FLASH of the CPLD.
And 7: the clock is continuously adjusted forward or backward by 0.1ns based on the current delay time as the current NCSI delay value, and goes to step 2.
The embodiment provides an automatic adjustment method for an NCSI signal of a network card, which adjusts the NCSI signal timing delay through a CPLD, stores the adjustment parameters and the ID information of the network card in a FLASH of the CPLD in a one-to-one correspondence manner, determines the delay value through the ID information of different network cards after the system is started, and then realizes the adaptation and normal communication of the network card.
Example two:
based on the first embodiment, the present embodiment further discloses an automatic adjustment method for a network card NCSI signal, including:
1. when the network card is used, the network card is divided into a network card NCSI (network interface card network interface Standard) adaptation mode and a network card normal use mode, wherein the network card adaptation mode is used for adjusting the time sequence delay, and the network card normal mode is used for normal communication of the network card. The BMC can set a network card adaptation mode into an automatic adaptation mode and a manual adaptation mode.
2. After the BMC sets the manual adaptation mode, an engineer may manually set the NCSI delay parameter on a management page of the BMC, may input intervals of delay adjustment to be 0.1ns, 0.2ns, 0.3ns, and the like, and a range size of the delay adjustment, and transmit the interval and the range size to the CPLD through I2C to perform corresponding adaptation operation. The BMC web page management interface can display the adjusted NCSI timing sequence for reference. After the CPLD adaptation is completed, the delay parameters are stored in the flash, and the network card can normally communicate.
3. After the CPLD adaptation is completed, the delay parameters are stored in the FLASH of the CPLD, the BMC is set to be in a network card normal use mode, and the network card can normally communicate.
4. After the BMC sets the automatic adaptation mode, the CPLD judges whether a corresponding network card NCSI delay value exists or not according to the ID value of the network card acquired from the BIOS.
5. If the corresponding NCSI delay value is stored in the FLASH of the CPLD, the CPLD works in the normal mode of the network card, the NCSI delay value is read, and the network card can normally communicate.
6. If the FLASH of the CPLD does not have a corresponding NCSI delay value, the CPLD collects a data signal sent from a network card in a working network card adaptation mode, after receiving the original data of the NCSI signal, the BMC sends out a ping command by delaying the clock relative to the data for 0.1ns forwards or 0.1ns backwards, and if the clock can ping is passed, the BMC carries out a pressure test of the network card downwards. And after the pressure test is passed, the CPLD stores the adjusted NCSI delay parameters in FLASH. If the pressure test of the network card does not pass the description and the time sequence does not meet the requirement, continuing to advance or retreat for delay, and adding an adjustment interval of 0.1ns on the basis of the last time for each adjustment. The delay interval time of each adjustment and the overall adjustable delay range can be manually modified at the management interface of the BMC. The BMC transmits the adjusting parameters to the CPLD through the I2C, the CPLD transmits the finally adjusted time sequence parameters to the BMC, and a management interface of the BMC can view the drawn NCSI time sequence diagram. When the server inserts the network cards of different manufacturers and different models, the CPLD stores the manufacturer and model information of the network cards and puts the manufacturer and model information and the adjusted delay value into a table.
After the network card adaptation is completed, the server is set to be in a normal use mode, and the CPLD reads delay values corresponding to different network cards to adjust the NCSI time sequence so as to realize the stable and reliable operation of the network card.
Example three:
based on the above embodiments, as shown in fig. 2, this embodiment further discloses an automatic adjusting system for a network card NCSI signal, which includes a signal access unit 1, a data reading unit 2, a determination unit 3, a communication unit 4, and a signal adjusting unit 5.
And the signal access unit 1 is used for accessing the NCSI signal of the BMC to the CPLD of the mainboard and transmitting the NCSI signal to the network card PHY chip through the CPLD of the mainboard. The signal access unit 1 is specifically configured to:
establishing I2C signal connection between the BMC and the CPLD, wherein the I2C signal is used for transmitting the timing parameter and the NCSI delay value of the NCSI signal; connecting an SMBUS signal of a platform control center on a mainboard to a CPLD, wherein the SMBUS signal is used for transmitting the ID of the PCIE equipment acquired from the BIOS; storing the ID and NCSI delay values of the PCIE equipment in a FLASH of the CPLD; defining a GPIO interface of the CPLD, and transmitting signals between the BMC and the CPLD; if the length of the current NCSI cable is larger than a preset length threshold value, a driver is arranged between the CPLD and the network card PHY chip, and NCSI signal transmission of the CPLD and the network card PHY chip is carried out through the driver; if the length of the current NCSI cable is larger than a preset length threshold value, the CPLD is connected with the network card PHY chip in series through a resistor.
And the data reading unit 2 is used for acquiring the ID value of the network card from the BIOS through the CPLD.
And the judging unit 3 is used for judging whether the NCSI delay value of the network card is stored in the CPLD according to the ID value of the network card.
And the communication unit 4 is used for adjusting the NCSI time sequence according to the NCSI delay value and establishing the communication between the network card and the BMC.
And the signal adjusting unit 5 is used for adjusting the NCSI delay value through the CPLD, performing adaptation test of the network card after the adjustment is completed, and storing the current NCSI delay value in the CPLD after the adaptation is successful. The signal conditioning unit 5 is specifically configured to:
the CPLD receives the original data of the NCSI signal, the delay of the clock relative to the data is carried out for delay0.1ns forwards or 0.1ns backwards, then the BMC sends out a ping command, and if the ping is enabled, the pressure test of the network card is carried out downwards. And after the pressure test is passed, the adjusted NCSI delay parameters are stored in a FLASH of the CPLD through the CPLD. If the pressure test of the network card does not pass the description and the time sequence does not meet the requirement, continuing to advance or retreat for delay, and adding an adjustment interval of 0.1ns on the basis of the last time for each adjustment.
The embodiment provides an automatic adjustment system for an NCSI signal of a network card, wherein delay adjustment of the NCSI signal is realized through a CPLD during network card adaptation, and then a delay value is stored in a FLASH of the CPLD. When different network cards are used, the CPLD reads delay values corresponding to the different network cards, so that the NCSI signals meet the establishment holding time and the network cards are kept in normal communication.
Example four:
the embodiment discloses an automatic adjusting device of a network card NCSI signal, which comprises a processor and a memory; wherein, the processor realizes the following steps when executing the automatic regulating program of the network card NCSI signal stored in the memory:
s1: and the NCSI signal of the BMC is accessed to the CPLD of the mainboard, and the NCSI signal is transmitted to the network card PHY chip through the CPLD of the mainboard.
S2: and obtaining the ID value of the network card from the BIOS through the CPLD.
S3: and judging whether the NCSI delay value of the network card is stored in the CPLD according to the ID value of the network card, if so, turning to the step S4, otherwise, turning to the step S5.
S4: and reading the NCSI delay value, adjusting the NCSI time sequence according to the NCSI delay value, and establishing the communication between the network card and the BMC.
S5: and adjusting the NCSI delay value through the CPLD, performing adaptation test of the network card after the adjustment is finished, and storing the current NCSI delay value in the CPLD after the adaptation is successful.
Further, the automatic adjusting device for the NCSI signal of the network card in this embodiment may further include:
and the input interface is used for acquiring an automatic adjustment program of the network card NCSI signal imported from the outside, storing the acquired automatic adjustment program of the network card NCSI signal into the memory, and also used for acquiring various instructions and parameters transmitted by external terminal equipment and transmitting the instructions and parameters into the processor, so that the processor performs corresponding processing by using the instructions and the parameters. In this embodiment, the input interface may specifically include, but is not limited to, a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, and the like.
And the output interface is used for outputting various data generated by the processor to the terminal equipment connected with the output interface, so that other terminal equipment connected with the output interface can acquire various data generated by the processor. In this embodiment, the output interface may specifically include, but is not limited to, a USB interface, a serial interface, and the like.
And the communication unit is used for establishing remote communication connection between the automatic adjusting device of the network card NCSI signal and the external server so that the automatic adjusting device of the network card NCSI signal can mount the mirror image file into the external server. In this embodiment, the communication unit may specifically include, but is not limited to, a remote communication unit based on a wireless communication technology or a wired communication technology.
And the keyboard is used for acquiring various parameter data or instructions input by a user through real-time key cap knocking.
And the display is used for displaying relevant information in the short circuit positioning process of the power supply line of the running server in real time.
The mouse can be used for assisting a user in inputting data and simplifying the operation of the user.
The embodiment provides an automatic adjusting device for NCSI signals of a network card, which effectively solves the problem that the adaptation between a server and the network card fails because the routing is too long and the time sequence delay of the NCSI cannot be automatically adjusted.
Example five:
the present embodiments also disclose a readable storage medium, where the readable storage medium includes Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable hard disk, a CD-ROM, or any other form of storage medium known in the art. The readable storage medium stores an automatic adjustment program of a network card NCSI signal, and when the automatic adjustment program of the network card NCSI signal is executed by a processor, the automatic adjustment program of the network card NCSI signal realizes the following steps:
s1: and the NCSI signal of the BMC is accessed to the CPLD of the mainboard, and the NCSI signal is transmitted to the network card PHY chip through the CPLD of the mainboard.
S2: and obtaining the ID value of the network card from the BIOS through the CPLD.
S3: and judging whether the NCSI delay value of the network card is stored in the CPLD according to the ID value of the network card, if so, turning to the step S4, otherwise, turning to the step S5.
S4: and reading the NCSI delay value, adjusting the NCSI time sequence according to the NCSI delay value, and establishing the communication between the network card and the BMC.
S5: and adjusting the NCSI delay value through the CPLD, performing adaptation test of the network card after the adjustment is finished, and storing the current NCSI delay value in the CPLD after the adaptation is successful.
The embodiment provides a readable storage medium, where an automatic adjustment program of a network card NCSI signal stored in the readable storage medium realizes that the NCSI signal timing delay is adjusted through a CPLD, and stores adjustment parameters and ID information of the network card in a FLASH in a one-to-one correspondence manner, and after a system is started, the CPLD determines a delay value through ID information of different network cards, so as to implement adaptation and normal communication of the network card.
In addition, the invention can also be used in other application occasions where the delay is required to be adjusted by the low-speed signal.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The method disclosed by the embodiment corresponds to the system disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the description of the method part.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided by the present invention, it should be understood that the disclosed system, system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit.
Similarly, each processing unit in the embodiments of the present invention may be integrated into one functional module, or each processing unit may exist physically, or two or more processing units are integrated into one functional module.
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.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The method, system, device and readable storage medium for automatically adjusting the NCSI signal of the network card provided by the present invention are described in detail above. 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)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110692789.1A CN113645088B (en) | 2021-06-22 | 2021-06-22 | Automatic regulation method, system, device and medium for network card NCSI signal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110692789.1A CN113645088B (en) | 2021-06-22 | 2021-06-22 | Automatic regulation method, system, device and medium for network card NCSI signal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113645088A true CN113645088A (en) | 2021-11-12 |
CN113645088B CN113645088B (en) | 2023-08-08 |
Family
ID=78416088
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110692789.1A Active CN113645088B (en) | 2021-06-22 | 2021-06-22 | Automatic regulation method, system, device and medium for network card NCSI signal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113645088B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114610662A (en) * | 2022-03-08 | 2022-06-10 | 浪潮云信息技术股份公司 | NCSI (network control information system) time sequence adjusting method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104618187A (en) * | 2015-02-02 | 2015-05-13 | 浪潮电子信息产业股份有限公司 | Method for testing functional integrity of NCSI network card on line |
CN108282374A (en) * | 2018-02-28 | 2018-07-13 | 郑州云海信息技术有限公司 | A kind of method, system and the readable storage medium storing program for executing of configuration NCSI network interface cards |
WO2019024436A1 (en) * | 2017-08-04 | 2019-02-07 | 郑州云海信息技术有限公司 | System and method for improving dual-network card ncsi management system switching efficiency |
CN109828933A (en) * | 2019-01-30 | 2019-05-31 | 郑州云海信息技术有限公司 | A kind of implementation method of the NCSI function of NCSI function network interface card and network interface card |
CN109992318A (en) * | 2019-04-12 | 2019-07-09 | 苏州浪潮智能科技有限公司 | A kind of NCSI method for parameter configuration, system, device and readable storage medium storing program for executing |
-
2021
- 2021-06-22 CN CN202110692789.1A patent/CN113645088B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104618187A (en) * | 2015-02-02 | 2015-05-13 | 浪潮电子信息产业股份有限公司 | Method for testing functional integrity of NCSI network card on line |
WO2019024436A1 (en) * | 2017-08-04 | 2019-02-07 | 郑州云海信息技术有限公司 | System and method for improving dual-network card ncsi management system switching efficiency |
CN108282374A (en) * | 2018-02-28 | 2018-07-13 | 郑州云海信息技术有限公司 | A kind of method, system and the readable storage medium storing program for executing of configuration NCSI network interface cards |
CN109828933A (en) * | 2019-01-30 | 2019-05-31 | 郑州云海信息技术有限公司 | A kind of implementation method of the NCSI function of NCSI function network interface card and network interface card |
CN109992318A (en) * | 2019-04-12 | 2019-07-09 | 苏州浪潮智能科技有限公司 | A kind of NCSI method for parameter configuration, system, device and readable storage medium storing program for executing |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114610662A (en) * | 2022-03-08 | 2022-06-10 | 浪潮云信息技术股份公司 | NCSI (network control information system) time sequence adjusting method and device |
Also Published As
Publication number | Publication date |
---|---|
CN113645088B (en) | 2023-08-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110554943A (en) | I3C-based multi-node server CMC management system and method | |
CN110908940B (en) | Method for adjusting serial port communication parameters and terminal equipment | |
CN107147553A (en) | Method of adjustment, adjusting apparatus and the adjusting device of slave station baud rate and frame format | |
CN109933557A (en) | A method and device for generating an I2C topology map | |
CN113259205B (en) | Method and system for testing internal interconnection interface of multi-board system | |
CN109992420B (en) | A parallel PCIE-SSD performance optimization method and system | |
CN115904849B (en) | PCIE link signal testing method, system, computer equipment and medium | |
US20030229738A1 (en) | Controller interface | |
CN113645088A (en) | Method, system and device for automatically adjusting network card NCSI signal and readable storage medium | |
CN110740085B (en) | A communication method, communication device and terminal based on a parallel system | |
CN108123904A (en) | A kind of communication bus impedance auto-match device and method | |
CN117407343B (en) | Method and device for processing clock extension in integrated circuit bus transparent transmission mode | |
CN118467429A (en) | Equipment expansion system and server | |
CN113726592A (en) | Transmission delay testing method and system of edge server and related components | |
CN115525500B (en) | Device debugging method, device, equipment and medium | |
CN108845913A (en) | A kind of diagnostic card of system and its I/O state for obtaining CPLD | |
CN115525517A (en) | Mixed-insertion hard disk lamp signal control system, method and device and readable storage medium | |
CN116226008A (en) | Port address configurator, configuration method and terminal | |
CN115827342A (en) | Test fixture, test system and OCP network card test method | |
CN111078604B (en) | Method and device for reading and writing I2C bus equipment | |
CN114116584A (en) | Test system for interface boards, user equipment and CPU | |
CN114153768B (en) | Data transmission method, device, equipment and computer readable storage medium | |
CN114860152B (en) | Monitoring management system and method | |
CN113923121A (en) | PCIe bandwidth automatic allocation method, system and device based on OCP3.0 network card | |
CN116541236A (en) | A temperature data acquisition method and device for switching chips |
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 |