Cache data transmission method, network, medium and product
By introducing a multi-level home management node structure into the on-chip bus interconnect network, the data return path can be flexibly selected, solving the latency and load problems caused by the fixed data transmission path in the existing technology, and achieving more efficient data transmission.
Patent Information
- Application Number
- CN202611629229.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-21
- Publication Date
- 2026-11-27
AI Technical Summary
In existing cache coherence interconnect bus protocols, the read operation path of the requesting node is fixed, which leads to an increase in the number of data transfer hops and an excessive burden on the home management node. It is impossible to effectively optimize read latency in multi-level home management topologies and cross-chip interconnect structures.
Introducing a multi-level home management node structure into the on-chip bus interconnect network allows for flexible selection of data return paths by forwarding target identifiers. This enables monitored data to directly skip secondary home management nodes or return to its parent node in cross-chip networks, reducing the number of data packets forwarded and processed between home management nodes.
This reduces cross-die read latency, alleviates the load on the home management node, reduces the bandwidth usage of the on-chip bus interconnect network data channel, and improves data transmission efficiency.
Smart Images

Figure CN123178341A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of communication technology, and in particular to a method, network, medium, and product for buffered data transmission. Background Technology
[0002] In existing cache coherence interconnect bus protocols, read operations initiated by requesting nodes typically follow a fixed data return path: the home management node responsible for address mapping and consistency adjudication receives the request, retrieves the data from the target node or memory, and then forwards it to the requesting node via the home management node. While this path ensures the complete execution of the consistency protocol, it increases the number of data hops and places a heavy burden of data movement on the home management node. Summary of the Invention
[0003] This disclosure provides a method, network, medium, and product for caching data transmission.
[0004] In a first aspect, embodiments of this disclosure provide a cached data transmission method applied to an on-chip bus interconnect network, the on-chip bus interconnect network including multiple requesting nodes and multiple levels of home management nodes; the multiple requesting nodes include at least a first requesting node located in a first die and a second requesting node located in a second die; the multiple levels of home management nodes include at least a first-level home management node and a second-level home management node; the first-level home management node is used to manage consistency within the die, and the second-level home management node is used to manage global consistency of a target address; the method includes: the first requesting node sending a read request to the second-level home management node; in response to receiving the read request, the second-level... The home management node determines the forwarding target identifier based on the request type of the listening request to be initiated, and sends a listening request carrying the forwarding target identifier to the second requesting node; the request type is a direct cache transmission type or a non-direct cache transmission type; the forwarding target identifier points to the parent node of the second-level home management node or the second-level home management node; in response to receiving the listening request, the second requesting node reads the listening data from the cache; and sends the listening data to the node pointed to by the forwarding target identifier; wherein, if the forwarding target identifier points to the second-level home management node, the second-level home management node forwards the listening data to the first requesting node.
[0005] Secondly, embodiments of this disclosure provide an on-chip bus interconnect network, comprising multiple requesting nodes and multiple levels of home management nodes; the multiple requesting nodes include at least a first requesting node located in a first die and a second requesting node located in a second die; the multiple levels of home management nodes include at least a first-level home management node and a second-level home management node; the first-level home management node is used to manage consistency within the die, and the second-level home management node is used to manage global consistency of a target address; the first requesting node is configured to: send a read request to the second-level home management node; the second-level home management node is configured to: in response to receiving the read request, according to the pending... The request type of the monitoring request determines the forwarding target identifier, and a monitoring request carrying the forwarding target identifier is sent to the second requesting node; the request type is a direct cache transmission type or a non-direct cache transmission type; the forwarding target identifier points to the parent node of the secondary home management node or the secondary home management node; the second requesting node is configured to: in response to receiving the monitoring request, read monitoring data from the cache; and send the monitoring data to the node pointed to by the forwarding target identifier; wherein, if the forwarding target identifier points to the secondary home management node, the secondary home management node forwards the monitoring data to the first requesting node.
[0006] Thirdly, embodiments of this disclosure provide a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect.
[0007] Fourthly, embodiments of this disclosure provide a computer program product including a computer program that, when executed by a processor, implements the method described in the first aspect.
[0008] In this embodiment of the disclosure, the on-chip bus interconnect network includes multiple requesting nodes, such as a first requesting node for a first die and a second requesting node for a second die. The network also includes multiple levels of home management nodes, such as a primary home management node and a secondary home management node. The primary home management node is used to manage consistency within the die, and the secondary home management node is used to manage global consistency of the target address. The first requesting node can send a read request to the secondary home management node. After receiving the read request, the secondary home management node can determine the forwarding target identifier based on whether the request type of the listening request to be initiated is a direct cache transmission type or a non-direct cache transmission type. The forwarding target identifier instructs the second requesting node to skip the secondary home management node and return the listening data to the first requesting node or return it to the secondary home management node when returning data. After receiving the listening request, the second requesting node reads the listening data and sends the listening data to the node pointed to by the forwarding target identifier. If the listening data is sent to the secondary home management node, the secondary home management node can forward the listening data to the first requesting node. In this way, in an on-chip bus interconnect network spanning multiple chips and multiple levels of home management nodes, the return of monitored data no longer needs to strictly follow the original request path level by level. Instead, the monitored data can be directly directed to the requesting node by forwarding the target identifier. As a result, the data return path can be flexibly selected according to the request type. In some scenarios, it can skip the second-level home management node, thereby reducing the number of times data packets are forwarded and processed between home management nodes, reducing cross-chip read latency, alleviating the load on home management nodes, and reducing the bandwidth occupation of the on-chip bus interconnect network data channel. Attached Figure Description
[0009] In the accompanying drawings of the embodiments disclosed herein:
[0010] Figure 1 This is a schematic diagram of an on-chip bus interconnection network provided in an embodiment of the present disclosure.
[0011] Figure 2 A flowchart illustrating a cached data transmission method provided in an embodiment of this disclosure.
[0012] Figure 3 This is a block diagram illustrating the composition of a computer-readable medium provided in an embodiment of the present disclosure.
[0013] Figure 4 This is an interactive schematic diagram of a cached data transmission method provided in an embodiment of this disclosure.
[0014] Figure 5 This is an interactive schematic diagram of a cached data transmission method provided in an embodiment of this disclosure.
[0015] Figure 6 This is an interactive schematic diagram of a cached data transmission method provided in an embodiment of this disclosure.
[0016] Figure 7 This is a schematic diagram of the structure of a RART provided in an embodiment of this disclosure.
[0017] Figure 8 This is a schematic diagram of the structure of a HART provided in an embodiment of this disclosure. Detailed Implementation
[0018] To enable those skilled in the art to better understand the technical solutions of this disclosure, the embodiments of this disclosure are described in detail below with reference to the accompanying drawings.
[0019] The present disclosure will be described more fully below with reference to the accompanying drawings; however, the embodiments shown may be embodied in different forms, and the present disclosure should not be construed as limited to the embodiments set forth below. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will enable those skilled in the art to fully understand the scope of the disclosure.
[0020] The accompanying drawings are provided to further illustrate this disclosure and form part of the specification. They are used together with the detailed embodiments to explain this disclosure and do not constitute a limitation thereof. These and other features and advantages will become more apparent to those skilled in the art from the description of detailed embodiments with reference to the accompanying drawings.
[0021] Unless otherwise specified, each embodiment and feature of this disclosure may be used individually or in combination with other embodiments and features thereof.
[0022] Those skilled in the art will understand that various changes in form and detail may be made to the embodiments of this disclosure without departing from the scope of this disclosure as set forth by the appended claims.
[0023] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to limit the disclosure. The term "and / or" as used in this disclosure includes any and all combinations of one or more of the associated enumerated entries. The singular forms "a" and "the" as used in this disclosure are also intended to include the plural forms, unless the context clearly indicates otherwise. The terms "comprising," "made of," etc., as used in this disclosure specify the presence of the stated feature, integral, step, operation, element, and / or component, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof.
[0024] Unless otherwise specified, all terms used in this disclosure (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this disclosure, and will not be interpreted as having an idealized or overly formal meaning, unless expressly so defined in this disclosure.
[0025] This disclosure is not limited to the embodiments shown in the accompanying drawings, but includes modifications to the configuration based on the manufacturing process. Therefore, the areas illustrated in the drawings are schematic, and the shapes of the areas shown illustrate specific shapes of the areas of an element, but are not intended to be limiting.
[0026] To facilitate understanding and description, some terms involved in the embodiments of this disclosure will be explained below.
[0027] Request nodes (RNs) can be used to connect to processors or other devices and can initiate different types of access requests, such as read and write, to a consistent memory space.
[0028] A Coherent Home Node (CHN) can be used to cache cache lines in the memory address space it manages, maintaining cache coherency between the processor and storage devices. A cache line is the smallest data block in the cache.
[0029] Chip-to-Chip Protocol Gateway (C2C) can be used for cross-chip communication. Cross-chip communication generally uses a different transmission protocol than on-chip communication. For example, cross-chip communication can use the Chip-to-Chip (C2C) protocol, the Peripheral Component Interconnect Express (PCIE) bus protocol, etc.
[0030] The Request Node Address Route Table (RART) is located in both the RN and C2C. It can be used to process the target address in the RN or C2C and find the target node of the next level of routing, i.e., the next-hop node.
[0031] The Home Address Route Table (HART) is located in the CHN and can be used to process the destination address in the CHN and find the target node of the next level of routing, i.e., the next-hop node.
[0032] The snoop filter (SF) is located inside the CHN and can be used to record the cache line status of each processor. When a request for a cache line at the same address occurs, the SF record is looked up, and a snoop is sent to other processors, invalidating the cache line at that address within them. This is used to maintain cache consistency among multiple processors.
[0033] Network on Chip (NoC) is a communication network architecture implemented on an integrated circuit chip, used to connect various functional modules, processors, storage devices and other important components on the chip.
[0034] Interconnect buses can be used to connect all processors and storage devices on an on-chip network.
[0035] On-chip bus interconnect network refers to an on-chip network that connects the processor and storage devices through an interconnect bus.
[0036] In the existing cache coherence interconnect bus protocol, the read operation initiated by the requesting node usually follows a fixed data return path. Although this can ensure the complete execution of the consistency protocol, it increases the number of data transfer hops and makes the home management node bear a large data migration burden.
[0037] To optimize the above path, a Direct Cache Transfer (DCT) mechanism has been introduced in related technologies. This mechanism allows another requesting node in the on-chip bus interconnect network to bypass the home management node and directly send the data from its home cache to the original requesting node. Simultaneously, it sends a status acknowledgment response to the home management node to complete the consistency state update. This mechanism effectively reduces read latency, alleviates the load on the home management node, and frees up data channel bandwidth.
[0038] However, the applicability of the aforementioned direct cache transmission mechanism is strictly dependent on a single-level home management domain. This mechanism only supports scenarios where there is only one home management node in the network. When the system expands to a multi-level home management topology, multi-die stacking, or cross-chip interconnect structure, the data routing path may sequentially pass through multiple home management nodes. In such scenarios, this mechanism cannot trigger or complete cross-level direct cache transmission, leading to the failure of system-level latency optimization and limiting the performance expansion of large-scale multi-chip consistency systems.
[0039] In this embodiment of the disclosure, the on-chip bus interconnect network includes multiple requesting nodes, such as a first requesting node for a first die and a second requesting node for a second die. The network also includes multiple levels of home management nodes, such as a primary home management node and a secondary home management node. The primary home management node is used to manage consistency within the die, and the secondary home management node is used to manage global consistency of the target address. The first requesting node can send a read request to the secondary home management node. After receiving the read request, the secondary home management node can determine the forwarding target identifier based on whether the request type of the listening request to be initiated is a direct cache transmission type or a non-direct cache transmission type. The forwarding target identifier instructs the second requesting node to skip the secondary home management node and return the listening data to the first requesting node or return it to the secondary home management node when returning data. After receiving the listening request, the second requesting node reads the listening data and sends the listening data to the node pointed to by the forwarding target identifier. If the listening data is sent to the secondary home management node, the secondary home management node can forward the listening data to the first requesting node. In this way, in an on-chip bus interconnect network spanning multiple chips and multiple levels of home management nodes, the return of monitored data no longer needs to strictly follow the original request path level by level. Instead, the monitored data can be directly directed to the requesting node by forwarding the target identifier. As a result, the data return path can be flexibly selected according to the request type. In some scenarios, it can skip the second-level home management node, thereby reducing the number of times data packets are forwarded and processed between home management nodes, reducing cross-chip read latency, alleviating the load on home management nodes, and reducing the bandwidth occupation of the on-chip bus interconnect network data channel.
[0040] This disclosure provides an on-chip bus interconnect network, which includes multiple requesting nodes and multiple levels of home management nodes.
[0041] The multiple requesting nodes include at least a first requesting node located on a first die and a second requesting node located on a second die. The first die can be any die in the on-chip bus interconnect network, and the second die can be any die in the on-chip bus interconnect network that is different from the first die. Therefore, the first requesting node and the second requesting node are located on different dies. If the first requesting node reads data from the second requesting node, it is a cross-die data read.
[0042] The multi-level home management node includes at least a primary home management node and a secondary home management node. The primary home management node can manage consistency within a granular scope; for example, a primary home management node located in the first granular can manage consistency within the first granular scope, and a primary home management node located in the second granular can manage consistency within the second granular scope. The secondary home management node can manage global consistency for a target address. It should be understood that the primary and secondary home management nodes for a target address may be the same home management node. For example, the home management node can be a CHN, a fully consistent home node (HN-F), a home agent, etc. In this embodiment, CHN is used as an example of the home management node for illustration, and is not intended to limit the type of home management node.
[0043] The on-chip bus interconnect network of this disclosure adopts a coherent bus, such as the CHI bus, to connect components such as RN, CHN, and C2C in the network.
[0044] In some embodiments, the on-chip bus interconnect network of this disclosure may adopt a Symmetric Multi-Processing (SMP) architecture, in which all processors are equal in status and share system resources, consisting of multiple symmetrical chips. Any two chips communicate with each other through a cross-chip proxy node. Each chip may include multiple dies, and each die is composed of components such as RN and CHN.
[0045] Figure 1 This is a schematic diagram of an on-chip bus interconnect network architecture provided for an embodiment of this disclosure. Figure 1 As shown, the on-chip bus interconnect network includes Chip0 and Chip1, which are connected via C2C. Taking Chip0 as an example, it includes Die0 and Die1. Die0 includes multiple RNs and multiple CHNs; Die1 includes multiple RNs and multiple CHNs. (Refer to...) Figure 1 RN contains RART, CHN contains HART and SF, and C2C contains RART.
[0046] It should be understood that Figure 1 This is merely an example of an on-chip bus interconnect network according to embodiments of this disclosure and is not intended to limit the scope of on-chip bus interconnect networks. In embodiments of this disclosure, there are no limitations on the number of chips in the on-chip bus interconnect network, the number of C2C connections between any two chips, the number of dies contained in any chip, and the number of RNs, CHNs, and SNs contained in any die.
[0047] In one example, the on-chip bus interconnect network provided in this disclosure can be a server chip. Server chips have high computing demands, requiring multiple processors to be connected via an interconnect bus, employing multi-level caching to maintain consistency, and needing to support direct cache transfer services. In yet another example, the on-chip bus interconnect network provided in this disclosure can be a chip system. A chip system consists of multiple dies or chips and needs to support direct cache transfer services across dies and chips.
[0048] In this embodiment, taking a two-level consistency structure in a multi-level cache architecture as an example, the granularity is used as the boundary for multi-level cache consistency, and the ownership management node is divided into a first-level ownership management node and a second-level ownership management node. In other multi-level cache structures, such as a three-level consistency structure, the boundaries for multi-level cache consistency can be defined as needed. The processing of the last-level cache ownership management node can refer to the above-mentioned second-level ownership management node, and the processing of other non-last-level cache ownership management nodes can refer to the above-mentioned first-level ownership management node. Further details are omitted here.
[0049] Taking the die as the consistency boundary in a two-level consistency architecture as an example, the first-level home management node can be used to manage the cache consistency of the target address within its own die, and the second-level home management node can be used to manage the global cache consistency of the target address. For a RN, the home management node within the same die is considered its first-level home management node. RN nodes within the same die share the L3 cache space on the first-level home management node within the die, and the first-level home management node within the die maintains the cache consistency of multiple RNs within the die for the same address. For an RN, home management nodes outside the die and outside the chip are considered its second-level home management nodes, and the second-level home management nodes directly manage the global cache consistency of the target address. In this embodiment, when an RN initiates an access, it is first processed by the first-level home management node within the same die before a decision is made on whether to access the second-level home management node across dies. It should be understood that in this embodiment, the request address is used as the target address.
[0050] Considering that the embodiments of this disclosure require planning the data return path for the monitored data, and that the data return path is determined by the location identification information of each node along the way, for ease of understanding, the location identification of each node in the on-chip bus interconnect network will be explained below.
[0051] For any node in the on-chip bus interconnect network, its location identifier consists of three parts: cross chip ID (ccid), die ID (dieid), and node ID (nodeid).
[0052] For CCID: zero represents access within the local chip, and non-zero values represent access to a remote chip. In one example, for any given chip, all cross-chip agents on that chip are encoded sequentially, starting from 1, as the on-chip logical identifier for each cross-chip agent. This logical identifier is used as the valid identifier for routing to the destination chip. It should be understood that CCID represents the logical identifier seen by each chip regarding the interconnection between the on-chip cross-chip agent and other chips, and is different from the actual physical identifier (chipid) of each chip in the on-chip bus interconnect network.
[0053] For dieid: Each die is sequentially encoded according to the number of dies on a chip, and all nodes on a die have the same dieid.
[0054] For nodeid: it represents the node identifier of each node within a die. During routing, this node identifier can be used to route to the corresponding target node. It should be understood that the encoding method of node identifier may be different in different types of on-chip bus interconnect networks. For example, in a mesh network, the coordinates (x, y) of the first quadrant of the cross coordinate system, the horizontal x-axis and the vertical y-axis, can be used as the node identifier.
[0055] During routing, whether access is within the same die, within the same chip but across dies, or across chips, the identifiers related to direct memory transfer in the on-chip bus interconnect network include at least the following four types.
[0056] TgtID = {Tgtccid, Tgtdieid, Tgtnodeid}: Target node identifier, representing the location identifier of the target node, existing in the request (REQ) channel, data (DAT) channel, and response (RSP) channel. Among them, Tgtccid represents the logical identifier of the target node, Tgtdieid represents the die identifier of the target node, and Tgtnodeid represents the node identifier of the target node.
[0057] SrcID = {Srcccid, Srcdieid, Srcnodeid}: Source node identifier, representing the location identifier of the source node, existing in the REQ channel, DAT channel, and RSP channel. Here, Srcccid represents the logical identifier of the source node, Srcdieid represents the die identifier of the source node, and Srcnodeid represents the node identifier of the source node.
[0058] FwdNID = {Fwdccid, Fwddieid, Fwdnodeid}: Forwarding target identifier, indicating the location identifier of the forwarding target, existing in the listener (SNP) channel. Where Fwdccid represents the logical identifier of the forwarding target, Fwddieid represents the die identifier of the forwarding target, and Fwdnodeid represents the node identifier of the forwarding target. The forwarding target identifier can be used to indicate the location of the target node in the on-chip bus interconnect network for which the listened node needs to forward data.
[0059] HomeNID = {Homeccid, Homedieid, Homenodeid}: Home node identifier, existing in the DAT channel. Homeccid represents the logical identifier of the home node, Homedieid represents the die identifier of the home node, and Homenodeid represents the home node itself. The home node identifier can be used to indicate the location of the home management node (such as CHN) that needs to return a response within the on-chip bus interconnect network.
[0060] In a first aspect, embodiments of this disclosure provide a cached data transmission method, applied to the on-chip bus interconnect network provided in embodiments of this disclosure, for example... Figure 1 The on-chip bus interconnect network is shown. (Refer to...) Figure 2 The cached data transmission method provided in this embodiment may include the following steps S101 to S103.
[0061] S101, the first requesting node sends a read request to the secondary home management node.
[0062] A request node is a node in an on-chip bus interconnect network that can initiate access requests, receive listener requests, or return listener data. In one example, a request node can be a device such as a processor or accelerator. Request nodes typically contain a cache to store copies of data in memory.
[0063] The first requesting node refers to a requesting node located in the first die. In this embodiment, the first requesting node is the request initiator. When the first requesting node needs to read data from the target address, it can initiate a read request. The read request carries the target address. The second requesting node refers to a requesting node located in the second die. In this embodiment, the second requesting node is the node being monitored.
[0064] The secondary home management node is responsible for maintaining global consistency of the target address. The first requesting node can send read requests to the secondary home management node. Upon receiving a read request, the secondary home management node needs to maintain global consistency of the target address; therefore, it can send a listening request to the second requesting node, which may hold a cached copy of the target address. Upon receiving the listening request, the second requesting node can read the listening data corresponding to the target address from its cache and return the listening data to the first requesting node.
[0065] S102, in response to receiving a read request, the secondary home management node determines the forwarding target identifier according to the request type of the listening request to be initiated, and sends a listening request carrying the forwarding target identifier to the second requesting node; the request type is a direct cache transmission type or a non-direct cache transmission type; the forwarding target identifier points to the parent node of the secondary home management node or the secondary home management node.
[0066] After receiving a read request, the secondary home management node can initiate either a direct cache transmission type listening request or a non-direct cache transmission type listening request. A direct cache transmission type listening request allows the monitored data to bypass the secondary home management node and return directly to its parent node. A non-direct cache transmission type listening request requires the monitored data to first return to the secondary home management node, which then forwards it to the first requesting node.
[0067] The listening request sent by the secondary home management node to the second requesting node may carry a forwarding target identifier. The forwarding target identifier can be used to indicate the target node when the second requesting node returns listening data. This forwarding target identifier can point to the parent node of the secondary home management node or the secondary home management node itself.
[0068] If the listening request type is a direct cached transmission type, the forwarding target identifier can point to the first request node. In this case, the second request node can bypass the secondary home management node and directly return the listening data to the node above the secondary home management node. If the listening request type is a non-direct cached transmission type, the forwarding target identifier needs to point to the secondary home management node. In this case, the listening data returned by the second request node first reaches the secondary home management node and is then forwarded to the first request node.
[0069] S103, in response to receiving the listening request, the second requesting node reads the listening data from the cache and sends the listening data to the node pointed to by the forwarding target identifier; wherein, if the forwarding target identifier points to the secondary home management node, the secondary home management node forwards the listening data to the first requesting node.
[0070] If the second requesting node has a cached copy of the target address in its cache, it can read the copy from the cache and send it as listening data to the node pointed to by the forwarding target identifier. If the forwarding target identifier points to the first requesting node, the second requesting node can bypass the secondary home management node and send the listening data directly to the first requesting node; if the forwarding target identifier points to the secondary home management node, the second requesting node sends the listening data to the secondary home management node; the secondary home management node receives the listening data and forwards it to the first requesting node.
[0071] In this embodiment, the secondary home management node can determine the forwarding target identifier based on the request type of the monitoring request, thereby indicating whether the monitored data returns by bypassing or passing through the secondary home management node. Thus, in a multi-level, cross-chip bus interconnect network with multiple home management nodes, the return of monitored data no longer necessarily requires strictly following the original request path step-by-step. Instead, the monitoring data can be directly directed to the requesting node via the forwarding target identifier. Therefore, the data return path can be flexibly selected based on the request type, and in some scenarios, the secondary home management node can be skipped. This reduces the number of data packet forwardings and processing operations between home management nodes, lowers cross-chip read latency, reduces the load on home management nodes, and reduces the bandwidth consumption of the on-chip bus interconnect network data channel.
[0072] The process of determining the forwarding target identifier by the secondary home management node is explained below.
[0073] In some embodiments, in step S102, the secondary home management node determines the forwarding target identifier based on the request type of the listening request to be initiated, including the following steps S1021 to S1024.
[0074] S1021, in response to the request type of the listening request being non-direct cache transmission type, the secondary home management node uses the granular identifier and node identifier of the secondary home management node as the granular identifier and node identifier of the forwarding target identifier, respectively, so that the forwarding target identifier points to the secondary home management node.
[0075] When the request type is a non-direct cache transmission type, it indicates that the monitored data is not allowed to directly cross the secondary home management node, meaning the secondary home management node is a necessary node in the data return path of the monitored data. Therefore, the secondary home management node can use its own granular identifier and node identifier as the granular identifier and node identifier of the forwarding target identifier, respectively, so that the forwarding target identifier points to the secondary home management node.
[0076] This ensures the controllability of the data return path in scenarios where data is not directly cached and transmitted, preventing monitored data from bypassing the secondary ownership management node and being directly returned to the request node.
[0077] S1022, in response to the secondary home management node receiving a read request directly from the first requesting node and the request type of the listening request being direct cache transmission type, the secondary home management node uses the source node's granular identifier and node identifier in the read request as the granular identifier and node identifier of the forwarding target identifier, respectively, so that the forwarding target identifier points to the first requesting node.
[0078] For any given home management node, it can act as a primary home management node, a secondary home management node, or both. That is, the primary home management node for the target address on the first die may also be the secondary home management node managing its global consistency.
[0079] If the primary home management node of the target address in the first-level die and the secondary home management node of the target address globally are the same home management node, the first requesting node can directly send the read request to that secondary home management node. If the primary home management node of the target address in the first-level die and the secondary home management node of the target address globally are not the same home management node, the first requesting node first sends the read request to the primary home management node of the target address in the first-level die, and then that primary home management node forwards the read request to the secondary home management node of the target address globally.
[0080] If the secondary home management node receives a read request directly from the first requesting node, then the source node of the read request received by the secondary home management node is the first requesting node. If a listening request of the direct cache transmission type is initiated, the granular identifier and node identifier of the first requesting node can be used as the granular identifier and node identifier of the forwarding target identifier, so that the forwarding target identifier points to the first requesting node.
[0081] S1023, in response to the secondary home management node receiving a read request via the primary home management node of the first chip, wherein the read request is a non-cross-chip request and the request type of the listening request is direct cache transmission type, the secondary home management node uses the chip identifier and node identifier of the source node in the read request as the chip identifier and node identifier of the forwarding target identifier, respectively, so that the forwarding target identifier points to the primary home management node of the first chip.
[0082] The first requesting node sends the read request to the primary home management node of the first die. This primary home management node determines whether a cached copy of the target address exists within the first die's scope. If no cached copy of the target address exists within the first die's scope, the primary home management node forwards the read request to the secondary home management node at the target address. The primary and secondary home management nodes may reside on the same chip or on different chips. If the primary and secondary home management nodes are on the same chip, the read request received by the secondary home management node is a non-cross-chip request; otherwise, the read request received by the secondary home management node is a cross-chip request.
[0083] If the secondary home management node receives a read request via the primary home management node of the first chip, and the read request is not a cross-chip request, and initiates a listening request of the direct cache transmission type, it can use the chip identifier and node identifier of the primary home management node of the first chip as the chip identifier and node identifier of the forwarding target identifier, thereby making the forwarding target identifier point to the primary home management node of the first chip. After receiving the listening data, the primary home management node of the first chip can send the listening data to the first requesting node.
[0084] In this way, when the primary and secondary home management nodes are on the same chip, the data return path of the monitored data can skip the secondary home management node, thereby further reducing cross-chip read latency, alleviating the load on the secondary home management node, and improving the utilization efficiency of the data channel.
[0085] S1024, in response to the secondary home management node receiving a read request via the primary home management node of the first chip, and the read request being a cross-chip request, the secondary home management node uses the non-direct cache transmission type as the request type of the listening request, and uses the chip identifier and node identifier of the secondary home management node as the chip identifier and node identifier of the forwarding target identifier, respectively, so that the forwarding target identifier points to the secondary home management node.
[0086] In the case of a cross-shard read request, to ensure the reliability and consistency of the returned cross-shard data, the secondary home management node cannot initiate a listening request of the direct cache transmission type. Therefore, the secondary home management node initiates a listening request of the non-direct cache transmission type. In this case, the forwarding target identifier points to the secondary home management node.
[0087] In this way, in cross-shard scenarios between primary and secondary hierarchical management nodes, the data return path of the monitored data is guaranteed to comply with the requirements of cross-shard path and consistency protocol, avoiding routing errors, consistency state chaos or abnormal transaction completion caused by direct cross-shard return.
[0088] As one implementation of this disclosure, by distinguishing between different scenarios such as non-direct cache transmission, direct cache transmission, secondary home management nodes directly receiving read requests, secondary home management nodes receiving read requests via primary home management nodes, non-cross-chip requests, and cross-chip requests, the direction of the forwarding target identifier can be accurately determined. In scenarios where direct cache transmission is permissible and suitable, the monitored data is directly returned to the first requesting node, thereby reducing the number of data packet forwardings and processing times between home management nodes, reducing cross-chip read latency, alleviating the load on home management nodes, and reducing the occupation of bandwidth in the on-chip bus interconnect network data channel. In scenarios requiring a return via a secondary home management node, the monitored data is first returned to the secondary home management node, and then forwarded by the secondary home management node to the first requesting node, thereby ensuring the reliability of cross-chip routing and global consistency processing. Therefore, this disclosure achieves a balance between efficiency and reliability, and is applicable to on-chip bus interconnect networks that span across chips and have multiple levels of home management nodes.
[0089] In some embodiments, the secondary home management node and the second request node may reside on the same chip or on different chips. Considering that listening requests can be transmitted within the chip in a same-chip scenario, while cross-chip scenarios require transmission through a cross-chip proxy, the transmission paths differ. The following sections will explain the same-chip and cross-chip scenarios separately.
[0090] In some embodiments, the secondary home management node and the second request node are located on the same chip. In step S102, the secondary home management node sends a listening request carrying a forwarding target identifier to the second request node, including the following steps S1025 and S1026.
[0091] S1025, the secondary home management node sends a listening request carrying the forwarding target identifier to the primary home management node of the second die.
[0092] S1026, the primary management node of the second die sends a listening request to the second requesting node.
[0093] The primary home management node of the second die is used to manage the consistency of target addresses within the second die range. Although the secondary home management node and the second requesting node reside on the same chip, secondary home management requires communication with the primary home management node of the second die to enable communication between the second requesting node and the secondary home management node. The secondary home management node can first send a listening request carrying a forwarding target identifier to the primary home management node of the second die. After receiving the listening request, the primary home management node of the second die forwards it to the second requesting node.
[0094] In this way, when sending listening requests within the same chip, the primary home management node of the second chip completes the distribution of listening requests within the second chip, reducing the processing burden on the secondary home management node and ensuring that the listening requests accurately reach the second requesting node.
[0095] In some embodiments, the secondary home management node is located on the first chip, and the second request node is located on a second chip different from the first chip. The first cross-chip agent on the first chip is communicatively connected to the second cross-chip agent on the second chip. In step S102, the secondary home management node sends a listening request carrying a forwarding target identifier to the second request node, including the following steps S1027 to S1030.
[0096] S1027, the secondary home management node sends a listening request carrying the forwarding target identifier to the second cross-slice agent via the first cross-slice agent.
[0097] S1028, the second cross-slice agent uses the logical identifier of the second cross-slice agent to update the logical identifier in the forwarding target identifier.
[0098] S1029, the second cross-chip agent sends a listening request carrying the updated forwarding target identifier to the primary home management node of the second chip.
[0099] S1030, the primary management node of the second die sends a listening request to the second requesting node.
[0100] The first cross-chip proxy is a cross-chip proxy on the first chip, and the second cross-chip proxy is a cross-chip proxy on the second chip. The first chip can be any chip on the on-chip bus interconnect network, and the second chip can be any chip on the on-chip vertical interconnect network other than the first chip.
[0101] The secondary home management node is located on the first chip, and the second request node is located on the second chip. Therefore, the listening request needs to be transmitted across chips. The secondary home management node sends the listening request carrying the forwarding target identifier to the first cross-chip agent, which then forwards it to the second cross-chip agent on the second chip.
[0102] The forwarding target identifier contains a logical identifier. In cross-shard scenarios, the cross-shard agent needs to be identified based on the logical identifier. Therefore, before sending a listening request to the primary home management node of the second dies, the second cross-shard agent first updates the logical identifier in the forwarding target identifier to the logical identifier of the second cross-shard agent. This ensures that the listening data can be accurately returned to the second cross-shard agent, and the second cross-shard agent can accurately send it to the first cross-shard agent.
[0103] It should be noted that when the primary home management node of the second crystal sends a listening request to the second request, it does not need to carry the forwarding target identifier, because the listening data returned by the second request node must pass through the primary home management node of the second crystal, and then be returned to the secondary home management node by the primary home management node of the second crystal.
[0104] As one implementation of this disclosure, in the scenario of sending a listening request across slices, the listening request is transmitted through a first cross-slice proxy and a second cross-slice proxy, and the logical identifier in the forwarding target identifier is updated by the second cross-slice proxy after crossing slices, which can ensure that the listening data can be returned according to the correct path.
[0105] To ensure the complete completion of globally consistent transactions even when the monitored data bypasses the secondary home management node, in some embodiments, the monitored data carries a home node identifier pointing to the secondary home management node. The cached data transmission method provided in this disclosure further includes the following step S104.
[0106] S104 After receiving the listening data, the first requesting node returns a completion response to the secondary home management node based on the home node identifier.
[0107] The home node identifier exists in the data channel and is used to indicate the home management node to which the completion response should be returned. The home node identifier includes a logical identifier, a grain identifier, and a node identifier. When the listened data returns without passing through the secondary home management node, the first requesting node, upon receiving the listened data, needs to return a completion response to the secondary home management node to notify it that the read transaction has been completed. In this way, the secondary home management node can still obtain the transaction completion status even without relaying the listened data, maintaining the integrity of global consistency tracking.
[0108] In some embodiments, the cached data transmission method provided in this disclosure further includes the following step S105.
[0109] S105, the secondary home management node receives the completion response and releases local resources.
[0110] Local resources include table entries, transaction tracking resources, cache resources, and listener filtering resources used by the secondary-level management node to process the read request. Once the secondary-level management node receives the completion response, it determines that the read transaction is finished and can release the corresponding local resources to avoid resource waste.
[0111] In some embodiments, the cached data transmission method provided in this disclosure further includes the following step S106.
[0112] S106, the secondary home management node will determine the direct cache transmission type as the request type if the preset conditions are met; the preset conditions include: the read request is a read request of the preset type and the source restriction condition and cross-shard restriction condition are not triggered; the preset type is either a consistent non-exclusive type or a consistent exclusive type; the source restriction condition is: the source is a listening request; the cross-shard restriction condition is: the read request is a cross-shard request.
[0113] If the preset conditions are met, the secondary-level management node will determine the direct cache transmission type as the request type; if the preset conditions are not met, it will determine the non-direct cache transmission type as the request type.
[0114] The default type is either consistent non-exclusive or consistent exclusive, indicating that the read request belongs to a consistent request type that is suitable for direct cached transmission.
[0115] The source restriction condition is that the source is a listening request. That is, if the current request itself originates from a listening request, it cannot be directly cached and transmitted again to avoid confusion of transaction sources or circular processing.
[0116] The cross-shard restriction condition is that the read request is a cross-shard request. That is, direct cache transmission cannot be used in cross-shard scenarios to avoid cross-shard routing and consistency processing risks.
[0117] As one implementation of this disclosure, when the read request is a read request of a preset type, the source of the read request is not a listening request, and the read request is not a cross-shard request, the secondary home management node can determine the direct cache transmission type as the request type of the listening request. This can provide a guarantee for consistency management.
[0118] In some embodiments, the cached data transmission method provided in this disclosure further includes the following step S107.
[0119] S107, the secondary home management node determines whether the read request is a cross-slice request or an intra-slice request based on the logical identifier of the source node in the read request.
[0120] When the logical identifier of the source node is a first preset value, the secondary home management node can determine that the read request is a cross-slice request; when the logical identifier of the source node is a second preset value, the secondary home management node can determine that the read request is an intra-slice request. The first and second preset values can be set as needed. In one example, the first preset value can be a non-zero value, and the second preset value can be zero. The first preset value can include multiple non-zero values, each corresponding to a cross-slice proxy. The second preset value, besides being set to zero, can also be set to other values that cannot correspond to a cross-slice proxy. The specific setting of the logical identifier is not limited in this embodiment.
[0121] In some embodiments, step S101, in which the first requesting node sends a read request to the secondary home management node, includes the following steps.
[0122] S1011, the first requesting node sends a read request to the primary home management node of the first die.
[0123] S1012, in response to receiving a read request, the primary home management node of the first die determines that the cached copy of the target address is not within the scope of the first die, and forwards the read request to the secondary home management node.
[0124] The primary home management node of the first die is responsible for managing consistency within the first die. When the first requesting node is located in the first die, it first sends the read request to the primary home management node of the first die when initiating a read request.
[0125] Upon receiving a read request, the primary home management node of the first granular unit first determines whether the cached copy of the target address is within the scope of the first granular unit. If the cached copy of the target address is not within the scope of the first granular unit, it means that the read request cannot be satisfied within the first granular unit, and it needs to be handled by the secondary home management node, which manages the global consistency of the target address. Therefore, the primary home management node of the first granular unit can forward the read request to the secondary home management node. If the cached copy of the target address is within the scope of the first granular unit, the primary home management node can complete the response processing within the first granular unit, and only needs to notify the secondary home management node to perform consistency management.
[0126] As one implementation of this disclosure, the read request is forwarded only when there is no required cache copy within the first die range, which can reduce the load on the secondary home management node and improve the processing efficiency of the on-chip bus interconnect network.
[0127] This disclosure enables cross-level direct cache transmission in multi-level home management topologies and multi-die / multi-chip interconnect scenarios. This disclosure implements mechanisms for multi-level home management nodes collaboratively triggering direct cache transmission and mechanisms for direct cache transmission across physical chip boundaries.
[0128] In the mechanism of direct cache transmission triggered collaboratively by multi-level home management nodes: by formulating collaborative processing logic within each level of home management node, different collaborative responsibilities are assigned to local home nodes (request forwarding and resource release) and global home nodes (directory query and forwarding instruction issuance), enabling all levels of home management nodes in the multi-level consistency architecture to participate collaboratively in the direct cache transmission process. This optimizes the original read data path that required step-by-step relay into a single-hop direct transmission path between requesting nodes, significantly reducing read access latency in multi-level topologies.
[0129] In the mechanism of direct cache transmission across physical chip boundaries: by systematically introducing cross-chip topology location information (including cross-chip identifier, die identifier, and node identifier) into forwarding instructions and data packets, the cross-chip cache data sent by the responding node can be autonomously routed to the source requesting node without relying on the home node for relay; at the same time, by carrying chip identifier information in the listening response, the home management nodes at all levels can correctly identify the source of cross-chip transactions and match resource release operations, avoiding resource suspension or deadlock problems in cross-chip scenarios, and extending the applicability of the direct cache transmission mechanism from a single domain within a chip to a multi-chip interconnected system.
[0130] The two mechanisms work together: the secondary home management node is responsible for generating and distributing cross-slice routing information, while the primary home management node is responsible for receiving cross-slice response information and releasing resources. Together, they form a complete cross-slice direct cache transmission control closed loop, realizing cross-slice transaction state synchronization brought about by the separation of control plane and data plane in a multi-level architecture.
[0131] Secondly, embodiments of this disclosure provide an on-chip bus interconnect network, which includes multiple requesting nodes and multiple levels of home management nodes; the multiple requesting nodes include at least a first requesting node located in a first die and a second requesting node located in a second die; the multiple levels of home management nodes include at least a first-level home management node and a second-level home management node; the first-level home management node is used to manage consistency within the die, and the second-level home management node is used to manage global consistency of the target address.
[0132] The first requesting node is configured to send a read request to the secondary home management node.
[0133] The secondary home management node is configured to: in response to receiving the read request, determine the forwarding target identifier according to the request type of the listening request to be initiated, and send a listening request carrying the forwarding target identifier to the second requesting node; the request type is a direct cache transmission type or a non-direct cache transmission type; the forwarding target identifier points to the parent node of the secondary home management node or the secondary home management node.
[0134] The second request node is configured to: in response to receiving the listening request, read listening data from the cache; and send the listening data to the node pointed to by the forwarding target identifier; wherein, if the forwarding target identifier points to the secondary home management node, the secondary home management node forwards the listening data to the first request node.
[0135] Thirdly, referring to Figure 3This disclosure provides a computer-readable medium storing a computer program that, when executed by a processor, implements any of the cached data transmission methods of this disclosure.
[0136] Fourthly, embodiments of this disclosure provide a computer program product, which includes a computer program that, when executed by a processor, implements any of the cached data transmission methods of embodiments of this disclosure.
[0137] In this embodiment of the disclosure, the processor is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory is a device with data storage capabilities, including but not limited to random access memory (RAM), more specifically such as SDRAM, DDR, etc., read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); the I / O interface, or read-write interface, is connected between the processor and the memory, enabling information exchange between the memory and the processor, including but not limited to a data bus (Bus).
[0138] In this embodiment of the disclosure, read requests, listen requests, listen data, and responses issued by each node are transmitted on the request channel (REQ), listen channel (SNP), data channel (DAT), and response channel (RSP) on the bus, respectively. The cross-chip agent is mainly responsible for transparently transmitting and forwarding requests, data, and responses. The identification processing method of each node on each channel in the on-chip bus interconnection network is described below with reference to Examples 1 to 3.
[0139] Example 1: Identifier handling method on the listening channel.
[0140] (1) The processing method of the identifier on the management node, taking CHN as an example.
[0141] For the target node identifier carried in the monitoring request: Tgtccid can be determined based on whether the requesting node or consistency management node to be monitored is this chip or another chip. If it is this chip, then Tgtccid=0; if it is another chip, then Tgtccid is a logical identifier for cross-chip proxy, such as an index. Tgtdieid=the die identifier of the target node being monitored. Tgtdieid=the node identifier of the target node being monitored.
[0142] For the source node identifier carried in the listening request: Srcccid=0, Srcdieid=the local node's die identifier, Srcnodeid=the local node's node identifier.
[0143] For the forwarding target identifier carried in the listening request: Fwdccid=0, the generation rules for Fwddieid and Fwdnodeid are as follows: If no direct cache transmission request is initiated, Fwddieid and Fwdnodeid are the grain identifier and node identifier of this node, respectively; if a read request is received from an RN node and this level CHN needs to initiate direct cache transmission, then Srcdieid and Srcnodeid from the received request are used as Fwddieid and Fwdnodeid; if a read request is received from a CHN node and it is not a cross-shard request, i.e., Srcccid=0 in the request, then if this level CHN... If N needs to initiate a direct cache transfer, it uses Srcdieid and Srcnodeid from the received request as Fwddieid and Fwdnodeid. If a read request is received from a CHN node and identified as a cross-shard request (i.e., Srcccid ≠ 0 in the request), the local CHN is not allowed to initiate a direct cache transfer, and Fwddieid and Fwdnodeid are the chip identifier and node identifier of the local node, respectively. If a listener request is received from a higher-level CHN node, the local CHN is not allowed to initiate a direct cache transfer, and Fwddieid and Fwdnodeid are the chip identifier and node identifier of the local node, respectively.
[0144] (2) Cross-segment proxy identification processing method, taking C2C as an example.
[0145] Cross-chip proxy is used to forward I / O access requests sent from other chips to this chip, so all of them are intra-chip accesses.
[0146] 1) Tgtccid=0, Tgtdieid=the die identifier of the transparent listening request, Tgtnodeid=the node identifier of the transparent listening request; 2) Srcccid=the logical identifier of the cross-chip proxy, Srcdieid=the die identifier of the transparent listening request, Srcnodeid=the node identifier of the transparent listening request; 3) Fwdccid=the logical identifier of the cross-chip proxy, Fwddieid and Fwdnodeid are transparently transmitted from the Fwddieid and Fwdnodeid received in the listening request.
[0147] It should be noted that the die identifier and node identifier of the cross-chip agent are recorded in all other nodes. Therefore, when Tgtccid points to the logical identifier of a cross-chip agent, each node can route to the cross-chip agent that is intended to reach the target based on the recorded die identifier and node identifier of that cross-chip agent.
[0148] Example 2: Identification processing method on data channels.
[0149] (1) The processing method of the identifier on the management node, taking CHN as an example.
[0150] 1) Tgtccid = Srcccid of the original request, Tgtdieid = Srcdieid of the original request, Tgtnodeid = Srcnodeid of the original request. 2) Srcccid = 0, Srcdieid = the grain identifier of this node, Srcnodeid = the node identifier of this node. 3) Homeccid = 0. If a direct cache transfer request is received from the parent CHN, then Homedieid and Homenodeid are the Srcdieid and Srcnodeid of the received request; if a non-direct cache transfer request is received, then Homedieid and Homenodeid are the grain identifier and node identifier of this node, respectively.
[0151] (2) The processing method is identified on the request node, taking RN as an example.
[0152] 1) For TgtID: The RN uses the FwdNID from the received listening request as the TgtID for the returned read data; 2) Srcccid=0, Srcdieid=the die identifier of this node, Srcnodeid=the node identifier of this node; 3) For HomeNID: For listening data generated by the listening request, HomeNID=0; For read data generated by the listening request, Homeccid=0, Homedieid=the Srcdieid that received the listening request, Homenodeid=the Srcnodeid that received the listening request.
[0153] (3) Cross-segment proxy identification processing method, taking C2C as an example.
[0154] 1) Tgtccid=0, Tgtdieid=transparent transmission of the previous level Tgtdieid, Tgtnodeid=transparent transmission of the previous level Tgtnodeid. 2) Srcccid=logical identifier of the cross-slice proxy, Srcdieid=transparent transmission of the previous level node's die identifier, Srcnodeid=transparent transmission of the previous level node's node identifier. 3) For Homeccid, if the received Homeccid=0, it remains 0 during cross-slice proxy forwarding; if the received Homeccid is not 0, the forwarded Homeccid=the logical identifier of the cross-slice proxy, and Homedieid and Homenodeid transparently transmit the received Homedieid and Homenodeid.
[0155] Example 3: Identifier handling method on the response channel.
[0156] (1) The processing method of the identifiers on the request node and the home management node on the response channel, taking RN and CHN as examples.
[0157] In this embodiment of the disclosure, the response is divided into a listening response and a completion response. The listening response indicates that a listening request has been received, while the completion response indicates that the required data has been obtained.
[0158] Regarding the handling of identifiers in the listening response: Tgtccid = Srcccid of the original listening request, Tgtdieid = Srcdieid of the original listening request, Tgtnodeid = Srcnodeid of the original listening request; Srcccid = 0, Srcdieid = the die identifier of this node, Srcnodeid = the node identifier of this node.
[0159] Regarding the handling of identifiers in the completion response: TgtID: The completion response returned by the RN uses the HomeNID from the received read data as the TgtID of the completion response; Srcccid=0, Srcdieid=the die identifier of this node, Srcnodeid=the node identifier of this node.
[0160] (2) Regarding the handling of cross-segment proxy identifiers, take C2C as an example.
[0161] Tgtccid=0, Tgtdieid=transparent parent Tgtdieid, Tgtnodeid=transparent parent Tgtnodeid. Srcccid=logical identifier for cross-chip proxy, Srcdieid=die identifier for transparent parent node, Srcnodeid=node identifier for transparent parent node.
[0162] In this embodiment, each level of the home management node can independently initiate a direct cache transfer type listening request. For example, both the first-level and second-level home management nodes can initiate direct cache transfer type listening requests. Furthermore, this embodiment is applicable to both cross-die and cross-chip scenarios. The following examples, 4, 5, and 6, illustrate combined scenarios of whether the first-level and second-level home management nodes initiate direct memory transfer type read requests.
[0163] Example 4
[0164] This example describes an application scenario where none of the multi-level home management nodes initiate direct cache transmission.
[0165] Figure 4 This is an interactive schematic diagram of a cached data transmission method provided in an embodiment of this disclosure. (Refer to...) Figure 4RN-0 represents the first requesting node, chip0 represents the first chip, and die0 represents the first die. That is, the first requesting node RN-0 is located in die0 of the first die of chip0. CHN-2 represents the secondary home management node of the target address, and CHN-2 is also located in die0 of the first die of chip0. RN-1 represents the second requesting node, chip1 represents the second chip, and die1 represents the second die. That is, the second requesting node RN-1 is located in die1 of the second die of chip1. CHN-1 represents the primary home management node of die1 of the second die of chip1.
[0166] C2C0 represents the first cross-chip agent, located in the first die0 of the first chip chip0; C2C1 represents the second cross-chip agent, located in the second die1 of the second chip chip1.
[0167] Reference Figure 4 The cached data transmission method provided in this embodiment includes the following steps.
[0168] In step S401, RN-0 sends a read request to CHN-2.
[0169] RN-0 initiates a read request, where TgtID points to the second-level CHN node within the chip. It should be understood that the first-level CHN and the second-level CHN under this request path are the same CHN.
[0170] In step S402, CHN-2 sends a listening request to C2C1 via C2C0. Where TgtID={C2C0, die1, CHN-1}, SrcID={0, die0, CHN-2}, and FwdNID={0, die0, CHN-2}.
[0171] CHN-2 initiates a cross-chip listening request. The request type of this listening request is non-direct cache transfer. Tgtccid points to the on-chip cross-chip proxy C2C0, indicating that the cross-chip transfer is from this node. Since CHN-2 does not initiate a direct cache transfer request, the chip identifier and node identifier of CHN-2 are used as the chip identifier and node identifier in FwdNID, and the logical identifier in FwdNID is 0.
[0172] In step S403, C2C1 sends a listening request to CHN-1. Where TgtID={0, die1, CHN-1}, SrcID={C2C1, die0, CHN-2}, and FwdNID={C2C1, die0, RN-0}.
[0173] C2C1 forwards a listening request to the chip, where Tgtccid is 0, Srcccid and Fwdccid are logical identifiers of the cross-chip proxy C2C1, and the remaining identifiers are passed through from the received listening request.
[0174] Step S404: CHN-1 sends a listening request to RN-1. Where TgtID={0, die1, RN-1}, SrcID={0, die1, CHN-1}, FwdNID={0, die0, CHN-1}.
[0175] Upon receiving the listening request, CHN1-1 returns a cross-chip listening response to CHN-2. The TgtID in the response comes from the SrcID in the received listening request (corresponding to steps S405 and S406). Simultaneously, CHN-1 may need to initiate a listening request to RN-0 to obtain listening data. In this example, the listening request initiated by CHN-1 is a non-direct cache transfer type.
[0176] In step S405, CHN-2 returns a read response to RN-0.
[0177] In step S406, CHN-1 returns a listening response to C2C1. Where TgtID={C2C1, die0, CHN-2}, SrcID={0, die1, CHN-1}.
[0178] In step S407, C2C1 returns a listening response to CHN-2 via C2C0. Here, TgtID = {0, die0, CHN-2}, and SrcID = {C2C0, die1, CHN-1}.
[0179] In step S408, RN-1 returns a listening response to CHN-1.
[0180] In step S409, RN-1 returns the listening data to CHN-1.
[0181] In step S410, CHN-1 returns the monitoring data to C2C1. Where TgtID={C2C1, die0, CHN-2}, SrcID={0, die1, CHN-1}.
[0182] When CHN-1 returns monitoring data, it uses FwdNID from the received monitoring request as TgtID and HomeNID=0. The data is then returned to CHN-2 after passing through cross-chip agents C2C1 and C2C0.
[0183] In step S411, C2C1 returns monitoring data to CHN-2 via C2C0. Here, TgtID = {0, die0, CHN-2}, and SrcID = {C2C0, die1, CHN-1}.
[0184] C2C0 forwards a cross-chip monitoring data to the chip, where Tgtccid is 0, Srcccid is the cross-chip proxy C2C0, and the remaining identifiers are passed through from the received monitoring data.
[0185] In step S412, CHN-2 returns read data to RN-0. Where TgtID={0, die0, RN-0}, SrcID={0, die0, CHN-2}, and HomeNID={0, die0, CHN-2}.
[0186] After receiving the listening data, CHN-2 uses the SrcID in the received read request as the TgtID. Both SrcID and HomeNID are identifiers of this CHN-2. It then returns the read data to the RN-0 that initiated the request.
[0187] It should be understood that CHN-2 receives a read request from RN-0, so the data returned by CHN-2 to RN-0 can be called read data, but this read data is actually the same data as the listening data received by CHN-2.
[0188] In step S413, RN-0 sends a completion response to CHN-2. Where TgtID = {0, die0, CHN-2}, SrcID = {0, die0, RN-0}.
[0189] After receiving the read data, RN-0 uses the HomeNID as the TgtID to return a completion response to CHN-2. After receiving the completion response, CHN-2 releases its internal resources.
[0190] Example 5
[0191] This example describes an application scenario where the primary home management node initiates a direct cache transfer.
[0192] Figure 5 This is an interactive schematic diagram of a cached data transmission method provided in an embodiment of this disclosure. (Refer to...) Figure 5RN-0 represents the first requesting node, chip0 represents the first chip, and die0 represents the first die. That is, the first requesting node RN-0 is located in die0 of the first die of chip0. CHN-1 represents the secondary home management node of the target address, and CHN-1 is also located in die0 of the first die of chip0. RN-2 represents the second requesting node, and RN-2 is also located in die0 of the first die of chip0.
[0193] Reference Figure 5 The cached data transmission method provided in this embodiment includes the following steps.
[0194] In step S501, RN-0 sends a read request to CHN-2.
[0195] RN-0 initiates a read request, where TgtID points to the second-level CHN node within the chip. The first-level CHN and the second-level CHN in this request path are the same CHN node.
[0196] In step S502, CHN-2 sends a listening request to RN-2. Where TgtID={0, die1, RN-2}, SrcID={0, die0, CHN-2}, and FwdNID={0, die0, RN-0}.
[0197] CHN-2 initiates a listening request of type direct buffered transfer, where Tgtccid=0 indicates on-chip transfer. Since CHN-2 initiates a direct buffered transfer request, the SrcID from the received read request is used as the FwdNID.
[0198] In step S503, CHN2 returns a listening response to RN-0.
[0199] In step S504, RN-2 returns a listening response to CHN-2.
[0200] Step S505, RN-2 returns read data to RN-0. Where TgtID={0, die0, RN-0}, SrcID={0, die1, RN-1}, HomeNID={0, die0, CHN-2}.
[0201] RN-1 recognizes that it has received a direct cache transmission request by receiving a SrcID ≠ FwdNID in the listening request, and needs to return read data. It uses the FwdNID in the received listening request as TgtID, Homeccid=0, and Homedieid and Homenodeid as the SrcID in the listening request.
[0202] Step S506: RN-0 sends a completion response to CHN-2. Where TgtID = {0, die0, CHN-2}, SrcID = {0, die0, RN-0}.
[0203] After receiving the read data, RN-0 uses the HomeNID as the TgtID to return a completion response to CHN-2. After receiving the completion response, CHN-2 releases its internal resources.
[0204] Example 6
[0205] This example describes an application scenario where a secondary home management node initiates a direct cache transfer.
[0206] Figure 6 This is an interactive schematic diagram of a cached data transmission method provided in an embodiment of this disclosure. (Refer to...) Figure 6 The cached data transmission method provided in this embodiment includes the following steps.
[0207] In step S601, RN-0 sends a read request to CHN-2.
[0208] RN-0 initiates a read request, where TgtID points to the second-level CHN node within the chip. The first-level CHN and the second-level CHN under the request path are the same CHN.
[0209] In step S602, CHN-2 sends a listening request to C2C1 via C2C0. Where TgtID={C2C0, die1, CHN-1}, SrcID={0, die0, CHN-2}, and FwdNID={0, die0, RN-0}.
[0210] CHN-2 initiates a cross-slice listening request, the request type is direct cache transfer, where Tgtccid points to the intra-slice cross-slice proxy C2C0 node, indicating that the cross-slice is from this node. Since CHN-1 initiated the direct cache transfer request, the SrcID in the read request is used as FwdNID.
[0211] In step S603, C2C1 sends a listening request to CHN-1. Where TgtID={0, die1, CHN-1}, SrcID={C2C1, die0, CHN-2}, and FwdNID={C2C1, die0, RN-0}.
[0212] Cross-slice proxy C2C1 forwards a cross-slice read request to the intra-slice, where Tgtccid is 0, Srcccid and Fwdccid are both cross-slice proxy 1, and the remaining identifiers are passed through from the received read request.
[0213] Step S604: CHN-1 sends a listening request to RN-1. Where TgtID={0, die1, RN-1}, SrcID={0, die1, CHN-1}, FwdNID={0, die0, CHN-1}.
[0214] CHN-1 does not initiate a direct cached transfer request because CHN will not trigger a direct cached transfer after receiving the listener request. Therefore, it returns a cross-shard listener response to CHN-2, with the TgtID in the response coming from the SrcID in the request. Simultaneously, CHN-1 may need to initiate a listener request to RN-1 to obtain listener data.
[0215] CHN-1 recognizes that it has received a direct cached transmission type listening request by receiving the listening request with SrcID ≠ FwdNID. It needs to return read data and uses FwdNID from the listening request as TgtID, Homeccid=0, and Homedieid and Homenodeid as SrcID from the listening request.
[0216] In step S605, CHN2 returns a read response to RN-0.
[0217] In step S606, CHN-1 returns a listening response to C2C1. Where TgtID={C2C1, die0, CHN-2}, SrcID={0, die1, CHN-1}.
[0218] In step S607, C2C1 returns a listening response to CHN-2 via C2C0. Here, TgtID = {0, die0, CHN-2}, and SrcID = {C2C0, die1, CHN-1}.
[0219] In step S608, RN-1 returns a listening response to CHN-1.
[0220] In step S609, RN-1 returns the listening data to CHN-1.
[0221] In step S610, CHN-1 returns read data to C2C1. Where TgtID={C2C1, die0, RN-0}, SrcID={0, die1, CHN-1}, and HomeNID={0, die0, CHN-2}.
[0222] In step S611, C2C1 returns read data to RN-0 via C2C0. Where TgtID={0, die0, RN-0}, SrcID={C2C0, die1, CHN-1}, and HomeNID={0, die0, CHN-2}.
[0223] Cross-chip agent C2C0 forwards a read data to the chip, where Tgtccid is 0, Srcccid is the cross-chip agent C2C0, Homeccid needs to be kept when it is 0, and the other identifiers are passed through from the received read data.
[0224] In step S612, RN-0 sends a completion response to CHN-2. Where TgtID = {0, die0, CHN-2}, SrcID = {0, die0, RN-0}.
[0225] After receiving the read data, Chip0, die0, and RN-0 use the HomeNID as the TgtID to return a CompAck response to CHN-2. After receiving the completion response, CHN-2 releases its internal resources.
[0226] It should be noted that when the monitored data reaches the first request node directly, the monitored data can be referred to as read data.
[0227] In this embodiment of the disclosure, the requesting node is configured with RART, and the consistency node is configured with HART. In this embodiment, the first requesting node can determine the primary or secondary home management node through its internally configured RART, and the secondary home management node can determine the primary home management node of the first cross-chip agent and the second die through its internally configured HART. The RART and HART in this embodiment of the disclosure will be described below with reference to Examples 7 and 8.
[0228] Example 7
[0229] In this embodiment of the disclosure, the request node is equipped with RART. Figure 7 This is a schematic diagram of a RART structure provided in an embodiment of this disclosure. (Refer to...) Figure 7 The target address of the read request issued by the first requesting node is input into the RART inside the first requesting node for routing decoding processing, and finally outputs the identifier of the home management node and the corresponding routing level. (Refer to...) Figure 7 RART can include an address matching unit, a hash attribute processing unit, a hash calculation unit, and a preset mapping table. The target address can be a physical location.
[0230] The address matching unit can determine the Hash Mapping Region (HMR) to which the target address falls after receiving the target address. In this embodiment, different HMRs are divided according to the system main memory address. These HMRs are managed globally by different home management nodes in the on-chip bus interconnect network. Each HMR is defined by a base address and an end address. When the target address falls within the address range of an HMR (i.e., between the base address and the end address), it can be determined that the target address falls within that HMR region. (Refer to...) Figure 7 The system main memory address is divided into N+1 HMRs, namely HMR0, HMR1, ..., HMRN. The address matching unit can determine the HMR that the target address hits based on the address range into which the target address falls.
[0231] The hash attribute processing unit can further process the HMR matched by the target address. If the matched HMR is an address space directly managed by the local wafer (first wafer), there is no primary home management node, and the route is directly routed to the secondary home management node within the local wafer. In this case, the output route_level value is 2. If the matched HMR is not an address space directly managed by the local wafer (i.e., the second wafer), there is a need for multi-level caching routing. The route can first be routed to the primary home management node within the local wafer, and in this case, the output route_level value is 1.
[0232] The hash calculation unit can perform a hash operation on the target address based on the number of home management nodes in the local die and the configured hash operation algorithm to obtain the index value of the first home management node. The identifier of the home management node can be output by querying the preset mapping table based on the index value.
[0233] As can be seen, RART ultimately outputs two parts: the identifier of the home management node and the routing level.
[0234] Example 8
[0235] In this embodiment of the disclosure, HART is deployed in the home management node. Figure 8 This is a schematic diagram of a HART structure provided in an embodiment of this disclosure. (Refer to...) Figure 8 When a primary home management node needs to forward a request to a secondary home management node, the primary home management node inputs the target address of the request into its internal HART for routing decoding, and finally outputs the identifier of the secondary home management node or the identifier of the inter-slice proxy. The HART includes an address matching unit, a hash attribute processing unit, a CHN hash calculation unit, a C2C hash calculation unit, a CHN identifier mapping table (CHNs tgtid table), and a C2C identifier mapping table (C2Cs tgtid table). Both the CHN identifier mapping table and the C2C identifier mapping table are preset mapping tables.
[0236] The address matching unit can determine the HMR that the target address matches after receiving the target address. In this embodiment, different HMRs are divided according to the system main memory address. These HMRs are managed globally by different home management nodes in the on-chip bus interconnect network. Each HMR is defined by a base address and an end address. When the target address falls within the address range of an HMR, i.e., between the base address and the end address, it can be determined that the target address matches that HMR region. (Refer to...) Figure 8 The system main memory address is divided into N+1 HMRs, namely HMR0, HMR1, ..., HMRN. The address matching unit can determine the HMR that the target address hits based on the address range into which the target address falls.
[0237] The hash attribute processing unit can perform hash processing based on the matched HMR configuration information. If the matched HMR is an address space directly managed by the local chip, the primary home management node can determine that the secondary home management node is within the local chip and can directly route across the chip to the secondary home management node; if the matched HMR is an address space managed by a remote chip (i.e., another chip, such as the second chip), the primary home management node can determine that the secondary home management node is not within the local chip and needs to route to the cross-chip proxy.
[0238] When routing to a secondary home management node is required, the CHN hash calculation unit handles the process. The CHN calculation unit performs a hash operation on the input target address based on the number of home management nodes configured in the hit HMR region and the configured hash algorithm, obtaining the index value of the secondary home management node. Then, it finds the identifier of the secondary home management node according to the CHN identifier mapping table.
[0239] When routing to a cross-chip proxy is required, the C2C hash calculation unit handles the process. The C2C hash calculation unit can perform a hash operation on the input target address based on the number of cross-chip connections between the local chip (i.e., the first chip) and the destination chip (i.e., the second chip) and a pre-configured hash algorithm to obtain the index value of the relay cross-chip node. Then, it finds the identifier of the cross-chip proxy, i.e., the logical identifier, according to the C2C identifier mapping table.
[0240] In this embodiment of the disclosure, if the monitored data can be directly returned from the monitoring RN to the RN that initiated the read request without causing consistency issues, then a direct cached transmission operation can be performed. The direct cached transmission operation simplifies the process of the CHN handling read requests, as the monitored data is directly sent to the peer requester without needing to be received by the CHN before being sent, thus improving data access efficiency. The requirement for initiating direct cached transmission within the CHN will be explained below with reference to Example 9.
[0241] Example 9
[0242] Table 1
[0243]
[0244] Table 1 shows the applicable scenarios where CHN can initiate a listening request for the direct cache transmission type.
[0245] As can be seen, this embodiment does not support direct cached transmission requests triggered by received listening requests. This is because the received listening request does not carry the completion response identifier (ExpCompAck) information from the original read request. If a direct cached transmission is initiated and ExpCompAck=1 in the original request, the HomeNID of the read data returned by the direct cached transmission method cannot identify the identifier information of the first-level CHN, leading to a completion response routing error. The first-level CHN cannot receive the completion response, internal resources cannot be released, and the system hangs. Here, S-state indicates shared, and I-state indicates invalid.
[0246] Furthermore, this embodiment does not support direct cached transfer requests triggered by cross-chip read requests. This is because direct cached transfer requests may also be cross-chip. The read data returned by the direct cached transfer method cannot obtain the cross-chip information of the original read request and cannot be correctly returned to the chip where the original request node is located. This routing error will cause the system to hang.
[0247] The embodiments disclosed herein can achieve the following effects:
[0248] 1. Implement adaptive optimization of direct cache transmission paths in multi-level topologies. Each level of the home management node makes independent decisions based on the remote cache replica status recorded by its local snooping filter (SF). This supports combined scenarios such as skipping only the first level, skipping only the second level, or not initiating at any level. Read latency is optimized from cumulative forwarding at each level to single-hop direct transmission between requesting nodes plus control plane processing. The reduction in hop count increases with topology depth. Each level of the home management node transforms from a passive forwarder to an active decision-maker, forming a complete inter-level collaborative decision-making chain.
[0249] 2. Enable autonomous routing of direct cached data transmission across physical chip boundaries. Cross-chip cached data is independently routed level by level based on the complete topology location information built into the packet header, without the need for the home management node to relay and schedule data on the data path; each level of home management node identifies the source of cross-chip transactions by listening to the chip identifier in the response and releases resources to avoid suspension or deadlock, extending direct cached transmission from a single domain within the chip to a multi-chip interconnected system.
[0250] 3. Each level of management node only participates in control plane interactions such as sending listening requests and recovering listening responses. The direct data channel path is maintained, and bandwidth usage is reduced to the protocol control layer. As the system scales up, the bandwidth release gain increases superlinearly.
[0251] Those skilled in the art will understand that all or some of the steps, systems, and devices disclosed above, as functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof.
[0252] In hardware implementations, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be executed by several physical components working together.
[0253] Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit (CPU), digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software may be distributed on a computer-readable medium, which may include computer storage media and communication media. In embodiments of this disclosure, computer storage media include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, and any other media that can be used to store desired information and can be accessed by a computer. In embodiments of this disclosure, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
Claims
1. A method for caching data transmission, characterized in that, The invention is applied to an on-chip bus interconnect network, which includes multiple requesting nodes and multiple levels of home management nodes; the multiple requesting nodes include at least a first requesting node located in a first die and a second requesting node located in a second die; the multiple levels of home management nodes include at least a first-level home management node and a second-level home management node. The primary home management node is used to manage consistency within the die scope, and the secondary home management node is used to manage global consistency at the target address; the method includes: The first requesting node sends a read request to the secondary home management node; In response to receiving the read request, the secondary home management node determines the forwarding target identifier based on the request type of the listening request to be initiated, and sends a listening request carrying the forwarding target identifier to the second requesting node; the request type is a direct cache transmission type or a non-direct cache transmission type; the forwarding target identifier points to the parent node of the secondary home management node or the secondary home management node; In response to receiving the monitoring request, the second requesting node reads the monitoring data from the cache and sends the monitoring data to the node pointed to by the forwarding target identifier; wherein, if the forwarding target identifier points to the secondary home management node, the secondary home management node forwards the monitoring data to the first requesting node.
2. The method according to claim 1, characterized in that, The parent node of the secondary home management node includes the first request node or the primary home management node of the first die. The secondary home management node determines the forwarding target identifier based on the request type of the listening request to be initiated, including: In response to the listening request being of the non-direct cache transmission type, the secondary home management node uses its own granular identifier and node identifier as the granular identifier and node identifier of the forwarding target identifier, respectively, so that the forwarding target identifier points to the secondary home management node. In response to the secondary home management node receiving the read request directly from the first request node and the request type of the listening request being direct cache transmission type, the secondary home management node uses the source node's granular identifier and node identifier in the read request as the granular identifier and node identifier of the forwarding target identifier, respectively, so that the forwarding target identifier points to the first request node; In response to the secondary home management node receiving the read request via the primary home management node of the first chip, wherein the read request is a non-cross-chip request and the request type of the listening request is direct cache transmission type, the secondary home management node uses the chip identifier and node identifier of the source node in the read request as the chip identifier and node identifier of the forwarding target identifier, respectively, so that the forwarding target identifier points to the primary home management node of the first chip; In response to the secondary home management node receiving the read request via the primary home management node of the first chip, wherein the read request is a cross-chip request, the secondary home management node uses the non-direct cache transmission type as the request type of the listening request, and uses the chip identifier and node identifier of the secondary home management node as the chip identifier and node identifier of the forwarding target identifier, respectively, so that the forwarding target identifier points to the secondary home management node.
3. The method according to claim 1, characterized in that, The secondary home management node and the second requesting node are located on the same chip. The secondary home management node sends a listening request carrying the forwarding target identifier to the second requesting node, including: The secondary home management node sends a listening request carrying the forwarding target identifier to the primary home management node of the second die; The primary management node of the second die sends a listening request to the second requesting node.
4. The method according to claim 1, characterized in that, The secondary home management node is located on the first chip, and the second requesting node is located on a second chip different from the first chip. The first cross-chip proxy on the first chip is communicatively connected to the second cross-chip proxy on the second chip. The secondary home management node sends a listening request carrying the forwarding target identifier to the second requesting node, including: The secondary home management node sends a listening request carrying the forwarding target identifier to the second cross-slice agent via the first cross-slice agent; The second cross-slice proxy updates the logical identifier in the forwarding target identifier using the logical identifier of the second cross-slice proxy; The second cross-chip agent sends a listening request carrying the updated forwarding target identifier to the primary home management node of the second die; The primary management node of the second die sends a listening request to the second requesting node.
5. The method according to claim 1, characterized in that, The monitoring data carries a home node identifier, which points to the secondary home management node. The method further includes: After receiving the monitoring data, the first requesting node returns a completion response to the secondary home management node based on the home node identifier.
6. The method according to claim 5, characterized in that, The method further includes: Upon receiving the completion response, the secondary-level management node releases its local resources.
7. The method according to claim 1, characterized in that, The method further includes: Under the condition that the secondary home management node meets the preset conditions, the direct cache transmission type will be determined as the request type; The preset conditions include: the read request is a preset type of read request and has not triggered source restriction conditions or cross-shard restriction conditions; The preset type is either a consistent non-exclusive type or a consistent exclusive type; the source restriction condition is that the source is a listening request; the cross-shard restriction condition is that the read request is a cross-shard request.
8. The method according to claim 7, characterized in that, The method further includes: The secondary hierarchical management node determines whether the read request is a cross-slice request or an intra-slice request based on the logical identifier of the source node in the read request.
9. The method according to claim 1, characterized in that, The first requesting node sends a read request to the secondary home management node, including: The first requesting node sends a read request to the primary home management node of the first die; In response to receiving the read request, the first-level home management node of the first die determines that the cached copy of the target address is not within the scope of the first die, and forwards the read request to the second-level home management node.
10. An on-chip bus interconnection network, characterized in that, It includes multiple request nodes and multiple levels of home management nodes; the multiple request nodes include at least a first request node located in the first die and a second request node located in the second die; the multiple levels of home management nodes include at least a first-level home management node and a second-level home management node; the first-level home management node is used to manage consistency within the die, and the second-level home management node is used to manage global consistency of the target address; The first requesting node is configured to send a read request to the secondary home management node; The secondary home management node is configured to: in response to receiving the read request, determine the forwarding target identifier according to the request type of the listening request to be initiated, and send a listening request carrying the forwarding target identifier to the second requesting node; the request type is a direct cache transmission type or a non-direct cache transmission type; the forwarding target identifier points to the parent node of the secondary home management node or the secondary home management node; The second request node is configured to: in response to receiving the listening request, read listening data from the cache; and send the listening data to the node pointed to by the forwarding target identifier; wherein, if the forwarding target identifier points to the secondary home management node, the secondary home management node forwards the listening data to the first request node.
11. A computer-readable medium, characterized in that, It stores a computer program thereon, which, when executed by a processor, implements the method described in any one of claims 1 to 9.
12. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the method described in any one of claims 1 to 9.
