Centralized interrupt handling for chiplet processing units - Patents.com
Patent Information
- Application Number
- JP2024502023
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-07-30
- Filing Date
- 2022-07-13
- Publication Date
- 2024-08-27
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure 2024530868000001_ABST
Abstract
Description
[Background technology]
[0001] Description of Related Art Computing devices such as mobile phones, personal digital assistants (PDAs), digital cameras, portable players, game consoles, and other devices require more performance and features to be integrated into smaller and smaller spaces. As a result, the density of processor dies and the number of dies integrated into a single integrated circuit (IC) package have increased. Some conventional multi-chip modules include two or more semiconductor chips mounted side-by-side on a carrier substrate, or in some cases, on an interposer (so-called "2.5D") that is in turn mounted on the carrier substrate.
[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. [Brief description of the drawings]
[0003] [Figure 1] FIG. 1 is a block diagram of one embodiment of a computing system. [Diagram 2] 1 is a block diagram of a processing system employing GPU chiplets, according to some embodiments. [Diagram 3] FIG. 2 is a block diagram of another embodiment of a computing system. [Figure 4] FIG. 13 illustrates a single partition mode table for mapping interrupt clients to partitions, dies, and client IDs. [Diagram 5] FIG. 13 illustrates a dual partition mode table for mapping interrupt clients to partitions, dies, and client IDs. [Figure 6] FIG. 13 illustrates a quota partition mode table for mapping interrupt clients to partitions, dies, and client IDs. [Figure 7] FIG. 2 illustrates one embodiment of a master interrupt controller mapping table. [Figure 8] FIG. 1 illustrates one embodiment of a CPU mapping table. [Figure 9] FIG. 1 is a generalized flow diagram illustrating one embodiment of a method for operating a centralized interrupt controller for multiple semiconductor dies. [Figure 10] FIG. 1 is a generalized flow diagram illustrating one embodiment of a method for translating interrupt source IDs according to multiple mapping schemes. [Figure 11] FIG. 2 is a generalized flow diagram illustrating one embodiment of a method for translating an interrupt from a client to a guest OS. [Figure 12] 1 is a generalized flow diagram illustrating one embodiment of a method for configuring a chiplet GPU to operate in a particular partition mode. [Figure 13] FIG. 1 is a generalized flow diagram illustrating one embodiment of a method for mapping physical initiator IDs to logical initiator IDs for different partition modes. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0004] In the following description, numerous specific details are described to provide a thorough understanding of the methods and mechanisms presented herein. However, those skilled in the art should appreciate that various embodiments may be practiced without these specific details. In some instances, well-known structures, components, signals, computer program instructions and techniques are not shown in detail to avoid obscuring the approaches described herein. It will be understood that for simplicity and clarity of illustration, elements shown in the figures are not necessarily drawn to scale. For example, the dimensions of some elements may be exaggerated relative to other elements.
[0005] Various systems, apparatus, and methods are disclosed herein for implementing a centralized interrupt controller to aggregate interrupts generated across multiple semiconductor dies. In one embodiment, the system includes multiple interrupt sources on multiple semiconductor dies. A centralized interrupt controller on any semiconductor die receives and aggregates interrupts from multiple interrupt sources on the multiple semiconductor dies. This facilitates a single transmission point for forwarding interrupts to the processors and operating systems responsible for handling the interrupts. Each interrupt source embeds an ID when communicating an interrupt to the interrupt controller. This allows the interrupt controller to distinguish between the interrupt sources and identify which source generated a given interrupt. The interrupt controller communicates an indication of the source of the interrupt to the processor when forwarding the interrupt to the processor.
[0006] 1, a block diagram of one embodiment of a computing system 100 is shown. In one embodiment, computing system 100 includes at least processors 105A-105N, input / output (I / O) interface 120, bus 125, memory controller 130, network interface 135, memory device 140, display controller 150, and display 155. In other embodiments, computing system 100 includes other components and / or is configured differently. Processors 105A-105N represent any number of processors included in system 100.
[0007] In one embodiment, processor 105A is a general-purpose processor such as a central processing unit (CPU). In this embodiment, processor 105A executes drivers 110 (e.g., graphics drivers) for communicating with and / or controlling the operation of one or more of the other processors in system 100. It should be noted that, depending on the embodiment, driver 110 may be implemented using any suitable combination of hardware, software, and / or firmware. In one embodiment, processor 105N is a data-parallel processor with a highly parallel architecture, such as a chiplet graphics processing unit (GPU), that processes data, performs parallel processing workloads, renders pixels for display controller 150 to drive display 155, and / or performs other workloads.
[0008] Chiplet GPUs are complex integrated circuits that perform graphics processing tasks across multiple semiconductor dies. For example, GPUs perform graphics processing tasks required by end-user applications, such as video game applications. GPUs are also increasingly being used to perform other tasks not related to graphics. Other data parallel processors that may be included in system 100 include digital signal processors (DSPs), field programmable gate arrays (FPGAs), and application specific integrated circuits (ASICs). In some embodiments, processors 105A-105N include multiple data parallel processors.
[0009] The memory controller 130 represents any number and type of memory controller accessible by the processors 105A-105N. Although the memory controller 130 is shown as separate from the processors 105A-105N, it should be understood that this represents just one possible embodiment. In other embodiments, the memory controller 130 may be embedded within one or more of the processors 105A-105N and / or the memory controller 130 may be located on the same semiconductor die as one or more of the processors 105A-105N. The memory controller 130 is coupled to any number and type of memory devices 140. The memory devices 140 represent any number and type of memory devices. For example, types of memory in the memory devices 140 may include Dynamic Random Access Memory (DRAM), Static Random Access Memory (SRAM), NAND flash memory, NOR flash memory, Ferroelectric Random Access Memory (FeRAM), etc. Memory device(s) 140 store program instructions 145, which may include a first set of program instructions for a meta app, a second set of program instructions for a driver component, etc. Alternatively, program instructions 145 may be stored in a memory or cache device local to processor 105A and / or processor 105N.
[0010] I / O interface 120 represents any number and type of I / O interface (e.g., a peripheral component interconnect (PCI) bus, a PCI-Extended (PCI-X), a PCI Express (PCIE) bus, a gigabit Ethernet (GBE) bus, a universal serial bus (USB)). Various types of peripheral devices (not shown) are coupled to I / O interface 120. Such peripheral devices include, but are not limited to, displays, keyboards, mice, printers, scanners, joysticks, other types of game controllers, media recording devices, external storage devices, and the like. Network interface 135 can receive and transmit network messages over a network.
[0011] In various embodiments, computing system 100 is a computer, a laptop, a mobile device, a game console, a server, a streaming device, a wearable device, or any of a variety of other types of computing systems or devices. It should be noted that the number of components of computing system 100 varies from embodiment to embodiment. For example, in other embodiments, there are more or fewer components than are shown in FIG. 1. It should also be noted that in other embodiments, computing system 100 includes other components not shown in FIG. 1. Additionally, in other embodiments, computing system 100 is constructed in a manner other than that shown in FIG. 1.
[0012] Referring to FIG. 2, a block diagram illustrating a processing system 200 employing GPU chiplets is shown, according to some embodiments. In the illustrated example, system 200 includes a central processing unit (CPU) 205 for executing instructions and an array of one or more GPU chiplets, such as GPU chiplets 250A, 250B-250N (collectively GPU chiplets 250). In various embodiments, as used herein, the term "chiplet" refers to any device that includes, but is not limited to, the following characteristics: 1) a chiplet includes an active silicon die that includes a portion of the computational logic used to solve a full problem (i.e., the computational workload is distributed across multiple of these active silicon dies); 2) the chiplets are packaged together as a monolithic unit on the same substrate; and 3) the programming model maintains the notion that these separate computational dies are a single monolithic unit (i.e., each chiplet is not exposed as a separate device to an application that uses the chiplet to process a computational workload).
[0013] In various embodiments, CPU 205 is coupled to system memory 230, such as dynamic random access memory (DRAM), via bus 240. In various embodiments, system memory 230 may be implemented using other types of memory, including static random access memory (SRAM), non-volatile RAM, and the like. In one embodiment, system memory 230 includes data structures 235A-235N for storing data associated with interrupts. In the illustrated example, the structures are ring buffers 235A-235N, one ring buffer for each guest OS in system 200. In other words, each ring buffer 235A-235N is assigned to one guest OS. In one embodiment, each ring buffer 235A-235N stores metadata associated with interrupts received from master interrupt controller (MIC) 255 for the corresponding guest OS. Although structures 235A-235N are shown in the embodiment of FIG. 2 as ring buffers, other structures are possible and contemplated. The interrupts are then processed in the order in which they were received from the MIC255.
[0014] In the illustrated embodiment, CPU 205 communicates with system memory 230 and also with GPU chiplets 250 via bus 240, which may be implemented as a peripheral component interconnect (PCI) bus, a PCI-E bus, or other type of bus. However, some embodiments of system 200 include GPU chiplets 250 that communicate with CPU 205 through a direct connection or via other buses, bridges, switches, routers, etc.
[0015] As illustrated, CPU 205 includes several processes, such as executing one or more applications 210 to generate graphics commands and user mode drivers 220 (or other drivers, such as kernel mode drivers). In various embodiments, one or more applications 210 include applications that utilize the capabilities of GPU chiplet 250, such as applications that generate work in system 200 or an operating system (OS). Application 210 may include one or more graphics instructions that instruct GPU chiplet 250 to render a graphical user interface (GUI) and / or a graphics scene. For example, the graphics instructions may include instructions that define a set of one or more graphics primitives to be rendered by GPU chiplet 250.
[0016] In some embodiments, application 210 utilizes a graphics application programming interface (API) to invoke user mode driver 220 (or a similar GPU driver). User mode driver 220 issues one or more commands to an array of one or more GPU chiplets to render one or more graphics primitives into a displayable graphics image. Based on the graphics instructions issued by application 210 to user mode driver 220, user mode driver 220 generates one or more graphics commands that specify one or more operations of the GPU chiplets to perform the rendering of the graphics. In some embodiments, user mode driver 220 is part of application 210 running on CPU 205. For example, user mode driver 220 may be part of a gaming application running on CPU 205. Similarly, a kernel mode driver (not shown) may be part of an operating system running on CPU 205.
[0017] In the embodiment of FIG. 2, communication links 260 (e.g., crosslinks 260) connect GPU chiplets 250 (i.e., GPU chiplets 250A-250N) to one another. Note that the number of GPU chiplets in a chiplet array is a matter of design choice and may vary from embodiment to embodiment. In various embodiments, crosslinks 260 include interconnect chips such as high density crosslink (HDCL) die interposers or other similar techniques for inter-chiplet communication. In one embodiment, chiplet 250A includes MIC 255, which aggregates interrupts generated across chiplets 250A-250N. MIC 255 forwards the interrupts to CPU 205 to be processed by OS 215 and / or driver 220. Further details regarding the operation of MIC 255 are provided throughout the remainder of this disclosure.
[0018] Referring to FIG. 3, a block diagram of another embodiment of a computing system 300 is shown. As shown in FIG. 3, computing system 300 includes a central processing unit (CPU) 310, a route complex 320, a switch 330, and a graphics processing unit (GPU) 340. In one embodiment, GPU 340 is a chiplet GPU including dies 350A-350D, which represent any number of semiconductor dies. Computing system 300 may include any number of other components (e.g., voltage regulators, memory devices, network interfaces, peripheral devices) that are not shown to avoid obscuring the figure. Computing system 300 may be any of the devices or systems listed above, such as a computer, laptop, server, supercomputer, mobile device, etc. Computing system 300 may be incorporated into other devices or systems. Any of a variety of other types of devices or systems are possible and contemplated.
[0019] CPU 310 represents any type of CPU or other type of processor. Depending on the embodiment, CPU 310 may include multiple cores or a single core. In one embodiment, CPU 310 executes control software (e.g., an operating system (OS)) for system 300. The operating system controls the operation of system 300 to achieve the desired functionality of the system. The operating system may include and / or interact with various software programs such as drivers, control software, etc. Root complex 320 connects switch 330 to CPU 310, as well as any number and types of other components not shown in FIG. 3 to avoid obscuring the diagram. In one embodiment, switch 330 is a peripheral component interconnect express (PCIE) switch. In other embodiments, switch 330 is any of a variety of other types of switches.
[0020] As shown in FIG. 3, chiplet GPU 340 includes four dies 350A-350D. In other embodiments, chiplet GPU 340 can include other numbers of dies (e.g., 8, 10, 16, 25, 32). As shown, each die 350A-350D includes multiple interrupt clients. For example, die 350A includes interrupt clients 355A-355B, die 350B includes interrupt clients 365A-365B, die 350C includes interrupt clients 370A-370B, and die 350D includes interrupt clients 375A-375B. Although each die 350A-350D is shown as including two interrupt clients, it should be understood that this is for illustrative purposes only. In other embodiments, each die 350A-350D can include other numbers of interrupt clients. It should also be understood that different dies can have different numbers of interrupt clients. For example, a first die may have one interrupt client, a second die may have two interrupt clients, a third die may have three interrupt clients, and so on.
[0021] Although each die 350A-350D is shown as having multiple interrupt clients, in one embodiment, only die 350A has an enabled interrupt handler 360. In some cases, die 350B-350D also have interrupt handlers, but these interrupt handlers are disabled. For example, each die 350A-350D are identical in one embodiment, with only one die having an enabled interrupt handler and the other die having a disabled interrupt handler. The enabled interrupt handler is the master interrupt handler for all of the die.
[0022] Interrupt handler 360 serves as a centralized interrupt handler for chiplet GPU 340. Note that interrupt handler 360 may be referred to herein as master interrupt handler 360 or centralized interrupt handler 360. Also note that the terms "interrupt handler" and "interrupt controller" may be used interchangeably herein. In one embodiment, all interrupts from clients on die 350A-350D are routed to interrupt handler 360. Then, upon receiving an interrupt from any of the interrupt clients on die 350A-350D, interrupt handler 360 forwards the interrupt to control software executing on CPU 310. In one embodiment, interrupt handler 360 generates a cookie to forward with the interrupt data generated by the client. The cookie may include information such as the client's identifier (ID), the die's ID, and / or other metadata.
[0023] In various embodiments, the master interrupt handler 360 includes a mapping table 363 that maps hardware IDs to software IDs for interrupt initiators. In one embodiment, the mapping table 363 maps physical die IDs to logical die IDs for several partition modes. The configuration of the four-die chiplet GPU 340 shown in FIG. 3 corresponds to a quota partition usage in one embodiment. However, the four-die chiplet GPU 340 can also support dual partition and single partition modes with two or all four dies corresponding to a single OS. In dual partition and single partition modes, the partition ID + client ID is not sufficient to identify the interrupt initiator, in which case the partition ID + die ID + client ID is used to identify the interrupt initiator. In one embodiment, the CPU 310 includes a mapping table 315 that maps software IDs to guest OSs of interrupt initiators. In one embodiment, each software ID corresponds to a different guest operating system (OS). When CPU 310 receives an interrupt from interrupt handler 360, the interrupt includes a software ID that identifies the interrupt initiator using an ID recognizable by CPU 310. CPU 310 maps this software ID to the associated guest OS of the interrupt initiator that initiated this particular interrupt. CPU 310 can then handle the interrupt in a manner consistent with the associated guest OS.
[0024] For example, in single partition mode, there is only one OS. This OS owns all four physical dies, and the partition ID (valid values: 0) + die ID (valid values: 0, 1, 2, 3) + client ID are used to identify the interrupt initiator. In dual partition mode, each OS owns two physical dies (0 / 1 and 2 / 3 separately). However, from a software perspective, each OS thinks it owns die 0 / 1. In dual partition mode, the remapping table 363 maps the physical die ID (2 / 3) to a logical die ID (0 / 1), so that both OSs logically see only die 0 and die 1. In this case, the partition ID (valid values: 0, 1) can be used to select the guest OS, and the remapped die ID (valid values: 0, 1) + client ID can convey the interrupt initiator information to each OS. In quota partition mode, each OS owns one physical die. From a software perspective, each OS thinks it owns die 0. Thus, in quota partition mode, mapping table 363 maps physical die IDs (1 / 2 / 3) to logical die ID (0) so that the OS can only logically see die 0. The partition ID (valid values: 0, 1, 2, 3) can be used to select a guest OS, and the remapped die ID (valid values: 0) + client ID can convey interrupt initiator information to each OS.
[0025] Referring to FIG. 4, one embodiment of a table 400 for mapping interrupt clients to partitions, die, and client IDs when in single partition mode is shown. Table 400 applies to the interrupt client configuration of system 300 (FIG. 3) for single partition mode. In single partition mode, there is only one OS, and the OS owns all four physical die. In order for the OS to know which client the interrupt came from, it uses the die ID and client ID. In single partition mode, there is only one partition, so the partition ID is not needed. Thus, the interrupt handler (e.g., interrupt handler 360 of FIG. 3) sends the die ID and client ID to the OS when forwarding an interrupt to the OS. The combination of die ID field 430 and client ID field 440 is the logical initiator ID field 415 for single partition mode. In one embodiment, table 400 is used by the interrupt handler to map physical initiator IDs to logical initiator IDs for single partition mode. Alternatively, in another embodiment, rather than using a table, the interrupt handler uses a physical-to-logical mask to translate the physical ID received from the initiator into a logical ID usable by the CPU and / or OS. In other embodiments, the interrupt handler uses other techniques to map physical initiator IDs to logical initiator IDs.
[0026] Referring to FIG. 5, one embodiment of a table 500 for mapping interrupt clients to partitions, die and client IDs when in dual partition mode is shown. Table 500 applies to the interrupt client configuration of system 300 (FIG. 3) for dual partition mode. In dual partition mode, there are two OSs and each OS owns two physical dies. In one embodiment, die 350A and die 350B are in partition 0, and die 350C and die 350D are in partition 1. Each OS owns one partition. In dual partition mode, a partition->logical die ID lookup maps physical die IDs 0 / 1 / 2 / 3 to logical die IDs 0 / 1 / 0 / 1. The partition ID is used to perform guest OS lookups in dual partition mode. In order for the OS to know which client an interrupt came from, the OS uses the die ID and client ID. In dual partition mode, the partition ID identifies the OS, and the die ID and client ID are used by the OS to identify the physical interrupt initiator. In one embodiment, the combination of the partition ID field 520, the die ID field 530, and the client ID field 540 is the logical initiator ID field 515 for dual partition mode. Alternatively, in another embodiment, the interrupt handler uses the partition ID field 520 to identify the OS and then sends the combination of the die ID field 530 and the client ID field 540 to the identified OS. In this embodiment, the logical initiator ID field 515 is only the die ID field 530 and the client ID field 540.
[0027] Referring to FIG. 6, one embodiment of a table 600 for mapping interrupt clients to partitions, dies, and client IDs when in quota partition mode is shown. Table 600 applies to the interrupt client configuration of system 300 (FIG. 3) for quota partition mode. In quota partition mode, there are four OSs, each owning one physical die and corresponding to a single partition. In quota partition mode, the partition->logical die ID lookup maps physical die IDs 0 / 1 / 2 / 3 to logical die IDs 0 / 0 / 0 / 0. The partition ID is used to perform guest OS lookups in quota partition mode. The OS uses the client ID so that the OS knows which client the interrupt came from. In quota partition mode, the partition ID identifies the OS, and the client ID is used by the OS to identify the physical interrupt initiator. In one embodiment, the combination of partition ID field 620 and client ID field 640 is the logical initiator ID field 615 for quota partition mode. Alternatively, in another embodiment, the interrupt handler uses the partition ID field 620 to identify the OS and then sends the client ID field 640 to the identified OS. In this embodiment, the logical initiator ID field 615 is only the client ID field 640.
[0028] Turning now to FIG. 7, a diagram of one embodiment of a master interrupt controller mapping table 700 is shown. In one embodiment, the entries of table 700 are included in table 363 (of FIG. 3). In one embodiment, the entries of table 700 include two fields: a physical initiator identifier (ID) field 710 and a logical initiator ID field 720. Any number of entries may be included in table 700, and entries are shown for physical initiator IDs 710A-710N and logical initiator IDs 720A-720N. In other embodiments, the entries of table 700 may include other numbers and / or types of fields and may be structured in other suitable manners. It is noted that the terms "physical initiator" and "hardware initiator" may be used interchangeably herein. It is also noted that the terms "logical initiator" and "software initiator" may be used interchangeably herein. The physical initiator ID field 710 and the initiator ID field 720 may be encoded with any number of bits, with the number of bits varying depending on the embodiment, partition mode, chiplet GPU configuration, etc.
[0029] In one embodiment, when a master interrupt controller (e.g., master interrupt controller 360) receives an interrupt from a client, the master interrupt controller performs a lookup in table 700 using the physical initiator ID to determine the corresponding logical initiator ID. The master interrupt controller then forwards the logical initiator ID along with the interrupt to the software. The master interrupt controller can discard the physical initiator ID from the interrupt, or the master interrupt controller can include at least a portion of the physical initiator ID in the interrupt forwarded to the software, depending on the embodiment.
[0030] Referring to FIG. 8, a diagram of one embodiment of a CPU mapping table 800 is shown. In one embodiment, the entries of table 800 are included in table 315 (of FIG. 3). In one embodiment, the entries of table 800 include two fields: a logical initiator ID field 810 and a guest OS ID field 820. Any number of entries may be included in table 800, and entries are shown for logical initiator IDs 810A-N and guest OS IDs 820A-N. In other embodiments, the entries of table 800 may include other numbers and / or types of fields and may be structured in other suitable manners. The logical initiator ID field 810 and the guest OS ID field 820 may be encoded with any number of bits depending on the embodiment.
[0031] In one embodiment, when the control software (e.g., OS 215, driver 220 of FIG. 2) receives an interrupt from a client via the master interrupt controller, the control software performs a lookup in table 800 using the logical initiator ID to determine the corresponding guest OS ID. The control software can then process the interrupt according to the appropriate guest OS protocol.
[0032] Referring to FIG. 9, one embodiment of a method 900 for operating a centralized interrupt controller for multiple semiconductor dies is shown. For purposes of illustration, the steps in this embodiment and in FIGS. 10-13 are shown in sequence. However, it should be noted that in various embodiments of the described method, one or more of the described elements are performed simultaneously, in a different order than shown, or are omitted entirely. Other additional elements are also performed as desired. Any of the various systems or devices described herein may be configured to perform method 900 (and methods 1000-1300).
[0033] The centralized interrupt controller receives multiple interrupts from multiple interrupt sources located on multiple semiconductor dies (block 905). For each received interrupt, the interrupt controller determines which source generated the interrupt (block 910). In one embodiment, the interrupt controller maintains a mapping table (e.g., mapping table 363 of FIG. 3) that maps physical initiator IDs to logical initiator IDs. In this embodiment, the interrupt controller retrieves the physical initiator ID from the received interrupt and performs a lookup in the table to determine which logical initiator ID the retrieved physical initiator ID maps to. In other embodiments, the interrupt controller uses other techniques to determine which source generated a given interrupt.
[0034] Next, for each interrupt, the interrupt controller forwards the interrupt to the processor along with an indication of the source (block 915). The processor then processes the interrupt and communicates a response to the interrupt controller when processing of the interrupt is complete (block 920). The interrupt controller then forwards a completion indication to the interrupt source (block 925). After block 925, the method 900 ends.
[0035] Referring to FIG. 10, one embodiment of a method 1000 for translating interrupt source IDs according to multiple mapping schemes is shown. The centralized interrupt controller maintains a first mapping table (e.g., table 363 of FIG. 3) that maps interrupt sources according to a first mapping scheme (block 1005). The processor maintains a second mapping table (e.g., table 315) that maps interrupt sources according to a second ID scheme (block 1010). The centralized interrupt controller translates a first ID of a first interrupt source to a second ID according to the first mapping scheme (block 1015). The centralized interrupt controller forwards the second ID to the processor along with the interrupt (block 1020). The processor translates the second ID to a third ID according to the second mapping scheme (block 1025). The processor then processes the interrupt according to rules defined for the third ID (block 1030). After block 1030, the method 1000 ends.
[0036] Referring to FIG. 11, one embodiment of a method 1100 for translating an interrupt from a client to a guest OS is shown. A master interrupt controller receives an interrupt from a given client (block 1105). For purposes of this description, it is assumed that the master interrupt controller is connected (directly or indirectly) to and receives interrupts from multiple different clients. The master interrupt controller then identifies a logical initiator ID associated with the physical initiator ID of the given client (block 1110). In one embodiment, the master interrupt controller performs a lookup in a mapping table (e.g., table 363 of FIG. 3) using the physical initiator ID of the given client to identify the logical initiator ID of the given client. The master interrupt controller then forwards the interrupt with the logical initiator ID of the given client to a processor (e.g., CPU 310) (block 1115). The processor then identifies the guest OS associated with the given client (block 1120). In one embodiment, the master interrupt controller performs a lookup in a mapping table (e.g., table 315) using the logical initiator ID of a given client to identify the guest OS associated with the partition. The processor then processes the interrupt in a manner corresponding to the identified guest OS (block 1125). After block 1125, method 1100 ends.
[0037] Referring to FIG. 12, one embodiment of a method 1200 for configuring a chiplet GPU to operate during a particular partition mode is shown. The hypervisor sends a command to a master interrupt controller of the chiplet GPU to operate in a given partition mode (block 1205). In response to receiving the command, the master interrupt controller programs a mapping table to map physical initiator IDs to logical initiator IDs according to the given partition mode (block 1210). FIGS. 4-6 provide examples of configuring the mapping table according to different partition modes. Alternatively, in another embodiment, the master interrupt controller programs a mask to convert physical initiator IDs to logical initiator IDs according to the given partition mode.
[0038] In response to receiving an interrupt from the given physical initiator, the master interrupt controller identifies a given guest OS corresponding to the given physical initiator using the partition ID of the given physical initiator (block 1215). The master interrupt controller then maps the physical initiator ID of the given physical initiator to a given logical initiator ID using a mapping table (block 1220). The master interrupt controller then forwards the interrupt to the given guest OS having the given logical initiator ID (block 1225). After block 1225, the method 1200 ends.
[0039] 13, one embodiment of a method 1300 for mapping physical initiator IDs to logical initiator IDs for different partition modes is shown. A master interrupt controller of a chiplet GPU receives an interrupt from a given initiator (block 1305). If the chiplet GPU is in a first partition mode (condition block 1310, “first”), the master interrupt controller uses a first subset of ID fields to generate a logical initiator ID for the given initiator (block 1315). For example, in one embodiment, if the chiplet GPU is in a single partition mode, the master interrupt controller uses a combination of the die ID and client ID as the logical initiator ID while ignoring the partition ID for the given initiator. Otherwise, if the chiplet GPU is in a second partition mode (condition block 1310, “second”), the master interrupt controller uses a second subset of the ID fields to identify a logical initiator ID for the given initiator, the second subset being different from the first subset (block 1320). For example, in one embodiment, if a four-die chiplet GPU is in a quarter partition mode, the master interrupt controller uses a combination of the partition ID and client ID as the logical initiator ID while ignoring the die ID for the given initiator. After blocks 1315 and 1320, method 1300 may end. Note that method 1300 describes an example where there are two different partition modes. However, it should be understood that in other embodiments, method 1300 may be modified to perform for two or more different types of partition modes. In these embodiments, condition block 1310 has more than two options, and the subset selected is based on the particular partition mode.
[0040] In various embodiments, program instructions of a software application are used to implement the methods and / or mechanisms described herein. For example, program instructions executable by a general purpose or special purpose processor are contemplated. In various embodiments, such program instructions are expressed by a high level programming language. In other embodiments, the program instructions are compiled from the high level programming language into a binary, intermediate or other form. Alternatively, program instructions are written that describe the behavior or design of hardware. Such program instructions are expressed by a high level programming language such as C. Alternatively, a hardware design language (HDL) such as Verilog is used. In various embodiments, the program instructions are stored in any of a variety of non-transitory computer readable storage media. The storage media are accessible by the computing system during use 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.
[0041] It should be emphasized that the above-described embodiments are merely non-limiting examples of embodiments. Numerous variations and modifications will become apparent to those skilled in the art once the above disclosure is fully appreciated. It is intended that the following claims be interpreted to include all such variations and modifications.
Claims
1. An apparatus comprising: a master interrupt controller in a first semiconductor die of the plurality of semiconductor dies; The master interrupt controller receiving an interrupt from at least a first interrupt source in a first semiconductor die and a second interrupt source in a second semiconductor die of the plurality of semiconductor dies via a communications link; In response to receiving a given interrupt, determining which source generated the given interrupt; conveying the given interrupt to a processor for processing by the processor along with an indication of which source generated the given interrupt; [0023] Device.
2. the first semiconductor die has a first identifier (ID) and the second semiconductor die has a second ID that is different from the first ID; 2. The apparatus of claim 1.
3. the master interrupt controller receiving the first ID from the first interrupt source along with an interrupt generated by the first interrupt source; 3. The apparatus of claim 2.
4. the master interrupt controller is configured to map physical initiator IDs to logical initiator IDs; 2. The apparatus of claim 1.
5. the master interrupt controller determines a logical initiator ID of a source generating the interrupt by accessing a mapping table using a physical initiator ID received with the interrupt; 5. The apparatus of claim 4.
6. the first interrupt source has a first physical initiator identifier (ID) and the second interrupt source has a second physical initiator ID that is different from the first physical initiator ID; 2. The apparatus of claim 1.
7. the processor includes a mapping table that maps logical initiator IDs to guest operating system IDs; 2. The apparatus of claim 1.
8. 1. A method comprising: a master interrupt controller receiving interrupts from at least a first interrupt source on a first semiconductor die and a second interrupt source on a second semiconductor die; In response to receiving a given interrupt, determining which source generated the given interrupt; and communicating the given interrupt to the processor for processing by the processor along with an indication of which source generated the given interrupt. method.
9. the first semiconductor die has a first identifier (ID) and the second semiconductor die has a second ID that is different from the first ID; 9. The method of claim 8.
10. the first interrupt source transmitting the first ID to the master interrupt controller along with an interrupt generated by the first interrupt source.
10. The method of claim 9.
11. the master interrupt controller mapping physical initiator IDs to logical initiator IDs; 9. The method of claim 8.
12. the master interrupt controller determining a logical initiator ID of a source generating the interrupt by accessing a mapping table using a physical initiator ID received with the interrupt; 12. The method of claim 11.
13. the first semiconductor die includes a third interrupt source, the first interrupt source having a first identifier (ID), the second interrupt source having a second ID different from the first ID, and the third interrupt source having a third ID different from the second ID and the first ID.
9. The method of claim 8.
14. maintaining a mapping table that maps logical initiator IDs to guest operating system IDs; determining a guest operating system corresponding to the given interrupt by accessing the mapping table with a given logical initiator ID corresponding to the given interrupt; 9. The method of claim 8.
15. 1. A system comprising: A plurality of semiconductor dies; a master interrupt controller; The master interrupt controller receiving an interrupt from a first interrupt source on a first semiconductor die and a second interrupt source on a second semiconductor die; In response to receiving a given interrupt, determining which source generated the given interrupt; conveying the given interrupt to a processor for processing by the processor along with an indication of which source generated the given interrupt; [0023] system.
16. the first semiconductor die has a first identifier (ID) and the second semiconductor die has a second ID that is different from the first ID; 16. The system of claim 15.
17. the first interrupt source is configured to transmit the first ID to the master interrupt controller along with an interrupt generated by the first interrupt source; 17. The system of claim 16.
18. the master interrupt controller is configured to map physical initiator IDs to logical initiator IDs; 16. The system of claim 15.
19. the master interrupt controller is configured to determine a logical initiator ID of a source generating the interrupt by accessing a mapping table using a physical initiator ID received with an interrupt; 20. The system of claim 18.
20. the first semiconductor die includes a third interrupt source, the first interrupt source having a first identifier (ID), the second interrupt source having a second ID different from the first ID, and the third interrupt source having a third ID different from the second ID and the first ID.
16. The system of claim 15.
Citation Information
Patent Citations
Systems and methods for testing and configuring semiconductor functional circuits
JP2007506267A
A processor configured to virtualize the guest local interrupt controller.
JP2013519170A
Scalable multi-core system-on-chip architecture on multiple dice for high end microcontroller
JP2017199371A
Low power management for multi-node systems
JP2021507412A
Interrupt remapping based on requestor identification
US20080162762A1
