Search

CN-122019452-A - Data link initialization method, device, electronic equipment, storage medium and chip

CN122019452ACN 122019452 ACN122019452 ACN 122019452ACN-122019452-A

Abstract

The present disclosure relates to the field of chip technologies, and in particular, to a method, an apparatus, an electronic device, a storage medium, and a chip for initializing a data link, where the method includes obtaining a transmission protocol supported by a local core and a transmission protocol supported by a remote core; and according to the first protocol capability, the second protocol capability and the physical link training result between the local core particle and the remote core particle, determining whether a preset single protocol through condition is met between the local core particle and the remote core particle, and establishing a through data path of a transmission protocol corresponding to the single protocol through condition under the condition that the single protocol through condition is met between the local core particle and the remote core particle. The method and the device are beneficial to improving the establishment speed of the data link, shortening the initialization time of the data link, eliminating the redundant processing delay and larger resource expenditure caused by the protocol negotiation process, and improving the communication efficiency among the core particles.

Inventors

  • Request for anonymity
  • Request for anonymity
  • Request for anonymity

Assignees

  • 上海壁仞科技股份有限公司

Dates

Publication Date
20260512
Application Date
20260407

Claims (14)

  1. 1. A method for initializing a data link, comprising: Acquiring a first protocol capability of a local core particle and a second protocol capability of a remote core particle, wherein the first protocol capability is used for representing a transmission protocol supported by the local core particle, the second protocol capability is used for representing a transmission protocol supported by the remote core particle, at least one transmission protocol supported by the local core particle is adopted, and at least one transmission protocol supported by the remote core particle is adopted; Determining whether a preset single protocol direct connection condition is met between the local core particle and the remote core particle according to the first protocol capability, the second protocol capability and a preset physical link training result between the local core particle and the remote core particle; and establishing a pass-through data path of a transmission protocol corresponding to the single-protocol pass-through condition under the condition that the single-protocol pass-through condition is satisfied between the local core particle and the remote core particle.
  2. 2. The method of claim 1, wherein the obtaining the first protocol capability of the local core and the second protocol capability of the remote core comprises: Respectively sending a protocol capability acquisition request to a capability register of the local core particle and a capability register of the remote core particle; the first protocol capability and the second protocol capability are derived from response information received from a capability register of the local core and a capability register of the remote core.
  3. 3. The data link initialization method according to claim 1, wherein: the physical link training result comprises the data transmission rate and the power supply state of the physical layers of the local core particle and the remote core particle; The single protocol pass-through condition includes that the first protocol capability and the second protocol capability indicate that a first one of the local core and the remote core supports only one protocol and a second one of the local core and the remote core supports at least the first one of the protocols supported by the first core, and that data transmission rates of physical layers of the local core and the remote core match, and that power states of physical layers of the local core and the remote core match, wherein the first core is any one of the local core and the remote core, and the second core is the other one of the local core and the remote core other than the first core.
  4. 4. The method of initializing a data link according to claim 1, wherein said establishing a pass-through data path of a transport protocol corresponding to said single protocol pass-through condition comprises at least one of said local core and said remote core performing the steps of: Configuring data transmission parameters associated with a specified protocol, wherein the specified protocol is a protocol in the single protocol pass-through condition satisfied by the local core and the remote core; Activating a protocol stack of the specified protocol; the pass-through data path including the receive buffer of the specified protocol, the parser of the specified protocol, and the data transmit queue is established.
  5. 5. A data link initialization method according to any one of claims 1 to 4, wherein: the data link is a UCIe specification-based data link.
  6. 6. The data link initialization method according to claim 5, wherein after the establishing of the pass-through data path of the transport protocol corresponding to the single protocol pass-through condition, the data link initialization method further comprises: The FDI interface is placed in an active state to open a data link between the local core and the remote core.
  7. 7. The data link initialization method according to claim 6, wherein after the FDI interface is set to an active state, the data link initialization method further comprises: Continuously monitoring link quality information between the local core and the remote core; and when the link quality information meets the preset abnormal condition, disconnecting the data link between the local core particle and the remote core particle, and rebuilding the data link between the local core particle and the remote core particle according to the link initialization flow of UCIe specifications.
  8. 8. The data link initialization method according to claim 7, wherein: The link quality information comprises at least one of link error rate, CRC check failure times and FDI handshake timing; The abnormal condition comprises at least one of the link error rate reaching a preset error rate threshold, the CRC check failure time reaching a preset failure time and FDI handshake timeout.
  9. 9. The data link initialization method according to claim 5, wherein the data link initialization method further comprises: and if the single protocol pass-through condition is not satisfied between the local core grain and the remote core grain, establishing a data link between the local core grain and the remote core grain according to the link initialization flow of the UCIe specification.
  10. 10. A data link initialization apparatus, comprising: a protocol prejudging unit, configured to obtain a first protocol capability of a local core and a second protocol capability of a remote core, where the first protocol capability is used to characterize a transmission protocol supported by the local core, the second protocol capability is used to characterize a transmission protocol supported by the remote core, the supported transmission protocol of the local core is at least one, and the supported transmission protocol of the remote core is at least one; The mode decision unit is used for determining whether a preset single protocol straight-through condition is met between the local core particle and the remote core particle according to the first protocol capability, the second protocol capability and a physical link training result between the local core particle and the remote core particle, which are obtained in advance; And the path establishing unit is used for establishing a through data path of a transmission protocol corresponding to the single protocol through condition under the condition that the single protocol through condition is met between the local core particle and the remote core particle.
  11. 11. The data link initialization apparatus according to claim 10, wherein the data link initialization apparatus further comprises: and the rollback protection unit is used for continuously monitoring the link quality information between the local core particle and the remote core particle, disconnecting the data link between the local core particle and the remote core particle when the link quality information meets the preset abnormal condition, and triggering the UCIe-specification link initialization flow to reestablish the data link between the local core particle and the remote core particle.
  12. 12. An electronic device, comprising: A processor; A memory for storing executable instructions of the processor; Wherein the processor is configured to execute the executable instructions to implement the data link initialization method of any one of claims 1 to 9.
  13. 13. A computer readable storage medium, characterized in that at least one instruction in the computer readable storage medium, when executed by a processor of an electronic device, enables the electronic device to implement the data link initialization method of any one of claims 1 to 9.
  14. 14. A chip comprising a data link initialisation means as claimed in claim 10 or 11.

Description

Data link initialization method, device, electronic equipment, storage medium and chip Technical Field The disclosure relates to the technical field of chips, and in particular relates to a data link initialization method, a data link initialization device, electronic equipment, a storage medium and a chip. Background As moore's law approaches physical limits, the development of traditional monolithically integrated chips faces performance-enhancing bottlenecks. The core (Chiplet) technology is used as a novel heterogeneous integration scheme, and a large System on Chip (SoC) is split into a plurality of functional modularized cores and interconnected by utilizing an advanced packaging technology so as to improve the flexibility, yield and cost effectiveness of Chip design. UCIe (Universal Chiplet Interconnect Express, universal die interconnect high-speed interface) specification is a specification for inter-die (Chiplet) interconnect, and aims to enable integration of manufactured dies of different manufacturers and adopting different processes in the same packaging structure, thereby realizing a system-in-chip with complex composition of at least two dies. Because different vendors, different manufactured die using different technologies, may support multiple data transmission protocols, such as PCIe (PERIPHERAL COMPONENT INTERCONNECT EXPRESS, peripheral component interconnect express interface), CXL (Compute Express Link, computing high-speed interconnect), etc., these data transmission protocols support long-distance data transmission, while in order to achieve short-distance and faster data transmission between die, the UCIe specification specifies that PCIe, CXL and streaming protocols (STREAMING PROTOCOL) can be mapped, so that UCIe becomes a short-distance data transmission bridge between die, in UCIe, protocol layers (e.g., PCIe, transaction layers of CXL (Transaction Layer)) of the data transmission protocols supported by die remain unchanged, only the long-distance physical links of the data transmission protocols supported by die are replaced with short-distance physical links of UCIe specification, so UCIe provides a more efficient physical transmission channel, and die can still use its supported data transmission protocols (e.g., PCIe, CXL), so that based on the characteristics of UCIe for multiple data transmission protocols and short-distance data transmission speeds, different vendors can make the different vendors use different technologies to make up different systems compatible according to different requirements. Since UCIe specifications specify that a plurality of data transmission protocols can be mapped, when a local core and a remote core are connected, the data transmission protocols supported by the local core and the remote core need to be confirmed, and on the basis, the data transmission protocols supported by the local core and the remote core can be selected to encapsulate data. Therefore, in the UCIe specification, at each link initialization, a complete protocol negotiation procedure is forced, including exchanging protocols supported by both the local and remote kernels (e.g., PCIe, CXL, etc.) through sideband (Sideband) channels, performing procedures such as protocol discovery, priority arbitration, and parameter negotiation. Even if both the local and remote core would only want to use the same protocol (e.g., PCIe), the entire process would have to be run through, resulting in processing delays and resource overhead caused by the protocol negotiation process. Disclosure of Invention In view of this, the present disclosure provides a data link initialization method, apparatus, electronic device, storage medium and chip, which shortens the processing delay and resource overhead caused by the protocol negotiation flow in the link initialization process in determining the communication field, and maintains compatibility with UCIe specifications. According to an aspect of the embodiments of the present disclosure, there is provided a data link initialization method, including: Acquiring a first protocol capability of a local core particle and a second protocol capability of a remote core particle, wherein the first protocol capability is used for representing a transmission protocol supported by the local core particle, the second protocol capability is used for representing a transmission protocol supported by the remote core particle, at least one transmission protocol supported by the local core particle is adopted, and at least one transmission protocol supported by the remote core particle is adopted; Determining whether a preset single protocol direct connection condition is met between the local core particle and the remote core particle according to the first protocol capability, the second protocol capability and a preset physical link training result between the local core particle and the remote core particle; and establishing a pass-through data path of a tra