METHOD AND APPARATUS TO ENHANCE PROCESSOR POWER MANAGEMENT

Abstract: A method and an apparatus to dynamically transition a processor between two performance states, high performance and low power. Predetermined core clock frequency and supply voltage levels of the processor define each performance state. Transitioning the supply voltage while the processor is in the active mode and transitioning the frequency while the processor is in the sleep mode significantly reduce the processor latency.

Description: METHOD AND APPARATUS TO ENHANCE PROCESSOR POWER MANAGEMENT FIELD OF THE INVENTION The present invention relates to processors including microprocessors. Specifically, this invention relates to managing processor latency. BACKGROUND OF THE INVENTION Portable systems, such as portable computers, have become increasingly popular as replacements for desktop systems. A portable system relies on a battery as its power source when it is not connected to an external power source, such as an AC outlet. As battery life is limited, power consumption in the system is reduced typically by lowering the core supply voltage and the core clock frequency of the processor. Thus, the portable system operates in a high performance state when it is powered by an external source and in a low power state when powered by a battery. In some portable systems, the transition between the two states occurs statically, for example, at reset or reboot. The Geyserville™ processor technology of the Intel Corporation, on the othey hand, is capable of dynamically transitioning between the two states, i.e., without a processor reset. The Geyserville technology is an improvement over the technology that changes the performance states statically because it achieves the transitions seamlessly and relatively rapidly without user intervention. Even the dynamic Geyserville technology, however, may take more than 500 micro seconds to adjust the core supply voltage and the core clock frequency of the processor. This latency is the result of the processor being placed in the deep sleep mode (ACPI Specification C3 mode) during the entire transition. ACPI Specification stands for the Advanced Configuration and Power Interface Specification, Revision 2.0, published on July 27, 2000. Additional latency results to re-activate the system clock input to the processor to enable it to exit deep sleep following the transition. The high processor latency associated with Geyserville is undesirable because it is wasted time that slows down the system operation. BRIEF DESCRIPTION OF THE DRAWINGS The present invention is illustrated by way of example and not limitation in the figures of the accompanying drawings, in which hke references indicate similar elements and in which: Fig. 1 is a transition graph pertaining to the one embodiment. Fig. 2 is a block diagram of a system according to one embodiment. Fig. 3 is a block diagram of a power management control logic in the system of Fig. 2. Fig. 4 is a flow diagram of a power management module according to one embodiment. Fig. 5 is a flow diagram of a power management module according to another embodiment. DETAILED DESCRIPTION The present invention improves the Geyserville technology by reducing the processor latency associate with Geyserville. Power dissipation of the processor is proportional to core clock frequency and to the square of core supply voltage. As the core clock frequency is reduced, the minimum required core supply voltage level is also reduced, thereby dramatically reducing the processor's power consumption. Depending on the power consumption desired of the system, the system may be set at one of the multiple performance states. For example, if the system is only powered by battery (such 'as, when the system is being used as a portable unit remotely without access to an external power supply), the system is placed in a low power state to conserve power. However, if the system is powered by an external power source (such as, an alternating current or AC outlet), the system is placed in a high performance state. In this description, the system may be a portable computer, a notebook computer, a hand-held electronic device, and the Hke. Also, the terms core clock frequency and processor clock frequency are synonymous. Also, the terms core supply voltage and processor supply voltage are synonymous. Additionally, the ensuing description refers to two performance states, low power and high performance, between which the transitions are performed. Fig. 1 shows a transition graph to transition between the two states. In one embodiment, the transition, which may be performed by a controller formed of one or more layers (including, for example, software, firmware, and hardware), is performed in two different phases. In phase one, the core supply voltage level is adjusted. In phase two, the core clock frequency level is adjusted. During the low power to high performance transition, phase two follows phase one. The core supply voltage level is elevated first such that it is at least the minimum voltage level required to support the elevated core clock frequency level of phase two. During phase one, the processor remains in the active mode (for example, ACPI Specification CO mode) because the processor can continue to perform its functions properly at the elevated core supply voltage level Performing phase 1 while the processor is in the active mode is one key feature of the present invention because that reduces the processor latency associated with Geyserville. During phase 2, the processor is placed in the sleep mode. In one embodiment, the sleep mode is not any of the C0-C3 modes of the ACPI Specification. The sleep mode is not visible to the end user. During the sleep mode the core clock (for example, the phase locked loop circuit) and the system clock (which is an input to the processor) remain active but the processor typically performs no logical functions. To the end user the processor seems to be in the deep sleep (C3) mode because it refuses to process requests from other system components. When viewed from inside the processor, however, the processor seems to be in the quick start (for example, ACPI Specification C2) mode because the core clock remains active and the system clock input to the processor remains active. Performing phase 2 while the processor is in the sleep mode is another key feature of the present invention. Performing phase 2 in the sleep mode instead of the deep sleep mode (C3) reduces the latency to re-activate the system clock input to the processor after completing phase 2. In one embodiment of the present invention, phase 2 is performed in less than 5 microseconds. In one embodiment of the present invention, the entire transition from low power to high performance is performed with less than 5 microseconds of latency. During the high performance to low power transition, phase 1 follows phase 2. The processor clock frequency is reduced first such that when the processor supply voltage level is reduced later on during phase 1, the reduced processor core voltage level is adequate to support it. Phase 2 is performed in the same manner as with regards to the low power to high performance transition, except that the core frequency level is reduced instead of elevated. Phase 1 is also performed in the same manner as with regards to the low power to high performance transition, except that the core voltage level is reduced instead of elevated. Both of the above performance states transitions are achieved seamlessly, relatively rapidly and dynamically without user intervention. It is contemplated that although this description refers specifically to a processor, other components in which performance states may be adjusted can be substituted in its place. Examples of such components are an application-specific integrated circuit (ASIC), a programmable gate array (PGA), a graphics subsystem, memory subsystem, buses or other discrete integrated devices. Referring to Fig. 2, an example system 10 according to an embodiment of the invention includes a processor 12 that receives an external clock BCLK (from a clock generator 50) and a supply voltage (from a voltage regulator 52). The voltage regulator 52 and the clock generator 50 are both controllable to adjust the core supply voltage levels as well as the core clock frequencies in the processor 12, as further described below. The main power supply voltages in the system 10 are provided by a power supply circuit 56 that is coupled to a battery 60 or an external power source outlet 58. When the external power source (not shown) is plugged into or removed from the external outlet source 58, an interrupt (e.g., a system management interrupt or SMI) may be generated to notify system software of the external power source insertion or removal. In addition, docking the system 10 to a docking base unit may also indicate a power source transition. In one embodiment, a device driver may detect power source transitions and docking events by registering with the operating system for power and plug-and-play notifications, for example. Thus, depending on whether the system 10 is powered by an internal power source (e.g., battery 60) or by an external power source (e.g., as coupled through the external source outlet 58), the system 10 may be set at a suitable performance state. For example, when the external power source is coupled, the system 10 may operate in the high performance state; however, if the internal power source is coupled instead, the system 10 may operate at the low power state. Additionally, the computer system 10 may provide a graphical user interface through which a user may specify the desired performance state of the system. The processor 12 may be coupled to a cache memory 14 as well as to a host bridge 18 that includes a memory controller for controlling system memory 16. The host bridge 18 is further coupled to a system bus 22, which may in one embodiment be a Peripheral Component Interconnect (PCI) bus, as defined in the PCI Local Bus Specification, Production Version, Rev. 2.1, published on June 1, 1995. The system bus 22 may also be coupled to other components, including a video controller 24 coupled to a display 26 and peripheral slots 28. A secondary or expansion bus 46 may be coupled by a system bridge 34 to the system bus 22. The system bridge 34 includes interface circuits to different ports, including a universal serial bus (USB) port 36 (as described in the Universal Serial Bus Specification, Revision 1.0, published in Jan. 1996) and ports that may be coupled to mass storage devices such as a hard disk drive, compact disc (CD) or digital video disc (DVD) drives, and the like. Other components that may be coupled to the secondary bus 46 include an input/ output (I/O) circuit 40 coupled to a parallel port, serial port, floppy drive, and infrared port. A non-volatile memory 32 for storing basic input/ output system (BIOS) routines may be located on the bus 46, as may a keyboard device 42 and an audio control device 44, as examples. It is to be understood, however, that all components in the system 10 are for illustrative purposes and the invention is not limited in scope to the illustrated system. Various software or firmware layers (formed of modules or routines, for example), including applications, operating system modules, device drivers, BIOS modules, and interrupt handlers, may be stored in one or more storage media in the system. The storage media includes the hard disk drive, CD or DVD drive, floppy drive, non-volatile memory, and system memory. The modules, routines, or other layers stored in the storage media contain instructions that when executed causes the system 10 to perform programmed acts. The software or firmware layers can be loaded into the system 10 in one of many different ways. For example, code segments stored on floppy disks, CD or DVD media, the hard disk, or transported through a network interface card, modem, or other interface mechanism may be loaded into the system 10 and executed as corresponding software or firmware layers. In the loading or transport process, data signals that are embodied as carrier waves (transmitted over telephone lines, network lines, wireless links, cables, and the hke) may communicate the code segments to the system 10. In the description that follows, reference is made to specific signals and circuitry as well as to sequences of events—it is to be understood that the invention is not limited in scope to the illustrated embodiments. Referring to Fig. 3, power management control logic according to an embodiment of the invention to control the core clock frequency and the core supply voltage level is shown. In the illustrated embodiment, the control logic may be separated into a first portion 100 and a second portion 102. However, it is contemplated that the control logic may also be integrated in one component. The first control logic portion 100 may be included in the host bridge 18, and the second control logic portion 102 may be included in the system bridge 34. Alternatively the first and second control logic portions may be implemented as separate chips. In addition, instead of being configured with host and system bridges 18 and 34 as illustrated in Fig. 2, the circuitry may be implemented as a memory hub (including interfaces to the processor and system memory) and an input/ output (I/O) hub (including interfaces to the system bus and secondary bus). In this other configuration, the control logic 100 and 102 may be implemented in the memory hub. With the memory and I/O hubs, messages rather than signals may be used to provide the same functionahty as the control logic 100, 102. Alternatively, a serial link may be used for communication with the voltage regulator 52 and clock generator 50. The power management control logic (100, 102) provides control signals to the voltage regulator 52 to adjust its supply voltage level and to the processor 12 to adjust the core clock frequency. In addition, the power management control logic (100, 102) is responsible for placing the processor 12 into the sleep mode to complete phase 2 of the transition sequence. In one embodiment, the processor 12 includes a clock generator, which is a phase locked loop (PLL) circuit. The PLL circuit frequency may be varied according to the algorithm by storing data in a register. In one embodiment, the data is the bus ratio. The bus ratio is the ratio between the frequencies of the PLL circuit clock and the system clock BCLK. In one embodiment, the frequency of the system clock can remain the same while the PLL circuit clock frequency is changed. In further embodiments, the bus ratios settings may be stored in programmable devices in the processor, including, for example, fuse banks or non-volatile memory. A brief description of the interface signals between the power management control logic (100, 102) and the other components of the system follows. A signal VR_LO/HI# is provided by the control logic portion 100 to indicate to the voltage regulator 52 the required core supply voltage. A signal LO/HI# provided by the control logic portion 100 to the processor 12 determines whether the core clock frequency is to be set to a high or low level. As an example, the core clock frequency may be either 350 MHZ or 450 MHZ depending on whether LO/HI# is active or not. It is noted that additional signals may be used to adjust the core clock frequency to more than two levels. Similarly, additional signals other than VR_LO/HI# may also be used to control the voltage supply levels provided by the voltage regulator 52. In the illustrated embodiment, a signal G_LO/HI# from the system bridge 34 indicates the desired system state and controls the states of LO/HI# and VR_LO/HI#. Additional signals may be used to define more than two system states. According to one embodiment of the invention, when the voltage regulator on signal (VR_ON) is active (which is true whenever the system is on), the voltage regulator 52 settles to the output selected by VR_LO/HI# (a low level or a high level). By way of example, a low supply voltage level may be about 1.3 V while a high supply voltage level may be about 1.8 V. Fig. 4 illustrates a flow diagram of a power management module utilizing the power management control logic of Fig. 3 to perform low power to high performance dynamic performance state transition, in the system 10 of Fig. 2. The power management module may be implemented as a software module, in system firmware (e.g., system bios or SMI handler), as part of the operating system, as a device driver, or as a combination of the above. The power management module determines (at El) that the system which was originally battery operated has now been plugged into the AC outlet. Next, the power management module indicates to switch up the performance state level of the processor. This may be performed, for example, by writing a predefined value to a register to indicate the new performance state level of the processor 12. The controlled register may be defined in memory or I/O address space. In addition, programming of the register may be defined under the ACPI specification. Thus, in one embodiment, one or more ACPI objects may be created to indicate to the operating system that the system 10 is capable of transitioning between the two performance states and to demand those resources when the system is ready to perform the transitions. The location and structure of the controlled register may be defined under an ACPI object. Furthermore, one or more ACPI objects may define the core clock frequencies and supply core voltage levels to be used in each performance state, the expected power consumption in each performance state, and other information. Next, the power management module requests the input output control hub (ICH) to prepare for and assist in the performance state transition (at E2). Next, the control logic 100 indicates to the voltage regulator 52 that the voltage regulator 52 output should be at the high performance state core supply voltage level. In one embodiment, the voltage regulator 52 includes the Geyserville Application Specific Integrated Circuit (GASIC) to elevate the voltage regulator 52 output with a controlled ramping rate in a 25MV-50MV step wise fashion (at E3). GASIC elevates the voltage regulator 52 output in accordance with a VID voltage level table. The high performance state core supply voltage is established when the voltage regulator 52 output reaches the peak voltage level stated in the VID table (at E4). Next, the power management module places the processor 12 into the quick start mode (C2) (at E5). Next, the power management module informs the platform components that the processor can no more process their requests because it is about to enter into the sleep state (at E6). Next, the input output control hub (ICH) snoops to insure memory core coherency, for example, among the LI cash, the L2 cash and the DRAM (at E7). Next, the power management module places the processor in the sleep state (at E8). Next, the power management adjusts the core clock frequency to the high performance level (at E9). In one embodiment, a phased locked loop (PLL) relocks to a new bus ratio. Next, the power management module removes the processor 12 from the sleep state (at E10). Finally, the power management module removes the processor from the quick start (C2) state (at Ell). Fig. 5 illustrates a flow diagram of a power management module utilizing the power management control logic of Fig. 3 to perform high performance to low power dynamic performance state transition, in the system 10 of Fig. 2. The power management module determines (at E21) that the system, which was originally plugged into an AC outlet, is now battery operated. Next, the power management module indicates to switch down the performance state level of the processor 12. Next, the power management module requests the input output control hub (ICH) to prepare for and assist in the performance state transition (at E22). Next, the power management module places the processor 12 into the quick start mode (C2) (at E23). Next, the power management module informs the platform components that the processor can no more process their requests because it is about to enter into the sleep state (at E24). Next, the input output control hub (ICH) snoops to insure memory coherency, for example, among the LI cash, the L2 cash and the DRAM (at E25). Next, the power management module places the processor in the sleep state (at E26). Next, the power management adjusts the core clock frequency to the low power level (at E27). In one embodiment, a phased locked loop (PLL) relocks to a new bus ratio. Next, the power management module removes the processor 12 from the sleep state (at E28). Next, the power management module removes the processor from the quick start (C2) state (at E29). Next, the control logic 100 indicates to the voltage regulator 52 that the voltage regulator 52 output should be at the low power state core supply voltage level. In one embodiment, the voltage regulator 52 includes the Geyserville Application Specific Integrated Circuit (GASIC) to reduce the voltage regulator 52 output with a controlled rate in a 25MV-50MV step wise fashion (at E30). GASIC reduces the voltage regulator 52 output in accordance with a VID voltage level table. The low power state core supply voltage is established when the voltage regulator 52 output reaches the bottom voltage level stated in the VID table (at E31). In the foregoing specification, the invention has been described with reference to specific exemplary embodiments thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention as set forth in the appended claims. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense. In addition, the methods as described above can be stored in memory of a computer system as a set of instructions to be executed. In addition, the instructions to perform the methods as described above could alternatively be stored on other forms of computer-readable mediums, including magnetic and optical disks. For example, the method of the present invention can be stored on computer-readable mediums, such as magnetic disks or optical disks that are accessible via a disk drive (or computer-readable medium drive).

Claims: CLAIMS What is claimed is: 1. A system comprising: a component; a detector to detect a power management event; and a controller to transition, in response to the power management event, a first setting of the component from a first performance mode to a second performance mode, the controller to transition the component to a reduced activity state, and to change a second setting of the component from a first performance mode to a second performance mode. 2. The system of claim 1, wherein the component is the processor. 3. The system of claim 1, wherein changing the first setting of the component includes changing the core processor supply voltage level from a first voltage level to a second, higher voltage level. 4. The system of claim 1, wherein the reduced activity state includes the sleep state. 5. The system of claim 1, wherein changing the second setting of the component includes changing the core processor clock frequency from a first frequency level to a second, higher frequency level. 6. The system of claim 1, wherein the core processor clock remains active during the sleep state. 7. The system of claim 1, wherein a system clock input to the processor remains active during the sleep state. 8. The system of claim 1, wherein the power management event includes a change of the system power source from an internal power source to an external power source. 9. The system of claim 1, wherein changing the first setting of the component can requires 500 microseconds. 10. The system of claim 1, wherein changing the second setting of the component requires less than 5 microseconds. 11. A system comprising: a component; a detector to detect a power management event; a controller to transition the component, in response to the power management event, to a reduced activity state, the controller to change a first setting of the component from a first performance mode to a second performance mode, the controller to transition the component out of the reduced activity state, and to transition a second setting of the component from a first performance mode to a second performance mode. 12. The system of claim 11, wherein the component is the processor. 13. The system of claim 11, wherein the reduced activity state includes the sleep state. 14. The system of claim 11, wherein changing the first setting of the component mcludes changing the core processor clock frequency from a first frequency to a second, lower frequency. 15. The system of claim 11, wherein changing the second setting of the component includes changing the core processor supply voltage level from a first voltage level to a second, lower voltage level. 16. The system of claims 11, wherein a system clock input to the processor remains active during the sleep state. 17. The system of claims 11, wherein the core processor clock remains active during the sleep state. 18. The system of claim 11, wherein the power management event includes a change of the system power source from an external power source to an internal power source. 19. The system of claim 12, wherein changing the first setting of the component requires less than 5 microseconds. 20. The system of claim 11, wherein changing the second setting of the component can requires 500 microseconds. 21. A computer-readable medium having stored thereon a set of instructions to translate instructions, the set of instructions, which when executed by a processor, cause the processor to perform a method comprising: detecting a power management event; transitioning a first setting of a component from a first performance mode to a second performance mode in response to the power management event, transitioning the component to a reduced activity state, and to change a second setting of the component from a first performance mode to a second performance mode, if the power management event includes the system power source switching from an internal power source to an external power source; and transitioning the controller to a reduced activity state in response to the power management event, changing the second setting of the component from the second performance mode to the first performance mode, transitioning the component out of the reduced activity state, and transitioning the second setting of the component from the second performance mode to the first performance mode, if the power management event includes the system power source switching from an external power source to an internal power source. 22. The computer-readable medium of claim 21, wherein the first setting of the component includes the core processor supply voltage level. 23. The-computer readable medium of claim 21, wherein the component is the processor. 24. The computer-readable medium of claim 22, wherein the second performance mode includes a higher voltage level than the first performance mode. 25. The computer-readable medium of claim 21, wherein the reduced activity state includes the sleep state. 26. The computer-readable medium of claim 21, wherein the core processor clock remains active during the sleep state. 27. The computer-readable medium of claim 21, wherein the second setting of the component includes the core processor clock speed. 28. The computer-readable medium of claim 27, wherein the second performance mode includes a higher frequency level than the first performance mode. 29. The computer-readable medium of claim 21, wherein a system clock input to the processor remains active during the sleep state. 30. The computer-readable medium of claim 21, wherein changing the second setting of the component requires 500 microseconds. 31. An apparatus comprising: a detector to receive an indication to change power states in the system; and a controller to transition, in response to the indication, transition a power supply voltage level of a component from a first level to a second, higher level, the controller to transition the component to a low activity state, and to change a core component clock frequency from a first level to a second, higher level, while the component is in the low activity state. 32. The apparatus of claim 31, wherein core component clock and a system clock input to the component remain active during the low activity state. 33. The apparatus of claim 31, wherein the indication is generated in response to a change in a power source in the system from an internal power source to an external power source. 34. An apparatus comprising: a detector to receive an indication to change power states in the system; and a controller to transition the component to a low activity state in response to the indication, the controller to change the component core clock frequency from a first level to a second, lower level, while the component is in the low activity state, the controller to transition .the component out of the reduced activity state, and to transition a power supply voltage level of the component from a first level to a second, lower level. 35. The apparatus of claim 34, wherein the core component clock and a system clock input to the component remain active during the low activity state. 36. The apparatus of claim 34, wherein the indication is generated in response to a change in a power source in the system from an external power source to an internal power source.

Inventors: DAI XIA, DAI, XIA
Applicants: DAI XIA, INTEL CORP, DAI, XIA, INTEL CORPORATION
Application year: 2001
Main classification: G06F1
IPC codes: G06F1