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 PDFInfo
- 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
Links
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)
- Information Transfer Systems (AREA)
- Small-Scale Networks (AREA)
Abstract
本发明提出的一种网卡NCSI信号的自动调节方法、系统、装置及可读存储介质,所述方法包括:将BMC的NCSI信号接入到主板的CPLD上,通过主板的CPLD向网卡PHY芯片传输NCSI信号;通过CPLD从BIOS获取的网卡的ID值;根据网卡的ID值判断CPLD内是否存储有网卡的NCSI delay值;若是,根据NCSI delay值调整NCSI时序,建立网卡与BMC的通信;若否,通过CPLD进行NCSI delay值的调整,并在调整完成后进行网卡的适配测试,适配成功后,存储当前的NCSI delay值。本发明有效解决了NCSI信号链路过长以及网卡NCSI信号delay不能调整的情况下,网卡适配失败的问题。
A method, system, device and readable storage medium for automatically adjusting the NCSI signal of a network card proposed by the present invention, the method includes: connecting 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 NCSI signal; the ID value of the network card obtained from the BIOS through the CPLD; judge 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, adjust the NCSI timing according to the NCSI delay value, and establish communication between the network card and the BMC; if not , adjust the NCSI delay value through the CPLD, and perform an adaptation test of the network card after the adjustment is completed, and store the current NCSI delay value after the adaptation is successful. The invention effectively solves the problem that the network card adaptation fails when the NCSI signal link is too long and the network card NCSI signal delay cannot be adjusted.
Description
技术领域technical field
本发明涉及服务器测试技术领域,更具体的说是涉及一种网卡NCSI信号的自动调节方法、系统、装置及可读存储介质。The invention relates to the technical field of server testing, and more specifically relates to an automatic adjustment method, system, device and readable storage medium of an NCSI signal of a network card.
背景技术Background technique
随着5G、大数据、云计算、工业互联网等新兴技术的发展,服务器中网络数据的交互越来越频繁,各种PCIE网卡或者OCP网卡大量应用,服务器对网卡的需求甚多。其中网卡自带服务器带外管理,通过带外管理,工程师可以在任意地点通过网络连接对服务器进行管理与维护,而不需要到实验室机房内。NCSI(Network Controller Sideband Interface,网络控制器边带接口)就是实现服务器带外管理的信号接口。With the development of emerging technologies such as 5G, big data, cloud computing, and industrial Internet, the interaction of network data in servers is becoming more and more frequent. Various PCIE network cards or OCP network cards are widely used, and servers have a lot of demand for network cards. Among them, the network card comes with out-of-band management of the server. Through out-of-band management, engineers can manage and maintain the server through the network connection at any place without going to the laboratory computer room. NCSI (Network Controller Sideband Interface, Network Controller Sideband Interface) is a signal interface that implements server out-of-band management.
为了满足客户各种各样的配置需要,比如:有的配置要求NCSI通过前IO接出,有的配置要求NCSI通过后IO接出,但是BMC上的NCSI引出的接口只有一个,同时兼顾NCSI的前出和后出,会导致NCSI在板上的走线长度会超过10inch,通常NCSI线缆长度也超过了10inch。不算网卡上的NCSI信号走线长度,主板上BMC的NCSI走线再加上相应的线缆的长度已经超过了20inch,超过了BMC手册上NCSI的设计要求。不同厂商的主板会适配不同厂商的网卡,而主板和网卡设计的时候均不知道对方的走线长度。NCSI总的走线超过规范要求,会导致NCSI的时序错误。具体表现在主板上的BMC NCSI RX信号建立保持时间不能保持满足时序要求,然而与NCSI相连接的智能网卡的不能调整delay来满足BMC接收端RX信号时序要求。可见,不同厂商网卡的NCSI信号固定delay不完全一样,导致主板上的NCSI信号时序很难有一个统一的delay值。In order to meet the various configuration needs of customers, for example: some configurations require NCSI to be connected through the front IO, and some configurations require NCSI to be connected through the rear IO, but there is only one interface for the NCSI on the BMC, taking into account the NCSI Front-out and back-out will cause the length of NCSI on the board to exceed 10 inches, and usually the length of NCSI cables also exceeds 10 inches. Not counting the length of the NCSI signal traces on the NIC, the length of the NCSI traces of the BMC on the motherboard plus the corresponding cables has exceeded 20 inches, exceeding the NCSI design requirements in the BMC manual. The motherboards of different manufacturers will adapt to the network cards of different manufacturers, and the motherboard and the network card are designed without knowing the length of each other's traces. The total routing of NCSI exceeds the specification requirements, which will cause timing errors of NCSI. Specifically, the setup and hold time of the BMC NCSI RX signal on the motherboard cannot meet the timing requirements, but the smart network card connected to the NCSI cannot adjust the delay to meet the RX signal timing requirements of the BMC receiver. It can be seen that the NCSI signal fixed delays of network cards from different manufacturers are not exactly the same, which makes it difficult for the NCSI signal timing on the motherboard to have a unified delay value.
因此,如何实现网卡NCSI信号的自动调节,以适配不同厂商的网卡设备,实现网卡稳定通信,是我们亟待解决的问题。Therefore, how to realize the automatic adjustment of the NCSI signal of the network card to adapt to the network card equipment of different manufacturers and realize the stable communication of the network card is an urgent problem to be solved.
发明内容Contents of the invention
针对以上问题,本发明的目的在于提供一种网卡NCSI信号的自动调节方法、系统、装置及可读存储介质,有效的解决了由于走线过长,NCSI的时序delay不能自动调节,导致服务器和网卡适配失败的问题。In view of the above problems, the object of the present invention is to provide a method, system, device and readable storage medium for automatically adjusting the NCSI signal of a network card, which effectively solves the problem that the timing delay of NCSI cannot be automatically adjusted due to too long wiring, which causes the server and The problem of network card adaptation failure.
本发明为实现上述目的,通过以下技术方案实现:一种网卡NCSI信号的自动调节方法,包括:In order to achieve the above object, the present invention is realized through the following technical solutions: a method for automatically adjusting network card NCSI signals, comprising:
将BMC的NCSI信号接入到主板的CPLD上,通过主板的CPLD向网卡PHY芯片传输NCSI信号;Connect the NCSI signal of the BMC to the CPLD of the main board, and transmit the NCSI signal to the PHY chip of the network card through the CPLD of the main board;
通过CPLD从BIOS获取网卡的ID值;Obtain the ID value of the network card from the BIOS through CPLD;
根据网卡的ID值判断CPLD内是否存储有网卡的NCSI delay值;Determine whether the NCSI delay value of the network card is stored in the CPLD according to the ID value of the network card;
若是,读取NCSI delay值,并根据NCSI delay值调整NCSI时序,建立网卡与BMC的通信;If yes, read the NCSI delay value, adjust the NCSI timing according to the NCSI delay value, and establish the communication between the network card and the BMC;
若否,通过CPLD进行NCSI delay值的调整,并在调整完成后进行网卡的适配测试,适配成功后,将当前的NCSI delay值存储在CPLD内。If not, the NCSI delay value is adjusted through the CPLD, and an adaptation test of the network card is performed after the adjustment is completed. After the adaptation is successful, the current NCSI delay value is stored in the CPLD.
进一步,所述将BMC的NCSI信号接入到主板的CPLD上,通过主板的CPLD向网卡PHY芯片传输NCSI信号具体包括:Further, the NCSI signal of the BMC is connected to the CPLD of the mainboard, and the transmission of the NCSI signal to the network card PHY chip through the CPLD of the mainboard specifically includes:
建立BMC与CPLD的I2C信号连接,所述I2C信号用于传输NCSI信号的时序参数和NCSI delay值;Set up the I2C signal connection between BMC and CPLD, and the I2C signal is used to transmit timing parameters and NCSI delay values of NCSI signals;
将主板上的平台控制中心的SMBUS信号接到CPLD上,所述SMBUS信号用于传输从BIOS获取的PCIE设备的ID;The SMBUS signal of the platform control center on the motherboard is connected to the CPLD, and the SMBUS signal is used to transmit the ID of the PCIE device obtained from the BIOS;
将PCIE设备的ID和NCSI delay值存储在CPLD的FLASH中;Store the ID and NCSI delay value of the PCIE device in the FLASH of the CPLD;
定义CPLD的GPIO接口,用于传输BMC与CPLD之间的信号。Define the GPIO interface of CPLD, which is used to transmit the signal between BMC and CPLD.
进一步,所述将BMC的NCSI信号接入到主板的CPLD上,通过主板的CPLD向网卡PHY芯片传输NCSI信号还包括:Further, the NCSI signal of the BMC is connected to the CPLD of the main board, and the transmission of the NCSI signal to the network card PHY chip by the CPLD of the main board also includes:
若当前NCSI线缆的长度大于预设长度阈值,在CPLD与网卡PHY芯片之间设置驱动器,通过驱动器进行CPLD与网卡PHY芯片的NCSI信号传输。If the current length of the NCSI cable is greater than the preset length threshold, a driver is provided between the CPLD and the PHY chip of the network card, and the NCSI signal transmission between the CPLD and the PHY chip of the network card is performed through the driver.
进一步,所述定义CPLD的GPIO接口包括:Further, the GPIO interface defining the CPLD includes:
定义CPLD的GPIO接口TXD0、TXD1、TXEN、RXD0、RXD1、CRSDV、REFCLK作为BMC与CPLD之间的信号接口;Define the GPIO interface TXD0, TXD1, TXEN, RXD0, RXD1, CRSDV, REFCLK of CPLD as the signal interface between BMC and CPLD;
定义CPLD的GPIO接口TXD0_B、TXD1_B、TXEN_B、RXD0_B、RXD1_B、CRSDV_B、REFCLK_B作为CPLD与驱动器之间的信号接口。Define the GPIO interfaces TXD0_B, TXD1_B, TXEN_B, RXD0_B, RXD1_B, CRSDV_B, REFCLK_B of the CPLD as the signal interface between the CPLD and the driver.
进一步,所述将BMC的NCSI信号接入到主板的CPLD上,通过主板的CPLD向网卡PHY芯片传输NCSI信号还包括:Further, the NCSI signal of the BMC is connected to the CPLD of the main board, and the transmission of the NCSI signal to the network card PHY chip by the CPLD of the main board also includes:
若当前NCSI线缆的长度大于预设长度阈值,在CPLD与网卡PHY芯片通过电阻串联。If the current length of the NCSI cable is greater than the preset length threshold, the CPLD and the PHY chip of the network card are connected in series through a resistor.
进一步,所述定义CPLD的GPIO接口包括:Further, the GPIO interface defining the CPLD includes:
定义CPLD的GPIO接口TXD0、TXD1、TXEN、RXD0、RXD1、CRSDV、REFCLK作为BMC与CPLD之间的信号接口;Define the GPIO interface TXD0, TXD1, TXEN, RXD0, RXD1, CRSDV, REFCLK of CPLD as the signal interface between BMC and CPLD;
定义CPLD的GPIO接口XD0_B,TXD1_B,TXEN_B,RXD0_B,RXD1_B,CRSDV_B作为CPLD与平台控制中心之间信号接口。Define the GPIO interfaces XD0_B, TXD1_B, TXEN_B, RXD0_B, RXD1_B, and CRSDV_B of the CPLD as the signal interface between the CPLD and the platform control center.
进一步,所述通过CPLD进行NCSI delay值的调整,并在调整完成后进行网卡的适配测试包括如下步骤:Further, the adjustment of the NCSI delay value through the CPLD, and the adaptation test of the network card after the adjustment is completed include the following steps:
步骤1:通过CPLD接收到NCSI信号的原始数据,将时钟相对于NCSI信号的原始数据的延迟时间向前或者向后调整0.1ns,作为当前的NCSI delay值;Step 1: Receive the original data of the NCSI signal through the CPLD, and adjust the delay time of the clock relative to the original data of the NCSI signal by 0.1ns forward or backward as the current NCSI delay value;
步骤2:通过BMC发出ping命令;Step 2: Issue a ping command through the BMC;
步骤3:判断是否能够ping通,若是,转到步骤4,若否,转到步骤7;Step 3: Determine whether it can be pinged, if yes, go to step 4, if not, go to step 7;
步骤4:启动网卡的压力测试;Step 4: Start the stress test of the network card;
步骤5:判断网卡的压力测试是否通过,若是,转到步骤6,否则,转到步骤7;Step 5: Determine whether the stress test of the network card is passed, if so, go to step 6, otherwise, go to step 7;
步骤6:CPLD将当前的NCSI delay值保存在CPLD的FLASH内;Step 6: The CPLD saves the current NCSI delay value in the FLASH of the CPLD;
步骤7:将时钟在当前的延迟时间的基础上继续向前或者向后调整0.1ns,作为当前的NCSI delay值,并转到步骤2。Step 7: Adjust the clock forward or backward by 0.1 ns based on the current delay time as the current NCSI delay value, and go to step 2.
相应的,本发明还公开了一种网卡NCSI信号的自动调节系统,包括:Correspondingly, the present invention also discloses a system for automatically adjusting the NCSI signal of the network card, including:
信号接入单元,用于将BMC的NCSI信号接入到主板的CPLD上,通过主板的CPLD向网卡PHY芯片传输NCSI信号;The signal access unit is used to connect the NCSI signal of the BMC to the CPLD of the main board, and transmit the NCSI signal to the PHY chip of the network card through the CPLD of the main board;
数据读取单元,用于通过CPLD从BIOS获取的网卡的ID值;The data reading unit is used to obtain the ID value of the network card from the BIOS through the CPLD;
判定单元,用于根据网卡的ID值判断CPLD内是否存储有网卡的NCSI delay值;通信单元,用于根据NCSI delay值调整NCSI时序,建立网卡与BMC的通信;A determination unit is used to judge whether the NCSI delay value of the network card is stored in the CPLD according to the ID value of the network card; a communication unit is used to adjust the NCSI timing according to the NCSI delay value, and establish communication between the network card and the BMC;
信号调节单元,用于通过CPLD进行NCSI delay值的调整,并在调整完成后进行网卡的适配测试,适配成功后,将当前的NCSI delay值存储在CPLD内。The signal adjustment unit is used to adjust the NCSI delay value through the CPLD, and perform an adaptation test of the network card after the adjustment is completed, and store the current NCSI delay value in the CPLD after the adaptation is successful.
进一步,信号接入单元具体用于:Further, the signal access unit is specifically used for:
建立BMC与CPLD的I2C信号连接,所述I2C信号用于传输NCSI信号的时序参数和NCSI delay值;Set up the I2C signal connection between BMC and CPLD, and the I2C signal is used to transmit timing parameters and NCSI delay values of NCSI signals;
将主板上的平台控制中心的SMBUS信号接到CPLD上,所述SMBUS信号用于传输从BIOS获取的PCIE设备的ID;The SMBUS signal of the platform control center on the motherboard is connected to the CPLD, and the SMBUS signal is used to transmit the ID of the PCIE device obtained from the BIOS;
将PCIE设备的ID和NCSI delay值存储在CPLD的FLASH中;Store the ID and NCSI delay value of the PCIE device in the FLASH of the CPLD;
定义CPLD的GPIO接口,用于传输BMC与CPLD之间的信号;Define the GPIO interface of CPLD to transmit the signal between BMC and CPLD;
若当前NCSI线缆的长度大于预设长度阈值,在CPLD与网卡PHY芯片之间设置驱动器,通过驱动器进行CPLD与网卡PHY芯片的NCSI信号传输;If the length of the current NCSI cable is greater than the preset length threshold, a driver is set between the CPLD and the PHY chip of the network card, and the NCSI signal transmission between the CPLD and the PHY chip of the network card is performed through the driver;
若当前NCSI线缆的长度大于预设长度阈值,将CPLD与网卡PHY芯片通过电阻串联。If the current length of the NCSI cable is greater than the preset length threshold, connect the CPLD and the PHY chip of the network card in series through a resistor.
进一步,信号调节单元具体用于:Further, the signal conditioning unit is specifically used for:
通过CPLD接收NCSI信号的原始数据,将时钟相对于数据的延迟向前delay 0.1ns,或者向后delay 0.1ns,然后BMC发出ping命令,如果能够ping通就向下进行网卡的压力测试。压力测试通过后通过CPLD将调整好的NCSI delay参数保存在CPLD的FLASH里。如果网卡的压力测试没有通过说明时序还不满足要求,继续向前或者向后delay,每次调整在上次的基础上进行加0.1ns的调整间隔。Receive the original data of the NCSI signal through the CPLD, and delay the clock relative to the data by 0.1ns forward or backward by 0.1ns, and then the BMC sends a ping command, and if the ping is successful, the stress test of the network card is performed downward. After the stress test is passed, save the adjusted NCSI delay parameters in the FLASH of the CPLD through the CPLD. If the stress test of the network card fails, it means that the timing does not meet the requirements, continue to delay forward or backward, and add an adjustment interval of 0.1 ns to each adjustment based on the previous adjustment.
相应的,本发明公开了一种网卡NCSI信号的自动调节装置,包括:Correspondingly, the invention discloses a device for automatically adjusting the NCSI signal of the network card, comprising:
存储器,用于存储网卡NCSI信号的自动调节程序;The memory is used to store the automatic adjustment program of the NCSI signal of the network card;
处理器,用于执行所述网卡NCSI信号的自动调节程序时实现如上文任一项所述网卡NCSI信号的自动调节方法的步骤。The processor is configured to implement the steps of the method for automatically adjusting the NCSI signal of the network card as described in any one of the above when executing the automatic adjustment program of the NCSI signal of the network card.
相应的,本发明公开了一种可读存储介质,所述可读存储介质上存储有网卡NCSI信号的自动调节程序,所述网卡NCSI信号的自动调节程序被处理器执行时实现如上文任一项所述网卡NCSI信号的自动调节方法的步骤。Correspondingly, the present invention discloses a readable storage medium, on which the automatic adjustment program of the NCSI signal of the network card is stored, and when the automatic adjustment program of the NCSI signal of the network card is executed by the processor, any of the above The steps of the method for automatically adjusting the NCSI signal of the network card described in the item.
对比现有技术,本发明有益效果在于:Compared with prior art, the beneficial effect of the present invention is:
1、本发明在网卡适配的时候通过CPLD实现了NCSI信号的delay调整,然后将delay值存储在CPLD的FLASH中。在使用不同的网卡时候,CPLD将读取不同网卡对应的delay值,使NCSI信号满足建立保持时间,保持网卡通信正常。1. The present invention realizes the delay adjustment of the NCSI signal through the CPLD when the network card is adapted, and then stores the delay value in the FLASH of the CPLD. When using different network cards, CPLD will read the delay values corresponding to different network cards, so that the NCSI signal meets the setup hold time and keeps the network card communication normal.
2.本发明通过CPLD来对NCSI信号时序delay进行调整,并将调整参数和网卡的ID信息一一对应保存在FLASH中,在系统启动后CPLD通过对不同网卡的ID信息来确定delay值,实现网卡的适配与正常通信。2. The present invention adjusts the NCSI signal timing delay through the CPLD, and stores the adjustment parameters and the ID information of the network card in the FLASH one by one. After the system starts, the CPLD determines the delay value through the ID information of different network cards to realize Adaptation and normal communication of the network card.
3、本发明还可用在其他的低速信号需要调整delay的应用场合。3. The present invention can also be used in other low-speed signal applications where the delay needs to be adjusted.
由此可见,本发明与现有技术相比,具有突出的实质性特点和显著的进步,其实施的有益效果也是显而易见的。It can be seen that, compared with the prior art, the present invention has outstanding substantive features and remarkable progress, and the beneficial effects of its implementation are also obvious.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.
附图1是本发明的方法流程图;Accompanying drawing 1 is method flowchart of the present invention;
附图2是本发明的系统结构图。Accompanying drawing 2 is the system structural diagram of the present invention.
图中,1为信号接入单元;2为数据读取单元;3为判定单元;4为通信单元;5为信号调节单元。In the figure, 1 is a signal access unit; 2 is a data reading unit; 3 is a judgment unit; 4 is a communication unit; 5 is a signal adjustment unit.
具体实施方式Detailed ways
本发明的核心是提供一种网卡NCSI信号的自动调节方法,现有技术中,BMC一般是有两个网络接口,一个用于专用的网络管理口,连接到RJ45上面;另一个作为共享网口连接到PCIE网卡上或者OCP网卡上。BMC的NCSI信号直接通过线缆连接到网卡PHY,或者通过switch开关通过线缆连接到网卡PHY。但是,由于主板和网卡上的NCSI总的走线过长,并且NCSI链路参数是固定的,即时序的delay值是固定的,服务器的NCS信号接收端的建立保持时间不满足时序要求导致网卡适配会出现失败的情况。The core of the present invention is to provide a method for automatically adjusting the NCSI signal of the network card. In the prior art, the BMC generally has two network interfaces, one is used for a dedicated network management port and is connected to the RJ45; the other is used as a shared network port Connect to the PCIE network card or the OCP network card. The NCSI signal of the BMC is directly connected to the PHY of the network card through a cable, or connected to the PHY of the network card through a switch through a cable. However, due to the long NCSI traces on the motherboard and the network card, and the fixed NCSI link parameters, that is, the delay value of the sequence is fixed, the setup and hold time of the NCS signal receiving end of the server does not meet the timing requirements, causing the network card to fail. Matching will fail.
而本发明提供的网卡NCSI信号的自动调节方法,首先,将BMC的NCSI信号接入到主板的CPLD上,通过主板的CPLD向网卡PHY芯片传输NCSI信号。然后,通过CPLD从BIOS获取的网卡的ID值,并根据网卡的ID值判断CPLD内是否存储有网卡的NCSI delay值。若是,读取NCSI delay值,并根据NCSI delay值调整NCSI时序,建立网卡与BMC的通信;若否,通过CPLD进行NCSI delay值的调整,并在调整完成后进行网卡的适配测试,适配成功后,将当前的NCSI delay值存储在CPLD内。由此可见,本发明在网卡适配的时候通过CPLD实现了NCSI信号的delay调整,然后将delay值存储在CPLD的FLASH中。在使用不同的网卡时候,CPLD将读取不同网卡对应的delay值,使NCSI信号满足建立保持时间,保持网卡通信正常。And the automatic adjustment method of network card NCSI signal that the present invention provides, at first, the NCSI signal of BMC is connected on the CPLD of mainboard, transmits NCSI signal to network card PHY chip by the CPLD of mainboard. Then, obtain the ID value of the network card from the BIOS through the CPLD, and judge 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, read the NCSI delay value, adjust the NCSI timing according to the NCSI delay value, and establish the communication between the network card and the BMC; if not, adjust the NCSI delay value through CPLD, and perform the adaptation test of the network card after the adjustment is completed. After success, store the current NCSI delay value in the CPLD. It can be seen that the present invention realizes the delay adjustment of the NCSI signal through the CPLD when the network card is adapted, and then stores the delay value in the FLASH of the CPLD. When using different network cards, CPLD will read the delay values corresponding to different network cards, so that the NCSI signal meets the setup hold time and keeps the network card communication normal.
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
实施例一:Embodiment one:
如图1所示,本实施例提供了一种网卡NCSI信号的自动调节方法,包括如下步骤:As shown in Figure 1, the present embodiment provides a method for automatically adjusting the NCSI signal of the network card, including the following steps:
S1:将BMC的NCSI信号接入到主板的CPLD上,通过主板的CPLD向网卡PHY芯片传输NCSI信号。S1: Connect the NCSI signal of the BMC to the CPLD of the main board, and transmit the NCSI signal to the PHY chip of the network card through the CPLD of the main board.
首先,建立BMC与CPLD的I2C信号连接,所述I2C信号用于传输NCSI信号的时序参数和NCSI delay值;并将主板上的平台控制中心的SMBUS信号接到CPLD上,所述SMBUS信号用于传输从BIOS获取的PCIE设备的ID;其中,将PCIE设备的ID和NCSI delay值存储在CPLD的FLASH中;最后,定义CPLD的GPIO接口,用于传输BMC与CPLD之间的信号。At first, set up the I2C signal connection of BMC and CPLD, and described I2C signal is used for the timing parameter of transmission NCSI signal and NCSI delay value; Transmit the ID of the PCIE device obtained from the BIOS; among them, store the ID of the PCIE device and the NCSI delay value in the FLASH of the CPLD; finally, define the GPIO interface of the CPLD for transmitting signals between the BMC and the CPLD.
因为需要根据NCSI线缆的长度来确定CPLD和网卡PHY两者之间是否需要搭配驱动器(BUFFER芯片)进行NCSI信号的传输,如果不使用驱动器,则直接串联电阻完成NCSI信号的传输;所以,CPLD的GPIO接口的定义方式包括以下两种情况:Because it is necessary to determine whether the CPLD and the network card PHY need to be equipped 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 resistor is directly connected in series to complete the transmission of the NCSI signal; therefore, CPLD The definition of the GPIO interface includes the following two situations:
(1)在搭配驱动器时,定义CPLD的GPIO接口TXD0、TXD1、TXEN、RXD0、RXD1、CRSDV、REFCLK作为BMC与CPLD之间的信号接口;定义CPLD的GPIO接口TXD0_B、TXD1_B、TXEN_B、RXD0_B、RXD1_B、CRSDV_B、REFCLK_B作为CPLD与驱动器之间的信号接口。(1) When matching with the driver, define CPLD’s GPIO interfaces TXD0, TXD1, TXEN, RXD0, RXD1, CRSDV, REFCLK as the signal interface between BMC and CPLD; define CPLD’s GPIO interfaces TXD0_B, TXD1_B, TXEN_B, RXD0_B, RXD1_B , CRSDV_B, REFCLK_B as the signal interface between CPLD and the driver.
(2)在不搭配驱动器时,定义CPLD的GPIO接口TXD0、TXD1、TXEN、RXD0、RXD1、CRSDV、REFCLK作为BMC与CPLD之间的信号接口;定义CPLD的GPIO接口XD0_B,TXD1_B,TXEN_B,RXD0_B,RXD1_B,CRSDV_B作为CPLD与平台控制中心之间信号接口。(2) When the driver is not used, define CPLD’s GPIO interfaces TXD0, TXD1, TXEN, RXD0, RXD1, CRSDV, REFCLK as signal interfaces between BMC and CPLD; define CPLD’s GPIO interfaces XD0_B, TXD1_B, TXEN_B, RXD0_B, RXD1_B, CRSDV_B serve as signal interface between CPLD and platform control center.
S2:通过CPLD从BIOS获取网卡的ID值。S2: Obtain the ID value of the network card from the BIOS through the CPLD.
S3:根据网卡的ID值判断CPLD内是否存储有网卡的NCSI delay值,若是,转到步骤S4,否则转到步骤S5。S3: Determine 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, go to step S4, otherwise go to step S5.
S4:读取NCSI delay值,并根据NCSI delay值调整NCSI时序,建立网卡与BMC的通信。S4: Read the NCSI delay value, adjust the NCSI timing according to the NCSI delay value, and establish communication between the network card and the BMC.
S5:通过CPLD进行NCSI delay值的调整,并在调整完成后进行网卡的适配测试,适配成功后,将当前的NCSI delay值存储在CPLD内。S5: Adjust the NCSI delay value through the CPLD, and perform an adaptation test of the network card after the adjustment is completed. After the adaptation is successful, store the current NCSI delay value in the CPLD.
其中,步骤S5包括如下步骤:Wherein, step S5 comprises the following steps:
步骤1:通过CPLD接收到NCSI信号的原始数据,将时钟相对于NCSI信号的原始数据的延迟时间向前或者向后调整0.1ns,作为当前的NCSI delay值。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.1 ns as the current NCSI delay value.
步骤2:通过BMC发出ping命令。Step 2: Issue a ping command through the BMC.
步骤3:判断是否能够ping通,若是,转到步骤4,若否,转到步骤7。Step 3: Determine whether the ping is possible, if yes, go to step 4, if not, go to step 7.
步骤4:启动网卡的压力测试。Step 4: Start the stress test of the network card.
步骤5:判断网卡的压力测试是否通过,若是,转到步骤6,否则,转到步骤7。Step 5: Determine whether the stress test of the network card is passed, if so, go to step 6, otherwise, go to step 7.
步骤6:CPLD将当前的NCSI delay值保存在CPLD的FLASH内。Step 6: The CPLD saves the current NCSI delay value in the FLASH of the CPLD.
步骤7:将时钟在当前的延迟时间的基础上继续向前或者向后调整0.1ns,作为当前的NCSI delay值,并转到步骤2。Step 7: Adjust the clock forward or backward by 0.1 ns based on the current delay time as the current NCSI delay value, and go to step 2.
本实施例提供了一种网卡NCSI信号的自动调节方法,通过CPLD来对NCSI信号时序delay进行调整,并将调整参数和网卡的ID信息一一对应保存在CPLD的FLASH中,在系统启动后CPLD通过对不同网卡的ID信息来确定delay值,然后实现网卡的适配与正常通信。This embodiment provides a method for automatically adjusting the NCSI signal of the network card. The NCSI signal timing delay is adjusted through the CPLD, and the adjustment parameters and the ID information of the network card are stored in the FLASH of the CPLD in one-to-one correspondence. After the system is started, the CPLD The delay value is determined through the ID information of different network cards, and then the adaptation and normal communication of the network cards are realized.
实施例二:Embodiment two:
基于实施例一,本实施例还公开了一种网卡NCSI信号的自动调节方法,包括:Based on the first embodiment, this embodiment also discloses a method for automatically adjusting the NCSI signal of the network card, including:
1、网卡在使用的时候分为网卡NCSI适配模式和网卡正常使用模式,其中网卡适配模式用于调整时序delay,网卡正常模式用于网卡的正常通信。BMC可以设置网卡适配的模式为自动适配模式和手动适配模式两种方式。1. When the network card is in use, it is divided into the network card NCSI adaptation mode and the network card normal use mode. The network card adaptation mode is used to adjust the timing delay, and the network card normal mode is used for the normal communication of the network card. BMC can set the network card adaptation mode to automatic adaptation mode and manual adaptation mode.
2、BMC设置手动适配模式后,工程师可以在BMC的管理页面手动设置NCSI delay参数,可以输入delay调整的间隔为0.1ns,0.2ns,0.3ns等,以及delay调整的范围大小,通过I2C传输到CPLD进行相应的适配操作。BMC网页管理界面可以显示调整后的NCSI时序图,供参阅。CPLD适配完成后,将delay参数保存在flash中,网卡即可正常通信。2. After the BMC has set the manual adaptation mode, the engineer can manually set the NCSI delay parameters on the BMC management page. You can enter the delay adjustment interval as 0.1ns, 0.2ns, 0.3ns, etc., and the range of the delay adjustment, and transmit it through I2C Go to CPLD for corresponding adaptation operation. The BMC web page management interface can display the adjusted NCSI sequence diagram for reference. After the CPLD adaptation is completed, save the delay parameter in the flash, and the network card can communicate normally.
3、CPLD适配完成后,将delay参数保存在CPLD的FLASH中,BMC将设置为网卡正常使用模式,网卡即可正常通信。3. After the CPLD adaptation is completed, save the delay parameter in the FLASH of the CPLD, and the BMC will be set to the normal use mode of the network card, and the network card can communicate normally.
4、BMC设置自动适配模式后,CPLD通过从BIOS获取的网卡的ID值,进行判断是否存在相应网卡NCSI delay值。4. After the BMC sets the automatic adaptation mode, the CPLD judges whether there is a corresponding network card NCSI delay value through the ID value of the network card obtained from the BIOS.
5、如果CPLD的FLASH中存有相应的NCSI delay值,则CPLD工作在网卡正常模式下,读取NCSI delay值,网卡会正常通信。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, read the NCSI delay value, and the network card will communicate normally.
6、如果CPLD的FLASH中没有相应的NCSI delay值,则CPLD工作网卡适配模式下,CPLD采集从网卡发送过来的数据信号,CPLD接收到NCSI信号的原始数据后,通过将时钟相对于数据的延迟向前delay 0.1ns,或者向后delay 0.1ns,然后BMC发出ping命令,如果能够ping通就向下进行网卡的压力测试。压力测试通过后CPLD将调整好的NCSI delay参数保存在FLASH里。如果网卡的压力测试没有通过说明时序还不满足要求,继续向前或者向后delay,每次调整在上次的基础上进行加0.1ns的调整间隔。在BMC的管理界面可以手动修改每次调整的delay间隔时间,以及整体可以调整的delay范围。BMC将调整参数通过I2C传输给CPLD,CPLD将最终调整后的时序参数传输到BMC,BMC的管理界面可以查看绘制的NCSI时序图。服务器在插入不同厂商不同型号的网卡时候,CPLD会将网卡的厂商和型号信息存储下来,并和调整好的delay值放在一个表格里。6. If there is no corresponding NCSI delay value in the CPLD's FLASH, then in the CPLD working network card adaptation mode, the CPLD collects the data signal sent from the network card. The delay is forward delay 0.1ns, or backward delay 0.1ns, and then the BMC sends a ping command, and if the ping is successful, the stress test of the network card is performed downward. After the stress test passes, the CPLD saves the adjusted NCSI delay parameters in the FLASH. If the stress test of the network card fails, it means that the timing does not meet the requirements, continue to delay forward or backward, and add an adjustment interval of 0.1 ns to each adjustment based on the previous adjustment. On the BMC management interface, you can manually modify the delay interval for each adjustment, as well as the overall adjustable delay range. The BMC transmits the adjustment parameters to the CPLD through I2C, and the CPLD transmits the final adjusted timing parameters to the BMC. The BMC management interface can view the drawn NCSI timing diagram. When the server inserts network cards of different manufacturers and models, the CPLD will store the manufacturer and model information of the network cards, and put them in a table with the adjusted delay value.
以上即为网卡的适配过程.网卡适配完成后,将服务器设置为正常使用模式,CPLD将读取不同网卡对应的delay值,来调整NCSI时序,以实现网卡的稳定可靠运行。The above is the adaptation process of the network card. After the network card adaptation is completed, set the server to the normal use mode, and the CPLD will read the corresponding delay value of different network cards to adjust the NCSI timing to achieve stable and reliable operation of the network card.
实施例三:Embodiment three:
基于上述实施例,如图2所示,本实施例还公开了了一种网卡NCSI信号的自动调节系统,包括信号接入单元1、数据读取单元2、判定单元3、通信单元4、和信号调节单元5。Based on the above embodiment, as shown in Figure 2, this embodiment also discloses a system for automatically adjusting the NCSI signal of the network card, including a signal access unit 1, a data reading unit 2, a determination unit 3, a communication unit 4, and Signal Conditioning Unit 5.
信号接入单元1,用于将BMC的NCSI信号接入到主板的CPLD上,通过主板的CPLD向网卡PHY芯片传输NCSI信号。信号接入单元1具体用于:The signal access unit 1 is used to connect the NCSI signal of the BMC to the CPLD of the main board, and transmit the NCSI signal to the PHY chip of the network card through the CPLD of the main board. The signal access unit 1 is specifically used for:
建立BMC与CPLD的I2C信号连接,所述I2C信号用于传输NCSI信号的时序参数和NCSI delay值;将主板上的平台控制中心的SMBUS信号接到CPLD上,所述SMBUS信号用于传输从BIOS获取的PCIE设备的ID;将PCIE设备的ID和NCSI delay值存储在CPLD的FLASH中;定义CPLD的GPIO接口,用于传输BMC与CPLD之间的信号;若当前NCSI线缆的长度大于预设长度阈值,在CPLD与网卡PHY芯片之间设置驱动器,通过驱动器进行CPLD与网卡PHY芯片的NCSI信号传输;若当前NCSI线缆的长度大于预设长度阈值,在CPLD与网卡PHY芯片通过电阻串联。Establish the I2C signal connection between the BMC and the CPLD, the I2C signal is used to transmit the timing parameters and the NCSI delay value of the NCSI signal; the SMBUS signal of the platform control center on the motherboard is connected to the CPLD, and the SMBUS signal is used for transmission from the BIOS Get the ID of the PCIE device; store the ID of the PCIE device and the NCSI delay value in the FLASH of the CPLD; define the GPIO interface of the CPLD to transmit the signal between the BMC and the CPLD; if the length of the current NCSI cable is greater than the preset Length threshold, set a driver between the CPLD and the PHY chip of the network card, and transmit the NCSI signal between the CPLD and the PHY chip of the network card through the driver; if the length of the current NCSI cable is greater than the preset length threshold, connect the CPLD and the PHY chip of the network card in series through a resistor.
数据读取单元2,用于通过CPLD从BIOS获取的网卡的ID值。The data reading unit 2 is used for obtaining the ID value of the network card from the BIOS through the CPLD.
判定单元3,用于根据网卡的ID值判断CPLD内是否存储有网卡的NCSI delay值。The determining unit 3 is configured to determine whether the NCSI delay value of the network card is stored in the CPLD according to the ID value of the network card.
通信单元4,用于根据NCSI delay值调整NCSI时序,建立网卡与BMC的通信。The communication unit 4 is configured to adjust the NCSI timing according to the NCSI delay value, and establish the communication between the network card and the BMC.
信号调节单元5,用于通过CPLD进行NCSI delay值的调整,并在调整完成后进行网卡的适配测试,适配成功后,将当前的NCSI delay值存储在CPLD内。The signal adjustment unit 5 is used to adjust the NCSI delay value through the CPLD, and perform an adaptation test of the network card after the adjustment is completed, and store the current NCSI delay value in the CPLD after the adaptation is successful.
信号调节单元5具体用于:The signal conditioning unit 5 is specifically used for:
通过CPLD接收NCSI信号的原始数据,将时钟相对于数据的延迟向前delay0.1ns,或者向后delay 0.1ns,然后BMC发出ping命令,如果能够ping通就向下进行网卡的压力测试。压力测试通过后通过CPLD将调整好的NCSI delay参数保存在CPLD的FLASH里。如果网卡的压力测试没有通过说明时序还不满足要求,继续向前或者向后delay,每次调整在上次的基础上进行加0.1ns的调整间隔。Receive the original data of the NCSI signal through the CPLD, and delay the clock relative to the data by 0.1ns forward or backward by 0.1ns, and then the BMC sends a ping command, and if the ping is successful, the stress test of the network card is performed downward. After the stress test is passed, save the adjusted NCSI delay parameters in the FLASH of the CPLD through the CPLD. If the stress test of the network card fails, it means that the timing does not meet the requirements, continue to delay forward or backward, and add an adjustment interval of 0.1 ns to each adjustment based on the previous adjustment.
本实施例提供了一种网卡NCSI信号的自动调节系统,网卡适配的时候通过CPLD实现了NCSI信号的delay调整,然后将delay值存储在CPLD的FLASH中。在使用不同的网卡时候,CPLD将读取不同网卡对应的delay值,使NCSI信号满足建立保持时间,保持网卡通信正常。This embodiment provides an automatic adjustment system for the NCSI signal of the network card. When the network card is adapted, the delay adjustment of the NCSI signal is realized through the CPLD, and then the delay value is stored in the FLASH of the CPLD. When using different network cards, CPLD will read the delay values corresponding to different network cards, so that the NCSI signal meets the setup hold time and keeps the network card communication normal.
实施例四:Embodiment four:
本实施例公开了一种网卡NCSI信号的自动调节装置,包括处理器和存储器;其中,所述处理器执行所述存储器中保存的网卡NCSI信号的自动调节程序时实现以下步骤:The present embodiment discloses a device for automatically adjusting the NCSI signal of the network card, including a processor and a memory; wherein, the processor implements the following steps when executing the automatic adjustment program of the NCSI signal of the network card stored in the memory:
S1:将BMC的NCSI信号接入到主板的CPLD上,通过主板的CPLD向网卡PHY芯片传输NCSI信号。S1: Connect the NCSI signal of the BMC to the CPLD of the main board, and transmit the NCSI signal to the PHY chip of the network card through the CPLD of the main board.
S2:通过CPLD从BIOS获取的网卡的ID值。S2: The ID value of the network card obtained from the BIOS through the CPLD.
S3:根据网卡的ID值判断CPLD内是否存储有网卡的NCSI delay值,若是,转到步骤S4,否则转到步骤S5。S3: Determine 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, go to step S4, otherwise go to step S5.
S4:读取NCSI delay值,并根据NCSI delay值调整NCSI时序,建立网卡与BMC的通信。S4: Read the NCSI delay value, adjust the NCSI timing according to the NCSI delay value, and establish communication between the network card and the BMC.
S5:通过CPLD进行NCSI delay值的调整,并在调整完成后进行网卡的适配测试,适配成功后,将当前的NCSI delay值存储在CPLD内。S5: Adjust the NCSI delay value through the CPLD, and perform an adaptation test of the network card after the adjustment is completed. After the adaptation is successful, store the current NCSI delay value in the CPLD.
进一步的,本实施例中的网卡NCSI信号的自动调节装置,还可以包括:Further, the automatic adjustment device of the network card NCSI signal in the present embodiment can also include:
输入接口,用于获取外界导入的网卡NCSI信号的自动调节程序,并将获取到的网卡NCSI信号的自动调节程序保存至所述存储器中,还可以用于获取外界终端设备传输的各种指令和参数,并传输至处理器中,以便处理器利用上述各种指令和参数展开相应的处理。本实施例中,所述输入接口具体可以包括但不限于USB接口、串行接口、语音输入接口、指纹输入接口、硬盘读取接口等。The input interface is used to obtain the automatic adjustment program of the network card NCSI signal imported from the outside world, and save the obtained automatic adjustment program of the network card NCSI signal into the memory, and can also be used to obtain various instructions and information transmitted by the external terminal equipment. parameters, and transmit them to the processor, so that the processor can use the above-mentioned various instructions and parameters to carry out corresponding processing. In this embodiment, the input interface may specifically include, but 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.
输出接口,用于将处理器产生的各种数据输出至与其相连的终端设备,以便于与输出接口相连的其他终端设备能够获取到处理器产生的各种数据。本实施例中,所述输出接口具体可以包括但不限于USB接口、串行接口等。The output interface is used to output various data generated by the processor to a terminal device connected to it, so that other terminal devices connected to the output interface can obtain various data generated by the processor. In this embodiment, the output interface may specifically include but not limited to a USB interface, a serial interface, and the like.
通讯单元,用于在网卡NCSI信号的自动调节装置和外部服务器之间建立远程通讯连接,以便于网卡NCSI信号的自动调节装置能够将镜像文件挂载到外部服务器中。本实施例中,通讯单元具体可以包括但不限于基于无线通讯技术或有线通讯技术的远程通讯单元。The communication unit is used to establish a remote communication connection between the automatic adjustment device of the NCSI signal of the network card and the external server, so that the automatic adjustment device of the NCSI signal of the network card 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 wireless communication technology or wired communication technology.
键盘,用于获取用户通过实时敲击键帽而输入的各种参数数据或指令。The keyboard is used to obtain various parameter data or instructions input by the user by tapping the keycaps in real time.
显示器,用于运行服务器供电线路短路定位过程的相关信息进行实时显示。The display is used for real-time display of relevant information in the process of locating the short circuit of the power supply line of the server.
鼠标,可以用于协助用户输入数据并简化用户的操作。The mouse can be used to assist the user to input data and simplify the user's operation.
本实施例提供了一种网卡NCSI信号的自动调节装置,有效的解决了由于走线过长,NCSI的时序delay不能自动调节,导致服务器和网卡适配失败的问题。This embodiment provides an automatic adjustment device for the NCSI signal of the network card, which effectively solves the problem that the timing delay of the NCSI cannot be automatically adjusted due to too long wires, which leads to the failure of adaptation between the server and the network card.
实施例五:Embodiment five:
本实施例还公开了一种可读存储介质,这里所说的可读存储介质包括随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动硬盘、CD-ROM或技术领域内所公知的任意其他形式的存储介质。可读存储介质中存储有网卡NCSI信号的自动调节程序,所述网卡NCSI信号的自动调节程序被处理器执行时实现以下步骤:This 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 disks, removable hard disks, CD-ROMs or any other form of storage media known in the technical field. The automatic adjustment program of the NCSI signal of the network card is stored in the readable storage medium, and the automatic adjustment program of the NCSI signal of the network card is executed by the processor to realize the following steps:
S1:将BMC的NCSI信号接入到主板的CPLD上,通过主板的CPLD向网卡PHY芯片传输NCSI信号。S1: Connect the NCSI signal of the BMC to the CPLD of the main board, and transmit the NCSI signal to the PHY chip of the network card through the CPLD of the main board.
S2:通过CPLD从BIOS获取的网卡的ID值。S2: The ID value of the network card obtained from the BIOS through the CPLD.
S3:根据网卡的ID值判断CPLD内是否存储有网卡的NCSI delay值,若是,转到步骤S4,否则转到步骤S5。S3: Determine 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, go to step S4, otherwise go to step S5.
S4:读取NCSI delay值,并根据NCSI delay值调整NCSI时序,建立网卡与BMC的通信。S4: Read the NCSI delay value, adjust the NCSI timing according to the NCSI delay value, and establish communication between the network card and the BMC.
S5:通过CPLD进行NCSI delay值的调整,并在调整完成后进行网卡的适配测试,适配成功后,将当前的NCSI delay值存储在CPLD内。S5: Adjust the NCSI delay value through the CPLD, and perform an adaptation test of the network card after the adjustment is completed. After the adaptation is successful, store the current NCSI delay value in the CPLD.
本实施例提供了一种可读存储介质,可读存储介质中存储的网卡NCSI信号的自动调节程序实现了通过CPLD来对NCSI信号时序delay进行调整,并将调整参数和网卡的ID信息一一对应保存在FLASH中,在系统启动后CPLD通过对不同网卡的ID信息来确定delay值,实现网卡的适配与正常通信。This embodiment provides a readable storage medium. The automatic adjustment program of the network card NCSI signal stored in the readable storage medium realizes the adjustment of the timing delay of the NCSI signal through the CPLD, and the adjustment parameters and the ID information of the network card one by one Correspondingly stored in FLASH, after the system starts, the CPLD determines the delay value through the ID information of different network cards, so as to realize the adaptation and normal communication of the network cards.
另外,本发明还可用在其他的低速信号需要调整delay的应用场合。In addition, the present invention can also be used in other application occasions where delay adjustment is required for low-speed signals.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的方法而言,由于其与实施例公开的系统相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same or similar parts of each embodiment can be referred to each other. As for the method disclosed in the embodiment, since it corresponds to the system disclosed in the embodiment, the description is relatively simple, and for related parts, please refer to the description of the method part.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the possible For interchangeability, in the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
在本发明所提供的几个实施例中,应该理解到,所揭露的系统、系统和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,系统或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several 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 system embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of systems or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个单元中。In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each module may physically exist separately, or two or more modules may be integrated into one unit.
同理,在本发明各个实施例中的各处理单元可以集成在一个功能模块中,也可以是各个处理单元物理存在,也可以两个或两个以上处理单元集成在一个功能模块中。Similarly, each processing unit in each embodiment of the present invention may be integrated into one functional module, or each processing unit may exist physically, or two or more processing units may be integrated into one functional module.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be directly implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this text, relational terms such as first and second etc. are only used to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations, any such actual relationship or order exists. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
以上对本发明所提供的网卡NCSI信号的自动调节方法、系统、装置及可读存储介质进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。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 above in detail. In this paper, specific examples are used to illustrate the principle and implementation of the present invention, and the descriptions of the above embodiments are only used to help understand the method and core idea of the present invention. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, some improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.
Claims (8)
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)
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)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN113645088A (en) | 2021-11-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111159085B (en) | A kind of automatic configuration method of PCIE bandwidth, server motherboard and server | |
CN109558371B (en) | Method for communicating with a microcontroller, and computing system | |
CN111901164B (en) | OCP NIC network card adaptation control method, device, equipment and system | |
CN110554943A (en) | I3C-based multi-node server CMC management system and method | |
CN212135417U (en) | A device and single board for configuring slave device address | |
CN100438453C (en) | A system and method to test network card | |
CN107908583B (en) | A power consumption management board for a server | |
CN113645088B (en) | Automatic regulation method, system, device and medium for network card NCSI signal | |
US20030229738A1 (en) | Controller interface | |
CN113726592B (en) | A transmission delay testing method, system and related components of an edge server | |
WO2021056995A1 (en) | Parallel system-based communication method and communication device, and terminal | |
CN118467429A (en) | Equipment expansion system and server | |
CN115525517A (en) | Mixed-insertion hard disk lamp signal control system, method and device and readable storage medium | |
CN116973727A (en) | Signal testing device of server board card | |
CN113608992B (en) | A remote debugging system and method for an edge server | |
CN108845913A (en) | A kind of diagnostic card of system and its I/O state for obtaining CPLD | |
CN115827342A (en) | Test fixture, test system and OCP network card test method | |
CN112131157B (en) | Method for realizing IPMI function by using USB interface, USB interface and server | |
CN105956230B (en) | A kind of electric parameter compensation method and device | |
CN115525500A (en) | A device debugging method, device, equipment and medium | |
CN115509849A (en) | A BMC-based sensor information reading system, method, device and medium | |
CN201142073Y (en) | Motherboard circuit and expansion card | |
CN114578938B (en) | Method, system, device and storage medium for dual-battery redundant start-up of server | |
CN111208892A (en) | By serial I2Method for resetting chip system by C signal | |
CN112256603B (en) | Server and expansion equipment based on OCP |
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 |