PCIe transmitting end equalization parameter adaptive regulation method and device, storage medium and computer equipment

By acquiring signal quality data from the retimer through the out-of-band management channel of the baseboard management controller, independent adaptive adjustment of PCIe link equalization parameters is achieved, solving the problem that link parameters cannot dynamically adapt and depend on the operating system, and ensuring the signal integrity and reliability of the PCIe link in complex environments.

CN123185026APending Publication Date: 2026-11-27NINGCHANG INFORMATION TECH (HANGZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611261311.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-19
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

The existing equalization parameter configuration schemes for PCIe links cannot adapt to dynamic changes in channel characteristics, and the dynamic control schemes that rely on the host operating system fail during system crashes or startup, resulting in signal quality degradation and service interruptions.

Method used

The baseboard management controller acquires signal quality data from the re-timer through the out-of-band management channel, independently of the host CPU to complete link quality perception and degradation judgment, actively writes equalization request parameters for multiple candidate transmitters and triggers link retraining, adjusts the equalization settings of PCIe peer devices one by one, and determines the target parameters through quantitative evaluation to achieve adaptive closed-loop control.

Benefits of technology

In the event of a host operating system failure or failure to start, the baseboard management controller can continuously sense the link quality and optimize parameters to ensure the signal integrity and reliability of the PCIe link in complex environments, avoiding the shortcomings caused by static configuration and reliance on the operating system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185026A_ABST
    Figure CN123185026A_ABST
Patent Text Reader

Abstract

The application discloses a PCIe transmitting end equalization parameter adaptive regulation method and device, a storage medium and computer equipment, comprising: obtaining signal quality data from a register in a re-timer through an out-of-band management channel; if the signal quality data does not meet a preset communication signal condition, writing a plurality of candidate transmitting end equalization request parameters into the re-timer through the out-of-band management channel, and triggering the re-timer to perform link retraining, so that the re-timer sends the candidate transmitting end equalization request parameter written each time to a PCIe opposite end device in the link retraining process; after monitoring that the PCIe opposite end device adjusts the transmitting end equalization setting each time, obtaining signal quality data from the register in the re-timer through the out-of-band management channel again; according to the signal quality data obtained each time, determining a target equalization request parameter from the plurality of candidate transmitting end equalization request parameters, and writing the target equalization request parameter into the re-timer for subsequent link communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of transmitter equalization parameter control technology, and in particular to a PCIe transmitter equalization parameter adaptive control method and device, storage medium, and computer equipment. Background Technology

[0002] PCI Express (PCIe), as the mainstream high-speed serial interconnect bus standard in current server and computer systems, has increased its single-channel data transfer rate from 16GT / s in PCIe 4.0 to 32GT / s in PCIe 5.0, and is evolving towards even higher rates. However, with the continuous increase in data transfer rates, the high-frequency loss, impedance discontinuities, crosstalk, and other non-ideal factors faced by signals in transmission media such as PCB traces are becoming increasingly severe, making signal integrity one of the most critical challenges in system design. To compensate for channel loss and ensure that the receiver can correctly recover data, the PCIe protocol specifies a transmitter equalization mechanism, which improves signal quality by pre-distorting the output signal waveform. In practical high-speed links, retimers, as protocol-aware high-speed signal conditioning devices, are widely deployed between PCIe devices such as CPUs and GPUs. Their on-chip integrated eye diagram monitoring engine can output digital quality indicators such as eye height and eye width of the receiver signal in real time, providing a hardware foundation for the quantitative evaluation of link quality.

[0003] However, in existing PCIe link equalization parameter configuration schemes, the equalization parameters requested by the retimer from the peer device are generally fixed preset values ​​or static configurations loaded from an external EEPROM at power-on. Once the channel characteristics change due to factors such as temperature variations, connector aging, or component drift, the originally suitable equalization parameters may no longer be optimal, and the signal quality will gradually deteriorate. However, the system lacks dynamic adjustment methods and can only passively wait for service interruption. On the other hand, although some schemes attempt to introduce dynamic adjustment mechanisms, they mostly rely on in-band methods driven by the host operating system (such as the Lane Margining function in the PCIe specification) to initiate link quality assessment and parameter adjustment. Once the operating system crashes, AI training deadlocks, or the system is in the startup phase, all optimization methods become ineffective. Summary of the Invention

[0004] In view of this, this application provides a PCIe transmitter equalization parameter adaptive control method and apparatus, storage medium, and computer device. The method acquires signal quality data from a re-timer via an out-of-band pipeline channel through a baseboard management controller. It performs link quality perception and degradation judgment independently of the host CPU and operating system. When preset communication signal conditions are not met, it actively writes multiple candidate transmitter equalization request parameters and triggers link retraining. The re-timer then sends each parameter to the PCIe peer device to adjust its transmitter equalization settings. After each adjustment, signal quality data is re-acquired to quantitatively evaluate the effect of each candidate transmitter equalization request parameter and select the best one for finalization. This achieves continuous adaptive closed-loop control of PCIe link transmitter equalization parameters during runtime, completely independent of the host operating system. This solves the technical problems of existing static configuration schemes being unable to adapt to dynamic changes in channel characteristics, and in-band dynamic schemes failing entirely during OS crashes or startup due to reliance on the operating system.

[0005] According to one aspect of this application, a PCIe transmitter equalization parameter adaptive adjustment method is provided, applied to a substrate management controller, the method comprising: Signal quality data is obtained from the registers within the retimer via the out-of-band management channel; If the signal quality data does not meet the preset communication signal conditions, multiple candidate transmitter equalization request parameters are written to the re-timer through the out-of-band management channel, and the re-timer is triggered to perform link retraining. This allows the re-timer to send the candidate transmitter equalization request parameters written each time to the PCIe peer device during the link retraining process, so that the PCIe peer device can adjust its own transmitter equalization settings according to the candidate transmitter equalization request parameters. After detecting that the PCIe peer device has completed adjusting its own transmitter equalization settings each time, the signal quality data is obtained again from the register in the retimer through the out-of-band management channel; Based on the acquired signal quality data, a target equalization request parameter is determined from the plurality of candidate transmitter equalization request parameters, and the target equalization request parameter is written into the re-timer so that the re-timer triggers the PCIe peer device to adjust its own transmitter equalization settings according to the target equalization request parameter for subsequent link communication.

[0006] Beneficial effects: By directly reading signal quality data from the re-timer via the out-of-band management channel through the baseboard management controller, independent degradation judgment is achieved when the host OS fails. Once it is determined that the link quality does not meet the preset communication signal conditions, the baseboard management controller actively writes multiple candidate transmitter equalization request parameters to the re-timer in sequence and triggers retraining. The re-timer then sends each parameter to the PCIe peer device one by one to adjust its transmitter equalization settings. After each adjustment, signal quality data is re-collected for quantitative evaluation, and the target equalization request parameters are finally selected and fixed. This transforms the passive mode of static configuration into an adaptive mode of continuous perception and on-demand optimization, completely eliminating the dependence on the host operating system. Even if the host CPU is in the startup phase, the operating system crashes, or the AI ​​training is deadlocked, the baseboard management controller can still independently complete the complete closed-loop control from quality perception, parameter optimization to effect verification and optimal fixation, effectively ensuring the long-term signal integrity and operational reliability of the PCIe link in complex environments such as data centers.

[0007] Optionally, the step of writing multiple candidate transmitter equalization request parameters to the re-timer through the out-of-band management channel and triggering the re-timer to perform link retraining includes: Obtain an untested candidate transmitter equalization request parameter from the candidate parameter list, and write the currently obtained candidate transmitter equalization request parameter into the equalization request parameter register of the retimer through the out-of-band management channel; After the write is completed, a trigger signal is sent to the re-timer via a general-purpose input / output pin or the out-of-band management channel to cause the link between the re-timer and the PCIe peer device to enter the retraining state; during the retraining process, the re-timer sends the latest candidate transmitter equalization request parameter in the equalization request parameter register to the PCIe peer device; Repeatedly retrieve an untested candidate transmitter equalization request parameter from the candidate parameter list and trigger the link to enter the retraining state until there are no untested candidate transmitter equalization request parameters in the candidate parameter list, at which point the testing process of the candidate parameter list ends.

[0008] Beneficial effects: By introducing a cyclic testing mechanism, the baseboard management controller can autonomously verify the equalization request parameters of multiple candidate transmitters one by one during operation, providing a complete data acquisition basis for subsequently selecting the target equalization request parameter from multiple candidate transmitter equalization request parameters.

[0009] Optionally, determining the target equalization request parameter from the plurality of candidate transmitter equalization request parameters based on the acquired signal quality data includes: For each acquired signal quality data, the following operations are performed to obtain the score value of the corresponding candidate transmitter equalization request parameter: extract multiple dimensions of signal quality indicators from the signal quality data, and calculate the quality contribution value corresponding to each signal quality indicator; acquire the bit error rate data of the link between the retimer and the PCIe peer device when the signal quality data is acquired, and calculate the bit error rate penalty value based on the bit error rate data; and weight and fuse each quality contribution value and the bit error rate penalty value according to a preset weight to obtain the score value of the corresponding candidate transmitter equalization request parameter. The target equalization request parameter is determined from the multiple candidate transmitter equalization request parameters based on the score value corresponding to each candidate transmitter equalization request parameter.

[0010] Beneficial effects: By combining multi-dimensional signal quality indicators with bit error rate indicators for comprehensive scoring, compared with traditional solutions that rely solely on a single bit error rate indicator, this approach can more comprehensively and accurately reflect the true signal quality status of the link under different candidate transmitter equalization request parameters, effectively avoiding the risk of misjudgment that may arise from single-indicator evaluation. At the same time, by uniformly mapping physical quantities of different dimensions to comparable score values, the baseboard management controller can quickly compare and select the best among multiple candidate transmitter equalization request parameters in a resource-constrained BMC environment with extremely low computational overhead.

[0011] Optionally, the signal quality indicators include eye height data and eye width data; the step of extracting multiple dimensions of signal quality indicators from the signal quality data and calculating the quality contribution value corresponding to each signal quality indicator includes: Extract eye height and eye width data from the signal quality data; Calculate the first difference between the eye height data and the preset minimum acceptable eye height threshold; obtain the second difference between the preset reference maximum eye height value and the preset minimum acceptable eye height threshold; calculate the first ratio between the first difference and the second difference, and use the first ratio as the eye quality contribution value; Calculate the third difference between the eye width data and the preset minimum acceptable eye width threshold; obtain the fourth difference between the preset reference maximum eye width value and the preset minimum acceptable eye width threshold; calculate the second ratio between the third difference and the fourth difference, and use the second ratio as the eye width quality contribution value.

[0012] Beneficial effects: The substrate management controller converts the measured eye height and eye width data into quality contribution values ​​in the range of 0 to 1, enabling two dimensions with different physical units and dimensions to be compared and fused on the same scale. This avoids one dimension from excessively dominating the scoring results due to different numerical ranges, and also provides standardized input for subsequent weighted fusion with the bit error rate penalty value.

[0013] Optionally, when the link includes multiple data channels, the following operations are performed to obtain a score value for the equalization request parameter of each candidate transmitter: For each candidate transmitter equalization request parameter, obtain the signal quality data of each data channel under the candidate transmitter equalization request parameter, calculate the score value of each data channel based on the signal quality data, and take the lowest score value or the average score value of each data channel as the score value corresponding to the candidate transmitter equalization request parameter.

[0014] Beneficial effects: By introducing a multi-data channel scoring aggregation mechanism, the evaluation of candidate transmitter balanced request parameters in multi-lane link scenarios becomes more scientific and comprehensive. The flexible configuration of the two strategies allows this embodiment to adapt to different link characteristics and application scenarios. Whether pursuing ultimate stability or optimal overall performance, it can be achieved through simple strategy switching. Compared to the simplistic approach of treating all lanes as equivalent, this significantly improves the accuracy of parameter evaluation and the flexibility of system configuration in multi-lane links.

[0015] Optionally, determining the target equalization request parameter from the plurality of candidate transmitter equalization request parameters based on the score value corresponding to each candidate transmitter equalization request parameter includes: The highest value is determined from the score values ​​of the equalization request parameters of each candidate transmitter, and the difference between the highest value and each of the other score values ​​is calculated respectively. When at least one difference is less than a preset difference threshold, the transmitter equalization strength information corresponding to each candidate transmitter equalization request parameter is read from the re-timer through the out-of-band management channel. Based on the transmitter equalization strength information, the candidate transmitter equalization request parameter with the lowest equalization strength is selected as the target equalization request parameter from the candidate transmitter equalization request parameters whose difference is less than the preset difference threshold. When all differences are greater than or equal to the preset difference threshold, the candidate transmitter equalization request parameter corresponding to the maximum score value is used as the target equalization request parameter.

[0016] Beneficial effects: By introducing a mechanism to compare the score difference with a preset difference threshold, when the score values ​​of the equalization request parameters of the candidate transmitters differ significantly, the best option is selected directly based on signal quality, ensuring the primary importance of link communication quality; while when the score value differences are not significant, the equalization strength of the transmitter is introduced as an auxiliary decision dimension, which can prioritize the selection of parameter configurations with lower power consumption and electromagnetic radiation without sacrificing signal quality, thus realizing a multi-objective trade-off between signal quality and system energy efficiency.

[0017] Optionally, after calculating the score value of the candidate transmitter equalization request parameter each time, the method further includes: Based on the current rating value, update the rating value sequence, and based on the rating value sequence, determine whether the most recent consecutive preset number of rating values ​​show a monotonically decreasing trend; If the current score is determined to be monotonically decreasing, it is determined whether the current score is lower than the preset pruning threshold. If the current score is lower than the preset pruning threshold, it is determined that the optimal parameter range has been exceeded, and the writing of new candidate transmitter equalization request parameters to the retimer is stopped.

[0018] Beneficial effects: The introduction of the pruning strategy enables the baseboard management controller to dynamically identify invalid search directions and stop them in time during the traversal of the candidate parameter list. Compared with the exhaustive method of blindly traversing all candidate transmitter equalization request parameters, this significantly reduces the number of unnecessary link retraining operations. Simultaneously, by requiring both "monotonically decreasing" and "below a preset pruning threshold" to trigger pruning, erroneous pruning caused by occasional fluctuations in score values ​​is effectively avoided, ensuring the reliability of pruning decisions. This allows the baseboard management controller to locate the optimal parameters with minimal testing costs within limited computing resources and time windows.

[0019] Optionally, the step of obtaining signal quality data from the register within the retimer via the out-of-band management channel includes: When the link between the retimer and the PCIe peer device is in normal working condition, in response to a time-triggered signal or an event-triggered signal, signal quality data is obtained from the register in the retimer through the out-of-band management channel; After obtaining signal quality data from the register within the retimer via the out-of-band management channel, the method further includes: If the signal quality data meets the preset communication signal conditions, then when the preset low-frequency detection time point is reached, the first transmitter equalization request parameter currently in use is obtained, and the current signal quality data is obtained from the register in the re-timer through the out-of-band management channel as the first quality data. The probe parameters are selected from the preset neighbor parameter range of the first transmitter equalization request parameters, and the probe parameters are written into the re-timer through the out-of-band management channel, and the re-timer is triggered to perform link retraining. After the link retraining is completed, the current signal quality data is obtained again from the register in the re-timer through the out-of-band management channel as the second quality data; If the second quality data is better than the first quality data, the transmitter equalization settings of the PCIe peer device are updated to the detection parameters; otherwise, the first transmitter equalization request parameters are rewritten into the re-timer through the out-of-band management channel, and link retraining is triggered to restore the transmitter equalization settings before detection.

[0020] Beneficial effects: By using low-frequency perturbation detection, we can actively track and preventively adjust the slow changes in channel characteristics, effectively avoiding the risk of signal quality gradually deteriorating and even service interruption due to long-term lack of parameter updates. At the same time, we can also significantly reduce the operation and maintenance costs and service impact caused by sudden link failures.

[0021] Optionally, the method further includes: When the link between the retimer and the PCIe peer device is in normal working condition, signal quality data is obtained from the register in the retimer through the out-of-band management channel according to the preset acquisition cycle, and the timestamp of each acquisition and the corresponding signal quality data are recorded to form timing baseline data; Whenever new signal quality data is acquired, the sliding average of the signal quality data within a preset time window prior to the current moment is calculated based on the time-series baseline data, and it is determined whether the degree to which the new signal quality data deviates from the sliding average exceeds a preset deviation threshold. If the signal quality data of multiple consecutive acquisition cycles deviates from the sliding average value by more than the preset deviation threshold, it is determined that the signal quality of the link is continuously deteriorating. The historical target equalization request parameters determined for each link retraining are retrieved from the local historical database. Based on the historical target equalization request parameters, multiple candidate transmitter equalization request parameters are determined, and the re-timer is triggered to enter the link retraining process.

[0022] Beneficial effects: Through statistical analysis of timing baseline data, preventive adjustments can be made before the signal quality deteriorates to the point of being unusable, thereby effectively avoiding service interruptions caused by sudden link failures and significantly improving the reliability and maintainability of the system under long-term operating conditions.

[0023] Optionally, the retimer sends the candidate transmitter equalization request parameters written each time to the PCIe peer device during the link retraining process, enabling the PCIe peer device to adjust its own transmitter equalization settings according to the candidate transmitter equalization request parameters, including: The retimer generates training sequences according to the PCIe protocol; If the candidate transmitter equalization request parameter is a preset value type, then the candidate transmitter equalization request parameter is filled into the transmitter preset value field of the training sequence; If the candidate transmitter equalization request parameter is of the cursor coefficient type, then the candidate transmitter equalization request parameter is decomposed into low-frequency gain coefficient, full swing amplitude coefficient and back cursor coefficient, and respectively filled into the corresponding coefficient field of the training sequence; The training sequence carrying the candidate transmitter equalization request parameters is sent to the PCIe peer device through the link, so that the PCIe peer device can adjust its own transmitter equalization settings according to the candidate transmitter equalization request parameters in the training sequence.

[0024] Beneficial effects: By establishing a mapping and conversion mechanism from parameters written out-of-band by the baseboard management controller to the training sequence fields of the PCIe protocol standard, the baseboard management controller only needs to write the candidate transmitter equalization request parameters to the register of the retimer through the out-of-band pipeline channel. The subsequent parameter sending and negotiation process is automatically completed by the retimer according to the PCIe standard protocol. This layered design greatly simplifies the control logic of the baseboard management controller, enabling it to efficiently complete the parameter sending task in the resource-constrained BMC environment. At the same time, by supporting the separate processing of two parameter formats, namely preset value type and cursor coefficient type, it is compatible with the PCIe protocol standard preset fast configuration method and provides a more granular FIR cursor coefficient adjustment capability, providing a complete parameter control means from coarse to fine granular for link equalization optimization.

[0025] According to another aspect of this application, a PCIe transmitter equalization parameter adaptive adjustment device is provided, applied to a substrate management controller, the device comprising: The data acquisition module is used to acquire signal quality data from the registers in the retimer via the out-of-band management channel; The link retraining module is used to write multiple candidate transmitter equalization request parameters to the retraining timer through the out-of-band management channel if the signal quality data does not meet the preset communication signal conditions, and to trigger the retraining timer to perform link retraining. This allows the retraining timer to send the candidate transmitter equalization request parameters written each time to the PCIe peer device during the link retraining process, so that the PCIe peer device can adjust its own transmitter equalization settings according to the candidate transmitter equalization request parameters. The data acquisition module is also used to acquire signal quality data from the register in the retimer through the out-of-band management channel after the PCIe peer device has completed adjusting its own transmitter equalization settings each time it is detected. The parameter filtering module is used to determine the target equalization request parameter from the multiple candidate transmitter equalization request parameters based on the signal quality data acquired each time, and write the target equalization request parameter into the re-timer so that the re-timer triggers the PCIe peer device to adjust its own transmitter equalization settings according to the target equalization request parameter for subsequent link communication.

[0026] According to another aspect of this application, a storage medium is provided that stores a computer program thereon, which, when executed by a processor, implements the above-described adaptive adjustment method for PCIe transmitter equalization parameters.

[0027] According to another aspect of this application, a computer device is provided, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor executes the program to implement the above-described PCIe transmitter equalization parameter adaptive control method.

[0028] By employing the above technical solution, this application provides a PCIe transmitter equalization parameter adaptive adjustment method and apparatus, storage medium, and computer device. Through the out-of-band management channel, the baseboard management controller directly reads signal quality data from the internal register of the retraining timer, allowing link quality perception to completely bypass the host CPU and the PCIe in-band data path. This enables accurate signal degradation judgment even when the operating system has not yet started or has crashed. Once it is determined that the link quality does not meet the preset communication signal conditions, the baseboard management controller actively writes multiple candidate transmitter equalization request parameters sequentially to the retraining timer through the out-of-band management channel and triggers link retraining. During the retraining process, the retraining timer sends each parameter to the P... The PCIe peer device adjusts its transmitter equalization settings and re-collects signal quality data for quantitative evaluation after each adjustment. Finally, it selects the target equalization request parameter from multiple candidate transmitter equalization request parameters. This transforms the passive mode of the traditional static configuration scheme, which is fixed once and remains unchanged for life, into an adaptive mode of continuous perception and on-demand optimization. At the same time, it completely eliminates the dependence on the host operating system. Even if the host CPU is in the startup phase, the operating system crashes, or the AI ​​training deadlocks, the baseboard management controller can still independently complete the complete closed-loop control from quality perception, parameter optimization to effect verification and optimal fixation. This effectively ensures the long-term signal integrity and operational reliability of the PCIe link in complex environments such as data centers.

[0029] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description

[0030] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings: Figure 1 A flowchart illustrating an adaptive adjustment method for PCIe transmitter equalization parameters provided in an embodiment of this application is shown. Figure 2 This paper presents a system architecture diagram illustrating an adaptive adjustment method for PCIe transmitter equalization parameters according to an embodiment of this application. Figure 3 This illustration shows a schematic diagram of a PCIe transmitter equalization parameter adaptive control device provided in an embodiment of this application; Figure 4 A schematic diagram of the device structure of a computer device provided in an embodiment of this application is shown. Detailed Implementation

[0031] The present application will be described in detail below with reference to the accompanying drawings and embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in the embodiments of the present application can be combined with each other.

[0032] This embodiment provides a PCIe transmitter equalization parameter adaptive adjustment method, applied to a substrate management controller, such as... Figure 1 As shown, the method includes: Step 101: Obtain signal quality data from the register in the retimer through the out-of-band management channel.

[0033] Step 102: If the signal quality data does not meet the preset communication signal conditions, multiple candidate transmitter equalization request parameters are written to the re-timer through the out-of-band management channel, and the re-timer is triggered to perform link retraining. During the link retraining process, the re-timer sends the candidate transmitter equalization request parameters written each time to the PCIe peer device, so that the PCIe peer device adjusts its own transmitter equalization settings according to the candidate transmitter equalization request parameters.

[0034] Step 103: After monitoring that the PCIe peer device has completed adjusting its own transmitter equalization settings each time, the signal quality data is obtained again from the register in the retimer through the out-of-band management channel.

[0035] Step 104: Based on the acquired signal quality data, determine the target equalization request parameter from the multiple candidate transmitter equalization request parameters, and write the target equalization request parameter into the re-timer so that the re-timer triggers the PCIe peer device to adjust its own transmitter equalization settings according to the target equalization request parameter for subsequent link communication.

[0036] This application provides an adaptive adjustment method for PCIe (Peripheral Component Interconnect Express) transmitter equalization parameters, which constructs an automated adjustment mechanism for PCIe transmitter link equalization parameters that is led by the Baseboard Management Controller (BMC) and is completely independent of the host operating system.

[0037] Specifically, the baseboard management controller first reads signal quality data from the registers inside the retimer through an out-of-band management channel. Here, the out-of-band management channel refers to a management bus (such as SMBus or I2C) independent of the PCIe data path. This allows the baseboard management controller to maintain communication with the retimer even when the host CPU is not running or the operating system has crashed. The retimer is a signal conditioning chip deployed between the CPU and the PCIe peer device. It integrates an eye diagram monitoring engine, which can convert analog physical quantities such as eye height and eye width of the received signal into digital data that can be read by the registers. The baseboard management controller uses this hardware capability to obtain quantitative data on the link quality.

[0038] When the baseboard management controller determines that the acquired signal quality data does not meet the preset communication signal conditions, it means that the signal integrity of the current link has deteriorated or cannot meet the requirements for reliable transmission. At this time, the baseboard management controller can initiate a parameter optimization process. The first step of this process is to sequentially write multiple candidate transmitter equalization request parameters to the re-timer through the out-of-band management channel. These transmitter equalization request parameters refer to the equalization parameters that the re-timer suggests to the PCIe peer device during link training, including the Preset value defined in the PCIe specification or more refined FIR filter vernier coefficients (such as pre-shoot coefficients, de-emphasis coefficients, and overshoot coefficients). Each time the baseboard management controller writes a candidate transmitter equalization request parameter, it triggers a link retraining. Link retraining is a standard mechanism in the PCIe protocol that allows established links to re-negotiate equalization. Its function is to ensure that the newly written equalization request parameters can be sent to the PCIe peer device by the re-timer during the retraining process and eventually take effect.

[0039] After triggering link retraining, the retimer, following the standard PCIe protocol procedure, sends the currently written candidate transmitter equalization request parameters along with the training sequence to the PCIe peer device during retraining. Upon receiving the request, the PCIe peer device (e.g., CPU root complex or GPU) can adjust its transmitter equalization settings based on these parameters, thereby altering the predistortion characteristics of subsequent signal transmissions to adapt to the current link's channel conditions. The baseboard management controller continuously monitors the PCIe peer device's adjustment status each time, and upon confirming the adjustment is complete, reads the signal quality data from the retimer's register via the out-of-band management channel. Since the link has now been retrained and returned to normal operation, the signal quality data output by the retimer eye diagram monitoring engine accurately reflects the signal quality after the current candidate transmitter equalization request parameters take effect. The baseboard management controller associates this data with the corresponding candidate transmitter equalization request parameters and records it, completing one evaluation.

[0040] The baseboard management controller executes the aforementioned "write-retrain-acquisition" cyclic operation on each of the multiple candidate transmitter equalization request parameters to obtain signal quality data corresponding to each candidate parameter. Subsequently, the baseboard management controller quantifies and scores each candidate parameter based on the acquired signal quality data, selecting the parameter with the best signal quality as the target equalization request parameter. This target parameter is then written to a re-timer, which sends it to the PCIe peer device, ensuring that the PCIe peer device always transmits signals with the optimal transmitter equalization settings. Throughout this process, the baseboard management controller independently completes a full closed-loop control from signal quality perception, degradation judgment, parameter optimization to effect verification and optimization fixation, without relying on any computing resources of the host CPU or the operation of any drivers in the operating system.

[0041] By applying the technical solution of this embodiment, the baseboard management controller directly reads signal quality data from the internal register of the re-timer via the out-of-band management channel. This completely bypasses the host CPU and the in-band data path of PCIe, enabling accurate independent judgment of signal degradation even when the operating system has not yet started or has crashed. Once it is determined that the link quality does not meet the preset communication signal conditions, the baseboard management controller actively writes multiple candidate transmitter equalization request parameters to the re-timer sequentially via the out-of-band management channel and triggers link retraining. During the retraining process, the re-timer sends each parameter to the PCIe peer device one by one to adjust its transmitter equalization settings. After each adjustment, signal quality data is re-collected for quantitative evaluation. Finally, the target equalization request parameter is selected from multiple candidate transmitter equalization request parameters. This transforms the passive mode of the traditional static configuration scheme, which is fixed once and remains unchanged for life, into an adaptive mode of continuous perception and on-demand optimization. At the same time, it completely gets rid of the dependence on the host operating system. Even if the host CPU is in the startup phase, the operating system crashes, or the AI ​​training deadlocks, the baseboard management controller can still independently complete the complete closed-loop control from quality perception, parameter optimization to effect verification and optimal fixation. This effectively ensures the long-term signal integrity and operational reliability of the PCIe link in complex environments such as data centers.

[0042] Optionally, in this embodiment, step 102, "writing multiple candidate transmitter equalization request parameters to the re-timer through the out-of-band management channel and triggering the re-timer to perform link retraining," includes: obtaining an untested candidate transmitter equalization request parameter from the candidate parameter list; writing the currently obtained candidate transmitter equalization request parameter into the equalization request parameter register of the re-timer through the out-of-band management channel; after writing, sending a trigger signal to the re-timer through a general-purpose input / output pin or the out-of-band management channel to cause the link between the re-timer and the PCIe peer device to enter a retraining state; during the retraining process, the re-timer sends the latest candidate transmitter equalization request parameter in the equalization request parameter register to the PCIe peer device; repeatedly obtaining an untested candidate transmitter equalization request parameter from the candidate parameter list and triggering the link to enter a retraining state until there are no untested candidate transmitter equalization request parameters in the candidate parameter list, at which point the testing process of the candidate parameter list ends.

[0043] In this embodiment, the specific implementation process of the baseboard management controller writing multiple candidate transmitter equalization request parameters to the re-timer and triggering retraining is further defined. By constructing a standardized atomic test loop, the adaptive selection of the target equalization request parameters is achieved.

[0044] Specifically, the baseboard management controller first retrieves an untested candidate transmitter equalization request parameter from the candidate parameter list. Here, the candidate parameter list can be a set of parameters to be tested generated by the baseboard management controller based on historical data or a default range when starting the optimization process. The equalization request parameter register is a register inside the retraining timer specifically used to store the equalization parameter values ​​to be sent to the PCIe peer device. After the baseboard management controller writes the currently retrieved candidate transmitter equalization request parameter into this register through the out-of-band management channel, it completes the parameter distribution action, preparing for the retraining timer to send the parameter to the PCIe peer device during the subsequent retraining process.

[0045] Next, the baseboard management controller sends a trigger signal to the retrainer via a general-purpose input / output pin or an out-of-band management channel to put the link between the retrainer and the PCIe peer into retraining mode. The general-purpose input / output pin is a programmable control pin provided on the baseboard management controller chip; the baseboard management controller can directly send a trigger signal to the retrainer by pulling the pin high or low. The out-of-band management channel method generates the trigger signal for retraining by writing a specific value to the link control register of the retrainer. After entering retraining mode, the retrainer can read the latest candidate transmitter equalization request parameters from the equalization request parameter register according to the standard PCIe protocol procedure and send them to the PCIe peer along with the training sequence, allowing the peer device to adjust its transmitter equalization settings based on these parameters.

[0046] After completing the writing and retraining trigger of a candidate transmitter equalization request parameter, the baseboard management controller checks if there are any untested candidate transmitter equalization request parameters in the candidate parameter list. If so, it returns to the step of retrieving the next candidate transmitter equalization request parameter from the list, thus starting a new round of write-trigger loop. If all candidate transmitter equalization request parameters have been tested, the testing process for the current candidate parameter list ends. This loop mechanism allows the baseboard management controller to traverse all candidate transmitter equalization request parameters in a fully automated manner without manual intervention. Each loop is executed independently, and the failure of testing any candidate transmitter equalization request parameter will not affect the testing of subsequent candidate transmitter equalization request parameters.

[0047] In one specific embodiment, if the currently selected target balance request parameter is located at the boundary of the candidate parameter list, a set of fine-grained FIR cursor coefficient combinations is generated around the target balance request parameter as a new candidate parameter list, and a second fine search is performed again.

[0048] In another specific embodiment, when generating the candidate parameter list, the historical optimization records stored locally by the baseboard management controller are queried first, and candidate transmitter equalization request parameters are selected from the historical best value and its neighboring range to reduce the number of candidate transmitter equalization request parameters in the first round of testing.

[0049] Compared to the traditional approach of directly writing a single fixed parameter, this application embodiment introduces a cyclic testing mechanism, enabling the baseboard management controller to autonomously verify the equalization request parameters of multiple candidate transmitters one by one during operation, providing a complete data acquisition basis for subsequently selecting the target equalization request parameter from multiple candidate transmitter equalization request parameters.

[0050] Optionally, in this embodiment of the application, step 104, "determining the target equalization request parameter from the plurality of candidate transmitter equalization request parameters based on the acquired signal quality data," includes: for each acquired signal quality data, performing the following operations to obtain a score value for the corresponding candidate transmitter equalization request parameter: extracting multiple dimensions of signal quality indicators from the signal quality data and calculating the quality contribution value corresponding to each signal quality indicator; acquiring the bit error rate data of the link between the retimer and the PCIe peer device when acquiring the signal quality data, and calculating the bit error rate penalty value based on the bit error rate data; weighting and fusing each quality contribution value and the bit error rate penalty value according to a preset weight to obtain a score value for the corresponding candidate transmitter equalization request parameter; and determining the target equalization request parameter from the plurality of candidate transmitter equalization request parameters based on the score value corresponding to each candidate transmitter equalization request parameter.

[0051] In this embodiment, by establishing a multi-dimensional quantitative scoring mechanism, the physical layer signal quality indicators that are not directly comparable in multiple dimensions are quantified into a unified score value. This enables the quantitative comparison and selection of equalization request parameters for each candidate transmitter in an environment where the resources of the substrate management controller are limited.

[0052] Specifically, for each acquired signal quality data, the baseboard management controller first extracts multiple dimensions of signal quality indicators and calculates the quality contribution value corresponding to each indicator. While calculating the quality contribution values ​​for each dimension, the baseboard management controller also acquires the bit error rate (BER) data of the link at the time the signal quality data was acquired, and calculates the BER penalty value based on the BER data. The BER is a direct indicator of the reliability of digital transmission of a link. In this embodiment, it is included as a penalty item rather than a contribution item in the scoring system because a higher BER results in a larger score deduction, thus fully reflecting the actual transmission error status of the link in the scoring result. Then, the baseboard management controller weights and fuses the quality contribution values ​​and BER penalty values ​​of each dimension according to preset weights, obtaining a unique quantified value through weighted summation as the score value for the current candidate transmitter equalization request parameter. In this way, multi-dimensional signal quality information that was originally difficult to compare directly is integrated into a sortable score value, providing a clear quantitative basis for subsequent optimization decisions. Here, the preset weights corresponding to the quality contribution value and the bit error rate penalty value can be fixed weights pre-stored in the baseboard management controller, or they can be weights dynamically adjusted by the baseboard management controller according to the actual operating status of the link. For example, when the bit error rate penalty value is detected to be at a low level for a preset time period, the weight of the bit error rate penalty value can be appropriately reduced, so that the score value focuses more on the signal quality index; when the bit error rate penalty value fluctuates frequently for a preset time period, the weight of the bit error rate penalty value can be appropriately increased, so that the score value more sensitively reflects the actual transmission reliability of the link.

[0053] The baseboard management controller performs the above scoring process for each candidate transmitter equalization request parameter, obtains the score value corresponding to each candidate transmitter equalization request parameter, and determines the candidate transmitter equalization request parameter with the best score value as the target equalization request parameter by comparing the scores.

[0054] This application embodiment combines multi-dimensional signal quality indicators with bit error rate indicators for comprehensive scoring. Compared with traditional schemes that rely solely on a single bit error rate indicator, it can more comprehensively and accurately reflect the true signal quality status of the link under different candidate transmitter equalization request parameters, effectively avoiding the risk of misjudgment that may be caused by single indicator evaluation. At the same time, by uniformly mapping physical quantities of different dimensions to comparable score values, the baseboard management controller can quickly compare and select the best among multiple candidate transmitter equalization request parameters in a resource-constrained BMC environment with extremely low computational overhead.

[0055] In this embodiment of the application, optionally, the signal quality indicators include eye height data and eye width data; the step of "extracting multiple dimensions of signal quality indicators from the signal quality data and calculating the quality contribution value corresponding to each signal quality indicator" includes: extracting eye height data and eye width data from the signal quality data; calculating a first difference between the eye height data and a preset minimum acceptable eye height threshold; obtaining a second difference between a preset maximum reference eye height value and the preset minimum acceptable eye height threshold; calculating a first ratio between the first difference and the second difference, and using the first ratio as the eye width quality contribution value; calculating a third difference between the eye width data and the preset minimum acceptable eye width threshold; obtaining a fourth difference between the preset maximum reference eye width value and the preset minimum acceptable eye width threshold; calculating a second ratio between the third difference and the fourth difference, and using the second ratio as the eye width quality contribution value.

[0056] In this embodiment, the signal quality indicators may specifically include eye height data and eye width data, and the specific calculation method for the quality contribution value of each dimension is given.

[0057] Specifically, the baseboard management controller extracts eye height and eye width data from the signal quality data read from the retimer register. Eye height refers to the vertical opening of the PCIe peer device's signal eye diagram, reflecting the voltage margin for the signal to resist noise interference; eye width refers to the horizontal opening of the eye diagram, reflecting the timing margin for the signal to resist clock jitter. Both data, from the amplitude domain and time domain perspectives respectively, jointly determine whether the PCIe peer device can correctly recover data.

[0058] Subsequently, for the eye height data, the substrate management controller calculates the first difference between it and the preset minimum acceptable eye height threshold, and simultaneously obtains the second difference between the preset maximum reference eye height value and the preset minimum acceptable eye height threshold. The ratio of the first difference to the second difference is then calculated as the eye height quality contribution value. Here, the preset minimum acceptable eye height threshold is the minimum eye height requirement required to ensure reliable operation of the link; below this value indicates a severely insufficient signal amplitude margin. The preset maximum reference eye height value is a pre-set ideal target value; when the measured eye height reaches or exceeds this value, the eye height dimension is considered sufficiently good, and further improvement no longer significantly contributes to signal quality. By calculating the ratio of the increment of the measured eye height relative to the preset minimum acceptable eye height threshold to the total range of the preset maximum reference eye height value relative to the preset minimum acceptable eye height threshold, the eye height index is normalized, mapping the eye height quality contribution value to a unified numerical range that can be compared across dimensions.

[0059] For eye width data, the baseboard management controller calculates its quality contribution value in the same way: it calculates the third difference between the measured eye width and the preset minimum acceptable eye width threshold, obtains the fourth difference between the preset maximum reference eye width value and the preset minimum acceptable eye width threshold, and then calculates the ratio of the third difference to the fourth difference as the eye width quality contribution value. The significance of eye width lies in providing timing tolerance for the sampling points of PCIe peer devices. The wider the eye width, the greater the fault tolerance space at the sampling time, and the stronger the resistance to timing uncertainties such as link jitter. Its normalization logic is consistent with the eye height, ensuring that the eye width quality contribution value also falls within a uniform numerical range.

[0060] It should be noted that the aforementioned preset maximum eye height value, preset minimum acceptable eye height threshold, preset maximum eye width value, and preset minimum acceptable eye width threshold are all fixed thresholds pre-stored in the baseboard management controller. They can be pre-stored by factory configuration according to the PCIe link rate level (such as Gen4 or Gen5), or they can be configured or fine-tuned by maintenance personnel through the out-of-band management interface according to the actual working conditions.

[0061] In this embodiment, the substrate management controller converts the measured eye height and eye width data into quality contribution values ​​ranging from 0 to 1. This allows two dimensions with different physical units and dimensions to be compared and fused on the same scale. This avoids one dimension from excessively dominating the scoring result due to different numerical ranges, and also provides standardized input for subsequent weighted fusion with the bit error rate penalty value. Furthermore, the design based on a preset minimum acceptable threshold ensures that the quality contribution value becomes negative once the eye height or eye width falls below this threshold. This effectively identifies and eliminates degraded candidate transmitter equalization request parameters that cannot even meet basic communication conditions, thereby ensuring that the final selected target equalization request parameters meet the minimum requirements for reliable link communication in all dimensions.

[0062] Optionally, when the link includes multiple data channels, the following operations are performed to obtain the score value of each candidate transmitter equalization request parameter: for each candidate transmitter equalization request parameter, the signal quality data of each data channel under the candidate transmitter equalization request parameter are obtained respectively, and the score value of each data channel is calculated based on the signal quality data, and the lowest score value or the average score value of each data channel is used as the score value corresponding to the candidate transmitter equalization request parameter.

[0063] In this embodiment, a multi-data-channel scoring aggregation mechanism is introduced, which enables the baseboard management controller to determine the final score value of each candidate transmitter equalization request parameter based on the score value of each data channel when the PCIe link contains multiple data channels.

[0064] Specifically, in a PCIe link, a physical link can consist of multiple data channels (i.e., lanes). For example, x4, x8, or x16 links contain 4, 8, or 16 independent lanes, respectively. Each lane has its own independent transmitter and receiver signal paths. Since physical conditions such as trace length, impedance matching, and crosstalk may differ between lanes, the signal quality of the same candidate transmitter equalization request parameter often varies on different lanes. Therefore, the board management controller can obtain the signal quality data of each candidate transmitter equalization request parameter under each data channel and independently calculate the score value of each data channel based on the signal quality data of each data channel.

[0065] After independently scoring each data channel, the baseboard management controller can aggregate multiple scores into a comprehensive score to represent the overall performance of the candidate transmitter equalization request parameter across the entire link. One approach is to take the lowest score among all data channels as the score for the candidate transmitter equalization request parameter. This "worst-case" strategy reflects the barrel effect principle, meaning the signal quality of the entire link is limited by the worst-performing data channel. This ensures that even the data channel with the smallest signal margin can meet the minimum communication requirements, thus guaranteeing the reliability of the entire link. This approach is particularly suitable for data center scenarios with extremely high link stability requirements.

[0066] Another approach is to calculate the average score of each data channel as the score corresponding to the candidate transmitter equalization request parameter. This "average" strategy is suitable for scenarios where the signal quality differences between lanes are small and the overall distribution is relatively balanced. It can more comprehensively reflect the overall performance level of each data channel and avoid over-penalizing a group of candidate transmitter equalization request parameters that perform well on other data channels due to occasional degradation of a single data channel. This approach is suitable for scenarios with high overall performance requirements and good consistency of characteristics among lanes. The baseboard management controller can flexibly choose between the two strategies mentioned above based on the actual link characteristics and application needs.

[0067] This application embodiment introduces a multi-data channel scoring aggregation mechanism, making the evaluation of candidate transmitter balanced request parameters in multi-lane link scenarios more scientific and comprehensive. The flexible configuration of the two strategies allows this application embodiment to adapt to different link characteristics and application scenarios. Whether pursuing ultimate stability or optimal overall performance, it can be achieved through simple strategy switching. Compared to the simplistic approach of treating all lanes as equivalent, this significantly improves the accuracy of parameter evaluation and the flexibility of system configuration in multi-lane links.

[0068] Optionally, in this embodiment, the step of "determining the target equalization request parameter from the plurality of candidate transmitter equalization request parameters according to the score values ​​corresponding to each candidate transmitter equalization request parameter" includes: determining the highest value from the score values ​​of each candidate transmitter equalization request parameter, and calculating the difference between the highest value and each of the other score values ​​respectively; when at least one difference is less than a preset difference threshold, reading transmitter equalization strength information corresponding to each candidate transmitter equalization request parameter from the retimer through the out-of-band management channel, and selecting the candidate transmitter equalization request parameter corresponding to the lowest equalization strength from the candidate transmitter equalization request parameters whose differences are less than the preset difference threshold as the target equalization request parameter according to the transmitter equalization strength information; when all differences are greater than or equal to the preset difference threshold, using the candidate transmitter equalization request parameter corresponding to the maximum score value as the target equalization request parameter.

[0069] In this embodiment, after the scores of multiple candidate transmitter equalization request parameters have been determined, the baseboard management controller can make a comprehensive decision based on the scores and transmitter equalization intensity information to determine the target equalization request parameter.

[0070] Specifically, the baseboard management controller first determines the highest value from the score values ​​corresponding to the equalization request parameters of each candidate transmitter, and calculates the difference between the highest value and the other score values ​​respectively. This can quantify the score difference between the equalization request parameters of each candidate transmitter, thereby determining whether there are multiple candidate transmitter equalization request parameters that are almost equivalent in signal quality performance, providing a quantitative basis for subsequent decision-making.

[0071] When at least one difference is less than a preset difference threshold, it indicates that the score of at least one candidate transmitter equalization request parameter is very close to the highest score, for example, the difference is no more than 5%. This means that it is difficult to make a meaningful distinction between superior and inferior parameters based solely on the score. At this time, the baseboard management controller reads the transmitter equalization intensity information corresponding to each candidate transmitter equalization request parameter from the re-timer through the out-of-band management channel. Here, the equalization intensity reflects the driving intensity cost borne by the transmitter to achieve the current equalization effect. It can be positively correlated with the amplitude of equalization coefficients such as de-emphasis and pre-charge. The higher the equalization intensity, the more power the transmitter needs to consume and the stronger the electromagnetic radiation generated. Among the candidate transmitter equalization request parameters with similar signal quality scores, the baseboard management controller selects the candidate transmitter equalization request parameter with the lowest equalization intensity as the target equalization request parameter. Thus, without sacrificing signal quality, it prioritizes the equalization configuration with lower power consumption and less electromagnetic radiation.

[0072] When all differences are greater than or equal to the preset difference threshold, it indicates that the highest-scoring candidate transmitter equalization request parameter has a significant advantage in signal quality, and other candidate transmitter equalization request parameters have a significant quality gap compared to it. At this time, the baseboard management controller directly uses the candidate transmitter equalization request parameter corresponding to the maximum score as the target equalization request parameter, and no longer considers other factors such as equalization strength.

[0073] This application's embodiments introduce a mechanism to compare the score difference with a preset difference threshold. When the score differences of the candidate transmitter equalization request parameters are significant, the best option is selected directly based on signal quality, ensuring the primary importance of link communication quality. When the score differences are not significant, the transmitter equalization strength is introduced as an auxiliary decision-making dimension. This allows for the priority selection of parameter configurations with lower power consumption and electromagnetic radiation without sacrificing signal quality, thus achieving a multi-objective trade-off between signal quality and system energy efficiency.

[0074] In this embodiment of the application, optionally, after each calculation of the score value of the candidate transmitter equalization request parameter, the method further includes: updating the score value sequence based on the current score value, and determining whether the most recent consecutive preset number of score values ​​show a monotonically decreasing trend according to the score value sequence; if it is determined that there is a monotonically decreasing trend, then determining whether the current score value is lower than a preset pruning threshold; if the current score value is lower than the preset pruning threshold, determining that the optimal parameter range has been exceeded, and stopping the writing of new candidate transmitter equalization request parameters to the retimer.

[0075] In this embodiment, an intelligent pruning strategy is introduced, so that during the process of cyclically testing the equalization request parameters of candidate transmitters, the substrate management controller can terminate invalid tests in advance by monitoring the changing trend of the score value in real time, thereby optimizing test efficiency.

[0076] Specifically, after calculating the score value of the current candidate transmitter equalization request parameter, the baseboard management controller can update the score value sequence of the tested parameters based on the current score value. Here, the score value sequence is a set of continuous data points arranged in the test order, reflecting the dynamic trend of the score value changing as the candidate transmitter equalization request parameter index changes. Based on the updated score value sequence, the baseboard management controller determines whether the most recent preset number of consecutive score values ​​show a monotonically decreasing trend. The preset number can be determined according to actual needs. A monotonically decreasing trend indicates that the score value of each subsequent set of candidate transmitter equalization request parameters is worse than the previous set.

[0077] When the substrate management controller determines that a recent preset number of consecutive score values ​​show a monotonically decreasing trend, it indicates that the parameter quality in the current test direction is continuously deteriorating. At this point, the substrate management controller further determines whether the current score value is below a preset pruning threshold. Here, the preset pruning threshold can be a pre-set lower limit value for the score, which serves to distinguish between "slight fluctuations" and "true degradation." Only when the current score value simultaneously meets both conditions of "being in a monotonically decreasing trend" and "below the preset pruning threshold" will the substrate management controller determine that it has exceeded the optimal parameter range and stop writing new candidate transmitter equalization request parameters to the retimer, that is, prematurely terminating the current test loop and no longer continuing to traverse the remaining candidate transmitter equalization request parameters in the candidate parameter list.

[0078] The pruning strategy introduced in this embodiment enables the baseboard management controller to dynamically identify invalid search directions and stop them in time during the traversal of the candidate parameter list. Compared with the exhaustive method of blindly traversing all candidate transmitter equalization request parameters, this significantly reduces the number of unnecessary link retraining operations. Simultaneously, by requiring both "monotonically decreasing" and "below a preset pruning threshold" to trigger pruning, erroneous pruning due to occasional fluctuations in the score value is effectively avoided, ensuring the reliability of the pruning decision. This allows the baseboard management controller to locate the optimal parameters with minimal testing costs within limited computing resources and time windows.

[0079] Optionally, in this embodiment of the application, step 101 includes: when the link between the retimer and the PCIe peer device is in normal working condition, in response to a time trigger signal or an event trigger signal, obtaining signal quality data from the register in the retimer through an out-of-band management channel; After step 101, the method further includes: if the signal quality data meets the preset communication signal conditions, then when a preset low-frequency detection time point is reached, the currently used first transmitter equalization request parameter is obtained, and the current signal quality data is obtained from the register in the re-timer through the out-of-band management channel as the first quality data; a detection parameter is selected from the preset neighboring parameter range of the first transmitter equalization request parameter, and the detection parameter is written into the re-timer through the out-of-band management channel, and the re-timer is triggered to perform link retraining; after the link retraining is completed, the current signal quality data is obtained again from the register in the re-timer through the out-of-band management channel as the second quality data; if the second quality data is better than the first quality data, the transmitter equalization setting of the PCIe peer device is updated to the detection parameter; otherwise, the first transmitter equalization request parameter is rewritten into the re-timer through the out-of-band management channel, and link retraining is triggered to restore the transmitter equalization setting before detection.

[0080] In this embodiment, a preventative parameter maintenance mechanism is established. Under this mechanism, when the link is in normal working condition and the signal quality meets the preset communication signal conditions, the baseboard management controller can actively track the slow changes in channel characteristics through periodic perturbation detection.

[0081] Specifically, when the link between the retimer and the PCIe peer device is in normal working condition, the board management controller can obtain signal quality data from the registers in the retimer through the out-of-band management channel in response to a time-triggered signal or an event-triggered signal. The time-triggered signal refers to the board management controller automatically triggering a signal quality acquisition once according to a preset time period (e.g., every 15 minutes or hour), while the event-triggered signal refers to the acquisition triggered when a specific event occurs, such as an abnormal increase in the correctable error count, in the link.

[0082] After acquiring signal quality data, if the current signal quality data meets the preset communication signal conditions, the baseboard management controller can actively acquire the currently used first transmitter equalization request parameters when a preset low-frequency detection time point is reached. It then retrieves the current signal quality data from the register in the retimer via the out-of-band management channel as the first quality data. Here, the low-frequency detection time point refers to a detection interval set at a relatively long time interval, such as once per hour or every few hours. This is significantly longer than the cycle of conventional signal quality monitoring. Its purpose is to perform tentative fine-tuning of the currently used parameters at an extremely low frequency, thereby continuously evaluating whether a better equalization parameter configuration exists without significantly affecting normal business operations.

[0083] Next, the baseboard management controller can select a probe parameter from the preset neighboring parameter range of the first transmitter equalization request parameter. Here, the preset neighboring parameter range refers to the parameter values ​​that are adjacent to the currently used transmitter equalization request parameter in terms of index. For example, if the currently used Preset value is P5, the neighboring parameters can be P4 or P6. This perturbation method only makes small probes near the current parameter, rather than jumping significantly to a more distant parameter range, thus ensuring that the risk of the probe process is controllable. The baseboard management controller writes the probe parameter into the equalization request parameter register of the retimer through the out-of-band management channel and triggers the retimer to perform link retraining. During the retraining process, the probe parameter is sent to the PCIe peer device to adjust its transmitter equalization settings. After the link retraining is completed, the current signal quality data is collected again through the out-of-band management channel as the second quality data to evaluate the actual effect of the probe parameter.

[0084] Furthermore, the baseboard management controller compares the second quality data with the first quality data recorded before the probe. If the second quality data is worse than the first quality data, the transmitter equalization settings of the PCIe peer device are updated to the probe parameters, confirming that the probe parameters are the optimal configuration and keeping them effective. If the second quality data is worse than the first quality data, the first transmitter equalization request parameters are rewritten into the re-timer through the out-of-band management channel, and link retraining is triggered to restore the parameter configuration to the state before the probe. This closed-loop decision-making mechanism ensures that each perturbation probe either improves the signal quality or reverts to the original state without loss, leaving no negative impact due to the probe.

[0085] Compared to the traditional reactive maintenance model that only intervenes passively after the link signal quality has deteriorated significantly, the embodiments of this application achieve proactive tracking and preventive adjustment of slowly changing channel characteristics through low-frequency perturbation detection. This effectively avoids the risk of signal quality gradually deteriorating and even service interruption due to long-term lack of parameter updates, and also significantly reduces the operation and maintenance costs and service impact caused by sudden link failures.

[0086] Optionally, in this embodiment, the method further includes: when the link between the re-timer and the PCIe peer device is in normal working condition, acquiring signal quality data from the register in the re-timer through the out-of-band management channel according to a preset acquisition cycle, and recording the timestamp and corresponding signal quality data for each acquisition to form a timing baseline data; whenever new signal quality data is acquired, calculating the moving average of the signal quality data within a preset time window before the current moment based on the timing baseline data, and determining whether the degree of deviation of the new signal quality data from the moving average exceeds a preset deviation threshold; if the signal quality data of multiple consecutive acquisition cycles deviates from the moving average by a degree exceeding the preset deviation threshold, determining that the signal quality of the link is continuously deteriorating, querying the historical target equalization request parameters determined for each link retraining from the local historical database, determining multiple candidate transmitter equalization request parameters based on the historical target equalization request parameters, and triggering the re-timer to enter the link retraining process.

[0087] In this embodiment, a statistical link quality degradation trend prediction mechanism is introduced, which enables the baseboard management controller to identify the continuous degradation trend of the link by establishing a timing baseline and statistical analysis methods when the link is in normal working condition.

[0088] Specifically, when the link between the retimer and the PCIe peer device is in normal working condition, the baseboard management controller can acquire signal quality data from the register in the retimer through the out-of-band management channel according to a preset acquisition cycle (e.g., every 15 minutes or every hour). It records the corresponding timestamp and the signal quality data each time it acquires data. These data points arranged in chronological order together constitute the time-series baseline data, providing basic data samples for subsequent trend analysis.

[0089] Whenever the baseboard management controller acquires new signal quality data, it can calculate the moving average of the signal quality data within a preset time window (e.g., the most recent 24 hours or the most recent 100 sampling points) based on the accumulated time-series baseline data. It then determines whether the newly acquired signal quality data deviates from this moving average by more than a preset deviation threshold. The moving average is a commonly used time-series data analysis tool. It reflects the overall level of signal quality in the recent period by calculating the average of all data within a time window before the current moment. Its function is to smooth out short-term random fluctuations, allowing the baseboard management controller to more clearly identify the true trend of signal quality data over a longer time scale. The preset deviation threshold defines the acceptable fluctuation range of signal quality data relative to the moving average. Exceeding this threshold indicates an abnormal decline in the signal quality of the current sampling point, exceeding the normal fluctuation range.

[0090] If the signal quality data for multiple consecutive acquisition cycles deviates from the moving average by more than a preset deviation threshold, the baseboard management controller determines that the signal quality of the link is continuously deteriorating. At this time, the baseboard management controller can query the historical target equalization request parameters determined in each link retraining from the local historical database, and determine multiple candidate transmitter equalization request parameters based on these parameters. Then, it triggers a re-timer to enter the link retraining process, that is, to start the testing and optimization process of the complete candidate transmitter equalization request parameters.

[0091] This application embodiment, through statistical analysis of timing baseline data, can complete preventive adjustments before the signal quality truly deteriorates to the point of being unusable, thereby effectively avoiding service interruptions caused by sudden link failures and significantly improving the reliability and maintainability of the system under long-term operating conditions.

[0092] In this embodiment of the application, optionally, step 102, which involves "the retimer sending the candidate transmitter equalization request parameters written each time during the link retraining process to the PCIe peer device, so that the PCIe peer device adjusts its own transmitter equalization settings according to the candidate transmitter equalization request parameters," includes: the retimer generating a training sequence according to the PCIe protocol; if the candidate transmitter equalization request parameter is a preset value type, then the candidate transmitter equalization request parameter is filled into the transmitter preset value field of the training sequence; if the candidate transmitter equalization request parameter is a cursor coefficient type, then the candidate transmitter equalization request parameter is decomposed into low-frequency gain coefficient, full-swing amplitude coefficient, and back cursor coefficient, and respectively filled into the corresponding coefficient fields of the training sequence; the training sequence carrying the candidate transmitter equalization request parameters is sent to the PCIe peer device through the link, so that the PCIe peer device adjusts its own transmitter equalization settings according to the candidate transmitter equalization request parameters in the training sequence.

[0093] In this embodiment, a mapping conversion mechanism is established between parameters written out of band by the baseboard management controller and training sequence fields of the PCIe protocol standard. During the link retraining process, the retimer can use this mechanism to send the candidate transmitter equalization request parameters written by the baseboard management controller to the PCIe peer device.

[0094] Specifically, the retimer first generates a training sequence according to the PCIe protocol. Here, the training sequence refers to the TS1 or TS2 ordered set used for inter-device negotiation during the PCIe link training and equalization process. These are standard data units used by the PCIe physical layer to initialize and adjust link parameters, carrying key information such as link width negotiation, rate negotiation, bit lock alignment, and equalization parameter requests.

[0095] After generating the training sequence, the retimer can determine the type of the current candidate transmitter equalization request parameter and decide how to fill the corresponding fields of the training sequence accordingly. If the candidate transmitter equalization request parameter is a preset value type, i.e., a Preset value defined in the PCIe specification, such as one of the 11 preset equalization combinations from P0 to P10, the retimer directly fills the parameter into the transmitter preset value field of the training sequence. The Preset value is a set of predefined combinations of deemphasis, pre-acceleration, and amplitude coefficients in the PCIe protocol. Each Preset corresponds to a specific equalization strength configuration. After receiving this field, the PCIe peer device can directly look up the table based on the preset value to determine the equalization parameter combination that its transmitter should use. The advantage of this method is that the interaction is simple and efficient, and it is suitable for standardized equalization adjustment scenarios.

[0096] If the candidate transmitter equalization request parameter is a vernier coefficient type, i.e., a more refined FIR filter coefficient configuration, the retimer can decompose the parameter into low-frequency gain coefficient, full-swing amplitude coefficient, and post-cursor coefficient, and fill them into the corresponding coefficient fields of the training sequence. The FIR filter vernier coefficients include pre-shoot coefficients (used to enhance the high-frequency components before the signal transition), de-emphasis coefficients (used to compensate for the high-frequency attenuation after the signal transition), and post-cursor coefficients (used to control the tail suppression after the main cursor of the signal). Among them, the low-frequency gain coefficient (LF) reflects the gain setting of the low-frequency components of the signal, the full-swing amplitude coefficient (FS) determines the swing of the transmitter output signal, and the post-cursor coefficient corresponds to the fine adjustment of the de-emphasis intensity. Together, the three constitute a complete set of transmitter equalization parameter configurations. Compared to the single-field filling of the preset value type, the cursor coefficient type requires the parameter to be broken down into three independent coefficient fields and filled into different positions of the training sequence. After receiving the data, the PCIe peer device reads the corresponding coefficient values ​​from each field and combines them for application, thereby achieving a more refined and flexible balance adjustment than the preset value.

[0097] After the retimer completes the field filling, the training sequence carrying the candidate transmitter equalization request parameters is sent to the PCIe peer device via the PCIe link. This allows the PCIe peer device to adjust its transmitter equalization settings based on the parameters in the training sequence. Upon receiving the training sequence, the PCIe peer device parses each field and adjusts its transmitter's pre-puff, de-emphasis, and amplitude equalization parameters accordingly based on the values ​​of the transmitter preset value field or each coefficient field. This alters the waveform characteristics of subsequent signal transmissions to adapt to the current link's channel conditions.

[0098] This application embodiment establishes a mapping and conversion mechanism from parameters written out-of-band by the baseboard management controller to the training sequence fields of the PCIe protocol standard. This allows the baseboard management controller to simply write candidate transmitter equalization request parameters to the retimer register through the out-of-band pipeline channel. The subsequent parameter sending and negotiation process is automatically completed by the retimer according to the PCIe standard protocol. This layered design greatly simplifies the control logic of the baseboard management controller, enabling it to efficiently complete parameter distribution tasks in resource-constrained BMC environments. At the same time, by supporting the separate processing of two parameter formats, namely preset value type and cursor coefficient type, it is compatible with the PCIe protocol standard's fast preset configuration method and provides a more refined FIR cursor coefficient adjustment capability, providing a complete parameter control method from coarse to fine granular for link equalization optimization.

[0099] Furthermore, as a refinement and extension of the specific implementation methods of the above embodiments, and to fully illustrate the specific implementation process of this embodiment, a system architecture diagram for implementing the PCIe transmitter equalization parameter adaptive adjustment method is provided, as follows: Figure 2 As shown, the system includes: a baseboard management controller, which functions as an intelligent controller and internally deploys an eye diagram analysis and decision engine, an automated test script executor, and non-volatile memory (for storing historical optimization records). The baseboard management controller is connected to the retimer via at least one out-of-band management channel, preferably an SMBus / I2C bus. The retimer is connected in series in a PCIe link, with its upstream and downstream terminals connected to PCIe peer devices, respectively. The retimer chip integrates an on-chip eye diagram monitoring engine (EOM) and a programmable equalization request parameter register.

[0100] The baseboard management controller directly reads the digital eye height, eye width, and eye margin percentage signal quality data output by the retimer eye diagram monitoring engine through the out-of-band management channel. The data acquisition completely bypasses the host CPU and PCIe in-band path and is not affected by the host operating system's running status.

[0101] The baseboard management controller writes candidate transmitter equalization request parameters to the equalization request parameter register of the re-timer through the same out-of-band management channel. When link retraining is subsequently triggered, the re-timer sends the newly configured candidate transmitter equalization request parameters from the baseboard management controller to the PCIe peer device, causing the PCIe peer device to adjust its transmitter equalization settings.

[0102] Furthermore, as Figure 1 In specific implementation of the method, this application provides a PCIe transmitter equalization parameter adaptive adjustment device, applied to a substrate management controller, such as... Figure 3 As shown, the device includes: The data acquisition module is used to acquire signal quality data from the registers in the retimer via the out-of-band management channel; The link retraining module is used to write multiple candidate transmitter equalization request parameters to the retraining timer through the out-of-band management channel if the signal quality data does not meet the preset communication signal conditions, and to trigger the retraining timer to perform link retraining. This allows the retraining timer to send the candidate transmitter equalization request parameters written each time to the PCIe peer device during the link retraining process, so that the PCIe peer device can adjust its own transmitter equalization settings according to the candidate transmitter equalization request parameters. The data acquisition module is also used to acquire signal quality data from the register in the retimer through the out-of-band management channel after the PCIe peer device has completed adjusting its own transmitter equalization settings each time it is detected. The parameter filtering module is used to determine the target equalization request parameter from the multiple candidate transmitter equalization request parameters based on the signal quality data acquired each time, and write the target equalization request parameter into the re-timer so that the re-timer triggers the PCIe peer device to adjust its own transmitter equalization settings according to the target equalization request parameter for subsequent link communication.

[0103] Optionally, the link retraining module is used to: Obtain an untested candidate transmitter equalization request parameter from the candidate parameter list, and write the currently obtained candidate transmitter equalization request parameter into the equalization request parameter register of the retimer through the out-of-band management channel; After the write is completed, a trigger signal is sent to the re-timer via a general-purpose input / output pin or the out-of-band management channel to cause the link between the re-timer and the PCIe peer device to enter the retraining state; during the retraining process, the re-timer sends the latest candidate transmitter equalization request parameter in the equalization request parameter register to the PCIe peer device; Repeatedly retrieve an untested candidate transmitter equalization request parameter from the candidate parameter list and trigger the link to enter the retraining state until there are no untested candidate transmitter equalization request parameters in the candidate parameter list, at which point the testing process of the candidate parameter list ends.

[0104] Optionally, the parameter filtering module is used to: For each acquired signal quality data, the following operations are performed to obtain the score value of the corresponding candidate transmitter equalization request parameter: extract multiple dimensions of signal quality indicators from the signal quality data, and calculate the quality contribution value corresponding to each signal quality indicator; acquire the bit error rate data of the link between the retimer and the PCIe peer device when the signal quality data is acquired, and calculate the bit error rate penalty value based on the bit error rate data; and weight and fuse each quality contribution value and the bit error rate penalty value according to a preset weight to obtain the score value of the corresponding candidate transmitter equalization request parameter. The target equalization request parameter is determined from the multiple candidate transmitter equalization request parameters based on the score value corresponding to each candidate transmitter equalization request parameter.

[0105] Optionally, the signal quality indicators include eye height data and eye width data; the parameter filtering module is further used for: Extract eye height and eye width data from the signal quality data; Calculate the first difference between the eye height data and the preset minimum acceptable eye height threshold; obtain the second difference between the preset reference maximum eye height value and the preset minimum acceptable eye height threshold; calculate the first ratio between the first difference and the second difference, and use the first ratio as the eye quality contribution value; Calculate the third difference between the eye width data and the preset minimum acceptable eye width threshold; obtain the fourth difference between the preset reference maximum eye width value and the preset minimum acceptable eye width threshold; calculate the second ratio between the third difference and the fourth difference, and use the second ratio as the eye width quality contribution value.

[0106] Optionally, when the link includes multiple data channels, the following operations are performed to obtain a score value for the equalization request parameter of each candidate transmitter: For each candidate transmitter equalization request parameter, obtain the signal quality data of each data channel under the candidate transmitter equalization request parameter, calculate the score value of each data channel based on the signal quality data, and take the lowest score value or the average score value of each data channel as the score value corresponding to the candidate transmitter equalization request parameter.

[0107] Optionally, the parameter filtering module is further configured to: The highest value is determined from the score values ​​of the equalization request parameters of each candidate transmitter, and the difference between the highest value and each of the other score values ​​is calculated respectively. When at least one difference is less than a preset difference threshold, the transmitter equalization strength information corresponding to each candidate transmitter equalization request parameter is read from the re-timer through the out-of-band management channel. Based on the transmitter equalization strength information, the candidate transmitter equalization request parameter with the lowest equalization strength is selected as the target equalization request parameter from the candidate transmitter equalization request parameters whose difference is less than the preset difference threshold. When all differences are greater than or equal to the preset difference threshold, the candidate transmitter equalization request parameter corresponding to the maximum score value is used as the target equalization request parameter.

[0108] Optionally, the device further includes a determination module; the determination module is configured to: After each calculation of the score value of the candidate transmitter equalization request parameter, the score value sequence is updated based on the current score value, and the score value sequence is used to determine whether the most recent consecutive preset number of score values ​​show a monotonically decreasing trend. If the current score is determined to be monotonically decreasing, it is determined whether the current score is lower than the preset pruning threshold. If the current score is lower than the preset pruning threshold, it is determined that the optimal parameter range has been exceeded, and the writing of new candidate transmitter equalization request parameters to the retimer is stopped.

[0109] Optionally, the data acquisition module is used for: When the link between the retimer and the PCIe peer device is in normal working condition, in response to a time-triggered signal or an event-triggered signal, signal quality data is obtained from the register in the retimer through the out-of-band management channel; The device further includes a comparison module; the comparison module is configured to: After obtaining signal quality data from the register in the re-timer through the out-of-band management channel, if the signal quality data meets the preset communication signal conditions, then when the preset low-frequency detection time point is reached, the first transmitter equalization request parameter currently in use is obtained, and the current signal quality data is obtained from the register in the re-timer through the out-of-band management channel as the first quality data. The probe parameters are selected from the preset neighbor parameter range of the first transmitter equalization request parameters, and the probe parameters are written into the re-timer through the out-of-band management channel, and the re-timer is triggered to perform link retraining. After the link retraining is completed, the current signal quality data is obtained again from the register in the re-timer through the out-of-band management channel as the second quality data; If the second quality data is better than the first quality data, the transmitter equalization settings of the PCIe peer device are updated to the detection parameters; otherwise, the first transmitter equalization request parameters are rewritten into the re-timer through the out-of-band management channel, and link retraining is triggered to restore the transmitter equalization settings before detection.

[0110] Optionally, the device further includes a degradation determination module; the degradation determination module is used for: When the link between the retimer and the PCIe peer device is in normal working condition, signal quality data is obtained from the register in the retimer through the out-of-band management channel according to the preset acquisition cycle, and the timestamp of each acquisition and the corresponding signal quality data are recorded to form timing baseline data; Whenever new signal quality data is acquired, the sliding average of the signal quality data within a preset time window prior to the current moment is calculated based on the time-series baseline data, and it is determined whether the degree to which the new signal quality data deviates from the sliding average exceeds a preset deviation threshold. If the signal quality data of multiple consecutive acquisition cycles deviates from the sliding average value by more than the preset deviation threshold, it is determined that the signal quality of the link is continuously deteriorating. The historical target equalization request parameters determined for each link retraining are retrieved from the local historical database. Based on the historical target equalization request parameters, multiple candidate transmitter equalization request parameters are determined, and the re-timer is triggered to enter the link retraining process.

[0111] Optionally, the retimer is used for: Generate training sequences according to the PCIe protocol; If the candidate transmitter equalization request parameter is a preset value type, then the candidate transmitter equalization request parameter is filled into the transmitter preset value field of the training sequence; If the candidate transmitter equalization request parameter is of the cursor coefficient type, then the candidate transmitter equalization request parameter is decomposed into low-frequency gain coefficient, full swing amplitude coefficient and back cursor coefficient, and respectively filled into the corresponding coefficient field of the training sequence; The training sequence carrying the candidate transmitter equalization request parameters is sent to the PCIe peer device through the link, so that the PCIe peer device can adjust its own transmitter equalization settings according to the candidate transmitter equalization request parameters in the training sequence.

[0112] It should be noted that other corresponding descriptions of the functional units involved in the PCIe transmitter equalization parameter adaptive control device provided in this application embodiment can be found in the following references. Figures 1 to 2 The corresponding descriptions in the method will not be repeated here.

[0113] This application also provides a computer device, which may specifically be a personal computer, a server, a network device, etc. Figure 4 As shown, the computer device includes a bus, a processor, memory, and a communication interface, and may also include an input / output interface and a display device. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database stores location information. The network interface allows communication with external terminals via a network connection. When the computer program is executed by the processor, it implements the steps in the various method embodiments.

[0114] Those skilled in the art will understand that Figure 4The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0115] In one embodiment, a computer-readable storage medium is provided, which may be non-volatile or volatile, having stored thereon a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0116] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0117] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0118] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0119] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0120] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A PCIe transmitter equalization parameter adaptive adjustment method, applied to a baseboard management controller, characterized in that, The method includes: Signal quality data is obtained from the registers within the retimer via the out-of-band management channel; If the signal quality data does not meet the preset communication signal conditions, multiple candidate transmitter equalization request parameters are written to the re-timer through the out-of-band management channel, and the re-timer is triggered to perform link retraining. This allows the re-timer to send the candidate transmitter equalization request parameters written each time to the PCIe peer device during the link retraining process, so that the PCIe peer device can adjust its own transmitter equalization settings according to the candidate transmitter equalization request parameters. After detecting that the PCIe peer device has completed adjusting its own transmitter equalization settings each time, the signal quality data is obtained again from the register in the retimer through the out-of-band management channel; Based on the acquired signal quality data, a target equalization request parameter is determined from the plurality of candidate transmitter equalization request parameters, and the target equalization request parameter is written into the re-timer so that the re-timer triggers the PCIe peer device to adjust its own transmitter equalization settings according to the target equalization request parameter for subsequent link communication.

2. The method according to claim 1, characterized in that, The step of writing multiple candidate transmitter equalization request parameters to the re-timer through the out-of-band management channel and triggering the re-timer to perform link retraining includes: Obtain an untested candidate transmitter equalization request parameter from the candidate parameter list, and write the currently obtained candidate transmitter equalization request parameter into the equalization request parameter register of the retimer through the out-of-band management channel; After the write is completed, a trigger signal is sent to the re-timer via a general-purpose input / output pin or the out-of-band management channel to cause the link between the re-timer and the PCIe peer device to enter the retraining state; during the retraining process, the re-timer sends the latest candidate transmitter equalization request parameter in the equalization request parameter register to the PCIe peer device; Repeatedly retrieve an untested candidate transmitter equalization request parameter from the candidate parameter list and trigger the link to enter the retraining state until there are no untested candidate transmitter equalization request parameters in the candidate parameter list, at which point the testing process of the candidate parameter list ends.

3. The method according to claim 1, characterized in that, The step of determining the target equalization request parameter from the plurality of candidate transmitter equalization request parameters based on the acquired signal quality data includes: For each acquired signal quality data, the following operations are performed to obtain the score value of the corresponding candidate transmitter equalization request parameter: extract multiple dimensions of signal quality indicators from the signal quality data, and calculate the quality contribution value corresponding to each signal quality indicator; acquire the bit error rate data of the link between the retimer and the PCIe peer device when the signal quality data is acquired, and calculate the bit error rate penalty value based on the bit error rate data; and weight and fuse each quality contribution value and the bit error rate penalty value according to a preset weight to obtain the score value of the corresponding candidate transmitter equalization request parameter. The target equalization request parameter is determined from the multiple candidate transmitter equalization request parameters based on the score value corresponding to each candidate transmitter equalization request parameter.

4. The method according to claim 3, characterized in that, The signal quality indicators include eye height data and eye width data; the extraction of multiple dimensions of signal quality indicators from the signal quality data, and the calculation of the quality contribution value corresponding to each signal quality indicator, includes: Extract eye height and eye width data from the signal quality data; Calculate the first difference between the eye height data and the preset minimum acceptable eye height threshold; obtain the second difference between the preset reference maximum eye height value and the preset minimum acceptable eye height threshold; calculate the first ratio between the first difference and the second difference, and use the first ratio as the eye quality contribution value; Calculate the third difference between the eye width data and the preset minimum acceptable eye width threshold; obtain the fourth difference between the preset reference maximum eye width value and the preset minimum acceptable eye width threshold; calculate the second ratio between the third difference and the fourth difference, and use the second ratio as the eye width quality contribution value.

5. The method according to claim 3, characterized in that, When the link includes multiple data channels, perform the following operations to obtain a score value for the equalization request parameter of each candidate transmitter: For each candidate transmitter equalization request parameter, obtain the signal quality data of each data channel under the candidate transmitter equalization request parameter, calculate the score value of each data channel based on the signal quality data, and take the lowest score value or the average score value of each data channel as the score value corresponding to the candidate transmitter equalization request parameter.

6. The method according to claim 3, characterized in that, The step of determining the target equalization request parameter from the plurality of candidate transmitter equalization request parameters based on the score value corresponding to each candidate transmitter equalization request parameter includes: The highest value is determined from the score values ​​of the equalization request parameters of each candidate transmitter, and the difference between the highest value and each of the other score values ​​is calculated respectively. When at least one difference is less than a preset difference threshold, the transmitter equalization strength information corresponding to each candidate transmitter equalization request parameter is read from the re-timer through the out-of-band management channel. Based on the transmitter equalization strength information, the candidate transmitter equalization request parameter with the lowest equalization strength is selected as the target equalization request parameter from the candidate transmitter equalization request parameters whose difference is less than the preset difference threshold. When all differences are greater than or equal to the preset difference threshold, the candidate transmitter equalization request parameter corresponding to the maximum score value is used as the target equalization request parameter.

7. The method according to claim 3, characterized in that, After calculating the score value of the candidate transmitter equalization request parameter each time, the method further includes: Based on the current rating value, update the rating value sequence, and based on the rating value sequence, determine whether the most recent consecutive preset number of rating values ​​show a monotonically decreasing trend; If the current score is determined to be monotonically decreasing, it is determined whether the current score is lower than the preset pruning threshold. If the current score is lower than the preset pruning threshold, it is determined that the optimal parameter range has been exceeded, and the writing of new candidate transmitter equalization request parameters to the retimer is stopped.

8. The method according to claim 1, characterized in that, The step of obtaining signal quality data from the register within the retimer via the out-of-band management channel includes: When the link between the retimer and the PCIe peer device is in normal working condition, in response to a time-triggered signal or an event-triggered signal, signal quality data is obtained from the register in the retimer through the out-of-band management channel; After obtaining signal quality data from the register within the retimer via the out-of-band management channel, the method further includes: If the signal quality data meets the preset communication signal conditions, then when the preset low-frequency detection time point is reached, the first transmitter equalization request parameter currently in use is obtained, and the current signal quality data is obtained from the register in the re-timer through the out-of-band management channel as the first quality data. The probe parameters are selected from the preset neighbor parameter range of the first transmitter equalization request parameters, and the probe parameters are written into the re-timer through the out-of-band management channel, and the re-timer is triggered to perform link retraining. After the link retraining is completed, the current signal quality data is obtained again from the register in the re-timer through the out-of-band management channel as the second quality data; If the second quality data is better than the first quality data, the transmitter equalization settings of the PCIe peer device are updated to the detection parameters; otherwise, the first transmitter equalization request parameters are rewritten into the re-timer through the out-of-band management channel, and link retraining is triggered to restore the transmitter equalization settings before detection.

9. The method according to claim 1, characterized in that, The method further includes: When the link between the retimer and the PCIe peer device is in normal working condition, signal quality data is obtained from the register in the retimer through the out-of-band management channel according to the preset acquisition cycle, and the timestamp of each acquisition and the corresponding signal quality data are recorded to form timing baseline data; Whenever new signal quality data is acquired, the sliding average of the signal quality data within a preset time window prior to the current moment is calculated based on the time-series baseline data, and it is determined whether the degree to which the new signal quality data deviates from the sliding average exceeds a preset deviation threshold. If the signal quality data of multiple consecutive acquisition cycles deviates from the sliding average value by more than the preset deviation threshold, it is determined that the signal quality of the link is continuously deteriorating. The historical target equalization request parameters determined for each link retraining are retrieved from the local historical database. Based on the historical target equalization request parameters, multiple candidate transmitter equalization request parameters are determined, and the re-timer is triggered to enter the link retraining process.

10. The method according to claim 1, characterized in that, During link retraining, the retimer sends the candidate transmitter equalization request parameters written each time to the PCIe peer device, enabling the PCIe peer device to adjust its own transmitter equalization settings according to the candidate transmitter equalization request parameters, including: The retimer generates training sequences according to the PCIe protocol; If the candidate transmitter equalization request parameter is a preset value type, then the candidate transmitter equalization request parameter is filled into the transmitter preset value field of the training sequence; If the candidate transmitter equalization request parameter is of the cursor coefficient type, then the candidate transmitter equalization request parameter is decomposed into low-frequency gain coefficient, full swing amplitude coefficient and back cursor coefficient, and respectively filled into the corresponding coefficient field of the training sequence; The training sequence carrying the candidate transmitter equalization request parameters is sent to the PCIe peer device through the link, so that the PCIe peer device can adjust its own transmitter equalization settings according to the candidate transmitter equalization request parameters in the training sequence.

11. A PCIe transmitter equalization parameter adaptive control device, characterized in that, The device, applied to a substrate management controller, includes: The data acquisition module is used to acquire signal quality data from the registers in the retimer via the out-of-band management channel; The link retraining module is used to write multiple candidate transmitter equalization request parameters to the retraining timer through the out-of-band management channel if the signal quality data does not meet the preset communication signal conditions, and to trigger the retraining timer to perform link retraining. This allows the retraining timer to send the candidate transmitter equalization request parameters written each time to the PCIe peer device during the link retraining process, so that the PCIe peer device can adjust its own transmitter equalization settings according to the candidate transmitter equalization request parameters. The data acquisition module is also used to acquire signal quality data from the register in the retimer through the out-of-band management channel after the PCIe peer device has completed adjusting its own transmitter equalization settings each time it is detected. The parameter filtering module is used to determine the target equalization request parameter from the multiple candidate transmitter equalization request parameters based on the signal quality data acquired each time, and write the target equalization request parameter into the re-timer so that the re-timer triggers the PCIe peer device to adjust its own transmitter equalization settings according to the target equalization request parameter for subsequent link communication.

12. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 10.

13. A computer device, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method of any one of claims 1 to 10.