Method and apparatus for determining operation mode of re-timer chip

By using a pre-designed mapping table between working modes and terminal device information, the working mode of the Retimer chip is automatically switched, solving the problem of low efficiency in switching working modes of the Retimer chip and realizing real-time adjustment and efficient switching of signal quality.

CN116303206BActive Publication Date: 2026-03-27INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-24
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

The retimer chip has low efficiency in switching operating modes and lacks automatic adjustment mechanisms, resulting in untimely signal quality adjustment during communication.

Method used

By using a pre-designed mapping table between working modes and terminal device information, the Retimer chip's working mode is automatically switched, modification commands are sent via the I2C bus, a system crash detection process is performed, and the system is restarted via a hot restart command to re-establish the PCIe link connection, thereby achieving automatic adjustment of signal quality.

Benefits of technology

This improves the efficiency of switching operating modes of the Retimer chip, reduces redundant interaction processes and unnecessary consumption, and ensures real-time adjustment of signal quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116303206B_ABST
    Figure CN116303206B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a method and device for determining a working mode of a Retimer chip, a storage medium and an electronic device. The method comprises: obtaining target device information of a target terminal device, wherein the target terminal device is connected to a processor in a computer system through a Retimer chip; searching for a target working mode of the Retimer chip corresponding to the target device information from a pre-determined working mode table; in a case where the target working mode does not match a current working mode of the Retimer chip, replacing the target working mode with the current working mode to instruct the Retimer chip to adjust signal quality of the target terminal device according to the target working mode. Through the present application, the problem of low switching efficiency of the working mode of the Retimer chip in the related art is solved, and the effect of improving the switching efficiency of the working mode of the Retimer chip is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the computer field, in particular, to a Retimer chip working mode determination method and device. BACKGROUND

[0002] Under the background of the continuous promotion of high-speed serial computer expansion bus standards, the connection and communication efficiency between CPU and terminal equipment are continuously improved, and the need for signal integrity in the communication process follows. As an advanced signal conditioning technology, the Retimer chip makes an important contribution to compensating for channel consumption and eliminating the influence of jitter sources, effectively increasing the effective transmission distance of high-speed signals, and providing scalable high-performance device interconnection solutions for server, storage, and hardware accelerator application scenarios.

[0003] However, in the related art, the adjustment of the Retimer chip working mode relies on continuous refreshing of the firmware, which is time-consuming and inefficient, and lacks means for automatically adjusting the working mode. SUMMARY

[0004] Embodiments of the present application provide a Retimer chip working mode determination method and device to at least solve the problem of low Retimer chip working mode switching efficiency in the related art.

[0005] According to an embodiment of the present application, a Retimer chip working mode determination method is provided, characterized by comprising: obtaining target device information of a target terminal device, wherein the target terminal device is connected to a processor in a computer system through a Retimer chip; finding a target working mode of the Retimer chip corresponding to the target device information from a pre-determined working mode table, wherein the working mode table includes a correspondence between terminal devices and working modes of the Retimer chip; and in the case that the target working mode does not match the current working mode of the Retimer chip, replacing the target working mode with the current working mode to instruct the Retimer chip to adjust the signal quality of the target terminal device according to the target working mode.

[0006] In an example embodiment, in the case that the target working mode does not match the current working mode of the Retimer chip, the target working mode is replaced by the current working mode, comprising: in the case that the target working mode does not match the current working mode of the Retimer chip, sending a first modification instruction to the Retimer chip through an I2C bus to instruct the Retimer chip to modify the current working mode in a register to the target working mode in response to the first modification instruction, wherein the register is disposed in the Retimer chip.

[0007] In an example embodiment, before the target working mode is replaced by the current working mode in the case that the target working mode does not match the current working mode of the Retimer chip, the method further comprises: stalling a POST process of the computer system, wherein the POST process comprises a detection process of a motherboard in the computer system, and the Retimer chip is disposed in the computer system.

[0008] In an example embodiment, after the target working mode is replaced by the current working mode in the case that the target working mode does not match the current working mode of the Retimer chip, the method further comprises: in the case that a modification completion instruction returned by the Retimer chip is received, generating a hot restart instruction, wherein the modification completion instruction is used to indicate that the Retimer chip has modified the current working mode in the register to the target working mode; and restarting the computer system according to the hot restart instruction, wherein the Retimer chip is disposed in the computer system.

[0009] In an example embodiment, after the computer system is restarted according to the hot restart instruction, the method further comprises: re-establishing a connection between the Retimer chip and a high-speed serial computer expansion bus (PCIe) link; and re-training the PCIe link according to a preset working mode to re-establish a connection between the Retimer chip and the processor through the trained PCIe link.

[0010] In an example embodiment, before the target device information of the target terminal device is acquired, the method further comprises: in the case that it is determined that the computer system is in a powered-on state and the Retimer chip is in an initial working mode, instructing the Retimer chip to access the target terminal device for basic device information, wherein the initial working mode indicates that the Retimer chip is not in a working state.

[0011] In one example embodiment, before obtaining the target device information of the target terminal device, the method further comprises: training the PCIe link when it is determined that the computer system is in the booting state and the Retimer chip is in the initial working mode; and establishing the connection between the Retimer chip and the processor through the trained PCIe link.

[0012] According to another embodiment of the present application, a determination apparatus for working mode of a Retimer chip is provided, comprising: an obtaining module, configured to obtain target device information of a target terminal device, wherein the target terminal device is connected to a processor in a computer system through a Retimer chip; a searching module, configured to search for a target working mode of the Retimer chip corresponding to the target device information from a pre-determined working mode table, wherein the working mode table comprises a corresponding relationship between terminal devices and working modes of the Retimer chip; and a replacing module, configured to replace the target working mode with a current working mode of the Retimer chip when the target working mode does not match the current working mode, so as to instruct the Retimer chip to adjust signal quality of the target terminal device according to the target working mode.

[0013] In one example embodiment, the replacing module further comprises: a sending sub-module, configured to send a first modification instruction to the Retimer chip through an I2C bus when the target working mode does not match the current working mode of the Retimer chip, so as to instruct the Retimer chip to modify the current working mode in a register to the target working mode in response to the first modification instruction, wherein the register is arranged in the Retimer chip.

[0014] In one example embodiment, the replacing module further comprises: a stall sub-module, configured to stall a POST process of the computer system before replacing the target working mode with the current working mode of the Retimer chip when the target working mode does not match the current working mode, wherein the POST process comprises a detection process of a motherboard in the computer system, and the Retimer chip is arranged in the computer system.

[0015] In an example embodiment, the apparatus further comprises a generating module configured to generate a hot restart instruction in response to receiving a modification completion instruction returned by the Retimer chip, wherein the modification completion instruction is used to indicate that the Retimer chip has modified the current working mode in the register to the target working mode; and a restarting module configured to restart the computer system according to the hot restart instruction, wherein the Retimer chip is disposed in the computer system.

[0016] In an example embodiment, the apparatus further comprises a connecting module configured to re-establish a connection between the Retimer chip and a Peripheral Component Interconnect Express (PCIe) link after restarting the computer system according to the hot restart instruction; and a first training module configured to re-train the PCIe link according to a preset working mode, and re-establish a connection between the Retimer chip and the processor via the trained PCIe link.

[0017] In an example embodiment, the apparatus further comprises an indicating module configured to indicate the Retimer chip to access basic device information of a target terminal device in response to determining that the computer system is in a booting state and the Retimer chip is in an initial working mode before obtaining target device information of the target terminal device, wherein the initial working mode is used to indicate that the Retimer chip is not in a working state.

[0018] In an example embodiment, the apparatus further comprises a second training module configured to train the PCIe link in response to determining that the computer system is in a booting state and the Retimer chip is in an initial working mode before obtaining target device information of a target terminal device; and an establishing module configured to establish a connection between the Retimer chip and the processor via the trained PCIe link.

[0019] According to yet another embodiment of the present application, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program, wherein the computer program is configured to perform the steps in any of the method embodiments when executed.

[0020] According to yet another embodiment of the present application, an electronic device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to perform the steps in any of the method embodiments.

[0021] Through the application, by pre-designing the correspondence table of the working mode and the terminal device information, in the case that the current mode is not matched with the terminal device, the automatic switching can realize the purpose of adjusting the signal quality. Therefore, the problem of low efficiency of Retimer chip working mode switching in the related art can be solved, and the effect of improving the efficiency of Retimer chip working mode switching is achieved. BRIEF DESCRIPTION OF DRAWINGS

[0022] Figure 1 is a structural block diagram of a device for determining the working mode of the Retimer chip according to the embodiment of the application;

[0023] Figure 2 is a flow chart of the method for determining the working mode of the Retimer chip according to the embodiment of the application;

[0024] Figure 3 is a flow chart of a specific embodiment of the determination of the working mode of the Retimer chip according to the embodiment of the application;

[0025] Figure 4 is a structural schematic diagram of the Retimer chip connected with other devices according to the embodiment of the application;

[0026] Figure 5 is a structural block diagram of a device for determining the working mode of the Retimer chip according to the embodiment of the application. DETAILED DESCRIPTION

[0027] Hereinafter, the embodiments of the application will be described in detail with reference to the accompanying drawings and in combination with the embodiments.

[0028] It should be noted that the terms “first”, “second” and the like in the specification and claims of the application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence.

[0029] First, the related art involved in the application is described:

[0030] CPU: Central Processing Unit.

[0031] CPLD: Complex Programmable Logic Device.

[0032] VR: Voltage Regulator.

[0033] The method embodiments provided in the embodiments of the application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking the case of running on a mobile terminal as an example,Figure 1 This is a hardware structure block diagram of a mobile terminal for a method of determining the operating mode of a Retimer chip according to an embodiment of this application. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0034] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the method for determining the operating mode of the Retimer chip in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thus implementing the above-described method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0035] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.

[0036] This embodiment provides a method for determining the operating mode of a Retimer chip. Figure 2 This is a flowchart of a method for determining the operating mode of a Retimer chip according to an embodiment of this application, as shown below. Figure 2 As shown, the process includes the following steps:

[0037] Step S202, obtaining target device information of a target terminal device, wherein the target terminal device is connected to a processor in a computer system through a Retimer chip;

[0038] Step S204, searching for a target working mode of the Retimer chip corresponding to the target device information from a predetermined working mode table, wherein the working mode table includes a corresponding relationship between terminal devices and working modes of the Retimer chip;

[0039] Step S206, in a case where the target working mode does not match a current working mode of the Retimer chip, replacing the target working mode with the current working mode to instruct the Retimer chip to adjust signal quality of the target terminal device according to the target working mode.

[0040] The execution subject of the steps can be a Basic Input Output System (BIOS) or a device or system with terminal device detection capability, or other processing devices or processing units with similar processing capability, but is not limited thereto.

[0041] In the above embodiment, the determination manner of the working mode table includes, but is not limited to, a corresponding relationship between terminal devices and working modes determined through experimental test, a corresponding relationship determined according to terminal device models and Retimer chip working mode instructions, and the working mode table is stored in the BIOS after confirmation. The target device information of the target terminal device includes, but is not limited to, a model, working attributes, running limitation conditions, and the like of the terminal device.

[0042] By pre-designing a corresponding table of working modes and terminal device information, the purpose of adjusting signal quality can be achieved in a case where the current mode is not a working mode matched with the terminal device. Therefore, the problem of low Retimer chip working mode switching efficiency in the related art can be solved, and the effect of improving Retimer chip working mode switching efficiency is achieved.

[0043] In an example embodiment, in the case that the target working mode does not match the current working mode of the Retimer chip, the target working mode is replaced by the current working mode, including: in the case that the target working mode does not match the current working mode of the Retimer chip, sending a first modification instruction to the Retimer chip through the I2C bus to instruct the Retimer chip to modify the current working mode in the register to the target working mode in response to the first modification instruction, wherein the register is disposed in the Retimer chip. In the above embodiment, the Retimer chip is instructed to complete the modification of the working mode in the register by sending a modification instruction to the Retimer chip, avoiding a redundant interaction process and effectively improving the efficiency of the Retimer chip in adjusting the working mode.

[0044] In an example embodiment, before the target working mode is replaced by the current working mode of the Retimer chip in the case that the target working mode does not match the current working mode of the Retimer chip, the method further includes: stalling the POST process of the computer system, wherein the POST process includes a detection process of a motherboard in the computer system, and the Retimer chip is disposed in the computer system. In the above embodiment, the detection object of the POST process includes a register in a processor, and the detection method includes, but is not limited to, shifting the value in the register and comparing it with a previously determined answer, directly comparing the value in the register with a preset value, etc. By stalling the POST process of the computer system to complete the adjustment of the working mode of the Retimer chip, multiple power-on and power-off tests to verify the adjustment effect are avoided, and the efficiency of the Retimer chip in adjusting the working mode is effectively improved.

[0045] In an example embodiment, in the case that the target working mode does not match the current working mode of the Retimer chip, after the target working mode is replaced by the current working mode, the method further comprises: in the case that a modification completion instruction returned by the Retimer chip is received, generating a hot restart instruction, wherein the modification completion instruction is used to indicate that the Retimer chip has modified the current working mode in the register to the target working mode; and restarting the computer system according to the hot restart instruction, wherein the Retimer chip is arranged in the computer system. In the example embodiment, the restarting includes re-training the PCIe link, and the training of the PCIe link includes but is not limited to adjusting the communication rate between the CPU and the terminal device, the channel width, the transmission and reception parameters, etc., and the process does not re-power the Retimer, effectively avoiding the loss of the content of the working mode modification of the Retimer chip, reducing the necessary consumption, and greatly improving the adjustment efficiency of the working mode of the Retimer chip.

[0046] In an example embodiment, after the computer system is restarted according to the hot restart instruction, the method further comprises: re-establishing the connection between the Retimer chip and the high-speed serial computer expansion bus PCIe link; and re-training the PCIe link according to the preset working mode, so as to re-establish the connection between the Retimer chip and the processor through the trained PCIe link. In the example embodiment, the connection between the Retimer chip and the processor is established through the re-training of the PCIe link, and the modified working mode of the Retimer chip is applied in real time, effectively improving the adjustment efficiency of the working mode of the Retimer chip.

[0047] In an example embodiment, before the target device information of the target terminal device is acquired, the method further comprises: in the case that it is determined that the computer system is in a booting state and the Retimer chip is in an initial working mode, instructing the Retimer chip to access the basic device information of the target terminal device, wherein the initial working mode is used to indicate that the Retimer chip is not in a working state. In the example embodiment, the initial working mode includes a mode in which the processor accesses the basic information of the terminal device and the working state of the Retimer chip does not affect the communication effect. By accessing the terminal device in the initial working mode, the adjustment of the working mode of the Retimer chip can be completed at the same time as the acquisition of the terminal device information, effectively improving the adjustment efficiency of the working mode of the Retimer chip.

[0048] In one exemplary embodiment, before acquiring the target device information of the target terminal device, the method further includes: training the PCIe link when it is determined that the computer system is powered on and the Retimer chip is in its initial operating mode; and establishing a connection between the Retimer chip and the processor through the trained PCIe link. In the above embodiment, by retraining the PCIe link, the connection between the Retimer chip and the processor is established, and the modified Retimer chip operating mode is applied in real time, effectively improving the efficiency of the Retimer chip's operating mode adjustment.

[0049] The present invention will now be described with reference to specific embodiments, taking the working mode adjustment scene of the Parade PS8926 as an example, to illustrate this specific embodiment, which mainly includes the following steps (such as...). Figure 3 ):

[0050] S302: After the computer system is powered on, the Retimer maintains the default working mode and performs a Retimer pre-boot.

[0051] S304: During the Retimer pre-boot process, the BIOS identifies the specific model of the connected terminal device;

[0052] S306: The BIOS looks up the operating mode table to determine whether the operating mode of the Retimer chip needs to be adjusted. If so, it pauses the POST process (Power On Self Test) and sends a command to the Retimer chip to modify the operating mode via the I2C link. If not, it continues the POST process.

[0053] S308: After the Retimer chip completes the modification of the operating mode, it re-establishes the PCIe connection with other devices through a hot reboot. Figure 4 (This shows the connection between the Retimer chip, the CPU, and terminal devices, etc.) and then the device is powered on.

[0054] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0055] A determination apparatus of a Retimer chip working mode is also provided in the embodiment. The apparatus is used to implement the above-mentioned embodiments and preferred embodiments, and will not be described again. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, implementation in hardware or a combination of software and hardware is also possible and contemplated.

[0056] Figure 5 is a structural block diagram of the determination apparatus of the Retimer chip working mode according to the embodiment of the application, as shown in Figure 5 The apparatus comprises:

[0057] An acquisition module 52 is configured to acquire target device information of a target terminal device, wherein the target terminal device is connected to a processor in a computer system through a Retimer chip.

[0058] A searching module 54 is configured to search for a target working mode of the Retimer chip corresponding to the target device information from a predetermined working mode table, wherein the working mode table comprises a corresponding relationship between terminal devices and working modes of the Retimer chip.

[0059] A replacing module 56 is configured to replace the target working mode with a current working mode of the Retimer chip in a case where the target working mode does not match the current working mode, so as to instruct the Retimer chip to adjust signal quality of the target terminal device according to the target working mode.

[0060] In the above-mentioned embodiments, the determination manner of the working mode table includes but is not limited to a corresponding relationship between terminal devices and working modes determined through experimental tests, a corresponding relationship determined according to terminal device models and Retimer chip working mode instructions, and the working mode table is stored in BIOS after confirmation. The target device information of the target terminal device includes but is not limited to a model, working attributes, running limitation conditions and the like of the terminal device. By pre-designing a corresponding table of working modes and terminal device information, automatic switching is realized in a case where the current mode is not a working mode matched with the terminal device, so as to adjust signal quality. Therefore, the problem of poor Retimer chip working mode switching efficiency can be solved, and the effect of improving Retimer chip working mode switching efficiency is achieved.

[0061] In an example embodiment, the replacement module further comprises a sending sub-module configured to send a first modification instruction to the Retimer chip through the I2C bus to instruct the Retimer chip to modify the current working mode in the register to the target working mode in response to the first modification instruction, when the target working mode does not match the current working mode of the Retimer chip, wherein the register is disposed in the Retimer chip. In the above embodiment, the Retimer chip is instructed to modify the working mode in the register by sending a modification instruction to the Retimer chip, thereby avoiding a redundant interaction process and effectively improving the efficiency of adjusting the working mode of the Retimer chip.

[0062] In an example embodiment, the replacement module further comprises a shutdown sub-module configured to shut down a POST process of the computer system before replacing the target working mode with the current working mode of the Retimer chip, when the target working mode does not match the current working mode of the Retimer chip, wherein the POST process comprises a detection process of a motherboard in the computer system, and the Retimer chip is disposed in the computer system. In the above embodiment, the detection object in the POST process includes a register in a processor, and the detection method includes, but is not limited to, shifting the value in the register and comparing it with a previously determined answer, directly comparing the value in the register with a preset value, etc. The POST process of the computer system is shut down to adjust the working mode of the Retimer chip, thereby avoiding multiple power-on and shutdown processes to verify the adjustment effect and effectively improving the efficiency of adjusting the working mode of the Retimer chip.

[0063] In an example embodiment, the device further comprises a generation module configured to generate a hot restart instruction when a modification completion instruction returned by the Retimer chip is received, wherein the modification completion instruction indicates that the Retimer chip has modified the current working mode in the register to the target working mode; and a restart module configured to restart the computer system according to the hot restart instruction, wherein the Retimer chip is disposed in the computer system. In the above embodiment, the restart includes re-training a PCIe link, and the re-training of the PCIe link includes, but is not limited to, adjusting the communication rate between a CPU and a terminal device, the channel width, the sending and receiving parameters, etc. The process does not re-power the Retimer, thereby effectively avoiding the loss of the content of the modified working mode of the Retimer chip, reducing unnecessary consumption, and greatly improving the adjustment efficiency of the working mode of the Retimer chip.

[0064] In an example embodiment, the apparatus further comprises a connection module configured to reestablish the connection between the Retimer chip and the high-speed serial computer expansion bus (PCIe) link after the computer system is restarted according to the hot restart instruction; and a first training module configured to retrain the PCIe link according to the preset working mode, and reestablish the connection between the Retimer chip and the processor through the trained PCIe link. In the above embodiment, the connection between the Retimer chip and the processor is established through the retraining of the PCIe link, and the modified working mode of the Retimer chip is applied in real time, thereby effectively improving the working mode adjustment efficiency of the Retimer chip.

[0065] In an example embodiment, the apparatus further comprises an indication module configured to instruct the Retimer chip to access the basic device information of the target terminal device when it is determined that the computer system is in a booting state and the Retimer chip is in an initial working mode before the target device information of the target terminal device is acquired, wherein the initial working mode indicates that the Retimer chip is not in a working state. In the above embodiment, the initial working mode includes a mode in which the processor accesses the basic information of the terminal device and the working state of the Retimer chip does not affect the communication effect. By accessing the terminal device in the initial working mode, the adjustment of the working mode of the Retimer chip can be completed at the same time when the terminal device information is acquired, thereby effectively improving the working mode adjustment efficiency of the Retimer chip.

[0066] In an example embodiment, the apparatus further comprises a second training module configured to train the PCIe link when it is determined that the computer system is in a booting state and the Retimer chip is in an initial working mode before the target device information of the target terminal device is acquired; and an establishment module configured to establish the connection between the Retimer chip and the processor through the trained PCIe link. In the above embodiment, the restarting includes retraining the PCIe link, and the training of the PCIe link includes but is not limited to adjusting the communication rate, channel width, transmission and reception parameters, etc. between the CPU and the terminal device, and the process does not re-power the Retimer, thereby effectively avoiding the loss of the content of the modified working mode of the Retimer chip, reducing the necessary consumption, and greatly improving the adjustment efficiency of the working mode of the Retimer chip.

[0067] It should be noted that the above various modules can be implemented by software or hardware, and for the latter, the following implementation manners can be used, but are not limited thereto: the above modules are located in the same processor; or the above various modules are located in different processors in any combination.

[0068] Through the application, by pre-designing the correspondence table of the working mode and the terminal device information, in the case that the current mode is not matched with the terminal device, automatic switching can be realized to achieve the purpose of adjusting the signal quality. Therefore, the problem of low efficiency of Retimer chip working mode switching in the related art can be solved, and the effect of improving the efficiency of Retimer chip working mode switching is achieved.

[0069] Embodiments of the present application also provide a computer readable storage medium, which stores a computer program, wherein the computer program is configured to execute the steps in any of the method embodiments when running.

[0070] In the embodiment, the computer readable storage medium can be configured to store a computer program for executing the following steps:

[0071] S1, obtaining target device information of a target terminal device, wherein the target terminal device is connected to a processor in a computer system through a Retimer chip;

[0072] S2, searching for a target working mode of the Retimer chip corresponding to the target device information from a predetermined working mode table, wherein the working mode table includes the correspondence between the terminal device and the working mode of the Retimer chip;

[0073] S3, in the case that the target working mode is not matched with the current working mode of the Retimer chip, replacing the target working mode with the current working mode, to instruct the Retimer chip to adjust the signal quality of the target terminal device according to the target working mode.

[0074] In an exemplary embodiment, the computer readable storage medium can include, but is not limited to, a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and various media that can store computer programs.

[0075] The embodiment of the present application further provides an electronic device, comprising a memory and a processor, the memory storing a computer program, and the processor is configured to run the computer program to execute the steps in any of the method embodiments.

[0076] In an example embodiment, the electronic device further comprises a transmission device connected with the processor and an input and output device connected with the processor.

[0077] In an example embodiment, the processor is configured to execute the following steps through the computer program:

[0078] S1, obtaining target device information of a target terminal device, wherein the target terminal device is connected with a processor in a computer system through a Retimer chip;

[0079] S2, searching for a target working mode of the Retimer chip corresponding to the target device information from a predetermined working mode table, wherein the working mode table comprises a corresponding relationship between terminal devices and working modes of the Retimer chip;

[0080] S3, in a case where the target working mode does not match a current working mode of the Retimer chip, replacing the target working mode with the current working mode to instruct the Retimer chip to adjust signal quality of the target terminal device according to the target working mode.

[0081] The specific examples in the embodiment can refer to the examples described in the above embodiments and example embodiments, which will not be repeated here.

[0082] Obviously, those skilled in the art should understand that the modules or steps of the present application described above can be realized by general computing devices, which can be concentrated on a single computing device or distributed on a network composed of multiple computing devices, and they can be realized by program codes executable by the computing devices, so that they can be stored in storage devices and executed by the computing devices, and in some cases, the steps shown or described can be executed in different order, or they can be manufactured into individual integrated circuit modules, or multiple modules or steps can be manufactured into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.

[0083] The above descriptions are only the preferred embodiments of the present application, and are not intended to limit the present application. The present application can have various modifications and changes for those skilled in the art. Any modifications, equivalent replacements, improvements, etc. within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for determining the operating mode of a Retimer chip, characterized in that, include: Obtain target device information of the target terminal device, wherein the target terminal device is connected to the processor in the computer system through a Retimer chip; The target operating mode of the Retimer chip corresponding to the target device information is found from a pre-determined operating mode table, wherein the operating mode table includes the correspondence between the terminal device and the operating mode of the Retimer chip; If the target operating mode does not match the current operating mode of the Retimer chip, the target operating mode is replaced with the current operating mode to instruct the Retimer chip to adjust the signal quality of the target terminal device according to the target operating mode; If the target operating mode does not match the current operating mode of the Retimer chip, after replacing the target operating mode with the current operating mode, the method further includes: upon receiving a modification completion instruction returned by the Retimer chip, generating a hot restart instruction, wherein the modification completion instruction indicates that the Retimer chip has modified the current operating mode in the register to the target operating mode; and restarting the computer system according to the hot restart instruction, wherein the Retimer chip is configured in the computer system. After restarting the computer system according to the hot reboot command, the method further includes: re-establishing the connection between the Retimer chip and the high-speed serial computer expansion bus PCIe link; retraining the PCIe link according to a preset working mode, so as to re-establish the connection between the Retimer chip and the processor through the trained PCIe link; Training the PCIe link includes adjusting the communication rate, channel width, and transmission and reception parameters between the processor and the terminal device.

2. The method according to claim 1, characterized in that, If the target operating mode does not match the current operating mode of the Retimer chip, the target operating mode is replaced with the current operating mode, including: If the target operating mode does not match the current operating mode of the Retimer chip, a first modification instruction is sent to the Retimer chip via the I2C bus to instruct the Retimer chip to respond to the first modification instruction and modify the current operating mode in the register to the target operating mode, wherein the register is set in the Retimer chip.

3. The method according to claim 1 or 2, characterized in that, Before replacing the target operating mode with the current operating mode when the target operating mode does not match the current operating mode of the Retimer chip, the method further includes: The POST process for the computer system is halted, wherein the POST process includes a detection process for the motherboard in the computer system, and the Retimer chip is installed in the computer system.

4. The method according to claim 1, characterized in that, Before obtaining the target device information of the target terminal device, the method further includes: If it is determined that the computer system is powered on and the Retimer chip is in its initial operating mode, the Retimer chip is instructed to access the basic device information of the target terminal device, wherein the initial operating mode indicates that the Retimer chip is not in operation.

5. The method according to claim 1, characterized in that, Before obtaining the target device information of the target terminal device, the method further includes: Training of the PCIe link is performed under the condition that the computer system is powered on and the Retimer chip is in its initial working mode. The connection between the Retimer chip and the processor is established through the trained PCIe link.

6. A device for determining the operating mode of a Retimer chip, characterized in that, include: The acquisition module is used to acquire target device information of the target terminal device, wherein the target terminal device is connected to the processor in the computer system through a retimer chip; The lookup module is used to look up the target operating mode of the Retimer chip corresponding to the target device information from a pre-determined operating mode table, wherein the operating mode table includes the correspondence between the terminal device and the operating mode of the Retimer chip; The replacement module is used to replace the target operating mode with the current operating mode when the target operating mode does not match the current operating mode of the Retimer chip, so as to instruct the Retimer chip to adjust the signal quality of the target terminal device according to the target operating mode; A generation module is used to generate a hot restart instruction upon receiving a modification completion instruction returned by the Retimer chip, wherein the modification completion instruction indicates that the Retimer chip has modified the current working mode in the register to the target working mode; and restarts the computer system according to the hot restart instruction, wherein the Retimer chip is installed in the computer system; The connection module is used to re-establish the connection between the Retimer chip and the high-speed serial computer expansion bus PCIe link after restarting the computer system according to the hot restart instruction; and to retrain the PCIe link according to a preset working mode so as to re-establish the connection between the Retimer chip and the processor through the trained PCIe link. The device is also used to train the PCIe link by adjusting the communication rate, channel width, and transmission and reception parameters between the processor and the terminal device.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of claims 1 to 5.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Interconnect retimer enhancement

    CN105793715A

  • Retimer balanced configuration method, system and device for reducing time delay

    CN115296965A