CN107122316B - SOC power supply method and SOC - Google Patents

SOC power supply method and SOC Download PDF

Info

Publication number
CN107122316B
CN107122316B CN201610105882.7A CN201610105882A CN107122316B CN 107122316 B CN107122316 B CN 107122316B CN 201610105882 A CN201610105882 A CN 201610105882A CN 107122316 B CN107122316 B CN 107122316B
Authority
CN
China
Prior art keywords
data
storage medium
stored
management module
standby power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610105882.7A
Other languages
Chinese (zh)
Other versions
CN107122316A (en
Inventor
张贤
严春宝
谭海波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
XFusion Digital Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610105882.7A priority Critical patent/CN107122316B/en
Publication of CN107122316A publication Critical patent/CN107122316A/en
Application granted granted Critical
Publication of CN107122316B publication Critical patent/CN107122316B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/16Protection against loss of memory contents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/30Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3243Power saving in microcontroller unit
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/10Providing a specific technical effect
    • G06F2212/1032Reliability improvement, data loss prevention, degraded operation etc
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a power supply method, which is used for saving the power supply cost of a system. The method disclosed by the invention comprises the following steps: and after the standby power supply is started, the standby power management module writes the data to be stored in the data cache medium into the data temporary storage medium and then immediately powers off the processor. And then the standby power management module writes the data to be stored in the data temporary storage medium into the nonvolatile storage medium and then closes the standby power supply. The method provided by the invention ensures that the processor can be closed only by running time of millisecond level in the power standby flow. Subsequent operations are completed by the standby power management module, and the processor does not need to execute a conventional storage service closing process and a conventional operating system closing process. Therefore, the power consumption of the storage device in the standby power flow can be greatly reduced, and the standby power cost is saved. The invention also provides a related standby power management module, an SOC and a storage device.

Description

SOC power supply method and SOC
Technical Field
The invention relates to the field of storage, in particular to an SOC (system on chip) power supply method and an SOC.
Background
Data processed by the storage device is instantly stored in a cache of the processor, and the cache is a volatile storage medium, wherein the data is lost along with the power failure of the processor of the storage device. Thus, when the mains power supplying the storage device is lost, there is a risk of losing the data that the storage device is currently processing.
Therefore, a standby power supply is generally arranged in the storage device at the present stage, when the mains supply is powered off, the storage device immediately starts the standby power supply to start a standby power supply process, and data in the processor cache is written into a nonvolatile storage medium, so that the data currently processed by the storage device is not lost.
However, in order to ensure that the data in the cache can be smoothly written into the nonvolatile storage medium, the processor needs to be kept alive all the time in the standby power flow. Because the power consumption of the processor is often higher, more battery power can be consumed, so that the storage device needs to be configured with a spare battery with larger capacity, the power supply cost is higher, and the popularization of the storage device is not facilitated.
Disclosure of Invention
The invention provides a power supply method which is used for saving the power supply cost of a system. The present invention also provides a related power backup management module, a System On Chip (SOC) and a storage device, which will be described separately below.
The invention provides a power supply method which is suitable for a storage device. The storage device includes a processor, a memory, a backup power source, and a backup power management module. The memory is used for storing data and comprises a data cache medium, a data temporary storage medium and a nonvolatile storage medium. The data cache medium is used for temporarily storing data currently processed by the processor, and the power is lost along with the shutdown of the processor, and the data cache medium is generally served by a cache of the processor. The data staging medium does not power down with the processor shut down. The data cache medium and the data temporary storage medium both belong to volatile storage media, wherein the stored data can be lost after the storage device is powered off, but the data stored in the nonvolatile storage medium can not be lost after the storage device is powered off. The standby power management module is used for executing the standby power method provided by the invention, and the power of the standby power management module is smaller than that of the processor. When the mains supply is powered off, the standby power supply of the storage device is started, the standby power management module starts to write the data to be stored in the data cache medium into the data temporary storage medium, and then the processor is immediately closed. After the processor is closed, the standby power supply management module writes the data to be stored written in the data temporary storage medium into the nonvolatile storage medium, and closes the standby power supply and powers off the storage device after the operation of writing the data to be stored into the nonvolatile storage medium is completed. In the power backup method provided by the invention, the power backup management module writes the data to be stored in the data cache medium into the data cache medium after the standby power supply is started, and then immediately powers off the processor. And then the standby power management module writes the data to be stored in the data temporary storage medium into the nonvolatile storage medium and then closes the standby power supply. The method provided by the invention ensures that the processor can be closed only by running time of millisecond level in the power standby flow. Subsequent operations are completed by the standby power management module, and the processor does not need to execute a conventional storage service closing process and a conventional operating system closing process. Compared with the prior art, the processor is closed earlier, and the executed processes are fewer, so that the power consumption of the storage device in the standby power process can be greatly reduced, the requirement of the storage device on the capacity of a battery is further reduced, and the standby power cost is saved.
Optionally, the data temporary storage medium does not power down with the shutdown of the processor, and may be specifically served by a memory or a last-level cache of the processor.
Optionally, the standby power management module may determine that the processor writes the data to be saved into a start address and an end address in the data temporary storage medium, and then write the data to be saved between the start address and the end address into the nonvolatile storage medium according to the start address and the end address.
Optionally, the standby power management module may also write the standby power information and the data to be saved into the nonvolatile storage medium together. The standby power information is used for describing information related to the standby power flow, and the standby power management module writes the standby power information into the nonvolatile storage medium, so that the storage equipment can restore data to be stored according to the standby power information after the mains supply is repaired.
Optionally, the power backup information may include one or more of a start address and an end address of the data to be saved in the nonvolatile storage medium, a start address and an end address of the data to be saved in the temporary storage medium, a time, a rate, an error code, an error correction, a size of the data to be saved, whether a power backup process is successful, check information of the data to be saved, and the like, and may further include other information.
Optionally, the power backup information may be in the form of status information or log, and may also be in other forms.
A second aspect of the present invention provides a power backup management module, which is suitable for a storage device. The storage device includes a processor, a memory, a backup power source, and a backup power management module. The memory is used for storing data and comprises a data cache medium, a data temporary storage medium and a nonvolatile storage medium. The data cache medium is used for temporarily storing data currently processed by the processor, and the power is lost along with the shutdown of the processor, and the data cache medium is generally served by a cache of the processor. The data staging medium does not power down with the processor shut down. The data cache medium and the data temporary storage medium both belong to volatile storage media, wherein the stored data can be lost after the storage device is powered off, but the data stored in the nonvolatile storage medium can not be lost after the storage device is powered off. The standby power management module comprises a storage unit and a power management unit, wherein the storage unit is used for writing data to be stored in a data cache medium into the data cache medium after a standby power supply of the storage device is started. The power management unit is used for immediately turning off the processor after the storage unit finishes the operation of writing the data to be stored in the data cache medium into the data temporary storage medium. The storage unit is further used for writing the data to be stored written in the data temporary storage medium into the nonvolatile storage medium, and the power management unit is further used for turning off the standby power supply and powering off the storage device after the storage unit finishes the operation of writing the data to be stored written in the data temporary storage medium into the nonvolatile storage medium. The standby power management module provided by the invention immediately closes the processor after writing the data in the data cache medium into the data temporary storage medium, so that the processor only needs to run for millisecond-level time in the standby power flow, thereby greatly reducing the power consumption of the storage device in the standby power flow, further reducing the requirement of the storage device on the battery capacity and saving the standby power cost.
Optionally, the data temporary storage medium does not power down with the shutdown of the processor, and may be specifically served by a memory or a last-level cache of the processor.
Alternatively, the saving unit may determine a start address and an end address at which the processor writes the data to be saved in the data temporary storage medium, and then write the data to be saved between the start address and the end address in the nonvolatile storage medium according to the start address and the end address.
Optionally, the saving unit may also write the standby power information into the nonvolatile storage medium together with the data to be saved. The standby power information is used for describing information related to the standby power flow, and the standby power management module writes the standby power information into the nonvolatile storage medium, so that the storage equipment can restore data to be stored according to the standby power information after the mains supply is repaired.
Optionally, the power backup information may include one or more of a start address and an end address of the data to be saved in the nonvolatile storage medium, a start address and an end address of the data to be saved in the temporary storage medium, a time, a rate, an error code, an error correction, a size of the data to be saved, whether a power backup process is successful, check information of the data to be saved, and the like, and may further include other information.
Optionally, the power backup information may be in the form of status information or log, and may also be in other forms.
A third aspect of the present invention provides an SOC adapted for use in a memory device. The processor in the storage device, the data buffer medium and the data temporary storage medium in the memory, and the standby power management module provided by the second aspect of the invention are integrated on the SOC and are connected through the bus to exchange data. The SOC also includes an input-output module to exchange data with outside the SOC. The data temporary storage medium is not powered down along with the shutdown of the processor, and the data in the nonvolatile storage medium is not lost after the nonvolatile storage medium is powered down.
Optionally, the non-volatile storage medium in the memory of the storage device may also be integrated on the SOC.
Optionally, the power of the standby power management module should be less than the power of the processor.
The fourth aspect of the present invention provides a storage device, including the power backup management module provided in the second aspect of the present invention, or the SOC provided in the third aspect of the present invention.
Drawings
Fig. 1 is a schematic flow chart of an embodiment of a power backup method provided in the present invention;
fig. 2 is a schematic structural diagram of an embodiment of a standby power management module provided in the present invention;
fig. 3 is a schematic structural diagram of an embodiment of an SOC provided in the present invention.
Detailed Description
The embodiment of the invention provides a power supply method. The embodiment of the invention also provides a corresponding standby power management module, a storage device and an SOC, which are respectively described below.
The storage device mainly processes data through a Central Processing Unit (CPU), and stores data through a nonvolatile storage medium such as a hard disk. In addition, the storage device may further include other functional devices, and these functional devices are connected to the CPU through a Peripheral Component Interconnect Express (PCIE) interface or other interfaces. In addition, the storage device may further include a backup power supply for supplying power to the storage device when the mains power is lost.
The storage equipment is powered by mains supply during normal operation. When the mains supply is powered off, the storage equipment immediately starts a standby power supply to start a standby power supply process so as to ensure that data in the cache is not lost. The power-backup process for a memory device generally includes the steps of:
(1) a backup power supply is enabled to supply power to the storage device.
The standby power supply may be a Battery Back Up (BBU), a super capacitor, or other forms of power supply, which is not limited herein.
(2) And closing the module which is not related to the standby power.
The storage device immediately shuts down devices that are not associated with power backup, such as fans, hard disks, or other high power consuming devices.
(3) And closing each functional device.
Each functional device in the storage device is generally connected to the CPU through a PCIE interface or other interfaces. Since each functional device consumes a large amount of power, the memory device needs to shut down the functional devices as soon as possible during the standby power flow. It is worth pointing out that violently plugging and unplugging the PCIE interfaces of these functional apparatuses will cause the storage device to be down, so the storage device must execute a PCIE hot plug process to gradually shut down each functional apparatus, and execute the operation in step (4) after the PCIE device is completely shut down.
(4) The CPU power is reduced.
In the storage device, the power consumption of the CPU is particularly high, and is about 60-150W. Therefore, after each functional device is turned off, the storage device reduces the power of the CPU to save the standby power consumption. The specific method for reducing the CPU power consumption may include one or more of reducing the frequency of the CPU, reducing the voltage of the CPU, shutting down a part of cores of the CPU, and restarting the CPU to enter a standby power mode, which is not limited herein.
(5) And writing the data in the CPU cache into a nonvolatile storage medium.
Data in the non-volatile storage medium is not lost due to a power loss. The storage device writes the data in the CPU cache into the nonvolatile storage medium, so that the data in the CPU cache can be ensured not to be lost after the storage device is powered off.
(6) The CPU and the standby power are turned off.
And after the data in the CPU cache is written into the nonvolatile storage medium, powering off the CPU by the storage equipment, closing the standby power supply and ending the standby power supply process.
The purpose of the power backup process performed by the storage device is to prevent the data in the CPU cache from being lost due to power failure. However, as can be seen from the above process, the steps (1) to (4) need to be executed before the data in the CPU buffer is saved, and especially the PCIE hot plug process in the step (3) takes a very long time, so that the CPU needs to keep a running state for a long time in the power standby process, and consumes a large amount of battery power. In addition, although the power of the CPU is reduced in step (4), the power consumption of the CPU is still large when the CPU is in the operating state, and a large amount of battery power still needs to be consumed.
In summary, in the standby power method at the present stage, the storage device needs to consume a large amount of battery power, so the storage device needs to be configured with a standby battery with a large capacity, and the standby power cost is high, which is not favorable for the popularization of the storage device.
In order to solve the above problem, an embodiment of the present invention provides a power backup method, which is suitable for a storage device. The storage device in the embodiment of the invention comprises a processor, a memory, a standby power supply and a standby power management module. The processor is generally implemented by a CPU core, and may also be implemented by a (GPU) core, a Digital Signal Processing (DSP) core, a field-programmable gate array (FPFA) core, or other devices or circuits with data processing function. The memory is used for storing data and comprises a data caching medium, a data temporary storage medium and a nonvolatile storage medium. The data cache medium is used for temporarily storing data currently processed by the processor, and is powered down with the shutdown of the processor, and is generally served by a cache of the processor. The data temporary storage medium is not powered down along with the shutdown of the processor, and is generally served by the memory of the processor. It should be noted that if the processor has multiple levels of cache, for example, N-level cache, the nth level cache may be set not to be powered down with the processor turned off, and then the first to N-1 levels of cache may be used as a data cache medium, and the nth level cache may also be used as a data temporary storage medium. Wherein N is an integer of not less than 2. The data cache medium and the data temporary storage medium both belong to volatile storage media, wherein the stored data can be lost after the storage equipment is powered off. In contrast, nonvolatile memory media are generally implemented by Static Random Access Memory (SRAM); or by a storage medium connected by interfaces such as Serial Advanced Technology Attachment (SATA), Serial Attached SCSI (SAS), mini Serial advanced technology interface (mini-SATA), m.2, USB, etc.; the storage medium may be a hard disk or the like. The data stored in the non-volatile storage medium is not lost after the storage device is powered down. The standby power management module can be served by a low-power consumption chip, a module or an integrated circuit with a processing function, such as a single chip microcomputer, and is used for executing the standby power process provided by the invention. The power of the processor is generally about 1-5W and is far less than that of the processor.
On the basis of the above-described storage device, referring to fig. 1, a basic flow of a power backup method provided by an embodiment of the present invention includes:
101. and writing the data to be stored in the data cache medium into the data temporary storage medium.
When the mains supply is powered off, the standby power supply of the storage device is started, the standby power management module takes over the data temporary storage medium and the nonvolatile storage medium in the memory, and starts to write the data to be stored in the data temporary storage medium into the data temporary storage medium. Optionally, the storage device may further include an input/output module in charge of data reading and writing, and the standby power management module issues a data writing instruction to the input/output module, so that the data input/output module writes data to be stored in the data temporary storage medium. Since the data temporary storage medium is generally served by a memory with a very fast data read-write speed or a last-level buffer, the time for writing the data to be stored into the data temporary storage medium is very short, and is only in the millisecond level. After completing the operation of writing the data to be saved in the data cache medium into the data temporary storage medium, the standby power management module immediately executes step 102.
102. The processor is shut down.
And the standby power management module immediately closes the processor after finishing the operation of writing the data to be stored in the data cache into the data temporary storage medium. In particular, the processor may be powered down or the clock of the processor may be turned off.
103. And writing the data in the data temporary storage medium into a nonvolatile storage medium.
And after the CPU is closed, the standby power management module writes the data to be stored written in the data temporary storage medium into the nonvolatile storage medium.
It is to be noted that, in this step, the CPU is already in the off state, and does not participate in the operation of writing the data in the data temporary storage medium to the nonvolatile storage medium at all.
Optionally, the standby power management module may determine that the processor writes the data to be saved into a start address and an end address in the data temporary storage medium, and then write the data to be saved between the start address and the end address into the nonvolatile storage medium according to the start address and the end address.
104. The standby power is turned off.
And after all the data in the data temporary storage medium are written into the nonvolatile storage medium by the standby power management module, closing the standby power supply and ending the standby power process.
In the embodiment shown in fig. 1, the processor is turned off immediately after the data in the data cache medium is written into the data temporary storage medium, so that the processor only needs to run for millisecond-level time in the power standby process. The subsequent operation of writing the data in the data temporary storage medium into the nonvolatile storage medium is completed by the standby power management module, and the processor does not need to execute a conventional storage service closing flow and a conventional operating system closing flow. Therefore, compared with the prior art, the processor of the storage device is shut down earlier and the execution flow is less. Because the power consumption of the standby power management module is far less than that of the processor, the embodiment of the invention can greatly reduce the power consumption of the storage device in the standby power process, further reduce the requirement of the storage device on the battery capacity and save the standby power cost.
Optionally, the storage device further comprises a fan. To reduce the power consumption of the storage device, the power backup management module may turn off the fan of the storage device prior to step 101.
Optionally, the storage device may further include a plurality of functional apparatuses, and the functional apparatuses are connected to the processor through a PCIE interface or other interfaces. To reduce the power consumption of the storage device, the power backup management module may power down the functional devices after step 102. Since the processor is powered off in step 102, the standby power management module does not need to execute a hot plug process, and can directly power off the functional devices. Compared with the prior art that the CPU executes the hot plug process first and then powers off, the CPU does not need to execute a long hot plug process, and the standby power consumption can be greatly saved.
Optionally, the standby power management module may also write the standby power information and the data to be stored into the nonvolatile storage medium together, where the standby power information is used to describe information related to the standby power process, and may include, for example, a start address and an end address of the data to be stored in the nonvolatile storage medium; the starting address and the ending address of the data to be stored in the temporary storage medium; time, speed, error code and error correction of writing the data to be stored into a temporary storage medium or a nonvolatile storage medium; the size of the data to be saved; whether the power backup process is successful (i.e. whether the data to be saved is successfully saved in the nonvolatile storage medium); one or more items of the check information of the data to be saved may further include other information, which is not limited herein. The power backup information may be in the form of status information or log, and is not limited herein. The standby power management module writes the standby power information into the nonvolatile storage medium, and the storage device can restore the data to be stored according to the standby power information after the commercial power is repaired.
An embodiment of the present invention further provides a standby power management module, configured to implement the standby power method in the embodiment shown in fig. 1 in a storage device, where a basic structure of the standby power management module refers to fig. 2, and the standby power management module includes:
a saving unit 201 for performing steps 101 and 103 in the embodiment shown in fig. 1;
a power management unit 202 for performing steps 102 and 104 in the embodiment shown in fig. 1;
optionally, the storage device further comprises a fan. In order to reduce the power consumption of the storage device, the control unit 202 is further configured to perform the step of turning off the fan of the storage device before step 101 in the embodiment shown in fig. 1.
Optionally, the storage device may further include a plurality of functional apparatuses, and the functional apparatuses are connected to the processor through a PCIE interface or other interfaces. In order to reduce the power consumption of the memory device, the control unit 202 is further configured to perform the step of powering down the functional means after step 102 in the embodiment shown in fig. 1.
Optionally, the saving unit may further perform the step of writing the standby power information into the nonvolatile storage medium together with the data to be saved in the embodiment shown in fig. 1. The power backup information is used to describe information related to the power backup process, and may include one or more of a start address and an end address of data to be saved in the nonvolatile storage medium, a size of the data to be saved, whether the power backup process is successful (i.e., whether the data to be saved is successfully saved in the nonvolatile storage medium), and check information of the data to be saved, and may further include other information, which is not limited herein. The standby power management module writes the standby power information into the nonvolatile storage medium, and the storage device can restore the data to be stored according to the standby power information after the commercial power is repaired.
The embodiment of the invention also provides the SOC which is suitable for the storage equipment. The processor 301, the input/output module 303, and the standby power management module 302 in the embodiment shown in fig. 2 are integrated on the SOC, wherein the input/output module 303 is used for transmitting data with the outside of the SOC, and the processor 301, the input/output module 303, and the standby power management module 302 may be connected through a bus. The storage device further includes a memory 304 for storing data, and a backup power source, the memory includes a data buffer medium 3041, a data temporary storage medium 3042, and a nonvolatile storage medium 3043, as shown in fig. 3. Optionally, the data caching medium and the data temporary storage medium are integrated on the SOC. Optionally, the nonvolatile storage medium in the memory may be externally connected to the SOC, or may be integrated on the SOC, for example, the nonvolatile storage medium may be an SRAM integrated on the SOC. It will be appreciated that the power of the standby management module should be much less than the power of the processor on the SOC.
An embodiment of the present invention further provides a storage device, which includes a processor, a memory, a standby power supply, and the standby power management module in the embodiment shown in fig. 2. The memory is used for storing data and comprises a data cache medium, a data temporary storage medium and a nonvolatile storage medium.
An embodiment of the present invention further provides a storage device, including the SOC shown in fig. 3.
The related description of the above device can be understood by referring to the related description and effects of the method embodiment, which are not described herein in any greater detail.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (14)

1. A power backup method is applicable to a storage device, the storage device comprises a processor, a memory, a backup power supply and a power backup management module, the memory comprises a data cache medium, a data temporary storage medium and a nonvolatile storage medium, wherein the data temporary storage medium does not power down along with the shutdown of the processor, and data in the nonvolatile storage medium is not lost after the nonvolatile storage medium is powered down, the method comprises the following steps:
after the standby power supply is started, the standby power management module writes the data to be stored in the data cache medium into the data temporary storage medium;
the standby power management module is used for turning off the processor after writing the data to be stored in the data cache medium into the data temporary storage medium, and the power of the standby power management module is smaller than that of the processor;
the standby power management module writes the data to be stored in the data temporary storage medium into the nonvolatile storage medium;
and the standby power supply management module closes the standby power supply after finishing the operation of writing the data to be stored in the data temporary storage medium into the nonvolatile storage medium.
2. The power supply method of claim 1, wherein the data temporary storage medium comprises a memory of the processor;
and/or the data staging medium comprises a last level cache of the processor.
3. The power backup method according to claim 1 or 2, wherein the writing, by the power backup management module, the data to be saved in the data temporary storage medium into the nonvolatile storage medium comprises:
the standby power management module determines a starting address and an ending address of the data to be stored in the data temporary storage medium;
and the standby power management module writes the data to be stored into the nonvolatile storage medium according to the starting address and the ending address of the data to be stored in the data temporary storage medium.
4. A method of preparing electricity according to claim 1 or 2, wherein the method further comprises:
and the standby power management module writes standby power information into the nonvolatile storage medium, wherein the standby power information is used for restoring the data to be saved from the nonvolatile storage medium by the storage equipment.
5. The power backup method according to claim 4, wherein the power backup information comprises: the data storage device comprises one or more items of a starting address of the data to be stored in the nonvolatile storage medium, an ending address of the data to be stored in the nonvolatile storage medium, the size of the data to be stored, whether the data to be stored is successfully stored in the nonvolatile storage medium, check information of the data to be stored, and a speed for writing the standby power information into the nonvolatile storage medium.
6. A power backup management module suitable for a storage device, wherein the storage device further comprises a processor, a memory and a backup power supply, the memory comprises a data cache medium, a data temporary storage medium and a nonvolatile storage medium, wherein the data temporary storage medium is not powered down when the processor is turned off, and data in the nonvolatile storage medium is not lost after the nonvolatile storage medium is powered down, the power backup management module comprises:
the storage unit is used for writing the data to be stored in the data cache medium into the data temporary storage medium after the standby power supply is started;
the power management unit is used for turning off the processor after the data to be stored in the data cache medium is written into the data cache medium, and the power of the standby power management module is smaller than that of the processor;
the saving unit is further configured to write the data to be saved in the data temporary storage medium into the nonvolatile storage medium;
the power supply management unit is further configured to turn off the standby power supply after the operation of writing the data to be saved in the data temporary storage medium into the nonvolatile storage medium is completed.
7. The power backup management module according to claim 6, wherein the data temporary storage medium comprises a memory of the processor;
and/or the data staging medium comprises a last level cache of the processor.
8. The power backup management module according to claim 6 or 7, wherein the storage unit is specifically configured to:
determining a starting address and an ending address of the data to be stored in the data temporary storage medium;
and writing the data to be stored into the nonvolatile storage medium according to the starting address and the ending address of the data to be stored in the data temporary storage medium.
9. The power backup management module according to claim 6 or 7, wherein the saving unit is further configured to:
writing standby power information into the nonvolatile storage medium, wherein the standby power information is used for restoring the data to be saved from the nonvolatile storage medium by the storage device.
10. The power backup management module according to claim 9, wherein the power backup information comprises: the data storage device comprises one or more items of a starting address of the data to be stored in the nonvolatile storage medium, an ending address of the data to be stored in the nonvolatile storage medium, the size of the data to be stored, whether the data to be stored is successfully stored in the nonvolatile storage medium, check information of the data to be stored, and a speed for writing the standby power information into the nonvolatile storage medium.
11. A system-on-chip SOC adapted for use with a storage device, the SOC comprising a processor, a data caching medium, a data staging medium, an input-output module, a bus, and the power backup management module of any of claims 6 to 10, the storage device further comprising a non-volatile storage medium and a backup power source;
the data temporary storage medium is not powered down with the shutdown of the processor, and the data in the nonvolatile storage medium is not lost after the nonvolatile storage medium is powered down.
12. The SOC of claim 11, wherein the non-volatile storage medium is integrated in the SOC.
13. The SOC of claim 11 or 12, wherein the power of the power backup management module is less than the power of the processor.
14. A storage device comprising the power backup management module of any one of claims 6 to 10, or the system on chip SOC of claim 11.
CN201610105882.7A 2016-02-25 2016-02-25 SOC power supply method and SOC Active CN107122316B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610105882.7A CN107122316B (en) 2016-02-25 2016-02-25 SOC power supply method and SOC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610105882.7A CN107122316B (en) 2016-02-25 2016-02-25 SOC power supply method and SOC

Publications (2)

Publication Number Publication Date
CN107122316A CN107122316A (en) 2017-09-01
CN107122316B true CN107122316B (en) 2020-12-08

Family

ID=59717846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610105882.7A Active CN107122316B (en) 2016-02-25 2016-02-25 SOC power supply method and SOC

Country Status (1)

Country Link
CN (1) CN107122316B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107632694A (en) * 2017-09-20 2018-01-26 郑州云海信息技术有限公司 A kind of storage system is for method for electrically, system, device and readable storage medium storing program for executing
CN108983940B (en) * 2018-03-19 2021-06-01 超越科技股份有限公司 Double-control storage power-down protection system
CN110780729A (en) * 2019-09-12 2020-02-11 华为技术有限公司 Data processing method and device
CN111782149A (en) * 2020-06-30 2020-10-16 联想(北京)有限公司 Information processing method and information processing device
CN114020219B (en) * 2021-12-30 2022-04-22 苏州浪潮智能科技有限公司 Power backup device and power backup method and medium thereof
CN115543062B (en) * 2022-11-24 2023-04-07 苏州浪潮智能科技有限公司 Server interrupt operation execution method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090172469A1 (en) * 2007-12-27 2009-07-02 Huawei Technologies Co., Ltd. Method, apparatus, logic device and storage system for power-fail protection
CN104035893A (en) * 2014-06-30 2014-09-10 浪潮(北京)电子信息产业有限公司 Method for data storage during abnormal power down of computer
CN104050108A (en) * 2014-06-19 2014-09-17 华为技术有限公司 Storage device and system and data storage method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090172469A1 (en) * 2007-12-27 2009-07-02 Huawei Technologies Co., Ltd. Method, apparatus, logic device and storage system for power-fail protection
CN104050108A (en) * 2014-06-19 2014-09-17 华为技术有限公司 Storage device and system and data storage method
CN104035893A (en) * 2014-06-30 2014-09-10 浪潮(北京)电子信息产业有限公司 Method for data storage during abnormal power down of computer

Also Published As

Publication number Publication date
CN107122316A (en) 2017-09-01

Similar Documents

Publication Publication Date Title
CN107122316B (en) SOC power supply method and SOC
US9110669B2 (en) Power management of a storage device including multiple processing cores
US8443221B2 (en) Methods, systems, and computer readable media for advanced power management for serial advanced technology attachment (SATA)-based storage devices
US9286985B2 (en) Semiconductor device with power mode transitioning operation
CN101620539B (en) Method for start-up and shutdown and computer
US7917688B2 (en) Flash memory module, storage apparatus using flash memory module as recording medium, and address translation table verification method for flash memory module
US9916104B2 (en) Techniques for entry to a lower power state for a memory device
CN110488673B (en) Data processing module and data processing method in low power consumption mode
US9916165B2 (en) Systems and methods to optimize boot for information handling system comprising persistent memory
KR102114109B1 (en) Data storage device
US20170212687A1 (en) Demand-based provisioning of volatile memory for use as non-volatile memory
JP2013546087A (en) Method and apparatus for improving platform resume time
CN107291210B (en) Intelligent power clamp system and method and non-transitory computer readable memory
US20190129836A1 (en) Computer processing unit (cpu) architecture for controlled and low power save of cpu data to persistent memory
WO2015199909A1 (en) Accelerating boot time zeroing of memory based on non-volatile memory (nvm) technology
US9965017B2 (en) System and method for conserving energy in non-volatile dual inline memory modules
US20190227618A1 (en) Power Management for a Data Storage Apparatus
US10831657B2 (en) Debug data recovery after PLI event
US20100332739A1 (en) Storage device, storage controlling device, and storage controlling method
US20160224099A1 (en) System on chip power management
CN111104048B (en) Data processing method and distributed storage system
CN108369488B (en) Using volatile memory as non-volatile memory
CN110096224B (en) Power control in a memory subsystem
CN113050896A (en) Domestic Feiteng server supporting NVDIMM and data protection method
US20120290861A1 (en) Power Saving Method and Apparatus thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220118

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: Super fusion Digital Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.