Low power state selection based on idle duration history
By monitoring and predicting the sleep state duration of the processing device, selecting an appropriate sleep state and adjusting the prediction, the problem of energy inefficiency and non-adaptiveness in the existing technology is solved, and more efficient sleep state management and energy utilization are achieved.
Patent Information
- Application Number
- CN202280024271.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-03-31
- Filing Date
- 2022-03-29
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-03-29
AI Technical Summary
Existing sleep state management systems result in energy inefficiency due to lack of prior knowledge when transitioning between processing devices or their components. Conventional systems filter sleep durations that are too short by introducing hysteresis durations, resulting in energy waste, and are multi-tunable. Parametric and non-adaptive methods, lacking framework extensions.
Generate historical sleep state duration information by monitoring and recording sleep state durations of processing equipment and its components, predict upcoming sleep state durations, determine breakeven durations, select appropriate sleep states, and adjust predictions when necessary To reduce errors, leverage latency tolerance reporting for input/output devices and advanced programmable interrupt controller timer values to optimize sleep state selection.
It improves the energy efficiency of processing devices, reduces energy consumption in entering hysteresis cycles, enables more efficient sleep state transitions, reduces performance and power losses, and provides an adaptive and scalable framework.
Smart Images

Figure CN117377925B_ABST
Abstract
Description
Background Art
[0001] Modern computer systems typically support several power management states. An operational system state typically describes a state in which the system is fully available and fully powered. Under some conditions, such as if some or all of the system components are not being used, power may be reduced for some or all of the components by entering a lower power system state from an operational state. BRIEF DESCRIPTION OF THE DRAWINGS
[0002] The present disclosure may be better understood, and its numerous features and advantages made apparent to those skilled in the art by referencing the accompanying drawings.The use of the same reference numbers in different drawings indicates similar or identical items.
[0003] Figure 1 is a block diagram of an exemplary processing device according to some embodiments.
[0004] Figure 2 is a diagram showing that according to some embodiments Figure 1 A block diagram of a processing device with additional details.
[0005] Figure 3 is a block diagram of an exemplary system-on-chip device according to some embodiments.
[0006] Figure 4 is a block diagram of an exemplary system management unit according to some embodiments.
[0007] Figure 5 is a flow chart illustrating an overall exemplary method of transitioning a component of a processing device directly into a deeper sleep state, according to some embodiments.
[0008] Figure 6 is a diagram showing a method for Figure 5 A flow chart of a more detailed method of the duration monitoring process is shown in block 502 of the accompanying drawings.
[0009] Figure 7 An exemplary timing sequence of two different sleep states is shown according to some embodiments.
[0010] Figure 8 is a diagram showing a method for Figure 5 A flow chart of a more detailed method of the duration prediction process is shown in block 504 of FIG.
[0011] Fig. 9 is a diagram showing a method for Figure 5 A flowchart of a more detailed method of the sleep state selection process is shown in block 506 of FIG.
[0012] Fig.10is a diagram showing a method for Figure 5 A flowchart of a more detailed method of the sleep state promotion process is shown in block 510 of FIG. DETAILED DESCRIPTION
[0013] Components in a processing device, such as a central processing unit (CPU), a graphics processing unit (GPU), and an accelerated processing unit (APU), may operate in different power management states, where portions of the processing device may be disabled or run at a lower operating frequency or voltage. For example, the power management states available to components of a processing device may include an active state, an idle state, a power-gated state, and the like. In the active state, the component executes instructions and runs at a nominal operating frequency and operating voltage. In the idle state, the component does not execute instructions and may run at a lower operating frequency or operating voltage. In the power-gated state, the power supply is disconnected from the component by, for example, using a header transistor, which interrupts the power supplied to the component when a power gating signal is applied to the gate of the header transistor. The idle and power-gated states may be referred to as sleep states, and multiple levels of sleep states may be implemented by a processing device. In at least some specific implementations, when in the lowest (shallowest) sleep state level, the component of the processing device consumes less power than when operating in the active state, but consumes more power than the next higher (deeper) sleep state level. When a component is placed in the highest (deepest) sleep state level, the component is typically power gated.
[0014] When there is no activity to be performed by the components of the processing device, the processing device can save power by converting one or more components from the active state to the sleep state. For example, if the component is idle for a relatively long time, the power supplied to the component can be gated, thereby reducing standby and leakage power consumption. However, the conversion of the processing device or its components between different sleep states has an important impact on the energy consumed by the processing device and the performance of the processing device. For example, the delay caused by the transition from the active state or the deeper sleep state level to the sleep state or from the sleep state imposes a performance cost. Due to the operation to be performed before the transition, energy costs may also be brought. Returning the processor core from the deep sleep level state to the active state also brings performance costs, in which the components are power-gated. Therefore, only when the component resides in the deeper sleep state long enough to make the power saving associated with the deeper sleep state exceed the power consumed during the transition to the deeper sleep state / from the deeper sleep state, the deeper sleep state is more effective than the shallower sleep state.
[0015] Sleep state management system / algorithm can benefit from determining the appropriate sleep state level based on the energy performance balance cost of sleep duration. However, a priori knowledge of how long the component sleep duration will be is usually unavailable. Therefore, many conventional sleep state management systems attempt to filter too short sleep duration by introducing a hysteresis duration before saving the state of the component placed in the sleep state. Introducing the hysteresis duration usually leads to energy inefficiency because the hysteresis duration is usually too long (e.g., millisecond level). The sleep duration of many types of workloads is usually in the sub-millisecond range, and occasionally longer sleep durations continue in the millisecond range. Therefore, long entry hysteresis causes shorter sleep durations (e.g., sub-milliseconds) to be ignored, and enters a deeper sleep state (zero entry hysteresis) for each single sleep request. In addition, conventional sleep state management systems usually have many tunable parameters, non-adaptive methods for sleep state entry, lack a framework for future improvement / extension, and can be controlled by an operating system power management algorithm. All these characteristics further increase the inefficiency of conventional sleep state management systems.
[0016] The present disclosure describes embodiments of systems and methods for improving the energy efficiency of a processing device by directly converting a component into a deeper sleep state instead of consuming energy in a hysteresis cycle. As described in more detail below, the sleep state duration of a processing device and its components is monitored and recorded to generate historical sleep state duration information. The historical sleep duration information is used to predict the upcoming sleep state duration of the component. A break-even duration is determined for one or more sleep states available to the component. The break-even duration indicates a sleep state duration at which the benefit of converting to a sleep state exceeds the cost of converting to a sleep state. The predicted sleep duration is compared with the break-even duration determined for one or more sleep states, and the sleep state of the component is selected based on the comparison. Then, the component is converted to the selected sleep state. In at least some embodiments, if the component has been resident in the current sleep state for a duration that satisfies one or more sleep state duration thresholds, the current sleep state of the component is promoted to a deeper sleep state. In at least some embodiments, a decision error feedback mechanism is implemented to adjust the subsequently predicted sleep duration to reduce errors in sleep state selection based on this. Additionally, in at least some embodiments, in addition to the predicted sleep duration, information such as a wait time tolerance report (LTR) value from an input / output device (e.g., a peripheral component interconnect express (PCIe) device, a universal serial bus (USB) device, etc.) or a timer value of an advanced programmable interrupt controller (APIC) interrupt is used to select the sleep state of a component.
[0017] Figure 11 is a block diagram of an exemplary processing device 100 in which the power state management techniques described herein may be implemented. In at least some embodiments, the processing device 100 includes, for example, a computer, a mobile device, a gaming device, a tablet computing device, a wearable computing device, a set-top box, a television, or another type of computing system or device. In at least some embodiments, the processing device 100 includes a processor 102, a memory 104, a storage device 106, one or more input devices 108, and one or more output devices 110. In at least some embodiments, the processing device 100 also includes an input driver 112 and an output driver 114. It should be understood that the processing device 100 may include Figure 1 Additional components not shown.
[0018] In at least some embodiments, processor 102 includes a central processing unit (CPU), a graphics processing unit (GPU), a CPU and a GPU on the same die or multiple dies (e.g., using a multi-chip module (MCM)), or one or more processor cores, where each processor core is a CPU or a GPU. In at least some embodiments, memory 104 is located on the same die as processor 102 or is located separately from processor 102. Memory 104 includes volatile or non-volatile memory, such as random access memory (RAM), dynamic RAM, cache, etc.
[0019] In at least some embodiments, the storage device 106 includes a fixed or removable storage device, such as a hard drive, a solid-state drive, an optical disk, a flash drive, etc. In at least some embodiments, the input device 108 includes, for example, one or more of a keyboard, a keypad, a touch screen, a trackpad, a detector, a microphone, an accelerometer, a gyroscope, a biometric scanner, a network connection (e.g., a wireless LAN card for transmitting / receiving wireless signals), etc. In at least some embodiments, the output device 110 includes, for example, one or more of a display, a speaker, a printer, a tactile feedback device, one or more lights, an antenna, or a network connection (e.g., a wireless LAN card for transmitting / receiving wireless signals), etc.
[0020] In at least some embodiments, the input driver 112 communicates with the processor 102 and the input device 108 and allows the processor 102 to receive input from the input device 108. In at least some embodiments, the output driver 114 communicates with the processor 102 and the output device 110 and allows the processor 102 to send output to the output device 110. It is noted that if the input driver 112 and the output driver 114 are not present, the processing device 100 operates in the same manner. In at least some embodiments, the output driver 114 includes an accelerated processing device (APD) 116 coupled to the display device 118. The APD accepts computational commands and graphics rendering commands from the processor 102, processes these computational commands and graphics rendering commands, and provides pixel output to the display device 118 for display. As described in detail below, the APD 116 includes one or more parallel processing units that perform computations according to a single instruction multiple data (SIMD) paradigm. Thus, while various functions are described herein as being performed by or in conjunction with APD 116, in other embodiments, the functions described as being performed by APD 116 are additionally or alternatively performed by other computing devices with similar capabilities that are not driven by a host processor (e.g., processor 102) and that provide graphical output to display device 118. For example, in at least some embodiments, any processing system that performs processing tasks according to the SIMD paradigm performs the functions described herein. Alternatively, in at least some embodiments, a computing system that does not perform processing tasks according to the SIMD paradigm performs the functions described herein.
[0021] Figure 2 1 is a block diagram of processing device 100, showing additional details related to executing processing tasks on APD 116. In at least some embodiments, processor 102 maintains one or more control logic modules in memory 104 for execution by processor 102. In at least some embodiments, the control logic modules include operating system 202, kernel mode driver 204, and application 206. These control logic modules control various features of the operation of processor 102 and APD 116. For example, operating system 202 communicates directly with hardware and provides an interface to the hardware for other software executing on processor 102. Kernel mode driver 204 controls the operation of APD 116 by, for example, providing an application programming interface (API) to software executing on processor 102 (e.g., application 206) to access various functions of APD 116. In at least some embodiments, kernel mode driver 204 also includes a just-in-time compiler that compiles programs for execution by processing components of APD 116 (such as SIMD unit 210 discussed in detail below).
[0022] In at least some embodiments, APD 116 executes commands and programs for selected functions, such as graphics operations and non-graphics operations that may be suitable for parallel processing. In at least some embodiments, APD 116 is used to perform graphics pipeline operations (e.g., pixel operations, geometric calculations, etc.) and present images to display device 118 based on commands received from processor 102. APD 116 also performs computational processing operations not directly related to graphics operations, such as operations related to video, physics simulations, computational fluid dynamics, or other tasks, based on commands received from processor 102.
[0023] In at least some embodiments, the APD 116 includes a computing unit 208 (shown as 208-1 to 208-3), which includes one or more SIMD units 210 (shown as 210-1 to 210-6), which perform operations in parallel at the request of the processor 102 according to the SIMD paradigm. The SIMD paradigm is a paradigm in which multiple processing elements share a single program control flow unit and program counter and execute the same program, but with different data. In one example, each SIMD unit 210 includes sixteen channels, each of which executes the same instruction simultaneously with other channels in the SIMD unit 210, but can execute the instruction with different data. If not all channels are to execute a given instruction, the channel can be closed by prediction. Prediction can also be used to execute programs with divergent control flow. More specifically, for programs with conditional branches or other instructions in which the control flow is based on calculations performed by a single channel, channels corresponding to control flow paths that are not currently executed are predicted, and serial execution of different control flow paths can achieve arbitrary control flow.
[0024] In at least some embodiments, the basic execution unit in the computing unit 208 is a work item. Each work item represents a single instantiation of a program to be executed in parallel in a specific channel. In at least some embodiments, the work items are executed simultaneously as a "wavefront" on a single SIMD processing unit 210. One or more wavefronts are included in a "workgroup", which includes a collection of work items that are specified to execute the same program. The workgroup is executed by executing each of the wavefronts that constitute the workgroup. In other embodiments, the wavefronts are executed sequentially on a single SIMD unit 210, or partially or completely in parallel on different SIMD units 210. In at least some embodiments, the wavefront represents the maximum set of work items that can be executed simultaneously on a single SIMD unit 210. Therefore, if the command received from the processor 102 indicates that a specific program is to be parallelized to the extent that the program cannot be executed simultaneously on a single SIMD unit 210, the program is divided into wavefronts that are parallelized on two or more SIMD units 210 or serialized (or parallelized and serialized) on the same SIMD unit 210. Scheduler 212 performs operations involving scheduling the various wavefronts across different compute units 208 and SIMD units 210 .
[0025] In at least some embodiments, the parallelism provided by the compute units 208 is suitable for graphics-related operations, such as pixel value calculations, vertex transformations, and other graphics operations. Thus, in some examples, the graphics pipeline 214, which accepts graphics processing commands from the processor 102, provides computing tasks to the compute units 208 for parallel execution.
[0026] In at least some embodiments, compute unit 208 is also used to perform computational tasks that do not involve graphics or are not performed as part of the "normal" operation of graphics pipeline 214 (e.g., custom operations performed to supplement the processing performed for the operation of graphics pipeline 214). Applications 206 or other software executing on processor 102 send programs defining such computational tasks to APD 116 for execution.
[0027] Figure 3 is a block diagram illustrating another example of a processing device 300 in which the power management techniques described herein may be implemented. Figure 3In the example shown, the processing device 300 is a system on chip (SoC) device 300. In at least some embodiments, the SoC device 300 includes components such as a data fabric 302, a CPU core complex 304, a GPU 306, a multimedia processing unit (MPU) 308, a display interface 310, an I / O hub 312, a memory controller 314, and a system management unit (SMU) 316. In at least some embodiments, one or more of these and other components include an intellectual property (IP) block / core, which is a reusable unit of logic, battery, or integrated circuit (IC) layout.
[0028] In at least one embodiment, the data texture 302 includes circuits for providing communication interconnections between various components of the SoC device 300. Any suitable interconnection hardware is used in various specific implementations. In some specific implementations, from a physical point of view, the data texture 302 is implemented in a central location of the SoC device, or distributed across the SoC device 300 to multiple hubs and interconnected using a suitable communication medium (e.g., a bus). From a logical point of view, the data texture 302 is located at the center of the data flow, and information about the idleness of different components (including IP blocks) of the SoC device 300 is centralized (e.g., stored) in the data texture 302. In some embodiments, this information is used by the SMU 316 to determine the appropriate time to transition one or more components of the Soc device 300 to a power management state (such as a sleep state).
[0029] In at least some embodiments, CPU core complex 304 includes one or more suitable CPU cores. In at least some embodiments, each of the cores in the complex includes a dedicated cache, and all cores in the complex communicate with a shared cache. In at least some embodiments, SoC device 300 includes multiple CPU core complexes. In at least some embodiments, GPU 306 includes any suitable GPU or combination of GPU hardware. In at least some embodiments, MPU 308 includes one or more suitable MPUs, such as audio coprocessors, imaging signal processors, video codecs, etc.
[0030] In at least some embodiments, the display interface 310 includes any suitable hardware for driving one or more displays. In at least some embodiments, the I / O hub 312 includes any suitable hardware for engaging the data texture 302 with the I / O device 318. In at least some embodiments, the I / O device 318 includes a universal serial bus (USB), a high-speed peripheral component interconnect (PCIe) bus, a non-volatile memory host controller interface (NVMe) bus, a serial advanced technology attachment (SATA) bus, a Gigabit Ethernet (xGBE), an inter-integrated circuit (I2C) bus, a secure digital (SD) interface, a general-purpose input / output (GPIO) connection, a sensor fusion I / O connection, and / or any other suitable I / O hardware. One or more. Therefore, in at least some embodiments, the I / O hub 312 includes a USB host controller, a PCIe root complex, an NVMe host controller, a SATA host controller, an xGBE interface, an I2C node, an SD host, a GPIO controller, a sensor fusion controller, and / or any other suitable I / O device interface.
[0031] In at least some embodiments, the memory controller 314 includes any suitable hardware for interfacing with the memory 320. In at least some embodiments, the SMU 316 includes hardware and firmware for managing and accessing system configuration / status registers and memory, generating clock signals, controlling power rail voltages, and implementing security access and policies for the SoC device 300. In at least some embodiments, the SMU 316 is interconnected with other blocks of the SoC device 300 using a system management communication network (not shown). In at least some embodiments, the SMU 316 also manages thermal and power conditions of the CPU core complex 304 and other components (including individual IP blocks) of the SoC device 300. Thus, the SMU 316 is capable of controlling the power supplied to components and subcomponents of the SoC device (such as the core and IP blocks of the CPU core complex 304). In at least some embodiments, the SMU 316 is also configured to adjust the operating point of a SoC component (e.g., a core of the CPU core complex 304) by changing the operating frequency or operating voltage supplied to the component.
[0032] In at least some embodiments, the SMU 316 is configured to transition a component of the SoC device 300 to / from one or more power management states. It should be noted that throughout this specification, reference to transitioning a component of the SoC device 300 to / from one or more power management states includes transitioning the entire SOC device 300, an entire component (such as a CPU core complex 304, a GPU 306, an MPU 308, an I / O hub 312, etc.), or a subcomponent of a component (such as a core or IP block of the CPU core complex 304). Examples of power management states include an active state and one or more sleep states, such as an idle and power-gated state. Sleep states may also be referred to as low power or lower power states. In an active state, a component executes instructions and operates at a nominal operating frequency and operating voltage. In a sleep state, a component typically does not execute instructions or operate on instructions, and may operate at a lower operating frequency / voltage. A component may also be power-gated in a sleep state so that the power supply is disconnected from the component. For example, SMU 316 sends a signal or instruction to a gate logic connected to a power supply. In this example, the gate logic controls the power supplied to the component and gates the power by disconnecting one or more circuits to interrupt the flow of current to the component. In at least some embodiments, multiple levels of sleep states are implemented. As the sleep state level increases, the power consumed by the component is less than the previous sleep state level. The lowest sleep state level can be referred to as the shallowest sleep state, and the highest sleep state level can be referred to as the deepest sleep state. Compared with a deeper (higher power) sleep state, a shallower sleep state is a lower power sleep state. By transitioning a component to one or more sleep states, power can be saved.
[0033] Although deeper sleep states can save more power than shallower sleep states, deeper sleep states generally impose performance and power penalties in the duration of the transition. For example, consider a set of sleep states S = {S1, S2, S3, ..., Sn), where Sn is the deepest sleep state supported by the platform. For a component to enter the third sleep state S3, due to the logical sequence of powering off the component and its subcomponents, the component generally first enters the first sleep state S1, and then transitions to the second sleep state S2 before entering the third sleep state S3. Similarly, in order to transition from the third sleep state S3 to the active state, the component will generally sequentially transition from the third sleep state S3 to the second sleep state S2, and then transition from the second sleep state S2 to the first sleep state S1 before entering the active state. Entering each of these sequential sleep states consumes time and power. In more detail, the transition to and from each sleep state involves various actions to be taken by SMU316, which requires additional time and power to perform such transitions. A deeper sleep state requires a greater number of (or more resource-intensive) actions to enter and exit than a shallower sleep state. In addition, a deeper sleep state typically takes longer to recover to an active / working state than in a shallower sleep state, and thus incurs a greater latency penalty.
[0034] In at least some embodiments, SMU 316 implements a fast sleep state transition mode for converting components into sleep states. As described in more detail below, SMU 316 selects the sleep state of the components of SoC device 300 based on the predicted sleep state duration and the determined break-even duration, and the benefit of converting to the sleep state during the break-even duration exceeds (or at least equals) the cost of converting to the sleep state. SMU 316 compares the predicted sleep duration with the break-even duration of one or more sleep states. Based on this comparison, SMU 316 determines whether the residence of the component in the deeper sleep state is long enough to make the power savings associated with the deeper sleep state exceed (or at least equal to) the power consumed during the transition from the deeper sleep state to the deeper sleep state in the case of entering and exiting the transition to the deeper sleep state / from the deeper sleep state. The deeper sleep state is more effective than the shallower sleep state. If the predicted sleep duration meets the determined break-even duration of the deeper sleep state, SMU 316 converts the component into a deeper sleep state. However, if the predicted sleep duration does not meet the determined break-even duration for the deeper sleep state, the SMU 316 transitions the component to the lighter sleep state.
[0035] Thus, the fast sleep state mode of SMU 316 improves the energy efficiency of the device because SMU 316 can directly transition components into a deeper sleep state rather than consuming energy in entering a hysteresis cycle. In at least some embodiments, the fast sleep state transition mode can be enabled or disabled by a hardware or software component of the SoC device 300 or another device connected to the SoC device 300. If the fast sleep state transition mode is disabled, conventional power state management operations can be implemented by SMU 316. In at least some embodiments, a bit can be stored in a register (such as a model specific register (MSR)) to notify other hardware, software, or an operating system whether the fast sleep state transition mode is enabled or disabled.
[0036] Figure 4 316 is a block diagram showing a more detailed view of SMU 316 according to at least some embodiments. Note that while SMU 316 is described herein as being implemented by SoC device 300, SMU 316 may also be implemented by Figure 1 The processing device 100 is implemented. Figure 4 In the example shown, the SMU 316 includes a monitoring module 402, a sleep duration prediction module 404, a sleep state selection module 406, a sleep state promotion module 408, a decision error feedback module 410, and one or more storage devices 412. Note that in at least some embodiments, one or more of these components are implemented in another component of the SoC device 300 (or processing device 100) that is different from the SMU 316 (such as a central microcontroller, a separate IP management controller, etc.).
[0037] In at least some embodiments, the monitoring module 402 monitors and records the sleep state duration of the components of the SoC device 300. In at least some embodiments, the sleep state duration (τ) of the component is defined as the time (duration) between the SMU 316 receiving the lowest level sleep state (e.g., sleep state S0) interrupt and receiving any wake-up event of the component. In other words, the sleep state duration of the component is the time between the initiation of the first transition (which may include entry hysteresis) during the transition of the component from the active state to the sleep state and the initiation of the second transition during the transition of the component from the sleep state back to the active state. It should be noted that in other embodiments, different parameters are used to define the sleep state duration. In at least some embodiments, the monitoring module 402 uses one or more internal timers to record the sleep state duration of the component.
[0038] In at least some embodiments, the monitoring module 402 records / stores the sleep state duration as historical duration information 414 in one or more storage devices 412. In at least some embodiments, the one or more storage devices 412 reside locally within the SMU 316, remote from the SMU 316, or a combination thereof. In at least some embodiments, the historical duration information 414 is stored at a device level, a component level, a subcomponent level, a combination thereof, and the like. If the historical duration information 414 is recorded and stored at the device level, entries for the past n sleep state durations across all components of the SoC device 300 are stored. For example, if n=32, then in this example, the historical duration information 414 includes entries for the previous 32 sleep state durations associated with any one of the components of the SoC device 300. If the historical duration information 414 is recorded and stored at the component or subcomponent level, each component or subcomponent is associated with its own historical duration entry. For example, if n=32, then in this example, historical duration information 414 includes entries for the previous 32 sleep durations for the first component, entries for the previous 32 sleep state durations for the second component, etc. In at least some embodiments, each component or subcomponent is associated with a separate data structure that includes historical duration information 414 associated therewith. In at least some embodiments, the number of previous sleep state durations recorded by monitoring module 402 is configurable.
[0039] In at least some embodiments, the sleep duration prediction module 404 uses the historical duration information 414 to predict the duration of an upcoming sleep state. For example, if the SMU 316 determines that a given component is idle, the sleep duration prediction module 404 processes the historical duration information 414 to predict the duration of an upcoming sleep state for the component. In at least some embodiments, the sleep duration prediction module 404 stores the predicted sleep state duration 416 in one or more storage devices 412.
[0040] In at least some embodiments, the sleep state selection module 406 determines the appropriate sleep state of the components of the SoC device 300. In at least some embodiments, the sleep state selection module 406 selects a sleep state from a plurality of sleep states that results in the least amount of energy being consumed while having the least performance impact (referred to herein as a selection criterion). In at least some embodiments, the sleep state selection module 406 identifies a sleep state that meets the selection criteria based on a predicted sleep state duration 416 and a sleep state breakeven duration 418 (also referred to as a breakeven duration 418 or a breakeven threshold 418). The breakeven duration 418 of the sleep state indicates the amount of time the component will stay in the sleep state, such that the energy saved by staying in the sleep state is at least equal to the energy cost of transitioning into and out of the sleep state. For example, the breakeven duration 418 of sleep state S2 indicates the amount of time the component will stay in sleep state S2, such that the energy saved by staying in sleep state S2 is at least equal to the energy cost of transitioning into and out of sleep state S2.
[0041] In at least some embodiments, the sleep state selection module 406 stores the breakeven duration 418 in one or more storage devices 412. In at least some embodiments, the sleep state selection module 406 also uses latency tolerance information 420 associated with one or more input / output devices 318 (e.g., PCIe devices, USB devices, etc.), APIC interrupt timer values, or a combination thereof to select a sleep state for the component. In at least some embodiments, the latency tolerance information 420 indicates a busy level of the input / output device 318. The APIC interrupt timer value indicates the time to the next APIC interrupt. When a sleep state has been selected, the SMU 316 continues to transition the component to the selected sleep state by performing one or more actions (e.g., flushing caches, clock gating to power down voltage rails, etc.).
[0042] In at least some embodiments, if it is determined that an incorrect (less efficient) sleep state is selected by the sleep state selection module 406, the sleep state promotion module 408 performs corrective action. For example, the sleep state promotion module 408 monitors the component while in the selected sleep state and determines whether the component has resided in the selected sleep state longer than a given threshold. If so, in at least some embodiments, the sleep state promotion module 408 transitions the component to the next deeper sleep state.
[0043] In at least some embodiments, the decision error feedback module 410 monitors the sleep state decisions made by the sleep state selection module 406 to detect errors. Examples of detected errors include selecting a lighter sleep state when a deeper sleep should be selected, or selecting a deeper sleep state when a lighter sleep state should be selected. Incorrect sleep state selections are, for example, the result of incorrect sleep duration predictions. Therefore, in at least some embodiments, the decision error feedback module 410 provides input to the sleep duration prediction module 404 so that the sleep duration prediction module 404 adjusts its subsequent sleep duration predictions to reduce sleep state selection errors.
[0044] Figure 5 An overview of an exemplary method 500 for improving the energy efficiency of a processing device by directly transitioning a component to a deeper sleep state rather than consuming energy in a hysteresis cycle is shown in flowchart form. At box 502, the monitoring module 402 monitors the sleep state duration of a component of the SoC device 300. At box 504, the sleep duration prediction module 404 predicts the sleep duration of the component of the SoC device 300 to transition to the sleep state. At box 506, the sleep state selection module 406 selects the sleep state of the component based on the predicted sleep duration. At box 508, the SMU 316 transitions the component to the selected sleep state. In at least some embodiments, at box 510, the sleep state promotion module 408 promotes the current sleep state of the component to a deeper sleep state.
[0045] Figure 6 The flowchart shows the Figure 5 An example of a more detailed method 600 of a sleep state duration monitoring process shown in block 502 of . In at least some embodiments, the monitoring module 402 is called based on a determination that a component of the SoC device 300 is to be transformed into a sleep state (block 602). For example, the SMU 316 receives or detects an interrupt indicating that one or more components of the SoC device 300 are idle. At block 604, one or more timers are initialized based on a determination that the component is to be transformed into a sleep state. At block 606, a determination is made as to whether a wake-up event of a component has been detected / received. If a wake-up event has not been detected, the monitoring module 402 maintains the timer until a wake-up event is detected. If a wake-up event of a component has been detected, the timer is stopped at block 608. In at least some embodiments, the recorded time between the SMU 316 receiving the sleep state request interrupt and receiving the wake-up event of the component is referred to as the sleep state duration of the component. However, other configurations of the sleep duration are also applicable.
[0046] In at least some embodiments, if the sleep state of the component is a deeper sleep state, the sleep state duration includes not only the duration that the component resides in the deeper sleep state, but also the time it takes for the component to transition through a shallower sleep state. For example, consider a list of sleep states S = (S1, S2, ..., Sn), where Sn is the deepest sleep state supported by the components of the SoC device 300. Due to the logical sequence of powering off the components or their subcomponents, the components usually enter the first sleep state S1 before entering the deeper sleep state S2. Therefore, if sleep state S2 is selected for the component, the sleep state duration of the component includes the time the component resides in sleep state S2 and the time it takes for the component to transition from the active state through each shallower state. In at least some embodiments, the sleep state is associated with entry hysteresis. In these embodiments, the sleep state duration of the component also includes the hysteresis wait time of the sleep state.
[0047] Figure 7 An illustrative example of timing for transitioning components of the SoC device 300 into a first sleep state (SLEEP1) and a deeper second sleep state (SLEEP2) is shown. In particular, Figure 7 A first timing sequence 702 for transitioning a component into a first sleep state and a second timing sequence 704 for transitioning a component into a deeper second sleep state are shown. Figure 7 In the example shown, H corresponds to the entry hysteresis wait time, which is the delay period before the component transitions from the active state to the target sleep state; T corresponds to the entry and exit wait time, which is the time it takes to transition the component from one state to another; and S corresponds to the duration that the component resides in the target sleep state. Figure 7 In the example shown, the timing sequence 702 of the first sleep state SLEEP1 includes entering a hysteresis wait time 706 (H Sleepl ), enter the waiting time 708 (T Sleepl,entry ), sleep duration 710 (S Sleep1,sleep ) and exit wait time 712 (T Sleep1,exit ). Therefore, in this example, the sleep state duration τ of the first sleep state is defined as:
[0048] (Equation 1) τ = H sleep1 +T sleep1,entry +S sleep1,sleep
[0049] The timing sequence 704 of the second sleep state SLEEP2 includes a first sleep state entry hysteresis wait time 706 (H Sleep1 ), the first sleep state entry waiting time 708 (T Sleep1,entry), the waiting time for entering the second sleep state 714 (T S1eep2,entry ), the sleep duration of the second sleep state 716 (S Sleep2,sleep ), the exit waiting time 718 of the second sleep state (T sleep2,exit ) and the exit waiting time 712 (T sleep1,exit ). Therefore, in this example, the sleep state duration τ of the second sleep state is defined as:
[0050] (Equation 2) τ = H sleep1 +T sleep1,entry +T sleep2,entry +S sleep2,sleep
[0051] Now return to Figure 6 At block 610, the monitoring module 402 records the sleep state duration determined for the component as historical duration information 414. As described above, in at least some embodiments, the historical duration information 414 is stored at a device level, a component level, a sub-component level, a combination thereof, or the like. In at least some embodiments, if the historical duration information 414 is recorded on a per-component or sub-component basis, the component or sub-component communicates its busy / idle status to the SMU 316. Recording the duration information 414 on a per-component basis allows the SMU 316 to optimize the power of a component cluster based on the idle mode of a component (such as a multimedia core).
[0052] Figure 8 The flowchart shows the Figure 5504 of . In at least some embodiments, the sleep duration prediction module 404 is called based on making a determination that a component of the SoC device 300 is to transition to a sleep state (block 802). At block 804, historical duration information 414 is obtained. In at least some embodiments, the historical duration information 414 of the entire SoC device 300 is obtained, while in other embodiments, the historical duration information 414 of the component is obtained. At block 806, the historical duration information 414 is processed using one or more techniques such as median calculation, moving average or other statistical measure, machine learning, a combination thereof, etc. Then, at block 808, the upcoming sleep state duration 416 of the component is predicted based on the processing of the historical sleep state duration information. For example, consider the historical duration D = {D1, D2, D3, ..., DL}, where Di represents the duration of the i-th sleep in seconds, and L is the total number of recorded sleep durations. In this example, the sleep duration prediction module 404 predicts the upcoming sleep state duration 416 of the component by calculating D_median=median (D) and sends it to the sleep state selection block 506 to decide the appropriate sleep state. The predicted sleep state duration 416 is then stored or transmitted for use by or to the sleep state selection module 406, for example.
[0053] In at least some embodiments, the SMU 316 implements an error feedback module 410 that provides input to the sleep duration prediction module 404. In these embodiments, in addition to the historical duration information 414, the sleep duration prediction module 404 uses feedback input from the error feedback module 410 to predict an upcoming sleep state duration 416 for the component. In at least some embodiments, the error feedback module 410 monitors the number of incorrect sleep state selections made by the sleep state selection module 406 based on the predicted sleep state duration 416. In one example, when a deeper sleep state is selected, the sleep state selection is determined to be incorrect, but the actual sleep state duration of the component is such that a lighter sleep state should have been selected. In another example, when a lighter sleep state is selected, the sleep state selection is incorrect, but the actual sleep state duration of the component is such that a deeper sleep state should have been selected. The error feedback module 410 implements one or more mechanisms (such as a proportional-integral-derivative (PID) controller) to provide input (such as a correction) to the sleep duration prediction module 404. Sleep duration prediction module 404 implements input received from error feedback module 410 to adjust its prediction operation to provide a more accurate predicted sleep state duration 416. For example, sleep duration prediction module 404 uses feedback input to adjust one or more parameters used to predict sleep state durations of components of SoC device 300.
[0054] Fig. 9 The flowchart shows the Figure 5 506 of the sleep state selection process. In the method 900, at block 902, a break-even duration 418 is determined for one or more sleep states available to a component of the SoC device 300. As described above, the break-even duration 418 for a given sleep state is the amount of time that the component is to stay in the sleep state so that the energy saved by staying in the sleep state is at least equal to the energy consumed by only transitioning to and staying in a shallower sleep state. In at least some embodiments, the energy of a given sleep state is determined not only based on the given sleep but also based on any lower-level sleep states. For example, consider a list of sleep states S=(S1, S2, ..., Sn), where Sn is the deepest sleep state supported by a component of the SoC device 300. As described above, due to the logical sequence of powering a component or its subcomponents, the component typically enters the first sleep state S1 before entering sleep state S2. Therefore, in this example, the energy of sleep state S2 is calculated based on (1) the energy required to enter sleep states S1 and S2; (2) the energy required to stay in sleep states S1 and S2; and (3) the energy required to exit sleep states S1 and S2.
[0055] For example, return to see Figure 7 , for a given (predicted) sleep state duration τ, the sleep state selection module 406 determines the energy (E) of the sleep state SLEEP1 sequence 702 and the SLEEP2 sequence 704 as follows:
[0056] (Equation 3)
[0057] E sleep1 =(H sleep1 ·P sleep0 )+(T sleep1,entry ·P sleep1,entry )+((τ-(H sleep1 +T sleep1,entry ))·P sleep1 )+(T sleep1,exit ·P sleep1,exit )
[0058] Where P sleep is the power consumed when residing in the corresponding sleep state, P entry is the power consumed during sleep state, and P exit is the power consumed during exit from sleep state.
[0059] (Equation 4)
[0060] E sleep2 =(H sleep1 ·P sleep0 )+(T sleep1,entry ·P sleep1,entry )+(T sleep2,entry ·P sleep2,entry )+(τ-(H sleep1 +T sleep1,entry +T sleep2,entry ))·P sleep2 +(T sleep2,exit ·P sleep2,exit )+(T sleep1,exit ·P sleep1,exit )
[0061] The sleep state selection module 406 determines a break-even duration 418 for a given sleep state based on the energy E calculated for the sleep state and one or more lighter sleep states. For example, in at least some embodiments, when the energy E of the sleep state is equal to the energy of one or more previous sleep states, the sleep state selection module 406 determines the break-even duration 418 for the given sleep state to be τ * Therefore, in the current example, when E sleep1 =E s1eep2 When , the sleep state selection module 406 converts the break-even duration (τ) of the sleep state SLEEP2 into *)418 is calculated as τ * Values:
[0062] (Equation 5)
[0063]
[0064] Now return to Fig. 9 At box 904, the predicted sleep state duration 416 of the component is compared to the break-even duration 418 determined for one or more of the sleep states available to the component. At box 906, a sleep state is selected based on this comparison. In at least some embodiments, the deepest sleep state is selected so that the predicted sleep state duration 416 of the component meets the break-even duration 418 of the selected sleep state. For example, consider a first sleep state and a deeper second sleep state. In this example, the break-even duration / threshold 418 of the second sleep state is 1.5 milliseconds. Therefore, if the predicted sleep state duration 416 of the component is equal to, or in other embodiments is greater than, 1.5 milliseconds, the sleep state selection module 406 selects the deeper second sleep state of the component. However, if the predicted sleep state duration 416 of the component is less than, and in other embodiments is equal to, 1.5 milliseconds, the sleep state selection module 406 selects the shallower first sleep state of the component. Once a sleep state for the component has been selected, control flows to Figure 5 508 of the control module to cause the component to transition to the selected sleep state.
[0065] In at least some embodiments, the sleep state selection module 406 uses the latency tolerance information 420 of the input / output device 318 when selecting the sleep state of the component. In at least some embodiments, the latency tolerance information 420 includes a value indicating the busy level of the associated input / output device 318. In one example, a longer value indicates idle, while a shorter value indicates that the input / output device 318 is active. In some embodiments, the latency tolerance information 420 is exposed to the sleep state selection module 406 via one or more registers. In addition to the latency tolerance information 420, in at least some embodiments, an advanced programmable interrupt controller (APIC) value is used by the sleep state selection module 406 when making a sleep state selection. There are multiple APIC timers that issue interrupts to wake up the processor when they expire. The APIC timer value available to the sleep state selection module 406 indicates the time to the next APIC interrupt. Therefore, in at least some embodiments, the sleep state selection module 406 monitors the upcoming mandatory timer interrupt to determine whether the initial sleep state selection should be updated. For example, if the sleep state selection module 406 initially selects a deeper sleep state, but the latency tolerance information 420 indicates an active input / output device 318 or an APIC value indicates an interrupt is to be issued within a given time threshold, the sleep state selection module 406 updates its sleep state selection to a lighter sleep state.
[0066] Fig.10 The flowchart shows the Figure 5 510 of the sleep state promotion process. In method 1000, at block 1002, one or more sleep state promotion attributes are determined for the sleep state of the component. For example, the amount of time the component has been in the selected sleep state (current sleep state duration) is determined. In at least some embodiments, the sleep state promotion module 408 uses one or more timers to determine the current sleep state duration of the component. In another example, the percentage or number of long sleep durations within the historical duration information 414 is identified. In at least some embodiments, the long sleep duration is a sleep duration that exceeds a given sleep duration threshold. At block 1004, the one or more sleep state promotion attributes are compared to the sleep state promotion criteria. At block 1006, it is determined whether the one or more sleep state promotion attributes meet the sleep state promotion criteria. For example, a determination is made whether the current sleep state duration of the component is greater than or equal to a threshold amount of time. In another example, a first determination is made whether the current sleep state duration of the component is greater than or equal to a threshold amount of time, and a second determination is made whether the percentage / number of long sleep durations is greater than or equal to a threshold percentage / number.
[0067] If one or more sleep state promotion attributes do not satisfy the sleep state promotion criteria, then at block 1008 the current sleep state is maintained (i.e., the sleep state is not promoted). Control then flows to block 1012. However, if one or more sleep state promotion attributes satisfy the sleep state promotion criteria, then at block 1010 the component is transitioned from the current sleep state to at least the next deeper sleep state. At block 1012, a determination is made as to whether a wake-up event for the component has been detected. If a wake-up event for the component has not been detected, then control flows back to block 1002. However, if a wake-up event has been detected, then at block 1014 the sleep state promotion mode for the component is exited.
[0068] The power management techniques described herein improve the energy efficiency of processing devices by transitioning components directly into deeper sleep states rather than consuming energy in entering hysteresis cycles. Various embodiments described herein implement fewer tunable parameters to reduce post-silicon time / complexity, provide increased performance across a range of workloads through workload adaptation, allow future expansion / improvement by making the sleep state prediction system / algorithm modular, and free the prediction system / algorithm from operating system prompts.
[0069] In some embodiments, the above-mentioned apparatus and technology are implemented in a system including one or more integrated circuit (IC) devices (also referred to as integrated circuit packages or microchips). In at least some embodiments, electronic design automation (EDA) and computer-aided design (CAD) software tools are used for the design of standard batteries and the design and manufacture of IC devices that implement standard batteries. These design tools are generally represented as one or more software programs. One or more software programs include codes that can be executed by a computer system to manipulate the computer system to operate the code representing the circuit of one or more IC devices to perform at least a part of the process for designing or adjusting the manufacturing system to manufacture the circuit. In at least some embodiments, the code includes instructions, data, or a combination of instructions and data. Software instructions representing design tools or manufacturing tools are generally stored in a computer-readable storage medium accessible to a computing system. Similarly, in at least some embodiments, codes representing one or more stages of the design or manufacture of IC devices are stored in the same computer-readable storage medium or different computer-readable storage media and accessed therefrom.
[0070] In at least some embodiments, the computer-readable storage medium may include any non-transitory storage medium or combination of non-transitory storage media that can be accessed by a computer system during use to provide instructions and / or data to the computer system. In at least some embodiments, such storage media include, but are not limited to, optical media (e.g., compact disks (CDs), digital versatile disks (DVDs), Blu-ray disks), magnetic media (e.g., floppy disks, tapes, or magnetic hard drives), volatile memory (e.g., random access memory (RAM) or cache), non-volatile memory (e.g., read-only memory (ROM) or flash memory), or storage media based on microelectromechanical systems (MEMS). In at least some embodiments, the computer-readable storage medium is embedded in a computing system (e.g., system RAM or ROM), fixedly attached to a computing system (e.g., a magnetic hard drive), removably attached to a computing system (e.g., an optical disk or a flash memory based on a universal serial bus (USB)), or coupled to a computer system via a wired or wireless network (e.g., a network accessible storage device (NAS)).
[0071] In some embodiments, some aspects of the above-mentioned technology are implemented by one or more processors of a processing system that executes software. Software includes one or more sets of executable instructions, which are stored in or otherwise tangibly embodied on a non-transient computer-readable storage medium. In at least some embodiments, the software includes instructions and certain data, which manipulate one or more processors to perform one or more aspects of the above-mentioned technology when executed by one or more processors. In at least some embodiments, non-transient computer-readable storage media include, for example, disk or optical disk storage devices, solid-state storage devices such as flash memory, cache memory, random access memory (RAM) or other one or more non-volatile memory devices, etc. In at least some embodiments, the executable instructions stored on the non-transient computer-readable storage medium are source code, assembly language code, object code, or other instruction formats interpreted or otherwise executed by one or more processors.
[0072] It should be noted that not all activities or elements described above in the general description are required, a portion of a particular activity or device may not be required, and one or more additional activities may be performed, or elements may be included in addition to those described. Furthermore, the order in which the activities are listed is not necessarily the order in which they are performed. In addition, these concepts have been described with reference to specific embodiments. However, it is understood by those of ordinary skill in the art that various modifications and changes may be made without departing from the scope of the present disclosure as set forth in the following claims. Therefore, the specification and drawings are to be regarded as illustrative rather than restrictive, and all such modifications are intended to be included within the scope of the present disclosure.
[0073] Benefits, other advantages and solutions to problems have been described above with respect to specific embodiments. However, benefits, advantages, solutions to problems, and any features that may cause any benefit, advantage or solution to appear or become more significant should not be interpreted as key, essential or basic features of any or all claims. In addition, the specific embodiments disclosed above are merely illustrative, as the disclosed subject matter may be modified and practiced in different but equivalent ways that are obvious to those skilled in the art who benefit from the teachings herein. Except as described in the following claims, it is not intended to limit the details of the construction or design shown herein. Therefore, it is apparent that the specific embodiments disclosed above may be changed or modified, and all such changes are considered to be within the scope of the disclosed subject matter. Therefore, the protection sought herein is as set forth in the following claims.
Claims
1. A method comprising: predicting a sleep state duration for a component of the processing device based on feedback associated with one or more previous selections of the sleep state; as well as The component is transitioned to a sleep state selected from a plurality of sleep states based on a comparison of the predicted sleep state duration to at least one duration threshold, wherein each sleep state of the plurality of sleep states is a lower power state than a previous sleep state of the plurality of sleep states.
2. The method according to claim 1, wherein: Transitioning the component to the selected sleep state includes transitioning the component without an entry hysteresis delay. The method according to claim 1 , wherein the sleep state duration is predicted based on historical sleep state duration information. 4 . The method of claim 3 , wherein the historical sleep state duration information comprises a duration of a previous sleep state associated with the processing device.
5. The method of claim 1 , wherein the at least one duration threshold indicates a duration that the component will reside in a sleep state associated with the at least one duration threshold, such that energy saved by residing in the sleep state is at least equal to an energy cost of transitioning the component to and from the sleep state.
6. The method of claim 1 , wherein selecting the sleep state comprises: determining that the predicted sleep state duration fails to satisfy the at least one duration threshold; as well as In response to the predicted sleep state duration failing to satisfy the at least one duration threshold, a first sleep state of the plurality of sleep states is selected, the first sleep state being a higher power state than at least a second sleep state of the plurality of sleep states.
7. The method of claim 1 , wherein selecting the sleep state comprises: determining that the predicted sleep state duration satisfies the at least one duration threshold; as well as In response to the predicted sleep state duration satisfying the at least one duration threshold, a first sleep state of the plurality of sleep states is selected, the first sleep state being a lower power state than at least a second sleep state of the plurality of sleep states.
8. The method according to claim 1, wherein the feedback indicates that one or more incorrect selections of sleep states were previously made, and Wherein predicting the sleep state duration comprises adjusting one or more parameters used to predict the sleep state duration based on the feedback.
9. A method comprising: predicting a duration of a sleep state of a component of a processing device; selecting an initial sleep state from a plurality of sleep states based on a comparison of the predicted sleep state duration to at least one duration threshold, wherein each sleep state in the plurality of sleep states is a lower power state than a previous sleep state in the plurality of sleep states; determining that an interrupt associated with the component will be issued within a threshold amount of time; responsive to determining that an interrupt associated with the component will be issued within the threshold amount of time, selecting a different sleep state from the plurality of sleep states, wherein the different sleep state is a higher power state than the initial sleep state; as well as The component is transitioned into the different sleep state.
10. The method according to claim 1, further comprising: determining a duration that the component is currently residing in the selected sleep state; comparing the duration to a threshold amount of time; as well as Based on the duration satisfying the threshold amount of time, the component is transitioned to a different sleep state, wherein the different sleep state is a lower power state than the selected sleep state.
11. The method according to claim 1, further comprising: determining a duration that the component is currently residing in the selected sleep state; determining a percentage of sleep state durations in a set of historical sleep state durations associated with the processing device that satisfy a threshold duration; comparing the duration to a threshold amount of time; comparing the percentage of sleep state duration to a threshold percentage; and Based on the duration satisfying the threshold amount of time and the percentage of sleep state duration satisfying the threshold percentage, the component is transitioned to a different sleep state, wherein the different sleep state is a lower power state than the selected sleep state.
12. A processing device comprising: processor; a sleep state duration prediction module to predict a sleep state duration of a component of the processing device based on feedback associated with one or more previous selections of sleep states; and A system management unit is configured to transition the component to a sleep state selected from a plurality of sleep states based on a comparison of the predicted sleep state duration to at least one duration threshold, wherein each sleep state of the plurality of sleep states is a lower power state than a previous sleep state of the plurality of sleep states.
13. The processing device of claim 12, wherein the system management unit further transitions the component into the selected sleep state without an entry hysteresis delay.
14. The processing device of claim 12, wherein the sleep state duration is predicted based on historical sleep state duration information, the historical sleep state duration information comprising durations of previous sleep states associated with the processing device.
15. The processing device according to claim 12, further comprising: A sleep state selection module, wherein the sleep state selection module is used to select the sleep state from the multiple sleep states in the following manner: determining that the predicted sleep state duration fails to satisfy the at least one duration threshold; and In response to the predicted sleep state duration failing to satisfy the at least one duration threshold, a first sleep state of the plurality of sleep states is selected, the first sleep state being a higher power state than at least a second sleep state of the plurality of sleep states.
16. The processing device according to claim 12, further comprising: A sleep state selection module, wherein the sleep state selection module is used to select the sleep state from the multiple sleep states in the following manner: determining that the predicted sleep state duration satisfies the at least one duration threshold; and In response to the predicted sleep state duration satisfying the at least one duration threshold, a first sleep state of the plurality of sleep states is selected, the first sleep state being a lower power state than at least a second sleep state of the plurality of sleep states.
17. The processing device according to claim 12, further comprising: a feedback module, the feedback module being configured to provide the feedback to the sleep state duration prediction module, the feedback indicating that one or more incorrect sleep state selections have been made, The sleep state duration prediction module adjusts one or more parameters used to predict the sleep state duration based on the feedback.
18. The processing device according to claim 12, further comprising: A sleep state improvement module, wherein the sleep state improvement module is used to determining a duration that the component is currently residing in the selected sleep state; comparing the duration to a threshold amount of time; as well as Based on the duration satisfying the threshold amount of time, the component is transitioned to a different sleep state, wherein the different sleep state is a lower power state than the selected sleep state.
19. A processing device comprising: processor; a monitoring module to monitor a duration of each sleep state of a plurality of sleep states associated with the processing device and further store the duration as a historical sleep state duration; a sleep state duration prediction module to predict a sleep state duration of a component of the processing device based on the historical sleep state durations and feedback associated with one or more previous selections of sleep states; and A system management unit is configured to transition the component to a sleep state selected from a plurality of sleep states based on a comparison of the predicted sleep state duration to at least one duration threshold, wherein each sleep state of the plurality of sleep states is a lower power state than a previous sleep state of the plurality of sleep states.
20. The processing device according to claim 19, further comprising: A sleep state promotion module is configured to determine that the duration that the component currently resides in the selected sleep state satisfies a threshold amount of time and further transition the component to a different sleep state that is a lower power sleep state than the selected sleep state.
21. A processing device comprising: processor; a sleep state duration prediction module, the sleep state duration prediction module being used to predict a sleep state duration of a component of the processing device; A sleep state prediction module, wherein the sleep state prediction module is used to: selecting an initial sleep state from a plurality of sleep states based on a comparison of the predicted sleep state duration to at least one duration threshold, wherein each sleep state in the plurality of sleep states is a lower power state than a previous sleep state in the plurality of sleep states; determining that an interrupt associated with the component will be issued within a threshold amount of time; as well as responsive to determining that the interrupt will be issued within the threshold amount of time, selecting a different sleep state from the plurality of sleep states, wherein the different sleep state is a higher power state than the initial sleep state; as well as A system management unit is used to transform the component into the different sleep states.
