System, apparatus and method for dynamically controlling current consumption of processing circuitry of a processor - Patents.com
By dynamically controlling current consumption for each processing circuit within a processor based on workload priority, the solution addresses the inefficiencies in energy usage of computing devices, optimizing power management and maintaining performance.
Patent Information
- Application Number
- JP2021560890
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-05-15
- Filing Date
- 2020-03-19
- Publication Date
- 2024-09-09
- Estimated Expiration
- 2040-03-19
AI Technical Summary
The increasing power requirements and inefficiencies in computing devices due to advancements in integrated circuits and software-hardware interactions lead to significant energy consumption, necessitating improved energy efficiency and savings across various computing platforms.
A processor is configured to dynamically determine and control independent maximum current consumption for each processing circuit based on workload priority, allowing for optimized throttling of individual circuits to minimize impact on user-facing workloads.
This approach enhances energy efficiency by allowing processors to maintain performance in current-constrained situations by independently managing current consumption, optimizing power usage based on workload demands.
Smart Images

Figure 0007547368000013 
Figure 0007547368000018 
Figure 0007547368000007
Abstract
Description
[Technical field]
[0001] FIELD OF THE DISCLOSURE Embodiments relate to power management for processors. [Background technology]
[0002] Advances in semiconductor processing and logic design have allowed an increase in the amount of logic that can reside on an integrated circuit device. As a result, computer system configurations have evolved from single or multiple integrated circuits in a system to multiple hardware threads, multiple cores, multiple devices, and / or complete systems on individual integrated circuits. Furthermore, as the density of integrated circuits has increased, the power demands on computing systems (from embedded systems to servers) have also increased stepwise. Software inefficiencies and their hardware demands have also increased the energy consumption of computing devices. In fact, some studies have shown that computing devices consume a significant percentage of the entire power supply of a country, such as the United States. As a result, there is a compelling need for energy efficiency and conservation associated with integrated circuits. These needs are evident in a wide range of computing devices, from servers (as contained in typical computers, automobiles, and televisions to biotechnology), desktop computers, notebooks, Ultrabooks, and other devices. TM This will increase as tablets, mobile phones, processors, embedded systems, etc. become more and more prevalent. [Brief description of the drawings]
[0003] [Figure 1] 1 is a block diagram of a portion of a system according to one embodiment of the present invention. [Diagram 2] FIG. 2 is a block diagram of a processor according to one embodiment of the present invention. [Diagram 3] FIG. 2 is a block diagram of a multi-domain processor according to another embodiment of the present invention. [Figure 4] 1 is an embodiment of a processor including multiple cores. [Diagram 5]FIG. 2 is a block diagram of the micro-architecture of a processor core according to one embodiment of the present invention. [Figure 6] FIG. 13 is a block diagram of the micro-architecture of a processor core according to another embodiment. [Figure 7] FIG. 13 is a block diagram of the micro-architecture of a processor core according to yet another embodiment. [Figure 8] FIG. 2 is a block diagram of the micro-architecture of a processor core according to yet a further embodiment. [Figure 9] FIG. 4 is a block diagram of a processor according to another embodiment of the present invention. [Figure 10] FIG. 1 is a block diagram of an exemplary SoC in accordance with one embodiment of the present invention. [Figure 11] FIG. 2 is a block diagram of another example of an SoC according to an embodiment of the present invention. [Figure 12] FIG. 1 is a block diagram of an example of a system with which embodiments may be used. [Figure 13] FIG. 2 is a block diagram of another example of a system with which embodiments may be used. [Figure 14] FIG. 1 is a block diagram of a representative computer system. [Figure 15] 1 is a block diagram of a system according to one embodiment of the present invention. [Figure 16] FIG. 1 is a block diagram illustrating an IP core development system that may be used to manufacture integrated circuits that perform operations in accordance with one embodiment. [Figure 17] 1 is a block diagram of a computing system according to one embodiment of the present invention. [Figure 18] FIG. 2 is a flow diagram of a method according to one embodiment of the present invention. [Figure 19] FIG. 2 is a flow diagram of a method according to one embodiment of the present invention. [Figure 20] FIG. 4 is a flow diagram of a method according to another embodiment of the present invention. [Figure 21] FIG. 2 is a block diagram of a processor according to one embodiment of the present invention. [Figure 22] FIG. 11 is a block diagram of a control configuration according to another embodiment of the present invention. [Figure 23] FIG. 2 is a flow diagram of a method according to one embodiment of the present invention. [Figure 24] FIG. 4 is a flow diagram of a method according to another embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0004] In various embodiments, a processor is configured to dynamically determine an independently controllable maximum current consumption capability for each of a plurality of processing circuits of the processor. For example, the processor may be a multi-core processor or other system-on-a-chip (SoC) that includes a variety of different processing circuits, including general-purpose processing cores and graphics processors, etc. In embodiments herein, a power controller may dynamically determine independent current consumption limits for each of the processing circuits based at least in part on information received from a software entity, such as an operating system or other scheduler or the application itself. Such information may identify the relative priority or importance of different processing circuits to a given workload, thereby enabling the provision of dynamic, independent, controllable current consumption values on a per-core (or other processing circuit) basis.
[0005] In this way, when a power excursion is encountered during operation, throttling of individual processing circuits can be performed independently to limit as much impact as possible on the workload being executed. In contrast, conventional throttling of processing circuits is performed by throttling a predetermined static amount when a power excursion occurs. Such static configurations are set to satisfy the full range of workload behaviors and are not optimal for a given case. Instead, in embodiments, by dynamically setting the current consumption allowed for individual processing circuits, an optimal throttling behavior can be achieved for a given workload being executed.
[0006] As a high level example, consider the case of a first workload that is core dominated and has a small amount of graphics processing. Consider the case of a second workload where the cores are less utilized and the graphics processor is more utilized. With appropriate hint information provided by the software entity, a dynamic and controllable determination of the maximum current consumption level by these different processing circuits can be provided and enforced. Thus, for the first workload where the cores may be performing work that impacts workload responsiveness, the cores may not be throttled to the extent that the graphics processor is throttled. Instead, for the second workload where the graphics processor may be performing work that is visible to the user, a higher level of throttling may be performed on the cores than on the graphics processor. Thus, different processing circuits may be throttled differently based on the different workloads that may be running.
[0007] In an embodiment, a software interface enables a software entity, such as runtime software, a driver, firmware, or other software entity, to provide dynamic programming of throttling information to optimize current sharing among disparate processing circuits of a processor. Thus, performance may be improved in current-constrained situations.
[0008] Although the following embodiments are described with reference to energy conservation and energy efficiency in a particular integrated circuit, such as in a computing platform or processor, other embodiments are applicable to other types of integrated circuits and logic devices. Similar techniques and teachings of the embodiments described herein may be applied to other types of circuits or semiconductor devices that may also benefit from better energy efficiency and energy conservation. For example, the disclosed embodiments are not limited to any particular type of computer system. That is, the disclosed embodiments may be used in many different system types ranging from server computers (e.g., tower, rack, blade, microserver, etc.), communication systems, storage systems, desktop computers of any configuration, laptops, notebooks, and tablet computers (including 2:1 tablets, phablets, etc.), and may also be used in other devices, such as handheld devices, systems on chips (SoC), and embedded applications. Some examples of handheld devices include mobile phones, such as smartphones, Internet protocol devices, digital cameras, personal digital assistants (PDAs), and handheld PCs. Embedded applications may typically include microcontrollers, digital signal processors (DSPs), network computers (NetPCs), set-top boxes, network hubs, wide area network (WAN) switches, wearable devices, or any other system capable of performing the functions and operations taught below. Also, embodiments may be implemented in mobile terminals with standard voice capabilities, such as mobile phones, smartphones and phablets, and / or non-mobile terminals without standard wireless voice capabilities, such as many wearables, tablets, notebooks, desktops, microservers, servers, etc. Furthermore, the apparatus, methods, and systems described herein are not limited to physical computing devices, but may also relate to software optimization for energy conservation and efficiency.As will become readily apparent from the following description, the method, apparatus, and system embodiments described herein (whether referring to hardware, firmware, software, or a combination thereof) are essential to the future of "green technologies," such as power conservation and energy efficiency, in products that span a large portion of the U.S. economy.
[0009] Referring now to Figure 1, a block diagram of a portion of a system in accordance with one embodiment of the present invention is shown. As shown in Figure 1, system 100 may include various components including a processor 110, which as shown is a multi-core processor. Processor 110 may be coupled to a power source 150 via an external voltage regulator 160, which may perform a first voltage conversion to provide a primary regulated voltage to processor 110.
[0010] As can be seen, the processor 110 includes multiple cores 120. a -120 n Each core may have an integrated voltage regulator (IVR) 125. a -125 nmay be associated with an IVR that receives a primary regulated voltage and generates an operating voltage that is supplied to one or more agents of the processor with which it is associated. Thus, an IVR implementation may be provided that allows fine-grained control of the voltage, and therefore power and performance, of each individual core. Thus, each core may operate at an independent voltage and frequency, allowing great flexibility and providing a wide range of opportunities to balance power consumption with performance. In some embodiments, the use of multiple IVRs allows components to be grouped into separate power planes such that power is regulated by the IVR and supplied only to components within that group. In power management, when a processor is placed in a particular low power state, one IVR of a given power plane may be powered down or turned off, while another IVR of another power plane may remain active or fully powered.
[0011] 1, there may be additional components within the processor, including an input / output interface 132, another interface 134, and an integrated memory controller 136. As can be seen, each of these components may be coupled to a separate integrated voltage regulator 125. x In one embodiment, interface 132 may be capable of operation with an Intel® Quick Path Interconnect (QPI) interconnect, which provides a point-to-point (PtP) link in a cache coherent protocol that includes multiple layers, including a physical layer, a link layer, and a protocol layer. Alternatively, interface 134 may be capable of operation with a Peripheral Component Interconnect Express (PCIe TM ) protocol.
[0012] Also shown is a power control unit (PCU) 138, which may include hardware, software, and / or firmware for performing power management operations for the processor 110. As can be seen, the PCU 138 provides control information to an external voltage regulator 160 via a digital interface, causing the voltage regulator to generate an appropriate regulated voltage. The PCU 138 also provides control information to the IVR 125 via another digital interface, controlling the generated operating voltage (or causing the corresponding IVR to be disabled in a low power mode). In various embodiments, the PCU 138 may include various power management logic units that perform hardware-based power management. Such power management may be entirely processor-controlled (e.g., by various processor hardware and may be triggered by workload and / or power, thermal, or other processor constraints) and / or the power management may be performed in response to an external source (e.g., platform or administrative power management source or system software).
[0013] 1 also illustrates an implementation in which PCU 138 is a separate processing engine (which may be implemented as a microcontroller), it is understood that in some embodiments, in addition to or instead of a dedicated power controller, each core may include or be associated with a power control agent to more autonomously control power consumption independently. In some cases, a hierarchical power management architecture is provided in which PCU 138 communicates with a corresponding power management agent associated with each of cores 120.
[0014] One power management logic unit included in the PCU 138 may be a dynamic current sharing control circuit configured to dynamically determine an independent maximum current consumption value for each core 120 and / or further processing circuitry. As described further herein, this control circuit may provide each of the cores 120 with a dynamically configurable maximum current consumption value, enabling each core 120 to operate in accordance with this constraint. Thus, when the PCU 138 identifies a condition that triggers a throttle event, a throttle signal may be sent to these cores 120. Each core 120 may then limit its operation to its dynamically determined maximum current consumption value. In this way, different cores may operate in asymmetric performance states, particularly when a throttle event is identified, causing minimal impact to user-facing workloads.
[0015] Although not shown for ease of explanation, it should be understood that there may be additional components within processor 110, such as additional control circuitry and other components, such as internal memory, e.g., one or more levels of a cache memory hierarchy. Also, although the implementation of Figure 1 is shown with an integrated voltage regulator, embodiments are not so limited.
[0016] It should be noted that the power management techniques described herein may be independent of and complementary to operating system (OS)-based power management (OSPM) mechanisms. According to an example OSPM technique, a processor may operate in various performance states or levels, so-called P-states, P0 through PN. In general, the P1 performance state may correspond to the highest guaranteed performance state requested by the OS. The embodiments described herein may enable dynamic changes to the guaranteed frequency of the P1 performance state based on various inputs and processor operating parameters. In addition to this P1 state, the OS may request a higher performance state, i.e., a P0 state. This P0 state may thus be an opportunistic or turbo mode state, in which the processor hardware may configure the processor, or at least a portion thereof, to operate at a higher frequency than the guaranteed frequency when power and / or thermal budget is available. In many implementations, a processor may include multiple so-called bin frequencies, written into the processor during manufacturing by fuses or otherwise, that are higher than the P1 guaranteed maximum frequency, exceeding the maximum peak frequency of that particular processor. Furthermore, according to an OSPM mechanism, a processor may operate in various power states or levels. With respect to power states, the OSPM mechanism may specify a number of different power consumption states, commonly referred to as C-states: C0, C1-Cn states. When a core is active, it operates in the C0 state, and when the core is idle, it can be placed in a core low power state, also called a core non-zero C-state (e.g., C1-C6 states), each of which is at a lower power consumption level (such that C6 is a deeper low power state than C1, etc.).
[0017] It should be appreciated that many different types of power management techniques may be used individually or in combination in different embodiments. As a representative example, a power controller may control the processor to be power managed by some form of dynamic voltage frequency scaling (DVFS), in which the operating voltage and / or operating frequency of one or more cores or other processor logic are dynamically controlled to reduce power consumption in certain circumstances. As an example, DVFS may be implemented using Enhanced Intel SpeedStep™ available from Intel Corporation of Santa Clara, Calif., to provide optimal performance at the lowest power consumption levels. TM In another example, DVFS may be implemented using Intel Turbocharger technology to allow one or more cores or other compute engines to operate at higher than their guaranteed operating frequency based on conditions (e.g., workload and availability). TM This may be performed using technology.
[0018] Another power management technique that may be used in certain examples is dynamic swapping of workloads between different computational engines. For example, a processor may include asymmetric cores or other processing engines that operate at different power consumption levels, allowing one or more workloads to be dynamically switched to run on a lower power core or other computational engine in certain power constrained situations. Another exemplary power management technique is hardware duty cycling (HDC) techniques, which may periodically enable and disable cores and / or other computational engines according to a duty cycle, such that one or more cores may be deactivated during inactive periods of the duty cycle and activated during active periods of the duty cycle. Although described with these specific examples, it should be understood that numerous other power management techniques may be used in particular embodiments.
[0019] Embodiments may be implemented in processors for a variety of markets, including server processors, desktop processors, mobile processors, etc. Referring now to Figure 2, a block diagram of a processor in accordance with an embodiment of the present invention is shown. As shown in Figure 2, a processor 200 includes multiple cores 210. a -210 n 2. In one embodiment, each such core may be of an independent power domain and may be configured to move in and out of an active state and / or a maximum performance state based on the workload. The various cores may be coupled via interconnect 215 to a system agent 220 that includes various components. As can be seen, system agent 220 may include a shared cache 230, which may be a last level cache. In addition, system agent 220 may include an integrated memory controller 240 that communicates with a system memory (not shown in FIG. 2), for example, via a memory bus. System agent 220 may also include various interfaces 250 and a power control unit 255, which may include logic for performing the power management techniques described herein. In the illustrated embodiment, power control unit 255 includes a dynamic current sharing control circuit 258 that may dynamically determine a dynamic current consumption value for each of cores 210 based at least in part on hint information provided by software. The dynamic current sharing control circuitry 258 may communicate such dynamic current consumption values to the cores 210 for their storage and internal use to independently control the current consumption of those cores, particularly when a throttle event is identified.
[0020] Additionally, interfaces 250a-250n may provide connections to various off-chip components, such as peripherals and mass storage, etc. Although the embodiment of Figure 2 is shown with this particular implementation, the scope of the invention is not limited in this respect.
[0021] 3, a block diagram of a multi-domain processor in accordance with another embodiment is shown. As shown in the embodiment of FIG. 3, a processor 300 includes multiple domains. Specifically, a core domain 310 includes multiple cores 3100-3100. n , a graphics domain 320 may include one or more graphics engines, and there may further be a system agent domain 350. In some embodiments, the system agent domain 350 may run at an independent frequency from the core domains and may be left powered on all the time to handle power control events and power management such that domains 310 and 320 may be controlled to dynamically enter and exit high and low power states. Each of domains 310 and 320 may operate at different voltages and / or powers. Note that although shown as having only three domains, it should be understood that the scope of the invention is not limited in this respect and that there may be more domains in other embodiments. For example, there may be multiple core domains, each including at least one core.
[0022] In general, each core 310 may further include a lower level cache, as well as various execution units and additional processing elements. These various cores may then be coupled together and connected to last level caches (LLCs) 3400-3400. n In various embodiments, LLC 340 may be shared among these cores and the graphics engine as well as among various media processing circuits. As can be seen, ring interconnect 330 thus couples these cores together and provides interconnection between the cores, graphics domain 320, and system agent circuitry 350. In one embodiment, interconnect 330 may be part of the core domain; however, in other embodiments, the ring interconnect may be of its own domain.
[0023] As can be further seen, system agent domain 350 can include a display controller 352 that can provide control of and an interface to an associated display. As can be further seen, system agent domain 350 can include a power control unit 355 that can include logic to perform the power management techniques described herein. In the illustrated embodiment, power control unit 355 includes dynamic current sharing control circuitry 359 that dynamically determines maximum current consumption levels for each core 310 and graphics engine 320 independently based at least in part on hints provided by software, as described herein.
[0024] 3, the processor 300 may further include an integrated memory controller (IMC) 370, which may provide an interface to system memory, such as dynamic random access memory (DRAM). A number of interfaces 3800-3800 may be provided to allow interconnection between the processor and other circuits. n For example, in one embodiment, there may be one or more PCIe TM At least one Direct Media Interface (DMI) interface may be provided along with the QPI interface. Additionally, one or more QPI interfaces may be provided to provide communication between other agents, such as additional processors or other circuitry. While illustrated at this high level in the embodiment of FIG. 3, it should be understood that the scope of the invention is not limited in this respect.
[0025] 4, one embodiment of a processor including multiple cores is shown. Processor 400 may include any processor or processing device, such as a microprocessor, embedded processor, digital signal processor (DSP), network processor, handheld processor, application processor, co-processor, system on chip (SoC), or other device that executes code. Processor 400, in one embodiment, includes at least two cores, cores 401 and 402, which may include asymmetric or symmetric cores (the illustrated embodiment). However, processor 400 may include any number of processing elements, which may be symmetric or asymmetric.
[0026] In one embodiment, a processing element refers to hardware or logic that supports a software thread. Examples of hardware processing elements include thread units, thread slots, threads, process units, contexts, context units, logical processors, hardware threads, cores, and / or any other element capable of maintaining a state for a processor, such as an execution state or an architectural state. In other words, a processing element, in one embodiment, refers to any hardware capable of being independently associated with code, such as a software thread, an operating system, an application, or other code. A physical processor typically refers to an integrated circuit that may include any number of other processing elements, such as cores or hardware threads.
[0027] A core often refers to logic located on an integrated circuit capable of maintaining independent architectural states, where each independently maintained architectural state is associated with at least some dedicated execution resources. In contrast to a core, a hardware thread typically refers to any logic located on an integrated circuit capable of maintaining independent architectural states, where multiple independently maintained architectural states share access to the execution resources. As can be appreciated, the line between the terms hardware thread and core overlaps when certain resources are shared and other resources are dedicated to an architectural state. Furthermore, often cores and hardware threads are viewed by the operating system as separate logical processors, and the operating system can schedule operations on each logical processor separately.
[0028] Physical processor 400 includes two cores, core 401 and core 402, as illustrated in FIG. 4. Cores 401 and 402 are considered here as symmetric cores, i.e., cores having the same configuration, functional units, and / or logic. In another embodiment, core 401 includes an out-of-order processor core, while core 402 includes an in-order processor core. However, cores 401 and 402 may be independently selected from any type of core, e.g., native cores, software-managed cores, cores adapted to execute a native instruction set architecture (ISA), cores adapted to execute a translated ISA, co-designed cores, or other known cores. However, for further discussion, the units in core 402 operate in a similar manner, and the illustrated functional units in core 401 are described in more detail below.
[0029] As shown, core 401 includes two hardware threads 401a and 401b, which may also be referred to as hardware thread slots 401a and 401b. Thus, a software entity, such as an operating system, may view processor 400, in one embodiment, as four separate processors, i.e., four logical processors or processing elements capable of simultaneously executing four software threads. As alluded to above, a first thread may be associated with architecture state register 401a, a second thread may be associated with architecture state register 401b, a third thread may be associated with architecture state register 402a, and a fourth thread may be associated with architecture state register 402b. Here, each of the architecture state registers (401a, 401b, 402a, and 402b) may be referred to as a processing element, thread slot, or thread unit, as described above. As shown, architecture state register (Arch Reg) 401a is duplicated in architecture state register 401b so that individual architecture state / context can be stored for logical processor 401a and logical processor 401b. Other smaller resources within core 401 may also be duplicated for threads 401a and 401b, such as the instruction pointer and renaming logic in allocator and renamer block 430. Some resources may be shared through partitioning, such as the reorder buffer, ILTB 420, load / store buffers, and queues within reorder / retirement unit 435. Other resources may be fully shared, such as general purpose internal registers, page table base register(s), low level data cache and data TLB 415, execution unit(s) 440, and portions of out-of-order unit 435.
[0030] Processor 400 often includes other resources that may be fully shared, shared through partitions, or dedicated by / to processing elements. FIG. 4 illustrates one embodiment of a purely exemplary processor with exemplary logical units / resources of the processor. Note that the processor may include or omit any of these functional units, as well as include any other known functional units, logic, or firmware not illustrated. As illustrated, core 401 includes a simplified representative out-of-order (OOO) processor core. However, in different embodiments, an in-order processor may be utilized. The OOO core includes a branch target buffer 420 that predicts executed / taken branches, and an instruction-translation buffer (I-TLB) 420 that stores address translation entries for instructions.
[0031] Core 401 further includes a decode module 425 coupled to fetch unit 420 for decoding fetched elements. The fetch logic includes, in one embodiment, individual sequencers associated with thread slots 401a, 401b, respectively. Typically, core 401 is associated with a first ISA that defines / specifies instructions executable on processor 400. Often, machine code instructions that are part of the first ISA include a portion of the instruction (called an opcode) that references / specifies the instruction or operation to be performed. Decode logic 425 includes circuitry to recognize these instructions from their opcodes and pass the decoded instructions to a pipeline for processing defined by the first ISA. For example, decoder 425 includes logic designed or adapted to recognize certain instructions, such as transactional instructions, in one embodiment. As a result of recognition by decoder 425, the architecture or core 401 takes a specific predefined action to perform the task associated with the appropriate instruction. It is important to note that any of the tasks, blocks, operations, and methods described herein may be executed in response to a single instruction or multiple instructions, some of which may be new instructions and some of which may be legacy instructions.
[0032] In one example, allocator and renamer block 430 includes an allocator that reserves resources, such as a register file for storing instruction processing results. However, threads 401a and 401b may be capable of out-of-order execution, in which case allocator and renamer block 430 also reserves other resources, such as a reorder buffer for tracking instruction results. Unit 430 may also include a register renamer that renames program / instruction reference registers to other registers internal to processor 400. Reorder / retirement unit 435 includes components, such as the reorder buffer, load buffer, and store buffer described above, to support out-of-order execution and subsequent in-order retirement of out-of-order executed instructions.
[0033] Scheduler and execution unit(s) block 440, in one embodiment, includes a scheduler unit that schedules instructions / operations on the execution units. For example, floating point instructions are scheduled onto ports of execution units that have an available floating point execution unit. Register files associated with the execution units are also included for storing information instruction processing results. Exemplary execution units include floating point execution units, integer execution units, jump execution units, load execution units, store execution units, and other known execution units.
[0034] A low level data cache and data translation buffer (D-TLB) 450 is coupled to the execution unit(s) 440. The data cache stores recently used / computed elements, such as data operands, that may be held in a memory coherency state. The D-TLB stores recent virtual / linear-to-physical address translations. As one specific example, the processor may include a page table structure that divides physical memory into multiple virtual pages.
[0035] Here, cores 401 and 402 share access to a higher or further cache 410 that caches recently fetched elements, where higher or further refers to increasing cache levels or further away from the execution unit(s). In one embodiment, higher cache 410 is a last level data cache that is the last cache in the memory hierarchy of processor 400, such as a second or third level data cache. However, higher cache 410 is not so limited, as it may be associated with or include an instruction cache. Alternatively, a trace cache, a type of instruction cache, may be coupled after decoder 425 to store recently decoded traces.
[0036] In the illustrated configuration, processor 400 also includes a bus interface module 405 and a power controller 460 that may perform power management in accordance with one embodiment of the present invention. In this scenario, bus interface 405 communicates with devices external to processor 400, such as system memory and other components.
[0037] The memory controller 470 may interface with other devices, such as one or more memories. In one example, the bus interface 405 includes a ring interconnect with a memory controller for interfacing with a memory and a graphics controller for interfacing with a graphics processor. In an SoC environment, many more devices, such as network interfaces, co-processors, memories, graphics processors, and any other known computing devices / interfaces, may be integrated on a single die or integrated circuit to provide a small form factor with high functionality and low power consumption.
[0038] Referring now to Figure 5, a block diagram of the micro-architecture of a processor core in accordance with one embodiment of the present invention is shown. As shown in Figure 5, processor core 500 may be a multi-stage pipelined out-of-order processor. Core 500 may operate at various voltages based on a received operating voltage, which may be received from an integrated voltage regulator or an external voltage regulator.
[0039] As can be seen in FIG. 5, the core 500 includes a front-end unit 510, which may be used to fetch instructions to be executed and prepare them for later use in the processor pipeline. For example, the front-end unit 510 may include a fetch unit 501, an instruction cache 503, and an instruction decoder 505. In some implementations, the front-end unit 510 may also include a trace cache, along with microcode storage and micro-operation storage. The fetch unit 501 may fetch macro-instructions, for example from memory or the instruction cache 503, and send them to the instruction decoder 505, which decodes them into primitives, i.e., micro-operations, for execution by the processor.
[0040] Coupled between the front-end unit 510 and the execution unit 520 is an out-of-order (OOO) engine 515 that may be used to receive microinstructions and prepare them for execution. More specifically, the OOO engine 515 may include various buffers to reorder the microinstruction flow and allocate various resources required for execution, and to provide renaming of logical registers to storage locations in various register files, such as register file 530 and extended register file 535. The register file 530 may include separate register files for integer and floating point operations. The extended register file 535 may provide storage for vector-sized units, such as 256 or 512 bits per register. A set of machine specific registers (MSRs) 538 may also be present and made accessible to various logic within (and outside) the core 500 for configuration, control, and additional operation purposes.
[0041] Within the execution unit 520, various resources may be present, including, for example, various integer, floating point, and single instruction multiple data (SIMD) logic units, among other specialized hardware. For example, such an execution unit may include one or more arithmetic logic units (ALUs) 522 and one or more vector execution units 524, among other such execution units.
[0042] Results from the execution units may be provided to retirement logic, known as reorder buffer (ROB) 540. More specifically, ROB 540 may include various arrays and logic that receive information related to instructions being executed. This information is then examined by ROB 540 to determine whether the instructions were legally retired and result data committed to the processor's architectural state, or to determine whether one or more exceptions have occurred that prevent the instructions from being properly retired. Of course, ROB 540 may handle other operations related to retirement as well.
[0043] As shown in FIG. 5, ROB 540 is coupled to cache 550, which in one embodiment may be a low level cache (e.g., an L1 cache), although the scope of the invention is not limited in this respect. Also, execution unit 520 may be directly coupled to cache 550. From cache 550, data communication may occur with higher level caches, system memory, etc. Although shown at this high level in the embodiment of FIG. 5, it should be understood that the scope of the invention is not limited in this respect. For example, while the implementation of FIG. 5 is directed to an out-of-order machine, such as, for example, one of the Intel® x86 Instruction Set Architecture (ISA), the scope of the invention is not limited in this respect. That is, other embodiments may be implemented in an in-order processor, a reduced instruction set computing (RISC) processor, such as, for example, an ARM-based processor, or a processor of another type of ISA that is capable of emulating instructions and operations of a different ISA via an emulation engine and associated logic.
[0044] 6, a block diagram of the microarchitecture of a processor core according to another embodiment is shown. In the embodiment of FIG. 6, core 600 is a processor such as an Intel® Atom TM6. The core 600 may be a low power core of a different microarchitecture, such as a DDR3-based processor. As can be seen, the core 600 includes an instruction cache 610 coupled to provide instructions to an instruction decoder 615. A branch predictor 605 may be coupled to the instruction cache 610. Note that the instruction cache 610 may also be coupled to another level of cache memory, such as an L2 cache (not shown in FIG. 6 for ease of illustration). The instruction decoder 615 in turn provides the decoded instructions to an issue queue 620 for storage and delivery to a given execution pipeline. A microcode ROM 618 is coupled to the instruction decoder 615.
[0045] Floating point pipeline 630 includes a floating point register file 632, which may include multiple architectural registers of a given bit, such as 128, 256, or 512 bits. Pipeline 630 includes a floating point scheduler 634 that schedules instructions to execute in one of the pipeline's multiple execution units. In the illustrated embodiment, such execution units include an ALU 635, a shuffle unit 636, and a floating point adder 638. Results produced by these execution units may then be provided back to buffers and / or registers in register file 632. It should be understood that while shown with these few example execution units, additional or different floating point execution units may be present in other embodiments.
[0046] An integer pipeline 640 may also be provided. In the illustrated embodiment, the pipeline 640 includes an integer register file 642, which may include multiple architectural registers of a given bit, such as 128 or 256 bits. The pipeline 640 includes an integer scheduler 644 that schedules instructions to execute in one of multiple execution units of the pipeline. In the illustrated embodiment, such execution units include an ALU 645, a shifter unit 646, and a jump execution unit 648. Results produced by these execution units may then be provided back to buffers and / or registers in the register file 642. It should be understood that while shown with these few example execution units, additional or different integer execution units may be present in other embodiments.
[0047] A memory execution scheduler 650 may schedule memory operations for execution in an address generation unit 652, which is also coupled to a TLB 654. As can be seen, these structures may be coupled to a data cache 660, which may be an L0 and / or L1 data cache that in turn couples to further levels of the cache memory hierarchy, including an L2 cache memory.
[0048] To provide support for out-of-order execution, an allocator / renamer 670 may be provided, as well as a reorder buffer 680 that is configured to reorder out-of-order executed instructions for retirement. While the example of Figure 6 is shown with this particular pipeline architecture, it should be understood that many variations and alternatives are possible.
[0049] Note that in processors with asymmetric cores, such as according to the microarchitectures of Figures 5 and 6, workloads can be dynamically swapped between cores for power management reasons, since the cores may have different pipeline designs and depths, but of the same or related ISA. Such dynamic core swapping can be performed in a manner that is transparent to user applications (and possibly even to the kernel).
[0050] Referring to FIG. 7, a block diagram of a microarchitecture of a processor core according to yet another embodiment is shown. As illustrated in FIG. 7, the core 700 may include a multi-stage in-order pipeline for execution at very low power consumption levels. As such, the processor 700 may have a microarchitecture according to the ARM Cortex A53 design available from Arm Holdings, Inc. of Sunnyvale, Calif. In one implementation, an eight-stage pipeline may be provided that is configured to execute both 32-bit and 64-bit code. The core 700 includes a fetch unit 710 configured to fetch instructions and provide them to a decode unit 715, which may decode instructions, such as macro instructions of a given ISA, such as the ARMv8 ISA. It is further noted that a queue 730 may be coupled to the decode unit 715 for storing the decoded instructions. The decoded instructions are provided to issue logic 725, where the decoded instructions may be issued to a given one of a plurality of execution units.
[0051] With further reference to FIG. 7, issue logic 725 may issue instructions to one of a number of execution units. In the illustrated embodiment, the execution units include an integer unit 735, a multiply unit 740, a floating point / vector unit 750, a dual issue unit 760, and a load / store unit 770. The results of the various execution units may be provided to a writeback unit 780. It should be understood that while a single writeback unit is shown for ease of illustration, in some implementations, a separate writeback unit may be associated with each of the execution units. Additionally, it should be understood that while each of the units and logic shown in FIG. 7 is represented at a high level, a particular implementation may include more or different structures. A processor designed with one or more cores having a pipeline as in FIG. 7 may be implemented in many different end products ranging from mobile devices to server systems.
[0052] Referring now to FIG. 8, a block diagram of a microarchitecture of a processor core according to a further embodiment is shown. As illustrated in FIG. 8, the core 800 may include a multi-stage, multi-issue, out-of-order pipeline for execution at very high performance levels (which may occur at higher power consumption levels than the core 700 of FIG. 7). As such, the processor 800 may have a microarchitecture according to the ARM Cortex A57 design. In one implementation, a 15 (or more) stage pipeline may be provided that is configured to execute both 32-bit and 64-bit code. Furthermore, the pipeline may provide 3 (or more) wide and 3 (or more) issue operations. The core 800 includes a fetch unit 810 configured to fetch instructions and provide them to a decoder / renamer / dispatcher 815, which may decode instructions, e.g., macroinstructions of the ARMv8 instruction set architecture, rename register references within the instructions, and (eventually) dispatch the instructions to a selected execution unit. The decoded instructions may be stored in queue 825. Note that while a single queue structure is shown in Figure 8 for ease of illustration, it should be understood that a separate queue may be provided for each of multiple different types of execution units.
[0053] 8, from which the decoded instructions stored in queue 825 may be issued to a selected execution unit. Issue logic 830 may also be implemented in a particular embodiment to have separate issue logic for each of multiple different types of execution units to which issue logic 830 is coupled.
[0054] The decoded instruction may be issued to a given one of a number of execution units. In the illustrated embodiment, the execution units include one or more of an integer unit 835, a multiply unit 840, a floating point / vector unit 850, a branch unit 860, and a load / store unit 870. In one embodiment, the floating point / vector unit 850 may be configured to handle 128-bit or 256-bit SIMD or vector data. Furthermore, the floating point / vector execution unit 850 may perform IEEE-754 double precision floating point operations. The results of these various execution units may be provided to a writeback unit 880. Note that in some implementations, each of the execution units may be associated with a separate writeback unit. Additionally, it should be understood that while each of the units and logic depicted in FIG. 8 is depicted at a high level, a particular implementation may include more or different structures.
[0055] Note that in processors with asymmetric cores, such as according to the microarchitectures of Figures 7 and 8, workloads can be dynamically swapped for power management reasons, since the cores may have different pipeline designs and depths, but of the same or related ISA. Such dynamic core swapping can be performed in a manner that is transparent to user applications (and possibly even to the kernel).
[0056] Processors designed with one or more cores with pipelines as in any one or more of Figures 5-8 may be implemented in many different end products ranging from mobile devices to server systems. Referring now to Figure 9, a block diagram of a processor in accordance with another embodiment of the present invention is shown. In the embodiment of Figure 9, the processor 900 may be an SoC that includes multiple domains, each of which may be controlled to operate at an independent operating voltage and frequency. As an illustrative example, the processor 900 may be an SoC that includes multiple domains, each of which may be controlled to operate at an independent operating voltage and frequency. As an illustrative example, the processor 900 may be an SoC that includes an Intel® Architecture Core™, such as an i3, i5, i7, etc.TM The SoC may be a 32-bit processor based on Intel, Inc., or another such processor available from Intel Corporation. However, in other embodiments, such as, for example, an Apple A7 processor, a Qualcomm Snapdragon processor, or a Texas Instruments OMAP processor, there may be other low power processors, such as, for example, those available from Advanced Micro Devices, Inc. (AMD) of Sunnyvale, Calif., ARM-based designs from Arm Holdings, Inc. or its licensees, or MIPS-based designs from MIPS Technologies, Inc. of Sunnyvale, Calif., or its licensees or adopters. Such SoCs may be used in, for example, smartphones, tablet computers, phablet computers, Ultrabooks, TM It may be used in low power systems such as computers or other portable computing or connected devices.
[0057] In the high level diagram shown in FIG. 9, a processor 900 includes multiple core units 9100-910 n Each core unit may include one or more processor cores, one or more cache memories, and other circuitry. Each core unit 910 may support one or more instruction sets (e.g., the x86 instruction set (with some extensions added in newer versions), the MIPS instruction set, the ARM instruction set (with optional additional extensions such as NEON)), or other instruction sets, or a combination thereof. It should be noted that some of these core units may be heterogeneous resources (e.g., of different designs). Furthermore, each such core may be coupled to a cache memory (not shown), which in one embodiment may be a shared level (L2) cache memory. Non-volatile storage 930 may be used to store various programs and other data. For example, this storage may be used to store at least a portion of the microcode, boot information such as a BIOS, or other system software, etc.
[0058] Each core unit 910 may also include an interface, such as a bus interface unit, that allows the processor to be interconnected to additional circuitry. In one embodiment, each core unit 910 couples to a coherent fabric that may act as a primary cache coherent on-die interconnect, which in turn couples to a memory controller 935. The memory controller 935 then controls communication with memory, such as DRAM (not shown in FIG. 9 for ease of illustration).
[0059] Within the processor, in addition to the core unit, there is a further processing engine including at least one graphics unit 920, which may include one or more graphics processing units (GPUs) that perform graphics processing and may perform general purpose operations on the graphics processor (so-called GPGPU operations). Additionally, there may be at least one image signal processor 925. The signal processor 925 may be configured to process input image data received from one or more capture devices either internal or off-chip of the SoC.
[0060] Other accelerators may also be present. In the example of FIG. 9, a video coder 950 performs coding operations including encoding and decoding video information, providing hardware accelerated support for, for example, high definition video content. A display controller 955 may further be provided to accelerate display operations, including providing support for internal and external displays of the system. In addition, a security processor 945 may be present to perform security processing, such as, for example, secure boot operations and various cryptographic operations.
[0061] Each of these units may have its power consumption controlled via power manager 940, which may contain control logic to implement the various power management techniques described herein.
[0062] In some embodiments, the SoC 900 may further include a non-coherent fabric coupled to a coherent fabric to which various peripheral devices may be coupled. One or more interfaces 960a-960d enable communication with one or more off-chip devices. Such communication may be accomplished using, for example, PCIe, PCI Express, PCI Express Plus ... TM , GPIO, USB, I 2 C, UART, MIPI, SDIO, DDR, SPI, HDMI, etc. Although shown at this high level in the embodiment of Figure 9, it should be understood that the scope of the invention is not limited in this respect.
[0063] Referring now to FIG. 10, a block diagram of an exemplary SoC is shown. In the illustrated embodiment, SoC 1000 may be a multi-core SoC configured for low power operation optimized for incorporation into a smartphone or other low power device such as a tablet computer or other portable computing device. As an example, SoC 1000 may be implemented with asymmetric or different types of cores, such as a combination of higher power and / or lower power cores, such as out-of-order and in-order cores. In different embodiments, these cores may be implemented in accordance with the Intel® Architecture TM The core design may be based on the ARM architecture design. In yet other embodiments, a mix of Intel® and ARM cores may be implemented within a given SoC.
[0064] As can be seen in FIG. 10, the SoC 1000 includes a first core domain 1010 having a number of first cores 10120-10123. In one example, the cores may be low power cores, such as in-order cores. In one embodiment, the first cores may be implemented as ARM Cortex A53 cores. The cores are coupled to a cache memory 1015 of the core domain 1010. Additionally, the SoC 1000 includes a second core domain 1020. In the example of FIG. 10, the second core domain 1020 includes a number of second cores 10220-10223. In one example, the cores may be higher power cores than the first core 1012. In one embodiment, the second cores may be out-of-order cores, such as ARM Cortex A57 cores. The cores are coupled to a cache memory 1025 of the core domain 1020. Note that although the example shown in FIG. 10 includes four cores in each domain, it should be understood that in other examples, more or fewer cores may be present in a given domain.
[0065] 10, a graphics domain 1030 is also provided, which may include, for example, one or more graphics processing units (GPUs) configured to independently execute graphics workloads provided by one or more cores of core domains 1010 and 1020. As an example, GPU domain 1030 may be used to provide display support for a variety of screen sizes in addition to providing graphics and display rendering operations.
[0066] As can be seen, these various domains couple to a coherent interconnect 1040, which in one embodiment may be a cache coherent interconnect fabric that in turn couples to an integrated memory controller 1050. The coherent interconnect 1040 may, in some examples, include a shared cache memory, such as, for example, an L3 cache. In one embodiment, the memory controller 1050 may be a direct memory controller that provides communication with off-chip memory over multiple channels, such as, for example, multiple channels of DRAM (not shown in FIG. 10 for ease of illustration).
[0067] The number of core domains may vary in different examples. For example, in a low-power SoC suitable for incorporation into a mobile computing device, there may be a limited number of core domains as shown in FIG. 10. Furthermore, in such a low-power SoC, the core domain 1020 including higher power cores may have a smaller number of such cores. For example, in one implementation, two cores 1022 may be provided to enable operation at a reduced power consumption level. Furthermore, the different core domains may also be coupled to an interrupt controller to enable dynamic swapping of workloads between the different domains.
[0068] In yet other embodiments, there may be a larger number of core domains and additional optional IP logic in that the SoC may be scaled to higher performance (and power) levels, for incorporation into other computing devices, such as desktops, servers, high performance computing systems, base stations, etc. As one such example, four core domains may be provided, each with a given number of out-of-order cores. Furthermore, one or more accelerators may also be provided that provide optimized hardware support for specific functions (e.g., web services, network processing, or switching), in addition to optional GPU support (which may take the form of a GPGPU, as one example). Additionally, there may be input / output interfaces to couple such accelerators to off-chip components.
[0069] 11, a block diagram of another example SoC is shown. In the embodiment of FIG. 11, the SoC 1100 may include various circuits that enable high performance for multimedia applications, communications, and other functions. Thus, the SoC 1100 is suitable for incorporation into a wide variety of portable and other devices, such as, for example, smartphones, tablet computers, and smart TVs. In the illustrated example, the SoC 1100 includes a central processing unit (CPU) domain 1110. In one embodiment, there may be multiple individual processor cores within the CPU domain 1110. As an example, the CPU domain 1110 may be a quad-core processor having four multi-threaded cores. Such processors may be homogeneous or heterogeneous, for example, a mix of low-power and high-power processor cores.
[0070] Next, a GPU domain 1120 is provided to perform advanced graphics processing with one or more GPUs to handle graphics and compute APIs. A DSP unit 1130 may provide one or more low-power DSPs to handle low-power multimedia applications, such as music playback and audio / video, in addition to advanced computations that may occur during the execution of multimedia instructions. And a communication unit 1140 may provide one or more DSPs to handle low-power multimedia applications, such as cellular communications (including 3G / 4G LTE), Bluetooth, and other applications. TM and various components that provide connectivity over various wireless protocols, such as wireless local area protocols such as IEEE 802.11.
[0071] Furthermore, a multimedia processor 1150 may be used to perform capture and playback of high definition video and audio content, including processing of user gestures. A sensor unit 1160 may include multiple sensors and / or a sensor controller for interfacing to various off-chip sensors present in a given platform. An image signal processor 1170 may include one or more separate ISPs to perform image processing on captured content from one or more cameras of the platform, including still and video cameras.
[0072] A display processor 1180 may provide support for connection to a high definition display of a given pixel density, including the ability to wirelessly communicate content for playback on the display. Furthermore, a position determination unit 1190 may include a GPS receiver with support for multiple GPS constellations and provide highly accurate positioning information obtained using such a GPS receiver to an application. It should be understood that while the example of FIG. 11 is shown with this particular set of components, numerous variations and alternatives are possible.
[0073] 12, a block diagram of an example system with which embodiments may be used is shown. As can be seen, system 1200 may be a smartphone or other wireless communicator. A baseband processor 1205 is configured to perform various signal processing on communication signals transmitted from or received by the system. In turn, baseband processor 1205 is coupled to application processor 1210. Application processor 1210 may be the main CPU of the system to run an OS and other system software, in addition to user applications such as many well-known social media and multimedia apps. Application processor 1210 may also be configured to perform various other computing operations for the device as well as to implement the power management techniques described herein.
[0074] The application processor 1210 may then be coupled to a user interface / display 1220, such as a touch screen display. Additionally, the application processor 1210 may be coupled to a memory system including non-volatile memory in the form of flash memory 1230 and system memory in the form of dynamic random access memory (DRAM) 1235. As can be further seen, the application processor 1210 may further be coupled to a capture device 1240, such as one or more image capture devices capable of recording video and / or still images.
[0075] 12, a universal integrated circuit card (UICC) 1240 having a subscriber identity module and possibly secure storage and a crypto processor is also coupled to the application processor 1210. The system 1200 may further include a security processor 1250, which may be coupled to the application processor 1210. A number of sensors 1225 may be coupled to the application processor 1210 to allow for input of various sensed information, such as, for example, an accelerometer and other environmental information. An audio output device 1295 may provide an interface for outputting sound, for example, in the form of voice communication or playing or streaming audio data.
[0076] As further shown, a Near Field Communication (NFC) contactless interface 1260 is provided that communicates within an NFC near field via an NFC antenna 1265. Although separate antennas are shown in Figure 12, it should be understood that in some implementations a single antenna or different sets of antennas may be provided to achieve various wireless functions.
[0077] The PMIC 1215 couples to the application processor 1210 to perform platform-level power management. To this end, the PMIC 1215 may issue power management requests to the application processor 1210 to enter certain low-power states as desired. Additionally, based on platform constraints, the PMIC 1215 may also control power levels of other components of the system 1200.
[0078] Various circuits may be coupled between the baseband processor 1205 and the antenna 1290 to enable communications to be transmitted and received. In particular, a radio frequency (RF) transceiver 1270 and a wireless local area network (WLAN) transceiver 1275 may be present. In general, the RF transceiver 1270 may be used to transmit and receive wireless data and calls according to a given wireless communication protocol, such as, for example, a 3G or 4G wireless communication protocol, such as, for example, according to Code Division Multiple Access (CDMA), Global System for Mobile Communications (GSM), Long Term Evolution (LTE), or other protocols. In addition, a GPS sensor 1280 may be present. Other wireless communications may also be provided, such as reception or transmission of radio signals, such as AM / FM, and other signals. Furthermore, local wireless communications may also be realized via the WLAN transceiver 1275.
[0079]
[00136] Referring now to Figure 13, a block diagram of another example of a system with which embodiments may be used is shown. In the example of Figure 13, system 1300 may be a mobile low power system, such as a tablet computer, a 2:1 tablet, a phablet, or other convertible or standalone tablet system. As shown, SoC 1310 is present and may be configured to act as the application processor of the device and to implement the power management techniques described herein.
[0080] A variety of devices may be coupled to the SoC 1310. In the illustrated example, a memory subsystem includes flash memory 1340 and DRAM 1345 coupled to the SoC 1310. Additionally, a touch panel 1320 is coupled to the SoC 1310 to provide display capabilities and user input via touch, including providing a virtual keyboard on the display of the touch panel 1320. To provide wired network connectivity, the SoC 1310 is coupled to an Ethernet interface 1330. A peripheral hub 1325 is coupled to the SoC 1310 to enable interfacing with various peripheral devices, such as may be coupled to the system 1300 by any of a variety of ports or other connectors.
[0081] In addition to the internal power management circuitry and functions within the SoC 1310, a PMIC 1380 is coupled to the SoC 1310 to provide platform-based power management based, for example, on whether the system is powered by a battery 1390 or by AC power via an AC adapter 1395. In addition to this source-based power management, the PMIC 1380 may also perform platform power management activities based on environmental and usage conditions. Furthermore, the PMIC 1380 may communicate control and status information to the SoC 1310 to trigger various power management actions within the SoC 1310.
[0082] 13, to provide wireless capabilities, a WLAN unit 1350 is coupled to the SoC 1310 and, in turn, to an antenna 1355. In various implementations, the WLAN unit 1350 may provide communications according to one or more wireless protocols.
[0083] As further illustrated, a number of sensors 1360 may be coupled to the SoC 1310. These sensors may include various accelerometers, environmental sensors, and other sensors, including user gesture sensors. Finally, an audio codec 1365 is coupled to the SoC 1310 to provide an interface to an audio output device 1370. It should be understood that while shown in FIG. 13 with this particular implementation, numerous variations and alternatives are possible, of course.
[0084] Next, referring to FIG. 14, for example, a notebook, an Ultrabook, TM 14, there is shown a block diagram of a representative computer system, such as a 32-bit LSI or other small form factor system. The processor 1410, in one embodiment, comprises a microprocessor, a multi-core processor, a multi-threaded processor, a very low voltage processor, an embedded processor, or other known processing element. In the illustrated implementation, the processor 1410 serves as the main processing unit and as a central hub that communicates with many of the various components of the system 1400. As an example, the processor 1400 is implemented as a SoC.
[0085] The processor 1410, in one embodiment, is in communication with a system memory 1415. As an illustrative example, the system memory 1415 is implemented with multiple memory devices or modules to provide a given amount of system memory.
[0086] Mass storage 1420 may also be coupled to the processor 1410 to provide persistent storage of information, such as data, applications, and one or more operating systems. In various embodiments, this mass storage may be implemented with SSDs to enable thinner and lighter system designs and improve system responsiveness, or the mass storage may be implemented primarily using hard disk drives (HDDs), with a smaller amount of SSD storage acting as an SSD cache to enable non-volatile storage of context state and other such information during a power outage event, allowing for faster power-up upon restart of system activity. Also shown in FIG. 14, a flash device 1422 may be coupled to the processor 1410, for example, via a serial peripheral interface (SPI). This flash device may provide non-volatile storage of system software, including the system's basic input / output software (BIOS) and other firmware.
[0087] Various input / output (I / O) devices may be present in the system 1400. The embodiment of FIG. 14 specifically illustrates a display 1424, which may be a high definition LCD or LED panel that also provides a touch screen 1425. In one embodiment, the display 1424 may be coupled to the processor 1410 via a display interconnect, which may be implemented as a high performance graphics interconnect. The touch screen 1425 may be coupled to the processor 1410 via another interconnect, which in one embodiment may be an I 2 As further shown in FIG. 14, in addition to the touch screen 1425, touch user input can also be provided via a touch pad 1430. The touch pad 1430 may be configured within the chassis and may also share the same I / O as the touch screen 1425. 2 C interconnect.
[0088] For perceptual computing and other purposes, various sensors may be present in the system and coupled to the processor 1410 in various ways. Certain inertial and environmental sensors may be present, for example, in the I 2 14, the sensors may include an accelerometer 1441, an ambient light sensor (ALS) 1442, a compass 1443, and a gyroscope 1444. Other environmental sensors may include one or more thermal sensors 1446, which in some embodiments couple to the processor 1410 via a system management bus (SMBus).
[0089] As can also be seen in FIG. 14, various peripherals may be coupled to the processor 1410 via a low pin count (LPC) interconnect. In the illustrated embodiment, various components may be coupled through an embedded controller (EC) 1435. Such components may include a keyboard 1436 (e.g., coupled via a PS2 interface), a fan 1437, and a thermal sensor 1439. In some embodiments, a touchpad 1430 may also be coupled to the EC 1435 via a PS2 interface. Additionally, a security processor, such as a trusted platform module (TPM) 1438, may also be coupled to the processor 1410 via this LPC interconnect.
[0090] The system 1400 can communicate with external devices in a variety of ways, including wirelessly. In the embodiment shown in FIG. 14, there are various wireless modules, each of which may correspond to a radio configured for a particular wireless communication protocol. One approach for wireless communication over short distances, such as close range, may be via an NFC unit 1445, which in one embodiment may communicate with the processor 1410 via an SMBus. It should be noted that devices in close proximity to each other may communicate via the NFC unit 1445.
[0091] As can be further seen in FIG. 14, additional wireless units can include other short-range wireless engines including a WLAN unit 1450 and a Bluetooth unit 1452. The WLAN unit 1450 can be used to TM While short-range Bluetooth communication can be realized via the Bluetooth unit 1452, TM These units may communicate with the processor 1410 via a given link.
[0092] Further, wireless wide area communication, for example according to cellular or other wireless wide area protocols, may occur via the WWAN unit 1456, which may be coupled to a subscriber identity module (SIM) 1457. Additionally, a GPS module 1455 may also be present to enable receipt and use of location information. Note that in the embodiment shown in FIG. 14, the WWAN unit 1456 and an integrated capture device, such as a camera module 1454, may communicate over a given link.
[0093] An integrated camera module 1454 can be integrated into the lid. To provide audio input and output, an audio processor can be implemented with a digital signal processor (DSP) 1460, which can be coupled to the processor 1410 via a high resolution audio (HDA) link. Similarly, the DSP 1460 can communicate with an integrated coder / decoder (CODEC) and amplifier 1462, which can be coupled to an output speaker 1463, which can be implemented within the chassis. Similarly, the amplifier and CODEC 1462 can be coupled to receive audio input from a microphone 1465, which in one embodiment can be implemented with a dual array microphone (e.g., a digital microphone array, etc.) to provide high quality audio input to enable voice activated control of various operations within the system. Note that audio output can also be provided from the amplifier / CODEC 1462 to a headphone jack 1464. While the embodiment of FIG. 14 is shown with these particular components, it should be understood that the scope of the present invention is not limited in this respect.
[0094] Embodiments may be implemented in many different system types. Referring now to FIG. 15, a block diagram of a system according to an embodiment of the present invention is shown. As shown in FIG. 15, a multiprocessor system 1500 is a point-to-point interconnect system and includes a first processor 1570 and a second processor 1580 coupled via a point-to-point interconnect 1550. As shown in FIG. 15, each of the processors 1570 and 1580 may be a multi-core processor including a first and a second processor core (i.e., processors 1574a and 1574b, and processor cores 1584a and 1584b), although there may possibly be more cores within the processor. Additionally, each of the processors 1570 and 1580 may also include a graphics processor unit (GPU) 1573, 1583 for performing graphics operations. Then, using software-provided hints, such as regarding processing level priorities for a given workload between the cores and the GPU, dynamic maximum current determination and control as described herein may be performed. To this end, each of the processors may include a PCU 1575, 1585 that performs processor-based power management, including dynamic current that dynamically determines maximum current consumption levels for each core and GPU individually based at least in part on hint information provided by software, as described herein.
[0095] Still referring to FIG. 15, the first processor 1570 further includes a memory controller hub (MCH) 1572 and point-to-point (PP) interfaces 1576 and 1578. Similarly, the second processor 1580 includes an MCH 1582 and PP interfaces 1586 and 1588. As shown in FIG. 15, the MCHs 1572 and 1582 couple the processors to respective memories, memory 1532 and memory 1534, which may be portions of a system memory locally attached to the respective processors. The first processor 1570 and the second processor 1580 may be coupled to a chipset 1590 via PP interconnects 1562 and 1564, respectively. As shown in FIG. 15, the chipset 1590 includes PP interfaces 1594 and 1598.
[0096] Additionally, the chipset 1590 includes an interface 1592 that couples the chipset 1590 to a high performance graphics engine 1538 by way of a PP interconnect 1539. The chipset 1590 may then be coupled to a first bus 1516 via an interface 1596. As shown in FIG. 15, various input / output (I / O) devices 1514 may be coupled to the first bus 1516, along with a bus bridge 1518 that couples the first bus 1516 to a second bus 1520. Various devices may be coupled to the second bus 1520, including, in one embodiment, a keyboard / mouse 1522, a communication device 1526, and a data storage unit 1528, such as a disk drive or other mass storage, which may include code 1530. Additionally, an audio I / O 1524 may be coupled to the second bus 1520. An embodiment may be configured to include, for example, a smart cellular phone, a tablet computer, a netbook, or an Ultrabook. TM The present invention may be incorporated into other types of systems, including mobile devices such as:
[0097] FIG. 16 is a block diagram illustrating an IP core development system 1600 that may be used to manufacture an integrated circuit that performs operations according to an embodiment. The IP core development system 1600 may be used to generate modular, reusable designs that may be incorporated into a larger design or used to build an entire integrated circuit (e.g., an SoC integrated circuit). The design facility 1630 may generate a software simulation 1610 of the IP core design in a high-level programming language (e.g., C / C++). The software simulation 1610 may be used to design, test, and verify the behavior of the IP core. From the simulation model 1612, a register transfer level (RTL) design may then be created or synthesized. The RTL design 1615 is an abstraction of the behavior of the integrated circuit that models the flow of digital signals between hardware registers, including associated logic that is implemented using the modeled digital signals. In addition to the RTL design 1615, lower level designs at the logic or transistor level may also be created, designed, or synthesized. Thus, the specific details of the initial design and simulation may vary.
[0098] The RTL design 1615 or equivalent may be further synthesized by a design facility into a hardware model 1620, which may be a hardware description language (HDL) or some other representation of the physical design data. The HDL may be further simulated or tested to verify the IP core design. The IP core design may be stored using a non-volatile memory 1640 (e.g., a hard disk, a flash memory, or any non-volatile storage medium) for delivery to a third party manufacturing facility 1665. Alternatively, the IP core design may be transmitted over a wired connection 1650 or a wireless connection 1660 (e.g., via the Internet). The manufacturing facility 1665 may then manufacture an integrated circuit based at least in part on the IP core design. The manufactured integrated circuit may be configured to perform operations in accordance with at least one embodiment described herein.
[0099] 17, a block diagram of a computing system in accordance with one embodiment of the present invention is shown. As shown in FIG. Referring now to Figure 17, a block diagram of a computing system in accordance with one embodiment of the present invention is shown. As shown in Figure 17, system 1700 can be any type of computing system ranging from small portable devices such as smartphones or tablet computers to larger devices including laptop computers, desktop computers, server computers, and the like.
[0100] In any event, at a high level as shown in FIG. 17, the system 1700 includes a system-on-chip (SoC) 1710, which may be implemented as a multi-core processor or any other type of SoC. Included within the SoC 1710 are multiple intellectual property (IP) circuits 17200-17202. In an embodiment, each IP circuit 1720 may be a processing core, a graphics processor, or any other type of homogeneous or heterogeneous processing circuit, such as specialized processing units and fixed function units. In a particular embodiment, it is assumed that the IP circuits 17200, 17201 are general-purpose processing cores and the IP circuit 17202 is a graphics processor, which in some cases may be formed of multiple individual graphics processing units.
[0101] Depending on the particular workload being executed within the SoC 1710, certain processing circuits may be more critical to that workload than others. Thus, in embodiments herein, different IP circuits may be allowed to consume controllable amounts of current based at least in part on hint information received from software 1740, which may provide the workload for execution. By providing this workload, the software 1740 has a prior, deeper understanding of the nature of the workload and the criticality and possibly relative current consumption of the different IP circuits. Thus, embodiments include an interface 1745 for providing run-time heuristic-based current consumption information from the software 1740 to the power control unit (PCU) 1730.
[0102] In various embodiments, the PCU 1730 may be implemented as a dedicated hardware circuit, one of multiple cores, a microcontroller, or some other hardware circuit. In the illustrated embodiment, the PCU 1730 includes multiple configuration registers 17360-17362. In an embodiment, a given configuration register 1736 may be associated with a corresponding IP circuit 1720 to store current throttle information received from the software 1740 for the corresponding IP circuit. Note that this information may take different forms in different embodiments. In some cases, such information may be based on priority information, which may include a relative priority level, e.g., in percentage units, for each IP circuit. In other cases, the software 1740 may provide the actual maximum current value forced on the IP circuit in a throttling situation. In yet other embodiments, this information may take other forms.
[0103] Still referring to FIG. 17, the PCU 1730 further includes a dynamic current sharing control circuit 1735. In the present embodiment, the dynamic current sharing control circuit 1735 may determine decomposed maximum current values for each individual IP circuit based at least in part on information stored in the configuration register 1736. Furthermore, the control circuit 1735 may further determine these decomposed maximum current values based on die-specific information including, for example, leakage information, process variation information, and voltage / frequency curves. Thus, based on such information, the dynamic current sharing control circuit 1735 may update values written by the software 1740 to generate decomposed values from which throttling control values may be determined. These throttling control values may be transmitted to the corresponding IP circuits 1720. As shown in FIG. 17, the processing circuits 1720 each include a configuration storage 1712 that stores a corresponding throttling control value. It is noted that the throttling control value itself may take different forms in different embodiments. In some cases, the throttling control value may be implemented as a duty cycle value. In other cases, the throttling control value may be a maximum allowable current consumption or a maximum allowable operating frequency for the IP circuitry, etc. As described herein, the IP circuitry 1720 can dynamically control its own behavior in throttling situations based at least in part on this throttling control value stored in configuration storage 1712.
[0104] Note that in the example of FIG. 17, there is also a voltage regulator 1750 external to the SoC 1720. The voltage regulator (VR) 1750 can supply power to all of the IP circuits 17120 - 17122 shown in FIG. 17 and other circuits of the SoC 1710. However, it should be understood that in other cases, the control and current sharing implemented in the embodiments may be performed on a per voltage rail basis. That is, there may be a voltage regulator 1750 or additional voltage regulators that supply power through a plurality of independent voltage rails, each coupled to one or more IP circuits of the processor and other logic. In such cases, the dynamic current sharing control circuit 1735 can dynamically determine current sharing slotting control values for each set of IP circuits coupled to a given voltage rail.
[0105] Still referring to FIG. 17, assume that the IP circuits 1720 (also referred to herein as IP1 - IP3) each draw a maximum current of up to IP1.iccmax, Ip2.iccmax, and IP3.iccmax, respectively. Also assume that the VR 1750 can provide a total maximum current of VR1.iccmax. In a high - current VR such as VR1750, for example, VR1.iccmax < IP1.iccmax + IP2.iccmax + IP3.iccmax. This undersizing is done to limit the cost of the VR. To ensure accuracy, the PCU 1730 can trigger slotting when it detects that the maximum current capacity of the voltage regulator 1750 is about to be exceeded. Such slotting can be performed preemptively based on a threshold that is somewhat lower than the actually set maximum current capacity. It should be understood that although different implementations are possible, in one embodiment, slotting can be implemented by gating the IP clock at a certain duty cycle. The duty cycle of such a scheme can be set by the PCU 1730.
[0106] In one embodiment, PCU 1730 can receive via interface 1745 the specific iccmax values, i.e., IP0_ICCMAX_WHEN_THROTTLED, IP1_ICCMAX_WHEN_THROTTLED, IP2_ICCMAX_WHEN_THROTTLED, that the IP circuits should be throttled to when an iccmax violation is detected, and the values are stored in configuration registers 1736. Software can populate these values based on heuristics at runtime and can ensure that the current written here is not greater than the VR1.iccmax value.
[0107] Then, the PCU 1730, and more specifically, the dynamic current sharing control circuit 1735, may use die-specific information (e.g., leakage, process variations, V / F curves) to update the values written by the software. In this example, assume that the PCU 1730 determines the resolved values RESOLVED_IP0_ICCMAX_WHEN_THROTTLED, RESOLVED_IP1_ICCMAX_WHEN_THROTTLED, and RESOLVED_IP2_ICCMAX_WHEN_THEROTTLED, taking into account the software inputs and the die-specific information. The dynamic current sharing control circuit 1735 may then calculate the duty cycle value for throttling the IP circuits based on these final resolved values and the configured maximum current value (iccmax). The duty cycle in this case can be calculated as duty_cycle_ip_n=RESOLVED_IPn_ICCMAX_WHEN_THROTTLED / IPN.iccmax. For IP0, this is duty_cycle_ip_0 = RESOLVED_IP0_ICCMAX_WHEN_THROTTLED / IP0.iccmax.
[0108] The PCU 1730 can then program the duty cycle for throttling into the configuration register 1712. Depending on platform / SoC level heuristics, the IP_N_ICCMAX_WHEN_THROTTLED value can be changed to obtain optimal runtime behavior.
[0109] As a specific example, assume a graphics-intensive workload where the IP circuitry 17202 is a graphics processor and the IP circuits 17200, 17201 are general-purpose processors. In this configuration, the graphics driver may provide hint information via the interface 1745 indicating that the graphics processor (and interconnect circuitry) should be provided with their maximum set current consumption, while the cores may be throttled. To this end, the graphics driver may provide a set maximum current consumption value for the graphics processor and interconnect, and may allocate the remaining current budget to the cores. Thus, when the maximum current consumption limit is reached, the cores may be throttled, but the graphics processor and interconnect may continue to operate without constraints, improving the graphics workload.
[0110] In another case with core-computationally intensive workloads, the opposite behavior can occur by assigning maximum current consumption values to the cores and interconnects and allocating the remaining current consumption budget to the graphics processor. Thus, when a power spike is identified, the graphics processor can be throttled, but the cores and interconnects can still operate unconstrained, improving core-based workloads. In one embodiment, software can use the utilization information to identify core-bound or graphics-bound workloads. It should be understood that while shown at this high level in the embodiment of FIG. 17, numerous variations and alternatives are possible.
[0111] Referring now to Figure 18, a flow diagram of a method according to an embodiment of the present invention is shown. As shown in Figure 18, method 1800 is a method of performing dynamic current sharing among multiple IP circuits based at least in part on software-based information regarding workloads being executed. More specifically, method 1800 may be performed in coordination between various agents including software having workloads to be executed and corresponding agents including hardware-based power controllers and one or more IP circuits on which at least a portion of the workloads may be executed. Thus, method 1800 may be performed by hardware circuits, firmware, software, and / or combinations thereof.
[0112] As shown, in method 1800, software agent 1810 may have a workload to execute and may determine (block 1815) a per-IP circuit maximum current budget (and / or maximum current priority) for each IP circuit based on a heuristic approach. As shown, software 1810 may provide this information to power controller 1820 via an interface, which may store this information in a corresponding configuration register, i.e., a current throttling configuration register. PCU 1820, and more specifically, dynamic current sharing control circuit 1830, may then read this information and determine a per-IP circuit maximum current budget based on this information and the die parameters and characteristics. Power controller 1820 may then send this information to program the corresponding configuration register of IP circuit 1840. Then, during the operation of the workload, when power controller 1820 proactively identifies a maximum current situation, power controller 1820 sends a throttling signal to IP circuit 1840. The IP circuit 1840 may then throttle operation to stay within the maximum current budget specified in its configuration register. It should be understood that while shown at this high level in the embodiment of FIG. 18, numerous variations and alternatives are possible.
[0113]
[00136] Referring now to Figure 19, a flow diagram of a method in accordance with one embodiment of the present invention is shown. As shown in Figure 19, method 1900 is a method of interfacing between a power controller and a software entity that has prior knowledge of the workload to be executed. The method 1900 of Figure 19 is from the perspective of the power controller, and as such, method 1900 may be performed by hardware circuits, firmware, software, and / or combinations thereof.
[0114] As shown in FIG. 19, the method 1900 begins by receiving current throttle hint information for a workload (block 1910). More specifically, the power controller may receive this hint information from a software entity via an interface. Although different embodiments are possible, in one embodiment, the interface may be a mailbox interface of the power controller that the software entity may write to. In another embodiment, the software entity may perform a configuration register write, such as a write operation to a machine specific register (MSR), to provide this current throttle hint information. It is noted that the current throttle hint information may take a variety of forms, including preference information for a number of different processing circuits, such as in the form of a percentage.
[0115] At block 1920, the power controller stores this current throttle hint information in a set of configuration registers of the power controller. Then, at block 1930, the power controller may determine decomposed throttle values for the multiple processing circuits. More specifically, these decomposed throttle values may be based on the current throttle hint information and various parameters of the processor, including die-based parameters and operational characteristics, such as voltage / frequency curves. In some cases, the power controller may overwrite the current throttle hint information present in the configuration registers with these decomposed throttle values. In other cases, the decomposed throttle values may be stored in another location.
[0116] In any case, control then passes to block 1940, where a dynamic maximum current budget for each processing circuit may be calculated. Such calculated current budget may be based on the resolved throttle value for a given processing circuit and the configured maximum current budget for the processor. To this end, the power controller may include or be associated with another set of configuration registers that store the maximum current budget for each processing circuit. Note that this configured maximum current information may be stored in the pre-boot environment, such as by a given firmware.
[0117] 19, at block 1950, a dynamic maximum current budget can be sent to the processing circuit. It should be appreciated that in response to receiving a given dynamic maximum current budget, the processing circuit can store such value in a configuration register and control operation to remain below this dynamic maximum current budget when a throttle condition is identified. It should be noted that these dynamic maximum current budgets only have meaning during a throttle event; that is, a given processing circuit may be allowed to exceed its programmed maximum current budget during normal operation, but is subject to the limitations during a throttled state.
[0118] 19, during normal operation of the processor, the power controller may receive various telemetry or sensor information. Specifically, such information may capture the voltage, current, power, and thermal status of the processor, as shown in block 1960. As part of its power control operations, the power controller may determine, at diamond block 1970, whether the total current consumption of the processor exceeds a given threshold, which may be set to a value lower than the maximum current consumption set for the processor to provide proactive control of current consumption.
[0119] If it is determined that the total current exceeds this threshold, control proceeds to block 1980 where a throttle signal may be sent to the processing circuits. In response to receiving this throttle signal, the processing circuits may control their operation to ensure that their current consumption does not exceed the dynamic maximum current budget. In this manner, even when a throttle condition is identified, each of the processing circuits may operate at an independent, dynamically controllable current consumption level, which may improve workload execution. Because by dynamically controlling the current consumption level independently based on the relative priority of a given processing circuit, processing circuits that are critical to a particular workload may not be throttled at all, or only minimally, or may be throttled less than other (less critical) processing circuits during execution of such workload. It should be understood that, although shown at this high level in the embodiment of FIG. 19, numerous variations and alternatives are possible.
[0120] Referring now to Figure 20, a flow diagram of a method according to another embodiment of the present invention is shown. As shown in Figure 20, method 2000 is a method for dynamically controlling current consumption in a processing circuit based on a dynamic current budget. As such, method 2000 may be performed by a hardware circuit, such as a processing core, graphics processor, or other processing circuit, or by firmware, software, and / or a combination thereof executing on such circuitry.
[0121] Method 2000 begins by receiving a dynamic current budget from a power controller (block 2010). Note that this dynamic current budget may take different forms in various embodiments, including in the form of duty cycle information as described herein. Regardless of the form, at block 2020, the processing circuitry stores this dynamic current budget in a maximum current configuration register. The processing circuitry may then begin (or continue) operating at a set performance state (block 2030). For example, the processing circuitry may be set under the control of a power controller or other control circuitry to operate at a performance state having a given operating frequency and operating voltage. While operating at this set performance state, at diamond 2040, it may be determined whether a throttle signal has been received from the power controller.
[0122] In this state, control passes to block 2050, where the processing circuit can throttle its operation. More specifically, the processing circuit can control its operation to maintain its current consumption below the dynamic current budget. In some cases, the processing circuit can include internal power control logic that can determine operating parameter changes to achieve this current consumption maintenance. As an example, the processing circuit can throttle its operation by squashing some clock signals to slow down the operation, thereby reducing current consumption by operating at the squashed clock rather than the set operating frequency. For example, every other clock cycle can be squashed, or other duty cycle control or clock cycle reduction can be performed.
[0123] It should be noted that in certain situations where other processing circuits are not consuming their full current consumption levels, a processing circuit may receive an opportunistic current budget from the power controller. Thus, at diamond 2060, it is determined whether an opportunistic current budget has been received. If not, the processing circuit may continue to operate in a throttled state until it receives a release of the throttle signal (as determined at diamond 2080).
[0124] Otherwise, if an opportunistic current budget has been received, control proceeds to block 2070, where the processing circuit may ramp up its operation. For example, the processing circuit may terminate clock squashing to consume the opportunistic current budget. It should be understood that while shown at this high level in the embodiment of FIG. 19, numerous variations and alternatives are possible.
[0125] In some circumstances, some cores or other processing circuits may operate at high current consumption. In configurations where all cores or other processing circuits are allocated equal portions of the package-wide current budget, performance loss may be inherent as any core operating above its allocated current limit is throttled via internal or local control actions. Furthermore, at the same time, one or more other cores or processing circuits are operating at levels below their assigned current limits, leaving unused current headroom.
[0126] To avoid this concern, embodiments may provide performance optimization within a platform with a constrained power delivery solution. To this end, embodiments may implement control techniques involving global current control, such that one or more cores or other processing circuits are allowed to exceed their individual threshold levels, so long as the overall current limit for the package is not exceeded. In this manner, embodiments may increase performance, since some cores or other processing circuits may operate at higher current consumption levels (than set), while the entire processor remains operating within limits.
[0127] To this end, embodiments may perform high-speed current sensing at the load side (e.g., implemented in an integrated voltage regulator) to provide a fast measurement of actual current consumption. This measurement of current consumption may be output from the integrated voltage regulator as a digital output. The individual current values from the multiple voltage regulators may then be summed. This sum may then be digitally filtered. The resulting filtered value is then compared to a threshold. Assuming that the overall current consumption represented by the filtered value is less than the threshold, no throttling may be performed. If the overall current consumption represented by the filtered value exceeds the threshold, one or more domains may be throttled to stay within the limits. Note that this throttling may (or may not) be performed independently in each domain based on the actual current consumption of each domain and its individual configured limits, as described herein. And, as further described above, each domain may perform different throttling operations, such as clock squashing or otherwise controlling the operating frequency or voltage, etc.
[0128] In embodiments, actual current consumption can be detected without maintaining detailed models. As a result, domains can be scaled and time constants can be adapted to minimize unnecessary throttling. Moreover, embodiments enable such performance optimization without any run-time adaptation of the system. Furthermore, as described herein, embodiments can be extended to multiple external voltage regulators by converting current to power and summing the results of the contributions of multiple voltage regulators. Embodiments can also be used for more complex power delivery limitation, such as, for example, suppressing energy at resonant frequencies to improve minimum operating voltage performance.
[0129] Referring now to Figure 21, a block diagram of a processor in accordance with one embodiment of the present invention is shown. As shown in Figure 21, a processor 2100 includes multiple cores 21100-2110.n 2110. There may be additional processing engines, including a graphics engine 2115. An interconnect 2120, such as a ring interconnect, may be present and used to couple together the cores 2110 and other components. As shown in the embodiment of FIG. 21, each of these domains is connected to a given integrated voltage regulator 21300-2130. x Based on the loads presented by these domains, the voltage regulators 2130 may measure real-time digital current (using circuitry operating at high speed (e.g., 400 MHz)). Each integrated voltage regulator 2130 then provides a digital current value to a summing circuit 2140, which adds these values together into a total current value. Note that in some embodiments, the summing circuit 2140 may be implemented in a distributed manner.
[0130] Still referring to FIG. 21, this total current value is provided to a current controller 2150. In different embodiments, the controller 2150 may be implemented as a dedicated circuit separate from both the processor core 2110 and the power controller (not shown in FIG. 21 for ease of illustration). In other cases, the controller 2150 may be implemented within the power controller. In any case, as shown, the controller 2150 provides the received total current value to a filter 2155. The filter 2155 may be implemented in one embodiment as a low pass filter that performs digital filtering of this total current value. This filtering operation may be performed according to an average time window stored in a window storage 2158. In one embodiment, this time value causes the low pass filter 2155 to operate as a 20 nanosecond low pass filter. The filtered current value is provided to a digital comparator 2160 that performs a comparison with a threshold current value stored in a threshold storage 2162. If the filtered measured current value is determined to exceed the threshold, the throttle condition is thus confirmed and communicated to a pulse stretching circuit 2170 which may issue throttle signals to various domains according to throttle window durations provided by a throttle window storage 2180. In other cases, the low pass filter may be replaced with a band pass filter to reduce energy in the resonant frequency band.
[0131] In an embodiment, the pulse stretcher circuit 2170 may be configured to reduce ringing or hysteresis of the control mechanism. That is, the pulse stretcher circuit 2170 may cause the throttle signal to be active for a given throttle window period following detection of a throttle event (identified when the filtered measured current value exceeds a threshold). Even when the measured current falls below the threshold (as a result of throttling occurring in one or more cores or other processing circuits) after throttling is initiated in accordance with this event, the pulse stretcher circuit 2170 maintains the throttle signal active for at least the length of the throttle window period to avoid hysteresis or ringing. In different embodiments, the length of this throttle window period may be programmable, and in some embodiments, the pulse stretcher circuit 2170 may be an optional component. That is, in other cases, hysteresis or other control schemes may be applied to the throttle signal. It should be understood that while shown at this high level in the embodiment of FIG. 21, numerous variations and alternatives are possible.
[0132] As mentioned above, multiple instances of a current controller such as in FIG. 21 may be provided for each of multiple voltage regulators, and the multiple instances may be coupled to a power controller. Such a power controller may perform power control for a power supply that powers multiple voltage regulators. That is, in a given computing platform, there may be a single power supply that powers multiple external voltage regulators, such as multiple voltage regulators present on a motherboard, each of which provides a given regulated voltage used by on-chip and off-chip components. Similar to the above explanation, these individual voltage regulators may operate at a higher level while one or more others of these voltage regulators are running at a lower level because the single power supply that powers these individual voltage regulators has sufficient capacity to do so, assuming that not all of these voltage regulators exceed their respective threshold levels.
[0133] 22, a block diagram of a control arrangement in accordance with another embodiment of the present invention is shown. As shown in FIG. 22, a number of current controllers 2250 are provided, each associated with a given voltage regulator. More specifically, as shown, a first current controller 22501 controls a first voltage level (e.g., V CC ) and a second current controller 22502 is associated with a first voltage regulator (not shown) that provides a second (e.g., auxiliary) voltage level (e.g., V Aux21. Note that while controller 2250 is shown at a high level to include a corresponding low pass filter 2252, digital comparator 2254, and downsampler 2256, it should be understood that these controllers may be configured as shown in FIG. 21. Note that downsampler 2256 may be optional in some embodiments. At a high level, when the received measured current exceeds a threshold level, a corresponding throttle signal is provided to the individual domains powered by this voltage regulator, as described above.
[0134] Further, the current controller 2250 performs downsampling of the measured current consumption by the downsampler 2256, which in turn provides it to the power controller 2260. The power controller 2260 may be implemented as a dedicated circuit or in the power controller of the processor. In any case, the power controller 2260 converts the input digital current values to power values via the converters 22651-22652, which perform the current-to-power conversion. The converters 22651-22652 perform the current-to-power conversion via a multiplication operation by the voltage delivered by a given voltage regulator (i.e., the regulated voltage minus the delivery losses (e.g., I1R1)) and provide the digital power values to the adder 2270, which sums the digital power values. Note that in other embodiments, the power controller 2260 may receive the current values directly without including the current controller 2250.
[0135] This summed power value is then provided to a low pass filter 2275, which may operate at a longer time window period according to the average time window stored in a window storage 2276. This filtered power value is then provided to a digital comparator 2280, which compares it to a threshold value received from a threshold storage 2282. When the digital comparator 2280 determines that the filtered measured power value exceeds the threshold value, a throttle event is indicated and communicated to a pulse stretching circuit 2290. In general, the pulse stretching circuit 2290 may operate in the same manner as the pulse stretching circuit 2170 described above, but with a different throttle window period according to a value stored in a throttle window storage 2295. Thus, the pulse stretching circuit 2290 transmits a throttle signal to the powered domains, based at least in part on the comparison output of the digital comparator 2280, to cause those domains to take appropriate throttling action. It should be understood that although shown at this high level in the embodiment of FIG. 22, numerous variations and alternatives are possible.
[0136] Referring now to Figure 23, a flow diagram of a method in accordance with one embodiment of the present invention is shown. More specifically, as shown in Figure 23, method 2300 is a method for performing the dynamic current consumption control described herein. As such, method 2300 may be performed by hardware circuits, firmware, software, and / or combinations thereof, and may be implemented, for example, using dedicated hardware circuitry of a processor and / or in conjunction with power control circuitry.
[0137] As shown, method 2300 begins by receiving a plurality of digital current values for a plurality of processing circuits (block 2310). More specifically, a summing circuit can receive these digital current values from a corresponding integrated voltage regulator, each voltage regulator associated with a processing circuit, such as a core, a graphics unit, or an interconnect circuit. It should be understood that in other cases, there may be fewer integrated voltage regulators than processing circuits, such that one or more of the integrated voltage regulators may provide digital current values to multiple circuits.
[0138] In any event, at block 2320, a summing circuit adds the digital current values together to obtain a total current value. Control then passes to block 2330, where the total current value may be filtered. As an example, a low pass filter, such as one implemented in a power controller described herein, may perform filtering of the total current value according to a programmable time constant. Then, at diamond block 2340, it is determined whether the filtered total current value exceeds a threshold value. If not, no further action is taken in this iteration of the control loop, and method 2300 may continue to operate to ensure that the current consumption of the processor is maintained within an appropriate level.
[0139] Still referring to FIG. 23, if it is determined that the filtered total current value does not exceed the threshold value, control proceeds to block 2350 where a throttle signal is sent to the processing circuits. It should be understood that in response to this throttle signal, at least one, and possibly more than one, of the processing circuits may throttle their operation accordingly. For example, each processing circuit may be configured with a set maximum current consumption value. In response to the throttle signal, a processing circuit may throttle its operation to ensure that its current consumption is below this set maximum current consumption value. In the configuration described herein, as long as the filtered total current value is below the threshold value, processor operation may continue unthrottled. In this situation, one or more processing circuits may operate at a current consumption level above the set maximum current consumption value while one or more other processing circuits operate below their set maximum current consumption value. Although shown at this high level in the embodiment of FIG. 23, numerous variations and alternatives are possible.
[0140] It should be appreciated that the fast current information obtained herein can further be used to implement additional power control techniques, such as, for example, to control the power supply levels that power the platform's voltage regulators. Referring now to FIG. 24, a flow diagram of a method according to another embodiment of the present invention is shown. More specifically, as shown in FIG. 24, method 2400 is another method of implementing the dynamic current consumption control described herein. As such, method 2400 can be performed by hardware circuits, firmware, software, and / or combinations thereof, and can be implemented, for example, using dedicated hardware circuitry of a processor and / or in conjunction with power control circuitry.
[0141] As shown, method 2400 begins by receiving filtered sum current values from current controllers associated with multiple voltage regulators (block 2410). Control then passes to block 2420 where these filtered sum current values may be converted to power values. The power values may then be summed (block 2430). After adding the power values together into a sum power value, control passes to block 2440 where this sum power value is filtered, e.g., according to a different time constant than the filtering of the current values discussed above.
[0142] Still referring to FIG. 24, it is then determined at diamond 2450 whether the filtered power value exceeds a threshold. If not, no further action is taken in this iteration of the control loop, and method 2400 may continue to operate to ensure that the processor current consumption is maintained within an appropriate level. Otherwise, if it is determined that the filtered power value exceeds the threshold, control proceeds to block 2460, where a throttle signal is sent to the powered domains, such as the processing circuits themselves (or at least a subset of such circuits associated with a given one of the voltage regulators). It should be appreciated that in response to this throttle signal, the powered domains may throttle their operation accordingly, such as by lowering their operating parameters, to reduce current demand.
[0143] The following examples relate to further embodiments.
[0144] In one example, an apparatus includes a plurality of IP circuits, each of the plurality of IP circuits including a configuration register that stores a dynamic current budget; and a power controller coupled to the plurality of IP circuits, the power controller including a dynamic current sharing control circuit that receives current throttling hint information related to workloads executing on at least some of the plurality of IP circuits and generates the dynamic current budget for each of the plurality of IP circuits based at least in part thereon.
[0145] In one example, the power controller includes a plurality of second configuration registers that store the current throttling hint information, and the dynamic current sharing control circuit determines the dynamic current allocations for the plurality of IP circuits based on the current throttling hint information and one or more parameters of the device.
[0146] In one example, the power controller has an interface that allows software to write the current throttling hint information to the second plurality of configuration registers.
[0147] In one example, the power controller receives the current throttling hint information from the software based on heuristic information regarding usage of the plurality of IP circuits during execution of the workload.
[0148] In one example, the dynamic current sharing control circuit determines the dynamic current budget for the plurality of IP circuits further based on a maximum current budget set for each of the plurality of IP circuits.
[0149] In one example, for a first workload, the dynamic current sharing control circuit sets the dynamic current budget for a first IP circuit to the maximum current budget set for the first IP circuit and sets the dynamic current budget for a second IP circuit to be less than the maximum current budget set for the second IP circuit.
[0150] In one example, for a second workload, the dynamic current sharing control circuit sets the dynamic current budget for the first IP circuit to be less than the maximum current budget set for the first IP circuit and sets the dynamic current budget for the second IP circuit to be the maximum current budget set for the second IP circuit.
[0151] In one example, the first IP circuit comprises a core and the second IP circuit comprises a graphics processor.
[0152] In one example, in response to a throttle signal from the power controller, the first IP circuit limits operation to the maximum current budget set for the first IP circuit and the second IP circuit limits operation to the dynamic current budget for the second IP circuit.
[0153] In one example, the second IP circuit squashes one or more clock cycles of a clock signal in response to the throttle signal based on the dynamic current budget.
[0154] In one example, the dynamic current sharing circuit provides an opportunistic current budget to at least one of the plurality of IP circuits during a throttle event, the opportunistic current budget allowing the at least one IP circuit to exceed the dynamic current budget for the at least one IP circuit.
[0155] In another example, a method includes, at a power controller of a processor, receiving current throttle hint information from a software entity related to a workload, calculating a dynamic maximum current budget for each of a plurality of processing circuits of the processor based on the current throttle hint information and a maximum current budget value set for the plurality of processing circuits, transmitting the dynamic maximum current budget to each of the plurality of processing circuits, and in response to determining that a current consumption level of the processor exceeds a threshold, transmitting a throttle signal to the plurality of processing circuits to cause the plurality of processing circuits to throttle activity based on the dynamic maximum current budget.
[0156] In one example, the method further includes receiving, at the power controller, the current throttle hint information via an interface and storing the current throttle hint information in a set of configuration registers of the power controller. 23. The method of claim 22.
[0157] In one example, the method further includes determining resolved throttle values for the plurality of processing circuits based on the current throttle hint information and die-specific information.
[0158] In one example, calculating the dynamic maximum current budget for each of the plurality of processing circuits is further based on the resolved throttle values for the plurality of processing circuits.
[0159] In one example, the method further includes throttling a first processing circuit of the plurality of processing circuits in response to the throttle signal, and enabling a second processing circuit of the plurality of processing circuits to execute unconstrained in response to the throttle signal.
[0160] In another example, a computer readable medium containing instructions performs the method of any of the above examples.
[0161] In a further example, a computer readable medium containing data is used by at least one machine to manufacture at least one integrated circuit that performs the method of any one of the above examples.
[0162] In yet a further example, an apparatus comprises means for performing the method of any one of the above examples.
[0163] In another example, a system includes a SoC and a dynamic random access memory coupled to the SoC. The SoC may include a plurality of cores and at least one graphics processor, each of the plurality of cores and the at least one graphics processor including a configuration register that stores a dynamic current budget, and a power controller coupled to the plurality of cores and the at least one graphics processor, the power controller having an interface to receive current throttling hint information from a software entity relating to a workload executing on the SoC, the power controller further having dynamic current sharing control circuitry that generates the dynamic current budget for the plurality of cores and the at least one graphics processor based at least in part on the current throttling hint information.
[0164] In one example, the power controller includes a plurality of second configuration registers that store the current throttling hint information, and the dynamic current sharing control circuit determines decomposed current budgets for the plurality of cores and the at least one graphics processor based on the current throttling hint information and one or more parameters of the SoC.
[0165] In one example, the dynamic current sharing control circuit determines the dynamic current budget based on the decomposed current budget for the multiple cores and the at least one graphics processor and a maximum current budget set for each of the multiple cores and the at least one graphics processor.
[0166] In one example, for a first workload, the dynamic current sharing control circuit sets the dynamic current budget for at least one of the multiple cores to the maximum current budget set for the at least one core and sets the dynamic current budget for the at least one graphics processor to less than the maximum current budget set for the at least one graphics processor.
[0167] In another example, an apparatus includes a plurality of processing circuits that execute instructions; a summing circuit coupled to the plurality of processing circuits, the summing circuit receiving a plurality of digital current values, each digital current value corresponding to a measured current from one of the plurality of processing circuits, and generating a sum current value from the plurality of digital current values; and a current controller coupled to the summing circuit, filtering the sum current value, comparing the filtered sum current value to a threshold, and sending a throttle signal to the plurality of processing circuits if the filtered sum current value exceeds the threshold.
[0168] In one example, in response to the throttle signal, each of the plurality of processing circuits independently throttles operation.
[0169] In one example, in response to the throttle signal, each of the plurality of processing circuits independently throttles operation according to a configuration value stored in a configuration storage of the corresponding processing circuit.
[0170] In one example, the apparatus further comprises a plurality of integrated voltage regulators coupled to the plurality of processing circuits for providing the plurality of digital current values to the summing circuit.
[0171] In one example, the current controller includes a low pass filter that filters the total current value, a digital comparator that compares the filtered total current value to the threshold value, and a pulse lengthening circuit coupled to receive a comparison signal from the digital comparator and output the throttle signal based at least in part on the comparison signal.
[0172] In one example, the pulse extender circuit maintains the throttle signal for the remainder of a throttle window after the filtered current value falls below the threshold.
[0173] In one example, the apparatus further includes a plurality of current controllers, each associated with one of a plurality of voltage regulators, and a power controller coupled to the plurality of voltage regulators, the power controller converting filtered current values from each of the plurality of current controllers to power values, combining the power values into a sum power value, filtering the sum power value, and transmitting a second throttle signal to at least a portion of the plurality of processing circuits if the filtered sum power value exceeds a threshold power value.
[0174] It should be understood that various combinations of the above examples are possible.
[0175] It should be noted that the terms "circuit" and "circuitry" are used interchangeably herein. As used herein, these terms and the term "logic", alone or in any combination, are used to refer to analog circuits, digital circuits, hardwired circuits, programmable circuits, processor circuits, microcontroller circuits, hardware logic circuits, state machine circuits, and / or other types of physical hardware components. The embodiments may be used in many different types of systems. For example, in one embodiment, a communications device may be configured to perform the various methods and techniques described herein. Of course, the scope of the invention is not limited to communications devices, and instead, other embodiments may be directed to other types of devices that process instructions or to one or more machine-readable media that contain instructions that, in response to being executed on a computing device, cause the device to perform one or more methods and techniques described herein.
[0176] Embodiments may be implemented in code and stored on a non-transitory storage medium that stores instructions, which can be used to program a system to execute the instructions. Embodiments may also be implemented in data and stored on a non-transitory storage medium that, when used by at least one machine, causes the at least one machine to manufacture at least one integrated circuit that performs one or more operations. Yet further embodiments may be implemented in a computer-readable storage medium that includes instructions that, when manufactured into a SoC or other processor, configure the SoC or other processor to perform one or more operations. The storage medium may include any type of disk, including but not limited to a floppy disk, an optical disk, a solid state drive (SSD), a compact disk-read only memory (CD-ROM), a compact disk-rewritable (CD-RW), and a magneto-optical disk, such as a read-only memory (ROM), a random access memory (RAM), a static random access memory (SRAM), an erasable programmable read-only memory (EPROM), a flash memory, an electrically erasable programmable read-only memory (EEPROM), a magnetic or optical card, or any other type of medium suitable for storing electronic instructions.
[0177] While the present invention has been described with respect to a limited number of embodiments, those skilled in the art will appreciate numerous modifications and variations therefrom, and it is intended in the appended claims to cover all such modifications and variations that fall within the true spirit and scope of the invention.
Claims
1. An apparatus comprising: a plurality of intellectual property (IP) circuits, each of the plurality of IP circuits including a configuration register that stores a dynamic current budget; a power controller coupled to the plurality of IP circuits, the power controller including: a dynamic current sharing control circuit that receives current throttling hint information related to workloads executing on at least some of the plurality of IP circuits and generates the dynamic current budget for each of the plurality of IP circuits based at least in part thereon; having the power controller includes a plurality of second configuration registers that store the current throttling hint information, and the dynamic current sharing control circuit determines the dynamic current budget for the plurality of IP circuits based on the current throttling hint information and one or more parameters of the device. Device.
2. The apparatus of claim 1 , wherein the power controller comprises an interface that enables software to write the current throttling hint information to the second plurality of configuration registers.
3. The apparatus of claim 2 , wherein the power controller receives the current throttling hint information from the software based on heuristic information regarding usage of the plurality of IP circuits during execution of the workload.
4. 4. The apparatus of claim 1, wherein the dynamic current sharing control circuit determines the dynamic current budget for the plurality of IP circuits further based on a maximum current budget set for each of the plurality of IP circuits.
5. For a first workload, the dynamic current sharing control circuitry: setting the dynamic current budget for a first IP circuit to the maximum current budget set for the first IP circuit; setting the dynamic current budget for a second IP circuit to be less than the maximum current budget set for the second IP circuit; 5. The apparatus of claim 4.
6. For a second workload, the dynamic current sharing control circuitry: setting the dynamic current budget for the first IP circuit to be less than the maximum current budget set for the first IP circuit; setting the dynamic current budget for the second IP circuit to the maximum current budget set for the second IP circuit.
6. The apparatus of claim 5.
7. The apparatus of claim 5 , wherein the first IP circuit comprises a core and the second IP circuit comprises a graphics processor.
8. 6. The apparatus of claim 5, wherein in response to a throttle signal from the power controller, the first IP circuit limits operation to the maximum current budget established for the first IP circuit and the second IP circuit limits operation to the dynamic current budget for the second IP circuit.
9. 9. The apparatus of claim 8, wherein the second IP circuit squashes one or more clock cycles of a clock signal in response to the throttle signal based on the dynamic current budget.
10. A method for implementing a power supply comprising: a plurality of intellectual property (IP) circuits, each of the plurality of IP circuits including a configuration register that stores a dynamic current budget; a power controller coupled to the plurality of IP circuits, the power controller including: a dynamic current sharing control circuit that receives current throttling hint information related to workloads executing on at least some of the plurality of IP circuits and generates the dynamic current budget for each of the plurality of IP circuits based at least in part thereon; having the dynamic current sharing control circuit provides an opportunistic current budget to at least one of the plurality of IP circuits during a throttle event, the opportunistic current budget enabling the at least one IP circuit to exceed the dynamic current budget for the at least one IP circuit. Device.
11. A system on chip (SoC), a plurality of cores and at least one graphics processor, each of the plurality of cores and the at least one graphics processor including a configuration register that stores a dynamic current budget; a power controller coupled to the plurality of cores and the at least one graphics processor, the power controller having an interface for receiving current throttling hint information from a software entity relating to a workload executing on the SoC, the power controller further having a dynamic current sharing control circuit for generating the dynamic current budget for the plurality of cores and the at least one graphics processor based at least in part on the current throttling hint information; and a SoC having a dynamic random access memory coupled to the SoC; having the power controller includes a plurality of second configuration registers that store the current throttling hint information, and the dynamic current sharing control circuitry determines a decomposed current budget for the plurality of cores and the at least one graphics processor based on the current throttling hint information and one or more parameters of the SoC. system.
12. 12. The system of claim 11, wherein the dynamic current sharing control circuitry determines the dynamic current budget based on the decomposed current budget for the multiple cores and the at least one graphics processor and a maximum current budget established for each of the multiple cores and the at least one graphics processor.
Citation Information
Patent Citations
SoC THAT CONTROLS POWER SUPPLY ACCORDING TO DATA TRANSACTION AND METHOD OF OPERATING THE SAME
JP2014071903A
Providing per core voltage and frequency control
JP2017021831A
Power supply controller, semiconductor device and semiconductor system
JP2018019152A
