This continuation application is related to, and claims priority to, U.S. Provisional Patent Application Ser. No. 60/930,247, entitled “POWER MANAGEMENT OF LOW POWER LINK STATES” filed on May 14, 2007, and U.S. patent application Ser. No. 11/906,007, entitled “POWER MANAGEMENT OF LOW POWER LINK STATES” filed on Sep. 29, 2007, now issued as U.S. Pat. No. 7,984,314, which are hereby incorporated by reference herein as though set forth in full.
Some embodiments of the invention generally relate to link power states of devices. In particular, some embodiments relate to power management of link states.
Computer systems commonly are sensitive to the behavior of devices coupled to the systems. Such effects include power management issues. Because power management has typically operated in a cooperative model, one badly behaving device can, by preventing a computer system from transitioning to an appropriate state of reduced power consumption, reduce the effectiveness of any or all platform power management mechanisms.
In one example, power in a computer system may be optimized utilizing low power states. Multiple different states with different levels of operation and power savings may be available. However, a processor of the computer system or any computer subsystem can remain stuck in a higher power state due to, for example, inopportune manner.
Many devices in current computer systems make use of PCI, PCI Express (PCIe), or Universal Serial Bus (USB, USB2) interconnects via on-board integration, integrated Mini-Card devices, ExpressCard slots, and/or USB walk-up ports. These interconnect standards, among others, are not in themselves optimized for power-friendly devices. Because of this, there may be a need for power efficient device design through use of traffic alignment, coalescing interrupts, and providing robust low power link state usage.
Embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings in which like reference numerals refer to similar elements:
An embodiment of the invention concerns power management of link states.
In some embodiments, a system provides for improved power efficiency with regard to low power link state usage. In some embodiments, a computer system provides for transitions between link states for a device that are related to active traffic usage, rather than only elapsed time. In some embodiments, a link will be prevented from dropping unnecessarily to a lower power state when there is active traffic for a device.
The PCI Express Specification (including PCI Express Base Specification Revision 1.0, Jul. 22, 2002, PCI Special Interest Group, and the subsequent PCI Express Base Specification Revision 2.0, Jan. 15, 2007, PCI Special Interest Group) defines a concept of several link states for a device that is in an active (“D0”) state. In this definition, “L0” is the active link state wherein transactions may be in flight. “L0s” is the first stage of idleness for the link, and is known as the “standby” state. In this state, some amount of power is saved by quiescing the link while still maintaining active all relevant circuitry to re-activate the link within a period that is typically less than 100 symbol times. Active State Power Management (ASPM) “L1” is the next level of power savings, and is known as “lower power standby”. In L1, the link enters a deeper level of power savings, and the device can optionally power off its internal clock circuit, which may include a PLL (phase lock loop). The PCIe specification also specifies a model for software to programmatically discover the link latency structures from the top of the system hierarchy to the endpoint, and then evaluate whether the path for these latencies exceeds what a device can tolerate, thereby setting the link active state power management policy accordingly on a link-by-link basis.
However, conventional methodology for link power states is insufficient and leads to several key problems for devices in making use of the lower power link states. Specifically:
(1) Devices generally use a timeout-based policy for progression from L0→L0s→L1. Thus, the transition to a lower state is based on a timer, and the link state will transition to the next lower state if sufficient time has elapsed.
(2) In many computer systems, especially mobile platforms, that include key power management features such as deep C4, C5, and C6, the latency for issuance of a transaction on a given endpoint link, continuing until the transaction completes in memory and is potentially also snooped on the FSB (front side bus—carrying data between the central processing unit and the north bridge), can be much larger than the maximum tolerable exit latency as computed through walking the link structure. The maximum tolerable exit latency may be expected to be about 55 μs in some computer systems, including, but not limited to, Intel® Core 2 Duo Mobile Platforms.
(3) The PCIe standards were enhanced in an ECN (engineering change notice) to the PCIe base specification 1.0a dated 12 Jan. 2004, and also included in the 1.1 and 2.0 PCIe Base Specification releases, to include the concept of device PLL (or other device internal clock circuit) power down via a CLKREQ# (clock request) protocol coupled with L1. Incurring long latencies on the existing L1 mode with PLL power down can result in host processor stalls, thereby resulting in I/O starvation or host processor performance issues.
In some embodiments, intelligent methods of managing link state usage are provided. In some embodiments, variations of lower power states may be supported in the link policy. For example, variations of L1 states with and without device internal clock circuit power down (depending on device traffic patterns for a device at any given moment) may be provided. In some embodiments, link state power levels are utilized to reduce the latency of low power link state exits in order to avoid host processor stalls.
Many conventional peripheral devices move traffic in the computer system on their own schedules through a concept known as bus mastering. For PCIe based peripherals, the generation of bus master traffic is handled independently from any activity that may be occurring naturally in the system. In operation, at the moment traffic is flowing from a device, the whole system must be progressively driven out of the deep idle states.
(1) In a system 100, a device 102 is coupled to an I/O controller 106 via a bus, which may be, for example, a PCIe or USB link 104. Device 102 may be, for example, peripheral device of a computer. In this example, the device 102 brings the link 104 out of a low power state for purposes of issuing a transaction, which may be a read or write transaction.
(2) The transaction request brings a chipset interface 108 (DMI—Direct Media Interface) out of a low power state.
(3) A graphics memory controller 110 then exits a low power state in order to service the incoming request from the chipset interface 108.
(4) The graphics memory controller 110 takes action to bring a front side bus (FSB) 112 out of low power state, and acts to snoop transactions.
(5) A processor 114 coupled with the front side bus 112 exits a low power state to service the snoop transactions.
(6) The graphics memory controller 110 is coupled with memory elements 118a-118n via connections 116a-116n (DDR—Double Data Rate operation), and the graphics memory controller 110 brings the memory out of self-refresh mode and issues memory transactions.
(7) The relevant data or transaction completions then flow back to the device 102.
(8) The system platform then returns to an idle state, which involves each relevant element transitioning to a lower power state.
As is apparent from
A link policy engine, implemented in hardware or software, or a combination of hardware or software, may commonly use a timeout based policy as observed by real-world data collection on devices implementing L1. A timeout based link power management policy may be as shown in
While
In some embodiments, the policy illustrated in
In some embodiments, the power management engine provides link power policy management that may include:
1) Use of two variations of L1: L1 with device PLL (phase lock loop) (or other device internal clock circuit) power down (via assertion or de-assertion of a clock request (CLKREQ#)) and “traditional” L1 without powering down the PLL. The decision to use the deep power state may be based on the latency tolerance of the device and the frequency of accesses from the host in the current conditions. Recent transaction history and device connection state may be taken into account as well, according to some embodiments.
2) Link policy that is based on current device state, versus blindly entering link states if a transaction request has not been processed within some period of time.
3) Proper buffering to deal with device latencies that may be observed in deeply power managed mobile platforms.
In some embodiments, the link power management engine may begin by monitoring a link of a device for a transaction. When a transaction is pending, the engine may transition the link to an active state. If there is no transaction pending and the device is idle for some duration of time, such as, but not limited to, about 7 μs, the engine may then transition the link to a standby state. Or if there is no transaction pending and the device is not anticipating actively sending or receiving information over the bus, then the engine may determine whether the link can be transitioned into a standby, idle, or deep idle state. In some embodiments, to support intelligent link management, a link power management engine stores information about at least one of the following: the link state, the device buffering, the controller or device state, or a history of transactions.
If the device can be transitioned into the deep idle state, then the engine may transition the link into the deep idle state by at least shutting down a device PLL or other internal clock circuit. However, if the device should not be transitioned into the deep idle state, then the engine may transition the link into the idle state. When there is a transaction pending, the engine may transition the link from the idle or deep idle state to the active state. In some embodiments, the engine may transition the link to an active state from any of the other link states. In some embodiments, the device may be transitioned directly from an idle state to a deep idle state and back. In some embodiments, the device PLL may be shut down at least in part by a signal that directs the device to reference a clock source.
In contrast, an enhanced link policy 408 provides for improved performance. The enhanced policy may represent the policy provided in
In some embodiments, the processors 510 may be utilized to support one or more virtual machines. In some embodiments, the computer 500 further comprises a random access memory (RAM) or other dynamic storage device as a main memory 520 for storing information and instructions to be executed by the processors 510. Main memory 520 also may be used for storing temporary variables or other intermediate information during execution of instructions by the processors 510. In some embodiments, the main memory 520 is used to store a link power management engine. In some embodiments, to support intelligent link management, the link power management engine stores information about at least one of the following: the link state, buffering, the controller or device state, or a history of transactions. RAM memory includes dynamic random access memory (DRAM), which requires refreshing of memory contents, and static random access memory (SRAM), which does not require refreshing contents, but at increased cost. DRAM memory may include synchronous dynamic random access memory (SDRAM), which includes a clock signal to control signals, and extended data-out dynamic random access memory (EDO DRAM). In some embodiments, memory of the system may include a shared memory, such as a shared BIOS/OS memory, that is accessible by multiple agents in the computer system. The computer 500 also may comprise a read only memory (ROM) 525 or other static storage device for storing static information and instructions for the processors 510. The computer 500 may include one or more non-volatile memory devices 530 for the storage of certain elements, including, but not limited to, system BIOS and one or more pre-OS applications.
Data storage 535 may also be coupled to the bus 505 of the computer 500 for storing information and instructions. The data storage 535 may include a magnetic disk, an optical disc and its corresponding drive, or other memory device. Such elements may be combined together or may be separate components, and utilize parts of other elements of the computer 500. In a particular embodiment, the data storage 535 may include a hard drive 536.
The computer 500 may also be coupled via the bus 505 to a display device 540, such as a cathode ray tube (CRT) display, a liquid crystal display (LCD), a plasma display, or any other display technology, for displaying information to an end user. In some embodiments, the display device may be utilized to display television programming. In some environments, the display device 540 may include a touch-screen that is also utilized as at least a part of an input device. In some environments, the display device 540 may be or may include an audio device, such as a speaker for providing audio information, including the audio portion of a television program. An input device 545 may be coupled to the bus 505 for communicating information and/or command selections to the processors 510. In various implementations, input device 545 may be a keyboard, a keypad, a touch-screen and stylus, a voice-activated system, or other input device, or combinations of such devices. Another type of user input device that may be included is a cursor control device 550, such as a mouse, a trackball, or cursor direction keys for communicating direction information and command selections to the one or more processors 510 and for controlling cursor movement on the display device 540.
One or more communication devices 555 may also be coupled to the bus 505. Depending upon the particular implementation, the communication device 555 may include a transceiver, a wireless modem, a network interface card, LAN (Local Area Network) on motherboard, or other interface device. The uses of a communication device 555 may include reception of signals from wireless devices. For radio communications, the communication device 555 may include one or more antennas 558, including any dipole or monopole antennas, as required. In one embodiment, the communication device 555 may include a firewall to protect the computer 500 from improper access. The computer 500 may also be linked to a network, such as network 565, or to other devices using the communication devices 555, which may include links to the Internet, a local area network, or another environment. The computer 500 may also comprise a power device or system 560, which may comprise a power supply, a battery, a solar cell, a fuel cell, or other system or device for providing or generating power. The power provided by the power device or system 560 may be distributed as required to elements of the computer 500. In some embodiments, the power distribution may be affected by power management, including the power management of link states.
Those skilled in the art having the benefit of this disclosure will appreciate that many other variations from the foregoing description and drawings may be made within the scope of the invention. Indeed, the invention is not limited to the details described above. Rather, it is the following claims including any amendments thereto that define the scope of the invention.
In the description above, for the purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the invention. It will be apparent, however, to one skilled in the art that the invention may be practiced without some of these specific details. In other instances, well-known structures and devices are shown in block diagram form.
Embodiments of the invention may include various processes. The processes of the invention may be performed by hardware components or may be embodied in machine-executable instructions, which may be used to cause a general-purpose or special-purpose processor or logic circuits programmed with the instructions to perform the processes. Alternatively, the processes may be performed by a combination of hardware and software.
Portions of the invention may be provided as a computer program product, which may include a machine-readable medium having stored thereon instructions, which may be used to program a computer (or other electronic devices) to perform a process according to the invention. The machine-readable medium may include, but is not limited to, floppy diskettes, optical disks, CD-ROMs (compact disk read-only memory), and magneto-optical disks, ROMs (read-only memory), RAMs (random access memory), EPROMs (erasable programmable read-only memory), EEPROMs (electrically-erasable programmable read-only memory), magnet or optical cards, flash memory, or other type of media/machine-readable medium suitable for storing electronic instructions. Moreover, embodiments of the invention may also be downloaded as a computer program product, wherein the program may be transferred from a remote computer to a requesting computer by way of data signals embodied in a carrier wave or other propagation medium via a communication link (e.g., a modem or network connection).
Many of the methods are described in their most basic form, but processes can be added to or deleted from any of the methods and information can be added or subtracted from any of the described messages without departing from the basic scope of the invention. It will be apparent to those skilled in the art that further modifications and adaptations can be made. The particular embodiments are not provided to limit the invention but to illustrate it. The scope of the invention is not to be determined by the specific examples provided above but only by the claims below.
It should also be appreciated that reference throughout this specification to “one embodiment” or “an embodiment” means that a particular feature may be included in the practice of the invention. Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims are hereby expressly incorporated into this description, with each claim standing on its own as a separate embodiment of this invention.
Number | Date | Country | |
---|---|---|---|
60930247 | May 2007 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 11906007 | Sep 2007 | US |
Child | 13186322 | US |