Detection interrupt delivery
The interrupt message is routed in the multi-core system through the coherent detection network, and the coding distinction processing of the cache subsystem is used to solve the problem of difficult sideband line expansion, realize the efficient transmission and processing of the interrupt message, and support the flexible expansion and low cost of the multi-core system. Delayed processing.
Patent Information
- Application Number
- CN201980055423.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-08-24
- Filing Date
- 2019-06-26
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2039-06-26
AI Technical Summary
As the number of cores increases, sideband lines are difficult to expand, causing interrupt delivery to become complex and inefficient, making it difficult to effectively manage interrupt processing in multi-core processor systems.
A coherent detection network is used to convert interrupts into compatible messages and routed to the target destination through the network. The cache subsystem is used to distinguish and process interrupt messages and coherent detection messages based on encoding to achieve efficient delivery and processing of interrupt messages.
It achieves efficient transmission and processing of interrupt messages, avoids the expansion difficulties of sideband lines, and supports flexible expansion and low-latency interrupt processing in multi-core systems.
Smart Images

Figure CN112602072B_ABST
Abstract
Description
Background Art
[0001] Typically, an interrupt or exception is an event that changes instruction execution from the currently executed instruction stream to another instruction stream. Interrupts are typically generated by a processor or a device coupled to a processor. A typical interrupt handling mechanism changes the program control flow of the interrupted processor to an interrupt handler. Based on the programming of the interrupt controller or the interrupt type being delivered, it is typically necessary to pass the input / output (I / O) device and the central processing unit (CPU) to CPU interrupt to any CPU thread in the computing system. Historically, sideband lines have often been used to deliver interrupts to the core. Sideband lines are dedicated single-core lines for delivering interrupt types and interrupt vectors to each core. However, as the number of cores increases, sideband lines become difficult to expand, resulting in a very large number of lines being dedicated to interrupt delivery. BRIEF DESCRIPTION OF THE DRAWINGS
[0002] Advantages of the methods and mechanisms described herein may be better understood by referring to the following description in conjunction with the accompanying drawings, in which:
[0003] Figure 1 is a block diagram of one implementation of a computing system.
[0004] Figure 2 is a block diagram of another implementation of a computing system.
[0005] Figure 3 is a block diagram of one implementation of the core complex.
[0006] Figure 4 Examples of coherent probe messages and blackout messages are shown according to various implementations.
[0007] Figure 5 is a generalized flow diagram illustrating one implementation of a method for generating messages to send over a coherent probing network.
[0008] Figure 6 is a generalized flow diagram illustrating one implementation of a method for determining whether a message is a coherent probe message or an interruption message.
[0009] Figure 7 is a generalized flow chart illustrating one implementation of a method for generating an interrupt message.
[0010] Figure 8 is a generalized flow diagram illustrating one implementation of a method for processing received messages at a cache subsystem. DETAILED DESCRIPTION
[0011] In the following description, numerous specific details are set forth to provide a thorough understanding of the methods and mechanisms presented herein. However, one of ordinary skill in the art will recognize that various implementations may be practiced without these specific details. In some cases, well-known structures, components, signals, computer program instructions, and techniques are not shown in detail to avoid obscuring the methods described herein. It will be understood that the elements shown in the accompanying drawings may not be drawn to scale to make the description simple and clear. For example, the size of some elements may be enlarged relative to other elements.
[0012] Disclosed herein are various systems, devices, and methods for routing interrupts over a coherent detection network. In one implementation, a computing system includes at least a plurality of processing nodes, a coherent detection network, and one or more control units. The coherent detection network carries coherent detection messages between coherent agents. Interrupts detected by the control unit are converted into messages compatible with the coherent detection messages and then routed to a target destination via the coherent detection network. Interrupts are generated with a first encoding, and coherent detection messages have a second encoding. A cache subsystem determines whether a message received via the coherent detection network is an interrupt message or a coherent detection message based on the encoding embedded in the received message. The interrupt message is routed to an interrupt controller, and the coherent detection message is processed according to a coherence detection action field embedded in the message.
[0013] Now refer to Figure 1 , shows a block diagram of one implementation of a computing system 100. In one implementation, computing system 100 includes at least core complexes 105A to 105N, an input / output (I / O) interface 120, a bus 125, one or more memory controllers 130, and a network interface 135. In other implementations, computing system 100 includes other components and / or computing system 100 is arranged differently. In one implementation, each core complex 105A to 105N includes one or more general-purpose processors, such as central processing units (CPUs). It should be noted that a "core complex" is also referred to herein as a "processing node" or "CPU." In some implementations, one or more core complexes 105A to 105N include a data-parallel processor with a highly parallel architecture. Examples of data-parallel processors include graphics processing units (GPUs), digital signal processors (DSPs), and the like. In various implementations, each processor core within core complexes 105A to 105N includes an interrupt controller and a cache subsystem having one or more levels of cache. In one implementation, each core complex 105A- 105N includes a cache (eg, a level 3 (L3) cache) that is shared among multiple processor cores.
[0014] The one or more memory controllers 130 represent any number and type of memory controllers accessible by core complexes 105A through 105N. The one or more memory controllers 130 are coupled to any number and type of memory devices (not shown). For example, the types of memory in the one or more memory devices coupled to the one or more memory controllers 130 may include dynamic random access memory (DRAM), static random access memory (SRAM), NAND flash memory, NOR flash memory, ferroelectric random access memory (FeRAM), and the like. The I / O interface 120 represents any number and type of I / O interface (e.g., a Peripheral Component Interconnect (PCI) bus, PCI Extended (PCI-X), PCIE (PCI Express) bus, Gigabit Ethernet (GBE) bus, Universal Serial Bus (USB)). Various types of peripheral devices may be coupled to the I / O interface 120. Such peripheral devices include, but are not limited to, a display, keyboard, mouse, printer, scanner, joystick or other type of game controller, media recording device, external storage device, network interface card, and the like.
[0015] In various implementations, computing system 100 is a computer, laptop, mobile device, game console, server, streaming device, wearable device, or any of various other types of computing systems or devices. It should be noted that the number of components of computing system 100 varies from implementation to implementation. For example, in other implementations, there are Figure 1 It should also be noted that in other implementations, the computing system 100 includes Figure 1 Other components not shown in FIG. In addition, in other implementations, the computing system 100 is configured to Figure 1 The different ways of structuring are shown in .
[0016] Now turn Figure 2 , a block diagram of another implementation of a computing system 200 is shown. In one implementation, system 200 includes a control unit 210, a coherence detection network 215, an interrupt controller 220, devices 225A to 225N, and nodes 230A to 230D. In one implementation, the control unit 210 is located within the coherence unit. In other implementations, the control unit 210 is part of any of a variety of other types of components. Alternatively, in another implementation, the control unit 210 is a standalone component. Devices 225A to 225N represent any number and type of peripheral devices or input / output (I / O) devices connected to the control unit 210 via the interrupt controller 220.
[0017] In one implementation, system 200 is a system on a chip (SoC). In other implementations, system 200 is any of a variety of other types of computing systems. Nodes 230A through 230D represent any number and type of processing nodes. Each node 230A through 230D includes any number of processor cores 245A through 245N, 250A through 250N, 255A through 255N, and 260A through 260N, respectively. Although Figure 2 Four nodes 230A to 230D are shown in the system 200, but this is shown for illustrative purposes only. It should be understood that the number of nodes included in the system 200 varies depending on the implementation. In other implementations, the system 200 includes other components and / or is organized in other suitable ways.
[0018] In one implementation, the system 200 enforces a memory coherence protocol to ensure that a processor core or device does not simultaneously access data being modified by another core or device. In order to comply with the memory coherence protocol, the cores and devices of the system 200 transmit coherent messages (e.g., coherent probe messages and probe responses) on the coherent probe network 215. Therefore, the coherent probe network 215 is designed to carry coherent probe messages and probe responses between the coherent agents of the system 200. A coherent probe message is a message that seeks the coherence state of data associated with a particular memory location. A probe response is typically sent back to the coherent agent that generated the coherent probe message. The probe response indicates the coherence state of the reference data, transmits data in response to the probe, or provides other information in response to the probe. Typically, the coherent probe network 215 only carries coherent probe messages and probe responses. However, in the system 200, the coherent probe network 215 also carries interrupts for one or more of the cores 230A to 230D. This allows interrupts to benefit from using a dedicated low-latency network that spans multiple components within system 200 and is scalable to any number of threads.
[0019] In various implementations, each device 225A to 225N can generate an interrupt by asserting an interrupt signal detected by the interrupt controller 220. In response to detecting the interrupt signal, the interrupt controller 220 generates an interrupt message having information such as a destination identifier, a delivery mode, an interrupt vector, or other suitable information. The interrupt controller 220 then transmits the interrupt message to the control unit 210. In one implementation, the control unit 210 converts the interrupt message into a coherent probe message having a special encoding, and then the control unit 210 transmits the specially encoded coherent probe message over the coherent probe network 215 to one or more targets.
[0020] In order to facilitate the transmission of interruptions on the coherent detection network 215, the control unit 210 includes logic for generating, receiving, processing and forwarding interruptions. This logic also handles the normal processing of coherent detection messages. In one implementation, when the control unit 210 detects or receives an interrupt, the control unit 210 generates an interrupt message compatible with the format of the coherent detection message. Generating an interrupt message in a compatible format allows the coherent detection network 215 to carry the interrupt message in a manner similar to the coherent detection message. Although the interrupt message is compatible with the coherent detection message, the interrupt message includes embedded coding that allows other components to distinguish the interrupt message from the coherent detection message. After generating the interrupt message in a coherent compatible format, the control unit 210 transmits the interrupt message on the coherent detection network 215 to one or more nodes 230A to 230D targeted by the interrupt. In one implementation, the control unit 210 broadcasts the interrupt message on the coherent detection network 215 to all nodes 230A to 230D. In another implementation, the control unit 210 sends the interrupt message on the coherent detection network 215 only to the nodes to which the interrupt message is directed.
[0021] In one implementation, the coherent detection network 215 is connected to the cache subsystems 240A to 240D in each node 230A to 230D respectively. Each cache subsystem 240A to 240D includes any number of cache levels. For example, in one implementation, each cache subsystem 240A to 240D includes a third level (L3) cache and a second level (L2) cache. In this implementation, each core includes a local first level (L1) cache. In other implementations, each cache subsystem 240A to 240D includes other cache levels. When a given cache subsystem 240A to 240D receives a message via the coherent detection network 215, the given cache subsystem 240A to 240D determines whether the message is an interrupt message or a coherent detection message. If the message is an interrupt message, the given cache subsystem 240A to 240D sends the interrupt message to one or more interrupt controllers in the corresponding one or more cores. As shown in system 200, nodes 230A to 230D include interrupt controllers 247A to 247N, 252A to 252N, 257A to 257N, and / or 262A to 262N in cores 245A to 245N, 250A to 250N, 255A to 255N, and / or 260A to 260N, respectively. In one implementation, in response to receiving an interrupt message, a given cache subsystem 240A to 240D broadcasts the interrupt message to all cores in the corresponding node. In another implementation, in response to receiving an interrupt message, a given cache subsystem 240A to 240D only sends the interrupt message to those cores to which the interrupt message is directed. One or more interrupt controllers in one or more cores will examine the interrupt message and generate an interrupt to be sent to the target core.
[0022] See now Figure 3 , shows a block diagram of one implementation of core complex 300. In one implementation, core complex 300 includes four processor cores 310A through 310D. In other implementations, core complex 300 includes other numbers of processor cores. It should be noted that "core complex" may also be referred to herein as a "processing node," "node," or "CPU." In one implementation, components of core complex 300 are included in ( Figure 1 ) within core complexes 105A to 105N.
[0023] Each processor core 310A-310D includes a cache subsystem for storing data and instructions retrieved from a memory subsystem (not shown). For example, in one implementation, each core 310A-310D includes a corresponding first level (L1) cache 315A-315D. Each processor core 310A-310D also includes or is coupled to a corresponding second level (L2) cache 320A-320D. Additionally, in one implementation, the core complex 300 includes a third level (L3) cache 330 shared by the processor cores 310A-310D. It should be noted that in other implementations, the core complex 300 may include other types of cache subsystems having other numbers of caches and / or other configurations with different cache hierarchies.
[0024] The L3 cache 330 is coupled to the bus / structure via a coherent probe network 340. The L3 cache 330 receives both coherent probes and interrupt messages via the coherent probe network 340. The L3 cache 330 forwards the coherent probe and interrupt messages to the L2 caches 320A to 320D. In one implementation, the L3 cache 330 broadcasts the received coherent probe and interrupt messages to all L2 caches 320A to 320D. In another implementation, the L3 cache 330 forwards the received coherent probe or interrupt message only to those L2 caches 320A to 320D to which the probe or interrupt message is directed. In this implementation, the L3 cache 330 includes logic to examine coherent probe and interrupt messages to determine their targets. Upon receiving a message from the L3 cache 330, the L2 caches 320A to 320D examine the message to determine whether it is an interrupt or a coherent probe. The L2 caches 320A to 320D forward the interrupt messages for processing to the interrupt controllers 317A to 317D, respectively. The L2 caches 320A to 320D process the coherent detection according to the coherent detection action fields embedded therein.
[0025] Now go to Figure 4, shows an example of encoding a coherent probe message and an interrupt message in a hybrid message format. Table 400 shows examples of message types that can be sent using the hybrid message format. The leftmost column of Table 400 indicates message type 410, where two different types of messages are shown in Table 400: a coherent probe message 410A and an interrupt message 410B. In other implementations, other numbers of different types of messages are encoded in the hybrid message format. Using the hybrid message format allows the interrupt message 410B to be formatted in a similar manner to the coherent probe message 410A. Therefore, the fields of the interrupt message 410B, or in some cases a combination of fields, are aligned to match the fields of the coherent probe message 410A. The hybrid message format includes any number of fields, where the number of fields varies depending on the implementation. As shown in Table 400, the hybrid message format includes a coherent probe action field 415, an address field 420, a response field 425, and any number of other fields.
[0026] The first entry of table 400 shows an example of a coherent probe message 410A. For the coherent probe message 410A, field 415 is encoded with a coherent probe action indicator 415A. The coherent probe action indicator 415A can be set equal to any of a variety of different values depending on the probe action type. For the interrupt message 410B, field 415 is encoded with an interrupt delivery indicator 415B to indicate that the message is an interrupt. In one implementation, a cache subsystem (e.g., Figure 2 Control logic in the cache subsystem 240A) looks at field 415 to determine whether the received message is a coherent probe message or an interrupt message.
[0027] Field 420 specifies the address of the corresponding memory location targeted by the coherent probe message 415A. For the interrupt message 410B, field 420 stores the interrupt type indicator 420B in a first subset of bits, and field 420 stores the target indicator 420C in a second subset of bits. In other words, the address field 420 is repurposed to hold both the interrupt type indicator 420B and the target indicator 420C for the interrupt message 410B. This is possible because the combination of the interrupt type indicator 420B and the target indicator 420C has the same size as the address field 420A. The interrupt type indicator 420B stores the type of interrupt conveyed by the interrupt message 410B, and the target field 420C specifies the target of the interrupt message 410B.
[0028] Field 425 specifies the type of response that should be generated after processing the message. For coherent probe message 410A, field 425 is encoded with any of the values of various response indicators 425A, which specify the type of response to be sent back to the source. For interrupt message 410B, response field 425 is encoded with no response indicator 425B to indicate that a response does not need to be sent back to the source. In other implementations, the hybrid message format includes other fields. For example, in another implementation, the hybrid message format includes an interrupt vector field for storing the memory location of the interrupt handler. Other types of fields are also possible and can be considered for use in the hybrid message format.
[0029] Now refer to Figure 5 , shows one implementation of a method 500 for generating a message to be sent over a coherent probing network. For discussion purposes, the steps and Figures 6 to 8 However, it should be noted that in various implementations of the described method, one or more of the described elements may be performed simultaneously, in a different order than shown, or omitted entirely. Other additional elements may also be performed as needed. Any of the various systems or devices described herein may be configured to implement method 500.
[0030] Control logic in the fabric interconnect receives a message in a mixed message format (block 505). In response to receiving the message in the mixed message format, the control logic determines whether the message is a coherent probe message or an interrupt message (block 510). Figure 6 An example of how to determine whether a message is a coherent probe message or an interrupt message is described in the discussion of method 600 of . If the received message is an interrupt message (the "yes" branch of conditional block 515), the control logic retrieves a target field from the interrupt message, where the target field is a subset of the address field of the hybrid message format (block 520). In other words, if the address field is Y bits long, then the target field is X bits long, where X is less than Y, and where both X and Y are positive integers. An example of a target field being a subset of the address field is described in Figure 4 400 . Next, the control unit routes the interrupt message to the one or more devices specified in the destination field via the coherent probe network (block 525). If the received message is a coherent probe message (the "no" branch of conditional block 515), the control logic retrieves the address field from the coherent probe message (block 530). Next, the control logic forwards the coherent probe message to the one or more devices corresponding to the address specified in the address field via the coherent probe network (block 535). After blocks 525 and 535, method 500 ends.
[0031] Now turn Figure 6, shows one implementation of a method for determining whether a message is a coherent detection message or an interrupt message. The control logic receives a message via a coherent detection network (block 605). In response to receiving the message, the control logic retrieves a coherent detection action field from the received message (block 610). If the coherent detection action field is encoded with an interrupt delivery indicator (the "yes" branch of conditional block 615), the control logic treats the received message as an interrupt message (block 620). If the coherent detection action field is encoded with a coherent detection action indicator (the "no" branch of conditional block 615), the control logic treats the received message as a coherent detection message (block 625). In other words, if the coherent detection action field of the message is encoded using any value other than an interrupt delivery indicator, the control logic treats the received message as a coherent detection message. After blocks 620 and 625, method 600 ends.
[0032] Now refer to Figure 7 , shows one implementation of a method 700 for generating an interrupt message. The control logic receives the interrupt (block 705). Depending on the implementation, the control logic is located in a cache subsystem, a coherence point, or elsewhere within the computing system. In response to receiving the interrupt, the control logic generates an interrupt message that is compatible with the coherence probe message, wherein the fields of the generated interrupt message are aligned with the fields of the coherence probe message (block 710). The control logic then forwards the interrupt message to the target destination via the coherence probe network (block 715). After block 715, the method 700 ends.
[0033] Now turn Figure 8 , shows one implementation of a method 800 for processing a received message at a cache subsystem. Control logic in the cache subsystem receives a message via a coherent probe network (block 805). In one implementation, the control logic is part of the L2 cache. In other implementations, the control logic is located at other levels of the cache subsystem. In response to receiving the message, the control logic determines whether the message is a coherent probe message or an interrupt message (block 810). Figure 6 One example of how to determine whether a message is a coherent detection message or an interruption message is described in method 600 of FIG.
[0034] If the message is an interrupt message (the "yes" branch of conditional block 815), the control logic retrieves the target field from the message (box 820). The control logic then routes the interrupt message to one or more interrupt controllers of the one or more processor cores targeted by the interrupt (box 825). Alternatively, in another implementation, the control logic broadcasts the interrupt message to the interrupt controllers of all processor cores in the node. If the message is a coherent probe message (the "no" branch of conditional block 815), the control logic retrieves the coherent probe action field and the address field from the message (box 830). Next, the control logic processes the coherent probe message according to the probe action specified in the coherent probe action field (box 835). After boxes 825 and 835, method 800 ends.
[0035] In various implementations, the methods and / or mechanisms described herein are implemented using program instructions of a software application. For example, program instructions that can be executed by a general-purpose or special-purpose processor are contemplated. In various implementations, such program instructions are represented by a high-level programming language. In other implementations, the program instructions are compiled from the high-level programming language into a binary form, an intermediate form, or other form. Alternatively, program instructions describing the behavior or design of the hardware are written. Such program instructions are represented by a high-level programming language such as C. Alternatively, a hardware design language (HDL) such as Verilog is used. In various implementations, the program instructions are stored on any one of a variety of non-transitory computer-readable storage media. During use, a computing system can access the storage medium to provide the program instructions to the computing system for program execution. Generally speaking, such a computing system includes at least one or more memories and one or more processors configured to execute the program instructions.
[0036] It should be emphasized that the above implementation is only a non-limiting example of an implementation. Once the above disclosure is fully understood, numerous variations and modifications will become apparent to those skilled in the art. The appended claims are intended to be interpreted as covering all such variations and modifications.
Claims
1. A system for handling an interrupt, the system comprising: one or more processing nodes, each processing node comprising one or more processor cores and a cache subsystem, wherein each cache subsystem is configured to determine whether a received message is a coherent probe message or an interrupt message based on an embedded encoding; Control unit; as well as a coherent detection network configured to transmit coherent detection messages and interrupt messages from the control unit to one or more of the cache subsystems of the one or more processing nodes; The control unit is configured to: In response to detecting an outage, generating an outage message in a hybrid message format compatible with a format of a coherent probing message used by the coherent probing network; as well as The interrupt message is sent via the coherent probing network on a path to a cache subsystem of a target processing node of the one or more processing nodes before a processor core is notified of the interrupt.
2. The system of claim 1, wherein the control unit is further configured to: generating a first code for a coherent detection message; embedding the first code into a given field of a coherent detection message sent on the coherent detection network; generating a second code for an interrupt message, wherein the second code is different from the first code; as well as The second code is embedded in a given field of an interruption message sent over the coherent detection network.
3. The system of claim 1, wherein the interrupt message includes a code in a response field indicating that no response needs to be sent.
4. The system of claim 1, wherein each cache subsystem is further configured to: in response to determining that the received message is an interrupt message, broadcast an interrupt message to one or more processor cores of the corresponding node.
5. The system of claim 1, wherein fields of the interrupt message are aligned to match fields of the coherent probe message.
6. The system of claim 1, wherein the control unit is further configured to encode a coherent detection action field of the interrupt message with an interrupt delivery indicator.
7. A method for handling an interrupt, comprising: transmitting, by a coherent detection network, coherent detection messages and interrupt messages from a control unit to one or more cache subsystems of one or more processing nodes; generating, by the control unit in response to detecting the interruption, an interruption message in a hybrid message format compatible with a format of a coherent probing message used by the coherent probing network; as well as Before the processor core is notified of the interrupt, the control unit sends the interrupt message to a cache subsystem of a target processing node of the one or more processing nodes via the coherent detection network; A determination is made by the cache subsystem whether a received message is a coherent probe message or an interrupt message based on the embedded code.
8. The method of claim 7, further comprising: generating a first code for a coherent detection message; embedding the first code into a given field of a coherent detection message sent on the coherent detection network; generating a second code for an interrupt message, wherein the second code is different from the first code; as well as The second code is embedded in a given field of an interruption message sent over the coherent detection network.
9. The method of claim 8, wherein the interrupt message includes a code in a response field indicating that no response needs to be sent.
10. The method of claim 7, further comprising: An interrupt message is broadcasted by the cache subsystem to a plurality of processor cores of a corresponding node in response to determining that the message is an interrupt message.
11. The method of claim 7, wherein fields of the interrupt message are aligned to match fields of the coherent probe message.
12. The method of claim 7, further comprising: The coherent detection action field of the interrupt message is encoded with an interrupt delivery indicator.
13. A device for processing an interrupt, comprising: Multiple processor cores; as well as Cache subsystem; The device is configured to: In response to detecting the interruption, generating an interruption message in a hybrid message format compatible with a format of a coherent probing message used by the coherent probing network; as well as before a processor core is notified of the interrupt, sending the interrupt message on a path to a cache subsystem of a target agent via the coherent probe network, wherein the coherent probe network is configured to carry the coherent probe message and the interrupt message to one or more cache subsystems and one or more coherent agents of the device; The cache subsystem is configured to determine whether a received message is a coherent probe message or an interrupt message based on the embedded code.
14. The device of claim 13, wherein the device is further configured to: generating a first code for a coherent detection message; embedding the first code into a given field of a coherent detection message sent on the coherent detection network; generating a second code for an interrupt message, wherein the second code is different from the first code; as well as The second code is embedded in a given field of an interruption message sent over the coherent detection network.
15. The apparatus of claim 13, wherein the interrupt message includes a code in a response field indicating that no response needs to be sent.
16. The device of claim 13, wherein the cache subsystem of the device is further configured to, in response to determining that the received message is an interrupt message, broadcast an interrupt message to a plurality of processor cores of corresponding coherent agents.
17. The apparatus of claim 13, wherein fields of the interrupt message are aligned to match fields of the coherent probe message.
