DEVICE AND METHOD FOR REDUCING SAVE-RECOVERY LATENCY USING ADDRESS LINEARIZATION - Patent application

By using multiple sets of linear address spaces for configuration registers, the method addresses inefficiencies in power state transitions, optimizing power management and data recovery in integrated circuits.

JP2024533522AActive Publication Date: 2024-09-12ADVANCED MICRO DEVICES INC
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2024516573
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-09-23
Filing Date
2022-07-18
Publication Date
2024-09-12
Estimated Expiration
2042-07-18

AI Technical Summary

Technical Problem

Conventional methods for transitioning between different power states in integrated circuits incur inefficiencies and power consumption penalties due to inefficient saving and restoring of configuration register states, particularly when varying power levels are applied to different components.

Method used

Implementing multiple sets of linear address spaces mapped to configuration registers to efficiently save and restore data across varying power states, utilizing DRAM and SRAM for different register portions, reducing the need for additional decoding hardware and minimizing SRAM access costs.

Benefits of technology

This approach enhances power management by reducing latency and power consumption during state transitions, ensuring accurate and efficient data recovery across different power states without unnecessary resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024533522000001
    Figure 2024533522000001
Patent Text Reader

Abstract

A device and method are provided for transitioning between power states of a device. A program is executed using data stored in configuration registers assigned to components of the device. In a first reduced power state, the data in a first portion of the configuration registers is stored in memory using a first set of linear address spaces. In a second reduced power state, the data in a second portion of the configuration registers is stored in memory using a second set of linear address spaces, and the data in a third portion of the configuration registers is stored in memory using a third set of linear address spaces.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] (CROSS REFERENCE TO RELATED APPLICATIONS) This application claims the benefit of U.S. Patent Application No. 17 / 483,694, filed September 23, 2021, the contents of which are incorporated herein by reference. [Background technology]

[0002] Computing systems are increasingly integrating many different types of components onto a single chip or multi-chip module. The complexity and power consumption of the device increases with the number of different types of components. Power management is a key factor in the design and operation of integrated circuits, especially circuits integrated into devices that typically rely on battery power, such as mobile devices. Reducing power consumption in the integrated circuits of these devices can increase battery life and reduce heat generated by the integrated circuits.

[0003] A more detailed understanding may be had from the following description, given by way of example in conjunction with the accompanying drawings, in which: [Brief description of the drawings]

[0004] [Figure 1] FIG. 1 is a block diagram of an example device capable of implementing one or more features of the present disclosure. [Diagram 2] FIG. 1 is a block diagram illustrating example components including a power management controller for implementing one or more features of the present disclosure. [Diagram 3] FIG. 3 is a block diagram illustrating the power management controller shown in FIG. 2 in further detail. [Figure 4] FIG. 2 is a block diagram illustrating components of an intermediate system management unit for implementing one or more features of the present disclosure. [Diagram 5] FIG. 2 is a block diagram illustrating different power domains of an example device capable of implementing one or more features of the present disclosure. [Figure 6]1 is a flow diagram illustrating an example method for exiting deeper and shallower reduced power states using linear addressing in accordance with an aspect of the present disclosure. [Figure 7] FIG. 2 illustrates an example of mapping allocated configuration registers to a first, second and third set of linear address spaces and data flow between memory and the configuration registers. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0005] Some conventional devices reduce power consumption by entering a reduced power state (i.e., a power-gated state), in which the device, or one or more components of the device, are operating in a mode that consumes less power than another mode of operation. For example, power that would normally be used to maintain a current power state is removed from one or more components, resulting in a power-gated state and less power consumption. The reduced power state may be entered, for example, by turning off or removing power to the components, or, alternatively, by reducing the power supply voltage and / or reducing the clock frequency supplied to the components.

[0006] A configuration register state refers to values ​​stored in a number of configuration registers assigned to a component of a device, which identify the component, define various characteristics of the component, and allow system software to interface with and / or control the operation of the component. Prior to transitioning to a reduced power state, the configuration register state (i.e., the values ​​of the data in the configuration registers) are saved in memory (e.g., dynamic random-access memory (DRAM)). Registers assigned to a component may include any number and type of registers, such as routing tables, address maps, configuration data, buffer allocation information including flow control credits (e.g., when a first component communicates its buffer count to a second component during initialization, and the second component has an indication of the number of packets it can send to the first component without pausing and waiting for a buffer to be freed), performance registers, and debug related registers.

[0007] Operating systems, device drivers and diagnostic software typically access the configuration register state during operation of a given component. Upon exiting a reduced power state, the configuration register state is restored. Saving and restoring the configuration register state prevents computational errors from occurring due to erroneous data being stored during run-time.

[0008] Saving the configuration register state to memory each time the system transitions to a reduced power state introduces a delay that reduces the total time spent in the reduced power state, and writing the configuration register state to memory incurs a power usage penalty.

[0009] Furthermore, saving configuration register state, which involves saving data to memory in the correct order in which the data is stored, is often handled inefficiently. For example, if 5 of the 16 allocated registers (i.e., allocated to components) are in use, time and resources are wasted saving data for the 11 unused registers. Alternatively, if instances are used for address blocks and different numbers of instances are used for different types (e.g., generations) of system on chips (SOCs), additional time and resources can be wasted. For example, if 3 copies of a coherent agent are used for one SOC and 6 copies of a coherent agent are used for another SOC, 6 copies are saved.

[0010] Some conventional systems attempt to avoid this inefficiency by using linear addressing, which generates an alternative decoding by adding a second address for a register in another address space. The register is then accessed if the second address matches the first address (i.e., the normal address). That is, the registers of the SOC are linearized by stitching the registers together during compilation.

[0011] For example, as described in U.S. Patent No. 10,403,351, the entirety of which is incorporated herein by reference, changes made to configuration registers assigned to a component after exiting a reduced power state are tracked, and upon transitioning to a reduced power state, the component writes configuration registers that are determined to have been changed. Changes made to configuration registers are tracked by identifying the addresses of the registers, mapping the configuration registers to consecutive addresses in a linear address space (e.g., mapping the register addresses or register identifiers of the configuration registers), and then tracking the configuration registers that are mapped to consecutive addresses in the linear address space.

[0012] In the example above, if 5 of the 16 allocated registers are used, then the contiguous addresses in the linear address space may include a first block of addresses starting at address 0 and ending at address 4 (for the 5 used registers) and a second block of addresses starting at address 5 and ending at address 15 (for the unused registers). Addresses in the linear address space are mapped into memory for storing and restoring configuration registers upon transition to and exit from a reduced power state.

[0013] In one example, a linear address is generated for each instance of a component. For example, if four registers and two instances are used, the linear addresses of the components include a four-byte address range (e.g., byte 0 to byte 3), with the first instance including a starting address of byte 0 and the second instance including a starting address of byte 4. Thus, the instantiated components are not aware of other instances of themselves, as each receives a value (e.g., a strap value) at its starting address that can be added to the linear address beginning at byte 0.

[0014] Alternatively, if multiple instances are used multiple times, a contiguous range of addresses is generated (e.g., from address 0 to address 16). Then, when the state of the configuration registers is saved, data from address 0 to address 16 is read, and for recovery, data is read from memory and written to registers 0-16.

[0015] Linear addressing avoids inefficiencies associated with saves and restores by using burst accesses to read and write data. For example, linear addressing avoids the use of firmware or processors to prevent gaps between register addresses, reducing power consumption by preserving unused data. In addition, the use of linear addressing increases overall performance because burst accesses facilitate faster transitions out of reduced power states and into active states to execute programs.

[0016] However, these conventional linear addressing techniques implement a single linear address map for saving and restoring configuration register states when transitioning between different reduced power states. However, these reduced power states include different levels at which the power supplied to different components of the device varies. For example, in some reduced power states (e.g., shallower reduced power states such as the Z1-Z9 power states), power is supplied to one or more components whose configuration register states are saved and restored, while in other deeper reduced power states (e.g., the Z10 power state), power is not supplied to any of these components. That is, in the shallower reduced power states, some of the registers (i.e., registers corresponding to powered-on components) are saved and restored, while the remaining portions of the registers are not saved and restored. In the deeper reduced power states, registers for one or more components that are powered-on in the shallower states are not saved and restored because these components are not active in the deeper reduced power states.

[0017] A feature of the present disclosure provides efficient transitions between different levels of reduced power states by saving and restoring data of different portions of configuration registers assigned to a component using multiple sets of linear address spaces (i.e., multiple sets of contiguous addresses) that are hard-coded into the configuration registers and mapped to register addresses (i.e., register addresses or register identifiers assigned to the configuration registers according to a specification or standard (e.g., PCI Express)) assigned to the different portions of the configuration registers. That is, the set of linear address spaces and the assigned register addresses are both hard-coded in registers. The set of linear address spaces for the portions of the registers are then mapped to logical addresses (i.e., virtual addresses) in memory.

[0018] The mapping of the assigned register addresses to the set of consecutive addresses is performed at compile time (i.e., by a compiler) such that data in the configuration registers can be efficiently stored in memory by a processor (e.g., a power management controller) and restored from memory to the configuration registers by the processor during operation of the device. In addition, the mapping of the assigned register addresses to the set of consecutive addresses (i.e., mapping of the assigned configuration registers) is performed without additional decoding hardware (i.e., using a single decoder). The first set of linear address space (i.e., the first set of consecutive addresses) is used for shallower reduced power states (e.g., Z1-Z7 power states). The second set of linear address space and the third set of linear address space (i.e., the second and third sets of consecutive addresses) are used for deeper reduced power states (e.g., Z8-Z10 or deeper power states).

[0019] The first and second portions of the configuration registers (i.e., addresses or identifiers of the first and second portions of the configuration registers) assigned to the components are mapped to first and second sets of a linear address space, respectively, to access corresponding addresses in the DRAM, i.e., data from the first and second portions of the configuration registers are saved to addresses in memory corresponding to physical locations of the DRAM using the first and second mapped sets of consecutive addresses, and data is restored from the DRAM to the first and second portions of the configuration registers using the first and second mapped sets of consecutive addresses.

[0020] However, during each of the reduced power states, power continues to be supplied to a portion of the SRAM in the memory. Thus, prior to transitioning to a reduced power state in which power is removed from the first and second portions of the configuration registers assigned to the component, data from a third portion of the configuration registers assigned to the component is mapped into a third set of linear address space and stored at memory addresses corresponding to the portions of the SRAM, such that when power is restored to the portions of the configuration registers, the data in the third portion of the configuration registers mapped to the third set of linear address space is used by the processor to accurately and reliably restore the data from the DRAM to the first and second portions of the configuration registers.

[0021] For example, data from the portion of the configuration registers mapped to the third address and stored in the SRAM indicates to the power management controller how to access the DRAM, how to buffer data to and from the DRAM if the data in the first and second portions of the configuration registers are located in the DRAM, and provides confirmation that the data stored in the DRAM is the data being restored to the registers. This data includes, for example, data related to at least one of a routing table, an address map, flow control credits, and a reliability accessibility serviceability (RAS) configuration. That is, for deeper reduced power states, data in the third portion of the configuration registers is stored in the SRAM to accurately and reliably save and restore data from the first and second portions of the configuration registers, but data in the first and second portions of the configuration registers is not stored in the SRAM. This reduces the cost (e.g., area and power consumption) associated with SRAM accesses.

[0022] The data in an assigned configuration register is saved to memory once before power is removed and then restored when power is restored to that register. That is, after data in an assigned configuration register is saved to memory and power to the register is removed to transition to a reduced power state (e.g., transitioning from an active state to a reduced power state or transitioning from a shallower reduced power state to a deeper reduced power state), the data in that configuration register is not re-saved upon transition to a deeper reduced power state because power to the register remains off. Upon transitioning back to a power state where power is re-applied to the configuration register, the data is restored to the configuration register from its address (i.e., location) in memory.

[0023] One or more registers assigned to the component may be powered off prior to transitioning to the reduced power state, but when transitioning to the reduced power state, one or more other registers assigned to the component continue to be powered. For example, when transitioning from an active power state to a first reduced power state, power may be removed to a first register assigned to the component, while power continues to be supplied to a second register. Thus, data from the first register is saved to an address in memory using a mapped address in the linear address space of the first register.

[0024] However, while power continues to be supplied to the second register, the data of the second register is not saved to memory. When transitioning from a first reduced power state (e.g., a shallower reduced power state) to a second reduced power state (e.g., a deeper reduced power state), the power supplied to the second register assigned to the component may be removed. Thus, the data from the second register is saved to another address in memory using the mapped address of the second register. When re-entering any power state in which power is re-supplied to the first register, the data of the first register is restored from memory to the first register using the corresponding address mapped to the linear address space, and when re-entering any power state in which power is re-supplied to the second register, the data of the second register is restored from memory to the second register using the corresponding address mapped to the linear address space.

[0025] A processing device is provided that includes a memory and a component having assigned configuration registers and configured to execute a program using data stored in the assigned configuration registers, and the processing device includes a power management controller configured to, for a first reduced power state, save data of a first portion of the configuration registers to the memory, restore data for the first portion of the assigned configuration registers from the memory using a first set of linear address space, save data of a second portion of the configuration registers to the memory using a second set of linear address space, and save data of a third portion of the configuration registers to the memory using a third set of linear address space.

[0026] A method of transitioning between power states of a device is provided. The method includes executing a program using data stored in configuration registers and saving data of a first portion of the configuration registers to a memory using a first set of linear address spaces for a first reduced power state. The method also includes saving data of a second portion of the configuration registers to a memory using a second set of linear address spaces and saving data of a third portion of the configuration registers to a memory using a third set of linear address spaces for a second reduced power state. The configuration registers are assigned to components of the device.

[0027] A non-transitory computer-readable storage medium is provided that includes instructions for causing a computer to perform a method of linear addressing. The instructions include executing a program using data stored in configuration registers and saving data of a first portion of the configuration registers to memory using a first set of linear address space for a first reduced power state. The instructions also include saving data of a second portion of the configuration registers to memory using a second set of linear address space and saving data of a third portion of the configuration registers to memory using a third set of linear address space for a second reduced power state. The configuration registers are assigned to components of the device.

[0028] 1 is a block diagram of an example device 100 in which one or more features of the present disclosure may be implemented. Device 100 may include, for example, a computer, a gaming device, a handheld device, a set-top box, a television, a mobile phone, or a tablet computer. Device 100 includes a processor 102, a memory 104, a storage 106, one or more input devices 108, and one or more output devices 110. Device 100 may also optionally include an input driver 112 and an output driver 114. It should be understood that device 100 may include additional components not shown in FIG. 1.

[0029] In various alternatives, the processor 102 includes a central processing unit (CPU), a graphics processing unit (GPU), a CPU and a GPU located on the same die, one or more processor cores where each processor core may be a CPU or a GPU, or a power management controller (PMC) used to manage different power states of the device 100, such as a reduced power state when the device 100 or components of the device 100 are operating in a mode that consumes less power than a normal operating mode. In various alternatives, the memory 104 is located on the same die as the processor 102 or is located separately from the processor 102. The memory 104 includes volatile or non-volatile memory (e.g., random access memory (RAM), dynamic RAM (DRAM), cache).

[0030] Storage 106 includes fixed or removable storage (e.g., hard disk drive, solid state drive, optical disk, flash drive). Input devices 108 include, but are not limited to, a keyboard, a keypad, a touch screen, a touch pad, a detector, a microphone, an accelerometer, a gyroscope, a biometric scanner, or a network connection (e.g., a wireless local area network card for transmitting and / or receiving wireless IEEE 802 signals). Output devices 110 include, but are not limited to, a display, a speaker, a printer, a haptic feedback device, one or more optical, antennae, or network connections (e.g., a wireless local area network card for transmitting and / or receiving wireless IEEE 802 signals).

[0031] The input driver 112 communicates with the processor 102 and the input device 108, allowing the processor 102 to receive input from the input device 108. The output driver 114 communicates with the processor 102 and the output device 110, allowing the processor 102 to send output to the output device 110. It should be noted that the input driver 112 and the output driver 114 are optional components and that the device 100 operates in the same manner when the input driver 112 and the output driver 114 are not present.

[0032] FIG. 2 is a block diagram illustrating example components of a device 200 including a PMC 260 for implementing one or more features of the present disclosure. The components of the example device 200 include a data fabric 205, which represents any type of communication fabric, buses, and / or other control and interface logic for communicating data between intellectual property (IP) components (referred to herein as "IP components") of the device. The IP components include, for example, cores, hardware blocks, memory cells, and logic used to execute various portions of a program or application. The data fabric 205 includes data paths, switches, routers, and other logic used to communicate data between various IPs such as the CPU 210, the GPU 220, the multimedia processing unit 230, the display 240 (via the display controller 240 shown in FIG. 3), the I / O hub 250, and the memory controller 270. The data fabric 205 can be bus-based, including shared bus configurations, crossbar configurations, and hierarchical buses with bridges. The data fabric 205 can also be packet-based and hierarchical with bridges, crossbars, point-to-point, or other interconnects. The arrows in FIG. 2 indicate the data flow between the IP components of the device.

[0033] The components of device 200 shown in FIG. 2 also include various I / O components 280, such as, for example, a universal serial bus (USB) port, a peripheral component interconnect express (PCIe) bus, an NVMe controller, a general-purpose input / output (GPIO) controller, and sensor fusion I / O components.

[0034] As described in more detail below with respect to FIG. 3, PMC 260 includes a combination of hardware and firmware that interfaces with IP components (e.g., CPU 210, GPU 220, multimedia processing unit 230, display 240, I / O hub 250, and memory controller 270) via an IP component control interface and a register bus interface (different from the data fabric interface used to communicate data between the IP components) to manage transitions (e.g., transitions and exits) between different power states of the device.

[0035] 3 is a block diagram illustrating components of a PMC 260 that communicate with multiple IP components 308. As shown in FIG. 3, the PMC 260 includes a PMC hardware (HW) logic 302, an IP preservation / recovery middle system management unit (MSMU) 304, and a main MSMU 306. The PMC HW logic 302 is a hardware block (i.e., logic circuitry) that interfaces with the IP components 308 (in the P1 and P2 power domains shown in FIG. 5) according to an IP / PMC interface protocol. For example, the PMC HW logic 302 receives an idle state indication that one or more of the IP components 308 are idle or not idle (e.g., a wake event) and performs a handshake (e.g., sends a fence request to one or more IP components 308 and receives a fence acknowledgment from one or more IP components 308).

[0036] Figure 4 is a block diagram illustrating the components of the MSMUs 304 and 306 shown in Figure 3. As shown in Figure 4, the MSMUs 304 and 306 include an instruction memory 402, a data memory 404, registers and timers 406, an instruction processor 408, and an MSMU bus 410. The IP Preservation / Restore MSMUs 304 operate in parallel to preserve register data of corresponding IP components 308 to their data memories 404 and to restore register data from their data memories 404 to corresponding IP components 308.

[0037] Each MSMU processor 408 executes firmware instructions in its instruction memory 402 to save and restore register data for its corresponding IP component 308. The instruction memory 402 includes a limited set of firmware instructions (e.g., 16 instructions) used to efficiently implement register save and restore traffic (e.g., meet a target latency period between the time one or more IP components 308 become active (i.e., not idle) and the time to restore one or more IP components 308 of the device 200 to an active state). The data memory 404 includes dynamic random access memory (DRAM) and static random access memory (SRAM) used to store data used by the corresponding IP component 308 to execute a portion of a program. Data is saved to the data memory 404 from configuration registers assigned to the IP component 308 when exiting a power state of the device 200 and restored (e.g., reloaded) to the configuration registers when entering a power state of the device 200.

[0038] The main MSMU 306 communicates with the IP Preservation / Recovery MSMU 304 and the PMC HW logic 302 via the PMC bus 310 and contains firmware instructions used to manage the IP Preservation / Recovery MSMU 304 and orchestrate the implementation of register preservation and recovery traffic between the IP Preservation / Recovery MSMU 304 and their corresponding IP components 308.

[0039] 5 is a block diagram illustrating different power domains of an exemplary device 200. As shown in FIG. 5, the IP components in the first power domain (P1) include the CPU 210, the GPU 220, and other IP components 502, such as the multimedia processing unit 230, the I / O hub 250, and the memory controller 270. The second power domain (P2) includes the display controller 240. The third power domain (P3) includes the PMC 260. The fourth power domain (P4) includes other components of the device 200, such as the I / O components 280.

[0040] The power states of device 200 include, for example, eleven states, Z0 (also referred to as state S0) through Z10. However, features of the present disclosure may be implemented for any number of power states. During the S0 / Z0 power states, power is provided to each of the domains (e.g., each power rail is on). During the Z1-Z7 states, one or more, but not each, of the IP components are idle. During the Z8 and Z9 power states, CPU 210, GPU 220, and IP components 502 are idle. During the Z8 power state, power (e.g., voltage) provided to the P1 power domain is reduced for limited functionality (e.g., display stutter). During the Z9 state, no power is provided to the P1 power domain (i.e., power is off). During the Z10 state, no power is provided to the P1 and P2 power domains.

[0041] Figures 6 and 7 are used together to describe an example method 600 using linear addressing to recover data for a portion of a configuration register assigned to a component 708 (e.g., CPU 210 shown in Figure 2) during a transition between power states. Figure 7 illustrates an example mapping portion of assigned configuration registers 702 to first, second and third sets of contiguous addresses hardcoded in a linear address space, and data flow between memory and the configuration registers.

[0042] As shown in the example of Figure 7, there are fifteen configuration registers 702 allocated to components 708. Components 708 may be any of the components shown in Figure 2, such as, for example, CPU 210, GPU 220, multimedia processing unit 230, display 240, I / O hub 250, and memory controller 270. Figure 7 also includes DRAM 710 and SRAM 712. DRAM 710 may be, for example, a portion of main memory or a portion of cache memory. SRAM 712 may be, for example, a partial cache memory or another type of high speed memory. SRAM 712 represents a portion of memory that remains powered through each of the reduced power states, as described above.

[0043] Each register 702 has an assigned register address 704, which is assigned to a component 708 according to a specification or standard and is hard-coded in the component 708 for the corresponding register 702. In addition, each register 702 is provided with an additional address 706, which is also hard-coded in the component 708 for the corresponding register 702. The first five consecutive addresses (1-5) are hard-coded in the component 708 with assigned register addresses 10, 12, 14, 20, 30, which correspond to a first portion of registers R1-R5. The next five consecutive addresses (1-5) of a second set of addresses are hard-coded in the component 708 with assigned register addresses 40, 50, 60, 35, 11, which correspond to a second portion of registers R6-R10. The last five consecutive addresses (1-5) of the third address set are hard-coded consecutive addresses in component 708 along with assigned register addresses 17, 45, 23, 36, and 41, which correspond to the third portion of registers R11-R20.

[0044] Each assigned register address 704 is mapped to a corresponding additional address 706 at compile time. The mapping is illustrated by solid arrows in FIG. 7. The assigned register addresses 704 for a first portion of registers (i.e., the portion corresponding to the first five registers R1-R5 shown in FIG. 7) are mapped to a first set of consecutive addresses 1-5 (i.e., a first address set of the linear address space). For example, assigned register address 10 is mapped to linear address 1 of the first address set, assigned register address 12 is mapped to linear address 2 of the first address set, assigned register address 14 is mapped to linear address 3 of the first address set, assigned register address 20 is mapped to linear address 4 of the first address set, and register address 30 is mapped to linear address 5 of the first address set.

[0045] The data in the first and second portions of the registers 702 (i.e., registers R1-R10) are stored to and restored from the DRAM 710 to the first and second portions of the registers 702, as indicated by the two dashed arrows on the left side of Figure 7. The data in the third portion of the registers (i.e., registers R11-R15) are stored to and restored from the SRAM 712 to the third portion of the registers 702, as indicated by the dashed arrows on the right side of Figure 7. The data stored in the SRAM 712 from the third portion of the registers that are mapped to the third address set is data used by a processor (e.g., a power management controller) to accurately and reliably save data from the first two portions of the registers (i.e., R1-R10 in this example) to the DRAM 710 and restore data from the DRAM 710 to the first and second portions of the configuration registers.

[0046] Each address 706 in the first address set, the second address set, and the third address set includes an identifier that indicates that the address is part of a contiguous set of five addresses in either the first address set, the second address set, or the third address set. The total number of registers and the number of registers in each portion of registers shown in Figure 7 are merely examples used for simplicity. Features of the present disclosure may be implemented using any number of registers allocated to a component and as part of the portion of registers allocated to a component.

[0047] In the exemplary method illustrated in Figure 6, it is assumed that the data in the first portion of the registers (i.e., R1-R5 in Figure 7) was previously stored in the DRAM 710 using mapped consecutive addresses 1-5 of a first address set, the data in the second portion of the registers (i.e., R6-R10 in Figure 7) was previously stored in the DRAM 710 using mapped consecutive addresses 1-5 of a second address set, and the data in the third portion of the registers (i.e., R11-R15 in Figure 7) was previously stored in the SRAM 712 using mapped consecutive addresses 1-5 of a third address set. In addition, it is assumed that the assigned addresses 704 were previously mapped at compile time to consecutive addresses in the first, second and third address sets of the linear address space.

[0048] As shown in block 602, method 600 includes receiving an indication to exit a deeper reduced power state (e.g., the Z10 reduced power state). For example, hardware logic 302 of PMC 260 receives an indication that one or more components, including component 708 (e.g., CPU 210 of FIG. 2), are no longer idle and the device should exit the Z10 reduced power state in which the P1 and P2 power domains, including IP component 308, are not powered.

[0049] As shown in block 604, the method 600 includes recovering data for the third portion of the configuration registers (R11-R15 of FIG. 7) using a mapping to a third set of addresses of the linear address space. That is, data is recovered for the third portion of the configuration registers (R11-R15 of FIG. 7) from the SRAM 712 using a mapping of the assigned addresses 704 of the third portion of the configuration registers R11-R15 of FIG. 7 to consecutive addresses (1-5) of the third set of addresses of the linear address space. The data of the third portion of the configuration registers stored in the portion of the SRAM 712 is used by the processor to accurately and reliably store data from the first and second portions of the configuration registers (R1-R10 of FIG. 7) to the DRAM 710 and recover data from the SRAM 712 for the first and second portions of the configuration registers. As discussed above, the data in the first and second portions of the configuration registers are not stored in the SRAM 712. Thus, the cost (e.g., area and power consumption) associated with SRAM 712 accesses is reduced. The data in the first and second portions of the configuration register is not saved to SRAM 712.

[0050] As indicated by block 606, method 600 includes recovering data for a second portion of the configuration registers (R6-R10 in FIG. 7) using a mapping to a second set of addresses of the linear address space. That is, data is recovered for the second portion of the configuration registers from DRAM 710 using a mapping of assigned addresses 704 of the second portion of the configuration registers to consecutive addresses (1-5) of the second set of addresses of the linear address space.

[0051] As indicated at block 608, the method 600 includes exiting a deeper reduced power state (e.g., the Z10 reduced power state). For example, the device may exit a deeper reduced power state to proceed to a shallower reduced power state (e.g., a Z1-Z9 power state).

[0052] As shown in decision block 610, the method 600 includes determining whether an indication (instruction) to exit a shallower reduced power state has been received. If the shallower reduced power state is a state in which the IP components 308 in the P1 power domain (shown in FIG. 5) are not powered (i.e., power is off) but the display controller 240 in the P2 power domain is powered (e.g., Z9 power state), then an indication to exit a shallower reduced power state is received (a yes decision). For example, if the device is in the Z9 power state, the hardware logic 302 of the PMC 260 receives an indication that one or more additional components (e.g., one or more IP components 308) are no longer idle and that the device should exit the Z9 power state.

[0053] As shown in block 612, the method 600 includes recovering data for a first portion of the configuration registers (R1-R5 of FIG. 7) using a mapping to a first set of addresses of the linear address space. That is, data is recovered for the first portion of the configuration registers from the DRAM 710 using a mapping of the assigned addresses 704 of the first portion of the configuration registers to a first set of addresses in the linear address space. The device then exits the shallower reduced power state in block 614.

[0054] Alternatively, if the shallower reduced power state is a state in which power (e.g., voltage) is supplied to the P1 power domain but power is reduced (e.g., a Z8 power state having limited functionality such as a display stutter mode), no indication is received by PMC 260 to exit the shallower reduced power state (a "no" decision). Thus, as shown in block 616, the value of the first portion of the configuration register mapped to the first linear address (e.g., R1-R5 in FIG. 7) is not restored, and instead the device remains in the shallower reduced power state until the limited functionality is completed. The device then returns to the deeper reduced power state and proceeds again to block 602.

[0055] For the process of saving the configuration register state of a component (e.g., component 708), transitioning to a shallower reduced power state, and transitioning to a deeper reduced power state, the flow of the method illustrated in FIG. 6 is performed in reverse. For example, the data of the configuration registers mapped to the first address set is saved, and the device transitions to a shallower reduced power state (e.g., from the active state). Then, after transitioning to the shallower reduced power state, a determination is made as to whether to exit the shallower reduced power state without proceeding to a deeper state, or to save the data of the configuration registers mapped to the second and third linear address sets and proceed to a deeper state. For example, if an indication that one or more components are active is received, the device exits the shallower state and returns to the active state. If an indication that one or more components are active is not received, the data of the second portion of the configuration registers mapped to the second address set is restored. Then, the data of the third portion configuration registers mapped to the third address set is restored, and the device transitions to a deeper reduced power state.

[0056] Features of the present disclosure may be implemented by including additional linear addresses (i.e., addresses in addition to the second and third addresses used) for additional deeper reduced power states. For example, when a device transitions into or exits another deeper reduced power state (e.g., the Z11 reduced power state), some (i.e., but not all) of the configuration registers are mapped to a fourth address in the linear address space.

[0057] The various functional units shown in the figures and / or described herein (including, but not limited to, processor 102, input driver 112, input device 108, output device 110, output driver 114, data fabric 205, CPU 210, GPU 220, memory controller 270, and PMC 260) may be implemented as a general purpose computer, processor, or processor core, or as a program, software, or firmware stored in a non-transitory computer-readable storage medium or another storage medium executable by a general purpose computer, processor, or processor core. The provided methods may be implemented in a general purpose computer, processor, or processor core. Suitable processors include, by way of example, a general purpose processor, a special purpose processor, a conventional processor, a digital signal processor (DSP), multiple microprocessors, one or more microprocessors associated with a DSP core, a controller, a microcontroller, an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) circuit, any other type of integrated circuit (IC), and / or a state machine. Such a processor may be manufactured by configuring a manufacturing process using the results of processed hardware description language (HDL) instructions and other intermediate data, including netlists (instructions that may be stored on a computer-readable medium). The result of such processing may be a mask work that is used in subsequent semiconductor manufacturing processes to produce a processor that implements features of the present disclosure.

[0058] The methods or flow charts provided herein may be implemented in a computer program, software, or firmware embodied in a non-transitory computer-readable storage medium for execution by a general purpose computer or processor. Examples of non-transitory computer-readable storage media include read only memory (ROM), random access memory (RAM), registers, cache memory, semiconductor memory devices, magnetic media such as internal hard disks and removable disks, magneto-optical media, and optical media such as CD-ROM disks and digital versatile disks (DVDs).

Claims

1. 1. A processing device, comprising: Memory, a component having assigned configuration registers and configured to execute a program using data stored in said configuration registers; a power management controller; The power management controller includes: saving data of a first portion of the configuration registers to the memory in a first reduced power state using a first set of linear address space; In the second reduced power state: storing data of a second portion of the configuration registers in the memory using a second set of linear address space; storing data of a third portion of the configuration registers in the memory using a third set of linear address space; 4. The method of claim 3, Processing device.

2. The memory comprises a dynamic random access memory (DRAM) and a static random access memory (SRAM); the data of the first portion of the configuration registers mapped to the first set of linear address space is saved to a DRAM and restored from the DRAM to the first portion of the configuration registers; the data in the second portion of the configuration registers mapped to the second set of the linear address space is saved to a DRAM and restored from the DRAM to the second portion of the configuration registers; data in the third portion of the configuration registers mapped to a third set of the linear address space is saved to a portion of the SRAM that remains powered during the first reduced power state and the second reduced power state. The processing device of claim 1 .

3. a third set of the linear address space, the third set being mapped to the linear address space, the data of the third portion of the configuration register stored in the portion of the SRAM being used to store the data of the first and second portions to the DRAM and to restore the data of the first and second portions from the DRAM to the first and second portions of the configuration register. The processing device of claim 2.

4. the data in the third portion of the allocated configuration registers includes data relating to at least one of a routing table, flow control, a reliability accessibility serviceability (RAS) configuration, and an address map; The processing device of claim 1 .

5. the data in the first portion of the configuration registers is mapped, at compile time, into a first set of the linear address space, the second portion of the configuration registers is mapped, at compile time, into a second set of the linear address space, and the third portion of the configuration registers is mapped, at compile time, into a third set of the linear address space. The processing device of claim 1 .

6. the processing device comprises a display; the first reduced power state is a shallower reduced power state; The shallower reduced power state may include: power is provided to the assigned configuration registers, excluding a display controller that controls the display; and an amount of power supplied to the assigned configuration register is less than an amount of power supplied to the assigned configuration register in the shallower reduced power state; Either of the following: the second reduced power state is a deeper reduced power state in which the assigned configuration registers are not powered. The processing device of claim 1 .

7. The power management controller includes: a logic circuit that interfaces with a plurality of components of the processing device and receives an indication of whether one or more components of the processing device are idle; The processing device of claim 1 .

8. The power management controller includes: configured to store the data in the first portion, the second portion, and the third portion of the configuration register in a portion of memory local to the power management controller. The processing device of claim 7.

9. the power management controller, for a process of transitioning to the first reduced power state and the second reduced power state, transitioning to the first reduced power state by saving the data in the first portion of the configuration registers to the memory using a first set of the linear address space; saving the data in the second portion of the configuration registers to the memory using a second set of the linear address space after transitioning to the first reduced power state; transitioning to the second reduced power state by saving the data in the second portion of the configuration registers to the memory and then saving the data in the third portion of the configuration registers using a third set of the linear address space; 4. The method of claim 3, The processing device of claim 1 .

10. 1. A method for transitioning between power states of a device, comprising: Executing a program using the data stored in the configuration registers; saving data of a first portion of the configuration registers to a memory in a first reduced power state using a first set of linear address space; In the second reduced power state: storing data of a second portion of the configuration registers in the memory using a second set of linear address space; storing data of a third portion of the configuration registers in the memory using a third set of linear address space; the configuration registers are assigned to components of the device; method.

11. the data of the first portion of the configuration registers mapped to the first set of linear address space is saved to a dynamic random access memory (DRAM) of the memory and restored from the DRAM to the first portion of the configuration registers; the data in the second portion of the configuration registers mapped to the second set of the linear address space is saved to a DRAM and restored from the DRAM to the second portion of the configuration registers; the data in the third portion of the configuration register is stored in a portion of a static random access memory (SRAM) that remains powered during the first reduced power state and the second reduced power state. The method of claim 10.

12. a third set of the linear address space, the third set being mapped to the linear address space, the data of the third portion of the configuration register stored in the portion of the SRAM being used to store the data of the first and second portions to the DRAM and to restore the data of the first and second portions from the DRAM to the first and second portions of the configuration register.

12. The method of claim 11.

13. the data in the third portion of the configuration registers includes data relating to at least one of a routing table, flow control, a reliability accessibility serviceability (RAS) configuration, and an address map; The method of claim 10.

14. At compile time, mapping the first portion of the configuration registers into a first set of the linear address space; mapping the second portion of the configuration registers into a second set of the linear address space; mapping the third portion of the configuration registers into a third set of the linear address space; The method of claim 10.

15. the first reduced power state is a shallower reduced power state; The shallower reduced power state may include: power is provided to said configuration registers, except for a display controller that controls a display; an amount of power supplied to the configuration register is less than an amount of power supplied to the configuration register in the shallower reduced power state; and Either of the following: the second reduced power state is a deeper reduced power state in which the configuration registers are not powered; The method of claim 10.

16. transitioning to one of the first reduced power state and the second reduced power state upon receiving an indication that the component is idle; a power management controller storing the data of the configuration registers in the first set of linear address space, the second set of linear address space, and the third set of linear address space. The method of claim 10.

17. for the process of exiting the first reduced power state and the second reduced power state, recovering the data in the third portion of the configuration registers using a third set of the linear address space; restoring the data to the third portion of the configuration registers using a second set of the linear address space; and and exiting the second reduced power state by and after restoring the data to the second portion of the configuration registers, exiting the first reduced power state by restoring the data to the first portion of the configuration registers using a first set of linear address space. The method of claim 10.

18. for the process of transitioning to the first reduced power state and the second reduced power state, transitioning to the first reduced power state by saving the data in the first portion of the configuration registers to the memory using a first set of the linear address space; saving the data in the second portion of the configuration registers to the memory using a second set of the linear address space after transitioning to the first reduced power state; and after saving the data in the second portion of the configuration registers to the memory, transitioning to the second reduced power state by saving the data in the third portion of the configuration registers using a third set of the linear address space. The method of claim 10.

19. 1. A computer-readable storage medium comprising instructions for causing a computer to perform a method for transitioning between power states of a device, the method comprising: The instruction: Executing a program using the data stored in the configuration registers; saving data of a first portion of the configuration registers to a memory in a first reduced power state using a first set of linear address space; In the second reduced power state: storing data of a second portion of the configuration registers in the memory using a second set of linear address space; storing data of a third portion of the configuration registers in the memory using a third set of linear address space; the configuration registers are assigned to components of the device; A computer-readable storage medium.

20. the data of the first portion of the configuration registers mapped to the first set of linear address space is saved to a dynamic random access memory (DRAM) and restored from the DRAM to the first portion of the configuration registers; the data of the second portion of the configuration registers mapped to the second set of the linear address space is saved to the DRAM and restored from the DRAM to the second portion of the configuration registers; the data in a third portion of the configuration registers mapped to a third set of the linear address space is stored in a portion of a static random access memory (SRAM) that remains powered during the first reduced power state and the second reduced power state.

20. The computer readable storage medium of claim 19.

Citation Information

Patent Citations

  • Image forming apparatus and method for controlling the same

    JP2011138224A

  • Operation switching device and program

    JP2012203518A

  • Semiconductor device, semiconductor system, and method for controlling the semiconductor device

    JP2017111745A

  • Flashing and restoring core memory contents to external memory.

    JP2018526705A

  • Save and restore scoreboard

    JP2021515305A