Accurate shadowing and adjustment of on-die timers in low power states - Patents.com

The system power state controller with a shadow timer mechanism addresses the inefficiencies in existing power management systems by ensuring precise timing and reduced errors during power state transitions, enhancing power efficiency and performance.

JP7535674B2Active Publication Date: 2024-08-16ADVANCED MICRO DEVICES INC
View PDF 3 Cites -1 Cited by

Patent Information

Application Number
JP2023577878
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-06-24
Filing Date
2022-06-08
Publication Date
2024-08-16
Estimated Expiration
2042-06-08

AI Technical Summary

Technical Problem

Existing power management systems in computer systems, such as ACPI, lack optimization for specific data processing systems, leading to inefficiencies in power consumption and performance, particularly in low power states where timer precision is compromised by asynchronous clock signals.

Method used

Implementing a system power state controller with a shadow timer mechanism that synchronizes with a reference clock to accurately adjust and restore timer values during power state transitions, ensuring precise timing and reduced error accumulation.

Benefits of technology

Enhances power efficiency and system performance by minimizing errors in timer precision during power state changes, allowing for frequent and low-latency transitions between power states without impacting system functionality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007535674000004
    Figure 0007535674000004
  • Figure 0007535674000005
    Figure 0007535674000005
  • Figure 0007535674000003
    Figure 0007535674000003
Patent Text Reader

Abstract

An integrated circuit (IC) includes a first circuit including a timer for receiving an adjustable clock signal. In response to leaving a non-operational power state and entering a power state in which the adjustable clock has a lower frequency than a reference clock, the first circuit adjusts a frequency of the adjustable clock to a higher frequency than the lower frequency, then receives an elapsed time associated with the non-operational power state and starts a timer using the adjusted timer value.
Need to check novelty before this filing date? Find Prior Art

Description

[Background technology]

[0001] Computer systems utilize a variety of peripheral components for different input / output and communication functions. A system-on-chip (SOC) combines data processing circuitry, such as a central processing unit (CPU) core and a graphics processing unit (GPU), with peripheral controllers and memory interfaces on a single integrated circuit chip, and is well suited for portable, battery-powered operation. For example, a SOC may incorporate a display controller, an image signal processor (ISP), and other peripheral controllers on the SOC to enable the input and output of information to and from the computer system. In such large and complex SOCs, devices typically transfer data between resources, such as memory, by routing accesses through a large on-chip routing circuitry or "data fabric."

[0002] The diversity of circuits on a typical SOC presents a problem for implementing power saving modes. Operational and power saving modes are used for many parts of a computer system, with different modes providing different operating capacities, such as processing power for a processor core, signaling data rates for a communication bus, or different levels of power saving when not in use. Both operational and non-operational power saving modes are referred to herein as "power states." One common standard for managing such power modes is the Advanced Configuration and Power Interface (ACPI), which is a power management and configuration model for computers such as personal computers (PCs) and servers. ACPI allows computer operating systems to control the amount of power consumed by each device by changing the device's operating mode from among a limited set of modes. For example, such changes may include changing the clock speed of the device to a higher or lower frequency, or placing the device in a standby or power off mode. ACPI is an industry standard that provides a generalized set of controls exposed to an operating system, but does not include specific features aimed at optimizing the power consumption or performance of a particular data processing system. [Brief description of the drawings]

[0003] [Figure 1] 1 is a block diagram of a known accelerated processing unit (APU) and memory system, according to some embodiments. [Diagram 2] 1 is a block diagram of a portion of an APU showing elements for managing power state transitions for circuits having timers in accordance with an example embodiment. [Diagram 3] FIG. 1 is a flow diagram of a process for transitioning to a non-operating power state according to some embodiments. [Figure 4]FIG. 1 is a flow diagram of a process for transitioning from a non-operational power state according to some embodiments. [Diagram 5] FIG. 2 is a timing diagram including signals involved in backup and restore timer values ​​for a non-operating power state, according to some embodiments. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0004] In the following description, the use of the same reference numbers in different figures indicates similar or identical items. Unless otherwise noted, the word "coupled" and its related verb forms include both direct and indirect electrical connections by means known in the art, and unless otherwise noted, any description of a direct connection also refers to an alternative embodiment using a suitable form of indirect electrical connection.

[0005] The integrated circuit includes a power state controller and a first circuit, the first circuit including a timer that receives an adjustable clock signal and has a non-operational power state in which the adjustable clock signal is lost. In response to leaving the non-operational power state and entering a power state in which the adjustable clock has a lower frequency than a reference clock, the first circuit adjusts a frequency of the adjustable clock to a higher frequency than the lower frequency, then receives an adjusted timer value associated with the non-operational power state and starts a timer using the adjusted timer value.

[0006] The method includes causing the first circuit to enter a non-operational power state in which an adjustable clock signal to the first circuit is gated or powered down. The method includes causing the first circuit to leave the non-operational power state and restoring a timer with the adjusted timer value. When the first circuit leaves the non-operational power state to enter a power state in which the adjustable clock has a lower frequency than a reference clock, the method first adjusts the adjustable clock to a higher frequency than the lower frequency and then receives an elapsed time value associated with the non-operational power state.

[0007] The data processing system includes a plurality of processor cores, a first circuit coupled to the plurality of processor cores, and a power state controller. The first circuit includes a timer that receives an adjustable clock signal and has a non-operational power state in which the adjustable clock signal is lost. In response to leaving the non-operational power state and entering a power state in which the adjustable clock has a lower frequency than a reference clock, the first circuit adjusts a frequency of the adjustable clock to a higher frequency than the lower frequency, then receives an elapsed time associated with the non-operational power state and starts the timer using the adjusted timer value.

[0008] 1 illustrates a block diagram of an accelerated processing unit (APU) 100 and a memory system 130, according to some embodiments. APU 100 is an integrated circuit suitable for use as a processor in a host data processing system and generally includes a central processing unit (CPU) core complex 110, a graphics core 120, a set of display engines 122, a data fabric 125, a memory management hub 140, a set of peripheral controllers 160, a set of peripheral bus controllers 170, a system management unit (SMU) 180, and a system power state controller 182.

[0009] CPU core complex 110 includes CPU core 112 and CPU core 114. In this example, CPU core complex 110 includes two CPU cores, but in other embodiments, CPU core complex 110 may include any number of CPU cores. Each of CPU cores 112 and 114 is bidirectionally connected to a system management network (SMN) that forms a control fabric and to data fabric 125, and can provide memory access requests to data fabric 125. Each of CPU cores 112 and 114 may be a single core or may be a core complex having two or more single cores that share certain resources, such as a cache.

[0010] Graphics core 120 is a high-performance graphics processing unit (GPU) capable of performing graphics operations such as vertex processing, fragment processing, shading, texture blending, etc., in a highly integrated and parallel manner. Graphics core 120 is bidirectionally connected to the SMN and data fabric 125 and can provide memory access requests to data fabric 125. In this regard, APU 100 can support either a unified memory architecture in which CPU core complex 110 and graphics core 120 share the same memory space, or a memory architecture in which CPU core complex 110 and graphics core 120 share a portion of the memory space, but graphics core 120 also uses private graphics memory that is not accessible by CPU core complex 110.

[0011] A display engine 122 renders and rasterizes objects generated by the graphics core 120 for display on a monitor. The graphics core 120 and the display engine 122 are bidirectionally connected to a common memory management hub 140 via a data fabric 125 for uniform translation to appropriate addresses in the memory system 130.

[0012] Data fabric 125 includes a crossbar switch for routing memory access requests and responses between any memory accessing agent and memory management hub 140. The data fabric also includes a system memory map defined by the basic input / output system (BIOS) to determine where to send memory accesses based on the system configuration, and buffers for each virtual connection.

[0013] Peripheral controllers 160 include a universal serial bus (USB) controller 162 and a Serial Advanced Technology Attachment (SATA) interface controller 164, each of which is bidirectionally connected to a system hub 166 and the SMN bus. These two controllers are merely exemplary of peripheral controllers that may be used with APU 100.

[0014] Peripheral bus controllers 170 include a system controller or "Southbridge (SB)" 172 and a Peripheral Component Interconnect Express (PCIe) controller 174, each of which is bidirectionally connected to an input / output (I / O) hub 176 and the SMN bus. I / O hub 176 is also bidirectionally connected to system hub 166 and data fabric 125. Thus, for example, a CPU core can program registers in USB controller 162, SATA interface controller 164, SB 172, or PCIe controller 174, with accesses routed by data fabric 125 through I / O hub 176. Software and firmware for APU 100 is stored in a system data drive or system BIOS memory (not shown), which may be any of a variety of non-volatile memory types, such as read-only memory (ROM), flash, electrically erasable programmable ROM (EEPROM), etc. Typically, the BIOS memory is accessed via a PCIe bus, and the system data drives are accessed via a SATA interface.

[0015] SMU 180 is a local controller that controls the operation of resources on APU 100 and synchronizes communication between them. SMU 180 manages the power-up sequencing of the various processors on APU 100 and controls multiple off-chip devices via reset, enable, and other signals. SMU 180 includes one or more clock sources (not shown), such as a phase locked loop (PLL), to provide clock signals to each of the components of APU 100. SMU 180 also manages ACPI power states for the various processors and other functional blocks, and may receive measured power consumption values ​​from CPU cores 112 and 114 and graphics core 120 to determine appropriate power states.

[0016] The system power state controller 182 is bidirectionally connected to the SMN for communicating with local power state controllers in various portions of the APU 200, and controls the power states of peripheral circuits in the APU 200 independent of the ACPI power states controlled by the SMU 180. The power states controlled by the system power state controller 182 are distinct from the various ACPI processor and performance states, as defined by the ACPI specification, in that they are additional power states that are typically not exposed to the operating system or that are controllable under the ACPI specification through its Operating System-directed configuration and Power Management (OSPM) system. The power states controlled by the local power state controller 270 include an idle state and a "deep idle" state, which are coordinated with the power states of other blocks in the APU 100 by the system power state controller 182 (including powering down designated circuit blocks), as described further below.

[0017] Memory management hub 140 and its associated physical interfaces (PHYs) 151 and 152 are integrated with APU 100 in this embodiment. Memory management hub 140 includes memory channels 141 and 142 and power engine 149. Memory channel 141 includes host interface 145, memory channel controller 143, and physical interface 147. Host interface 145 bidirectionally connects memory channel controller 143 to data fabric 125 via a serial presence detect link (SDP). Physical interface 147 bidirectionally connects memory channel controller 143 to PHY 151 and conforms to the DDR PHY Interface (DFI) specification for configuring PHY 151. Memory channel 142 includes host interface 146, memory channel controller 144, and physical interface 148. Host interface 146 bidirectionally connects memory channel controller 144 to data fabric 125 via another SDP. Physical interface 148 bidirectionally connects memory channel controller 144 to PHY 152 and conforms to the DFI specification. Power engine 149 is bidirectionally connected to SMU 180 via the SMN bus, to PHYs 151 and 152 via advanced peripheral bus (APB) interface 254, and to memory channel controllers 143 and 144. PHY 151 has a bidirectional connection to memory channel 131. PHY 152 has a bidirectional connection to memory channel 133.

[0018] Memory management hub 140 is an instantiation of a memory controller having two memory channel controllers and uses a shared power engine 149 to control the operation of both memory channel controller 143 and memory channel controller 144 in a manner described further below. Each of memory channels 141 and 142 can connect to state-of-the-art DDR memories such as DDR version five (DDR5), DDR version four (DDR4), low power DDR4 (LPDDR4), graphics DDR version five (GDDR5), and high bandwidth memory (HBM) and can be adapted for future memory technologies. These memories provide high bus bandwidth and high speed operation. At the same time, they provide low power modes to conserve power for battery-powered applications such as laptop computers, as well as built-in thermal monitoring.

[0019] The various processor cores, controllers and interfaces may include interrupt controllers, such as the Advanced Programmable Interrupt Controller (APIC). The APIC is a family of interrupt controllers that may be used in multiprocessor systems. It is one of several architectural designs intended to solve interrupt routing efficiency problems in multiprocessor computer systems. The APIC is a split architectural design, with a local component APIC (LAPIC) that is usually integrated into the processor itself, and an optional I / O APIC on the system bus.

[0020] Memory system 130 includes memory channel 131 and memory channel 133. Memory channel 131 includes a set of dual inline memory modules (DIMMs) connected to DDRx bus 132, including representative DIMMs 134, 136, and 138, which in this example correspond to individual ranks. Similarly, memory channel 133 includes a set of DIMMs connected to DDRx bus 129, including representative DIMMs 135, 137, and 139.

[0021] The APU 100 acts as the central processing unit (CPU) of the host data processing system and provides a variety of buses and interfaces useful in modern computer systems, including two double data rate (DDRx) memory channels, a PCIe root complex for connection to a PCIe link, a USB controller for connection to a USB network, and an interface to a SATA mass storage device.

[0022] The APU 100 also implements various system monitoring and power saving functions. One system monitoring function in particular is thermal monitoring. For example, if the APU 100 gets too hot, the SMU 180 can reduce the frequency and voltage of the CPU cores 112 and 114 and / or the graphics core 120. If the APU 100 gets too hot, the SMU can be shut down completely. Thermal events can also be received from external sensors by the SMU 180 via the SMN bus, and the SMU 180 can reduce the clock frequency and / or power supply voltage accordingly.

[0023] 2 illustrates a block diagram of a portion of an APU 200 illustrating elements for managing power state transitions for circuits having timers, according to an exemplary embodiment. The illustrated portion of APU 200 includes central processing unit (CPU) core complex 110, data fabric 125, SMU 180, SMN, system power state controller 182, I / O hub 176, memory channel controller 144, and blocks illustrating other peripherals 240, which may also include timers suitable for use with the timer synchronization techniques described herein.

[0024] Each of CPU cores 112 and 114 is bidirectionally connected to data fabric 125. CPU core complex 110 is also bidirectionally connected to the SMN, typically at the individual core level. As indicated by the ellipsis, CPU core complex 110 typically includes more than two cores. In some embodiments, other types of processor cores, such as GPU cores and artificial intelligence or neural network processing cores, are also used. In some embodiments, the processor cores include timers, such as APIC timers, suitable for use with the timer synchronization techniques herein.

[0025] The system power state controller 182 is bidirectionally connected to the SMN to communicate with local power state controllers in various parts of the APU 200, and controls the power state of peripheral circuits in the APU 200 independent of the ACPI power states controlled by the SMU 180. At least some of these power state transitions are transparent to the operating system and have low exit latency so that they can be used frequently based on the system workload to conserve power without significantly impacting system performance. For example, the two non-operational power states controlled by the system power state controller 182 have exit latencies of 350 μs and 1 ms, respectively, allowing them to be used much more frequently than the ACPI power states (which typically have higher exit latencies) or other power states with higher exit latencies. The system power state controller 182 may also include direct sideband connections to certain circuits, such as local APIC timers. 2, various other system blocks also include local power state controllers configured to control the entry and exit of power states, including saving and restoring the configuration and state data of the respective system blocks in response to commands from system power state controller 182. System power state controller 182 provides two methods of saving and restoring configuration and state data: by saving to system DRAM or by saving to on-chip SRAM 204.

[0026] On-chip SRAM 204 has a bidirectional connection to the SMN to receive configuration and status data from various circuits within APU 200 that is stored during low power states. In this embodiment, SRAM is used, but any suitable form of RAM operating at speeds comparable to SRAM speeds may be used to store the configuration and status data.

[0027] Reference clock 186 (REFCLK) provides a clock signal to system power state controller 182 and continues to operate during designated non-operational power states. Preferably, REFCLK 186 is a crystal oscillator, non-spread spectrum clock circuit that provides a relatively high frequency clock signal compared to a time stamp counter (TSC) clock typically used for coarse timing of system events. This clock signal is used as the basis to generate a base timer rate for the APIC timers of APU 200. The base timer rate can be further modified, typically by dividing, in each particular peripheral component depending on the peripheral component's operating power state. Although an APIC timer is described in this embodiment, other types of timers are used in other embodiments. Although the term APIC generally refers to a peripheral controller that includes a timer, an APIC timer is used in various embodiments without a complete APIC peripheral controller and may include only a subset of the features associated with an APIC timer.

[0028] The data fabric 125 includes a fabric controller 220, a local APIC timer 230, and a data fabric phase-locked loop (DF PLL) 236. Although other parts of the data fabric 125, such as ports and a crossbar router, are not shown to focus on relevant features, the data fabric generally includes a number of master ports for generating memory access requests on behalf of requesters connected to the data fabric 125, a number of slave ports for satisfying such requests from memory devices connected to the data fabric 125, and a crossbar router that forms virtual connections between the master and slave ports based on the destination address of the request. The fabric controller 220 is bidirectionally connected to the SMN and is connected to various control circuits for controlling and configuring the data fabric, including a local APIC timer 230 and a DF PLL 236. The local APIC timer 230 includes a counter 234 and a cross-domain synchronization circuit 232 (SYNC). The counter 234 is connected to the DF PLL 236 and uses the DF PLL as a clock source on which the counter operates. DF PLL 236 is an adjustable PLL that provides an adjustable clock signal to at least local APIC timer 230, and preferably all of data fabric 125. Cross-domain synchronization circuit 232 is connected to shadow timer 184 of system power state controller 182 and counter 234. Cross-domain synchronization circuit 232 is preferably configured as a synchronizer that includes a number of synchronization flip-flops to prevent metastable conditions across clock domains, and control logic operable to synchronize the circuit with system power state controller 182 during certain clock synchronization processes, as described further below.

[0029] Fabric controller 220 operates in response to commands from system power state controller 182 to place data fabric 125 in selected operational and non-operational power states. In some embodiments, fabric controller 220 monitors traffic on data fabric 125 and places data fabric 125 in a selected power state, such as a light idle state, based on detecting conditions in which data fabric 125 may be idle. For example, in some embodiments, a condition in which one port is disconnected and other ports are enabled to "stutter" traffic by allowing traffic to accumulate in buffers enables the light idle state. In some designated non-operational power states, the DF PLL 236 signal is lost, either because it is gated or the PLL is powered down. In some designated non-operational power states, entire peripheral circuits or intellectual property (IP) blocks, such as the fabric controller, are powered down. The APIC timer 230 can be backed up, tracked, and restored with an adjusted timer value during transitions to and from non-operational power states as directed by the system power state controller 182. During these transitions, the system power state controller 182 stores the timer value from the APIC timer 230 in a memory such as the on-chip SRAM 204, starts the shadow timer 184 to measure the time associated with the specified non-operational power state, and restores the APIC timer 320 with the adjusted timer value following the specified non-operational power state. The operational power states include states in which the frequency of the DF PLL 236 is equal to or greater than the REFCLK 186 and the clock signal edges of the DF PLL 236 are synchronous with the clock edges of the REFCLK. Such a state may be referred to as a "low error" state because the error in saving and restoring the timer value of the local APIC timer 230 is low. Other power states include operational and idle power states in which the frequency of the DF PLL 236 is lower than the REFCLK 186.Although the DF PLL 236 frequency in some of these states provides sufficient granularity for timer accuracy, these power states are referred to herein as “high error” power states because potentially high cumulative errors of unknown size can occur when saving and restoring timer values ​​from these states. Such errors are due to the slower clock signal of the DF PLL 236 and its asynchronous relationship with the clock signal edges of the REFCLK 186. Importantly, such errors are incremental and therefore grow over time, which can eventually cause unpredictable operational problems depending on the particular application of the timer. The more frequently the non-operational power states are used, the larger such incremental errors will be. In this embodiment, the illustrated local APIC timer 230 and shadow timer 184 are used along with a process to mitigate the incremental errors.

[0030] I / O hub 176 and other peripheral circuits 240, such as memory controllers, graphical processing units (GPUs), and deep-learning processing units (DLPs), may include timers configured similarly to local APIC timers 230, including cross-domain synchronization circuitry 232. The timer tracking and adjustment processes herein may be used with any suitable timer that is part of a circuit that has a non-operational power state in which the timer's power or clock signal is lost.

[0031] 3 illustrates a flow diagram 300 of a process for transitioning to a non-operational power state, according to some embodiments. This process is suitable for use with the APU 100 and APU 200 described above, or another suitable integrated circuit that includes a peripheral circuit having a timer, and is executed under the control of a local power state controller for the IP block in question, such as the system power state controller 182 and the fabric controller 220. The process is initiated by the system power state controller at block 302, which typically initiates a transition to a non-operational power state in response to detecting a condition that allows for an entry into an idle or non-operational power state for a circuit or intellectual property (IP) block in the APU 200. Generally, the entire associated IP block, such as the data fabric 125, is placed in a non-operational power state. However, in some embodiments, the "circuit" may refer to only a portion of the IP block.

[0032] As indicated in block 304, for each IP block that requires a timer save and restore sequence, the process executes blocks 306, 308, 310, 312, 314. Depending on the particular IP block involved, various other steps (not shown) may be included, such as saving state dates and flushing buffers.

[0033] In block 306, the process determines whether the IP block's PLL is already in a low error state, in which the PLL is operating at the REFCLK frequency or another suitable frequency and can perform synchronization with REFCLK 186 with low error. For example, if a particular IP block is in a low power state, such as a light idle state, with a clock frequency that is reduced relative to the clock frequency of REFCLK 186, in block 310, such reduced frequency is considered a high error state. In the case of a low error state, the process proceeds to block 310. In the case of a high error state, the process proceeds to block 308, where the IP block's PLL is placed in a low error state by adjusting the circuit PLL frequency. From block 308, the process proceeds to block 310.

[0034] At block 310, the process receives a timer value from the circuitry undergoing transition in system power state controller 182 and stores the timer value in memory. In some embodiments, an on-chip memory such as SRAM memory 204 (FIG. 2) is used, or local memory within system power state controller 182 may also be used.

[0035] Next, at block 312, the process starts a shadow timer 184 running on the REFCLK signal to measure the time associated with the specified non-operating power state. At block 312, the process starts a wake-up timer for the earliest wake-up time required among the IP blocks being transitioned to the non-operating power state. This wake-up time is adjusted to account for the wake-up latency. Next, at block 314, the process causes the IP blocks whose circuits are being transitioned to enter a non-operating power state in which the PLLs or tunable clocks of the circuits are gated or powered down.

[0036] The process of Figure 3 is used for each IP block that has timers configured to be entered into a non-operational power state and backed up and restored. In general, timers suitable for use by the process include all APIC timers or other similar timers in the IP block that is being transitioned to a non-operational power state. As illustrated by the sideband connection (Figure 2), the timer backup process is preferably done via dedicated sideband signaling to each IP block, rather than via the SMN, to achieve predictable latency in both saving and restoring timer values.

[0037] 4 shows a flow diagram 400 of a process for transitioning from a non-operational power state, according to some embodiments. This process is suitable for use with other system designs that use APU 200 and the transition process of FIG. 3, or that use an adjustable clock with a local timer that can benefit from a more accurate backup and restore process.

[0038] In block 402, the process initiates an exit from a non-operational power state in which at least one timer value has been saved for the circuitry of the IP block shadowed by the shadow timer 184. As shown in block 404, the exit process typically begins with a timer wake-up event on the shadow timer 184, which triggers a power state change and clock recovery. However, other triggering events, such as the system power state controller 182 detecting a condition that requires an exit from a low power state, may also trigger a power state change and clock recovery.

[0039] In response to the trigger at block 404, system power state controller 182 retrieves the timer value of the timer being restored from memory at block 406. System power state controller 182 may initiate other power state transition circuits within the IP block being restored in parallel with the illustrated process. For example, depending on the particular circuit that has been brought out of a non-operational power state, other circuits may be powered up, initialized, and loaded with state data such as the contents of queues and registers.

[0040] At block 408, the process places the circuit's PLL or other adjustable clock for the first circuit being restored in a low error state where the clock may be precisely synchronized with the REFCLK signal. Next, at block 410, an elapsed time is read from the power state controller, indicating the time tracked by the shadow timer.

[0041] At block 412, the process includes synchronizing the first circuit with the power state controller using the cross-domain synchronization circuitry. Block 412 may occur simultaneously or out of order with block 410 in some embodiments. Preferably, synchronizing the first circuit with the system power state controller 182 includes sending a timer read signal to the system power state controller 182 via the cross-domain synchronization circuitry 232 and receiving a definite response signal from the system power state controller 182 via the cross-domain synchronization circuitry 232.

[0042] At block 414, the process calculates an adjusted timer value based on the elapsed time calculated using several factors including the synchronization time of the cross-domain synchronization circuit, a first error value related to the latency of receiving the timer value, and a second error value related to the latency of restoring the timer value. The first and second error values ​​are preferably estimated and combined to form a single adjustment value that is a configuration value used by the first circuit in calculating the adjusted timer value. With such a design, each IP block can calculate its own adjusted timer value. In this embodiment, the adjusted timer value is calculated in the IP block based on the retrieved timer value, the elapsed time, and other adjustments described above, although the specific location where the adjusted timer value is calculated may vary. In some embodiments, the adjusted timer value is calculated in the system power state controller 182.

[0043] In block 416, the adjusted timer value is loaded into the timer and the timer is initialized to restore the timer to a value that includes the duration of shadow timing during non-operating power states. Preferably, this step occurs immediately after synchronization in block 412 so that the delay associated with loading the timer is predictable.

[0044] In block 418, the process determines whether the circuit is leaving a non-operating power state to enter an operating power state in which the tunable clock has a lower frequency than the reference clock. If so, the process proceeds to block 420 to adjust the PLL or the tunable clock to a desired lower frequency at which the circuit is driven in a high error state. For example, if the circuit is leaving a non-operating power state to enter a light idle state or a low power operating power state having a clock frequency lower than the REFCLK, blocks 408-420 adjust the tunable clock to a frequency higher than the target lower frequency, receive the adjusted timer value, and then adjust the tunable clock to the lower frequency. This technique increases the precision and accuracy of the timer shadowing process. The process then ends at block 422. If the circuit is not transitioning to a high error state in block 418, for example, if the circuit is leaving a non-operating power state to enter an operating power state in which the PLL is at a low error state frequency, the process proceeds from block 418 to block 42241.

[0045] 5 illustrates a timing diagram 500 including signals involved in backing up and restoring timer values ​​for a non-operational power state, according to some embodiments. Diagram 500 illustrates a "CPU Wake" signal, a "Shadow TimerWake" signal, a "TimerSet" signal, a "TimerRead" signal, a "TimerAck" signal, an "APICTimer[n]" signal, an "ApicSnapshot[n]" signal, a "WakeTime" signal, a "Shadow Timer" value, an "ElapsedTime" signal, a "DRAM Value[n]" signal, and a "Voltage Rail" supply voltage. The non-operational power state illustrated in diagram 500 is entered when a host system, such as APU 200, is in a power state, such as an ACPI "PC6" (Package C6) Idle state. In prior art systems, the APIC timer cannot be powered down in the PC6 Idle state because the exit from PC6 is triggered by the APIC timer. Using the techniques herein, improved exit latency allows for greater power savings by placing selected IP blocks in a non-operational power state during PC6 and exiting it at the appropriate time for the system to exit the PC6 state.

[0046] Upon determining in block 502 that one or more IP blocks containing timers may enter a non-operational power state, the system power state controller 182 stores in memory a snapshot timer value for each of the "n" APIC timers, as indicated by the ApicSnapshot[n] signal having a value "FC" stored in a memory location indicated as DRAM Value[n] in block 504. The system power state controller 182 also subtracts a programmable wake-up time offset from the earliest wake-up time of all APIC timers to account for power-up latency. This wake-up time value, labeled "EA" on the WakeTime signal, provides the wake-up time for the shadow timer 184. Also at this point, the TimerSet signal starts the shadow timer 184, as indicated in block 502.

[0047] The Voltage Rail is then changed from an ON state to an OFF state, turning off the voltage supply to the involved IP blocks. (Additional signaling is required for each involved IP block to enter a non-operational power state, but such signaling is not shown here in order to focus on the timer backup process.) At this point, the IP blocks are in a non-operational power state, as indicated by the shaded areas of the diagram associated with the IP blocks' signals while the shadow timer 184 is running.

[0048] At block 506, the value of the shadow timer 184 reaches the wake-up setting as shown on the clock cycle labeled "EA" on the shadow timer signal. In response, the voltage supply Voltage Rail is changed from an OFF state to an ON state, powering up the IP blocks that were powered down in the non-operational power state and restoring their PLLs.

[0049] The APIC timer snapshot is then restored from memory at block 508. Upon reaching a suitable point in the initialization process, each IP block asserts a TimerRead signal via the cross-domain synchronization circuitry 232. An elapsed time value is provided by a shadow timer to measure the time that has elapsed while the IP block's timer is not running. As shown in block 510, the system power state controller 182 latches the elapsed time, illustrated by indicator "F4", into the ElapsedTime signal connection to the counter 234 and asserts a TimerAck signal via the cross-domain synchronization circuitry 232 to indicate that the ElapsedTime signal is valid.

[0050] Next, at block 512, on an edge of the TimerAck signal, each APIC timer is initialized with the adjusted timer value. The APIC timer with the earliest wakeup time setting then reaches its wakeup timer value and triggers a CPU Wake signal, as shown in block 514. In this example, the CPU Wake signal goes to SMU 180 to initiate an exit from a CPU low power state, such as a PC6 idle power state. However, other types of events may be initiated by a timer wakeup of an IP block in other embodiments.

[0051] This particular signaling and timing configuration is shown as an example, however, many other signaling and timing configurations can be used to implement the timer backup and restore capabilities and processes described herein.

[0052] Any portion of APU 200 or system power state controller 182 and data fabric 125 of FIG. 2 may be described or represented by a computer-accessible data structure in the form of a database or other data structure that may be read by a program and used directly or indirectly to manufacture an integrated circuit. For example, the data structure may be a behavioral or register-transfer level (RTL) description of the hardware functionality in a high level design language (HDL) such as Verilog or VHDL. The description may be read by a synthesis tool that may synthesize the description to generate a netlist that includes a list of gates from a synthesis library. The netlist includes a set of gates that also represent the functionality of the hardware that comprises the integrated circuit. The netlist may then be placed and routed to generate a data set that describes the geometric shapes to be applied to a mask. The mask may then be used in various semiconductor manufacturing steps to manufacture the integrated circuit. Alternatively, the database on the computer-accessible storage medium may be a netlist (with or without a synthesis library) or a data set, or Graphic Data System (GDS) II data, as desired.

[0053] Although specific embodiments have been described, various modifications to these embodiments will be apparent to those skilled in the art. For example, although an APIC timer is described, various types of timers are backed up and restored in various embodiments. Any of the IP blocks shown in FIG. 1 can support power states in which local timers are backed up and restored as described herein. Accordingly, the appended claims are intended to cover all modifications of the disclosed embodiments that fall within the scope of the disclosed embodiments.

Claims

1. 1. An integrated circuit comprising: a first circuit including a timer that receives an adjustable clock signal, the first circuit having a non-operating power state in which the adjustable clock signal is lost; In response to leaving the non-operational power state to enter a power state in which the adjustable clock signal has a lower frequency than a reference clock signal, the first circuit adjusts a frequency of the adjustable clock signal to a frequency higher than the lower frequency, then receives an elapsed time value associated with the non-operational power state and starts the timer using the adjusted timer value. Integrated circuits.

2. a power state controller including a shadow timer that receives the reference clock signal; the power state controller stores a timer value from the timer in a memory, starts the shadow timer to measure an elapsed time value associated with the non-operating power state, and restores the timer with the adjusted timer value following the non-operating power state.

2. The integrated circuit of claim 1.

3. a power state controller including a shadow timer that receives the reference clock signal; the power state controller stores a timer value from the timer in a memory, starts the shadow timer to measure an elapsed time value associated with the non-operating power state, and restores the timer with the adjusted timer value following the non-operating power state.

2. The integrated circuit of claim 1.

4. the first circuit includes a cross-domain synchronization circuit operable to synchronize with the power state controller prior to receiving the elapsed time value; the first circuit is operable, when synchronized with the power state controller, to send a timer read signal to the power state controller via the cross-domain synchronization circuit and to receive an acknowledgement signal from the power state controller via the cross-domain synchronization circuit.

4. The integrated circuit of claim 3.

5. the first circuit calculates the adjusted timer value based on the timer value stored in the memory, the shadow timer, a synchronization time of the cross-domain synchronization circuit, a first error value associated with receiving the timer value, and a second error value associated with restoring the timer.

5. The integrated circuit of claim 4.

6. a power state in which the adjustable clock signal has a lower frequency than a reference clock signal is a light idle state in which the adjustable clock signal is provided to the timer but is gated from at least a portion of the first circuit; 2. The integrated circuit of claim 1.

7. a second circuit including a second timer receiving a second adjustable clock signal, the second circuit having a non-operational power state in which the second adjustable clock signal is lost and a plurality of power states in which the second adjustable clock signal operates at different frequencies; the power state controller is operable to command the second circuit to enter the non-operating power state, store a timer value from the second timer in a memory, and set a timer wake-up value of the shadow timer based on an earliest wake-up time and a non-operating power state exit latency value selected from among the timer and the second timer.

4. The integrated circuit of claim 3.

8. causing a first circuit to enter a non-operational power state in which an adjustable clock signal of the first circuit is gated or powered down; causing the first circuit to leave the non-operating power state and restore a timer with an adjusted timer value; when the first circuit leaves the non-operating power state and enters a power state in which the adjustable clock signal has a lower frequency than a reference clock signal, adjusting the adjustable clock signal to a frequency higher than the lower frequency, and then receiving an elapsed time value associated with the non-operating power state. method.

9. a power state in which the adjustable clock signal has a lower frequency than a reference clock signal is a light idle state in which the adjustable clock signal is provided to the timer but is gated from at least a portion of the first circuit; The method of claim 8.

10. a power state controller receiving a timer value from the first circuit, storing the timer value in a memory, and starting a shadow timer operated on a reference clock signal to measure an elapsed time value associated with the non-operating power state. The method of claim 8.

11. prior to receiving the elapsed time value, synchronizing the first circuit with the power state controller using a cross-domain synchronization circuit; sending a timer read signal to the power state controller via the cross-domain synchronization circuit when synchronizing the first circuit with the power state controller; and receiving an acknowledgement signal from the power state controller via the cross-domain synchronization circuit. The method of claim 10.

12. when the first circuit leaves a power state in which the adjustable clock signal has a lower frequency than a reference clock signal, adjusting a frequency of the adjustable clock signal to a frequency higher than the lower frequency, and then transmitting the timer value to a power state controller. The method of claim 8.

13. 1. A data processing system comprising: Multiple processor cores; a first circuit including a timer coupled to the plurality of processor cores and receiving an adjustable clock signal, the first circuit having a non-operating power state in which the adjustable clock signal is lost; In response to leaving the non-operating power state to enter a power state in which the adjustable clock signal has a lower frequency than a reference clock signal, the first circuit is operable to adjust a frequency of the adjustable clock signal to a frequency higher than the lower frequency, and then receive an elapsed time value and start the timer using the adjusted timer value. Data processing system.

14. a power state in which the adjustable clock signal has a lower frequency than a reference clock signal is a light idle state in which the adjustable clock signal is provided to the timer but is gated from at least a portion of the first circuit; 14. The data processing system of claim 13.

15. the first circuit includes a cross-domain synchronization circuit operable to synchronize with a power state controller prior to receiving the elapsed time value; the first circuit is operable, when synchronized with the power state controller, to send a timer read signal to the power state controller via the cross-domain synchronization circuit and to receive an acknowledgement signal from the power state controller via the cross-domain synchronization circuit.

15. The data processing system of claim 14.

16. the first circuit calculates the adjusted timer value based on the timer value stored in a memory, the elapsed time value, a synchronization time of the cross-domain synchronization circuit, a first error value associated with receiving the timer value, and a second error value associated with restoring the timer.

16. The data processing system of claim 15.

17. a power state controller including a shadow timer that receives the reference clock signal; the power state controller stores a timer value from the timer in a memory, starts the shadow timer to measure an elapsed time value associated with the non-operating power state, and restores the timer with the adjusted timer value following the non-operating power state.

14. The data processing system of claim 13.

18. the first circuit is operable, upon leaving a power state in which the adjustable clock signal has a lower frequency than a reference clock signal, to adjust a frequency of the adjustable clock signal to a frequency higher than the lower frequency and then transmit the timer value to the power state controller.

20. The data processing system of claim 17.

19. a second circuit including a second timer receiving a second adjustable clock signal, the second circuit having a non-operational power state in which the second adjustable clock signal is lost and a plurality of power states in which the second adjustable clock signal operates at different frequencies; the power state controller is operable to store a timer value from the second timer in a memory upon the second circuit entering the non-operating power state, and to set a timer wake-up value of the shadow timer based on an earliest wake-up time and a non-operating power state exit latency value selected from among the timer and the second timer.

20. The data processing system of claim 17.

20. the first circuit is a data fabric, and the second circuit is one of a memory controller, an input / output controller, and a processor core; 20. The data processing system of claim 19.

Citation Information

Patent Citations

  • Method and apparatus for secure recordation of time of attempted breach of IC package

    US20160380769A1

  • Distributed power management system and method for computer

    US5987614A

  • Method and device for low power control

    US8624627B1