A method for testing PCIe link quality based on server
A series of steps are executed by the server, including the use of FFE digital filters and bias maps, which solves the shortcomings of PCIe link quality testing in the existing technology, enables detailed quantitative testing of PCIe link quality, and can be used in any connection mode. Test under the link to understand the link error situation, which improves the credibility and detail of the test.
Patent Information
- Application Number
- CN202411083007.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-08-08
AI Technical Summary
The existing technology is difficult to effectively test the quality of server PCIe links in harsh environments. In particular, it is impossible to quantitatively observe the link margin and conduct in-board PCIe link consistency testing. Moreover, the oscilloscope test is a black box test and cannot guarantee PCIe Bit error conditions of links in harsh environments.
A series of steps are performed through the server, including repeatedly restarting the PCIe link, auto-negotiating FFE parameters, drawing the bias map, starting the FFE digital filter, clearing historical errors, sending test signals, obtaining link status information, and drawing the bias map according to the bias map and parameter test path to determine the actual center parameters and margin range to achieve quantitative testing of PCIe link quality.
It realizes detailed testing of PCIe link quality, can perform signal testing under any connection method and non-standard interface, specifically quantifies the margin of each parameter item, understands the range and type of link errors, and improves the reliability of the test. Reliability and detail.
Smart Images

Figure CN118611837B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of server testing, and in particular to a method for testing PCIe link quality based on a server. Background Art
[0002] PCIe link is a communication link frequently used on servers. Therefore, ensuring the quality of PCIe link is the basis for ensuring the normal use of servers, so we need to test the quality of server PCIe link. The existing test method for PCIe link quality usually uses the PCIe interface to connect an oscilloscope to perform TX consistency test.
[0003] For example, the invention application with application number: CN202310301324.8 performs signal integrity testing on the PCIe link of the access device card under different signal impact parameter values, takes into account the impact of the CPU communicating with the device when testing the PCIe signal, and improves the credibility of the PCIe link test results by adjusting the signal impact parameters.
[0004] However, this test method requires selecting matching test tools based on CPU specifications and ensuring that the PCIe interface is compatible with the electrical performance of the test fixture, which will lead to limitations in the interface signal definition; and even if the PCIe link meets the consistency test requirements, it may not guarantee that the PCIe link will not have bit errors in harsh environments.
[0005] In addition, the oscilloscope TX consistency test is a black box test, which cannot quantitatively observe the actual PCIe link margin situation. Also, due to the integrated design of the server, the PCIe link within the board cannot be consistency tested using an oscilloscope. Therefore, a server-based method for testing PCIe link quality is needed to solve the above technical problems. Summary of the invention
[0006] In order to solve the above technical problems, the present invention provides a method for testing the quality of a PCIe link based on a server, wherein the server performs the following steps to test the quality of a PCIe link:
[0007] Step 1: Restart the PCIe link repeatedly, auto-negotiate FFE parameters and set them as tentative central parameters;
[0008] Step 2: Draw a deviation map and set the deviation path starting from the tentative center parameter;
[0009] Step 3: The server starts the FFE digital filter and imports the deviation map, initial center parameters and parameter test path;
[0010] Step 4: Clear the historical accumulated bit errors in the server log;
[0011] Step 5: Query the link status and save the link status information and initial bit error before the test;
[0012] Step 6: The server sends an input test signal to the PCIe link and uses the FFE digital filter to deflect the signal based on the initial center parameters according to the set FFE parameter items.
[0013] Step 7: The server operates the PCIe link according to the maximum IO pressure of the link until the operation reaches the preset time;
[0014] Step 8: The server receives the output test signal from the PCIe link and obtains the link status information and test bit errors after the test;
[0015] Step 9: Compare the link status information before and after the test, the initial bit error and the test bit error; if there is a difference, mark the current FFE parameter item as fail; if there is no difference, mark the current FFE parameter item as pass;
[0016] Step 10: The server stops running the PCIe link according to the maximum IO pressure of the link;
[0017] Step 11: Determine whether to traverse each FFE parameter item in the deviation map; if so, proceed to step 12; if not, extend the parameter test path, set the next FFE parameter item and return to step 4;
[0018] Step 12: Determine the actual center parameters and center margin range based on the marked deviation map.
[0019] As a further solution, the FFE digital filter:
[0020] y[t]=c -1 x[t+T]+c 0 x[t]+c 1 x[t-T];|c -1 |+|c 0 |+|c 1 |=c;
[0021] in, y[t] To output digital signal ,c -1 is the pre-tap coefficient, c 0 is the main tap coefficient, c 1 Post-tap coefficients, T is the cycle time, x[t+T], x[t], x[t-T] They aret+T time 、t time , t-T The input digital signal at the time; c is the tap constant coefficient, t is the time variable.
[0022] As a further solution, the bias map is pre-tapped with coefficients c -1 and post-tap coefficients c 1 As the independent variable, the main tap coefficient c 0 Set each FFE parameter term as the dependent variable.
[0023] As a further solution, parameter test paths are set by picking parameters at intervals.
[0024] As a further solution, in step 9, the difference information of the FFE parameter items marked as fail is also printed, and the bit error type is determined based on the difference information and the corresponding FFE parameter items are marked; wherein the bit error types include a small number of bit errors, a large number of bit errors and link disconnection.
[0025] As a further solution, the actual center parameters are determined as follows:
[0026] Set the center margin range and set the initial input test signal as the reference value; the center margin range unit is dB;
[0027] Obtain the output test signal corresponding to each FFE parameter item, and calculate the dB difference between the output test signal and the reference value;
[0028] Taking each FFE parameter item as the center, check whether there is an FFE parameter item marked as fail within the center margin range;
[0029] If it exists, the current FFE parameter item is excluded; if it does not exist, the current FFE parameter item is received;
[0030] Among the received FFE parameter items: continue to expand the center margin range, and check whether there is an FFE parameter item marked as fail within the center margin range; until the FFE parameter item that satisfies the largest center margin range is screened out and used as the actual center parameter;
[0031] If there is no received FFE parameter item, then among the excluded FFE parameter items: select the FFE parameter item with the least number of FFE parameter items marked as fail within the center margin range as the actual center parameter.
[0032] Compared with the related art, the method for testing PCIe link quality based on a server provided by the present invention has the following beneficial effects:
[0033] The present invention is based on the server performing signal deviation through the FFE digital filter, and according to the deviation map, the initial center parameter and the parameter test path, the PCIe link quality test on the board is realized; due to the on-board digital deviation strategy adopted, the PCIe signal test of any connection mode can be realized, including signals such as on-board and non-standard interfaces; and the margin conditions corresponding to each FFE parameter item can be specifically quantified. In addition, since the margin conditions of each parameter are clear, the margin boundary (the range where bit errors frequently occur) can also be obtained, so as to understand more detailed PCIe link quality information. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A schematic diagram of the steps of a method for testing PCIe link quality based on a server provided by the present invention;
[0035] Figure 2 A schematic diagram of a scene of a marked deflected map provided by the present invention. DETAILED DESCRIPTION
[0036] The present invention will be further described below in conjunction with the accompanying drawings and implementation modes.
[0037] like Figure 1 As shown, a method for testing PCIe link quality based on a server is shown, where the server performs the following steps to test the PCIe link quality:
[0038] Step 1: Restart the PCIe link repeatedly, auto-negotiate FFE parameters and set them as tentative central parameters;
[0039] Step 2: Draw a deviation map and set the deviation path starting from the tentative center parameter;
[0040] Step 3: The server starts the FFE digital filter and imports the deviation map, initial center parameters and parameter test path;
[0041] Step 4: Clear the historical accumulated bit errors in the server log;
[0042] Step 5: Query the link status and save the link status information and initial bit error before the test;
[0043] Step 6: The server sends an input test signal to the PCIe link and uses the FFE digital filter to deflect the signal based on the initial center parameters according to the set FFE parameter items.
[0044] Step 7: The server operates the PCIe link according to the maximum IO pressure of the link until the operation reaches the preset time;
[0045] Step 8: The server receives the output test signal from the PCIe link and obtains the link status information and test bit errors after the test;
[0046] Step 9: Compare the link status information before and after the test, the initial bit error and the test bit error; if there is a difference, mark the current FFE parameter item as fail; if there is no difference, mark the current FFE parameter item as pass;
[0047] Step 10: The server stops running the PCIe link according to the maximum IO pressure of the link;
[0048] Step 11: Determine whether to traverse each FFE parameter item in the deviation map; if so, proceed to step 12; if not, extend the parameter test path, set the next FFE parameter item and return to step 4;
[0049] Step 12: Determine the actual center parameters and center margin range based on the marked deviation map.
[0050] It should be noted that the margin range refers to the offset range within which normal information transmission is maintained after the signal in the PCIe link is offset; the larger the margin range, the higher the quality of the PCIe link, so we need to find the actual center parameter and the corresponding center margin range to measure the quality of the PCIe link. However, the oscilloscope consistency test is a black box test, which cannot quantitatively observe the actual PCIe link margin situation, and cannot perform on-board testing and non-standard interface testing.
[0051] To this end, this embodiment is based on the server to perform signal deviation through the FFE digital filter, and according to the deviation map, initial center parameters and parameter test path, the PCIe link quality test on the board is realized; due to the adoption of the on-board digital deviation strategy, the PCIe signal test of any connection method can be realized, including signals such as on-board and non-standard interfaces; and the margin conditions corresponding to each FFE parameter item can be specifically quantified. In addition, since the margin conditions of each parameter are clear, the margin boundary (the range where bit errors frequently occur) can also be obtained, so as to understand more detailed PCIe link quality information.
[0052] Figure 2As shown, in a specific embodiment, a deviation map can be drawn through FFE (pre, main, post) parameters, and the initial center parameter (only the approximate center parameter is required, and the actual center parameter is obtained by subsequent testing) can be obtained by the parameters of the link adaptive negotiation after repeated power on and off, and starting from the initial center parameter, the FFE parameters around the center parameter are traversed; by detecting the link status under each parameter and the bit error situation under the maximum IO pressure, the parameter boundary value of the link can be intuitively seen.
[0053] As a further solution, the FFE digital filter:
[0054] y[t]=c -1 x[t+T]+c 0 x[t]+c 1 x[t-T];|c -1 |+|c 0 |+|c 1 |=c;
[0055] in, y[t] To output digital signal ,c -1 is the pre-tap coefficient, c 0 is the main tap coefficient, c 1 Post-tap coefficients, T is the cycle time, x[t+T], x[t], x[t-T] They are t+T time 、t time , t-T The input digital signal at the time; c is the tap constant coefficient, t is the time variable.
[0056] As a further solution, the bias map is pre-tapped with coefficients c -1 and post-tap coefficients c 1 As the independent variable, the main tap coefficient c 0 Set each FFE parameter term as the dependent variable.
[0057] It should be noted that: Figure 2 As shown, we set the tap constant coefficient c=32 ; Therefore, the FFE parameter items corresponding to the independent variables and dependent variables can be obtained.
[0058] As a further solution, parameter test paths are set by picking parameters at intervals.
[0059] It should be noted that: this embodiment is mainly to reduce the number of tests, save test time and energy consumption; the data between two normal data are usually considered normal, and the data between two abnormal data are usually considered abnormal.
[0060] As a further solution, in step 9, the difference information of the FFE parameter items marked as fail is also printed, and the bit error type is determined based on the difference information and the corresponding FFE parameter items are marked; wherein the bit error types include a small number of bit errors, a large number of bit errors and link disconnection.
[0061] It should be noted that a small number of bit errors and a large number of bit errors are judged based on the number of bit errors. If the current number of bit errors is within the set small number of bit errors range, it is a small number of bit errors type; if it is within the large number of bit errors range, it is a large number of bit errors type.
[0062] As a further solution, the actual center parameters are determined as follows:
[0063] Set the center margin range and set the initial input test signal as the reference value; the center margin range unit is dB;
[0064] Obtain the output test signal corresponding to each FFE parameter item, and calculate the dB difference between the output test signal and the reference value;
[0065] Taking each FFE parameter item as the center, check whether there is an FFE parameter item marked as fail within the center margin range;
[0066] If it exists, the current FFE parameter item is excluded; if it does not exist, the current FFE parameter item is received;
[0067] Among the received FFE parameter items: continue to expand the center margin range, and check whether there is an FFE parameter item marked as fail within the center margin range; until the FFE parameter item that satisfies the largest center margin range is screened out and used as the actual center parameter;
[0068] If there is no received FFE parameter item, then among the excluded FFE parameter items: select the FFE parameter item with the least number of FFE parameter items marked as fail within the center margin range as the actual center parameter.
[0069] It should be noted that margin refers to the offset range within which normal information transmission is maintained after the signal in the PCIe link is offset; the larger the margin, the higher the quality of the PCIe link, so we need to find the actual center parameter and the corresponding center margin range to measure the quality of the PCIe link. Figure 2The marked deviation map shows that the link is disconnected at parameter 0,21,-11, and there are a large number of bit errors at parameters 0,22,-10 and -2,22,-8. There are a small number of bit errors at parameters -4,23,-5, -4,22,-6 and -8,22,-2. There are no bit errors or link abnormalities in other parameters. Based on the above, the boundary parameters of the link can be accurately found, and the central parameter -5,27,0 with a larger margin can be selected according to this deviation result.
[0070] The above are only embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for testing PCIe link quality based on a server, characterized in that: Perform the following steps to test the PCIe link quality on the server: Step 1: Restart the PCIe link repeatedly, auto-negotiate FFE parameters and set them as tentative central parameters; Step 2: Draw a deviation map and set the deviation path starting from the tentative center parameter; Step 3: The server starts the FFE digital filter and imports the deviation map, initial center parameters and parameter test path; Step 4: Clear the historical accumulated bit errors in the server log; Step 5: Query the link status and save the link status information and initial bit error before the test; Step 6: The server sends an input test signal to the PCIe link and uses the FFE digital filter to deflect the signal based on the initial center parameters according to the set FFE parameter items. Step 7: The server operates the PCIe link according to the maximum IO pressure of the link until the operation reaches the preset time; Step 8: The server receives the output test signal from the PCIe link and obtains the link status information and test bit errors after the test; Step 9: Compare the link status information before and after the test, the initial bit error and the test bit error; if there is a difference, mark the current FFE parameter item as fail; if there is no difference, mark the current FFE parameter item as pass; Step 10: The server stops running the PCIe link according to the maximum IO pressure of the link; Step 11: Determine whether to traverse each FFE parameter item in the deviation map; if so, proceed to step 12; if not, extend the parameter test path, set the next FFE parameter item and return to step 4; Step 12: Determine the actual center parameters and center margin range based on the marked deviation map.
2. A method for testing PCIe link quality based on a server according to claim 1, characterized in that: The FFE digital filter: y[t]=c -1 x[t+T]+c 0 x[t]+c 1 x[tT];|c -1 |+|c 0 |+|c 1 |=c; in, y[t] To output digital signal ,c -1 is the pre-tap coefficient, c 0 is the main tap coefficient, c 1 Post-tap coefficients, T is the cycle time, x[t+T], x[t], x[tT] They are t+T time 、t time ,tT The input digital signal at the time; c is the tap constant coefficient, t is the time variable.
3. A method for testing PCIe link quality based on a server according to claim 2, characterized in that: The bias map is based on the pre-tap coefficients c -1 and post-tap coefficients c 1 As the independent variable, the main tap coefficient c 0 Set each FFE parameter term as the dependent variable.
4. The method for testing PCIe link quality based on a server according to claim 1, characterized in that: The parameter test path is set by selecting parameters at intervals.
5. The method for testing PCIe link quality based on a server according to claim 1, characterized in that: In step 9, the difference information of the FFE parameter items marked as fail is also printed, and the bit error type is determined based on the difference information and the corresponding FFE parameter items are marked; wherein the bit error types include a small bit error, a large bit error and a link disconnection.
6. A method for testing PCIe link quality based on a server according to claim 2, characterized in that: Determine the actual center parameters as follows: Set the center margin range and set the initial input test signal as the reference value; the center margin range unit is dB; Obtain the output test signal corresponding to each FFE parameter item, and calculate the dB difference between the output test signal and the reference value; Taking each FFE parameter item as the center, check whether there is an FFE parameter item marked as fail within the center margin range; If it exists, the current FFE parameter item is excluded; if it does not exist, the current FFE parameter item is received; Among the received FFE parameter items: continue to expand the center margin range, and check whether there is an FFE parameter item marked as fail within the center margin range; until the FFE parameter item that satisfies the largest center margin range is screened out and used as the actual center parameter; If there is no received FFE parameter item, then among the excluded FFE parameter items: select the FFE parameter item with the least number of FFE parameter items marked as fail within the center margin range as the actual center parameter.
Citation Information
Patent Citations
PCIE link signal test method and system, terminal and storage medium
CN116225809A
High-low bias test device and method and computer readable storage medium of device
CN112306768A
Test equipment, test method and test system
CN118349401A
Link monitoring and indication of potential link failure
US20220200712A1
Method for adaptively adjusting state transition time in peripheral component interconnect express system to enhance overall performance, and associated apparatus
US20240241569A1
