CN106844160B - Power control method and device and electronic equipment - Google Patents

Power control method and device and electronic equipment Download PDF

Info

Publication number
CN106844160B
CN106844160B CN201710086000.1A CN201710086000A CN106844160B CN 106844160 B CN106844160 B CN 106844160B CN 201710086000 A CN201710086000 A CN 201710086000A CN 106844160 B CN106844160 B CN 106844160B
Authority
CN
China
Prior art keywords
power
processing module
value
compensation value
voltage
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
CN201710086000.1A
Other languages
Chinese (zh)
Other versions
CN106844160A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710086000.1A priority Critical patent/CN106844160B/en
Publication of CN106844160A publication Critical patent/CN106844160A/en
Application granted granted Critical
Publication of CN106844160B publication Critical patent/CN106844160B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3024Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3442Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for planning or managing the needed capacity

Abstract

The application discloses a power control method, a device and electronic equipment, wherein in the scheme, after the current target power of a processing module in the electronic equipment is obtained, a parameter compensation value required for adjusting the target power of the processing module is determined; and controlling the power control parameter input to the processing module based on the parameter compensation value, so that the power output by the processing module based on the power control parameter is not less than the target power. The scheme of the application can improve the working frequency of the processing module in the electronic equipment, and further improve the processing performance of the processing module.

Description

Power control method and device and electronic equipment
Technical Field
The present application relates to the field of control technologies, and in particular, to a power control method, apparatus and electronic device.
Background
The higher the operating frequency of a processing module (e.g., a central processing unit or a graphics processor) in an electronic device, the higher the data processing performance of the processing module. However, the processing modules of the electronic device each have a maximum power limit, and the maximum power limit limits the power of the electronic device, so that the frequency of the processing module is also below a specific frequency, thereby affecting the performance of the processing module. Therefore, how to increase the operating frequency of the processing module to improve the performance of the processing module is a technical problem that needs to be solved urgently by those skilled in the art.
Disclosure of Invention
In view of this, the present application provides a power control method, a power control apparatus, and an electronic device, which can implement that a processing module of the electronic device runs at a higher power, thereby facilitating a working frequency of the processing module, and further improving a processing performance of the processing module.
In order to achieve the above object, the following solutions are proposed:
in this aspect, the present application provides a power control method, including:
acquiring the current target power of a processing module in the electronic equipment;
determining a parameter compensation value required for adjusting the target power of the processing module;
and controlling the power control parameter input to the processing module based on the parameter compensation value, so that the power output by the processing module based on the power control parameter is not less than the target power.
Preferably, before the determining the parameter compensation value required for adjusting the target power of the processing module, the method further includes:
detecting whether the target power reaches a maximum power limit value set by the processing module;
the determining a parameter compensation value required for adjusting the target power of the processing module includes:
determining a parameter compensation value required to adjust the target power of the processing module when the target power reaches the maximum power limit value.
Preferably, the obtaining of the current target power of the processing module in the electronic device includes:
acquiring the current target voltage and current of a processing module in the electronic equipment;
and determining the current target power of the processing module based on the target voltage and the target current.
Preferably, the obtaining of the current target power of the processing module in the electronic device includes:
acquiring the actual power currently output by a graphic processor in the electronic equipment;
the determining a parameter compensation value required for adjusting the target power of the processing module includes:
acquiring a power compensation value for reducing the actual power;
the controlling the power control parameter input to the processing module based on the parameter compensation value comprises:
adjusting the value of the actual power according to the power compensation value to obtain an adjusted actual power value, wherein the adjusted actual power value is smaller than the actual power value;
and inputting the adjusted actual power value into the graphics processor, so that the graphics processor judges whether the reduction of the power output by the graphics processor is required to be triggered currently or not based on the adjusted actual power value.
Preferably, the obtaining a power compensation value for reducing the actual power includes:
and acquiring a preset power compensation value for reducing the actual power.
Preferably, after the adjusted actual power value is input to the graphics processor, the method further includes:
and if the adjusted actual power value is larger than a preset maximum power limit value of the graphics processor, reducing the output power of the graphics processor by the graphics processor.
Preferably, the obtaining of the current target power of the processing module in the electronic device includes:
acquiring a target power currently expected by a processor in the electronic equipment;
the determining a parameter compensation value required for adjusting the target power of the processing module includes:
determining a voltage compensation value required for reaching a target power currently desired by the processor;
the controlling the power control parameter input to the processing module based on the parameter compensation value comprises:
and increasing the voltage value output by a voltage generator for providing power supply to the processor based on the voltage compensation value.
Preferably, the determining a voltage compensation value required for reaching the target power currently expected by the processor includes:
and determining a voltage compensation value required for reaching the current expected target power of the processor according to the corresponding relation between the preset power and the compensation value.
Preferably, the acquiring a target power currently expected by a processor in the electronic device includes:
reading a voltage expected value and a current expected value input by the processor from a register of the voltage generator;
calculating the current expected target power of the processor according to the expected voltage value and the expected current value;
the increasing a voltage value output by a voltage generator for providing power to the processor based on the voltage compensation value includes:
rewriting the expected voltage value in the register of the voltage generator to the sum of the expected voltage value and the voltage compensation value to increase the voltage value output by the voltage generator to the processor.
In another aspect, the present application further provides an electronic device, including:
the device comprises a processing module, a power acquisition device and a power control chip;
the power acquisition device is used for acquiring the current target power of the processing module;
the power control chip is used for determining a parameter compensation value required for adjusting the target power of the processing module; controlling a power control parameter input to the processing module based on the parameter compensation value;
the processing module is configured to operate based on the input power control parameter such that the output power is not less than the target power.
Preferably, before the power control chip determines the parameter compensation value required for adjusting the target power of the processing module, the power control chip is further configured to detect whether the target power reaches a maximum power limit value set by the processing module;
the power control chip is configured to determine a parameter compensation value required for adjusting the target power of the processing module when determining the parameter compensation value required for adjusting the target power of the processing module, and specifically, when the target power reaches the maximum power limit value.
Preferably, the processing module is a graphics processor;
the power acquisition device is specifically used for acquiring the actual power currently output by a graphic processor in the electronic equipment when acquiring the current target power of a processing module in the electronic equipment;
the power control chip is specifically used for acquiring a power compensation value for reducing the actual power when determining a parameter compensation value required for adjusting the target power of the processing module;
the power control chip is specifically configured to, when controlling the power control parameter input to the processing module based on the parameter compensation value, adjust a value of the actual power according to the power compensation value to obtain an adjusted actual power value, where the adjusted actual power value is smaller than the value of the actual power; inputting the adjusted actual power value into the graphics processor;
and the graphics processor is used for judging whether the current need to trigger the reduction of the power output by the graphics processor based on the adjusted actual power value.
Preferably, the power control chip is specifically configured to obtain a preset power compensation value for reducing the actual power when the power compensation value for reducing the actual power is obtained.
Preferably, the graphics processor is further configured to reduce the output power of the graphics processor if the adjusted actual power value is greater than a preset maximum power limit value of the graphics processor.
Preferably, the processing module is a processor;
the electronic device further includes: the voltage generator is connected with the processor and used for providing power supply for the processor;
the power acquisition device is specifically used for acquiring the current expected target power of a processor in the electronic equipment when acquiring the current target power of the processing module;
when determining a parameter compensation value required for adjusting the target power of the processing module, the power control chip is specifically configured to determine a voltage compensation value required for achieving the currently desired target power of the processor;
the power control chip is specifically configured to increase the voltage value output by the voltage generator based on the voltage compensation value when controlling the power control parameter input to the processing module based on the parameter compensation value.
Preferably, when determining the voltage compensation value required for reaching the currently desired target power of the processor, the power control chip is specifically configured to determine the voltage compensation value required for reaching the currently desired target power of the processor according to a preset correspondence between power and the compensation value.
Preferably, the power acquisition device is specifically configured to read a voltage expected value and a current expected value input by a processor from a register of the voltage generator when acquiring a target power currently expected by the processor in the electronic device; calculating the current expected target power of the processor according to the expected voltage value and the expected current value;
the power control chip is specifically configured to rewrite the expected voltage value in the register of the voltage generator to a sum of the expected voltage value and the voltage compensation value to increase the voltage value output from the voltage generator to the processor, when increasing the voltage value output from the voltage generator for supplying power to the processor based on the voltage compensation value.
In another aspect, the present application further provides a power control apparatus, including:
the power acquisition unit is used for acquiring the current target power of a processing module in the electronic equipment;
a compensation determining unit for determining a parameter compensation value required for adjusting the target power of the processing module;
and the power control unit is used for controlling the power control parameter input to the processing module based on the parameter compensation value so that the power output by the processing module based on the power control parameter is not less than the target power.
As can be seen, in the embodiment of the present application, after the target power of the processing module of the electronic device is obtained, the parameter compensation value required for adjusting the target power is determined, and the power control parameter input to the processing module is controlled based on the parameter compensation value, so that the power output by the processing module based on the power control parameter may not be less than the target power, and thus, even if the target power of the processing module reaches the maximum limit power, the power output by the processing module is not reduced, which is beneficial to increasing the output power of the processing module, thereby increasing the operating frequency of the processing module, and improving the performance of the processing module.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on the provided drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram illustrating one embodiment of a power control method disclosed herein;
FIG. 2 is a flow chart illustrating a power control method according to another embodiment of the present disclosure;
FIG. 3 is a flow chart illustrating a power control method according to another embodiment of the present disclosure;
FIG. 4 is a flow chart illustrating a power control method according to yet another embodiment of the present disclosure;
FIG. 5 is a schematic diagram of an exemplary embodiment of an electronic device disclosed herein;
FIG. 6 is a schematic diagram of a component structure of another embodiment of an electronic device disclosed in the present application;
FIG. 7 is a schematic diagram of a component structure of another embodiment of an electronic device disclosed in the present application;
fig. 8 is a schematic structural diagram illustrating an embodiment of a power control apparatus disclosed in the present application.
Detailed Description
The power control method provided by the embodiment of the application is suitable for any electronic equipment, such as a mobile phone, a notebook computer, a tablet computer and the like, and the power of the processing module in the electronic equipment can be larger than the maximum limit power preset in the processing module by the power control method, so that the working frequency of the processing module can be increased, and the performance of the processing module is improved. The Processing module mentioned in the embodiments of the present application may be a Processing module such as a Central Processing Unit (CPU) and a Graphics Processing Unit (GPU).
The following examples are given for illustrative purposes.
Referring to fig. 1, which shows a schematic flow chart of an embodiment of a power control method according to the present application, the method of the present embodiment may include:
s101, acquiring the current target power of a processing module in the electronic equipment.
The processing module may be a module used in an electronic device to implement related processing functions such as data or graphics, such as a CPU or a GPU.
In the embodiment of the present application, the target power may have multiple possibilities, for example, the target power may be an actual power currently output by the processing module and acquired in real time; as another example, the target power may also be a target power currently expected by the processing module, and so on. The possible situation of the target power can be set according to the requirement; or the target power collected can be different according to different processing modules.
It is understood that the target power of the processing module can be obtained directly through the target power of the processing module output by the existing acquisition device or power collector in the electronic device. In a possible implementation manner, the current target voltage and target current of the processing module may be obtained first, and then the target power of the touch module is calculated based on the target voltage and target current. The target voltage and the target current may be the actual voltage and the actual current of the processing module, or the voltage and the current desired by the processing module.
And S102, determining a parameter compensation value required for adjusting the target power of the processing module.
In the embodiment of the present application, the parameter compensation value is a value of a parameter that can adjust the power of the processing module. The power control parameter input to the processing module for controlling the power of the processing module can be adjusted by the parameter compensation value, so that the power output by the processing module after the current moment can be larger than the target power.
For example, the parameter compensation value may be a voltage compensation value, and the power output by the processing module may be increased by compensating the voltage of the processing module. For another example, the parameter compensation value may be a power compensation value for compensating a value of the target power, so that the power value that can be acquired by the processing module is smaller than the actually output target power by compensating the power of the processing module, and thus the processing module may not trigger the start of the power adjustment mechanism when the actual power reaches the maximum limit power, which is beneficial to enabling the processing module to operate at a power higher than the maximum limit power and improving the operating frequency of the processing module. Of course, the parameter compensation value may also be other parameter values that can be used to increase the power output by the processing module after the current time, and is not limited herein.
It can be understood that, in consideration that the power actually output by the processing module is greatly limited when the power output by the processing module reaches or approaches the maximum limit power corresponding to the processing module, so as to affect the actual operating frequency of the processing module, in an embodiment, after the target power of the processing module is obtained in step S101, whether the target power reaches the maximum limit power may also be detected, and if the target power reaches the maximum limit power, the parameter compensation value is determined, so as to increase the power that can be output subsequently by the processing module. Of course, it is also possible to trigger the determination of the parameter compensation value when the difference between the target power and the maximum limit power is smaller than a preset threshold.
S103, controlling the power control parameter input to the processing module based on the parameter compensation value, so that the power output by the processing module based on the power control parameter is not less than the target power.
The power control parameter is a parameter related to controlling the output power of the processing module, for example, the power control parameter may be a voltage value of a voltage input to the processing module, or an actual power of the processing module required to be known by the processing module and input to the processing module. In this embodiment, according to the determined parameter compensation value, the power control parameter is adjusted, so that after the power control parameter is input to the processing module, the power that can be output by the processing module when the processing module operates based on the power control parameter can maintain or exceed the target power.
In this embodiment of the present application, after the target power of the processing module of the electronic device is obtained, a parameter compensation value required for adjusting the target power is determined, and the power control parameter input to the processing module is controlled based on the parameter compensation value, so that the power output by the processing module based on the power control parameter may not be less than the target power.
It can be understood that, when the processing modules are different, the manner of compensating the power of the processing modules may also be different, and the power control method according to the embodiment of the present application is described below separately for different cases of the processing modules.
First, a processing module is taken as a GPU for example.
The GPU may limit a maximum allowable Output power value of the GPU according to a power value set in a Basic Input Output System (BIOS) of the graphics card, that is, a maximum power limit value that the GPU can reach, and when the power Output by the GPU reaches or exceeds the maximum limit power, the operating frequency of the GPU may also be overfrequency, so that the GPU may be triggered to start a power adjustment mechanism to reduce the power Output by the GPU. However, due to the reduction of the GPU power, the operating frequency of the GPU is reduced, so that the processing performance of the GPU for processing the image is reduced.
In order to enable the GPU to still improve the power of the GPU or to enable the power of the GPU not to be limited by the maximum power limit value when the GPU is over-clocking, so as to achieve the purpose of improving the operating frequency of the GPU and further improving the performance of the GPU, reference may be made to fig. 2, which shows a flowchart of another embodiment of the power control method according to the present application, where the embodiment is suitable for controlling the power of the GPU, and the method of the embodiment may include:
s201, acquiring the actual power currently output by a graphic processor in the electronic equipment.
In this embodiment, the obtained target power is an actual power currently output by the GPU.
The actual power currently output by the graphics processor may be obtained in various manners, for example, the actual power of the graphics processor may be determined based on the power collected by a power collection device for collecting GPU power in the electronic device, and it is understood that, in order not to trigger a power adjustment mechanism of the graphics processor, the power value of the actual power of the graphics processor, which is required to be input into the graphics processor by the power collection device, may be intercepted.
For another example, the current actual power of the graphics processor may also be calculated based on the current voltage and current of the GPU collected by the power collecting device.
And S202, acquiring a power compensation value for reducing the actual power.
In this embodiment, the parameter compensation value is a power compensation value, and the power compensation value is used to reduce the value of the actual power.
It can be understood that, considering that the power limit needs to be broken only when the actual power exceeds the maximum power limit value, so that the power of the GPU can exceed the maximum power limit value to boost the power of the GPU, as an alternative embodiment, it may be detected whether the actual power exceeds the maximum power limit value of the GPU, and if the actual power exceeds the maximum power limit value, the power compensation value is triggered to be obtained.
The manner of obtaining the power compensation value may be various:
in one implementation, the power compensation value may be preset in advance, and accordingly, the preset power compensation value may be directly obtained. In this case, the power compensation value may be a fixed value, and the size of the power compensation value may be set according to the maximum power of the graphics processor that the electronic device can bear, and specifically, may be set by combining the maximum power limit value and the maximum power that the electronic device can bear the operation of the graphics processor.
In yet another implementation, if the actual power is greater than the maximum power limit, a power difference value that the actual power is greater than the maximum power limit may be calculated and used as a compensation value for the actual power. Of course, in this case, in order to avoid the electronic device from running in an overload state, a maximum compensation value may be set, and if the power difference is greater than the maximum compensation value, the power compensation value is replaced with the maximum compensation value.
S203, adjusting the value of the actual power according to the power compensation value to obtain the adjusted actual power value.
And the value of the adjusted actual power is smaller than the actual power.
If the power compensation value can be a negative number, the actual power can be added to the power compensation value to obtain a power value smaller than the value of the actual power. For example, the actual power is 120 watts, the power compensation value is-20 watts, and the adjusted actual power value is 100 watts.
For another example, when the power compensation value is a positive number, the power compensation value may be subtracted from the actual power to obtain an adjusted actual power value.
And S204, inputting the adjusted actual power value into a graphics processor, so that the graphics processor judges whether to trigger reduction of the power output by the graphics processor at present based on the adjusted actual power value.
According to the embodiment of the application, the actual power of the graphics processor is not directly notified to the graphics processor, and after the value of the actual power is reduced, the adjusted actual power value is notified to the graphics processor, so that the power value acquired by the graphics processor is smaller than the actual power of the graphics processor.
It can be understood that the electronic device may notify the monitored value of the current actual power of the graphics processor to the graphics processor, so that the graphics processor determines whether a condition for triggering the power adjustment mechanism is currently satisfied according to the value of the actual power and the maximum power limit value, and if the value of the actual power acquired by the graphics processor is already greater than the maximum power limit value, the graphics processor triggers the power adjustment mechanism to reduce the power of the graphics processor. In the embodiment of the application, the value of the actual power is adjusted to make the adjusted value of the actual power smaller than the original value of the actual power, so that even if the actual power of the graphics processor exceeds the maximum power limit value, the adjusted power compensation value may be smaller than the maximum power limit value after the actual power is adjusted based on the power compensation value, and thus a power adjustment mechanism of the graphics processor is not triggered.
For example, assuming that the maximum power limit value is 100 watts, if the actual power reaches or exceeds 100 watts according to the existing manner, the graphics processor may reduce its own power, and according to the manner of this embodiment, assuming that the actual power is 115 watts, and the obtained power compensation value is 20 watts, the adjusted actual power value may be 95 watts, which is smaller than the maximum power limit value, so that after inputting the value of 95 watts to the graphics processor, the graphics processor may consider that the actual power still does not reach the maximum power limit value, and may not trigger a power adjustment mechanism, so that the graphics processor may maintain or even increase its own power, so that the power of the graphics processor may exceed the maximum power limit, which is beneficial to increasing the operating frequency of the graphics processor.
Further, considering that the power of the graphics processor cannot be increased without limit, the maximum value of the power compensation value may be limited, so that if the actual power far exceeds the maximum power limit value, even after the actual power is adjusted by the power compensation value, the value of the adjusted actual power may still be greater than the maximum power limit value. Therefore, if the adjusted actual power value is larger than the preset maximum power limit value of the graphics processor, the graphics processor will also reduce the output power of the graphics processor.
For convenience of understanding, an application scenario is taken as an example below, and a power control method is described when a processing module is a GPU, for example, referring to fig. 3, which shows a flowchart of another embodiment of the power control method according to the present application, where the method according to the present embodiment may include:
s301, acquiring voltages at two ends of a specific resistor connected with the GPU in series and power supply voltage flowing through the specific resistor;
the resistance of the specific resistor is small, so that the power voltage flowing through the specific resistor is considered to be the actual voltage across the GPU.
Optionally, a collecting device for collecting the voltage across the specific resistor and the power supply voltage may be disposed in the circuit between the GPU and the specific resistor. Furthermore, the collected voltage is an analog value, so that the specific resistor can be connected with an analog-to-digital converter, the power supply voltage and the voltages at two ends of the specific resistor can be collected through the analog-to-digital converter, and the collected voltage signals are subjected to analog-to-digital conversion, so that the values of the voltages at two ends of the specific resistor and the power supply voltage flowing through the specific resistor are finally obtained. The connection relationship among the specific resistor, the GPU and the analog-to-digital converter can be seen in the following fig. 6.
S302, calculating the actual current flowing through the GPU according to the resistance value of the specific resistor and the voltages at the two ends of the specific resistor;
the actual current flowing through the GPU is the same as the current flowing through the specific resistor, so that the actual current of the GPU can be calculated under the condition that the resistance value of the specific resistor and the voltage across the specific resistor are determined.
S303, multiplying the actual current flowing through the GPU by the power supply voltage flowing through the specific resistor, and calculating to obtain the current actual power of the GPU;
it should be noted that, in the embodiment of the present application, for convenience of understanding a process of obtaining the current actual power of the GPU, an implementation manner is taken as an example, but it is understood that a manner of obtaining the actual power of the GPU by other manners is also applicable to the embodiment of the present application, and is not limited herein.
S304, detecting whether the power of the GPU is larger than the maximum power limiting value of the GPU;
s305, if the power of the GPU is larger than the maximum power limiting value, acquiring a preset power compensation value, wherein the power compensation value is a negative number;
the embodiment of the present application is described by taking a manner of obtaining the power compensation value as an example, but obtaining the power compensation value by other manners is also applicable to the embodiment.
S306, summing the power compensation value and the current actual power of the GPU to obtain an adjusted actual power value;
and S307, inputting the adjusted actual power value as the acquired current power of the GPU through a data interface connected with the GPU, so that the GPU judges whether a power adjustment mechanism needs to be started at present by comparing the adjusted actual power with the maximum power limit value.
The following describes a power control method according to an embodiment of the present application, taking a processing module as an example of a CPU in an electronic device.
The CPU is also preset with a maximum power limit value, and the operating frequency of the CPU also has a nominal frequency corresponding to the maximum power limit value of the CPU. The operating frequency of the CPU exceeding the nominal frequency is commonly called overclocking, and when the CPU overclocks, the core voltage and current of the CPU also increase significantly with the increase of the CPU frequency, and a problem that follows with this is that the voltage drop output from the power supply to the CPU also increases significantly under a large operating current, so that the maximum power of the CPU is limited, thereby affecting the maximum frequency and the operating stability that the CPU can reach, and being not beneficial to the performance improvement of the CPU. For example, the power source path from the output terminal of the voltage generator to the input terminal of the CPU may cause a voltage drop due to the loss of some electronic components (e.g., inductor, capacitor), etc. caused by the circuit on the PCB, so that the required voltage of the CPU is different from the actual voltage, resulting in a power of the CPU being lower than the actual power.
The power control method of the embodiment of the application can compensate the voltage drop of the CPU so as to improve the power of the CPU. For example, referring to fig. 4, which shows a flowchart of an embodiment of a power control method according to the present application, the method of the present embodiment is suitable for controlling power of a CPU, and the method of the present embodiment may include:
s401, acquiring the target power currently expected by a processor in the electronic equipment.
The processor sets the desired voltage and current according to the operation requirement of the processor, and the target power expected by the processor can be obtained according to the voltage and current required by the processor.
In one implementation, the expected voltage value and the expected current value output by the processor to the voltage generator may be obtained, and then the expected voltage value and the expected current value obtained by the voltage generator may be used to calculate the target power desired by the processor. Wherein the voltage generator is used for providing power supply for the processor. It can be understood that the processor can input the desired voltage and current values to the voltage generator in real time or at regular intervals as required according to the operation requirement of the processor, and therefore, the voltage and current values input to the voltage generator by the processor can be read by some control chips.
S402, determining a voltage compensation value required for reaching the target power currently expected by the processor.
The voltage compensation value is used for reducing the voltage drop generated by the power supply from output to input of the processor on the premise of the target power expected by the processor.
In practical application, the voltage compensation value can be calculated in real time according to the voltage losses of the circuit elements in the processor and the voltage generator.
In an alternative implementation, the correspondence between power and compensation value may also be preset, e.g. a list is preset in which the voltage compensation values required for the different powers expected by the processor are recorded. For different target powers expected by the processor, the corresponding voltage compensation value can be determined by testing the actual voltage drop, so that more reasonable voltage compensation values can be set for different target powers. Accordingly, according to the corresponding relation, the voltage compensation value required by the target power currently expected by the processor can be determined.
Of course, there may be other ways to determine the voltage compensation value in practical applications, and the present invention is not limited thereto.
And S403, increasing the voltage value output by a voltage generator for providing power supply to the processor based on the voltage compensation value.
The output power of the processor can be enabled to be not less than the target power by increasing the voltage value output by the voltage generator.
For example, the voltage value output by the voltage generator may be increased from the expected voltage value by a voltage corresponding to the voltage compensation value, so as to compensate for the voltage loss generated during the process of inputting the power output by the voltage generator to the processor.
It will be appreciated that the voltage desired value and the current desired value output by the processor to the voltage generator may be stored in registers in the voltage generator, and the voltage generator will output power to the processor based on the voltage desired value and the current desired value in the registers, so that the voltage desired value and the current desired value may be read from the voltage generator registers in order to increase the power that the processor can actually reach. Correspondingly, the current expected target power of the processor is calculated according to the expected voltage value and the expected current value, after the voltage compensation value is determined, the expected voltage value in the register of the voltage generator is rewritten to the sum of the expected voltage value and the compensation value, so that the voltage value output to the processor by the voltage generator is increased, the actual power of the processor is larger than the power which can be reached before the voltage compensation value is increased, and the actual power of the processor can reach the expected target power.
Therefore, in this embodiment, after the target power expected by the processor is obtained, the voltage compensation value required to be compensated for reaching the target power can be determined, and the voltage output by the voltage generator is increased based on the voltage compensation value, so that the voltage drop that may exist when the power supply output by the voltage generator reaches the processor is reasonably compensated, the situation that the processor cannot reach the expected target power due to the voltage drop is reduced, the processor can output higher power, the processor can stably operate at higher frequency, and the performance of the processor is improved.
On the other hand, corresponding to the foregoing power control method, the embodiment of the present application further provides an electronic device.
As shown in fig. 5, which shows a schematic structural diagram of an embodiment of an electronic device according to the present application, the electronic device of the present embodiment may include: a processing module 501, a power acquisition device 502 and a power control chip 503;
the power acquisition device 502 is configured to acquire a current target power of the processing module;
the power control chip 503 is configured to determine a parameter compensation value required for adjusting the target power of the processing module; controlling a power control parameter input to the processing module based on the parameter compensation value;
the processing module 501 is configured to operate based on the input power control parameter, so that the output power is not less than the target power.
Optionally, before the power control chip determines a parameter compensation value required for adjusting the target power of the processing module, the power control chip is further configured to detect whether the target power reaches a maximum power limit value set by the processing module;
the power control chip is configured to determine a parameter compensation value required for adjusting the target power of the processing module when determining the parameter compensation value required for adjusting the target power of the processing module, and specifically, when the target power reaches the maximum power limit value.
Optionally, the power acquisition unit is specifically configured to acquire a current target voltage and a current target current of a processing module in the electronic device when acquiring a current target power of the processing module in the electronic device; and determining the current target power of the processing module based on the target voltage and the target current.
Optionally, in a possible case, the processing module may be a GPU, for example, see fig. 6, which shows a schematic structural diagram of another embodiment of an electronic device of the present application; the electronic device may include:
a Graphics Processing Unit (GPU) 601, a power acquisition device 602 and a power control chip 603;
the power acquisition device 602 is specifically configured to acquire an actual power currently output by a graphics processor in the electronic device when acquiring a current target power of a processing module in the electronic device;
the power control chip 603 is specifically configured to obtain a power compensation value for reducing the actual power; adjusting the value of the actual power according to the power compensation value to obtain an adjusted actual power value, wherein the adjusted actual power value is smaller than the actual power value; inputting the adjusted actual power value into the graphics processor;
the graphics processor 601 is configured to determine whether to trigger reduction of the power output by the graphics processor currently based on the adjusted actual power value.
It is understood that the specific way of actually acquiring the GPU by the power acquisition device is different, and the composition structure of the power acquisition device is also different, and as an alternative embodiment, the power acquisition device may include a specific resistor 6021 connected in series with the GPU and an analog-to-digital converter 6022 for acquiring the voltage across the specific resistor and the power supply voltage across the specific resistor, and the analog-to-digital converter may convert the acquired analog voltage (including the voltage across the specific resistor and the power supply voltage across the specific resistor) into a digital voltage. Of course, the power collecting device shown in fig. 6 is only one form shown for convenience of understanding, and is only an alternative embodiment, and other constituent structures are also applicable to the power collecting device of the present embodiment.
On the basis of the embodiment of fig. 6, in an implementation manner, when the power control chip obtains the power compensation value for reducing the actual power, the power control chip is specifically configured to obtain a preset power compensation value for reducing the actual power.
Further, the graphics processor is further configured to reduce the output power of the graphics processor if the adjusted actual power value is greater than a preset maximum power limit value of the graphics processor.
In another possible case, the processing module may be a processor CPU; for example, referring to fig. 7, a schematic diagram of a component structure of another embodiment of an electronic device of the present application is shown; the electronic device of the present embodiment may include: a processor 701, a voltage generator 702 connected to the processor, a power acquisition device 703 connected to the voltage generator and a power control chip 704
Wherein, the voltage generator 702 is used for providing power supply to the processor 701;
the power acquisition device 703 is specifically configured to, when acquiring the current target power of the processing module, acquire a current expected target power of a processor in the electronic device;
the power control chip 704 is specifically configured to determine a voltage compensation value required to achieve a target power currently desired by the processor; and increasing the voltage value output by the voltage generator based on the voltage compensation value.
Alternatively, the power collecting device 703 and the power control chip 704 may be integrated in a circuit board, and the circuit board integrated with the power collecting device and the power control chip may be connected to the voltage generator through a control Bus, for example, fig. 7 is an example in which the control Bus is a System Management Bus (SMBus).
On the basis of the embodiment of fig. 7, optionally, when determining the voltage compensation value required to reach the target power currently expected by the processor, the power control chip is specifically configured to determine the voltage compensation value required to reach the target power currently expected by the processor according to a preset corresponding relationship between power and the compensation value.
Optionally, when obtaining a target power currently expected by a processor in the electronic device, the power acquisition device is specifically configured to read a voltage expected value and a current expected value input by the processor from a register of the voltage generator; calculating the current expected target power of the processor according to the expected voltage value and the expected current value;
the power control chip is specifically configured to rewrite the expected voltage value in the register of the voltage generator to a sum of the expected voltage value and the voltage compensation value to increase the voltage value output from the voltage generator to the processor, when increasing the voltage value output from the voltage generator for supplying power to the processor based on the voltage compensation value.
On the other hand, the embodiment of the application also provides a power control device. For example, referring to fig. 8, which shows a schematic structural diagram of an embodiment of a power control apparatus according to the present application, the apparatus of the present embodiment may include:
the power acquisition unit 801 is used for acquiring the current target power of a processing module in the electronic equipment;
a compensation determining unit 802, configured to determine a parameter compensation value required for adjusting the target power of the processing module;
a power control unit 803, configured to control a power control parameter input to the processing module based on the parameter compensation value, so that the power output by the processing module based on the power control parameter is not less than the target power.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (11)

1. A method of power control, comprising:
acquiring the current target power of a processing module in the electronic equipment;
determining a parameter compensation value required for adjusting the target power of the processing module; the parameter compensation value is a power compensation value used for reducing the value of the target power or a voltage compensation value used for compensating the voltage drop generated by the power supply from the output to the input of the processing module;
and controlling the power control parameter input to the processing module based on the parameter compensation value, so that the power output by the processing module based on the power control parameter is not less than the target power.
2. The power control method of claim 1, further comprising, prior to the determining a parameter compensation value required to adjust the target power of the processing module:
detecting whether the target power reaches a maximum power limit value set by the processing module;
the determining a parameter compensation value required for adjusting the target power of the processing module includes:
determining a parameter compensation value required to adjust the target power of the processing module when the target power reaches the maximum power limit value.
3. The power control method according to claim 1 or 2, wherein the obtaining of the current target power of a processing module in the electronic device comprises:
acquiring the actual power currently output by a graphic processor in the electronic equipment;
the determining a parameter compensation value required for adjusting the target power of the processing module includes:
acquiring a power compensation value for reducing the actual power;
the controlling the power control parameter input to the processing module based on the parameter compensation value comprises:
adjusting the value of the actual power according to the power compensation value to obtain an adjusted actual power value, wherein the adjusted actual power value is smaller than the actual power value;
and inputting the adjusted actual power value into the graphics processor, so that the graphics processor judges whether the reduction of the power output by the graphics processor is required to be triggered currently or not based on the adjusted actual power value.
4. The power control method of claim 3, wherein the obtaining a power compensation value for reducing the actual power comprises:
and acquiring a preset power compensation value for reducing the actual power.
5. The power control method according to claim 1 or 2, wherein the obtaining of the current target power of a processing module in the electronic device comprises:
acquiring a target power currently expected by a processor in the electronic equipment;
the determining a parameter compensation value required for adjusting the target power of the processing module includes:
determining a voltage compensation value required for reaching a target power currently desired by the processor;
the controlling the power control parameter input to the processing module based on the parameter compensation value comprises:
and increasing the voltage value output by a voltage generator for providing power supply to the processor based on the voltage compensation value.
6. The power control method of claim 5, wherein the determining the voltage compensation value required to achieve the target power currently desired by the processor comprises:
and determining a voltage compensation value required for reaching the current expected target power of the processor according to the corresponding relation between the preset power and the compensation value.
7. The power control method of claim 5, wherein obtaining the target power currently desired by a processor in the electronic device comprises:
reading a voltage expected value and a current expected value input by the processor from a register of the voltage generator;
calculating the current expected target power of the processor according to the expected voltage value and the expected current value;
the increasing a voltage value output by a voltage generator for providing power to the processor based on the voltage compensation value includes:
rewriting the expected voltage value in the register of the voltage generator to the sum of the expected voltage value and the voltage compensation value to increase the voltage value output by the voltage generator to the processor.
8. An electronic device, comprising:
the device comprises a processing module, a power acquisition device and a power control chip;
the power acquisition device is used for acquiring the current target power of the processing module;
the power control chip is used for determining a parameter compensation value required for adjusting the target power of the processing module; the parameter compensation value is a power compensation value used for reducing the value of the target power or a voltage compensation value used for compensating the voltage drop generated by the power supply from the output to the input of the processing module; controlling a power control parameter input to the processing module based on the parameter compensation value;
the processing module is configured to operate based on the input power control parameter such that the output power is not less than the target power.
9. The electronic device of claim 8, wherein the processing module is a graphics processor;
the power acquisition device is specifically used for acquiring the actual power currently output by a graphic processor in the electronic equipment when acquiring the current target power of a processing module in the electronic equipment;
the power control chip is specifically used for acquiring a power compensation value for reducing the actual power when determining a parameter compensation value required for adjusting the target power of the processing module;
the power control chip is specifically configured to, when controlling the power control parameter input to the processing module based on the parameter compensation value, adjust a value of the actual power according to the power compensation value to obtain an adjusted actual power value, where the adjusted actual power value is smaller than the value of the actual power; inputting the adjusted actual power value into the graphics processor;
and the graphics processor is used for judging whether the current need to trigger the reduction of the power output by the graphics processor based on the adjusted actual power value.
10. The electronic device of claim 8, wherein the processing module is a processor;
the electronic device further includes: the voltage generator is connected with the processor and used for providing power supply for the processor;
the power acquisition device is specifically used for acquiring the current expected target power of a processor in the electronic equipment when acquiring the current target power of the processing module;
when determining a parameter compensation value required for adjusting the target power of the processing module, the power control chip is specifically configured to determine a voltage compensation value required for achieving the currently desired target power of the processor;
the power control chip is specifically configured to increase the voltage value output by the voltage generator based on the voltage compensation value when controlling the power control parameter input to the processing module based on the parameter compensation value.
11. A power control apparatus, comprising:
the power acquisition unit is used for acquiring the current target power of a processing module in the electronic equipment;
a compensation determining unit for determining a parameter compensation value required for adjusting the target power of the processing module; the parameter compensation value is a power compensation value used for reducing the value of the target power or a voltage compensation value used for compensating the voltage drop generated by the power supply from the output to the input of the processing module;
and the power control unit is used for controlling the power control parameter input to the processing module based on the parameter compensation value so that the power output by the processing module based on the power control parameter is not less than the target power.
CN201710086000.1A 2017-02-17 2017-02-17 Power control method and device and electronic equipment Active CN106844160B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710086000.1A CN106844160B (en) 2017-02-17 2017-02-17 Power control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710086000.1A CN106844160B (en) 2017-02-17 2017-02-17 Power control method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN106844160A CN106844160A (en) 2017-06-13
CN106844160B true CN106844160B (en) 2020-05-26

Family

ID=59128369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710086000.1A Active CN106844160B (en) 2017-02-17 2017-02-17 Power control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN106844160B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108535564B (en) * 2018-04-04 2023-11-07 南方电网科学研究院有限责任公司 Control method for rapid bypass series compensation equipment of high-voltage direct current system
CN113306727A (en) * 2021-05-25 2021-08-27 成都锐能科技有限公司 Power distribution method, device and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101344815B (en) * 2008-08-22 2010-06-09 华硕电脑股份有限公司 Computer system for regulating electric voltage and frequency of CPU
TWI414925B (en) * 2008-11-27 2013-11-11 Asustek Comp Inc Methods and apparatuses for determining quality parameters of control signals of memory modules
US8909962B2 (en) * 2009-12-16 2014-12-09 Qualcomm Incorporated System and method for controlling central processing unit power with guaranteed transient deadlines
CN106292838B (en) * 2016-07-27 2020-08-25 联想(北京)有限公司 Control method, processor and electronic equipment

Also Published As

Publication number Publication date
CN106844160A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
JP5791007B2 (en) Power supply apparatus and method, and user apparatus
KR101678116B1 (en) Power supply system, electronic device and electricity distribution method of electronic device
KR102353446B1 (en) Method and apparatus for displaying electricity quantity of battery, and electronic device
EP2911232B1 (en) Charging method and charger
US20170222451A1 (en) Charging Method and Apparatus
RU2727619C1 (en) Charging circuit, terminal and charging method
EP3349325B1 (en) Charging method, charging device and terminal
CN106992326B (en) Charging control method and device and electronic equipment
CN104765396B (en) Shutdown voltage dynamic adjusting method and the system of adjustment based on mobile terminal
CN112114652B (en) Voltage control method and device, electronic equipment and readable storage medium
CN110061313B (en) Method, device, equipment and storage medium for intelligently adjusting charging
TWI566502B (en) Portable device and method for controlling charging current thereof
US20160091950A1 (en) Peak current management
US20130311120A1 (en) Battery voltage detection method and apparatus
US9787121B2 (en) Power supply control method and portable electronic device using the same
CN106844160B (en) Power control method and device and electronic equipment
US20130205140A1 (en) Electronic apparatus and driving control method thereof
US9122470B2 (en) Electronic device with power control function
CN112039064B (en) Control method based on power supply system and related device
CN111404242A (en) Charging method, charging device, storage medium and mobile terminal
CN107357654B (en) Method and device for controlling over-frequency working state of CPU
WO2022206646A1 (en) Power source chip testing circuit, power source chip testing method and apparatus, and electronic device
WO2012102933A2 (en) Detection of insufficient supplied power
CN113010004A (en) Abnormal power consumption processing method and device and electronic equipment
CN112216888A (en) Charging method and device and electronic equipment

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