Disclosure of Invention
The application provides a parameter self-adaption method, a parameter self-adaption device, a parameter self-adaption equipment and a computer readable storage medium of a high-speed signal, parameters of a signal sending end and a signal receiving end of a mini SAS HD cable are self-adaptively adjusted, the driving capability of the sending end and the signal receiving capability of the receiving end are enhanced, the requirement of link signal integrity is met, a low-cost common cable replaces a customized high-cost cable, and the application cost of a system is reduced.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
an embodiment of the present invention provides a parameter adaptive method for high-speed signals, which is applicable to a substrate management controller for controlling a transmitting end and a receiving end for signal transmission based on a mini SAS HD cable, and includes:
when the mini SAS HD cable is detected to be in place, reading cable parameter information from an EEPROM of a corresponding port; the cable parameter information is pre-stored in the EEPROM and comprises cable length and wire gauge type;
if the cable parameter information does not meet the link signal integrity requirement, matching target signal parameters for the cable parameter information from a pre-constructed parameter configuration table; the target signal parameters comprise the sending end signal parameters and the receiving end signal parameters;
modifying the parameter value in the corresponding end interface chip register according to the target signal parameter;
the parameter configuration table is used for recording the optimal matching relation between the parameters of the storage cable and the parameters of the interface chip.
Optionally, after reading the cable parameter information from the EEPROM of the corresponding port, the method further includes:
identifying the cable length and the wire gauge type of the mini SAS HD cable;
if the cable length and the wire gauge type of the mini SAS HD cable meet the link signal integrity requirement, respectively sending an interface chip negotiation instruction to the receiving end and the sending end;
if the negotiation flow of the interface chip of the receiving end and the interface chip of the sending end is completed, detecting the state of each interface chip and the error code condition of an error code register;
and if at most one interface chip is abnormal in state and/or an error code exists in a link, generating prompt information of cable mismatching or cable fault.
Optionally, after matching the cable parameter information with the target signal parameter from the pre-constructed parameter configuration table, the method further includes:
and if the corresponding target signal parameters cannot be obtained for the cable parameter information in the parameter configuration table in a matching manner, generating prompt information of cable mismatching or cable fault.
Optionally, after modifying the parameter value in the corresponding end interface chip register according to the target signal parameter, the method further includes:
sending interface chip renegotiation instructions to the receiving end and the sending end respectively;
if the interface chip of the receiving end and the interface chip of the sending end complete the renegotiation process, detecting the state of each interface chip and the error code condition of an error code register;
and if at most one interface chip is abnormal in state and/or an error code exists in a link, generating prompt information of cable mismatching or cable fault.
Optionally, before the matching of the cable parameter information with the target signal parameter from the pre-constructed parameter configuration table, the method further includes:
and when the received parameter matching relationship updating instruction is received, updating the parameter configuration table according to the parameter matching relationship updating instruction.
In another aspect, an embodiment of the present invention provides a parameter adaptive device for high-speed signals, which is suitable for a substrate management controller that controls a transmitting end and a receiving end that perform signal transmission based on a mini SAS HD cable, and includes:
the system comprises a table pre-establishing module, a table pre-establishing module and a parameter configuration module, wherein the table pre-establishing module is used for pre-establishing a parameter configuration table, and the parameter configuration table is used for recording the optimal matching relation between the parameters of the storage cable and the parameters of an interface chip;
the cable information reading module is used for reading cable parameter information from the EEPROM of the corresponding port when the mini SAS HD cable is detected to be in place; the cable parameter information is pre-stored in the EEPROM and comprises cable length and wire gauge type;
the optimal parameter matching module is used for matching target signal parameters for the cable parameter information from a pre-constructed parameter configuration table if the cable parameter information does not meet the link signal integrity requirement; the target signal parameters comprise the sending end signal parameters and the receiving end signal parameters;
and the chip parameter resetting module is used for modifying the parameter values in the corresponding end interface chip registers according to the target parameters.
Optionally, the system further includes a prejudging module, where the prejudging module includes:
the cable identification submodule is used for identifying the cable length and the wire gauge type of the mini SAS HD cable;
the chip negotiation submodule is used for respectively sending an interface chip negotiation instruction to the receiving end and the sending end if the cable length and the wire gauge type of the mini SAS HD cable meet the link signal integrity requirement;
the cable link integrity requirement detection submodule is used for detecting the state of each interface chip and the error code condition of the error code register if the negotiation flow of the interface chip of the receiving end and the interface chip of the transmitting end is completed;
and the prompt information generation submodule is used for generating prompt information of cable mismatching or cable fault if at most one interface chip state is abnormal and/or the link has error codes.
Optionally, the system further includes a table data updating module, where the table data updating module is configured to update the parameter configuration table according to the received parameter matching relationship updating instruction.
An embodiment of the present invention further provides a parameter adaptive device for a high-speed signal, including a processor, configured to implement the steps of the parameter adaptive method for a high-speed signal according to any one of the preceding items when executing a computer program stored in a memory.
Finally, an embodiment of the present invention provides a computer-readable storage medium, where a parameter adaptive program of a high-speed signal is stored, and when executed by a processor, the method implements the steps of the parameter adaptive method of the high-speed signal.
The technical scheme provided by the application has the advantages that before high-speed signal connection, the BMC reads cable information prestored in the cable EEPROM through an out-of-band channel, identifies the length and type of the cable, judges whether the integrity of a link signal is met in advance, determines signal parameter values which are most suitable for a sending end and a receiving end of current cable information according to a parameter configuration table built in the BMC if the integrity of the link is not met, then adjusts parameters of an interface chip according to the signal parameter information obtained by recommendation in the table, adaptively adjusts the parameters of the signal sending end and the signal receiving end of a mini SAS cable, fully utilizes the high-speed Serdes driving capability of the interface chip, can support longer transmission distance, enhances the signal receiving capability of the sending end and the receiving end, meets the integrity of the link signal, replaces a common cable with low cost to customize a high-cost cable, does not need to customize the cable, and can avoid the field installation, the operation is simplified, and the application cost of the system is reduced.
In addition, the embodiment of the invention also provides a corresponding implementation device, equipment and a computer readable storage medium for the parameter adaptive method of the high-speed signal, so that the method has higher practicability, and the device, the equipment and the computer readable storage medium have corresponding advantages.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may include other steps or elements not expressly listed.
Having described the technical solutions of the embodiments of the present invention, various non-limiting embodiments of the present application are described in detail below.
Referring to fig. 1, fig. 1 is a schematic flow chart of a parameter adaptive method for high-speed signals according to an embodiment of the present invention, which is suitable for controlling a substrate management controller of a transmitting end and a receiving end for signal transmission based on a mini SAS HD cable, and an embodiment of the present invention may include the following:
it should be noted that the mini SAS HD cable includes two ports, each of which is provided with an EEPROM (Electrically Erasable Programmable Read-Only Memory), if a device inserted into the first port is used to transmit signals, the device may be a sending end, if the device inserted into the first port is used for receiving signals, the device may be a receiving end, the receiving end and the sending end determine according to the signal flow direction, and the device connected to each end may have a BMC (Baseboard Management Controller) for managing and controlling the device, generally, for the current system composed of a transmitting end, a receiving end and a mini SAS HD cable, one end of the system is used as a main control end, the BMC of the main control end may perform the operations of the following method embodiments, that is, the BMC of the main control end reads the current cable information and matches the current cable information with the appropriate signal sending parameters and signal receiving parameters. For example, as shown in fig. 2, to implement reading and writing of the control frame to the hard disk frame, the control frame may be used as a main control end, and the out-of-band BMC system of the control frame is used to read the EEPROM information of the cable port connected to the control frame to identify the cable information and perform parameter matching operation.
S101: and when detecting that the mini SAS HD cable is in place, reading the cable parameter information from the EEPROM of the corresponding port.
In the application, the BMC can poll the mini SAS HD cable in-place signal, and wait for the next polling result if the cable is not in place; if the cable is in place, the information of the EEPROM is read, and the type of the mini SAS HD cable is identified, for example, the cable is 1/3/5/7/8 in length, and the wire gauge type is AWG26/28/30 in type. In consideration of the space utilization of the EEPROM, the cable parameter information that can be stored in advance is the cable length and the wire gauge type, and of course, other cable information may also be included, which is not limited in this application.
S102: and if the cable parameter information does not meet the link signal integrity requirement, matching the cable parameter information with the target signal parameter from a pre-constructed parameter configuration table.
After the cable information is read and obtained in S101, the length and the type of the currently inserted cable can be identified, whether the cable parameter information accords with the integrity of a link signal is judged, that is, whether a mini SAS HD cable inserted in S101 is matched with an insertion port is judged, if the mini SAS HD cable is not matched with the insertion port, target signal parameters such as signal swing amplitude, signal attenuation parameters, pre-emphasis, transmission frequency and the like can be matched for the cable parameter information from a parameter configuration table, and the target signal parameters comprise a transmitting end signal parameter and a receiving end signal parameter; the target signal parameter refers to a receiving end parameter and a sending end parameter which are most matched with or most suitable for current cable information, so that the sending end parameter and the receiving end parameter of an SAS chip or PCIe chip of a cable insertion port are ensured to be optimal after reconnection is ensured, and the reliability of an SI link is ensured.
The parameter configuration table is pre-constructed in the BMC, for example, the parameter configuration table can be stored in a FLASH of the BMC, and the table is used for recording the optimal matching relationship between the storage cable parameter and the interface chip parameter.
S103: and modifying the parameter value in the register of the corresponding end interface chip according to the target signal parameter.
It can be understood that there are various high-speed signal types, and there are various corresponding interface chips, and the interface chip in this step is consistent with the high-speed signal type transmitted by the mini SAS HD cable in S101, for example, 12Gbps SAS electrical signal or 8/16Gbps PCIe electrical signal is usually transmitted by the mini SAS HD cable, where the interface chip may be an SAS chip or a PCIe chip. And writing the target signal parameter determined in the step S102 into a register of the interface chip so that the interface is matched with the cable.
In the technical scheme provided by the embodiment of the invention, before high-speed signal connection, BMC reads pre-stored cable information in a cable EEPROM through an out-of-band channel, identifies the length and type of the cable, judges whether the integrity of a link signal is met in advance, determines the most appropriate signal parameter values of a transmitting end and a receiving end suitable for the current cable information according to a parameter configuration table built in the BMC if the integrity of the link is not met, then adjusts the parameters of an interface chip according to the signal parameter information obtained by recommendation in the table, adaptively adjusts the parameters of the signal transmitting end and the signal receiving end of a mini SAS HD cable, fully utilizes the high-speed Serdes driving capability of the interface chip, can support longer transmission distance, enhances the driving capability of the transmitting end and the signal receiving capability of the receiving end, meets the integrity of the link signal, replaces a common cable with low cost to customize a cable, does not need to customize the cable and can, the operation is simplified, and the application cost of the system is reduced.
It will be appreciated that after the Mini SAS HD cable is plugged into the port and the connected devices are powered up, the Mini SASHD cable may be linked to the plugged port in three relationships: complete matching, partial matching and complete mismatching, while the above embodiment only explains the execution operation of partial matching, the partial matching refers to that matching parameters can be obtained by table lookup, and the complete mismatching refers to that matching parameters cannot be obtained by table lookup. Based on the method, the cable length and the wire gauge type of the mini SAS HD cable are identified for the condition of being completely matched; if the cable length and the wire gauge type of the mini SAS HD cable meet the link signal integrity requirement, respectively sending an interface chip negotiation instruction to a receiving end and a sending end; if the negotiation flow of the interface chip of the receiving end and the interface chip of the sending end is completed, detecting the state of each interface chip and the error code condition of an error code register; if at most one interface chip is abnormal in state and/or an error code exists in a link, prompt information of cable mismatching or cable fault is generated; if the interface chip state is abnormal and/or the link has error codes, the signal transmission can be normally carried out. For the case of partial matching, in addition to executing the above operations, the method may further include sending interface chip renegotiation instructions to the receiving end and the sending end, respectively; if the interface chip of the receiving end and the interface chip of the sending end complete the renegotiation process, detecting the state of each interface chip and the error code condition of an error code register; if at most one interface chip is abnormal in state and/or an error code exists in a link, prompt information of cable mismatching or cable fault is generated; if the interface chip state is abnormal and/or the link has error codes, the signal transmission can be normally carried out. For the situation of complete mismatch, that is, if the corresponding target signal parameter cannot be obtained by matching the cable parameter information in the parameter configuration table, prompt information of cable mismatch or cable fault is generated. In order to make the technical solutions of the present application more clearly understood by those skilled in the art, the present application further explains the technical solutions of the present application by using specific examples, please refer to fig. 2 and fig. 3, and fig. 3 is a schematic flow chart of another high-speed signal parameter adaptive method provided in the embodiment of the present invention, which specifically includes the following contents:
as shown in fig. 2, the Mini SAS HD cable connects the control frame and the hard disk frame, and the control frame reads and writes the SSD of the hard disk frame. In the figure, the two lines are in-band data channels (e.g., high-speed data transmission channels such as SAS, PCIe, etc.), and the single line "-" is an out-of-band control signal channel (e.g., low-speed data transmission channel such as I2C, etc.). Parameter configuration tables are respectively stored in Flash of a BMC system of the control frame and a BMC system of the hard disk frame, and recommended parameters corresponding to different SAS and PCIe chip sending ends (TX) and receiving ends (RX) can be inquired according to the identified cable length and the AWG wire gauge type. And electrifying the control frame and the hard disk frame, and normally starting the BMC and the service chip according to an electrifying time sequence.
BMC polls mini SAS HD cable in-place signals; if the cable is not in place, waiting for the next polling result; if the cable is in place, the information of the EEPROM is read, and the type of the mini SAS HD cable (the cable length supports 1/3/5/7/8 and the like, and the AWG wire gauge supports 26/28/30 and the like) is identified. If the information of the cable length, the AWG wire gauge and the like is identified, the negotiation process of the interface chips at the two ends is started according with the link SI requirement, and after the negotiation is finished, whether the states of the interface chips are normal or not, whether new error codes exist or not is checked. After the system is confirmed to be normal, the system is normally started; if the query is error code, then alarm "cable not match or cable faulty". If information such as cable length, AWG gauge type, etc. is identified, "link SI signal integrity" requirements are not met. The BMC inquires parameter configuration tables of different SAS and PCIe chip sending ends and receiving ends in Flash, and whether the length of the currently inserted cable and the AWG wire gauge type are matched exists. And if no proper parameter meets the current inserted cable, reporting alarm information to a system, wherein the current inserted cable is not matched, and requesting to replace the proper cable. If the Flash query table has recommended parameters meeting the length of the currently inserted cable and the AWG wire gauge, the BMC writes a corresponding interface chip register through an out-of-band channel and writes SI parameter values aiming at the sending end and the receiving end in the query table; resetting the interface chip for renegotiation, and inquiring a state register and an error code register after the interface chip is normal; if the chip state is normal, the Rx end of the link has no error, the system is normally started, and if the chip state is abnormal or the link has the error, the system reports an alarm of 'cable mismatching or cable fault'.
As can be seen from the above, in the embodiment of the present invention, a parameter configuration table is added to Flash of the BMC system of the control frame and the hard disk frame, and according to the cable length and the AWG wire gauge, parameters of the control frame/hard disk frame interface chip are set, and the transmitter driving parameter and the receiver DFE equalization parameter are adjusted. When the BMC finds the common cable inserted with the 30/28AWG wire gauge, and the length of the cable is 5-7 m, the driving capability of the sending end of the interface chip of the control frame/hard disk frame and the equalizing capability of the DFE of the receiving end can be adjusted, so that the SI signal integrity requirement of a link is met. By reading the information of the cable EEPROM, the length of the cable and the type of the AWG wire gauge are identified, whether the type of the inserted cable meets the port cascade requirement of the control frame and the hard disk frame is judged in advance, and the problems of error codes, link flash and the like caused by misinsertion of unmatched cables after long-term operation are avoided.
In addition, as another implementation, the high-speed Serdes driving capability of the interface chips of different types and different manufacturers has a corresponding parameter table which is fully verified, that is, the parameter configuration table in the present application, in order to improve the flexibility of the parameter configuration table, the update operation of the parameter configuration table can be supported, the update operation can include adding a new matching relationship, modifying an original matching relationship, and deleting the original matching relationship, and specifically, when a received parameter matching relationship update instruction, the parameter configuration table is updated according to the parameter matching relationship update instruction.
The embodiment of the invention also provides a corresponding implementation device for the parameter self-adaptive method of the high-speed signal, so that the method has higher practicability. In the following, the parameter adaptive apparatus for high-speed signals provided by the embodiments of the present invention is introduced, and the parameter adaptive apparatus for high-speed signals described below and the parameter adaptive method for high-speed signals described above may be referred to correspondingly.
Referring to fig. 4, fig. 4 is a structural diagram of a parameter adaptive device for high-speed signals according to an embodiment of the present invention in a specific implementation manner, and the structural diagram is suitable for a baseboard management controller that controls a transmitting end and a receiving end that perform signal transmission based on a mini SAS HD cable, where the device may include:
the table pre-building module 401 is configured to pre-build a parameter configuration table, where the parameter configuration table is used to record an optimal matching relationship between a storage cable parameter and an interface chip parameter.
A cable information reading module 402, configured to, when it is detected that the mini SAS HD cable is in place, read cable parameter information from the EEPROM of the corresponding port; the cable parameter information is pre-stored in the EEPROM and comprises cable length and wire gauge type.
An optimal parameter matching module 403, configured to match a target signal parameter for the cable parameter information from a pre-constructed parameter configuration table if the cable parameter information does not meet the link signal integrity requirement; the target signal parameters include the transmitting end signal parameters and the receiving end signal parameters.
And a chip parameter resetting module 404, configured to modify a parameter value in a corresponding end interface chip register according to the target parameter.
Optionally, in some embodiments of this embodiment, please refer to fig. 5, for example, the apparatus may further include a pre-determining module 405, where the pre-determining module 405 specifically includes:
the cable identification submodule is used for identifying the cable length and the wire gauge type of the mini SAS HD cable;
the chip negotiation submodule is used for respectively sending an interface chip negotiation instruction to the receiving end and the sending end if the cable length and the wire gauge type of the mini SAS HD cable meet the link signal integrity requirement;
the cable link integrity requirement detection submodule is used for detecting the state of each interface chip and the error code condition of the error code register if the negotiation flow of the interface chip of the receiving end and the interface chip of the transmitting end is completed;
and the prompt information generation submodule is used for generating prompt information of cable mismatching or cable fault if at most one interface chip state is abnormal and/or the link has error codes.
In other embodiments of the present invention, the apparatus may further include a table data updating module 406, for example, and the table data updating module 406 may be configured to update the parameter configuration table according to the parameter matching relationship updating instruction when the received parameter matching relationship updating instruction is received.
Optionally, in other embodiments of this embodiment, the apparatus may further include a parameter resetting post-processing module 407, for example, which may include:
the renegotiation submodule is used for sending interface chip renegotiation instructions to the receiving end and the sending end respectively again;
the detection submodule is used for detecting the state of each interface chip and the error code condition of the error code register if the renegotiation process of the interface chip of the receiving end and the interface chip of the sending end is completed;
and the prompt information generation submodule is used for generating prompt information of cable mismatching or cable fault if at most one interface chip state is abnormal and/or the link has error codes.
In addition, the device may further include an alarm module, for example, configured to generate a prompt message of cable mismatching or cable fault if the corresponding target signal parameter cannot be obtained for cable parameter information matching in the parameter configuration table.
The functions of each functional module of the parameter adaptive device for high-speed signals according to the embodiments of the present invention may be specifically implemented according to the method in the above method embodiments, and the specific implementation process may refer to the description related to the above method embodiments, which is not described herein again.
Therefore, the embodiment of the invention adaptively adjusts the parameters of the signal transmitting end and the signal receiving end of the mini SAS HD cable, enhances the driving capability of the transmitting end and the signal receiving capability of the receiving end, ensures that the requirement of the integrity of the link signal is met, replaces the customized high-cost cable with the low-cost common cable, and reduces the application cost of the system.
The embodiment of the present invention further provides a parameter adaptive device for high-speed signals, which specifically includes:
a memory for storing a computer program;
a processor for executing a computer program to implement the steps of the parameter adaptation method for high-speed signals according to any of the above embodiments.
The functions of each functional module of the parameter adaptive device for high-speed signals according to the embodiments of the present invention may be specifically implemented according to the method in the above method embodiments, and the specific implementation process may refer to the description related to the above method embodiments, which is not described herein again.
Therefore, the embodiment of the invention adaptively adjusts the parameters of the signal transmitting end and the signal receiving end of the mini SAS HD cable, enhances the driving capability of the transmitting end and the signal receiving capability of the receiving end, ensures that the requirement of the integrity of the link signal is met, replaces the customized high-cost cable with the low-cost common cable, and reduces the application cost of the system.
The embodiment of the present invention further provides a computer-readable storage medium, in which a parameter adaptive program of a high-speed signal is stored, and when the parameter adaptive program of the high-speed signal is executed by a processor, the steps of the parameter adaptive method of the high-speed signal according to any one of the above embodiments are performed. The storage medium may be various media capable of storing program codes, such as a U disk, a removable hard disk, a read-only memory, a random access memory, a magnetic disk, or an optical disk.
The functions of the functional modules of the computer-readable storage medium according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the invention adaptively adjusts the parameters of the signal transmitting end and the signal receiving end of the mini SAS HD cable, enhances the driving capability of the transmitting end and the signal receiving capability of the receiving end, ensures that the requirement of the integrity of the link signal is met, replaces the customized high-cost cable with the low-cost common cable, and reduces the application cost of the system.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The present application provides a method, an apparatus, a device and a computer readable storage medium for parameter adaptive of high speed signals. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present application.