CN113645088B - Automatic regulation method, system, device and medium for network card NCSI signal - Google Patents

Automatic regulation method, system, device and medium for network card NCSI signal Download PDF

Info

Publication number
CN113645088B
CN113645088B CN202110692789.1A CN202110692789A CN113645088B CN 113645088 B CN113645088 B CN 113645088B CN 202110692789 A CN202110692789 A CN 202110692789A CN 113645088 B CN113645088 B CN 113645088B
Authority
CN
China
Prior art keywords
ncsi
cpld
network card
signal
delay value
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.)
Active
Application number
CN202110692789.1A
Other languages
Chinese (zh)
Other versions
CN113645088A (en
Inventor
魏旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202110692789.1A priority Critical patent/CN113645088B/en
Publication of CN113645088A publication Critical patent/CN113645088A/en
Application granted granted Critical
Publication of CN113645088B publication Critical patent/CN113645088B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0016Inter-integrated circuit (I2C)
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0026PCI 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)
  • Information Transfer Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a method, a system, a device and a readable storage medium for automatically adjusting network card NCSI signals, wherein the method comprises the following steps: the NCSI signal of the BMC is accessed to the CPLD of the main board, and the NCSI signal is transmitted to the PHY chip of the network card through the CPLD of the main board; the ID value of the network card is obtained from the BIOS through the CPLD; 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 yes, adjusting NCSI time sequence according to NCSI delay value, establishing communication between the network card and BMC; if not, the NCSI delay value is adjusted through the CPLD, the network card adaptation test is carried out after the adjustment is completed, and the current NCSI delay value is stored after the adaptation is successful. The invention effectively solves the problem of network card adaptation failure under the conditions that the NCSI signal link is overlong and the network card NCSI signal delay cannot be adjusted.

Description

Automatic regulation method, system, device and medium for network card NCSI signal
Technical Field
The invention relates to the technical field of server testing, in particular to an automatic regulation method, system and device for network card NCSI signals and a readable storage medium.
Background
With the development of emerging technologies such as 5G, big data, cloud computing, industrial internet and the like, network data interaction in a server is more and more frequent, various PCIE network cards or OCP network cards are applied in a large quantity, and the server has a great demand for network cards. The network card is managed out-of-band from the server, and through out-of-band management, engineers can manage and maintain the server through network connection at any place without going into a laboratory machine room. NCSI (Network Controller Sideband Interface ) is a signal interface that enables server out-of-band management.
To meet a wide variety of customer configuration needs, such as: some configurations require NCSI to pass through the front IO and some configurations require NCSI to pass through the rear IO, but the NCSI on the BMC has only one outgoing interface, and the front and rear outgoing of the NCSI are simultaneously considered, so that the routing length of the NCSI on the board can exceed 10 inches, and the cable length of the NCSI is usually also 10 inches. The length of the NCSI signal wiring on the network card is not calculated, and the length of the NCSI wiring of the BMC on the main board and the corresponding cable are already more than 20 inches, which exceeds the design requirement of the NCSI on the BMC manual. The mainboards of different manufacturers are adapted to the network cards of different manufacturers, and the wiring length of the other party is not known when the mainboards and the network cards are designed. The NCSI total routing exceeds specification requirements, which can lead to timing errors in the NCSI. The time for establishing and maintaining the BMC NCSI RX signal on the mainboard cannot be kept to meet the time sequence requirement, however, the delay of the intelligent network card connected with the NCSI cannot be adjusted to meet the time sequence requirement of the BMC receiving end RX signal. It can be seen that the NCSI signal fixing delay of the network cards of different manufacturers is not identical, so that it is difficult for the NCSI signal timing sequence on the motherboard to have a uniform delay value.
Therefore, how to realize the automatic adjustment of the NCSI signal of the network card so as to adapt to the network card devices of different manufacturers and realize the stable communication of the network card is a problem to be solved.
Disclosure of Invention
Aiming at the problems, the invention aims to provide an automatic regulation method, an automatic regulation system, an automatic regulation device and a readable storage medium for network card NCSI signals, which effectively solve the problem that the time sequence delay of NCSI cannot be automatically regulated due to overlong wiring, so that the adaptation of a server and a network card fails.
The invention aims to achieve the aim, and the aim is achieved by the following technical scheme: an automatic regulation method of network card NCSI signals, comprising:
the NCSI signal of the BMC is accessed to the CPLD of the main board, and the NCSI signal is transmitted to the PHY chip of the network card through the CPLD of the main board;
acquiring an ID value of the network card from the BIOS through the CPLD;
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 yes, reading an NCSI delay value, adjusting an 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 adaptation test is carried out 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 a BMC and a CPLD, wherein the I2C signal is used for transmitting a time sequence parameter and an NCSI delay value of an NCSI signal;
the SMBUS signal of the platform control center on the main board is connected to the CPLD, and the SMBUS signal is used for transmitting the ID of PCIE equipment acquired from the BIOS;
storing the ID and NCSI delay value of the PCIE equipment in the FLASH of the CPLD;
and the GPIO interface of the CPLD is defined and used for 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 greater than the preset length threshold, 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.
Further, the GPIO interface defining the CPLD includes:
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 interface txd0_ B, TXD1_ B, TXEN _ B, RXD0_ B, RXD1 _1_ B, CRSDV _ B, REFCLK _b defining the CPLD serves 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 greater than the preset length threshold, the CPLD and the network card PHY chip are connected in series through a resistor.
Further, the GPIO interface defining the CPLD includes:
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, crsdv_b defining the CPLD serve as signal interfaces between the CPLD and the platform control center.
Further, the adjusting of the NCSI delay value by the CPLD, and the adapting test of the network card after the adjustment is completed, includes the following steps:
step 1: the method comprises the steps that original data of an NCSI signal are received through a CPLD, and the delay time of a clock relative to the original data of the NCSI signal is adjusted forwards or backwards by 0.1ns to be used as a current NCSI delay value;
step 2: sending out a ping command through the BMC;
step 3: judging whether the ping communication can be performed, if so, turning to the step 4, and if not, turning to the step 7;
step 4: starting a pressure test of the network card;
step 5: judging whether the pressure test of the network card passes or not, if so, turning to the step 6, otherwise, turning to the step 7;
step 6: the CPLD stores the current NCSI delay value in the FLASH of the CPLD;
step 7: the clock is continuously adjusted forward or backward by 0.1ns on the basis of the current delay time as the current NCSI delay value, and the step 2 is proceeded to.
Correspondingly, the invention also discloses an automatic regulation 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 main board, and transmitting the NCSI signal to the network card PHY chip through the CPLD of the main board;
the data reading unit is used for obtaining 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 NCSI time sequence according to the NCSI delay value and establishing communication between the network card and the BMC;
the signal adjusting unit is used for adjusting the NCSI delay value through the CPLD, carrying out the 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.
Further, the signal access unit is specifically configured to:
establishing I2C signal connection between a BMC and a CPLD, wherein the I2C signal is used for transmitting a time sequence parameter and an NCSI delay value of an NCSI signal;
the SMBUS signal of the platform control center on the main board is connected to the CPLD, and the SMBUS signal is used for transmitting the ID of PCIE equipment acquired from the BIOS;
storing the ID and NCSI delay value of the PCIE equipment in the FLASH of the CPLD;
a GPIO interface of the CPLD is defined and used for transmitting signals between the BMC and the CPLD;
if the length of the current NCSI cable is greater 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;
and if the length of the current NCSI cable is greater than the preset length threshold, connecting the CPLD and 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 delay of the clock relative to the data is forward delay of 0.1ns or backward delay of 0.1ns, then the BMC sends out a ping command, and if the ping command can be sent, the pressure test of the network card is carried out downwards. After the pressure test is passed, the CPLD stores the adjusted NCSI delay parameter in the FLASH of the CPLD. If the pressure test of the network card does not meet the requirement through the description time sequence, continuing forward or backward delay, and adding an adjustment interval of 0.1ns on the basis of the last 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 regulation program of the network card NCSI signal;
and the processor is used for realizing the steps of the automatic regulation method of the network card NCSI signal when executing the automatic regulation program of the network card NCSI signal.
Correspondingly, the invention discloses a readable storage medium, wherein the readable storage medium is stored with an automatic regulation program of the network card NCSI signal, and the automatic regulation program of the network card NCSI signal realizes the steps of the automatic regulation method of the network card NCSI signal when being executed by a processor.
Compared with the prior art, the invention has the beneficial effects that:
1. the invention realizes delay adjustment of NCSI signals through CPLD when the network card is adapted, and then stores delay values in FLASH of CPLD. When different network cards are used, the CPLD reads delay values corresponding to the different network cards, so that NCSI signals meet the establishment and maintenance time, and the network card communication is kept normal.
2. According to the invention, the NCSI signal time sequence delay is adjusted through the CPLD, the adjusting parameters and the ID information of the network card are stored in the FLASH in a one-to-one correspondence manner, and the CPLD determines delay values through the ID information of different network cards after the system is started, so that the adaptation and normal communication of the network card are realized.
3. The invention can also be used in other application occasions where the low-speed signal needs to be adjusted.
It can be seen that the present invention has outstanding substantial features and significant advances over the prior art, as well as the benefits of its implementation.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of the method of the present invention;
fig. 2 is a system configuration diagram of the present invention.
In the figure, 1 is a signal access unit; 2 is a data reading unit; 3 is a judging unit; 4 is a communication unit; and 5 is a signal adjusting unit.
Detailed Description
The invention provides an automatic regulation method of network card NCSI signal, in the prior art, BMC generally has two network interfaces, one is used for the special network management port, connect to RJ 45; the other is connected to the PCIE network card or the OCP network card as a shared network port. The NCSI signal of the BMC is connected directly to the network card PHY by a cable or connected to the network card PHY by a cable through a switch. However, as 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 time sequence is fixed, the establishment and maintenance time of the NCS signal receiving end of the server does not meet the time sequence requirement, so that the network card adaptation fails.
The invention provides an automatic regulation method of network card NCSI signals, which comprises the steps of firstly, accessing the NCSI signals of a BMC to a CPLD of a main board, and transmitting the NCSI signals to a network card PHY chip through the CPLD of the main board. And then, the CPLD acquires the ID value of the network card from the BIOS, and judges whether the NCSI delay value of the network card is stored in the CPLD according to the ID value of the network card. If yes, reading an NCSI delay value, adjusting an 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 adaptation test is carried out after the adjustment is completed, and the current NCSI delay value is stored in the CPLD after the adaptation is successful. Therefore, the invention realizes delay adjustment of NCSI signals through the CPLD when the network card is adapted, and then stores the delay value 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 NCSI signals meet the establishment and maintenance time, and the network card communication is kept normal.
In order to better understand the aspects of the present invention, the present invention will be described in further detail with reference to the accompanying drawings and detailed description. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Embodiment one:
as shown in fig. 1, this embodiment provides a method for automatically adjusting NCSI signals of a network card, which includes the following steps:
s1: and accessing the NCSI signal of the BMC to the CPLD of the main board, and transmitting the NCSI signal to the PHY chip of the network card through the CPLD of the main board.
Firstly, establishing I2C signal connection of a BMC and a CPLD, wherein the I2C signal is used for transmitting a time sequence parameter and an NCSI delay value of an NCSI signal; the SMBUS signal of the platform control center on the main board is connected to the CPLD, and the SMBUS signal is used for transmitting the ID of PCIE equipment acquired from the BIOS; storing the ID and NCSI delay value of the PCIE equipment in the FLASH of the CPLD; finally, define the GPIO interface of CPLD, is used for transmitting the signal between BMC and CPLD.
Because it is necessary to determine whether the CPLD and the network card PHY need to be matched with a driver (BUFFER chip) to transmit the NCSI signal according to the length of the NCSI cable, if the driver is not used, the direct series resistor completes the transmission of the NCSI signal; therefore, the definition mode of the GPIO interface of the CPLD includes the following two cases:
(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; GPIO interface txd0_ B, TXD1_ B, TXEN _ B, RXD0_ B, RXD1 _1_ B, CRSDV _ B, REFCLK _b defining the CPLD serves 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, crsdv_b defining the CPLD serve 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 communication between the network card and the BMC.
S5: and adjusting the NCSI delay value through the CPLD, carrying out an 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.
Wherein, step S5 includes the following steps:
step 1: the CPLD receives the original data of the NCSI signal, and adjusts the delay time of the clock relative to the original data of the NCSI signal by 0.1ns forwards or backwards to serve as the current NCSI delay value.
Step 2: a ping command is issued through the BMC.
Step 3: and judging whether the ping communication can be performed, if so, turning to the step 4, and if not, turning to the step 7.
Step 4: and starting the pressure test of the network card.
Step 5: and judging whether the pressure test of the network card passes or not, if so, turning to the step 6, otherwise, turning to the step 7.
Step 6: the CPLD stores the current NCSI delay value in the FLASH of the CPLD.
Step 7: the clock is continuously adjusted forward or backward by 0.1ns on the basis of the current delay time as the current NCSI delay value, and the step 2 is proceeded to.
The embodiment provides an automatic regulation method of network card NCSI signals, which is characterized in that a CPLD is used for regulating NCSI signal time sequence delay, regulating parameters and network card ID information are stored in FLASH of the CPLD in a one-to-one correspondence mode, after a system is started, the CPLD determines delay values through the ID information of different network cards, and then the adaptation and normal communication of the network cards are realized.
Embodiment two:
based on the first embodiment, the embodiment also discloses an automatic adjusting method for the NCSI signal of the network card, which comprises the following steps:
1. the network card is divided into a network card NCSI adaptation mode and a network card normal use mode when in use, 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 the mode of network card adaptation to be an automatic adaptation mode and a manual adaptation mode.
2. After the BMC sets the manual adaptation mode, an engineer can manually set NCSI delay parameters on a management page of the BMC, can input delay adjustment intervals of 0.1ns,0.2ns,0.3ns and the like, and the range size of the delay adjustment, and transmits the delay adjustment range size to the CPLD through I2C to carry out corresponding adaptation operation. The BMC webpage management interface can display the adjusted NCSI timing diagram for reference. After CPLD adaptation is completed, delay parameters are stored in flash, and the network card can normally communicate.
3. After the CPLD is matched, the delay parameter is stored in FLASH of the CPLD, the BMC is set to be in a normal use mode of the network card, 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 through 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 a network card normal mode, reads the NCSI delay value, and the network card can normally communicate.
6. If the FLASH of the CPLD has no corresponding NCSI delay value, the CPLD collects data signals sent from the network card in a working network card adaptation mode, after the CPLD receives the original data of the NCSI signals, the CPLD sends out a ping command by delaying a clock forward delay by 0.1ns or backward delay by 0.1ns relative to the data, and if the CPLD can perform ping, the pressure test of the network card is performed downwards. After the pressure test is passed, the CPLD stores the adjusted NCSI delay parameter in FLASH. If the pressure test of the network card does not meet the requirement through the description time sequence, continuing forward or backward delay, and adding an adjustment interval of 0.1ns on the basis of the last adjustment. The delay interval time of each adjustment and the delay range which can be adjusted as a whole can be manually modified at the management interface of the BMC. The BMC transmits the adjustment parameters to the CPLD through the I2C, the CPLD transmits the final adjusted time sequence parameters to the BMC, and a management interface of the BMC can check the drawn NCSI time sequence diagram. When the server inserts network cards of different models of different manufacturers, the CPLD stores the manufacturer and model information of the network cards and places the network cards and the adjusted delay value in a table.
After the network card is matched, the server is set into a normal use mode, and CPLD reads delay values corresponding to different network cards to adjust NCSI time sequence so as to realize stable and reliable operation of the network card.
Embodiment III:
based on the above embodiment, as shown in fig. 2, the embodiment also discloses an automatic regulation system of the 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 regulation unit 5.
The signal access unit 1 is used for accessing the NCSI signal of the BMC to the CPLD of the main board, and transmitting the NCSI signal to the network card PHY chip through the CPLD of the main board. The signal access unit 1 is specifically configured to:
establishing I2C signal connection between a BMC and a CPLD, wherein the I2C signal is used for transmitting a time sequence parameter and an NCSI delay value of an NCSI signal; the SMBUS signal of the platform control center on the main board is connected to the CPLD, and the SMBUS signal is used for transmitting the ID of PCIE equipment acquired from the BIOS; storing the ID and NCSI delay value of the PCIE equipment in the FLASH of the CPLD; a GPIO interface of the CPLD is defined and used for transmitting signals between the BMC and the CPLD; if the length of the current NCSI cable is greater 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 greater than the preset length threshold, the CPLD and the network card PHY chip are connected in series through a resistor.
And the data reading unit 2 is used for obtaining 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 NCSI time sequence according to the NCSI delay value and establishing 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, carrying out the 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 forward delay of 0.1ns or backward delay of 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. After the pressure test is passed, the CPLD stores the adjusted NCSI delay parameter in the FLASH of the CPLD. If the pressure test of the network card does not meet the requirement through the description time sequence, continuing forward or backward delay, and adding an adjustment interval of 0.1ns on the basis of the last adjustment.
The embodiment provides an automatic regulation system for network card NCSI signals, which realizes delay regulation of the NCSI signals through a CPLD during network card adaptation, and then stores delay values in FLASH of the CPLD. When different network cards are used, the CPLD reads delay values corresponding to the different network cards, so that NCSI signals meet the establishment and maintenance time, and the network card communication is kept normal.
Embodiment four:
the embodiment discloses an automatic adjusting device of network card NCSI signals, which comprises a processor and a memory; the processor executes the automatic regulation program of the network card NCSI signal stored in the memory to realize the following steps:
s1: and accessing the NCSI signal of the BMC to the CPLD of the main board, and transmitting the NCSI signal to the PHY chip of the network card through the CPLD of the main board.
S2: the ID value of the network card is obtained 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 communication between the network card and the BMC.
S5: and adjusting the NCSI delay value through the CPLD, carrying out an 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.
Further, the automatic adjusting device for the NCSI signal of the network card in this embodiment may further include:
the input interface is used for acquiring an automatic regulation program of the network card NCSI signal imported from the outside, storing the acquired automatic regulation program of the network card NCSI signal into the memory, and also can be used for acquiring various instructions and parameters transmitted by the external terminal equipment and transmitting the various instructions and parameters into the processor so that the processor can develop corresponding processing by utilizing the various instructions and 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.
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 image file to 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 by knocking the key cap in real time.
And the display is used for running the related information of the short-circuit positioning process of the power supply line of the server to display in real time.
A mouse may be used to assist a user in inputting data and to simplify user operations.
The embodiment provides an automatic adjusting device for network card NCSI signals, which effectively solves the problem that the time sequence delay of NCSI cannot be automatically adjusted due to overlong wiring, so that the adaptation of a server and a network card fails.
Fifth embodiment:
the present embodiment also discloses 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, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art. The readable storage medium stores an automatic regulation program of the network card NCSI signal, and the automatic regulation program of the network card NCSI signal realizes the following steps when being executed by a processor:
s1: and accessing the NCSI signal of the BMC to the CPLD of the main board, and transmitting the NCSI signal to the PHY chip of the network card through the CPLD of the main board.
S2: the ID value of the network card is obtained 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 communication between the network card and the BMC.
S5: and adjusting the NCSI delay value through the CPLD, carrying out an 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 embodiment provides a readable storage medium, an automatic regulation program of network card NCSI signals stored in the readable storage medium realizes regulation of NCSI signal time sequence delay through a CPLD, and one-to-one correspondence between regulation parameters and network card ID information is stored in FLASH, after the system is started, the CPLD determines delay values through the ID information of different network cards, and the adaptation and normal communication of the network cards are realized.
In addition, the invention can be used in other application occasions where the low-speed signal needs to be adjusted.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the method disclosed in the embodiment, since it corresponds to the system disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
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 elements and steps are described above generally in terms of functionality in order to clearly illustrate the 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 solution. 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 several embodiments provided by the present invention, it should be understood that the disclosed systems, and methods may be implemented in other ways. For example, the system embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, system or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each module may exist alone physically, or two or more modules may be integrated in one unit.
Similarly, each processing unit in the embodiments of the present invention may be integrated in one functional module, or each processing unit may exist physically, or two or more processing units may be integrated in 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. The software modules may be disposed 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 is further noted that relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The method, the system, the device and the readable storage medium for automatically adjusting the NCSI signal of the network card provided by the invention are described in detail above. The principles and embodiments of the present invention have been described herein with reference to specific examples, the description of which is intended only to facilitate an understanding of the method of the present invention and its core ideas. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the invention can be made without departing from the principles of the invention and these modifications and adaptations are intended to be within the scope of the invention as defined in the following claims.

Claims (8)

1. An automatic regulation method for network card NCSI signals is characterized by comprising the following steps:
the NCSI signal of the BMC is accessed to the CPLD of the main board, and the NCSI signal is transmitted to the PHY chip of the network card through the CPLD of the main board;
acquiring an ID value of the network card from the BIOS through the CPLD;
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 yes, reading an NCSI delay value, adjusting an NCSI time sequence according to the NCSI delay value, and establishing communication between the network card and the BMC;
if not, adjusting the NCSI delay value through the CPLD, carrying out an 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 step of accessing the NCSI signal of the BMC to the CPLD of the main board, and the step of transmitting the NCSI signal to the network card PHY chip through the CPLD of the main board specifically comprises the following steps:
establishing I2C signal connection between a BMC and a CPLD, wherein the I2C signal is used for transmitting a time sequence parameter and an NCSI delay value of an NCSI signal;
the SMBUS signal of the platform control center on the main board is connected to the CPLD, and the SMBUS signal is used for transmitting the ID of PCIE equipment acquired from the BIOS;
storing the ID and NCSI delay value of the PCIE equipment in the FLASH of the CPLD;
a GPIO interface of the CPLD is defined and used for transmitting signals between the BMC and the CPLD;
the NCSI delay value is adjusted through the CPLD, and the network card adaptation test is carried out after the adjustment is completed, and the method comprises the following steps:
step 1: the method comprises the steps that original data of an NCSI signal are received through a CPLD, and the delay time of a clock relative to the original data of the NCSI signal is adjusted forwards or backwards by 0.1ns to be used as a current NCSI delay value;
step 2: sending out a ping command through the BMC;
step 3: judging whether the ping communication can be performed, if so, turning to the step 4, and if not, turning to the step 7;
step 4: starting a pressure test of the network card;
step 5: judging whether the pressure test of the network card passes or not, if so, turning to the step 6, otherwise, turning to the step 7;
step 6: the CPLD stores the current NCSI delay value in the FLASH of the CPLD;
step 7: the clock is continuously adjusted forward or backward by 0.1ns on the basis of the current delay time as the current NCSI delay value, and the step 2 is proceeded to.
2. The method for automatically adjusting the NCSI signal of the network card according to claim 1, wherein the step of accessing the NCSI signal of the BMC to the CPLD of the motherboard, and transmitting the NCSI signal to the PHY chip of the network card through the CPLD of the motherboard further comprises:
if the length of the current NCSI cable is greater than the preset length threshold, 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.
3. The method for automatically adjusting NCSI signals of network card according to claim 2, wherein the GPIO interface defining the CPLD includes:
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 interface txd0_ B, TXD1_ B, TXEN _ B, RXD0_ B, RXD1 _1_ B, CRSDV _ B, REFCLK _b defining the CPLD serves as a signal interface between the CPLD and the driver.
4. The method for automatically adjusting the NCSI signal of the network card according to claim 1, wherein the step of accessing the NCSI signal of the BMC to the CPLD of the motherboard, and transmitting the NCSI signal to the PHY chip of the network card through the CPLD of the motherboard further comprises:
and if the length of the current NCSI cable is greater than the preset length threshold, connecting the CPLD and the network card PHY chip in series through a resistor.
5. The method for automatically adjusting NCSI signals of network card according to claim 4, wherein the GPIO interface defining CPLD includes:
GPIO interfaces xd0_b, txd1_b, txen_b, rxd0_b, rxd1_b, crsdv_b defining the CPLD serve as signal interfaces between the CPLD and the platform control center.
6. An automatic regulation system for NCSI signals of a network card, comprising:
the signal access unit is used for accessing the NCSI signal of the BMC to the CPLD of the main board, and transmitting the NCSI signal to the network card PHY chip through the CPLD of the main board;
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 NCSI time sequence according to the NCSI delay value and establishing communication between the network card and the BMC;
the signal adjusting unit is used for adjusting the NCSI delay value through the CPLD, carrying out the 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 access unit is specifically configured to:
establishing I2C signal connection between a BMC and a CPLD, wherein the I2C signal is used for transmitting a time sequence parameter and an NCSI delay value of an NCSI signal;
the SMBUS signal of the platform control center on the main board is connected to the CPLD, and the SMBUS signal is used for transmitting the ID of PCIE equipment acquired from the BIOS;
storing the ID and NCSI delay value of the PCIE equipment in the FLASH of the CPLD;
a GPIO interface of the CPLD is defined and used for transmitting signals between the BMC and the CPLD;
the signal conditioning unit is specifically configured to perform the following steps:
step 1: the method comprises the steps that original data of an NCSI signal are received through a CPLD, and the delay time of a clock relative to the original data of the NCSI signal is adjusted forwards or backwards by 0.1ns to be used as a current NCSI delay value;
step 2: sending out a ping command through the BMC;
step 3: judging whether the ping communication can be performed, if so, turning to the step 4, and if not, turning to the step 7;
step 4: starting a pressure test of the network card;
step 5: judging whether the pressure test of the network card passes or not, if so, turning to the step 6, otherwise, turning to the step 7;
step 6: the CPLD stores the current NCSI delay value in the FLASH of the CPLD;
step 7: the clock is continuously adjusted forward or backward by 0.1ns on the basis of the current delay time as the current NCSI delay value, and the step 2 is proceeded to.
7. An automatic regulator for NCSI signals of a network card, comprising:
the memory is used for automatically adjusting programs of the network card NCSI signals;
a processor for implementing the steps of the network card NCSI signal auto-adjustment method according to any one of claims 1 to 5 when executing the network card NCSI signal auto-adjustment program.
8. A readable storage medium, characterized by: the readable storage medium stores an automatic regulation program of the network card NCSI signal, and the automatic regulation program of the network card NCSI signal realizes the steps of the automatic regulation method of the network card NCSI signal according to any one of claims 1 to 5 when executed by a processor.
CN202110692789.1A 2021-06-22 2021-06-22 Automatic regulation method, system, device and medium for network card NCSI signal Active CN113645088B (en)

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 CN113645088A (en) 2021-11-12
CN113645088B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114610662B (en) * 2022-03-08 2024-07-16 浪潮云信息技术股份公司 NCSI time sequence adjusting method and device

Citations (5)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN113645088A (en) 2021-11-12

Similar Documents

Publication Publication Date Title
CN111159085B (en) Automatic configuration method of PCIE (peripheral component interface express) bandwidth, server mainboard and server
CN110554943A (en) I3C-based multi-node server CMC management system and method
CN113645088B (en) Automatic regulation method, system, device and medium for network card NCSI signal
CN111581043A (en) Server power consumption monitoring method and device and server
CN111324503B (en) Machine frame management device, method and computer readable storage medium
US8391162B2 (en) Apparatus and method for testing SMNP cards
CN110740085B (en) Communication method, communication device and terminal based on parallel operation system
CN115904849B (en) PCIE link signal testing method, system, computer equipment and medium
CN219476054U (en) Server and electronic equipment
CN116126092A (en) Clock supply method, system, server and storage medium
CN115525517A (en) Mixed-insertion hard disk lamp signal control system, method and device and readable storage medium
CN115599191A (en) Electrifying method and electrifying device for intelligent network card
CN115129566A (en) Method, system, equipment and storage medium for verifying bandwidth performance of hard disk backplane
CN204116881U (en) There is the supervisory system of easily extensible I/O interface
CN113900718A (en) Method, system and device for decoupling asset information of BMC (baseboard management controller) and BIOS (basic input/output system)
CN108848182B (en) Updating method of BMC firmware, related equipment and system
CN112463677B (en) Connecting device and method for active optical cable and computer readable storage medium
CN113923121A (en) PCIe bandwidth automatic allocation method, system and device based on OCP3.0 network card
CN112256603B (en) Server and expansion equipment based on OCP
CN114020665B (en) Information transmission method, device and transmission system
CN117407343B (en) Method and device for processing clock extension in integrated circuit bus transparent transmission mode
CN114301176B (en) Power supply method, system, equipment and storage medium based on Ethernet
CN110046120B (en) Data processing method, device and system based on IIC protocol and storage medium
CN110633187B (en) Method and device for monitoring TF (TransFlash) card of server and server
CN117112326A (en) Verification method and device of AXI bus data width adjustment module

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