A power-on / off control system, method, and storage medium

By introducing a register recovery module into the SOC to work in conjunction with the power management module, and using DMA technology for data backup and recovery, the problems of data loss after module power-off and excessive power-on time are solved, achieving fast power-on and low power consumption.

CN120762520BActive Publication Date: 2025-11-14XIAMEN UNISOC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511246889.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-09-02
Publication Date
2025-11-14
Estimated Expiration
2045-09-02

AI Technical Summary

Technical Problem

In SOC design, there is a problem of data loss in memory or registers after the module is powered off. At the same time, the power-off and power-on processes take too long, which affects performance and power consumption.

Method used

By employing a register recovery module in conjunction with a power management module, and utilizing DMA technology to perform data backup and recovery during module power-on and power-off processes, the storage element is always connected to the power supply, enabling rapid data backup and recovery.

Benefits of technology

It shortens the module's power-on recovery time, reduces power consumption, improves performance, and avoids data loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120762520B_ABST
    Figure CN120762520B_ABST
Patent Text Reader

Abstract

This invention belongs to the field of control and discloses a power-on / off control system, method, and storage medium, including: a target module, a register recovery module, and a power management module; the target module is a module for performing power-on / off operations; the target module includes storage elements; the register recovery module is used to communicate with the power management module during the power-on / off operation of the target module, and to operate on the data information of the storage elements under the control of the power management module; the register recovery module is always connected to the power supply; the power management module is used for power-on / off control of the target module. By maintaining a constant connection with the power supply, the register recovery module can communicate with the power management module during the power-on / off operation of the target module, completing the operation on the data information of the storage elements of the target module, eliminating the power-on waiting time for the CPU, and shortening the module's power-on recovery time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of control, and in particular relates to a power-on / off control system, method, and storage medium. Background Technology

[0002] A System-on-Chip (SoC) is an integrated circuit that integrates a complete electronic system onto a single chip. It is not simply a stacking of functions, but rather a highly integrated design that combines processor cores, memory, peripheral interfaces, power management, analog modules, and other components to form a self-contained microcomputer system. It features high integration, modular design, low power consumption, and high efficiency, and is used in mobile devices, the Internet of Things (IoT), automotive electronics (such as autonomous driving and multi-screen interaction), and consumer electronics (such as smartwatches and TV chips). The SoC chip is the "brain" of modern electronic devices, driving intelligent and portable development through integration and innovation.

[0003] In modern SoC design, multi-power domains are a common low-power technique. When a module within a power domain is not in operation, it needs to be powered down. Powering down reduces power consumption, but it also leads to data loss in the module's memory or registers. To avoid data loss, the traditional approach is to back up the memory or registers. When the module is powered on again, the CPU or MCU (Micro Control Unit) initializes the module's internal memory or registers. This process often takes a long time, which impacts performance. In other words, if the module is not ready in time when needed and its performance does not meet requirements, it is not suitable to perform power-down to reduce power consumption. However, when performance needs to be guaranteed, the module cannot be powered down, but this would increase power consumption. Therefore, to minimize power consumption, it is necessary to power down the module when it is not in operation. Thus, shortening the module's power-on recovery time has become a pressing issue. Summary of the Invention

[0004] The purpose of this invention is to solve the problem of long power-on time for modules. To this end, a power-on / off control system is provided, comprising:

[0005] Target module, register recovery module, power management module;

[0006] The target module is a module that performs power-on and power-off operations; the target module includes a storage element;

[0007] The register recovery module is used to communicate with the power management module when the target module is powered on or off, and to operate on the data information of the storage element under the control of the power management module. The register recovery module is always connected to the power supply.

[0008] The power management module is used for power-on and power-off control of the target module.

[0009] In one possible implementation, if the storage element of the target module meets the preset requirements, the storage element of the target module remains connected to the power supply at all times.

[0010] If the storage element of the target module does not meet the preset requirements, the register recovery module communicates with the power management module before or after the target module is powered off, and performs backup / restore operations on the data information of the storage element under the control of the power management module.

[0011] In one possible implementation, the preset requirement is determined in the following manner:

[0012] Determine the start and end address values ​​of the storage elements of the target module;

[0013] The size information of the storage element is determined based on the start address value and the end address value;

[0014] If the size information of the storage element exceeds the standard value, it is determined that the storage element of the target module meets the preset requirements;

[0015] If the size information of the storage element does not exceed the standard value, it is determined that the storage element of the target module does not meet the preset requirements.

[0016] In one possible implementation, the power management module is used to accept the power-down operation request of the target module and send a backup operation request to the register recovery module.

[0017] The register recovery module is used to perform a backup operation on the data information of the storage element of the target module according to the received backup operation request and the address information of the storage element of the target module.

[0018] In one possible implementation, the system further includes a backup module;

[0019] The register recovery module is used to write backup parameters into the register of the DMA controller according to the backup operation request, use DMA to back up the data information of the storage element to the backup module according to the backup parameters, and send a backup completion response to the power management module. The backup parameters include the first source address of the storage element, the first target address of the backup module, and the transmission length.

[0020] The power management module is used to receive the backup completion response and power down the target module.

[0021] In one possible implementation, the power management module is configured to accept the power-on operation request of the target module and send a recovery operation request to the register recovery module;

[0022] The register recovery module is used to perform a recovery operation on the data information of the storage element of the target module according to the received recovery operation request and the address information of the storage element of the target module.

[0023] In one possible implementation, the system further includes a backup module;

[0024] The register recovery module is used to write recovery parameters into the register of the DMA controller according to the recovery operation request, and to use DMA to restore the data information of the storage element from the backup module to the storage element according to the recovery parameters, and to send a recovery completion response to the power management module. The recovery parameters include the second source address of the backup module, the second target address of the storage element, and the transmission length.

[0025] The power management module is used to receive the recovery completion response and power on the target module.

[0026] On the other hand, this application provides a power-on / off control method applied to a register recovery module, wherein the register recovery module is always connected to the power supply, and the method includes:

[0027] When the target module is powered on or off, it communicates with the power management module. Under the control of the power management module, it operates on the data information of the storage element of the target module. The power management module is used for power-on and power-off control of the target module.

[0028] In one possible implementation, if the storage element of the target module meets the preset requirements, the storage element of the target module remains connected to the power supply at all times.

[0029] If the storage element of the target module does not meet the preset requirements, data communication is performed with the power management module before the target module is powered off or after it is powered on. Under the control of the power management module, the data information of the storage element is backed up / restored.

[0030] On the other hand, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements any of the above-described power-on / off control methods.

[0031] This application provides a power-on / off control system, including: a target module, a register recovery module, and a power management module. The target module is a module for performing power-on / off operations. The target module includes a storage element. The register recovery module is used to communicate with the power management module during power-on / off operations of the target module, and to operate on the data information of the storage element under the control of the power management module. The register recovery module is always connected to the power supply. The power management module is used for power-on / off control of the target module. By maintaining a constant connection with the power supply, the register recovery module can communicate with the power management module during power-on / off operations of the target module, thereby operating on the data information of the storage element of the target module. This eliminates the power-on waiting time for the CPU and shortens the module's power-on recovery time. It efficiently performs power-on operations while ensuring low power consumption, enabling the module to meet performance requirements. Attached Figure Description

[0032] Figure 1 A schematic diagram of a power-on / off control system provided in an embodiment of this application;

[0033] Figure 2 A system architecture diagram provided for an embodiment of this application;

[0034] Figure 3 A schematic diagram of a signal control module provided in an embodiment of this application;

[0035] Figure 4 This is a schematic diagram of an interactive process provided for an embodiment of this application. Detailed Implementation

[0036] The present invention will be described in detail below through embodiments.

[0037] A System-on-Chip (SoC) is an integrated circuit that integrates a complete electronic system onto a single chip. It is not simply a stacking of functions, but rather a highly integrated design that combines processor cores, memory, peripheral interfaces, power management, analog modules, and other components to form a self-contained microcomputer system. It features high integration, modular design, low power consumption, and high efficiency, and is used in mobile devices, the Internet of Things (IoT), automotive electronics (such as autonomous driving and multi-screen interaction), and consumer electronics (such as smartwatches and TV chips). The SoC chip is the "brain" of modern electronic devices, driving intelligent and portable development through integration and innovation.

[0038] In modern SoC design, multi-power domains are a common low-power technique. When a module within a power domain is not in operation, it needs to be powered down. Powering down reduces power consumption, but it also leads to data loss in the module's memory or registers. To avoid data loss, the traditional approach is to back up the memory or registers. When the module is powered on again, the CPU or MCU (Micro Control Unit) initializes the module's internal memory or registers. This process often takes a long time, which impacts performance. In other words, if the module is not ready in time when needed and its performance does not meet requirements, it is not suitable to perform power-down to reduce power consumption. However, when performance needs to be guaranteed, the module cannot be powered down, but this would increase power consumption. Therefore, to minimize power consumption, it is necessary to power down the module when it is not in operation. Thus, shortening the module's power-on recovery time has become a pressing issue.

[0039] Currently, the process of initializing the internal memory or registers of a module using a CPU or MCU mainly includes: powering on the CPU or MCU and waiting for it to stabilize, and then using the CPU or MCU to transfer data to complete the initialization of the memory or registers. In this process, powering on the CPU or MCU takes time, and transferring data also takes time, ultimately resulting in a slow recovery time when the module is powered on again.

[0040] To address the issue of long module power-on time, firstly, this application provides a power-on / off control system that can shorten the module's power-on recovery time. (See [reference needed]). Figure 1 ,include:

[0041] Target module 101, register recovery module 102, power management module 103.

[0042] The target module 101 is a module that performs power-on and power-off operations; the target module 101 includes a storage element.

[0043] The target module can be a module in a SOC that requires power-on and power-off, or it can be a module in other chips with DMA (Direct Memory Access) modules that requires power-on and power-off, such as a module in an ASIC (Application-Specific Integrated Circuit) or an FPGA (Field-Programmable Gate Array).

[0044] When the target module is not in operation, its corresponding power supply should be turned off promptly to reduce power consumption. Power should be turned on again when it is needed next time. The target module's storage elements include IP registers, subsystem control registers, and dynamic random access memory. IP registers belong to the IP core of a specific power domain, such as DMA, USB (Universal Serial Bus), or GPU (Graphics Processing Unit) registers, and are used to configure and control the functions of that IP. Subsystem control registers manage global control registers for the entire power domain or subsystems across power domains.

[0045] Before the target module is powered off, its storage components need to be backed up so that the target module can be used normally after the next power-on.

[0046] The register recovery module 102 is used to communicate with the power management module 103 when the target module 101 is powered on or off, and to perform backup / restore operations on the data information of the storage element under the control of the power management module 103. The register recovery module 102 is always connected to the power supply.

[0047] For a SoC chip, there are multiple power domains. Some subsystems are located in the Aon (Always on, no power loss) power domain, and the register recovery module is located in such a power domain. Other subsystems are located in the power domain that has power-on and power-off processes. The target module is located in the power domain where power-on and power-off processes occur.

[0048] During power-on and power-off operations of the target module, the register recovery module communicates with the power management module to manipulate the data information of the storage element. The power management module can be a PMU (Power Management Unit), a highly integrated power management module that typically includes multiple voltage regulators, battery management, charging control, clock management, and even some low-power control logic (such as sleep mode). It is mainly used in system-on-a-chip (SoC) or processors, such as mobile application processors (APs), CPUs, and FPGAs. It may include a digital control interface to support dynamic voltage and frequency adjustment.

[0049] The power management module is used for power-on and power-off control of the target module.

[0050] The power management module can supply power to the target module, enabling it to power on, and it can also stop supplying power to the target module, enabling it to power off.

[0051] This application provides a power-on / off control system, including: a target module, a register recovery module, and a power management module; the target module is a module for performing power-on / off operations; the target module includes a storage element; the register recovery module is used to communicate with the power management module during the power-on / off operation of the target module, and to operate on the data information of the storage element under the control of the power management module; the register recovery module is always connected to the power supply; the power management module is used for power-on / off control of the target module. By maintaining a constant connection with the power supply, the register recovery module can communicate with the power management module during the power-on / off operation of the target module, completing the operation on the data information of the storage element of the target module, eliminating the power-on waiting time for the CPU, and shortening the module's power-on recovery time.

[0052] In one possible implementation, if the storage element of the target module meets the preset requirements, the storage element of the target module remains connected to the power supply at all times.

[0053] If the storage element of the target module does not meet the preset requirements, the register recovery module communicates with the power management module before or after the target module is powered off, and performs backup / restore operations on the data information of the storage element under the control of the power management module.

[0054] For target modules that require power-on and power-off operations, different measures can be taken to shorten their power-on recovery time. The first method is to establish a non-power-loss Aon region inside the target module and place the target module's storage elements, such as registers and memory, in the non-power-loss Aon region. In this way, even if the target module is powered off, the data in the storage elements will not be lost because the target module's storage elements are always connected to the power supply. Therefore, there is no need to initialize the storage elements when the target module is powered on again. Under the first method, the backup and recovery operation is eliminated, the initialization time of the storage elements is 0, and the target module has the fastest power-on speed.

[0055] The second method involves a register recovery module that communicates with the power management module before and after the target module is powered off. Under the control of the power management module, the module performs backup / restore operations on the data information of the storage element. After backing up the data information of the storage element, the data information is preserved, eliminating concerns about data loss. When needed, the register recovery module restores the data information of the storage element, enabling the target module to be powered on quickly.

[0056] In this embodiment, for a target module that meets the preset requirements, the storage element of the target module is kept connected to the power supply at all times, thereby achieving zero time consumption for storage element initialization. For a target module that does not meet the preset requirements, the data information of the storage element can be backed up / restored through a register recovery module that is kept connected to the power supply at all times, thus shortening the initialization time of the storage element.

[0057] In one possible implementation, the preset requirement is determined in the following manner:

[0058] Determine the start and end address values ​​of the storage elements of the target module;

[0059] The size information of the storage element is determined based on the start address value and the end address value;

[0060] If the size information of the storage element exceeds the standard value, it is determined that the storage element of the target module meets the preset requirements;

[0061] If the size information of the storage element does not exceed the standard value, it is determined that the storage element of the target module does not meet the preset requirements.

[0062] The start and end address values ​​of a storage element are typically used to identify the range of that storage region in the address space. These two addresses define a contiguous block of memory, facilitating access to data in that region by the CPU, program, or hardware device. Based on the start and end address values, the size information of the storage element is determined. For example, if the standard value is 4Kb, and the standard value is 1Kb, the determined storage element capacity is relatively large, indicating that the storage element of the target module meets the preset requirements. If the standard value is 16Kb, the determined storage element capacity is relatively small, indicating that the storage element of the target module does not meet the preset requirements.

[0063] In this embodiment, by determining the size information of the storage element, different strategies can be applied to different sizes of storage elements to specifically shorten the power-on time of the target module.

[0064] For storage elements with large capacities, considering the significant initialization workload, a continuous power-on (Aon) region is chosen within the target module to ensure the storage element remains constantly connected to the power supply. This eliminates the need for initialization and allows for extremely fast power-on of the target module. For storage elements with smaller capacities, the initialization workload is less, allowing for normal power-off and power-on of the target module. Furthermore, this application utilizes a register recovery module that remains constantly connected to the power supply to recover the data information from the storage element, further shortening the initialization time.

[0065] In one possible implementation, the power management module is used to accept the power-down operation request of the target module and send a backup operation request to the register recovery module.

[0066] The register recovery module is used to perform a backup operation on the data information of the storage element of the target module according to the received backup operation request and the address information of the storage element of the target module.

[0067] Scenarios that can trigger the target module to power down include:

[0068] Low power mode demand trigger

[0069] Target module hibernation / standby: When the SOC enters a global low-power mode, non-critical target modules will be powered down to reduce static power consumption.

[0070] Dynamic voltage and frequency adjustment: If the target module is not currently in operation, it may be completely powered down instead of just reducing the voltage / frequency.

[0071] Function idle timeout trigger

[0072] Automatic hibernation: Idle time is detected by a hardware timer or software watchdog. If the idle time is too long, the target module will be automatically shut down.

[0073] Task queue idle: For example, after the DSP (Digital Signal Processor) finishes processing data and there are no new tasks, power gating is triggered.

[0074] User or software actively requests trigger

[0075] Application layer commands: Users can trigger the target module to shut down (e.g., disable the Bluetooth module) via command line or other means.

[0076] Operating system power management: The kernel dynamically unloads drivers based on load.

[0077] Security or error handling trigger

[0078] Overheat protection: The temperature sensor triggers the thermal management unit to shut down high-power modules.

[0079] Hardware error: In the event of a bus malfunction, the safety mechanism may isolate and power down the target module.

[0080] Multi-power domain coordinated triggering

[0081] Dependency: If a target module depends on another module that has been powered down, they may be cascaded down.

[0082] Voltage island isolation: To avoid leakage, the local domain may be required to shut down synchronously when the adjacent power domain is powered down.

[0083] When the target module is triggered to power down, the power management module receives the power down operation request from the target module. Then, the power management module sends a backup operation request to the register recovery module, requesting the register recovery module to back up the data information of the target module's storage elements. Specifically, the register recovery module will back up the data information of the target module's storage elements according to the address information of the target module's storage elements.

[0084] In this embodiment, when the target module is powered off, the data information of the target module's storage element is backed up to avoid the problem of data loss of the storage element.

[0085] In one possible implementation, the system further includes a backup module;

[0086] The register recovery module is used to write backup parameters into the register of the DMA controller according to the backup operation request, use DMA to back up the data information of the storage element to the backup module according to the backup parameters, and send a backup completion response to the power management module. The backup parameters include the first source address of the storage element, the first target address of the backup module, and the transmission length.

[0087] The power management module is used to receive the backup completion response and power down the target module.

[0088] The backup module can be a type of dynamic random access memory, such as double data rate synchronous dynamic random access memory (DDR). DDR has advantages such as high bandwidth and high-speed data transmission, high density and large capacity support, and low price, and can be used to store data information of storage elements.

[0089] The register recovery module can utilize DMA to back up the data information of the storage element to the backup module according to the first source address of the storage element, the first target address of the backup module, and the transfer length. Common types of DMA include block transfer mode, which transfers a large block of continuous data at once; circular / spread cluster transfer mode, which reads data from multiple non-contiguous memory regions or writes data to multiple non-contiguous target regions, often used for complex data structures; single-byte / single transfer, which transfers only one byte or word at a time, suitable for low-speed devices; and burst transfer mode, which continuously and quickly transfers multiple data, improving efficiency.

[0090] After completing the data backup operation, the register recovery module sends a backup completion response to the power management module, so that the power management module can power down the target module.

[0091] In this embodiment, DMA technology for high-speed data transmission is used to back up the data information of the storage element before the target module is powered off, so that the target module can be powered off quickly.

[0092] In one possible implementation, the power management module is configured to accept the power-on operation request of the target module and send a recovery operation request to the register recovery module;

[0093] The register recovery module is used to perform a recovery operation on the data information of the storage element of the target module according to the received recovery operation request and the address information of the storage element of the target module.

[0094] During the power-on process of the target module, the backup module can send a notification to the register recovery module that it is in a power-on state, so that the register recovery module can subsequently retrieve the data information of the storage element from the backup module. Scenarios that can trigger the power-off of the target module include:

[0095] Target module startup or reset trigger

[0096] Cold Boot: When the SOC is powered on, all necessary target modules (such as the main control CPU and bus controller) will be powered on step by step in a power sequence.

[0097] Warm Reset: Some target modules require a power cycle after a reset to restore their working state.

[0098] Task requirements triggered

[0099] Functional module activation, CPU / GPU load: When the task scheduler assigns a task to a target module, the power domain where it is located is powered on.

[0100] Peripheral requests: For example, when the camera starts up, the image signal processor and MIPI (Mobile Industry Processor Interface) interface power domains are powered on.

[0101] Dynamic power management: When switching from a low-power state to an active state, a power cycle is required to restore the voltage or frequency.

[0102] External event wake-up trigger

[0103] Interrupt signal: An external interrupt (such as a button wake-up) triggers the power management unit (PMU) to power on the relevant target module, such as the GPIO (General Purpose Input / Output) controller.

[0104] The timer wakes up and activates the communication module in hibernation.

[0105] Dependency-based triggering

[0106] Master-slave module collaboration: When the master module (such as the CPU) accesses a target module, if the latter is in a power-down state, the bus controller will trigger it to power on.

[0107] Voltage island dependency: Some target modules require a specific power supply voltage (such as the 1.8V domain of the analog module), and are automatically powered on when the voltage island is enabled.

[0108] User or software actively requests trigger

[0109] Operating system scheduling: Tap the screen to wake up the display panel, enable airplane mode, and then manually turn on the cellular radio frequency.

[0110] Error recovery and security mechanism triggering

[0111] Watchdog timeout: After the target module crashes, the watchdog reset triggers a power-on.

[0112] Security isolation lifted: After the trusted execution environment confirms security, power supply to the isolated module is restored.

[0113] When the target module is triggered to perform a power-on operation, the power management module will receive the power-on operation request from the target module. Then, the power management module will send a recovery operation request to the register recovery module to request the register recovery module to perform a recovery operation on the data information of the storage element of the target module. Specifically, the register recovery module will read the corresponding data information of the storage element from the backup module according to the address information of the storage element of the target module and restore the data information from the backup module.

[0114] In this embodiment of the application, when the target module needs to be powered on, the data information of the storage element can be quickly recovered from the backup module through the register recovery module, which is always connected to the power supply. Since the register recovery module is always connected to the power supply, the time for powering on the target module is eliminated, which can greatly shorten the total time for data recovery of the storage element.

[0115] In one possible implementation, the system further includes a backup module;

[0116] The register recovery module is used to write recovery parameters into the register of the DMA controller according to the recovery operation request, and to use DMA to restore the data information of the storage element from the backup module to the storage element according to the recovery parameters, and to send a recovery completion response to the power management module. The recovery parameters include the second source address of the backup module, the second target address of the storage element, and the transmission length.

[0117] The power management module is used to receive the recovery completion response and power on the target module.

[0118] This application utilizes DMA or MMU (memory management unit) to perform data backup / restore operations. Based on the second source address of the backup module, the second target address of the storage element, and the transfer length, the data information of the storage element is recovered from the backup module. After completing the data recovery operation, the register recovery module sends a recovery completion response to the power management module, enabling the power management module to power on the target module and start its operation.

[0119] In this embodiment, DMA technology for high-speed data transmission is used to restore the data information of the storage element before the target module is powered on, so that the target module can be powered on quickly and start normally.

[0120] See Figure 2This is a system architecture diagram provided in this application. Figure 2 The diagram illustrates a subsystem A (equivalent to the target module mentioned in this application) that requires power-on operation. Subsystem A includes a central processing unit (CPU), registers 1 and 2, a large-capacity register or memory Aon area, and an Aon subsystem comprising a power management unit (PMU) for controlling the power-on and power-off of subsystem A (equivalent to the power management module mentioned in this application), a register recovery mechanism (RRM) (equivalent to the register recovery module mentioned in this application), and a DMA. A DDR storage medium includes a register backup area. The register recovery mechanism (RRM) in the Aon subsystem controls the DMA to back up / restore registers 1 and 2 in subsystem A. Before subsystem A is powered off, registers 1 and 2 are backed up to the register backup area of ​​the DDR storage medium. Before subsystem A is powered on, registers 1 and 2 are restored from the register backup area of ​​the DDR storage medium. Since the register recovery mechanism (RRM) is always powered on, its initialization is completed in advance, eliminating the need to wait for CPU initialization. Furthermore, DMA data transfer speed is extremely fast; using DMA for data backup / restore significantly improves the power-on initialization speed of subsystem A. For large-capacity registers, a non-power-loss Aon area is established within the subsystem to maintain register or memory data. This method offers the fastest recovery speed.

[0121] See Figure 3 This is a schematic diagram of a signal control module provided in this application. The RRM internally stores the address values ​​that need to be backed up and restored for each subsystem, such as "Subsystem A: REG start address, Subsystem A: REG end address, Subsystem A: DDR start address, Subsystem A: DDR end address". The RRM internally includes a logic control unit (Controller), which is responsible for signal communication and control operations with the PMU / DMA. Specifically, the Controller receives the power-down signal, power-on completion signal, and DDR power-on completion signal from the power management PMU. Based on the power-down signal and power-on completion signal of the subsystem A, it controls the DMA to start data transfer. After the transfer is completed, it receives the DMA transfer completion signal from the DMA and then sends the subsystem A backup / restore completion signal to the power management PMU.

[0122] See Figure 4This diagram illustrates an interactive process provided in this application. The Power Management Unit (PMU) first sends a power-down signal to the Resource Management Unit (RRM). Based on this signal, the RRM writes the backup start and end addresses of subsystem A to the DMA (Distributed Memory Management) and writes a DMA start / relocation command. After completing its task, the DMA replies with a DMA relocation completion signal to the RRM. Based on this signal, the RRM returns a subsystem A backup completion signal to the PMU. Then, the PMU shuts down subsystem A, thus achieving the power-down of subsystem A. If an external interruption or service requires restarting subsystem A, the PMU first powers on subsystem A and waits for it to stabilize. Then, the PMU sends a subsystem A power-on completion signal to the RRM. Based on this signal, the RRM writes the subsystem A recovery start and end addresses to the DMA and writes a DMA start / relocation command. After completing its task, the DMA replies with a DMA relocation completion signal to the RRM. Based on this signal, the RRM returns a subsystem A recovery completion signal to the PMU. Subsystem A can then resume normal operation, thus achieving the power-on of subsystem A. In contrast, the existing A subsystem power-on method, from the PMU sending the A subsystem power-on completion signal to the RRM and the RRM returning the A subsystem recovery completion signal to the PMU, can only power on the CPU and wait for it to stabilize. Therefore, the power-on and power-off method provided in this application has greatly shortened the power-on recovery time.

[0123] Secondly, this application provides a power-on / off control method applied to a register recovery module, wherein the register recovery module is always connected to a power supply, and the method includes:

[0124] When the target module is powered on or off, it communicates with the power management module. Under the control of the power management module, it performs backup / restore operations on the data information of the storage element of the target module. The power management module is used for power-on / off control of the target module.

[0125] In one possible implementation, if the storage element of the target module meets the preset requirements, the storage element of the target module remains connected to the power supply at all times.

[0126] If the storage element of the target module does not meet the preset requirements, data communication is performed with the power management module before the target module is powered off or after it is powered on. Under the control of the power management module, the data information of the storage element is backed up / restored.

[0127] Thirdly, this application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements any of the above-described power-on / off control methods.

[0128] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention without departing from the principles and spirit of the present invention.

Claims

1. A power-on / off control system, characterized in that, include: Target module, register recovery module, power management module; The target module is a module that performs power-on and power-off operations; the target module includes a storage element; The register recovery module is used to communicate with the power management module when the target module is powered on or off, and to perform backup / restore operations on the data information of the storage element under the control of the power management module. The register recovery module is always connected to the power supply. The power management module is used for power-on / off control of the target module; The power management module is used to accept the power-down operation request of the target module and send a backup operation request to the register recovery module. The register recovery module is used to perform a backup operation on the data information of the storage element of the target module according to the received backup operation request and the address information of the storage element of the target module; If the storage element of the target module meets the preset requirements, the storage element of the target module will always remain connected to the power supply; If the storage element of the target module does not meet the preset requirements, the register recovery module communicates with the power management module before or after the target module is powered off, and performs backup / restore operations on the data information of the storage element under the control of the power management module.

2. The system according to claim 1, characterized in that, The preset requirements are determined in the following manner: Determine the start and end address values ​​of the storage elements of the target module; The size information of the storage element is determined based on the start address value and the end address value; If the size information of the storage element exceeds the standard value, it is determined that the storage element of the target module meets the preset requirements; If the size information of the storage element does not exceed the standard value, it is determined that the storage element of the target module does not meet the preset requirements.

3. The system according to claim 1, characterized in that, The system also includes a backup module; The register recovery module is used to write backup parameters into the register of the DMA controller according to the backup operation request, use DMA to back up the data information of the storage element to the backup module according to the backup parameters, and send a backup completion response to the power management module. The backup parameters include the first source address of the storage element, the first target address of the backup module, and the transmission length. The power management module is used to receive the backup completion response and power down the target module.

4. The system according to claim 1, characterized in that, The power management module is used to accept the power-on operation request of the target module and send a recovery operation request to the register recovery module. The register recovery module is used to perform a recovery operation on the data information of the storage element of the target module according to the received recovery operation request and the address information of the storage element of the target module.

5. The system according to claim 4, characterized in that, The system also includes a backup module; The register recovery module is used to write recovery parameters into the register of the DMA controller according to the recovery operation request, and to use DMA to restore the data information of the storage element from the backup module to the storage element according to the recovery parameters, and to send a recovery completion response to the power management module. The recovery parameters include the second source address of the backup module, the second target address of the storage element, and the transmission length. The power management module is used to receive the recovery completion response and power on the target module.

6. A power-on / off control method, characterized in that, The method, applied to a register recovery module that remains constantly connected to a power supply, includes: When the target module is powered on or off, it communicates with the power management module. Under the control of the power management module, it performs backup / restore operations on the data information of the target module's storage elements. Based on the received backup operation request and the address information of the target module's storage elements, it performs backup operations on the data information of the target module's storage elements. The power management module is used for power-on / off control of the target module, accepts the target module's power-off operation request, and sends a backup operation request to the register recovery module. If the storage element of the target module meets the preset requirements, the storage element of the target module will always remain connected to the power supply; If the storage element of the target module does not meet the preset requirements, data communication is performed with the power management module before the target module is powered off or after it is powered on. Under the control of the power management module, the data information of the storage element is backed up / restored.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method of claim 6.

Citation Information

Patent Citations

  • Power-off circuit, direct-current combination power supply system and power-off control method

    CN103715750A

  • Electric quantity data storage method for electric energy meter

    CN105334383A