Storage-recovery engine for access control
By using the save-restore engine and isolated local memory in the system-on-chip, the security and efficiency issues of component configuration data recovery after power failure in the SoC are solved, achieving safer, faster, and low-power data recovery, improving Improve system security and recovery efficiency.
Patent Information
- Application Number
- CN202280092893.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-18
- Publication Date
- 2024-10-08
AI Technical Summary
In systems on a chip (SoC), the security and efficiency of recovering component configuration data after a power failure are issues. Existing technologies are difficult to effectively save and restore the configuration data of access control (AC) components or registers, and software- or DRAM-based solutions There are high power consumption and security risks.
Utilizes a Save-Restore Engine (SRE) to leverage isolated local memory to save and restore configuration data for AC components or other registers during a power crash event by using non-memory mapped pseudo-dual-port SRAM or encryption in the always-on power domain DRAM, ensuring data security and efficient recovery.
It achieves safer, faster, and low-power component configuration data preservation and recovery, prevents access from untrusted components, avoids the need for data integrity protection, and improves system security and recovery efficiency.
Smart Images

Figure CN118749093A_ABST
Abstract
Description
Background Art
[0001] The present description relates to systems having integrated circuit devices.
[0002] A system on a chip (SoC) is an integrated circuit that integrates different components of a computing device, which may include, for example, a central processing unit (CPU), memory, input / output ports, a cellular radio, and auxiliary storage devices, etc. In contrast to the traditional motherboard-based PC architecture, where the motherboard houses and connects removable or replaceable components, an SoC integrates all of these components into a single integrated circuit. SoCs are commonly used in mobile computing, edge computing, and embedded systems, such as smartphones, tablets, WiFi routers, Internet of Things (IoT) devices, and the like.
[0003] The SoC may include one or more subsystems, and each subsystem may include multiple modules, such as client devices. For example, a module may include memory mapped resources or I / O mapped resources. Modules may be isolated from each other and may belong to different security domains, which means that the system assumes that devices do not trust each other. Therefore, each module may be implemented with a device and configuration information that controls which other modules on the device can communicate with the module.
[0004] When the SoC or module loses its power and then regains power (eg, due to the device entering a sleep state), the configuration information about which modules can communicate with which other modules needs to be restored from the saved state in a safe manner. Summary of the invention
[0005] This specification describes techniques for implementing a secure save-restore engine (SRE) for saving and restoring configuration data of components in a computing device during a power crash event (during which the system is powered off or components are shut down to save power). The SRE can utilize isolated local memory that is powered on during a power crash event, which can prevent compromised or untrusted code from modifying the saved configuration data. One application of the SRE is to save and restore configuration data of access control (AC) components or registers that govern which components of a system are allowed to communicate with which other components.
[0006] The subject matter described in this specification can be implemented in specific embodiments to achieve one or more of the following advantages. The save-restore engine (SRE) described in this specification can implement a more secure hardware-based state machine to perform save and restore of configuration data of components (e.g., AC components or other registers) in a computing device. The SRE is configured to use isolated local memory that has an always-on or backup power rail during a power crash event. The isolation of the local memory protects the configuration data from being accessed by untrusted components on the SoC. In addition, the isolation of the local memory makes it safe from being affected by at-risk application software.
[0007] The techniques described in this specification provide several advantages over other mechanisms for saving and restoring configuration data. The techniques described in this specification perform significantly faster and consume significantly less power than software-based and dynamic random access memory (DRAM)-based solutions. For example, using a DRAM controller and DRAM physical layer to perform a save-restore operation is relatively expensive in terms of wake-up time and power consumption after a power crash event.
[0008] SRE can implement decentralized data packing and unpacking during the saving and restoration of configuration data of AC components or other registers. Each component to be saved can notify SRE of the size of the data that needs to be saved in the first transaction of the save operation. Therefore, each component to be saved can perform its local data packing during the save process, and can perform its local unpacking during the restore process, which helps to efficiently utilize local memory and reduce restore time. Compared with software-based solutions or DRAM-based hardware solutions, the SRE-based approach provides better power usage and better protection of the data of AC components or other registers, and avoids the need for integrity protection of data. SRE can send a special signal to the AC component or other register, which causes the AC component or other register to block any client transactions with the AC component or other register until the SRE completes the save or restore operation.
[0009] The techniques described in this specification can prevent access to local resources until the restoration of the AC component or other registers is complete. Therefore, the techniques described in this specification can prevent certain types of attacks that are possible under software-based solutions. For example, the techniques described in this specification can prevent other entities from maliciously obtaining information from protected resources during the period between the issuance of a reset instruction and the completion of the restoration of the configuration of the AC component or other registers.
[0010] The details of one or more embodiments of the subject matter of this specification are set forth in the drawings and description below. Other features, aspects, and advantages of the subject matter will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 is a diagram of an example computing device.
[0012] Figure 2 is a diagram of an example save-restore engine (SRE).
[0013] Figure 3 is a flow chart of an example process for saving configuration data.
[0014] Figure 4 is a flow chart of an example process for restoring configuration data.
[0015] Figure 5 is a diagram of an example generic save-restore widget.
[0016] Figure 6 is a diagram of an example save-restore widget for a third-party access control component.
[0017] Like reference numbers and designations in the various drawings indicate like components. DETAILED DESCRIPTION
[0018] Figure 1 1 is a diagram of an example computing device 100. The computing device 100 may be a system-on-chip (SoC) device installed on a mobile device (e.g., a smart phone or a tablet device). The SoC is an integrated circuit that includes each component of the system on a single silicon substrate or includes each component of the system on multiple interconnected dies, such as using a silicon interposer, stacked dies, or an interconnect bridge.
[0019] The computing device 100 includes one or more subsystems, and each subsystem may include one or more client devices. To improve operational integrity and data security, the client devices may be isolated from each other, and the system may be designed to operate so that the devices do not trust each other. To this end, each client device may have a corresponding access control (AC) component that is configured to control which other components on the computing device 100 can communicate with the client device or other client devices. Each client device may have other registers that need to be saved and restored across power crashes.
[0020] AC components can be implemented as hardware security components that manage the security of transactions in the subsystem and provide isolation between resources in the subsystem (e.g., memory mapping components and IO mapping components). Memory mapping components are resources that can be accessed by an initiator (such as a CPU) by addressing the resource using a specific address in the system memory map. Examples of memory mapping components include static random access memory (SRAM), dynamic random access memory (DRAM), and configuration registers. IO mapping components are resources that are not explicitly memory mapped. The initiator can access the IO mapping components using a special programming sequence customized for each IO mapping component. Examples of IO mapping components include first-in-first-out (FIFO) buffers, peripheral devices such as peripheral component interconnect express (PCIE), serial peripheral interface (SPI), etc. Examples of AC components in computing devices include firewalls, domain allocators (RAs), and system-level memory management units (SMMUs). For example, Figure 1 AC component 112 , AC component 114 , AC component 120 , and third-party AC component 116 are shown.
[0021] When the subsystem is power gated, the computing device 100 may include multiple retention registers to maintain the data of the AC components. For example, the SoC may include retention registers for control registers in the AC components, and the retention registers may be located in the non-power gated power rail. However, during a power crash event, the retention registers also lose their contents. Therefore, when the computing device 100 loses its power (e.g., when the power rail crashes), it is desirable to save the data of the AC components or other registers (e.g., the state and configuration of the AC components) in some area on the computing device 100 with active power, so that when the computing device 100 restores its power (e.g., when the power rail is powered on again), the AC components or other registers can be restored back.
[0022] The computing device 100 includes a save-restore engine (SRE) 102. The SRE 102 is configured to save configuration data (e.g., state data and configuration data) of an AC component or other register (e.g., AC component 112) located in a power domain 150 affected by a power crash event in an isolated local memory 106. The SRE 102 is configured to restore the configuration data of the AC component or other register from the isolated local memory 106 when power to the power domain 150 is restored.
[0023] A power domain is a collection of gates and devices powered by the same power and ground supplies. For example, AC component 112, AC component 114, and third-party AC component 116 are located in the same power domain 150. As another example, isolated local memory 106, SRE 102, AC table 104, and power manager 108 are located in the same power domain 152, and the power of power domain 152 is always on.
[0024] In some implementations, an AC component (e.g., a firewall) may include additional functionality to support the save and restore operations of the SRE. For example, the AC component may include an identification of an SRE save request or restore request. And when a save request or restore request is received, the AC component may lock system access to the configuration data of the AC component during the save / restore operation.
[0025] In some implementations, the AC component may be configured with a mechanism to compress the configuration data to be saved in the isolated local memory. The configuration information that needs to be saved and restored may include highly compressible information. For example, in order to save storage space in the isolated local memory 106, a widget 118 (e.g., a compression widget) may be deployed to compress the configuration information. As another example, the widget 118 may use an address mapping table to select key control registers in the AC component 116 that need to be saved. Therefore, the amount of configuration data to be saved may be reduced.
[0026] In some implementations, a component may have multiple unused address locations between address locations that need to be saved or restored. When the payload for the save / restore operation is compacted, these unused address locations can be avoided by skipping these locations. In some implementations, a component may have multiple addresses that implement a small amount of data (e.g., less than four bytes of data) that needs to be saved or restored. Therefore, data from multiple addresses can be combined into a single payload for a given transaction for a save / restore operation. In some implementations, the AC component may implement a custom compact or decompact method suitable for the AC component. Therefore, the SRE 102 may not know the data structure of the configuration registers of the AC component participating in the save / restore operation. For example, the SRE mechanism may act as a plug operation (e.g., a plug connected to the system bus 110 and the signal 122), a register operation (e.g., a register that makes an entry to the AC component table), and a play operation.
[0027] The computing device 100 includes a power manager 108 that is configured to control power provided to multiple power domains on the device. For example, the power manager is configured to control power provided to an AC component 112 in a power domain 150 and a corresponding client device of the AC component. The power manager 108 may issue a power crash operation in the power domain 150. The power manager 108 may restore power to the power domain 150. In some implementations, during a power crash event, the power manager 108 may disable an address remapper 128 in a subsystem of the computing device 100. The address remapper 128 may deliver different addresses to different components in the computing device 100, for example, delivering different addresses to different DRAMs. By disabling the address remapper 128, the AC component may have a static address through a static mapping in the physical address space.
[0028] The power manager 108 may communicate with the SRE 102 so that the SRE 102 may perform a save operation and a restore operation. For example, the power manager 108 may send a save request, such as “saveReq” 130, to the SRE 102 to initiate a save operation. The power manager 108 may send an identification of an AC component, such as “saveSswpid” 132, to the SRE 102 to identify the AC component for which configuration data needs to be saved. When the save operation is completed, the power manager 108 may receive a save response, such as “saveRdy” 134, from the SRE 102. The power manager 108 may send a restore request, such as “restoreReq” 138, to the SRE 102 to initiate a restore operation. The power manager 108 may send an identification of an AC component, such as “restoreSswpid” 140, to the SRE 102 to identify the AC component for which configuration data needs to be restored. When the restore operation is complete, power manager 108 may receive a restore response, eg, “restoreRdy” 142 , from SRE 102 .
[0029] The computing device 100 includes an access control (AC) table 104. The AC table 104 defines one or more AC components in the computing device 100 that need to be saved and / or restored during a power crash event. The AC table 104 may be a hard-coded table and each computing device 100 may have a corresponding AC table. The AC table 104 includes one or more entries corresponding to one or more AC components in the computing device 100, and each entry may be indexed using an identifier of the corresponding AC component. The identifier identifies the AC component in the computing device 100.
[0030] In some implementations, the fields of each entry may include a field indicating whether the associated AC component entry is valid and a field indicating the starting address of the associated AC component. During a save operation, the SRE may read configuration data for the AC component from a memory location starting at the starting address of the AC component. During a restore operation, the SRE may write configuration data to a memory location starting at the starting address of the AC component. In some implementations, the computing device may include multiple subsystems, and each subsystem may include one or more AC components. Each entry in the AC table 104 may be indexed by an identification of the subsystem and an identification of the AC component in the subsystem.
[0031] The computing device 100 includes an isolated local memory 106. The isolated local memory 106 is accessible only to the SRE 102, is not memory mapped, and is not accessible to software. For example, the isolated local memory 106 may include a non-memory mapped pseudo dual-port SRAM for storage and retention. As another example, the isolated local memory 106 may include a DRAM that can be used to save and restore configuration data of the AC components, and the system may use cryptographic methods such as authentication through encryption / decryption, anti-replay protection, etc. to protect the configuration data stored in the DRAM from potential tampering. Therefore, the isolated local memory 106 is protected from untrusted security components and / or transactions. The isolated local memory 106 is in an always-on power domain 152. During a power crash event, the isolated local memory 106 may have power so that the configuration data of the AC components stored in the isolated local memory 106 will not be lost. During a power crash event, the SRE 102 may save the configuration data of each of the one or more AC components in the isolated local memory 106. When power is restored, SRE 102 may restore the configuration data from isolated local memory 106 to each of the one or more AC components.
[0032] After successfully saving the configuration data of the AC component in the isolated local memory 106, the SRE 102 can be configured to send a signal 122 to the AC component (e.g., the AC component 112 and / or the AC component 114). For example, the signal 122 can indicate that a restore operation of the AC component is pending. The signal can cause the AC component to enter a state in which other components or transactions cannot access the configuration data of the AC component until the restore operation is completed. In some implementations, the signaling can be implemented without sideband hardware signals by having the SRE 102 write to special registers in the AC component 112 or the AC component 114.
[0033] In some implementations, the SRE 102 may be configured to send a signal 122 to a widget 118 connected to a third-party AC component 116. For example, the signal 122 may indicate that a recovery operation is pending for the third-party AC component 116. The signal may cause the widget 118 to enter a state in which other components or transactions cannot access the configuration data of the third-party AC component 116 until the recovery operation is complete.
[0034] The computing device 100 may include a system bus 110 that connects components of the computing device 100 in a power domain 152 and components of the computing device 100 in a power domain 150. The SRE 102 may communicate with the AC components via the system bus 110. The power manager 108 may communicate with the AC components via the system bus 110. In some implementations, the system bus 110 may communicate with a subsystem power management component 126 or 124 that communicates with the AC components. The subsystem power management component may ensure that the subsystem is unavailable until the access control configuration of the AC components of the subsystem is restored.
[0035] In some implementations, computing device 100 may include third-party AC component 116. The computing device may include widget 118 configured to implement a save-restore tracker that tracks when a save operation or a restore operation begins and ends. Because third-party components may not be configured to interpret save or restore operations from SRE 102, widget 118 may help support save and restore operations by identifying SRE save or restore requests (e.g., receiving signal 122 from the SRE) and locking system access to configuration data of the third-party AC component during the save or restore operation.
[0036] Figure 2 is a diagram of an example save-restore engine (SRE) 200, which may be Figure 1 200. The SRE 200 may accept a save and / or restore request from a power manager. The SRE 200 may perform a save operation including identifying AC components listed in the AC table 202, and saving configuration data from the AC components to an isolated local memory 204. The SRE 200 may perform a restore operation including identifying AC components listed in the AC table 202 that have been saved in the isolated local memory 204, and restoring the configuration data of the AC components from the isolated local memory 204 to the AC components.
[0037] SRE 200 may implement hardware-based state machines, such as save state machine 206 and restore state machine 208, to perform save and restore of configuration data of AC components. That is, SRE has no software interface. Therefore, SRE may isolate isolated local memory 204 from system accesses generated by transactions and / or components of the computing device.
[0038] SRE 200 may include a local table 210. Local table 210 includes a plurality of entries, and each entry may correspond to an AC component in a computing device or a subsystem of the computing device. Each entry may be indexed by an identification of an AC component or an identification of a subsystem.
[0039] For each AC component, an entry of the local table 210 may include a first field, such as a VLD bit, indicating whether the AC component was successfully saved in the isolated local memory 204. For example, each entry of the local table 210 may include a field, such as a bit, indicating whether the configuration data of the AC component of the subsystem was successfully saved in the isolated local memory. If the save operation completed successfully, the bit may be set to 1. If the save operation did not complete successfully, for example, an error occurred, the bit may be set to 0. If the restore operation completed successfully, the bit may be reset to 0. In some implementations, the bit may be set to 0 during a cold reset of the computing device.
[0040] For each AC component, the entry of the local table 210 may include a second field indicating the starting address of the AC component in the isolated local memory 204 to perform the save operation and the restore operation. For example, the field may be 32 bits or 64 bits and may be set when the first save operation is performed for the corresponding AC component. During a cold reset of the computing device, the field may be reset to 0.
[0041] In some implementations, an entry of the local table 210 may include a third field, e.g., a set bit, indicating whether the AC component has been mapped into the isolated local memory 204 for save operations and restore operations. For example, the field may be a single bit and may be set when a first save operation is performed for the corresponding AC component. During a cold reset of the computing device, the field may be reset to 0.
[0042] In some implementations, SRE 200 may send signal 220 to the AC component during a save operation or during a restore operation. For example, local table 210 may send signal 220. Signal 220 may indicate to an AC component (e.g., a firewall in a subsystem) that a save or restore operation is pending. In response to receiving signal 220, the AC component may enter a state in which only SRE 200 may access the AC component. That is, the AC component may block access through a port of the AC component by other components or transactions in the computing device.
[0043] The SRE 200 includes a hardware-based state machine to perform save and restore of configuration data of the AC component. The SRE 200 may include a save state machine 206 and a restore state machine 208. The save state machine 206 stores and updates state information, such as addresses and counters of pointers, during a save operation. The save state machine 206 may interact with the power manager through a save interface 212. The save state machine 206 may access information from the local table 210, such as accessing information from a corresponding entry associated with the AC component. For example, the save state machine 206 may obtain a starting address of the AC component in the isolated local memory 204. The save state machine 206 may write information to the local table 210, such as writing a corresponding entry associated with the AC component. For example, after allocating memory space for the AC component in the isolated local memory 204, the save state machine 206 may save the starting address of the AC component in the isolated local memory 204 in the local table 210. As another example, after the save operation is successful, the save state machine 206 may set the save success bit to 1.
[0044] The save state machine 206 can save the configuration data of the AC component to the isolated local memory 204. The save state machine 206 can obtain information from the AC table 202. For example, the save state machine can verify whether the AC component is listed in the AC table 202, and can obtain the starting address of the AC component from the AC table 202. The save state machine 206 can interact with the system bus through an interface. For example, the save state machine 206 can interact with the system bus through an advanced extensible interface (AXI) read channel 216 to read the configuration data of the AC component. The AXI read interface can support a single read with a data width of a predetermined number of bits (e.g., 32 bits or 64 bits).
[0045] The restore state machine 208 stores and updates state information during the restore operation, such as addresses of pointers and counters. The restore state machine 208 may interact with the power manager through the restore interface 214. The restore state machine 208 may access information from the local table 210, such as accessing information from a corresponding entry associated with the AC component. For example, the restore state machine 208 may obtain the starting address of the AC component in the isolated local memory 204. The restore state machine 208 may write information to the local table 210, such as writing a corresponding entry associated with the AC component. For example, after the restore operation is successful, the restore state machine 206 may set the save success bit to 0.
[0046] The restore state machine 208 may restore the configuration data of the AC component from the isolated local memory 204. The restore state machine 208 may obtain information from the AC table 202. For example, the restore state machine may verify whether the AC component is listed in the AC table 202, and may obtain the starting address of the AC component from the AC table 202. The restore state machine 208 may interact with the system bus through an interface. For example, the restore state machine 208 may interact with the system bus through an advanced extensible interface (AXI) write channel 218 to write the configuration data of the AC component. The AXI write interface may support a single write with a data width of a predetermined number of bits (e.g., 32 bits or 64 bits).
[0047] Figure 3 3 is a flow chart of an example process 300 for saving configuration data of an AC component. For convenience, the process 300 will be described as being performed by an SRE (e.g., Figure 1 The system may include a reference to SRE 102 in the computing device 100. Figure 1 Components described include one or more AC components, a power manager, isolated local storage, an AC table, or some combination of these.
[0048] The system may receive a save request and an identification of an AC component from a power manager 302. For example, the power manager may issue a save request to the SRE, such as a saveReq 130 signal, and may provide an identification (ID) of the AC component or together with an identification of a subsystem to be saved, such as a saveSswrpid 132 signal.
[0049] The system may determine whether the identification of the AC component is defined in the AC table (304). Upon receiving a save request, the SRE may check whether the requested AC component is defined in the AC table that defines the AC component (e.g., by ID). If the system determines that the identification of the AC component is not defined in the AC table, the system may issue an error response (306). For example, if the SRE cannot find the requested AC component in the AC table, the SRE may respond to the power manager with an error response, such as a saveResp 136 signal.
[0050] In some implementations, when multiple save requests are received within a period of time or simultaneously, the SRE may queue multiple save requests received from the power manager. The SRE may send a response message to the power manager, such as a saveResp 136 signal. The response message may include the ID of the AC component being queued or together with the identification of the subsystem to be saved.
[0051] If the system determines that the identity of the AC component is defined in the AC table, the system may obtain the starting address of the AC component from the AC table (308). That is, if the requested AC component is in the AC table, the SRE may load the starting address indicated in the AC table. For example, the SRE may include a pointer for accessing the AC component, and the SRE may set the pointer to point to the starting address of the AC component.
[0052] In some implementations, the SRE may receive a save request from the power manager to save a plurality of AC components of a subsystem in a computing device. The SRE may receive an ID of a subsystem wrapper from the power manager. The SRE may use the ID of the subsystem wrapper to obtain a start address of each of the AC components indicated in the AC table. For example, the SRE may set a read pointer for accessing the AC component to point to a start address of a first AC component (e.g., component 0) among the plurality of AC components. After completing saving the configuration data of the first AC component, the SRE may move the read pointer to a start address of a next AC component.
[0053] The system may determine whether memory space for the AC component has been allocated in the isolated local memory (310). The SRE may check whether an initial allocation of memory space has been made for the requested AC component in the isolated local memory connected to the SRE. The SRE may check the local table 210 of the SRE. For example, the SRE may check a one-bit SET field of an entry in the local table 210 to determine whether an initial allocation has been made. This bit may be set when a first save operation is performed for the corresponding AC component.
[0054] If the system determines that the memory space is not allocated, the system can allocate the memory space for the AC component (312). For example, if no allocation has been made, such as when this is the first time the AC component is saved, the SRE can create an allocation for the AC component using an unmapped address location in local memory. The SRE can then update its local table to save the starting address of the AC component in the isolated local memory.
[0055] After allocating the memory space or if the system determines that the memory space is allocated, the system may read the configuration data of the AC component from the AC component (314). If an allocation is made, the SRE may read an address associated with the AC component, such as a starting address, from the SRE's local table 210. When a first save operation is performed for the corresponding AC component, a starting address field of an entry in the local table may be set. For example, the SRE may include a save state machine 206 that includes a read pointer to the AC component and a write pointer to the isolated local memory. The SRE may set the read pointer to point to the starting address of the AC component and may set the write pointer to point to the starting address of the AC component in the isolated local memory.
[0056] In some implementations, the SRE may send an initial read operation to the AC component along with a signal indicating a save operation to the AC component. After receiving the initial read operation, the AC component may determine that the save operation has been initiated and may block any further access to the configuration data of the AC component by transactions not from the SRE. For example, the AC component may block any further access to its configuration data unless the access is from the SRE.
[0057] In some implementations, upon receiving an initial read operation from the SRE, the AC component may provide the size of the configuration data that needs to be saved in the isolated location memory. For example, the AC component may provide the maximum number of reads that the SRE needs to complete during the save operation. The SRE may write the size of the configuration data to the isolated local memory, for example, to the first portion (e.g., one byte) of the allocated memory for the AC component. After writing the size information, the SRE may increment the value of the pointer so that the pointer may point to the next portion of the allocated memory.
[0058] The system may write the configuration data for the AC component to the isolated local memory (316). After setting the read pointer and the write pointer (and after the initial read and write of the size information), the SRE may sequentially read a portion of the configuration data from the AC component and may sequentially write the portion to the isolated memory until the size of the configuration data is reached. For example, the SRE may increment the read pointer to the AC component to read from the AC component. The SRE may increment the write pointer to the isolated local memory.
[0059] In some implementations, the SRE may include a read counter that counts the number of reads completed by the SRE during the save operation. If the value of the read counter is less than the size of the configuration data, such as a maximum number of reads, the SRE may continue to read the next portion of the configuration data. If the value of the read counter is not less than the size of the configuration data, the system may determine that the save operation is successfully completed.
[0060] The system may send a save complete response to the power manager (318). If the save operation for the AC component completes successfully, the SRE may send a save complete response to the power manager, such as a saveRdy 134 signal. If the SRE receives an error from the AC component, the SRE may report the error back to the power manager, such as a saveResp 136 signal, and the SRE may stop the save operation.
[0061] In some implementations, the SRE needs to save multiple AC components of the subsystem to isolated local memory. If the save operation for the current AC component is complete, the SRE may save the next component in the AC table of the subsystem. This process continues until all valid components in the AC table of the subsystem are saved. When all AC components of the subsystem are saved, the SRE may respond to the power manager with a save complete response.
[0062] In some implementations, the power manager may send an identification sequence corresponding to multiple AC components that need to be saved. The SRE may process the identification sequence in parallel and may save the configuration data of the multiple AC components in parallel. Therefore, the system may improve efficiency and enhance the performance of the save operation.
[0063] After receiving the save complete response, the power manager may proceed with power collapse of the subsystem or AC component. In some implementations, after completing the save operation, the SRE may set a field (e.g., a VLD bit) in its local table to 1, indicating that the AC component has been successfully saved in the isolated local memory.
[0064] In some implementations, after the save operation is successfully completed, the SRE may send a signal 122 to the subsystem or AC component. For example, the signal (e.g., a signal value equal to 1) may indicate that a restore operation of the AC component is pending. The signal may cause the AC component to enter a state in which other components or transactions cannot access the configuration data of the AC component until the restore operation is completed. For example, after receiving the signal, the AC component may block any client transactions unless the transaction is from the SRE until the restore operation of the AC component is completed. In some implementations, the signal 122 is not driven to the AC component that overrides the subsystem power management so that the power manager can perform a power-on sequence.
[0065] In some implementations, the example process 300 may be used to save configuration data for other types of components or in a computing device that requires save / restore, and the one or more components are not safety-related AC components. In some implementations, the component may be a memory-mapped component in a SoC. In some implementations, the component may be an IO-mapped component in a SoC. In some implementations, the component may include one or more registers in a computing device. That is, the save-restore engine (SRE) is a general save / restore engine, and the techniques described in this specification are not specific to safety-related AC components.
[0066] Figure 4 4 is a flow chart of an example process 400 for restoring configuration data. For convenience, process 400 will be described as being performed by an SRE (e.g., Figure 1The system may include a reference to SRE 102 in the computing device 100. Figure 1 Components are described that include one or more AC components, a power manager, isolated local storage, an AC table, or some combination of these.
[0067] During a power restoration event, the power manager may first restore the power rails and may communicate with the subsystem power management component in the recovering subsystem to issue a reset of the AC component before sending a restore request to the SRE. The power system may also communicate with a bus (e.g., system bus 110) connected to the AC component. The address remapper 128 may remain in a reset or disabled state so that the AC component may have a static address in the physical address space. Because the signal 122 from the SRE is on, the AC component may prevent any other transaction or component from accessing the configuration data of the AC component.
[0068] The system may receive a restore request and an identification (ID) of an AC component from the power manager (402). For example, after completing a power-on sequence for the AC component and the bus, the power manager may issue a restore request (e.g., restoreReq 138 signal) to the SRE and may provide an ID of the AC component to be restored (e.g., restoreSswrpid 140 signal). The power manager may wait until a completion response or an error response is received from the SRE.
[0069] The system may determine whether the identifier is defined in the AC table (404). For example, when receiving a restore request, the SRE may check whether the requested AC component or subsystem of the AC component is defined in the AC table that defines the AC component. If the system determines that the identifier is not defined in the AC table, the system may issue an error response (406).
[0070] In some implementations, the system may use a digital fingerprint of the configuration data to protect the configuration data from possible tampering when it is stored in an isolated local memory. When the configuration data of the AC component is stored in the isolated local memory, the system may calculate a digital fingerprint of the configuration data, such as a checksum or cryptographic hash. The digital fingerprint may be calculated and saved during a save operation. When the system performs a restore operation, the system may calculate a digital fingerprint of the configuration data restored from the isolated local memory. The system may compare the digital fingerprint of the restored configuration data with the digital fingerprint calculated during the save operation. If the two digital fingerprints do not match, the system may generate a system error and the restore operation may be aborted. If the two digital fingerprints match, the system may determine that the configuration data of the AC component was not tampered with when it was stored in the isolated local memory.
[0071] If the system determines that the identification is defined in the AC table, the system may determine whether the AC component was previously saved in the isolated local memory (408). For example, the SRE may check whether the AC component was previously saved by checking the VLD bit of the corresponding entry of the AC component in the local table of the SRE. If the system determines that the AC component was not previously saved in the isolated local memory, the system may issue an error response (406). For example, if the VLD bit indicates that the AC component was not previously saved in the isolated local memory, the SRE may send an error response to the power manager.
[0072] If the system determines that the AC component was previously saved in the isolated local memory, the system may obtain the starting address of the AC component from the AC table (410). For example, if the VLD bit indicates that the AC component was previously saved in the isolated local memory, the SRE may read the starting address of the AC component indicated in the AC table. In some implementations, the SRE receives a restore request to restore multiple AC components in a subsystem and an ID of the subsystem. The SRE may read the starting address of the subsystem indicated in the AC table. The SRE may include a write pointer, and the SRE may set the write pointer to point to a first AC component (e.g., component 0) at the starting address of the subsystem. After the SRE completes writing the first AC component, the SRE may move the write pointer to point to the next AC component in the subsystem.
[0073] The system may obtain a starting address of configuration data for the AC component stored in the isolated local memory (412). For example, the SRE may load the starting address of the configuration data stored in the isolated local memory from its local table. The SRE may include a read pointer to access the isolated local memory for recovery, and the SRE may set the read pointer to point to the starting address. In some implementations, the SRE may include a recovery state machine 208, and the recovery state machine 208 may store the read pointer and the write pointer.
[0074] The system may read configuration data for the AC component from the isolated local memory (414). For example, the system may read the configuration data for the AC component using a read pointer pointing to the configuration data stored in the isolated local memory. The system may write the configuration data for the AC component (416). In some implementations, after setting the write pointer to point to the AC component and setting the read pointer to point to the starting address of the configuration data in the isolated local memory, the SRE may issue an initial read to obtain size information for the configuration data of the AC component stored in the isolated local memory. For example, the SRE may obtain a maximum number of writes that the SRE needs to complete during a recovery operation. The system may sequentially read portions of the configuration data from the isolated local memory and may sequentially write the portions to the AC component until the size of the configuration data is reached. For example, the SRE may read the configuration data from the isolated local memory and may write the configuration data to the AC component using a signal indicating that the communication is from the SRE. The process may be repeated for all portions of the AC component indicated by the size information of the AC component.
[0075] In some implementations, after writing the first portion of the configuration data to the AC component, the signal can cause the AC component to enter a state in which only the SRE can access the AC component. For example, after the first write, the AC component can recognize that a recovery operation has been initiated, and the AC component can block any attempts by other components or transactions to access its configuration data. When recovery of the AC component is complete, the AC component can unlock access to its configuration data by other components or transactions.
[0076] In some implementations, during recovery, if a write operation to an AC component results in an error response, the recovery operation may be considered to have failed. The SRE may issue an error response to the power manager, such as a restoreResp 144 signal. In some implementations, in this scenario, the power manager may determine to perform a cold restart on the computing device.
[0077] In some implementations, when multiple restore requests are received within a period of time or simultaneously, the SRE may queue multiple restore requests received from the power manager. The SRE may send a response message to the power manager, such as a restoreResp 144 signal. The response message may include the ID of the AC component being queued or together with the identification of the subsystem to be saved.
[0078] In some implementations, the SRE may include a write counter that counts the number of writes completed by the SRE during the recovery operation. If the value of the write counter is less than the size of the configuration data stored in the isolated location memory, for example, the maximum number of writes, the SRE may continue to write the next portion of the configuration data to the AC component. If the value of the write counter is not less than the size of the configuration data stored in the isolated location memory, the system may determine that the recovery operation is successfully completed.
[0079] The system may send a restore complete response (e.g., restoreRdy 142 signal) to the power manager (418). In some implementations, the SRE may need to restore multiple AC components in the subsystem. The SRE may restore the configuration data of each AC component identified in the AC table of the subsystem in sequence. After all AC components of the subsystem are successfully restored, the system may send a restore complete response to the power manager.
[0080] In some implementations, the power manager may send an identification sequence corresponding to multiple AC components that need to be restored. The SRE may process the identification sequence in parallel and may restore configuration data for multiple AC components in parallel. Thus, the system may improve efficiency and enhance performance of the restoration operation.
[0081] In some implementations, after recovery is successfully completed, the SRE may invalidate a field (e.g., a VLD bit) in its local table to indicate that the AC component is no longer stored in the isolated local memory. For example, the SRE may set the VLD bit of the corresponding entry in the local table to 0.
[0082] In some implementations, the SRE may send a signal 122 to the restored subsystem or AC component. For example, the signal may indicate that the restore operation for the AC component has been completed. The signal may cause the AC component to permit access from other components or transactions. For example, after setting the signal to 0, the AC component (e.g., a firewall) may enter a state in which transactions are allowed to flow through the firewall under appropriate permission checks based on the restored configuration data of the firewall. In some implementations, when the SRE successfully completes the restore operation, the power manager may release the rest of the subsystem from the reset state for functional operation. Thus, the power restoration of the subsystem is complete.
[0083] In some implementations, the example process 400 may be used to restore configuration data for other types of components or in a computing device that requires save / restore, and the one or more components are not safety-related AC components. In some implementations, the component may be a memory-mapped component in a SoC. In some implementations, the component may be an IO-mapped component in a SoC. In some implementations, the component may include one or more registers in a computing device. That is, the save-restore engine (SRE) is a general save / restore engine, and the techniques described in this specification are not specific to safety-related AC components.
[0084] Figure 5 is a diagram of an example universal save-restore widget 500. In some implementations, a computing device may include a universal module or client device with a corresponding universal AC component (e.g., SMMU). Because it may be difficult or impossible to adapt the AC component to support the save and restore operations of SRE, the computing device 100 may include a widget (e.g., universal save-restore widget 500) to help support the save and restore operations of SRE.
[0085] The widget may include a save-restore tracker 502 that tracks when a save operation or a restore operation begins and ends. The save-restore tracker 502 may identify a save request or a restore request from the SRE. For example, when the SRE accesses the first location of the AC component, the save-restore tracker 502 may identify the start of the save operation or the restore operation.
[0086] The recovery tracker 502 may cause the generic AC component to enter a state in which only the SRE and the widget 500 may access the generic AC component. For example, the recovery tracker 502 may disable system access to the configuration data of the AC component by other components or transactions during a save / restore operation. Thus, the tracker 502 may prevent the system from changing the state of the generic AC component during operation.
[0087] After the save operation is successfully completed, the tracker 502 may enable the AC component to enter a state in which other components or transactions cannot access the configuration data of the AC component until the AC component is successfully restored. For example, the SRE may send a signal 504 (e.g., Figure 1 122 in the AC component) to identify the completion of the recovery operation for the AC component or a subsystem of the AC component.
[0088] The widget 500 may be configured to send size information of the configuration data of the common AC component to the SRE. For example, the widget may calculate the size information for a save operation and may send the size information to the SRE during the first read of the save operation.
[0089] Figure 6is a diagram of an example save-restore widget 600 for a third-party access control (AC) component. For example, the save-restore widget 600 may be used for Figure 1 Widget 118 of third party AC component 116 in.
[0090] The computing device may include a third party AC component. For example, the third party component may be a third party IP vendor, such as an SMMU including a transaction control unit (TCU) and a transaction buffer unit (TBU). The computing device may include a widget 600 configured to implement a save-restore tracker 602 that tracks when a save operation or a restore operation begins and ends. For example, the save-restore tracker 602 may identify a save request or a restore request from an SRE. The start of a save / restore operation may be identified when an access is made to a first location of a TCU / TBU component using a signal indicating an access from the SRE.
[0091] In some implementations, the widget 600 may be configured to send a signal to the third-party AC component, and the signal may cause the third-party component to enter a state in which only the SRE and the widget 600 may access the third-party AC component until the SRE completes saving or restoring the third-party AC component. For example, after identifying a save request or a restore request, the tracker may lock system access to the configuration data of the SMMU during the save / restore operation. When the save or restore operation has begun, the tracker 602 may disable any access originating from a non-SRE initiator. Thus, the tracker 602 may prevent the system from changing the configuration data of the third-party component, for example, including state data, during the save / restore operation.
[0092] After the save operation is successfully completed, the tracker 602 may enable the AC component to enter a state in which other components or transactions cannot access the configuration data of the AC component until the AC component is successfully restored. For example, the SRE may send a signal 604 (e.g., Figure 1 122 in the AC component) to identify the completion of the recovery operation for the AC component or a subsystem of the AC component.
[0093] The widget 600 may be configured to send size information of the configuration data of the third-party AC component to the SRE. For example, the widget may calculate the size information for a save operation and may send the size information to the SRE during the first read of the save operation.
[0094] In some implementations, widget 600 may include an address mapping table for each module in the third-party AC component. For example, widget 600 may include an address mapping table for the TCU (e.g., address mapping table 606) and an address mapping table for each of the TBUs (e.g., address mapping tables 608, 610...612). The address mapping table may translate an input address into an address of each module in the third-party AC component, e.g., a TCU / TBU address, during a save / restore operation. In some implementations, widget 600 may be configured to perform provisioning of a mechanism for compacting a payload to be saved by the SRE in an isolated local memory.
[0095] For example, the widget 600 may use the address mapping table to select key control registers in the TCU / TBU that need to be saved. Thus, the amount of configuration data to be saved may be reduced.
[0096] The subject matter and actions and embodiments of operations described in this specification may be implemented in digital electronic circuit systems, in tangibly embodied computer software or firmware, in computer hardware, including the structures disclosed in this specification and their structural equivalents or a combination of one or more of them. The embodiments of the subject matter described in this specification may be implemented as one or more computer programs, that is, one or more modules of computer program instructions encoded on a tangible, non-transitory storage medium for execution by a data processing device or for controlling the operation of a data processing device. Alternatively or in addition, program instructions may be encoded on an artificially generated propagation signal (e.g., a machine-generated electrical, optical or electromagnetic signal), which is generated to encode information for transmission to an appropriate receiver device for execution by a data processing device. A computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them, or a portion thereof. A computer storage medium is not a propagation signal.
[0097] The processing components described in this specification refer to data processing hardware, and encompass all types of equipment, devices and machines for processing data, including, for example, programmable processors, microprocessors, computers or multiple processors or computers. The device can also be or further include a dedicated logic circuit system, such as an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit). In addition to hardware, the device can also optionally include a code for creating an execution environment for a computer program, for example, a code constituting a processor firmware, a protocol stack or a combination of one or more of them.
[0098] A computer program, which may also be referred to or described as a program, software, software application, app, module, software module, engine, script or code, may be written in any form of programming language, including compiled or interpreted languages, or declarative or procedural languages; and it may be deployed in any form, including as a stand-alone program or as a module, component, engine, subroutine or other unit suitable for execution in a computing environment, which may include one or more computers interconnected by a data communications network at one or more locations.
[0099] A computer program may, but need not, correspond to a file in a file system. A computer program may be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0100] In addition to the above embodiments, the following embodiments are also innovative:
[0101] Embodiment 1 is a device, comprising: a power manager configured to control power provided to a plurality of power domains on the device, wherein each power domain has a corresponding client device, wherein each respective client device has a respective access control (AC) component configured to control which other components on the device are able to communicate with the respective client device; and a save-restore engine (SRE) configured to save, in an isolated local memory, configuration data of AC components located in a power domain affected by a power collapse operation initiated by the power manager, and Wherein the SRE is configured to restore the configuration data of the AC component from the isolated local memory when the power manager restores the power to the power domain of the AC component.
[0102] Embodiment 2 is the apparatus of embodiment 1, wherein the SRE comprises a local table, and for the AC component, the local table comprises: a first field indicating whether the AC component was successfully saved in the isolated local memory; and A second field indicates a starting address in the isolated local memory for performing the save operation and the restore operation.
[0103] Embodiment 3 is the apparatus of embodiment 1, wherein saving the configuration data of the AC component in the isolated local memory comprises: receiving, by the SRE, a save request from the power manager and an identification of the AC component; Determining, by the SRE, that the identifier is defined in an access control table defining the AC component; reading, by the SRE, the configuration data of the AC component from the AC component; and The configuration data of the AC component is written by the SRE into the isolated local memory.
[0104] Embodiment 4 is the apparatus of embodiment 3, wherein saving the configuration data of the AC component in the isolated local memory comprises: In response to determining that the identifier is defined in the access control list, obtaining, by the SRE, a start address of the AC component from the access control list; determining, by the SRE, whether memory space for the AC component is allocated in the isolated local memory; and In response to determining that the memory space for the AC component is not allocated, the memory space for the AC component is allocated using an unmapped address location in the isolated local memory.
[0105] Embodiment 5 is the apparatus of embodiment 3, wherein saving the configuration data of the AC component comprises sending, by the SRE, a save complete response to the power manager.
[0106] Embodiment 6 is an apparatus as described in Embodiment 1, wherein during saving the configuration data of the AC component in the isolated local memory, the SRE is configured to send a signal to the AC component, wherein the signal causes the AC component to enter a state in which only the SRE can access the AC component.
[0107] Embodiment 7 is the apparatus of embodiment 1, wherein restoring the configuration data of the AC component from the isolated local memory comprises: receiving, by the SRE, a restoration request from the power manager and an identification of the AC component; Determining, by the SRE, that the identifier is defined in an access control table defining the AC component; reading, by the SRE, the configuration data of the AC component from the isolated local memory; and The configuration data is written to the AC component.
[0108] Embodiment 8 is the apparatus of embodiment 7, wherein restoring the configuration data of the AC component from the isolated local memory comprises: In response to determining that the identifier is defined in the access control list, determining, by the SRE, that the AC component was previously stored in the isolated local memory; In response, the SRE obtains the starting address of the AC component from the access control table; and A starting address of the configuration data of the AC component stored in the isolated local memory is obtained by the SRE.
[0109] Embodiment 9 is the apparatus of embodiment 7, wherein restoring the configuration data of the AC component comprises: sending, by the SRE, a restoration completion response to the power manager.
[0110] Embodiment 10 is an apparatus as described in Embodiment 1, wherein during recovery of the configuration data of the AC component in the isolated local memory, the SRE is configured to send a signal to the AC component, wherein the signal causes the AC component to enter a state in which only the SRE can access the AC component.
[0111] Embodiment 11 is the apparatus as described in embodiment 1, wherein the AC component is a third-party AC component, wherein the apparatus further comprises a widget, wherein the widget is configured to implement a save restore tracker, and the save restore tracker tracks when the save operation or the restore operation starts and ends.
[0112] Embodiment 12 is an apparatus as described in Embodiment 11, wherein the widget is configured to send a signal to the third-party AC component, wherein the signal causes the third-party AC component to enter a state in which only the SRE and the widget can access the third-party AC component until the SRE completes saving or restoring the third-party AC component.
[0113] Embodiment 13 is the apparatus of embodiment 1, wherein saving the configuration data of the AC component in the isolated local memory comprises: obtaining, from the AC component and by the SRE, a size of the configuration data that needs to be stored in the isolated local memory; writing, by the SRE, the size of the configuration data into the isolated local memory; and Portions of the configuration data are sequentially read from the AC component and written to the isolated local memory until the size of the configuration data is reached.
[0114] Embodiment 14 is the apparatus of embodiment 1, wherein restoring the configuration data of the AC component from the isolated local memory comprises: Obtaining, from the isolated local memory and by the SRE, the size of the configuration data that needs to be restored; and Portions of the configuration data are sequentially read from the isolated local memory and written to the AC component until the size of the configuration data is reached.
[0115] Embodiment 15 is the apparatus of embodiment 1, wherein the SRE is configured to: saving, in the isolated local memory, a first digital fingerprint of the configuration data of the AC component to be saved, obtaining a second digital fingerprint of the configuration data of the AC component recovered from the isolated local memory, and A determination is made based at least on comparing the first digital fingerprint and the second digital fingerprint whether the configuration data stored in the isolated local memory has been tampered with.
[0116] Embodiment 16 is a device as described in embodiment 1, wherein the isolated local memory includes dynamic random access memory (DRAM), wherein the SRE is configured to store the configuration data of the AC component in the DRAM, and wherein the SRE uses an encryption method to protect the configuration data from tampering.
[0117] Embodiment 17 is a method comprising: Receiving, by a save-restore engine (SRE), a save request from a power manager and an identification of an access control (AC) component; The SRE obtains the starting address of the AC component from the AC table; reading, by the SRE, configuration data of the AC component from the AC component; writing, by the SRE, the configuration data of the AC component into an isolated local memory; and A save complete response is sent by the SRE to the power manager.
[0118] Embodiment 18 is one or more non-transitory storage media encoded with instructions that, when executed by a save-restore engine (SRE) of a computing device, cause the SRE to perform operations comprising: receiving a save request and an identification of an access control (AC) component from a power manager; Obtaining the starting address of the AC component from the AC table; reading configuration data of the AC component from the AC component; writing the configuration data of the AC component into isolated local memory; and A save complete response is sent to the power manager.
[0119] Embodiment 19 is a method comprising: Receiving, by a save-restore engine (SRE), a restore request from a power manager and an identification of an access control (AC) component; The SRE obtains the starting address of the AC component from the AC table; reading, by the SRE, configuration data of the AC component from the isolated local memory; writing, by the SRE, the configuration data into the AC component; and A recovery completion response is sent by the SRE to the power manager.
[0120] Embodiment 20 is one or more non-transitory storage media encoded with instructions that, when executed by a save-restore engine (SRE) of a computing device, cause the SRE to perform operations comprising: receiving a restoration request and an identification of an access control (AC) component from a power manager; Obtaining the starting address of the AC component from the AC table; reading configuration data of the AC component from the isolated local memory; writing the configuration data to the AC component; and A restore complete response is sent to the power manager.
[0121] Although this specification contains many specific implementation details, these details should not be interpreted as limitations on the scope of any invention or the scope of what is being claimed or may be claimed, but rather as descriptions of features that may be specific to a particular embodiment of a particular invention. Certain features described in this specification in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented in multiple embodiments individually or in any suitable sub-combination. In addition, although features may be described above as working in certain combinations and even initially claimed as such, one or more features from the claimed combination may be deleted from the combination in some cases, and the claims may relate to sub-combinations or variations of sub-combinations.
[0122] Similarly, although operations are depicted in the drawings and described in the claims in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in a sequential order, or that all of the operations shown be performed, to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous. In addition, the separation of various system modules and components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.
[0123] Specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. For example, the actions recited in the claims can be performed in a different order and still achieve the desired results. As an example, the processes depicted in the accompanying drawings do not necessarily require the particular order shown or ordered order to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous.
Claims
1. A device comprising: a power manager configured to control power provided to a plurality of power domains on the device, wherein each power domain has a corresponding client device, wherein each respective client device has a respective access control (AC) component configured to control which other components on the device are able to communicate with the respective client device; as well as a save-restore engine (SRE) configured to save, in an isolated local memory, configuration data of AC components located in a power domain affected by the power manager-initiated power collapse operation, and Wherein the SRE is configured to restore the configuration data of the AC component from the isolated local memory when the power manager restores the power to the power domain of the AC component.
2. The apparatus of claim 1, wherein the SRE comprises a local table, and for the AC component, the local table comprises: a first field indicating whether the AC component was successfully saved in the isolated local memory; as well as A second field indicates a starting address in the isolated local memory for performing the save operation and the restore operation.
3. The apparatus of claim 1 , wherein saving the configuration data of the AC component in the isolated local memory comprises: receiving, by the SRE, a save request from the power manager and an identification of the AC component; Determining, by the SRE, that the identifier is defined in an access control table defining the AC component; reading, by the SRE, the configuration data of the AC component from the AC component; as well as The configuration data of the AC component is written by the SRE into the isolated local memory.
4. The apparatus of claim 3, wherein saving the configuration data of the AC component in the isolated local memory comprises: In response to determining that the identifier is defined in the access control list, obtaining, by the SRE, a start address of the AC component from the access control list; determining, by the SRE, whether memory space for the AC component is allocated in the isolated local memory; as well as In response to determining that the memory space for the AC component is not allocated, the memory space for the AC component is allocated using an unmapped address location in the isolated local memory.
5. The apparatus of claim 3, wherein saving the configuration data of the AC component comprises: A save complete response is sent by the SRE to the power manager.
6. The apparatus of claim 1 , wherein during saving the configuration data of the AC component in the isolated local memory, the SRE is configured to send a signal to the AC component, wherein the signal causes the AC component to enter a state in which only the SRE can access the AC component.
7. The apparatus of claim 1 , wherein restoring the configuration data of the AC component from the isolated local memory comprises: receiving, by the SRE, a restoration request from the power manager and an identification of the AC component; Determining, by the SRE, that the identifier is defined in an access control table defining the AC component; reading, by the SRE, the configuration data of the AC component from the isolated local memory; as well as The configuration data is written to the AC component.
8. The apparatus of claim 7, wherein restoring the configuration data of the AC component from the isolated local memory comprises: In response to determining that the identifier is defined in the access control list, determining, by the SRE, that the AC component was previously stored in the isolated local memory; In response, the SRE obtains the starting address of the AC component from the access control table; as well as A starting address of the configuration data of the AC component stored in the isolated local memory is obtained by the SRE.
9. The apparatus of claim 7, wherein restoring the configuration data of the AC component comprises: A recovery completion response is sent by the SRE to the power manager.
10. The apparatus of claim 1, wherein during recovery of the configuration data of the AC component in the isolated local memory, the SRE is configured to send a signal to the AC component, wherein the signal causes the AC component to enter a state in which only the SRE can access the AC component.
11. The apparatus of claim 1, wherein the AC component is a third-party AC component, wherein the apparatus further comprises a widget configured to implement a save-restore tracker that tracks when the save operation or the restore operation starts and ends.
12. The apparatus of claim 11, wherein the widget is configured to send a signal to the third-party AC component, wherein the signal causes the third-party AC component to enter a state in which only the SRE and the widget can access the third-party AC component until the SRE completes saving or restoring the third-party AC component.
13. The apparatus of claim 1 , wherein saving the configuration data of the AC component in the isolated local memory comprises: obtaining, from the AC component and by the SRE, a size of the configuration data that needs to be stored in the isolated local memory; writing, by the SRE, the size of the configuration data into the isolated local memory; as well as Portions of the configuration data are sequentially read from the AC components and written to the isolated local memory until the size of the configuration data is reached.
14. The apparatus of claim 1 , wherein restoring the configuration data of the AC component from the isolated local memory comprises: Obtaining, from the isolated local memory and by the SRE, the size of the configuration data that needs to be restored; as well as Portions of the configuration data are sequentially read from the isolated local memory and written to the AC component until the size of the configuration data is reached.
15. The apparatus of claim 1, wherein the SRE is configured to: saving, in the isolated local memory, a first digital fingerprint of the configuration data of the AC component to be saved, obtaining a second digital fingerprint of the configuration data of the AC component recovered from the isolated local memory, and A determination is made based at least on comparing the first digital fingerprint and the second digital fingerprint whether the configuration data stored in the isolated local memory has been tampered with.
16. The apparatus of claim 1, wherein the isolated local memory comprises a dynamic random access memory (DRAM), wherein the SRE is configured to save the configuration data of the AC component in the DRAM, and wherein the SRE protects the configuration data from tampering using a cryptographic method.
17. A method comprising: The save-restore engine SRE receives the save request and the identification of the access control AC component from the power manager; The SRE obtains the starting address of the AC component from the AC table; reading, by the SRE, configuration data of the AC component from the AC component; writing, by the SRE, the configuration data of the AC component into an isolated local memory; as well as A save complete response is sent by the SRE to the power manager.
18. One or more non-transitory storage media encoded with instructions that, when executed by a save-restore engine (SRE) of a computing device, cause the SRE to perform operations comprising: receiving a save request and an identification of an access control AC component from a power manager; Obtaining the starting address of the AC component from the AC table; reading configuration data of the AC component from the AC component; writing the configuration data of the AC component into an isolated local memory; as well as A save complete response is sent to the power manager.
19. A method comprising: The save-restore engine SRE receives the restore request from the power manager and the identification of the access control AC component; The SRE obtains the starting address of the AC component from the AC table; reading, by the SRE, configuration data of the AC component from the isolated local memory; The SRE writes the configuration data into the AC component; as well as A recovery completion response is sent by the SRE to the power manager.
20. One or more non-transitory storage media encoded with instructions that, when executed by a save-restore engine (SRE) of a computing device, cause the SRE to perform operations comprising: receiving a restoration request from a power manager and an identification of an access control AC component; Obtaining the starting address of the AC component from the AC table; reading configuration data of the AC component from the isolated local memory; writing the configuration data into the AC component; as well as A restore complete response is sent to the power manager.
