Embodiments of this invention relate to electronic devices. In particular, embodiments of this invention relate to changing an operating voltage and an operating frequency of an electronic device.
For the purposes of this specification the term “electronic device” should be interpreted broadly to include any electronic device including, but not limited to, microprocessors (processors), chipsets, graphics processors, graphics accelerators, and other data processing devices. Electronic device frequency has increased approximately ten-fold over the last ten years. For example, in the mid-90's electronic devices operating at a frequency of 133 MHz were commonplace whereas today electronic devices are operated at over 1.6 GHz. This increase in electronic device frequency has led to a steep rise in power consumption due both to the high operating frequency as well as high power leakage associated with electronic devices that operate at these higher frequencies.
Consequently, lowering electronic device power consumption is an important consideration when designing modern electronic devices. Electronic devices that operate at lower power are advantageous in that they may operate for longer periods on battery power without having to re-charge the battery.
One technique for lowering the power consumption of an electronic device is to scale the electronic device's operating frequency and operating voltage dynamically based on power consumption and/or performance criteria. For example, if high performance is not required and an electronic device is operating on battery power then the electronic device may be dynamically scaled or switched to operate at a lower frequency in order to conserve power. When the electronic device is connected to a wall socket (AC source) the device may be scaled up to increase its operating frequency.
Lower power consumptions may be achieved by scaling an electronic device's operating voltage in addition to its operating frequency. However, scaling the operating voltage can introduce operating instability in the electronic device. In order to reduce this operating instability all computations for the period of the voltage change are typically stopped. This period can be over 130 μs to allow the voltage to swing from the minimum operating voltage to the maximum operating voltage, and to allow phase locked loop circuits that control the operating frequency of the electronic device to be reset or relocked. It will be appreciated that stopping all computations for such a long period leads to a degradation in the electronic device performance.
Further, during the voltage change memory traffic is typically halted for at least 130 μs since snoop services into the electronic device's caches during the voltage change or swing period are unavailable. This halting of the memory traffic affects isochronous traffic which, typically, cannot stand a delay of over 10–15 μs before data is lost or audio-visual artifacts are visible to a user. In some cases, the caches have to be flushed prior to the voltage swing. This adversely affects electronic device performance and limits cache size due to the flush time penalty.
As discussed above, achieving changes in the operating voltage in the electronic device can result in a total system performance penalty for each change, thereby effectively limiting the number of changes or switches per minute and thus preventing the power mode of the electronic device to track the current performance needs of the electronic device.
In one embodiment, there is provided a method comprising determining a target operating point for an electronic device, the target operating point including a target operating frequency and a target operating voltage; and dynamically changing a current operating point for the electronic device including a current operating frequency and a current operating voltage by non-contemporaneously changing the current operating frequency to the target operating frequency and a current operating voltage to the target operating voltage, wherein during the changing the electronic device is in an active state.
Reference in this specification to “one embodiment” or “an embodiment” indicates that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the invention. The appearances of the phrase “in one embodiment” in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Moreover, various features are described which may be limited by some embodiments and not by others. Similarly, various requirements are described which may be requirements for some embodiments but not other embodiments.
In one embodiment the processor will leave its normal state 10 if, for example, there is an increased performance requirement in which case the operating point of the processor needs to be raised. Alternatively, the processor leaves its normal state 10 if there is a need to conserve power, in which case the operating point of the processor is lowered. Aspects of the present invention involve determining a target operating point for the processor. According to embodiments of the invention, the target operating point may be determined based on processor operating parameters such as temperature, power consumption, etc. In one case, in order to lower the operating point of the processor to a target operating point that is lower than the operating point associated with the normal state 10, the processor first enters a frequency transition stage 12 in which the operating frequency of the processor is lowered to a value below the operating frequency of the processor in the normal state 10. The particular operations performed during the frequency transition stage 12 will be described in greater detail below.
After execution of the frequency transition stage 12, the processor enters a voltage transition stage 14. During the voltage transition stage 14, the operating voltage of the processor is lowered from the operating voltage associated with the normal state 10 to a target operating voltage which is below the operating voltage associated with the normal state 10. After executing the voltage transition stage 14, the processor is once again in the normal state 10 since the current demands both in terms of processing speed (performance) and power consumption will be matched to the current operating point of the processor.
In another case, in order to transition the operating point of the processor from its operating point in the normal state 10 to a higher operating point, the processor first enters a voltage transition stage 16 in which the operating voltage associated with a normal state 10 is transitioned to a higher target operating voltage, and after execution of the voltage transition state 16, a frequency transition stage 18 is executed during which an operating frequency of the processor associated with the normal state 10 is transitioned to a higher operating frequency. After execution of the frequency transition stage 18, the processor is once again in the normal state 10 since it will now be operating at an operating point comprising an operating voltage and an operating frequency that is matched to what is required both in terms of power consumption and processor performance. In some embodiments, the voltage transition stages 16 and 14 invoke the same or similar operations, and the frequency transition stages 12 and 18 involve the same or similar operations.
Referring now to
At block 34, after changing the voltage incrementally, the processor waits a predefined period during which circuitry of the processor is allowed to adjust to the new operating voltage. Thus, by interspersing each increment in time, clock circuitry and logic timing circuitry associated with the processor are able to continue operation in a manner that is transparent to software (i.e., the processor remains in an active state.) In one embodiment, the predefined waiting period is between 5–30 μs. At block 32, a check is performed to determine if the target operating voltage has been reached. If the target operating voltage has not been reached then block 32 re-executes, otherwise the voltage transition state is exited. During the voltage transition stages 14 and 16, the processor remains in an active state wherein the processor is able to continue executing code and memory transactions on a processor bus coupled to the processor are still possible.
Referring now to
After execution of block 46, block 48 executes wherein the processor waits a predefined delay period to allow the core phase locked loop circuits to be re-set or to synchronize to the target operating frequency. In some cases, the predefined delayed period may be about 10 μs. In one embodiment, the core phase locked loop circuits generate a signal to indicate that they have been synchronized to the target operating frequency. In this embodiment, the processor waits for the signal before execution of block 40. In some embodiments, the processor may wait for the predefined delay period and for receipt of the signal before execution of block 40. At block 40, the core clock is returned, the processor bus is released, and the suspended logic units are restarted. Thereafter block 52 executes wherein normal code execution is resumed.
Referring to
The processor 62 also includes an operating point control unit 62C which controls both the phase lock loop circuit 62B and the voltage regulator 70. In use, operating point control unit 62C determines whether the current operating point for the processor 62 is higher or lower than a target operating point. In some cases, this determination may include receiving input from an operating system to scale the operating frequency and operating voltage of the processor 62 in accordance with power and/or performance requirements. In some cases, the current operating point may be determined to be higher than the target operating point when the processor is switched from an AC power source to a battery power source or if the operating computational load is reduced. In other cases, if there is a high processing load the current operating point is determined to be lower than the target operating point.
If the target operating point is higher than the current operating point, then the operating point control unit 62C sends control signals to the phase locked loop circuit 62B and the voltage regulator 70 to increase the operating frequency and the operating voltage for the processor 62. Conversely, if the operating point control mechanism 62C determines that the target operating point is lower than the current operating point, then the operating point control unit 62C sends a control signal to the phase locked loop circuit 62B to cause it to lower the current operating frequency to the target operating frequency. Further, the operating point control unit 62C sends a control signal to the voltage regulator 70 to cause it to send a control signal to lower the operating voltage for the processor 62.
The actual operations performed by the processor 62 in order to change its operating frequency and operating voltage to the target operating voltage and the target operating frequency correspond to the operations performed during the frequency transition stages 12, 18 and voltage transition stages 14, 16 described with reference to
In one embodiment, there may be a delay between the completion of the last incremental voltage transition and commencement of a change in the operating frequency. This delay, which in some embodiments may be programmed into the processor, provides time to allow the operating voltage to sterilize before the operation frequency is changed.
While performing the voltage and frequency transitions in a manner described above, the frequency transition stage may be effected, in one embodiment, within a period of the 5–10 μs. Since during the frequency transition phase, the processor bus 64 is operational, traffic to the processor during the transition stages may be blocked by using native bus mechanisms. This allows for lower time overhead (lower latency and impact) and lower implementation cost in a chipset comprising the processor 62. In one embodiment, the frequency transitioning is controlled entirely from within the processor 62 and there is thus no need for an external device to do this. This saves on processor interface pins.
In some embodiments, the operating point control unit 62C has hard coded therein various operating points. Further the amount of each voltage increment and delay periods necessary to implement the techniques described above are also hard coded within the operating point control unit 62C. In other embodiments, these values may exist in firmware. In yet further embodiments, these values may be programmed partially or fully by software.
The logic to perform the processes as described above can be implemented in hardware within the electronic device, or alternatively external to the device. The processes described above can also be stored in the memory of a computer system as a set of instructions to be executed. In addition, the instructions to perform the operations described above could alternatively be stored on other forms of machine-readable media, including magnetic and optical disks. For example, the operations of one embodiment could be stored on machine-readable media, such as magnetic disks or optical disks, which are accessible via a disk drive (or computer-readable medium drive). Further, the instructions can be downloaded into a computing device over a data network in a form of compiled and linked version.
Alternatively, the processes to perform the operations as discussed above, could be implemented in additional computer and/or machine readable media, such as discrete hardware components as large-scale integrated circuits (LSI's), application-specific integrated circuits (ASIC's), firmware such as electrically erasable programmable read-only memory (EEPROM's); and electrical, optical, acoustical and other forms of propagated signals (e.g., carrier waves, infrared signals, digital signals, etc.); etc.
Although the present invention has been described with reference to specific exemplary embodiments, it will be evident that various modifications and changes may be made to these embodiments without departing from the broader spirit and scope of the invention. Accordingly, the specification and drawings are to be regarded in an illustrative rather than a restrictive sense. Thus, for example, in some embodiments the operating point control unit 62C or at least components thereof may be located outside the processor 62, and may form part of a chipset including the processor 62. Moreover, the operating point control unit 62 may be implemented in firmware, software, or hardware. Similarly, the voltage regulator unit 70 or at least components thereof may be located inside the processor 62 or any other part of the chipset.
The present application is a Continuation-in-Part of application Ser. No. 10/272,154, filed Oct. 14, 2002 now U.S. Pat. No. 7,013,406.
Number | Name | Date | Kind |
---|---|---|---|
5281100 | Diederich | Jan 1994 | A |
5307003 | Fairbanks et al. | Apr 1994 | A |
5502838 | Kikinis | Mar 1996 | A |
5627412 | Beard | May 1997 | A |
5745375 | Reinhardt et al. | Apr 1998 | A |
5787294 | Evoy | Jul 1998 | A |
5812860 | Horden et al. | Sep 1998 | A |
5918061 | Nikjou | Jun 1999 | A |
5953685 | Bogin et al. | Sep 1999 | A |
6047248 | Georgiou et al. | Apr 2000 | A |
6211740 | Dai et al. | Apr 2001 | B1 |
6363490 | Senyk | Mar 2002 | B1 |
6393374 | Rankin et al. | May 2002 | B1 |
6415388 | Browning et al. | Jul 2002 | B1 |
6457082 | Zhang et al. | Sep 2002 | B1 |
6557068 | Riley et al. | Apr 2003 | B2 |
6714891 | Dendinger | Mar 2004 | B2 |
6789037 | Gunther et al. | Sep 2004 | B2 |
6836849 | Brock et al. | Dec 2004 | B2 |
6885233 | Huard et al. | Apr 2005 | B2 |
6980918 | Gunther et al. | Dec 2005 | B2 |
7000130 | Adachi | Feb 2006 | B2 |
7013406 | Naveh et al. | Mar 2006 | B2 |
7076672 | Naveh et al. | Jul 2006 | B2 |
7158911 | Gunther et al. | Jan 2007 | B2 |
20020083355 | Clark et al. | Jun 2002 | A1 |
20020083356 | Dai | Jun 2002 | A1 |
20040098631 | Terrell | May 2004 | A1 |
20040125514 | Gunther et al. | Jul 2004 | A1 |
Number | Date | Country |
---|---|---|
1286248 | Feb 2003 | EP |
WO200135200 | May 2001 | WO |
WO200217052 | Feb 2002 | WO |
WO 0229535 | Apr 2002 | WO |
Number | Date | Country | |
---|---|---|---|
20060156040 A1 | Jul 2006 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 10272154 | Oct 2002 | US |
Child | 10855268 | US |