Link rate switching method and bare chip
By resetting the interface rate to a lower rate after the high-speed link is established, and performing rate switching at the reduced rate, the problem of long abnormal recovery time and low success rate of rate switching in high-speed link establishment mode is solved, and a more efficient Efficient data transfer.
Patent Information
- Application Number
- CN202310241242.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-01
- Publication Date
- 2024-09-03
AI Technical Summary
In the high-speed link establishment mode, when the rate switching is abnormal, the speed switching recovery time in the existing technology is long, which affects the user experience, and the success rate of repeatedly sending speed switching requests at the original rate is low.
After the high-speed link is established, reset the interface rate to a lower rate, and then switch the rate at the reduced rate to improve the success rate of data transmission. Specific methods include resetting the interface rate between the master device and the slave device, ensuring that the reset rate is less than the original rate, and implementing rate reset through differential signal transmission.
It significantly improves the success rate of rate switching, reduces abnormal recovery time, avoids the re-chain process involving software, and improves user experience and speed switching efficiency.
Smart Images

Figure CN118590182A
Abstract
Description
Technical Field
[0001] The present application relates to the field of chip technology, and in particular to a link rate switching method and a bare chip. Background Art
[0002] When the Unified Protocol (UniPro) evolved from 1.8 to 2.0, high-speed link start up (HS LSS) was added, that is, communication can be carried out in high-speed mode after link establishment is completed. When a rate switching exception occurs in high-speed mode, the method for recovering from the rate switching exception is to repeatedly send a rate switching request at the original rate. If the rate switching still fails, the interruption needs to be reported to the software, and the high-speed link is reestablished through the software before the rate switching is performed.
[0003] However, when software is involved, the recovery time of rate switching anomalies is long, which may be in seconds, affecting the user experience. Moreover, in high-speed mode, when a rate switching anomaly occurs, the rate switching request is repeatedly sent at the original rate to recover from the anomaly, and the recovery probability is low. Summary of the invention
[0004] The embodiments of the present application provide a link rate switching method and a bare chip, which can improve the probability of recovering from rate switching anomalies after high-speed link establishment.
[0005] In order to achieve the above purpose, the embodiment of the present application adopts the following technical solution:
[0006] In a first aspect, a method for switching the rate of a link is provided, which is applied to a first bare chip, the method comprising: establishing a high-speed link between a first interface and a second interface, the first interface comprising a link layer circuit of the first bare chip, and the second interface comprising a link layer circuit of the second bare chip; when the rate switching between the first interface and the second interface is abnormal, resetting the first interface rate of the first interface, and instructing the second bare chip to reset the second interface rate of the second interface, wherein the first interface rate after the reset is less than the first interface rate before the reset, and the second interface rate after the reset is less than the second interface rate before the reset; performing the rate switching between the first interface and the second interface with the second bare chip at the first interface rate after the reset.
[0007] Among them, the first bare chip can be a master device, and the second bare chip can be a slave device, for example, the first bare chip is used to execute the function of a central processing unit (CPU), and the second bare chip is a storage device. Compared with the traditional high-speed link establishment, when the first bare chip performs the rate switching process at the original rate, the rate switching fails and the link needs to be re-established. In this application, when a rate switching anomaly occurs after the high-speed link is established, the rate can be reset and then the rate switching can be attempted. When the first interface rate after the reset is less than the first interface rate before the reset, and the second interface rate after the reset is less than the second interface rate before the reset, that is, after the interface is decelerated, the rate switching is performed. Since the clock sampling frequency of the link layer circuit (transmitting circuit and receiving circuit) in the bare chip is low after the deceleration, the success rate of data transmission is high, and the success rate of the rate switching again will be correspondingly improved.
[0008] In a possible design, the first interface rate after reset and the second interface rate after reset are both the lowest interface rates among the multiple interface rates. For example, the first interface rate before reset is HS-G5 rateB, and the first interface rate after reset is HS-G1 rateB. That is, performing rate switching at the lowest interface rate can improve the success rate of rate switching. Alternatively, the interface rate after reset is HS-G1 rateA, and rate switching can also be performed after reducing the rate to improve the success rate of rate switching.
[0009] In a possible design, the first interface rate after reset is in a multiple frequency relationship with the first interface rate before reset, and the second interface rate after reset is in a multiple frequency relationship with the second interface rate before reset. The first interface rate after reset is in a multiple frequency relationship with the first interface rate before reset, which is equivalent to a rate reset at the same rate level (rate). At this time, the phase locked loop (PLL) in the first interface does not need to be re-phase-locked, and the efficiency of the rate switching of the first interface is also high. Similarly, when the second interface rate after reset is in a multiple frequency relationship with the second interface rate before reset, the phase locked loop PLL in the second interface does not need to be re-phase-locked, and the efficiency of the rate switching of the second interface is also high.
[0010] In one possible design, the link layer circuit of the first bare chip includes a first transmitting circuit and a first receiving circuit, the link layer circuit of the second bare chip includes a second transmitting circuit and a second receiving circuit, and resetting the first interface rate of the first interface and instructing the second bare chip to reset the second interface rate of the second interface includes: resetting the rate of the first transmitting circuit of the first bare chip and instructing the second bare chip to reset the rates of the second transmitting circuit and the second receiving circuit of the second bare chip; and resetting the rate of the first receiving circuit of the first bare chip according to the instruction of the second bare chip.
[0011] Exemplarily, the first die resets the interface rate of the first transmitting circuit of the first die, and sends a first reset message to the second receiving circuit of the second die through the first transmitting circuit of the first die, the first reset message is used to instruct the second die to reset the rate of the second receiving circuit of the second die; when the first die determines that the rate reset of the second receiving circuit of the second die is complete, the first die sends a second reset message to the second receiving circuit of the second die through the first transmitting circuit of the first die, the second reset message is used to instruct the second die to reset the rate of the second transmitting circuit; the first receiving circuit of the first die receives a third reset message sent by the second transmitting circuit of the second die, the third reset message is used to instruct the first die to reset the rate of the first receiving circuit of the first die; the first die resets the rate of the first receiving circuit.
[0012] That is, the rates of the first transmitting circuit and the first receiving circuit of the first bare chip and the second transmitting circuit and the second receiving circuit of the second bare chip are all reduced, so as to perform rate switching at the reduced rates, thereby improving the success rate of rate switching.
[0013] In one possible design, the first transmitting circuit includes a transmitting circuit of a unified protocol layer and a transmitting circuit of a physical layer of the first bare chip, and the interface between the transmitting circuit of the unified protocol layer of the first bare chip and the transmitting circuit of the physical layer of the first bare chip includes a reset port; resetting the rate of the first transmitting circuit of the first bare chip includes: resetting the rate of the transmitting circuit of the unified protocol layer of the first bare chip and the transmitting circuit of the physical layer of the first bare chip according to the level indication of the reset port.
[0014] Among them, the unified protocol layer can be understood as UniPro, and the physical layer can be understood as M-PHY. The unified protocol layer can also be called the data link layer, and both the unified protocol layer and the physical layer belong to the link layer in the UFS protocol stack. The rate of the first sending circuit can be understood as the rate of the sending circuit including the unified protocol layer circuit and the physical layer circuit. The present application may add a reset port to the interface between the sending circuit of the unified protocol layer and the sending circuit of the physical layer. For example, when the level of the reset port is high, it may indicate that the rate of the sending circuit of the unified protocol layer and the sending circuit of the physical layer in the first interface is reset. The implementation of the rate reset of the first receiving circuit is similar to that of the first sending circuit.
[0015] In one possible design, the rate at which the second die is instructed to reset the second transmitting circuit and the second receiving circuit of the second die includes: sending a first high-level signal to the second die through a differential line between the first transmitting circuit and the second receiving circuit, and the duration of the first high-level signal is used to indicate the rate at which the second die resets the second transmitting circuit and the second receiving circuit; the rate at which the first receiving circuit of the first die is reset according to the instruction of the second die includes: receiving a second high-level signal sent by the second die through a differential line between the receiving circuit and the second transmitting circuit, and the duration of the second high-level signal is used to indicate the rate at which the first die resets the first receiving circuit.
[0016] That is, in the present application, the duration of the high-level state of the differential line between the physical layer circuits between the two bare chips can be used to instruct the other end to reset the rate of the sending circuit and the receiving circuit. For example, in order to distinguish the rate reset message in the high-speed link establishment, when the duration of the high-level signal of the differential line is greater than the threshold, it can be indicated to switch the rate to the lowest rate at the same rate. When the duration of the high-level signal of the differential line is less than the threshold, it can be indicated to switch the rate to the lowest rate of different rates. In this way, by distinguishing it from the rate reset in the high-speed link establishment, when a rate switching abnormality occurs after the high-speed link establishment, the rate can be reset and then the rate switching can be attempted, which can improve the success rate of the rate switching.
[0017] In a second aspect, a method for switching the rate of a link is provided, which is applied to a second bare chip, and the method includes: establishing a high-speed link between a first interface and a second interface, the first interface including a link layer circuit of the first bare chip, and the second interface including a link layer circuit of the second bare chip; resetting the second interface rate of the second interface according to an instruction of the first bare chip, the second interface rate after the reset is less than the second interface rate before the reset; and performing rate switching between the second interface and the first interface with the first bare chip at the second interface rate after the reset.
[0018] The beneficial effects of the second aspect can refer to the description of the first aspect. The first die of the second aspect can be a master device, and the second die can be a slave device, that is, the first die is a host in the embodiment of the present application, and the second die is a device in the embodiment of the present application.
[0019] In one possible design, the second interface rate after reset is the lowest interface rate among the multiple interface rates.
[0020] In one possible design, the second interface rate after reset is a multiple of the second interface rate before reset.
[0021] In one possible design, the link layer circuit of the first bare chip includes a first transmitting circuit and a first receiving circuit, the link layer circuit of the second bare chip includes a second transmitting circuit and a second receiving circuit, and resetting the second interface rate of the second interface according to the instruction of the first bare chip includes: resetting the rates of the second receiving circuit and the second transmitting circuit according to the instruction of the first bare chip; the method also includes: instructing the first bare chip to reset the rate of the first receiving circuit.
[0022] In one possible design, the second transmitting circuit includes a transmitting circuit of a unified protocol layer and a transmitting circuit of a physical layer of the second bare chip, and the interface between the transmitting circuit of the unified protocol layer of the second bare chip and the transmitting circuit of the physical layer of the second bare chip includes a reset port; resetting the rate of the second transmitting circuit includes: resetting the rate of the transmitting circuit of the unified protocol layer of the second bare chip and the transmitting circuit of the physical layer of the second bare chip according to the level indication of the reset port.
[0023] In one possible design, the rate at which the second receiving circuit and the second transmitting circuit are reset according to the instruction of the first bare chip includes: receiving a first high-level signal sent by the first bare chip through a differential line between the second receiving circuit and the first transmitting circuit, and the duration of the first high-level signal is used to indicate the rate at which the second bare chip resets the second receiving circuit and the second transmitting circuit; indicating the rate at which the first bare chip resets the first receiving circuit includes: sending a second high-level signal to the first bare chip through the differential line between the second transmitting circuit and the first receiving circuit, and the duration of the second high-level signal is used to indicate the rate at which the first bare chip resets the first receiving circuit.
[0024] According to a third aspect, a bare chip is provided. When the bare chip is a first bare chip, the first bare chip includes a link establishment unit for establishing a high-speed link between a first interface and a second interface, the first interface includes a link layer circuit of the first bare chip, and the second interface includes a link layer circuit of the second bare chip; a reset unit for resetting the first interface rate of the first interface when the rate switching between the first interface and the second interface is abnormal, and instructing the second bare chip to reset the second interface rate of the second interface, wherein the first interface rate after the reset is less than the first interface rate before the reset, and the second interface rate after the reset is less than the second interface rate before the reset; and a rate switching unit for performing rate switching between the first interface and the second interface with the second bare chip at the first interface rate after the reset.
[0025] In a possible design, the first interface rate after reset and the second interface rate after reset are both the lowest interface rates among the multiple interface rates.
[0026] In one possible design, the first interface rate after reset is in a multiple frequency relationship with the first interface rate before reset, and the second interface rate after reset is in a multiple frequency relationship with the second interface rate before reset.
[0027] In one possible design, the link layer circuit of the first bare chip includes a first transmitting circuit and a first receiving circuit, and the link layer circuit of the second bare chip includes a second transmitting circuit and a second receiving circuit, and the reset unit is used to: reset the rate of the first transmitting circuit of the first bare chip, and instruct the second bare chip to reset the rates of the second transmitting circuit and the second receiving circuit of the second bare chip; reset the rate of the first receiving circuit of the first bare chip according to the instruction of the second bare chip.
[0028] In one possible design, the first transmitting circuit includes a transmitting circuit of a unified protocol layer and a transmitting circuit of a physical layer of the first bare chip, and the interface between the transmitting circuit of the unified protocol layer of the first bare chip and the transmitting circuit of the physical layer of the first bare chip includes a reset port; the reset unit is used to reset the rate of the transmitting circuit of the unified protocol layer of the first bare chip and the transmitting circuit of the physical layer of the first bare chip according to the level indication of the reset port.
[0029] In one possible design, the reset unit is used to send a first high-level signal to the second bare chip through a differential line between a first transmitting circuit and a second receiving circuit, and the duration of the first high-level signal is used to indicate the rate at which the second bare chip resets the second transmitting circuit and the second receiving circuit; and receive a second high-level signal sent by the second bare chip through a differential line between the receiving circuit and the second transmitting circuit, and the duration of the second high-level signal is used to indicate the rate at which the first bare chip resets the first receiving circuit.
[0030] In a fourth aspect, a bare chip is provided. When the bare chip is a second bare chip, the second bare chip includes: a link establishment unit, which is used for a high-speed link between a first interface and a second interface, the first interface includes a link layer circuit of the first bare chip, and the second interface includes a link layer circuit of the second bare chip; a reset unit, which is used to reset the second interface rate of the second interface according to an instruction of the first bare chip, and the second interface rate after reset is less than the second interface rate before reset; and a rate switching unit, which is used to perform rate switching between the second interface and the first interface with the first bare chip at the second interface rate after reset.
[0031] In one possible design, the second interface rate after reset is the lowest interface rate among the multiple interface rates.
[0032] In one possible design, the second interface rate after reset is a multiple of the second interface rate before reset.
[0033] In one possible design, the link layer circuit of the first bare chip includes a first transmitting circuit and a first receiving circuit, the link layer circuit of the second bare chip includes a second transmitting circuit and a second receiving circuit, and the reset unit is used to: reset the rate of the second receiving circuit and the second transmitting circuit according to the instruction of the first bare chip; the reset unit is also used to: instruct the first bare chip to reset the rate of the first receiving circuit.
[0034] In one possible design, the second transmitting circuit includes a transmitting circuit of a unified protocol layer and a transmitting circuit of a physical layer of the second bare chip, and the interface between the transmitting circuit of the unified protocol layer of the second bare chip and the transmitting circuit of the physical layer of the second bare chip includes a reset port; the reset unit is used to reset the rate of the transmitting circuit of the unified protocol layer of the second bare chip and the transmitting circuit of the physical layer of the second bare chip according to the level indication of the reset port.
[0035] In one possible design, the reset unit is used to: receive a first high-level signal sent by the first bare chip through a differential line between the second receiving circuit and the first transmitting circuit, and the duration of the first high-level signal is used to indicate the rate at which the second bare chip resets the second receiving circuit and the second transmitting circuit; send a second high-level signal to the first bare chip through the differential line between the second transmitting circuit and the first receiving circuit, and the duration of the second high-level signal is used to indicate the rate at which the first bare chip resets the first receiving circuit.
[0036] In a fifth aspect, a bare chip is provided, the bare chip comprising: an interface, a memory and a processor. The memory and the processor are coupled. The memory is used to store computer program code, and the computer program code includes computer instructions. The interface is used to receive data and send data. When the processor executes the computer instructions, the bare chip performs the rate switching method of any link provided in the first aspect or its corresponding possible design.
[0037] In a sixth aspect, a bare chip is provided, the bare chip comprising: an interface, a memory and a processor. The memory and the processor are coupled. The memory is used to store computer program code, and the computer program code includes computer instructions. The interface is used to receive data and send data. When the processor executes the computer instructions, the bare chip performs the rate switching method of any link provided in the second aspect or its corresponding possible design.
[0038] In a seventh aspect, a device is provided, which is included in an electronic device, and has the function of implementing the bare chip behavior in any of the above aspects and any possible implementation methods. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above functions. For example, a link establishment module or unit, a reset module or unit, and a speed cutting module or unit, etc.
[0039] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the link rate switching method in any of the above aspects and any possible implementation methods.
[0040] In a ninth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a computer or a processor, the computer or the processor executes the link rate switching method in any of the above aspects and any possible implementation methods.
[0041] It can be understood that any of the bare chips, devices, computer-readable storage media or computer program products provided above can be applied to the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods and will not be repeated here.
[0042] These and other aspects of the present application will become more apparent from the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A schematic diagram of a die-to-die interconnection interface using SerDes provided in an embodiment of the present application;
[0044] Figure 2 A schematic diagram of a die-to-die interconnection interface using SerDes and differential signal transmission provided in an embodiment of the present application;
[0045] Figure 3 A schematic diagram of a protocol stack of a UFS protocol provided in an embodiment of the present application;
[0046] Figure 4 A schematic diagram of a high-speed mode speed-cutting abnormal recovery process for high-speed link establishment under the UniPro 2.0 protocol provided in an embodiment of the present application;
[0047] Figure 5 A schematic diagram of a link rate switching method flow chart provided in an embodiment of the present application;
[0048] Figure 6 A schematic diagram of a link rate switching method flow chart provided in an embodiment of the present application;
[0049] Figure 7 A schematic diagram of a high-speed link establishment process provided in an embodiment of the present application;
[0050] Figure 8 An example diagram of a linereset message provided in an embodiment of the present application;
[0051] Fig. 9 A schematic diagram of the structure of a bare chip provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] For ease of understanding, some examples of concepts related to the embodiments of the present application are provided for reference, as shown below:
[0053] Unified Protocol (UniPro): It can be understood as a layered protocol defined for the interconnection between devices and components within consumer electronic products such as mobile devices. It is applicable to devices such as application processors, coprocessors, modems, and data transmission such as control signals, bulk data transmission, and packetized streams.
[0054] High speed link start up (HS LSS): On a system-on-a-chip (SoC), dies can be connected via ultra-short distance links to achieve high data rate connections between dies.
[0055] Serializer and deserializer (SerDes): is a mainstream time-division multiplexing, point-to-point serial communication technology. That is, multiple low-speed parallel signals are converted into high-speed serial signals at the sending end, and then passed through the transmission medium. Finally, the high-speed serial signals are converted back into low-speed parallel signals at the receiving end. This point-to-point serial communication technology makes full use of the channel capacity of the transmission medium, reduces the number of transmission channels and device pins required, and increases the signal transmission speed, thereby greatly reducing communication costs.
[0056] Rate switching: can be referred to as rate cutting. The rate switching in this application can be understood as the update of rate-related device parameters in the sending circuit and the receiving circuit.
[0057] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0058] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
[0059] Chiplet system, also known as chip system, is a combination of dies with different functions, and in a sense, it is also a combination of different IPs. Starting from the system side, the complex functions are first decomposed, and then a variety of dies with single specific functions that can be modularly assembled with each other are developed, such as data storage, computing, signal processing, data flow management and other functions, and finally a chip network of chips is established based on this. Alternatively, it can also be understood as a mode of packaging multiple module chips with the underlying basic chip through die-to-die internal interconnection technology to form a multifunctional heterogeneous System in Packages (SiPs) chip.
[0060] The chiplet system in the present application may also be referred to as a chiplet system or a core particle system. In a chiplet system, a bare die may also be referred to as a chiplet, and in a core particle system, a bare die may also be referred to as a core particle.
[0061] For example, for some core processor IPs, the bare die can be a central processing unit / processor (CPU), a graphics processing unit (GPU) IP, a neural-network unit (NPU) IP, a video processor (VPU) IP, a digital signal processor (DSP) IP, an image signal processor (ISP) IP, and a display processor IP, etc. In addition, the bare die can also be a mixed digital-analog IP and a radio frequency IP, etc. The bare die can also be a cache IP, such as Nand.
[0062] In the chiplet system, ultra-short distance links can be used between dies to achieve high data rate inter-die connections. Figure 1The figure shows a schematic diagram of a die-to-die interconnect interface using SerDes. The interconnect interface circuit between die 1 and die 2 includes a transmission circuit (transport, TX), a receiving circuit and a sideband control channel. The SoC domain in die 1 can transmit application data (application data), that is, business data, to the transmission circuit of the interconnect interface in die 1, and the transmission circuit in die 1 then sends the business data to the receiving circuit of die 2 through the path (lane) in the downstream link. The SoC domain in die 2 can also transmit the response data of the application data to the transmission circuit of the interconnect interface in die 2, and the transmission circuit in die 2 then sends the response data to the receiving circuit of die 1 through the path (lane) in the upstream link. The SoC domains in die 1 and die 2 can also transmit control signals between the dies through the sideband control channel of the interconnect interface circuit.
[0063] In mobile devices, there are usually three parts: CPU, memory and storage device. The memory can be, for example, a double data rate (DDR) memory, and the storage device can be an embedded multimedia card (EMMC) or a universal flash storage (UFS). The memory is used to temporarily store the data required for program execution (data is lost when power is off), while the storage device is used to store data permanently (data is not lost when power is off). The CPU, memory and storage devices in mobile devices can all be implemented using the above chiplet system.
[0064] Among them, UFS usually means two things: 1) the storage interface protocol of mobile devices; 2) the storage device using this protocol. UFS is faster than EMMC, and the most important reason is that the signal of UFS is a differential signal, that is, each lane in the above-mentioned sending circuit and the receiving circuit of the other end uses differential signals to transmit data. Compared with single-ended signal transmission, differential signals have stronger anti-interference ability and can provide wider bandwidth.
[0065] Exemplarily, the above-mentioned die 1 can be a master die, and die 2 can be a slave die. Exemplarily, die 1 can be a master CPU die, and die 2 can be a die used as a storage device, such as Nand. The sending circuit in die 1 can use UFS to send business data to the receiving circuit of die 2 via the lane in the downlink, so that die 2 can cache the business data. The sending circuit in die 2 can use UFS to send response data to the receiving circuit of die 1 via the lane in the uplink, indicating that the business data is stored successfully. Figure 2The figure shows a die-to-die interconnect interface using SerDes and differential signal transmission. Each lane between the transmitting circuit and the receiving circuit includes Figure 2 The P and N shown in the figure are differential lines.
[0066] Among them, the UFS protocol may include: Figure 3 The protocol stack shown specifically includes an application layer (UFS application layer, UAP), a transport layer (UFS transport layer, UTP) and a link layer (UFS interconnect Layer, UIC). The above-mentioned interconnection interface may include a link layer circuit. The application layer can issue a small computer system interface (SCSI) command, and the SCSI is packaged into a UFS protocol information unit (UPIU) at the transport layer, and then the data is sent to the other end through the link layer. Among them, the link layer includes a data link layer (UniPro) and a physical layer (M-PHY), wherein the UniPro data link layer is responsible for the link between the host (host, such as the bare chip of the CPU) and the slave device (device, such as the bare chip of Nand); the M-PHY physical layer is responsible for transmitting data, for example, using the above-mentioned differential signal for data transmission. Among them, the data link layer includes a sending circuit and a receiving circuit, and the physical layer also includes a sending circuit and a receiving circuit.
[0067] Among them, the protocol of the data link layer itself is also a complete protocol stack. When the protocol evolved from UniPro1.8 to UniPro2.0, high-speed link establishment was added. When the high-speed link establishment is completed, it enters the high-speed mode, and once the high-speed link establishment is completed, it will no longer switch to the low-speed mode under the low-speed link establishment. For high-speed mode and low-speed mode, each mode includes a variety of different rate gears. Taking the high-speed mode as an example, under the UniPro2.0 protocol, Table 1 shows a variety of rate gears and two rate levels (rate series) in the high-speed mode. The two rate levels include rate A level (rateA-series) and rate B (rateB-series) level (rateB), and each rate level corresponds to a variety of rate gears (HS-G1~HS-G5).
[0068] Table 1 High-speed mode: speed level and speed range
[0069]
[0070] It can be seen from Table 1 that at the same rate, the speeds corresponding to different speed levels are in a multiple frequency relationship.
[0071] When an exception occurs in the high-speed connection mode, the master device can repeatedly send a speed change request to the slave device at the original rate to recover from the exception. If the speed change fails again at the original rate in the high-speed mode, the link re-establishment process needs to be performed. This process requires software participation and the abnormal recovery time is relatively long, about seconds, which affects the user experience.
[0072] The above-mentioned speed switching request can be understood as switching from a higher speed gear under rateB in high-speed mode to a lower speed gear under rateA. For example, the default rate after high-speed link establishment under the UniPro2.0 protocol is HS-G1 rateA, while the rate used during normal operation is HS-G5 rateB under rateB. When a speed switching exception occurs, it is necessary to switch from HS-G5 rateB to HS-G1 rateA. However, when the M-PHY physical layer in the interconnection interface is implemented internally, different rates use the same phase-locked loop (PLL) to provide frequency lock. If the rate is switched directly at the original rate, the PLL needs to be re-locked during the speed switching process, which is difficult to implement.
[0073] For example, Figure 4 The following is a schematic diagram of a high-speed link establishment process under the UniPro 2.0 protocol and a rate switching abnormal recovery process in a high-speed mode.
[0074] 1) When the master device determines that the speed needs to be switched, the master device sends a PACK_PWR_req message to the slave device, which carries an indication of the target speed and is used to instruct the slave device to switch to the target speed;
[0075] 2) When the slave device receives the PACK_PWR_req message and detects that the capability of the slave device supports the target rate, it returns a PACK_PWR_cnf message to the master device (when the sending circuit in the interconnection interface of the master device or the receiving circuit in the interconnection interface of the slave device is abnormal, step 2) is not performed);
[0076] 3) If the link between the master device and the slave device is abnormal, the master device does not receive the PACK_PWR_cnf message sent by the slave device, and the master device speed cut times out;
[0077] 4) The master device resends the PACK_PWR_req message sent in step 1);
[0078] 5) When the slave device receives the PACK_PWR_req message and detects that the capability of the slave device supports the target rate, it returns a PACK_PWR_cnf message to the master device (when the sending circuit in the interconnection interface of the master device or the receiving circuit in the interconnection interface of the slave device is abnormal, step 5) is not executed);
[0079] 6) If the link between the master device and the slave device is abnormal, the master device does not receive the PACK_PWR_cnf message sent by the slave device, and the master device times out again;
[0080] 7) When the master device determines that the request for speed switching has timed out again, it determines that the link is unavailable, and the master device reports the interruption to the software, waiting for the software to re-establish the high-speed link.
[0081] It can be seen that in high-speed link establishment mode, when a link anomaly occurs and the speed switching fails, the master device repeatedly sends a speed switching request (PACK_PWR_req message) at the original rate to try to switch the speed. If the speed switching fails again, the master device needs to report an interruption and wait for the software to reestablish the link. However, when the software participates in reestablishing the link, the abnormality recovery time is relatively long, about seconds, which affects the user experience. Moreover, in high-speed link establishment mode, when the rate switching fails, when the rate switching request is repeatedly sent at the original rate for recovery, the probability of successful rate switching is still low.
[0082] Therefore, the present application provides a link rate switching method and device, which can be understood as a bare chip. In this method, after completing high-speed link establishment between two bare chips, if the bare chip as the master device determines that the rate switching between the bare chips is abnormal, the master device resets the interface rate of the master device and instructs the bare chip as the slave device to also reset the interface rate, and the interface rate after reset is less than the interface rate before reset. Among them, the process of resetting the interface rate is equivalent to adding a link reset (linereset) process, which is used to reduce the interface rate so that the rate switching can be performed after the interface is decelerated. Since the clock sampling frequency of the sending circuit and the receiving circuit in the bare chip is low after the deceleration, the success rate of data transmission is high, and the success rate of the rate switching again will be correspondingly improved.
[0083] Based on this, the rate switching method of the link of the present application is introduced below.
[0084] The interface in the embodiment of the present application is equivalent to Figure 1 In the interconnect interface shown in FIG. 1 , the interface rate switching includes the interface rate switching of the transmitting circuit and the receiving circuit of the link layer of the bare chip.
[0085] like Figure 5 The figure shows a schematic flow chart of a rate switching method for a link provided in an embodiment of the present application. When the method is applied to a first bare chip, the method includes the following process.
[0086] 501. A first bare chip establishes a high-speed link between a first interface and a second interface, where the first interface includes a link layer circuit of the first bare chip, and the second interface includes a link layer circuit of the second bare chip.
[0087] In some embodiments, the first die is a die with a CPU function, and the second die is a die with a Nand function. Before the first die communicates with the second die, the first die may first perform high-speed link establishment between the first interface and the second interface, including link establishment of multiple lanes by the sending circuit of the first interface and the receiving circuit of the second interface, and link establishment of multiple lanes by the receiving circuit of the first interface and the sending circuit of the second interface.
[0088] After the high-speed link is established, service data can be transmitted between the first interface and the second interface on the high-speed link.
[0089] 502. When the rate switching between the first interface and the second interface is abnormal, the first bare chip resets the first interface rate of the first interface, and instructs the second bare chip to reset the second interface rate of the second interface, wherein the first interface rate after the reset is less than the first interface rate before the reset, and the second interface rate after the reset is less than the second interface rate before the reset.
[0090] Accordingly, the second interface rate of the second interface is reset according to the instruction of the first die.
[0091] In some embodiments, if the first die determines that the service type has changed and a rate switch is required, for example, switching from a higher rate to another lower rate, the first die initiates a rate switch process to the second die. The rate switch process can be referred to in the above Figure 4 The process shown.
[0092] If the rate switching fails or is abnormal, the first bare chip can reduce the first interface rate of the first interface, and the second bare chip can reduce the second interface rate of the second interface and then try to execute the rate switching process again. This is because when the rate is reduced, the sampling clock frequencies of the sending circuits and receiving circuits of the first interface and the second interface are lower, the data sampling success rate is higher, and the probability of successful transmission of the message is higher.
[0093] In some embodiments, the first interface rate after reset and the second interface rate after reset are both the lowest interface rates among the multiple interface rates. For example, the first interface rate before reset is HS-G5 rateB, and the first interface rate after reset is HS-G5 rateA or HS-G5 rateB.
[0094] In order to avoid PLL re-locking, rate reset / rate switching can be performed at the same rate, that is, the first interface rate after reset and the first interface rate before reset are in a multiple frequency relationship, and the second interface rate after reset and the second interface rate before reset are in a multiple frequency relationship. For example, according to Table 1, the first interface rate before reset is HS-G5 rateB, and the first interface rate after reset is HS-G1 rateB, that is, the first interface rate after reset is the lowest interface rate among the multiple interface rates at the same rate.
[0095] In this way, when the first interface rate after reset is in a multiple frequency relationship with the first interface rate before reset, it is equivalent to resetting the first interface rate at the same rate, and the PLL does not need to be relocked. In this way, when the first interface rate is reduced and the rate switch is attempted again, the probability of successful rate switching can be increased, and the situation of PLL relocking caused by switching the rate can also be avoided.
[0096] In some embodiments, the link layer circuit of the first die includes a first transmitting circuit and a first receiving circuit, and the link layer circuit of the second die includes a second transmitting circuit and a second receiving circuit. Resetting the first interface rate of the first interface and instructing the second die to reset the second interface rate of the second interface includes: resetting the rate of the first transmitting circuit of the first die and instructing the second die to reset the rates of the second transmitting circuit and the second receiving circuit of the second die; resetting the rate of the first receiving circuit of the first die according to the instruction of the second die.
[0097] For example, when the first bare chip determines that a rate switching abnormality occurs, the first bare chip first resets the rate of the first transmitting circuit of the first bare chip, and sends a first reset message to the second receiving circuit of the second bare chip through the first transmitting circuit of the first bare chip. The first reset message is used to instruct the second bare chip to reset the rate of the second receiving circuit of the second bare chip.
[0098] When the first die determines that the rate reset of the second receiving circuit of the second die is completed, the first sending circuit of the first die sends a second reset message to the second receiving circuit of the second die, where the second reset message is used to instruct the second die to reset the rate of the second sending circuit of the second die.
[0099] The first receiving circuit of the first die receives a third reset message sent by the second sending circuit of the second die, and the third reset message is used to indicate the rate at which the first die resets the first receiving circuit of the first die. Then, the first die resets the rate at which the first receiving circuit of the first die resets.
[0100] The rate at which the first die resets the first transmitting circuit of the first die includes the rate at which the first die resets the transmitting circuit of the unified protocol layer (UniPro) of the first die and the transmitting circuit of the physical layer (M-PHY) of the first die.
[0101] The rate at which the first die resets the first receive circuitry of the first die includes the rate at which the first die resets the receive circuitry of the unified protocol layer of the first die and the receive circuitry of the physical layer of the first die.
[0102] The rate at which the second die resets the second transmit circuitry of the second die includes the rate at which the second die resets the transmit circuitry of the unified protocol layer of the second die and the transmit circuitry of the physical layer of the second die.
[0103] The rate at which the second die resets the second receive circuitry of the second die includes the rate at which the second die resets the receive circuitry of the unified protocol layer of the second die and the receive circuitry of the physical layer of the second die.
[0104] In some embodiments, the present application may add a reset port to the interface between the unified protocol layer circuit and the physical layer circuit.
[0105] Based on this, for example, the first die resetting the first transmitting circuit rate of the first die includes: the first die resets the transmitting circuit of the unified protocol layer of the first die and the rate of the transmitting circuit of the physical layer of the first die according to the level indication of the reset port.
[0106] Similarly, the indication of rate reset of the unified protocol layer circuit and physical layer circuit in the second bare chip can also be implemented according to the level indication of the reset port.
[0107] 503. The first bare chip performs rate switching between the first interface and the second interface with the second bare chip at the reset first interface rate. Correspondingly, the second bare chip performs rate switching between the second interface and the first interface with the first bare chip at the reset second interface rate.
[0108] For example, when the first die determines that both the first die and the second die reduce the interface rate to HS-G1 rateB, the first die may send a rate switching request to the second die at HS-G1 rateB to initiate the rate switching process.
[0109] In this way, when a rate switching exception occurs in the high-speed mode between bare chips, the above rate reset process can be used to reset to a low rate to increase the probability of abnormal recovery when performing rate switching at a low rate. If the rate switching exception is successfully recovered at a low rate, the process of re-establishing the link due to rate switching exceptions in traditional solutions can be avoided, reducing the rate switching exception recovery time, and no software participation is required, thereby improving the speed switching efficiency.
[0110] like Figure 6 Shown is a schematic diagram of a link rate switching method provided in an embodiment of the present application, the method comprising the following process.
[0111] 601. A first bare chip establishes a high-speed link between a first interface and a second interface, where the first interface includes a link layer circuit of the first bare chip, and the second interface includes a link layer circuit of the second bare chip.
[0112] In some embodiments, Figure 7 The figure shows a schematic diagram of a high-speed link establishment process, which may include the following process.
[0113] 1) The first die and the second die respectively complete reset and enable of each protocol layer; wherein each protocol layer includes an application layer, a transport layer and a link layer.
[0114] 2) The first bare chip sends a high-speed link establishment request to the second bare chip, instructing the M-PHY of the second bare chip to exit H8;
[0115] That is, the transmitting circuit of the first bare chip sends a high-speed link establishment request to the receiving circuit of the second bare chip.
[0116] Among them, exiting H8 can be understood as M-PHY entering a power-off state.
[0117] 3) The first die sends a reset request (linereset) and an activation (trigger0, TRG0) indication to the second die in a loop;
[0118] That is, the transmitting circuit of the first die cyclically sends linereset and TRG0 to the receiving circuit of the second die.
[0119] 4) When the receiving circuit of the second die detects a high-speed link establishment request, the M-PHY in the second die is awakened. When the second die detects TRG0, the M-PHY of the second die reports a link establishment interruption to the software;
[0120] 5) After the software of the second bare chip detects the interruption of link establishment, it sends a high-speed link establishment request to the first bare chip and cyclically sends TRG0 to the first bare chip;
[0121] That is, the transmitting circuit of the second bare chip sends a high-speed link establishment request and TRG0 to the receiving circuit of the first bare chip.
[0122] At this point, the first die and the second die complete the TRG0 handshake;
[0123] 6) The first die and the second die continue to complete the TRG1 / 2 handshake;
[0124] 7) The first die and the second die respectively close the current handshake (or burst), that is, end sending TRG. The first die and the second die complete the capability exchange on lane 0 (lane 0).
[0125] After the first bare chip and the second bare chip complete the capability exchange, the high-speed link between the interfaces is established.
[0126] 602. When the first bare chip determines that rate switching is required, the first bare chip sends a rate switching request to the second bare chip.
[0127] The rate switching request carries the target rate, and the rate switching request is equivalent to the above-mentioned PACP_PWR_req message.
[0128] 603. When the second die receives the rate switching request and detects that the capability of the second die supports the target rate, the second die feeds back a rate switching response to the first die (when the transmitting circuit of the first die or the receiving circuit of the second die is abnormal, step 603 is not executed).
[0129] The rate switching response is equivalent to the above-mentioned PACP_PWR_cnf message.
[0130] 604. The first die does not receive a rate switching response from the second die, and the first die determines that the rate switching process times out.
[0131] 605. The first die sends a rate switch request to the second die again.
[0132] 606. When the second die receives the rate switching request and detects that the capability of the second die supports the target rate, the second die feeds back a rate switching response to the first die (when the transmitting circuit of the first die or the receiving circuit of the second die is abnormal, step 606 is not executed).
[0133] 607 . The first bare chip does not receive a rate switching response from the second bare chip. The first bare chip determines that the rate switching process has timed out again, which is equivalent to an abnormal rate switching between the first interface and the second interface.
[0134] 608. The first die resets the rate of the first transmitting circuit of the first interface of the first die, and sends a first reset message to the second receiving circuit of the second die through the first transmitting circuit of the first die, where the first reset message is used to instruct the second die to reset the rate of the second receiving circuit of the second die.
[0135] According to the above introduction, the first transmitting circuit includes a transmitting circuit of a unified protocol layer of the first die and a transmitting circuit of a physical layer of the first die. A reduced media independent interface (RMMI) may exist between the transmitting circuit of the unified protocol layer of the first transmitting circuit and the transmitting circuit of the physical layer. In some embodiments, the present application may add a reset port on the RMMI, which may also be referred to as a linereset type port. When the SoC domain of the first die determines that the speed needs to be cut, the SoC domain may send an indication to the reset port, indicating the rate of resetting the transmitting circuit of the unified protocol layer and the transmitting circuit of the physical layer of the first die.
[0136] Exemplarily, the first interface rate after reset may be the lowest interface rate among the multiple interface rates. Based on this, resetting the rate of the first transmitting circuit of the first bare chip may include: assuming that the rate before reset is HS G5 rateB, when the level of the reset port is a low level "0", it may indicate that the rates of the transmitting circuit of the unified protocol layer and the transmitting circuit of the physical layer of the first bare chip are to be reset to HS G1 rateA, and when the level of the reset port is a high level "1", it may indicate that the rates of the transmitting circuit of the unified protocol layer and the transmitting circuit of the physical layer of the first bare chip are to be reset to HS G1 rateB, that is, the rate gear is changed to HS G1 rateB, but the rate level rate remains unchanged, and is still rateB.
[0137] Then, the first die can reset the rate of the physical layer transmission circuit of the first die and the unified protocol layer transmission circuit of the first die according to the level of the reset port, for example, resetting from HS G5 rateB to HS G1 rateB. Thus, the rate reset of the first transmission circuit of the first die is completed.
[0138] In some embodiments, the rate at which the first die instructs the second die to reset the second transmitting circuit of the second die and the rate at which the second receiving circuit of the second die in step 502 may include: the first die sends a first high-level signal to the second die through a differential line between the first transmitting circuit of the first die and the second receiving circuit of the second die, and the duration of the first high-level signal is used to indicate the rate at which the second die resets the second transmitting circuit of the second die and the rate at which the second receiving circuit of the second die is reset.
[0139] Exemplarily, the first die may send a first reset message to the second receiving circuit of the second die at the first interface rate after reset through the first sending circuit of the first die to indicate the reset rate of the second receiving circuit of the second die. This is equivalent to the sending circuit of the physical layer of the first die sending the first reset message to the receiving circuit of the physical layer of the second die. The first reset message is equivalent to the linereset message. If the rate switching of the present application is a rate switching under the constant rate, in order to distinguish the linereset message in the low-speed link establishment from the rate switching required when the rate is reset, the first reset message in the present application may be indicated by the duration of the first high-level signal of the differential line between the sending circuit of the physical layer of the first die and the receiving circuit of the physical layer of the second die, that is, the duration of the first high-level signal of the differential line indicates that the rate does not need to be switched when resetting the rate, and the second interface rate before the reset and the second interface rate after the reset are in a multiple frequency relationship. For example, the second interface rate before the reset is HS G5 rateB, and the second interface rate after the reset is HS G1 rateB.
[0140] Exemplarily, the M-PHY protocol defines four states on the differential line: DIF-P, DIF-N, DIF-Z, and DIF-Q, where DIF-P represents a high level, DIF-N represents a low level, DIF-Z represents a zero level, and DIF-Q represents an unknown state. The first reset message can be indicated by the duration of the DIF-P state. In order to distinguish the linereset message in the low-speed link establishment from the rate switching required for rate reset, when the duration of the DIF-P state is less than the preset duration, the linereset message indicates that the physical layer circuit in the second receiving circuit of the second bare chip needs to perform a rate reset for rate switching, and when the duration of the DIF-P state is greater than or equal to the preset duration, the linereset message indicates that the physical layer circuit in the second receiving circuit of the second bare chip does not need to perform a rate reset for rate switching.
[0141] refer to Figure 8 An example diagram of a linereset message provided in an embodiment of the present application, that is, an example diagram of the first reset message mentioned above. When the second interface rate before reset is HS G5 rateB, and the second interface rate after reset is the lowest rate, if the DIF-P state duration is less than M milliseconds, it indicates that the linereset message is a rate reset that requires switching the level (rate), and the second interface rate is reset to HS G1 rateA. When the DIF-P state duration is greater than M milliseconds, or greater than M milliseconds and less than N milliseconds, it indicates that the linereset message is a rate reset that does not require switching the rate, and the second interface rate is reset to HS G1 rateB.
[0142] 609. When the second receiving circuit of the second die receives the first reset message, the rate of the second receiving circuit of the second die is reset, and a first reset response is sent to the first die, where the first reset response is used to indicate that the rate reset of the second receiving circuit of the second die is completed.
[0143] Exemplarily, the second die may first reset the rate of the receiving circuit of the physical layer of the second die. Then, the level of the reset port on the RMMI interface between the receiving circuit of the physical layer of the second die and the receiving circuit of the unified protocol layer may be updated to a high level through the SoC domain of the second die to instruct the second die to perform a rate reset of the receiving circuit of the physical layer of the second die and the receiving circuit of the unified protocol layer without switching the rate. For details, please refer to the description of the interface rate reset of the transmitting circuit of the first die. In this way, the interface rate reset of the second receiving circuit of the second die is completed.
[0144] Alternatively, when the level of the reset port of the second die is updated to a low level, the second die is instructed to perform a rate reset of a switching rate of the RMMI interface between the receiving circuit of the physical layer and the receiving circuit of the unified protocol layer of the second die.
[0145] Then, the second die sends a first reset response to the first die, indicating that the rate reset of the second receiving circuit of the second die is completed.
[0146] 610. The first transmitting circuit of the first die sends a second reset message to the second receiving circuit of the second die, where the second reset message is used to indicate a rate at which the second die resets the first transmitting circuit of the second die.
[0147] When the first die determines that the rate reset of the second receiving circuit of the second die is complete, the first transmitting circuit of the first die may send a second reset message to the second receiving circuit of the second die to instruct the second die to reset the rate of the second transmitting circuit of the second die.
[0148] 611. When the second receiving circuit of the second die receives the second reset message, the second receiving circuit of the second die resets the rate of the second sending circuit of the second die and sends a third reset message to the first die, where the third reset message is used to instruct the first die to reset the rate of the first receiving circuit of the first die.
[0149] The implementation method of resetting the rate of the second transmitting circuit of the second bare chip by the second bare chip is similar to the implementation method of resetting the rate of the first transmitting circuit of the first bare chip by the first bare chip mentioned above. The second reset message can also be implemented by the state duration of DIF-P on the differential line between the physical layer circuits to achieve rate reset without switching the rate, and resetting the rate of the second transmitting circuit of the second bare chip includes resetting the rate of the transmitting circuit of the physical layer and the transmitting circuit of the unified protocol layer of the second bare chip, for example, resetting from HS G5 rateB to HS G1 rateB.
[0150] In some embodiments, the third reset message is similar to the implementation of the first reset message, and can be used to indicate through the state of DIF-P on the differential line between physical layer circuits that the first die can start resetting the rate of the first receiving circuit of the first die, including resetting the rate of the receiving circuit of the unified protocol layer and the receiving circuit of the physical layer of the first die.
[0151] 612. The first die resets a rate of a first receiving circuit of the first die.
[0152] When the first die receives the third reset message, the SoC domain of the first die may instruct the first die to reset the rate of the receiving circuit of the unified protocol layer of the first die and the receiving circuit of the physical layer of the first die by updating the level of the reset port between the receiving circuit of the unified protocol layer of the first die and the receiving circuit of the physical layer of the first die. For example, when the level of the reset port is high, the rate of the receiving circuit of the unified protocol layer of the first die and the rate of the receiving circuit of the physical layer of the first die are reset from HS G5 rateB to HS G1 rateB.
[0153] It should be noted that, although in the above examples, the interface rate after reset is the lowest gear HS G1, in some embodiments, the rate gear after reset can also be other rate gears, as long as it is lower than the interface rate before reset. In this case, the rate gear after reset can be distinguished by the duration of different DIF-P states, for example, the longer the duration, the lower the rate gear after reset.
[0154] 613. The first bare chip sends a rate switching request to the second bare chip at the first interface rate after reset, where the rate switching request carries a target rate.
[0155] After the rate reset of the first receiving circuit of the first bare chip is completed, the first interface rate of the first bare chip and the second interface rate of the second bare chip are reset, and both rates are reduced. In this way, the frequencies of the sampling clocks of the transmitting circuits and receiving circuits of the first bare chip and the second bare chip are reduced, and for the receiving circuit, the data sampling success rate is increased.
[0156] At this time, the first transmitting circuit of the first bare chip can send the above rate switching request to the second receiving circuit of the second bare chip again at the reset first interface rate. Since the rates of the first interface and the second interface are reduced after reset, the probability of successful transmission of the rate switching request increases.
[0157] 614. When the second die receives the rate switching request and determines that the target rate is supported, the second die feeds back a rate switching response to the first die.
[0158] Similarly, the second die feeds back a rate switching response to the first die at the second interface rate after reset. Since the rates of the first interface and the second interface after reset are reduced, the probability of successful transmission of the rate switching response increases.
[0159] 615. The first die switches from the first interface rate after reset to the target rate, and the second die switches from the second interface rate after reset to the target rate.
[0160] When the first die receives the rate switching response, the first die may switch the rates of the first transmitting circuit and the first receiving circuit, and the second die may also switch the rates of the second transmitting circuit and the second receiving circuit, for example, switching from HS G1 rateB to HS G5 rateA.
[0161] At this time, the first interface rate and the target rate after reset can be rate gears at the same rate or rate gears at different rates, and the second interface rate and the target rate after reset can be rate gears at the same rate or rate gears at different rates.
[0162] The switching to the target rate here may include switching the rates of the first transmitting circuit and the first receiving circuit, and the second transmitting circuit and the second receiving circuit, for example, both may be switched to HS G5 rateA.
[0163] Therefore, when a rate switching anomaly occurs in the high-speed mode between die-to-die, the rate switching anomaly can be recovered by reducing the interface rates at both ends and then performing rate switching, which can increase the probability of rate switching anomaly recovery. If the rate switching anomaly is recovered, the process of re-establishing the link can be avoided, the recovery time of the rate switching anomaly is reduced, and no software participation is required, which improves the rate switching efficiency.
[0164] The embodiments of the present application can also be applied to the scenario where UniPro fails to enter H8 and PA_INIT fails to increase the probability of error recovery.
[0165] It is understandable that in order to implement the above functions, the bare chip includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of this application.
[0166] In this embodiment, the bare chip can be divided into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0167] In the case of dividing each functional module into corresponding functional modules, Fig. 9 A possible schematic diagram of the composition of the bare chip 90 involved in the above embodiment is shown. Fig. 9 As shown, the bare chip 90 may include: a link building unit 901 , a reset unit 902 , and a speed cutting unit 903 .
[0168] The link building unit 901 may be used to support the bare chip 90 to execute the above-mentioned steps 501, 601, 504, etc., and / or other processes of the technology described herein.
[0169] The reset unit 902 may be used to support the die 90 to execute the above-mentioned steps 502 , 608 , etc., and / or other processes for the technology described herein.
[0170] The speed control unit 903 may be used to support the die 90 to execute the above-mentioned step 503 , steps 602 - 612 , steps 613 - 615 , etc., and / or other processes for the technology described herein.
[0171] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0172] The bare chip 90 provided in this embodiment is used to execute the rate switching method of the link, and thus can achieve the same effect as the above implementation method.
[0173] In the case of an integrated unit, the bare chip 90 may include a processing module, a storage module and a communication module. Among them, the processing module can be used to control and manage the actions of the bare chip 90, for example, it can be used to support the bare chip 90 to execute the steps performed by the above-mentioned link building unit 901, reset unit 902 and speed cutting unit 903. The storage module can be used to support the bare chip 90 to store program codes and data, etc. The communication module can be understood as the interconnection interface of the bare chip in this application, which can be used to support the communication between the bare chip 90 and other devices, such as communication with other bare chips.
[0174] The processing module may be a processor or a controller. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module may be a memory. The communication module may specifically be a transmitting circuit and a receiving circuit.
[0175] The embodiment of the present application also provides an electronic device, including multiple bare chips, which may include one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions. When the one or more processors execute the computer instructions, the electronic device executes the above-mentioned related method steps to implement the rate switching method of the link in the above-mentioned embodiment.
[0176] An embodiment of the present application also provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the link rate switching method in the above-mentioned embodiment.
[0177] An embodiment of the present application further provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the link rate switching method executed by the electronic device in the above-mentioned embodiment.
[0178] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer execution instructions, and when the device is running, the processor can execute the computer execution instructions stored in the memory to enable the chip to execute the link rate switching method executed by the electronic device in the above-mentioned method embodiments.
[0179] Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above and will not be repeated here.
[0180] Another embodiment of the present application provides a chip system, which may include multiple bare chips and can be used to implement the rate switching method of the above link.
[0181] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0182] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0183] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0184] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0185] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0186] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A link rate switching method, applied to a first bare chip, characterized in that: The method comprises: Establishing a high-speed link between a first interface and a second interface, the first interface including a link layer circuit of the first die, and the second interface including a link layer circuit of the second die; When the rate switching between the first interface and the second interface is abnormal, resetting the first interface rate of the first interface, and instructing the second bare chip to reset the second interface rate of the second interface, wherein the first interface rate after the reset is less than the first interface rate before the reset, and the second interface rate after the reset is less than the second interface rate before the reset; The rate switching between the first interface and the second interface is performed with the second bare die at the first interface rate after the reset.
2. The method according to claim 1, characterized in that The first interface rate after reset and the second interface rate after reset are both the lowest interface rates among the multiple interface rates.
3. The method according to claim 1 or 2, characterized in that: The first interface rate after the reset is in a multiple frequency relationship with the first interface rate before the reset, and the second interface rate after the reset is in a multiple frequency relationship with the second interface rate before the reset.
4. The method according to any one of claims 1 to 3, characterized in that: The link layer circuit of the first die includes a first sending circuit and a first receiving circuit, the link layer circuit of the second die includes a second sending circuit and a second receiving circuit, and resetting the first interface rate of the first interface and instructing the second die to reset the second interface rate of the second interface includes: resetting a rate of the first transmitting circuit of the first die, and instructing the second die to reset a rate of the second transmitting circuit and the second receiving circuit of the second die; The rate of the first receiving circuit of the first die is reset according to the instruction of the second die.
5. The method according to claim 4, characterized in that The first transmitting circuit includes a transmitting circuit of a unified protocol layer and a transmitting circuit of a physical layer of the first die, and an interface between the transmitting circuit of the unified protocol layer of the first die and the transmitting circuit of the physical layer of the first die includes a reset port; The rate of resetting the first transmitting circuit of the first die includes: The rate of resetting the transmitting circuit of the unified protocol layer of the first die and the transmitting circuit of the physical layer of the first die is indicated according to the level of the reset port.
6. The method according to claim 4, characterized in that The rate at which the second die is instructed to reset the second transmitting circuit and the second receiving circuit of the second die includes: Sending a first high-level signal to the second bare chip through a differential line between the first transmitting circuit and the second receiving circuit, wherein the duration of the first high-level signal is used to indicate a rate at which the second bare chip resets the second transmitting circuit and the second receiving circuit; The rate of resetting the first receiving circuit of the first die according to the instruction of the second die includes: A second high level signal transmitted by the second die is received through a differential line between the receiving circuit and the second transmitting circuit, and a duration of the second high level signal is used to indicate a rate at which the first die resets the first receiving circuit.
7. A link rate switching method, applied to a second bare chip, characterized in that: The method comprises: Establishing a high-speed link between a first interface and a second interface, the first interface including a link layer circuit of a first die, and the second interface including a link layer circuit of the second die; resetting the second interface rate of the second interface according to the instruction of the first bare chip, wherein the second interface rate after the reset is less than the second interface rate before the reset; The rate switching between the second interface and the first interface is performed with the first bare die at the reset second interface rate.
8. The method according to claim 7, characterized in that The second interface rate after the reset is the lowest interface rate among the multiple interface rates.
9. The method according to claim 7 or 8, characterized in that: The second interface rate after the reset is in a multiple frequency relationship with the second interface rate before the reset.
10. The method according to any one of claims 7 to 9, characterized in that: The link layer circuit of the first die includes a first sending circuit and a first receiving circuit, the link layer circuit of the second die includes a second sending circuit and a second receiving circuit, and resetting the second interface rate of the second interface according to the instruction of the first die includes: resetting the rates of the second receiving circuit and the second transmitting circuit according to the instruction of the first bare chip; The method also includes instructing the first die on a rate at which to reset the first receive circuit.
11. The method according to claim 10, characterized in that The second transmitting circuit includes a transmitting circuit of a unified protocol layer and a transmitting circuit of a physical layer of the second die, and an interface between the transmitting circuit of the unified protocol layer of the second die and the transmitting circuit of the physical layer of the second die includes a reset port; The rate of resetting the second transmitting circuit includes: The rate of the transmitting circuit of the unified protocol layer and the transmitting circuit of the physical layer of the second die of the second die is reset according to the level indication of the reset port.
12. The method according to claim 10, characterized in that The resetting of the rate of the second receiving circuit and the second sending circuit according to the instruction of the first bare chip comprises: receiving a first high-level signal sent by the first bare chip through a differential line between the second receiving circuit and the first transmitting circuit, wherein the duration of the first high-level signal is used to indicate a rate at which the second bare chip resets the second receiving circuit and the second transmitting circuit; The rate at which the first die is instructed to reset the first receiving circuit includes: A second high level signal is sent to the first bare die through a differential line between the second sending circuit and the first receiving circuit, and a duration of the second high level signal is used to indicate a rate at which the first bare die resets the first receiving circuit.
13. A bare chip, when the bare chip is a first bare chip, characterized in that: The first die comprises: A link building unit, configured to establish a high-speed link between a first interface and a second interface, wherein the first interface includes a link layer circuit of the first die, and the second interface includes a link layer circuit of the second die; a reset unit, configured to reset a first interface rate of the first interface and instruct the second bare chip to reset a second interface rate of the second interface when the rate switching between the first interface and the second interface is abnormal, wherein the first interface rate after the reset is less than the first interface rate before the reset, and the second interface rate after the reset is less than the second interface rate before the reset; A rate switching unit is used to perform rate switching between the first interface and the second interface with the second bare chip at the first interface rate after the reset.
14. The first die according to claim 13, wherein: The first interface rate after reset and the second interface rate after reset are both the lowest interface rates among the multiple interface rates.
15. The first bare chip according to claim 13 or 14, characterized in that: The first interface rate after the reset is in a multiple frequency relationship with the first interface rate before the reset, and the second interface rate after the reset is in a multiple frequency relationship with the second interface rate before the reset.
16. The first bare chip according to any one of claims 13 to 15, characterized in that: The link layer circuit of the first bare chip includes a first sending circuit and a first receiving circuit, the link layer circuit of the second bare chip includes a second sending circuit and a second receiving circuit, and the reset unit is used to: resetting a rate of the first transmitting circuit of the first die, and instructing the second die to reset a rate of the second transmitting circuit and the second receiving circuit of the second die; The rate of the first receiving circuit of the first die is reset according to the instruction of the second die.
17. The first die according to claim 16, wherein: The first transmitting circuit includes a transmitting circuit of a unified protocol layer and a transmitting circuit of a physical layer of the first die, and an interface between the transmitting circuit of the unified protocol layer of the first die and the transmitting circuit of the physical layer of the first die includes a reset port; The reset unit is used for: The rate of resetting the transmitting circuit of the unified protocol layer of the first die and the transmitting circuit of the physical layer of the first die is indicated according to the level of the reset port.
18. The first die according to claim 16, wherein: The reset unit is used for: Sending a first high-level signal to the second bare chip through a differential line between the first transmitting circuit and the second receiving circuit, wherein the duration of the first high-level signal is used to indicate a rate at which the second bare chip resets the second transmitting circuit and the second receiving circuit; A second high level signal transmitted by the second die is received through a differential line between the receiving circuit and the second transmitting circuit, and a duration of the second high level signal is used to indicate a rate at which the first die resets the first receiving circuit.
19. A bare chip, when the bare chip is the second bare chip, characterized in that: The second die comprises: A link building unit, used for a high-speed link between a first interface and a second interface, wherein the first interface includes a link layer circuit of a first die, and the second interface includes a link layer circuit of the second die; a reset unit, configured to reset a second interface rate of the second interface according to an instruction of the first bare chip, wherein the second interface rate after the reset is less than the second interface rate before the reset; A rate switching unit is used to perform rate switching between the second interface and the first interface with the first bare chip at the reset second interface rate.
20. The second die according to claim 19, wherein: The second interface rate after the reset is the lowest interface rate among the multiple interface rates.
21. The second bare chip according to claim 19 or 20, characterized in that: The second interface rate after the reset is in a multiple frequency relationship with the second interface rate before the reset.
22. The second bare chip according to any one of claims 19 to 21, characterized in that: The link layer circuit of the first bare chip includes a first sending circuit and a first receiving circuit, the link layer circuit of the second bare chip includes a second sending circuit and a second receiving circuit, and the reset unit is used to: resetting the rates of the second receiving circuit and the second transmitting circuit according to the instruction of the first bare chip; The reset unit is further configured to instruct the first bare chip to reset the first receiving circuit at a rate.
23. The second die according to claim 22, wherein: The second transmitting circuit includes a transmitting circuit of a unified protocol layer and a transmitting circuit of a physical layer of the second die, and an interface between the transmitting circuit of the unified protocol layer of the second die and the transmitting circuit of the physical layer of the second die includes a reset port; The reset unit is used for: The rate of the transmitting circuit of the unified protocol layer and the transmitting circuit of the physical layer of the second die of the second die is reset according to the level indication of the reset port.
24. The second die according to claim 22, wherein: The reset unit is used for: receiving a first high-level signal sent by the first bare chip through a differential line between the second receiving circuit and the first transmitting circuit, wherein the duration of the first high-level signal is used to indicate a rate at which the second bare chip resets the second receiving circuit and the second transmitting circuit; A second high level signal is sent to the first bare die through a differential line between the second sending circuit and the first receiving circuit, and a duration of the second high level signal is used to indicate a rate at which the first bare die resets the first receiving circuit.
25. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method according to any one of claims 1 to 6.
26. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method described in any one of claims 7 to 12.
