Power consumption adjusting method and apparatus, computing device, and computer-readable storage medium
By monitoring the multi-level parameters of the power supply system and devices of computing equipment and adjusting their operating frequency and voltage, the problem of unbalanced use of power resources in the existing technology is solved, and more efficient power consumption adjustment and business performance guarantee are achieved.
Patent Information
- Application Number
- PCT/CN2023/117599
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-28
- Filing Date
- 2023-09-08
- Publication Date
- 2024-09-06
AI Technical Summary
Existing power consumption adjustment methods adjust the power consumption of the device by detecting the output power consumption of the power module, resulting in uneven use of power resources and affecting the efficiency of the device.
By monitoring the multi-level parameters of the power supply system and devices of computing equipment, such as internal module voltage, bus voltage, core current, etc., the power control level strategy is determined and the operating frequency and voltage of the device are adjusted to achieve balanced regulation of power consumption.
It achieves a more balanced use of power resources, reduces device power consumption, avoids power spikes, and ensures normal operation of business performance.
Smart Images

Figure CN2023117599_06092024_PF_FP
Abstract
Description
Power consumption adjustment method, device, computing device and computer-readable storage medium
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on February 28, 2023, with application number CN202310230200.5 and invention name “Power consumption adjustment method, device, computing device and computer-readable storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of computer technology, and in particular to a power consumption adjustment method, apparatus, computing device, and computer-readable storage medium. Background Art
[0003] With the rapid development of computer technology, high-performance processor-based computing systems are being deployed on a large scale. This substantial increase in chip performance and computing power also poses challenges to the device's power supply system. Therefore, how to detect changes in device power consumption and respond to abnormalities has become a pressing issue.
[0004] In existing power consumption adjustment methods, the power consumption of the device is adjusted by detecting the output power consumption of the power module. The output power consumption of the power module has a limited impact on the power consumption of the device, resulting in uneven use of power resources.
[0005] Summary of the Invention
[0006] This application provides a power consumption adjustment method, apparatus, computing device, and computer-readable storage medium. In the power consumption adjustment method, not only is the power consumption state of the power supply system determined based on the output parameters of the power supply system, but the load state of the device in the computing device is also determined based on the power supply parameters of the device. The power consumption of the device is then adjusted based on the power consumption state and load state of the power supply system, thereby achieving balanced power consumption across the devices. In other words, by detecting the primary and secondary power supplies and adjusting the power consumption of the devices, power resources can be better balanced.
[0007] In a first aspect, a power consumption adjustment method is provided, which is executed by a power consumption control module in a computing device. The power consumption control module can obtain monitoring results of the power supply system and devices of the computing device, and the monitoring results include voltage drop parameters of the internal modules of the device, bus voltage drop parameters of the input bus voltage in the power supply system, first bus current parameters of the input bus current, and load power supply parameters of the core current provided to the device. In other words, the types indicated by the monitoring results include monitoring of voltage drop and monitoring of current, and the monitoring objects corresponding to the monitoring results include the power supply system and devices. After the power consumption control module obtains the monitoring results, it will determine the power control hierarchy strategy based on the monitoring results. The power control hierarchy strategy is used to adjust the power consumption of the device based on the monitoring results of the power supply system and devices, so as to eliminate power spikes and dynamic power adjustment in the power supply system. And the power consumption of the device is adjusted according to the power control hierarchy strategy.
[0008] In this application, not only is the power consumption state of the power supply system determined based on its output parameters, but the load state of the device in the computing device is also determined based on the power supply parameters of the device. The power consumption of the device is then adjusted based on the power consumption state and load state of the power supply system, thereby achieving balanced power consumption across the devices. In other words, by detecting the primary and secondary power supplies and adjusting the power consumption of the devices, power resources can be better balanced.
[0009] In one possible implementation, a computing device includes a power supply system and devices. The power supply system refers to a series of hardware including a power supply, a bus, a voltage comparator, etc. for powering the device; the device can also be called a power-consuming device or a power-receiving device, which can be understood as the load part of the computing device.
[0010] In one possible implementation, the device internal module voltage drop parameter is obtained by monitoring the device internal module voltage via the device internal voltage monitoring module. In other words, the monitoring object corresponding to the device internal module voltage drop parameter is the device internal module voltage, and the monitoring subject is the device internal voltage monitoring module. If the device internal module voltage parameter indicates that the voltage of the device internal module is less than a first voltage threshold, the power consumption control module determines a power control hierarchy policy to reduce the device operating frequency to a first preset percentage of the device's standard operating frequency. The device operating frequency is positively correlated with the device power consumption; that is, the higher the device operating frequency, the higher the device power consumption; the lower the device operating frequency, the lower the device power consumption. In this case, the power consumption control module adjusts the device power consumption according to the power control hierarchy policy, meaning that the power consumption control module controls the device operating frequency to be reduced to a first preset percentage of the device's standard operating frequency, thereby reducing the device power consumption. The first preset percentage can be determined based on experimental data and service performance, balancing service performance to avoid significantly reducing service performance due to a reduction in the device operating frequency, thereby ensuring that services can continue to operate normally.
[0011] In one possible implementation, the bus voltage drop parameter is obtained by monitoring the voltage of the input bus in the power supply system by the bus voltage monitoring module on the input bus of the power supply system. That is to say, the monitoring object of the bus voltage drop parameter is the voltage of the input bus, and the monitoring subject is the bus voltage monitoring module on the input bus. When the bus voltage drop parameter indicates that the voltage of the input bus of the power supply system is less than the second voltage threshold, the power consumption control module will determine the power control level strategy to reduce the operating frequency of the device to a second preset percentage of the current operating frequency of the device. At this time, the power consumption control module adjusts the power consumption of the device according to the power control level strategy, which means that the power consumption control module controls the operating frequency of the device to be reduced to a second preset percentage of the standard operating frequency of the device, thereby reducing the power consumption of the device. The second preset percentage can be determined based on experimental data and business performance, and will balance business performance to avoid a significant reduction in business performance due to a reduction in the operating frequency of the device, so that the business can still proceed normally.
[0012] In this application, voltage drop monitoring not only includes monitoring voltage drops within the device's internal modules but also includes monitoring voltage drops on the input busbar. This enables multi-faceted detection of voltage drops in computing devices, making detection more comprehensive and enhancing the practicality of this application's technical solution. Furthermore, power consumption control based on the monitoring results of the indicative voltage drop parameter is implemented in hardware, specifically by reducing the device's operating frequency to a preset percentage, enabling rapid peak shaving.
[0013] In one possible implementation, the load power supply parameter is obtained by detecting the core current of the device by the power control chip. That is to say, the monitoring object of the load power supply parameter is the core current of the device, and the monitoring subject is the power control chip. When the load power supply parameter indicates that the core current of the device is greater than the first current threshold, the power consumption control module determines the power control hierarchy strategy to reduce the operating frequency of the device to a third preset percentage of the standard operating frequency of the device. At this time, the power consumption control module adjusts the power consumption of the device according to the power control hierarchy strategy, which means that the power consumption control module controls the operating frequency of the device to be reduced to a third preset percentage of the standard operating frequency of the device, thereby reducing the power consumption of the device. The third preset percentage can be determined based on experimental data and business performance, and will balance business performance to avoid a significant reduction in business performance due to a reduction in the operating frequency of the device, so that the business can still proceed normally.
[0014] In one possible implementation, the first bus current parameter is obtained by monitoring the current of the input bus by the bus current detection module on the input bus of the power supply system. That is, the monitoring object of the first bus current parameter is the current of the input bus, and the monitoring subject is the bus current detection module on the input bus. In the case where the first bus current parameter indicates that the current of the input bus is greater than the second current threshold, the power consumption control module will determine that the power control hierarchy strategy includes a hardware control strategy, and the hardware control strategy indicates that the operating frequency of the device is reduced to a fourth preset percentage of the standard operating frequency of the device. At this time, the power consumption control module adjusts the power consumption of the device according to the power control hierarchy strategy, which means that the power consumption control module controls the operating frequency of the device to be reduced to a fourth preset percentage of the standard operating frequency of the device, thereby reducing the power consumption of the device. The fourth preset percentage can be determined based on experimental data and business performance, and will balance business performance to avoid a significant reduction in business performance due to a reduction in the operating frequency of the device, so that the business can still proceed normally.
[0015] In this application, current monitoring not only includes monitoring the current of the device's internal modules, but also monitoring the current of the input busbar, achieving multi-level current detection of the computing device, making the detection more comprehensive and improving the practicality of the technical solution of this application. At the same time, the hardware monitors the current parameters and controls the power consumption based on the monitoring results. This is a hardware-based implementation, specifically reducing the device's operating frequency to a preset percentage, which can achieve rapid peak shaving.
[0016] In one possible implementation, after adjusting the device's power consumption according to the power control hierarchy policy, the power consumption control module continues to obtain input bus current monitoring results for more refined processing. Specifically, the power consumption control module obtains a second bus current parameter for the input bus current, which is obtained by the software module by querying the input bus current. If the second bus current parameter indicates that the input bus current is greater than a third current threshold and the power consumption control module enters the software control phase, the power consumption control module determines a first frequency reduction amplitude and a first voltage reduction amplitude based on the second bus current parameter. The power consumption control module enters the software phase when the input bus current exceeds the third current threshold for a period of time that meets the software module's response time. The first frequency reduction amplitude indicates the percentage by which the device's operating frequency is reduced to the device's standard operating frequency, and the first voltage reduction amplitude indicates the percentage by which the device's voltage is reduced to the current voltage. Based on the first frequency reduction amplitude and the first voltage reduction amplitude, the device's operating frequency and voltage are controlled to reduce the device's power consumption. The first frequency reduction amplitude and the first voltage reduction amplitude have a corresponding relationship. Specifically, the operating frequency of the device adjusted according to the first frequency reduction amplitude corresponds to the voltage of the device adjusted according to the first voltage reduction amplitude, and this corresponding relationship is usually set by the device before leaving the factory.
[0017] In this application, after the device's power consumption is rapidly peak-cut, the current of the input bus is continuously monitored in real time, thereby achieving refined processing. In general, the technical solution of this application not only reduces the operating frequency of the device based on a preset percentage when performing power consumption control, but also reduces it based on a percentage determined in real time. Not only can rapid peak-cutting be achieved, but refined processing can also be achieved, further enriching the application scenarios and implementation methods of the technical solution of this application and improving the feasibility of the technical solution.
[0018] In one possible implementation, the first bus current parameter is obtained by a software module querying the input bus current. When the first bus current parameter indicates that the input bus current is greater than a third current threshold and the power consumption control module enters the software control phase, the power consumption control module determines a second frequency reduction amplitude and a second voltage reduction amplitude based on the first bus current parameter. The power consumption control module enters the software phase when the input bus current exceeds the third current threshold for a period of time that exceeds the software module's response time. The second frequency reduction amplitude indicates the percentage by which the device's operating frequency is reduced to the device's standard operating frequency, and the second voltage reduction amplitude indicates the percentage by which the device's voltage is reduced to the device's current voltage. Based on the second frequency reduction amplitude and the second voltage reduction amplitude, the device's operating frequency and voltage are controlled to reduce power consumption. The second frequency reduction amplitude and the second voltage reduction amplitude have a corresponding relationship. Specifically, the device's operating frequency adjusted according to the second frequency reduction amplitude corresponds to the device's voltage adjusted according to the second voltage reduction amplitude. This corresponding relationship is typically pre-set by the device upon delivery.
[0019] In this application, the second frequency reduction and voltage reduction amplitudes are determined based on the real-time monitoring of the first bus current parameter, thereby reducing the input bus current to below the third threshold. This real-time determination allows for refined processing, further enriching the application scenarios and implementation methods of the technical solution of this application.
[0020] In one possible implementation, after adjusting the power consumption of the device according to the power control hierarchy policy, the method further includes: if the current of the input bus is continuously less than a fourth current threshold for a preset period of time, controlling the power consumption of the device to return to the power consumption before the reduction, by the power consumption control module. The fourth current threshold is less than or equal to the third current threshold.
[0021] In this application, the regulation of the power consumption of the device includes not only power consumption reduction but also power consumption recovery, which ensures the normal operation of the device in the computing device from multiple aspects and further improves the practicality of the technical solution.
[0022] In a second aspect, the present application provides a power consumption control device, which includes various modules for executing the data processing method in the first aspect or any possible implementation of the first aspect.
[0023] In a third aspect, a computing device is provided, including a power consumption monitoring circuit, a control module and a power supply circuit.
[0024] The power supply circuit supplies power to the power consumption monitoring circuit and the control module.
[0025] The power consumption monitoring circuit is used to monitor the power supply system and devices of the computing device; and transmit the monitoring results of the power supply system and devices to the control module. The monitoring results include the voltage drop parameters of the internal modules of the device, the bus voltage drop parameters of the input bus voltage in the power supply system, the first bus current parameters of the input bus current, and the load power supply parameters of the core current provided to the device.
[0026] A control module is configured to determine a power control hierarchy strategy based on monitoring results, wherein the power control hierarchy strategy is configured to adjust the power consumption of the components based on the monitoring results of the power supply system and components, thereby eliminating power spikes in the power supply system and implementing dynamic power adjustment. The power consumption of the components is adjusted according to the power control hierarchy strategy. This method can implement the method described in the first aspect and any possible implementation of the first aspect.
[0027] In a fourth aspect, a computer-readable storage medium is provided, in which instructions are stored. When the instructions are executed on a processor, the method shown in the first aspect and any possible implementation of the first aspect is implemented.
[0028] In a fifth aspect, a computer program product is provided. When the computer program product is executed on a processor, it implements the method shown in the first aspect and any possible implementation of the first aspect.
[0029] The beneficial effects shown in the second to fifth aspects are similar to those achieved by the first aspect and any possible implementation method of the first aspect, and will not be repeated here.
[0030] Based on the implementation methods provided in the above aspects, this application can also be further combined to provide more implementation methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] FIG1 is a schematic diagram of the system architecture provided by this application;
[0032] FIG2 is a flow chart of a power consumption adjustment method provided by the present application;
[0033] FIG3 is a schematic diagram of a power consumption adjustment method provided by the present application;
[0034] FIG4 is another flowchart of the power consumption adjustment method provided by the present application;
[0035] FIG5 is another schematic diagram of the power consumption adjustment method provided by the present application;
[0036] FIG6 is a schematic structural diagram of a power consumption control device provided by the present application;
[0037] FIG7 is a schematic diagram of a structure of a computing device provided by the present application;
[0038] FIG8 is another schematic diagram of the structure of the computing device provided by the present application;
[0039] FIG9 is a schematic structural diagram of the chip provided in this application. DETAILED DESCRIPTION
[0040] To facilitate understanding, the following first describes the specific terms and related concepts that may be involved in this application.
[0041] The primary power supply, also known as the first-stage power supply, converts external AC power into DC power for the board. Ideally, the primary power supply, as a power conversion module, converts AC power to standard DC power. However, in practice, fluctuations in load power consumption and line losses can cause the voltage of the DC power converted by the primary power supply to fluctuate, affecting the output of the power conversion module.
[0042] Secondary power supply: also known as the second-stage power supply, refers to the direct current entering the board that is converted into the voltage required by the subsequent circuit.
[0043] In order to solve the problem of uneven use of power resources, the present application provides a power consumption adjustment method. The power consumption control module can determine the power control hierarchy strategy based on the monitoring results of the power supply system and devices. The power hierarchy strategy is used to adjust the power consumption of the device to eliminate power spikes in the power supply system and dynamically adjust the power supply, thereby achieving the effect of balanced power consumption. In other words, by monitoring the primary power supply and the secondary power supply to adjust the power consumption of the device, compared with the traditional solution of only monitoring the power supply system, it can better balance the power resources.
[0044] The power consumption adjustment method provided in this application is described in detail below with reference to the accompanying drawings.
[0045] Please refer to Figure 1, which is a schematic diagram of the system architecture provided in this application. As shown in Figure 1, the computing device 100 includes a power consumption control module 101, a device 102, and a power supply system 103. Among them, the device 102 and the power consumption control module 101 can also be understood as the load part of the computing device 100. The power supply system 103 is used to supply power to the device 102, and includes a power conversion module, a bus, a voltage controller, and a series of devices for powering the device. For example, the power supply system 103 can realize the conversion process of external AC power to the DC power required by the computing device 100, and provide working power for the device 102 in the computing device 100.
[0046] In this application, the power consumption control module 101 is capable of obtaining the power status of the computing device 100 and timely adjusting the power consumption of the device 102. Specifically, the power consumption control module 101 obtains the monitoring results of the device 102 and the monitoring results of the power supply system 103. The specific content of the monitoring results and the power consumption adjustment process are described in detail later and will not be repeated here.
[0047] It should be noted that the power consumption control module 101 includes a hardware entity in the computing device 100 for adjusting the power consumption of the device 102, and also includes a software product that implements these functions, or a combination of a software product and a hardware entity, which is not specifically limited here. Among them, the power consumption control module 101 can be implemented by a variety of devices, such as a voltage comparator, a current comparator, an analog-to-digital converter (ADC) sampler, a control module, etc. In general, the present application can cover large load scenarios under various time specifications, and use a combination of software and hardware control methods to control the system power consumption within the power supply capacity range. Large load scenarios include artificial intelligence (AI) business scenarios or other business scenarios with large instantaneous power consumption changes, which are not specifically limited here.
[0048] In addition, the computing device 100 may also have many possibilities, including a host, a server or other terminal devices, wherein the terminal includes various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, or other processing devices connected to a wireless modem, which are not specifically limited here.
[0049] The power consumption adjustment method provided in this application can be applied to the architecture described above. The following is a detailed description with reference to a schematic diagram. Please refer to Figure 2, which is a flowchart of the power consumption adjustment method provided in this application, which includes at least the following steps:
[0050] Step 201. The power consumption control module obtains monitoring results of the power supply system and devices of the computing device, the monitoring results including voltage drop parameters of the internal modules of the device, bus voltage drop parameters of the input bus voltage in the power supply system, bus current parameters of the input bus current, and load power supply parameters of the core current provided to the device.
[0051] The monitoring results of the power supply system indicate the results of monitoring the power situation of the power supply system. The power supply system here includes a series of hardware used to power devices, such as power supplies, buses, and voltage controllers. The monitoring results of devices indicate the results of monitoring the power situation of devices. Devices can also be understood as the load part of computing equipment and are the power supply objects of the power supply system. The monitoring results include different parameters, which are obtained by different monitoring subjects on different monitoring objects and then transmitted to the power consumption control module. The different parameters are explained below:
[0052] In simple terms, the monitoring type, monitoring object and monitoring subject corresponding to the monitoring results can be shown in Table 1 below:
[0053] Table 1
[0054] As shown in Table 1, when monitoring the power conditions of the power supply system and devices, it can be divided into different types of monitoring, namely voltage drop monitoring and current monitoring. The monitoring objects corresponding to voltage drop monitoring include the internal module voltage of the device and the voltage of the input bus, which are respectively monitored by the internal voltage monitoring module of the device and the bus voltage monitoring module as the monitoring subjects. The monitoring objects corresponding to current monitoring include the core current of the device and the current of the input bus. The former is monitored by the power control chip as the monitoring subject; the latter has multiple monitoring subjects, including the bus current detection module and the software module. The following is a detailed description of each parameter:
[0055] The device's internal module voltage drop parameter is obtained by the device's internal voltage monitoring module monitoring the device's internal module voltage. The device's internal module voltage drop parameter can indicate changes in the voltage of the device's internal module, that is, it not only includes the voltage of the device's internal module before and after the change, but also indicates the voltage drop of the device's internal module. The device's internal voltage monitoring module includes an ADC sampler, a critical path monitor (CPM) module, etc., which are not specifically limited here. For example, assuming that the device is a chip, the chip's internal critical path voltage can be detected through the chip's built-in critical path monitoring module. Since a chip may have multiple access voltages, the critical path voltage mentioned here refers to the voltage provided to the chip by the power supply system.
[0056] The bus voltage drop parameter is obtained by monitoring the voltage of the input bus of the power supply system using the bus voltage monitoring module on the input bus of the power supply system. The bus voltage drop parameter can indicate the change in the input bus voltage. In other words, it not only includes the bus voltage before and after the change, but also indicates the voltage drop of the input bus. The input bus voltage here refers to the voltage of the power supply system output before the direct current to direct current (DC / DC) conversion.
[0057] The load power supply parameters are obtained by monitoring the core current of the device by the power control chip. The core current here refers to the current provided to the device by the power supply system. The power control chip includes a chip capable of monitoring the core current of the device, such as a multi-phase power controller, etc., which is not specifically limited here. For example, assuming that the device is an artificial intelligence core (AIcore) type device, the core current refers to the core current of the AIcore.
[0058] The first bus current parameter is obtained by monitoring the current of the input bus. The input bus current here refers to the current output by the power supply system before DC / DC conversion. However, there are many possible monitoring subjects, which are explained below:
[0059] In some optional embodiments, the first bus current parameter is obtained by monitoring the input bus current using a bus current detection module on the input bus of the power supply system. The bus current detection module includes hardware such as an ADC chip located on the input bus and capable of monitoring the input bus current. For example, using the ADC chip as an example, the first bus current parameter includes the bus current parameter sampled by the ADC chip.
[0060] In some optional embodiments, the first bus current parameter is obtained by the software module by querying the input bus current. It will be appreciated that querying the input bus current requires information exchange between the software module and hardware monitoring the input bus current. Therefore, the software module may need to acquire the first bus current parameter longer than the bus current detection module.
[0061] Step 202: The power consumption control module determines a power control hierarchy strategy based on the monitoring results. The power control hierarchy strategy is used to adjust the power consumption of the device based on the monitoring results of the power supply system and the device, so as to eliminate power spikes in the power supply system and dynamically adjust the power supply.
[0062] As described in step 201 , the monitoring results of the power supply system and devices include parameters of multiple aspects. When the power consumption control module determines the power control hierarchy strategy based on the monitoring results, it determines strategies with different contents based on different parameters.
[0063] The following is a brief description of the power control hierarchy strategy based on the monitoring results, combined with Table 2:
[0064] Table 2
[0065] As shown in Table 2, the monitoring results correspond to different monitoring objects. When the monitoring object reaches the corresponding threshold value, different levels of control phases are triggered, corresponding to different power supply level control strategies. It should also be noted that the threshold value examples shown in Table 2 are only examples of threshold values corresponding to each monitoring object and do not constitute a limit on the threshold values in actual applications. V and Vbus are used to represent the internal module voltage and input bus voltage of the device, respectively, and TDC represents the thermal design current.
[0066] As can be seen from Table 2, in this application, voltage drop monitoring not only includes voltage drop monitoring of the device's internal modules, but also includes voltage drop monitoring of the input busbar, achieving multi-faceted detection of voltage drops in computing devices. Current parameter monitoring not only includes current monitoring of the device's internal modules, but also includes current monitoring of the input busbar, achieving multi-faceted detection of current in computing devices. In other words, in this application, detection is more comprehensive, which also enhances the practicality of the technical solution of this application.
[0067] Next, the process of determining the power supply level control strategy is explained in detail with reference to the accompanying figures. First, the voltage drop monitoring scheme is explained. The monitoring objects of voltage drop monitoring include the internal module voltage of the device and the voltage of the input bus. The following are explained separately:
[0068] In some optional embodiments, if the device internal module voltage parameter indicates that the voltage of the device internal module is less than a first voltage threshold, the device internal module control phase is triggered. Specifically, the power consumption control module determines the power control hierarchy strategy to reduce the device operating frequency to a first predetermined percentage of the device's standard operating frequency. The device operating frequency is positively correlated with the device power consumption. In other words, the higher the device operating frequency, the higher the device power consumption; and the lower the device operating frequency, the lower the device power consumption.
[0069] Among them, the first voltage threshold can be determined based on the normal operating voltage of the device. Usually, the first voltage threshold is less than or equal to the minimum voltage for normal operation of the device. Since the voltage of the device often fluctuates during operation, the voltage fluctuation range will also be considered when determining the minimum voltage for normal operation of the device. The first preset percentage can be determined based on experimental data and business performance, because the operating frequency of the device is also positively correlated with the performance of the device. A reduction in the operating frequency will lead to a reduction in device performance, thereby affecting business performance. Therefore, when setting the first preset percentage, business performance will be balanced to avoid a significant reduction in business performance due to a reduction in the operating frequency of the device, so that the business can still proceed normally. Optionally, in actual applications, the first preset percentage can usually be set to be greater than or equal to 80%.
[0070] In some optional embodiments, if the bus voltage drop parameter indicates that the voltage of the input bus of the power supply system is less than a second voltage threshold, the input bus drop voltage control stage is triggered, that is, the power consumption control module determines the power control level strategy to reduce the operating frequency of the device to a second preset percentage of the current operating frequency of the device.
[0071] Among them, the second voltage threshold can be determined based on the voltage of the power supply system under normal operation. Usually, the second voltage threshold is less than or equal to the minimum voltage for the power supply system to operate normally. During the operation of the computing device, the voltage of the load often fluctuates, which will also affect the voltage of the input bus of the power supply system. Therefore, when determining the minimum voltage for the normal operation of the power supply system, the voltage fluctuation range will also be considered. Similar to the first preset percentage, the setting of the second preset percentage can also be determined based on experimental data and business performance, taking into account the impact of the operating frequency of the device on business performance. In actual applications, the second preset percentage can usually be set to be greater than or equal to 80%.
[0072] In the above optional implementation, the scheme corresponding to voltage drop monitoring is described. The scheme corresponding to current monitoring is described below. The monitoring objects corresponding to current monitoring include the core current of the device and the current of the input bus. The following are respectively described:
[0073] In some optional embodiments, if the load power supply parameter indicates that the core current of the device is greater than the first current threshold, the device power control stage is triggered, that is, the power consumption control module determines the power control hierarchy strategy to reduce the operating frequency of the device to a third preset percentage of the standard operating frequency of the device. Among them, the first current threshold can be determined based on the normal operating current of the device. Usually, the first current threshold is greater than or equal to the maximum current of the normal operation of the device. Since the current of the device often fluctuates during operation, the voltage fluctuation range is also considered when determining the maximum current of the normal operation of the device. Similar to the first preset percentage, the setting of the third preset percentage can also be determined based on experimental data and business performance, taking into account the impact of the device's operating frequency on business performance. In actual applications, the third preset percentage can usually be set to be greater than or equal to 80%.
[0074] In some optional embodiments, if the first bus current parameter indicates that the current of the input bus is greater than the second current threshold, the input bus hardware control stage is triggered, that is, the power consumption control module determines that the power control hierarchy strategy includes a hardware control strategy, which indicates that the operating frequency of the device is reduced to a fourth preset percentage of the standard operating frequency of the device. Among them, the second current threshold can be determined based on the current of the normal operation of the power supply system. Usually, the second current threshold is greater than or equal to the maximum current of the normal operation of the power supply system. During the operation of the computing device, the current of the load often fluctuates, which will also affect the current of the input bus of the power supply system. Therefore, when determining the maximum current for the normal operation of the power supply system, the current fluctuation range will also be considered. Similar to the first preset percentage, the setting of the fourth preset percentage can also be determined based on experimental data and business performance, comprehensively considering the impact of the operating frequency of the device on business performance. In actual applications, the fourth preset percentage can usually be set to be greater than or equal to 80%.
[0075] In some optional embodiments, if the first bus current parameter indicates that the current of the input bus is greater than the third current threshold, and the power consumption control module enters the software control stage, the power consumption control module determines that the power supply control hierarchy strategy includes a software control strategy. In other words, the power consumption control module determines the second frequency reduction amplitude and the second voltage reduction amplitude based on the first bus current parameter. The power consumption control module enters the software control stage when the time when the current of the input bus indicated by the first bus current parameter is greater than the third current threshold reaches the time when the software module responds. The response time of the software module is usually greater than or equal to 50ms, and is not specifically limited here.
[0076] The second frequency reduction amplitude indicates the percentage by which the operating frequency of the device is reduced to the standard operating frequency of the device, and the second voltage reduction amplitude indicates the percentage by which the voltage of the device is reduced to the current voltage. In addition, the second frequency reduction amplitude and the second voltage reduction amplitude have a corresponding relationship, specifically, the operating frequency of the device after adjustment according to the second frequency reduction amplitude corresponds to the voltage of the device after adjustment according to the second voltage reduction amplitude, and this corresponding relationship is usually set for the device before leaving the factory. For example, assuming that the device defines that the voltage corresponding to a device with an operating frequency of 1GHz is about 0.9V, its fluctuation range can be ±2% to ±5%. If the operating frequency of the device after adjustment according to the second frequency reduction amplitude is 1GHz, the voltage of the device after adjustment according to the second voltage reduction amplitude needs to be around 0.9V.
[0077] The third current threshold can be determined based on the current of the power supply system during normal operation. Typically, the third current threshold is greater than or equal to the maximum current of the power supply system during normal operation. Meanwhile, the third current threshold is less than the second current threshold.
[0078] The percentage indicated by the second frequency reduction amplitude is based on ensuring that the current of the input bus can be reduced to the third current threshold and is determined according to the first bus current parameter, thereby ensuring that the load power consumption is controlled within the power supply capacity of the power supply system.
[0079] It should be noted that the aforementioned implementation methods are all based on how to determine the power level control strategy when a certain monitoring object in voltage drop monitoring or current monitoring reaches the threshold value. In actual applications, there may be a situation where multiple monitoring objects reach their corresponding threshold values at the same time at the current moment, that is, multiple power level control strategies are triggered by power spikes. In this case, the power level control strategy determined by the power consumption control module needs to be able to eliminate the power spike. In other words, the operating frequency of the device indicated by the power level control strategy determined by the power consumption control module should be reduced to the lowest operating frequency among the multiple operating frequencies corresponding to the multiple monitoring objects that reach their corresponding threshold values. In addition, if there is a situation where the voltage of the device needs to be reduced, the power level control strategy determined by the power consumption control module should also include reducing the voltage.
[0080] For example, assuming that at the current moment, the device internal module voltage parameter indicates that the voltage of the device internal module is less than a first voltage threshold, and the bus voltage drop parameter indicates that the voltage of the input bus of the power supply system is less than a second voltage threshold, the power level control strategy determined by the power consumption control module should instruct the operating frequency of the device to be reduced by the lowest of the first and second preset percentages of the current operating frequency.
[0081] For example, assuming that at the current moment, the device internal module voltage parameter indicates that the voltage of the device internal module is less than a first voltage threshold, and the first bus current parameter indicates that the current of the input bus is greater than a third current threshold, the power consumption control module enters the software control stage. At this time, the power level control strategy determined by the power consumption control module indicates that the operating frequency of the device should be reduced to the lowest percentage between the first preset percentage of the standard operating frequency and the percentage corresponding to the second frequency reduction amplitude determined based on the first bus current parameter. At the same time, the power level control strategy also needs to indicate the voltage reduction amplitude determined based on the first bus current parameter.
[0082] Step 203: The power consumption control module adjusts the power consumption of the device according to the power control hierarchy strategy.
[0083] As described in step 202, when the power consumption control module determines the power control hierarchy strategy based on the monitoring results, it determines different power control hierarchy strategies based on the different parameters included in the monitoring results. Therefore, the power consumption control module will also vary when adjusting the power consumption of the device based on the power control hierarchy strategy. The following is a brief explanation with reference to Table 3:
[0084] Table 3
[0085] It should be noted that the "Frequency reduction by XX preset percentage" in the "Power Control Hierarchy Strategy" shown in Table 3 means reducing the device's operating frequency to XX preset percentage of the device's standard operating frequency. Furthermore, as shown in Table 3, different power control hierarchy strategies result in different frequency reductions for different devices. Consequently, the power consumption of the device adjusted based on the power control hierarchy strategy also varies. These are explained below:
[0086] In some optional embodiments, taking the scenario in the first row of Table 3 as an example, the power control hierarchy policy is to reduce the operating frequency of the device to a first preset percentage of the device's standard operating frequency. In this case, the power consumption control module adjusts the device's power consumption according to the power control hierarchy policy, that is, controls the device's operating frequency to be reduced to the first preset percentage of the device's standard operating frequency, thereby reducing the device's power consumption. The reason why the device's power consumption can be reduced by reducing the device's operating frequency is because there is a positive correlation between the device's operating frequency and its power consumption. In other words, the lower the device's operating frequency, the lower the device's power consumption.
[0087] Similarly, the process of adjusting device power consumption according to the power control hierarchy policy, as shown in the second to fourth rows of Table 3, is similar to the scenario shown in the first row of Table 3, except that the magnitude of the reduction in the operating frequency of the controlled device is not the first preset percentage, but the second, third, and fourth preset percentages, respectively. Therefore, this description will not be repeated here.
[0088] In some optional implementations, taking the scenario in the fifth row of Table 3 as an example, if the power control hierarchy strategy is to determine the second frequency reduction amplitude and the second voltage reduction amplitude based on the computing power and business performance of the device, then the power consumption control module adjusts the power consumption of the device according to the power control hierarchy strategy, that is, controls the operating frequency of the device to be reduced according to the second frequency reduction amplitude, and controls the voltage of the device to be reduced according to the second voltage reduction amplitude, thereby reducing the power consumption of the device.
[0089] As can be seen from the above explanation, the scenario shown in the fifth row of Table 3 is slightly different from the previous scenarios in which the power consumption of the device is adjusted according to the power control hierarchy strategy: 1) In the scenario shown in the fifth row of Table 3, not only the operating frequency of the device is controlled to be reduced, but also the voltage of the device is controlled to be reduced; in the previous scenarios, the power consumption control module only controls the operating frequency of the device to be reduced. 2) In the scenario shown in the fifth row of Table 3, the second frequency reduction amplitude is determined based on the first bus current parameter obtained in real time, and the operating frequency of the device is not reduced by a preset percentage; in the previous scenarios, the operating frequency of the device is reduced by a preset percentage.
[0090] It should be noted that the control stage shown in the first four rows of Table 3 can be understood as being implemented based on hardware monitoring, specifically reducing the operating frequency of the device to a preset percentage, which can achieve rapid peak clipping. The hardware mentioned here includes voltage comparators, current comparators, ADC samplers, CPM modules, etc., which are not specifically limited here. Among them, the ADC sampler or CPM module is used to collect voltage or current, the voltage comparator is used to compare the monitored voltage with the corresponding voltage threshold, and the current comparator is used to compare the monitored current with the corresponding current threshold. The control stage shown in the fifth row can be understood as being implemented based on software, and the software module obtains the current of the input bus from the ADC sampler multiple times in a row. The second frequency reduction amplitude and the second voltage reduction amplitude determined by the software are determined based on the first bus current parameters obtained in real time, which can achieve refined processing and further enrich the application scenarios and implementation methods of the technical solution of this application.
[0091] In this application, the power consumption control module can determine the power control hierarchy strategy based on the monitoring results of the power supply system and devices. This power hierarchy strategy is used to adjust the power consumption of the devices to eliminate power spikes in the power supply system and dynamically adjust the power supply, thereby achieving the effect of balanced power consumption. In other words, by monitoring the primary and secondary power supplies to adjust the power consumption of the devices, compared with the traditional solution of only monitoring the power supply system, it can better balance power resources.
[0092] In some optional embodiments, after step 203, the power consumption control module may also obtain a second bus current parameter of the input bus current, and the second bus current parameter is obtained by the software module monitoring the current of the input bus. That is, the software module will continue to monitor the current of the input bus. If after the hardware control stage is executed, the second bus current parameter indicates that the current of the input bus is greater than the third current threshold, and the power consumption control module enters the software control stage (that is, the time when the current of the input bus is greater than the third current threshold reaches the response time of the software module). This indicates that after the power consumption control module controls the operating frequency of the device to be reduced to the fourth preset percentage of the standard operating frequency of the device, although it plays a role in cutting off power spikes, it still does not reach the ideal state. In other words, it is still necessary to further control the power consumption of the device.
[0093] In this case, the power consumption control module determines a first frequency reduction amplitude and a first voltage reduction amplitude based on the second bus current parameter. The first frequency reduction amplitude indicates the percentage by which the operating frequency of the device is reduced to the device's standard operating frequency, and the first voltage reduction amplitude indicates the percentage by which the voltage of the device is reduced to the current voltage. The power consumption control module then controls the operating frequency and voltage of the device based on the first frequency reduction amplitude and the first voltage reduction amplitude to reduce the device's power consumption.
[0094] It should be noted that the first frequency reduction amplitude and the first voltage reduction amplitude also have a corresponding relationship. Specifically, the operating frequency of the device adjusted according to the first frequency reduction amplitude corresponds to the voltage of the device adjusted according to the first voltage reduction amplitude. This correspondence is typically factory-set for the device. The specific description is similar to the above description of the "corresponding relationship between the second frequency reduction amplitude and the second voltage reduction amplitude" and will not be repeated here.
[0095] In this application, after the device's power consumption is rapidly peak-cut, the current of the input bus is continuously monitored in real time, thereby achieving refined processing. In general, the technical solution of this application not only reduces the operating frequency of the device based on a preset percentage when performing power consumption control, but also reduces it based on a percentage determined in real time. Not only can rapid peak-cutting be achieved, but refined processing can also be achieved, further enriching the application scenarios and implementation methods of the technical solution of this application and improving the feasibility of the technical solution.
[0096] It should also be noted that in the present application, when the current parameter is a transient high threshold (that is, it reaches the corresponding first current threshold or the second current threshold in a short time), the hardware control stage will be triggered to achieve a quick response. When the current parameter indicates that it exceeds the third current threshold for a long time, the software control stage is entered. The short time mentioned here refers to the response time of the hardware, which is usually in the microsecond or millisecond level, and is not specifically limited here. The long time refers to the response time of the software module, which will be greater than the response time of the hardware, usually in the millisecond level, and is not specifically limited here. In other words, the power consumption adjustment method provided in the present application can achieve multi-level time specification response.
[0097] The above content explains the power consumption adjustment method provided by the present application in combination with FIG2 . Next, the power consumption adjustment method provided by the present application is further described in combination with FIG3 to FIG5 .
[0098] First, the power control hierarchy strategy mentioned in the above power consumption adjustment method is described with reference to FIG3 .
[0099] As shown in Figure 3, the power consumption adjustment method provided in this application can be divided into five levels, including: device internal voltage drop control, input bus voltage drop control, device core current control, input bus current hardware control and input bus current software control.
[0100] Among them, the internal voltage drop control of the device corresponds to the scenario in the first row of Tables 1 to 3 above, the input bus voltage drop control corresponds to the scenario in the second row of Tables 1 to 3 above, the device core current control corresponds to the scenario in the third row of Tables 1 to 3 above, the input bus current hardware control corresponds to the scenario in the fourth row of Tables 1 to 3 above, and the input bus current software control corresponds to the scenario in the fifth row of Tables 1 to 3 above.
[0101] As described in step 203 above, the first four scenarios can be understood as being implemented based on hardware monitoring, and the trigger will trigger a preset level of frequency reduction and peak shaving, that is, the operating frequency of the device is reduced based on a preset percentage. The fifth scenario is implemented based on software, including a software module that obtains the input bus current from the ADC sampler multiple times in a row, and then calculates based on the input bus current. At this time, when there is a need to reduce the power consumption of the device (that is, the number of times the power supply current of the device exceeds the third current threshold within the first preset time period is greater than the preset number), the frequency reduction amplitude and voltage reduction amplitude of the device are determined by the software algorithm.
[0102] In general, the hardware-based process can trigger a reduction in the device's operating frequency when there is a need to reduce the device's power consumption, thereby reducing the device's power consumption. Generally, the execution time of the aforementioned process is in milliseconds, and the response speed is relatively fast. However, the software-based process requires multiple acquisitions of the specific value of the input bus current and then calculates the frequency and voltage reduction range of the device, which requires a certain amount of calculation time, resulting in a longer response time.
[0103] Next, taking a chip as an example, the multiple levels shown in FIG3 and the power consumption adjustment method based on the levels will be further described in conjunction with FIG4 .
[0104] It should be noted that the five levels from left to right in the embodiment shown in FIG3 correspond to the embodiment shown in FIG4 , which can be respectively referred to as chip critical path voltage monitoring, input bus voltage drop monitoring, chip core current monitoring, and input bus current monitoring. Among them, input bus current monitoring includes input bus current hardware monitoring and input bus current software monitoring (the rightmost process shown in FIG4 ), which correspond to the input bus current hardware control and input bus current software control in the embodiment shown in FIG3 , respectively. In other words, in the embodiment shown in FIG4 , from left to right, there are five levels of control methods: device internal voltage drop control, input bus voltage drop control, device core current control, input bus current hardware control, and input bus current software control.
[0105] Specifically, in the embodiment shown in FIG4 , the device internal voltage drop control mode monitors the chip critical path voltage. The CPM module is a chip-built-in critical path voltage monitoring module. When the voltage drop (IR-drop) on the monitoring path is too large, causing the chip critical path voltage to fall below a first voltage threshold (that is, when the chip critical path voltage is less than the first voltage threshold), the CPM module immediately issues a drop flag to the FFS module to achieve rapid frequency reduction, thereby reducing the chip's power consumption and ensuring that the chip does not fail due to signal timing failure caused by low voltage. Signal timing includes: waveform timing, including setup time, hold time, etc., such as the rise setup time, the high level value hold time, etc.
[0106] In the input bus voltage drop control mode, the input bus voltage is monitored, that is, the external input bus voltage of the control chip is monitored in real time, and the voltage value is monitored and compared with the second voltage threshold by a comparator. When the load is too large and the voltage drops below the second voltage threshold, the power supply voltage drop alarm is sensed, and the FFS module is triggered to quickly change the frequency to reduce the chip power consumption.
[0107] In the device core current control mode, the chip core current is monitored. The overcurrent warning interrupt of the multiphase power controller can be used. When the chip core current exceeds the first current threshold, the controller responds in microseconds and issues an overcurrent warning (Iout_warn) interrupt. This interrupt is received by the FFS module, which reduces the frequency, allowing the xPU to quickly respond and reduce chip power consumption. The multiphase power controller can be a core power multiphase power controller of a certain processor, but the specifics are not limited here.
[0108] In the input bus current hardware control mode, the input bus current is monitored. The current sampling time and the second current threshold can be pre-programmed into the current sensor. When the actual sampled current exceeds the second current threshold, an overcurrent warning interrupt is immediately triggered to the FFS module, enabling rapid frequency reduction and power consumption reduction.
[0109] In the input bus current software control mode, the software queries the input bus current by polling, and sets the polling period as an adjustable parameter. Count the number of times the chip's power supply current exceeds the specification within a cycle. The chip's power supply current exceeds the specification when the input bus current is greater than the third current threshold). By setting the threshold value of the statistical number of times, the algorithm is used to determine the frequency reduction amplitude and voltage reduction amplitude of the device to adjust the chip power consumption. This achieves the purpose of ensuring that the chip current does not exceed the specification within the set time interval. Among them, the threshold value of the number of times is determined according to the specifications of the computing device and the needs of the actual application, and is not specifically limited here. Generally speaking, the lower the power consumption requirements of the device specifications, the lower the threshold value of the number of times; the higher the power consumption requirements of the device specifications, the higher the threshold value of the number of times.
[0110] In some optional embodiments, as shown in FIG4 , when the input bus current is detected to be greater than a third current threshold, the chip's operating frequency is reduced. The chip's supply current is then monitored again, and when the chip's supply current again exceeds the third current threshold, the chip's operating frequency is further reduced by lowering the clock base frequency and / or reducing the voltage. The chip's operating frequency is repeatedly adjusted through a software algorithm until the control target (i.e., the input bus current is reduced to less than the third current threshold) is achieved.
[0111] In some optional embodiments, if the input bus current is stable for a long time and does not exceed the specification, the chip can be restored to the power consumption state before the adjustment, that is, the operating frequency of the chip is restored to the initial operating frequency. Among them, the input bus current is stable for a long time and does not exceed the specification, which means that the input bus current is continuously less than the fourth current threshold within a preset time, and the fourth current threshold is less than or equal to the third current threshold. The preset time needs to be determined according to the needs of the actual application. Exemplarily, the preset time can be a time of ten seconds, one hundred seconds or one minute, which is not limited here. In addition, an algorithm can be used to restore the operating frequency of the chip, such as the artificial intelligence core (AI CORE) frequency recovery algorithm, which is not limited here.
[0112] In this application, the regulation of the power consumption of the device includes not only power consumption reduction but also power consumption recovery, which ensures the normal operation of the device in the computing device from multiple aspects and further improves the practicality of the technical solution.
[0113] Next, still taking the chip as an example, the circuit structure of the power consumption adjustment method of the present application will be further described. Please refer to Figure 5, which is a schematic diagram of the power consumption adjustment method provided by the present application.
[0114] In the embodiment shown in FIG5 , FIG5 (a) is an example of a circuit structure for realizing the aforementioned function, and FIG5 (b) reflects the response time under different current thresholds in the input bus current hardware control and software control modes.
[0115] In the example in Figure 5(a), the power supply system is represented by a power supply unit (PSU). Both the current sensor and the dynamic frequency and voltage regulation unit monitor the input bus current, but the former corresponds to hardware control of the input bus current, while the latter corresponds to software control of the input bus current. A multiphase power controller monitors the chip core current, a comparator connected to a reference voltage monitors the input bus voltage, and a voltage detection unit monitors the voltage of the chip's critical paths.
[0116] In the aforementioned embodiments, the software control of the input bus current is based on a third current threshold (e.g., 1.2×TDC). In practical applications, multiple third current thresholds can be set, and the threshold values corresponding to these multiple third current thresholds gradually decrease. For example, in the embodiment shown in FIG5(b), two third current thresholds are set, namely, 1.2×TDC and 1×TDC. Compared with setting a single third current threshold, setting multiple third current thresholds can more smoothly adjust the power consumption of the device, further reducing the impact of adjusting the power consumption of the device on service performance.
[0117] In some optional embodiments, if multiple third current thresholds are set, the threshold values corresponding to the third current thresholds are gradually reduced. Accordingly, in the input bus current software control, the frequency reduction amplitude and / or voltage reduction amplitude corresponding to the device can also be gradually increased. The frequency reduction amplitude indicates the percentage by which the operating frequency of the device is reduced to the standard operating frequency of the device, and the voltage reduction amplitude indicates the percentage by which the voltage of the device is reduced to the current voltage.
[0118] For example, the second current threshold value shown in FIG5(b) is 1.5×TDC, and the third current threshold value is 1.2×TDC and 1×TDC, respectively. When the monitoring result obtained by the power consumption control module indicates that the current of the input bus is less than 1.5×TDC and greater than 1.2×TDC, the device determined by the power consumption control module corresponds to the frequency reduction amplitude 1 and the voltage reduction amplitude 1. When the monitoring result obtained by the power consumption control module indicates that the current of the input bus is less than 1.2×TDC and greater than 1×TDC, the device determined by the power consumption control module corresponds to the frequency reduction amplitude 2 and the voltage reduction amplitude 2.
[0119] Optionally, the relationship between the two sets of amplitudes can be that frequency reduction amplitude 2 is greater than frequency reduction amplitude 1, and voltage reduction amplitude 2 is greater than voltage reduction amplitude 1. That is, the degree of reduction in the operating frequency of the device controlled based on frequency reduction amplitude 1 is greater than the degree of reduction in the operating frequency of the device controlled based on frequency reduction amplitude 2, and the degree of reduction in the voltage of the device controlled based on voltage reduction amplitude 1 is greater than the degree of reduction in the voltage of the device controlled based on voltage reduction amplitude 2. Optionally, the relationship between the two sets of amplitudes can be that frequency reduction amplitude 2 is greater than frequency reduction amplitude 1, and voltage reduction amplitude 2 is less than or equal to voltage reduction amplitude 1. That is, the degree of reduction in the operating frequency of the device controlled based on frequency reduction amplitude 1 is greater than the degree of reduction in the operating frequency of the device controlled based on frequency reduction amplitude 2, and the degree of reduction in the voltage of the device controlled based on voltage reduction amplitude 1 is slightly greater than or equal to the degree of reduction in the voltage of the device controlled based on voltage reduction amplitude 2.
[0120] Optionally, the relationship between the two sets of amplitudes may be that frequency reduction amplitude 2 is less than or equal to frequency reduction amplitude 1, and voltage reduction amplitude 2 is greater than voltage reduction amplitude 1. In other words, the degree of reduction in the operating frequency of the device controlled based on frequency reduction amplitude 1 is slightly greater than or equal to the degree of reduction in the operating frequency of the device controlled based on frequency reduction amplitude 2, and the degree of voltage reduction of the device controlled based on voltage reduction amplitude 1 is greater than the degree of voltage reduction of the device controlled based on voltage reduction amplitude 2.
[0121] It should also be noted that there is a corresponding relationship between the frequency reduction amplitude and the voltage reduction amplitude. Specifically, the operating frequency of the device adjusted according to the frequency reduction amplitude corresponds to the voltage of the device adjusted according to the voltage reduction amplitude, and this corresponding relationship is usually set by the device before delivery.
[0122] In the present application, for the control of the input bus current, not only the aforementioned multi-level control (including hardware control and software control) is realized, but also the control of multiple time specifications is realized. As shown in Figure 5 (b), the response time of software control is greater than the response time of hardware control. Therefore, when it is greater than the higher current threshold (the second current threshold), it means that the power spike of the power supply system in the computing device is more serious and requires a quick response, and hardware control is selected. When it is less than the higher current threshold but greater than the lower current threshold (less than the second current threshold and greater than the third current threshold), it means that the power spike of the power supply system in the computing device is not serious and fine adjustment can be achieved through software control.
[0123] It should also be noted that in the scenario described in the implementation shown in FIG4 above, where the input bus current remains stable and within specifications for a long period of time, restoring the chip to its pre-adjustment power consumption state, the input bus current is limited to being continuously less than the fourth current threshold for a preset period of time, and the fourth current threshold is less than or equal to the third current threshold. If multiple third current thresholds are set, the fourth current threshold should be less than or equal to the third current threshold with the lowest threshold value among the multiple third current thresholds.
[0124] In the above description, the power control module monitors current by comparing the acquired current with the corresponding current threshold. In actual applications, the power control module can also determine the power control hierarchy strategy based on the measured power consumption and the corresponding power consumption threshold, and adjust the device power consumption according to the power control hierarchy strategy.
[0125] That is to say, the power consumption control module will obtain the corresponding current and voltage, and then determine the power consumption based on the current and voltage. It is then compared with the corresponding power consumption threshold. Accordingly, the current and voltage obtained by the power consumption control module include the monitoring objects shown in Table 2 above, and the process of determining the power control hierarchy strategy and adjusting the power consumption of the device according to the power control hierarchy strategy is also similar to the process described above for the embodiments shown in Figures 2 to 5. The difference is that after the power consumption control module obtains the voltage parameters and current parameters of the power supply system and / or device, it will also determine the corresponding power consumption, so it will not be repeated here.
[0126] The above describes in detail the power consumption adjustment method provided by the present application in conjunction with Figures 1 to 5. The following describes the power consumption control device, computing equipment and chip provided by the present application in conjunction with Figures 6 to 9.
[0127] FIG6 is a schematic diagram of the structure of the power consumption control device provided by the present application. As shown in FIG6 , the power consumption control device 600 includes an acquisition unit 601 , an analysis unit 602 and a frequency modulation unit 603 .
[0128] Acquisition unit 601 is used to obtain monitoring results of the power supply system and devices of the computing device, the monitoring results including voltage drop parameters of the internal modules of the device, bus voltage drop parameters of the input bus voltage in the power supply system, first bus current parameters of the input bus current, and load power supply parameters of the core current provided to the device.
[0129] The analysis unit 602 is used to determine a power control hierarchy strategy based on the monitoring results. The power control hierarchy strategy is used to adjust the power consumption of the device based on the monitoring results of the power system and the device to eliminate power spikes in the power supply system and dynamic power adjustment.
[0130] The frequency modulation unit 603 is configured to adjust the power consumption of the device according to the power control hierarchy strategy.
[0131] It should be understood that the power consumption control device 600 of the embodiment of the present application can be implemented by a central processing unit (CPU), or by an application-specific integrated circuit (ASIC), or by a programmable logic device (PLD). The above-mentioned PLD can be a complex programmable logical device (CPLD), a field programmable gate array (FPGA), a generic array logic (GAL), a power control unit (data processing unit, DPU), a system on chip (SoC), an artificial intelligence chip, or any combination thereof. When the power consumption adjustment method shown in Figures 1 to 4 can also be implemented by software, the power consumption control device 600 and its various modules can also be software modules.
[0132] In some optional embodiments, the device internal module voltage drop parameter is obtained by monitoring the device internal module voltage by the device internal voltage monitoring module. The analyzing unit 602 is specifically configured to, if the device internal module voltage parameter indicates that the voltage of the device internal module is less than a first voltage threshold, determine a power control hierarchy strategy to reduce the device operating frequency to a first preset percentage of the device's standard operating frequency, where the device operating frequency is positively correlated with the device power consumption.
[0133] In some optional embodiments, the bus voltage drop parameter is obtained by monitoring the voltage of the input bus of the power supply system by a bus voltage monitoring module on the input bus of the power supply system. The analyzing unit 602 is specifically configured to, if the bus voltage drop parameter indicates that the voltage of the input bus of the power supply system is less than a second voltage threshold, determine that the power supply control hierarchy strategy is to reduce the operating frequency of the device to a second preset percentage of the current operating frequency of the device.
[0134] In some optional embodiments, the load power parameter is obtained by detecting the core current of the device by the power control chip. The analyzing unit 602 is specifically configured to determine, if the load power parameter indicates that the core current of the device is greater than a first current threshold, that the power control hierarchy strategy is to reduce the operating frequency of the device to a third predetermined percentage of the standard operating frequency of the device.
[0135] In some optional embodiments, the first bus current parameter is obtained by monitoring the current of the input bus by a bus current detection module on the input bus of the power supply system. The analyzing unit 602 is specifically configured to, if the first bus current parameter indicates that the current of the input bus is greater than a second current threshold, determine that the power supply control hierarchy strategy includes a hardware control strategy, the hardware control strategy instructing to reduce the operating frequency of the device to a fourth predetermined percentage of the standard operating frequency of the device.
[0136] In some optional implementations, the acquisition unit 601 is further configured to acquire a second bus current parameter of the input bus current, where the second bus current parameter is obtained by the software module querying the current of the input bus.
[0137] The analyzing unit 602 is further configured to determine a first frequency reduction amplitude and a first voltage reduction amplitude based on the second bus current parameter if the second bus current parameter indicates that the current of the input bus is greater than a third current threshold and the power consumption control device 600 enters the software control phase. If the third current threshold is less than the second current threshold, the first frequency reduction amplitude indicates a percentage by which the operating frequency of the device is reduced to a standard operating frequency of the device, and the first voltage reduction amplitude indicates a percentage by which the voltage of the device is reduced to a current voltage.
[0138] The frequency modulation unit 603 is further configured to control the operating frequency and voltage reduction of the device based on the first frequency reduction amplitude and the first voltage reduction amplitude, so as to reduce the power consumption of the device.
[0139] In some optional embodiments, the first bus current parameter is obtained by a software module querying the current of the input bus. The analyzing unit 602 is specifically configured to determine, if the first bus current parameter indicates that the current of the input bus is greater than a third current threshold and the power consumption control device 600 enters the software control phase, a second frequency reduction amplitude and a second voltage reduction amplitude based on the first bus current parameter, wherein the second frequency reduction amplitude indicates a percentage by which the operating frequency of the device is reduced to a standard operating frequency of the device, and the second voltage reduction amplitude indicates a percentage by which the voltage of the device is reduced to a current voltage.
[0140] The frequency modulation unit 603 is specifically configured to control the operating frequency and voltage reduction of the device based on the second frequency reduction amplitude and the second voltage reduction amplitude, so as to reduce the power consumption of the device.
[0141] In some optional embodiments, the frequency modulation unit 603 is further configured to restore the power consumption of the control device to the power consumption before the reduction if the current of the input bus is continuously less than a fourth current threshold within a preset time period, and the fourth current threshold is less than or equal to the third current threshold. The power consumption control device 600 of the embodiment of the present application can correspond to the method described in the embodiment of the present application of the present invention, and the above-mentioned and other operations and / or functions of each unit in the power consumption control device 600 are respectively for implementing the corresponding process of the power consumption control module in each method in Figures 1 to 4. For the sake of brevity, they are not further described here.
[0142] The present application also provides a computing device, as shown in FIG7 , which is a schematic structural diagram of the computing device provided by the present application.
[0143] As shown in FIG7 , a computing device 700 includes a power consumption monitoring circuit 701 , a control module 702 , and a power supply circuit 703 . The power supply circuit 703 supplies power to the power consumption monitoring circuit 701 and the control module 702 .
[0144] The power consumption monitoring circuit 701 is configured to monitor the power supply system and components of the computing device and transmit monitoring results of the power supply system and components to the control module 702. The monitoring results include voltage drop parameters of internal modules of the component, bus voltage drop parameters of the input bus voltage of the power supply system, first bus current parameters and / or second bus current parameters of the input bus current, and load power supply parameters of the core current provided to the component.
[0145] Control module 702 is configured to determine a power control hierarchy strategy based on the monitoring results. The power control hierarchy strategy is configured to adjust the power consumption of the components based on the monitoring results of the power system and components, thereby eliminating power spikes in the power supply system and implementing dynamic power adjustment. The power consumption of the components is then adjusted based on the power control hierarchy strategy.
[0146] That is, the control module 702 is used to execute the operations executed by the power consumption control module in the embodiments shown in FIG. 1 to FIG. 4 , and the details are not repeated here.
[0147] It should also be noted that, corresponding to the embodiment shown in FIG5(a), the power consumption monitoring circuit 701 corresponds to the current detector, multi-phase power supply controller, voltage comparator, and voltage detection unit shown in FIG5(a). The control module 702 corresponds to the dynamic frequency and voltage regulation unit and fast frequency regulation unit shown in FIG5(a). The power supply circuit 703 corresponds to the power supply shown in FIG5(a).
[0148] The computing device provided in this application may also have other forms. Please refer to Figure 8, which is a structural diagram of the computing device provided in this application.
[0149] As shown in Figure 8, computing device 800 includes memory 801 and processor 802, which communicate with each other via bus 803. Memory 801 is used to store instructions or program codes, and processor 802 can call instructions or program codes stored in memory 801 to perform the following operations:
[0150] Obtain monitoring results for the computing device's power supply system and components. These monitoring results include voltage drop parameters for internal modules within the component, bus voltage drop parameters for the input bus voltage in the power supply system, first bus current parameters for the input bus current, and load power parameters for the core current provided to the component. Determine a power control hierarchy strategy based on the monitoring results. The power control hierarchy strategy is used to adjust the component's power consumption based on the monitoring results of the power supply system and components, thereby eliminating power spikes and implementing dynamic power adjustments within the power supply system. Adjust the component's power consumption based on the power control hierarchy strategy.
[0151] It should be understood that in the embodiment of the present application, the processor 802 can be a CPU, and the processor 802 can also be other digital signal processors (digital signal processing, DSP), application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0152] The memory 801 may be a magnetic disk or a hard disk, and provides instructions and data to the SCM controller 801. The memory 801 may also include non-volatile random access memory. For example, the processor 802 may also store device type information. The memory 801 may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. It may also be synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), etc., without limitation herein.
[0153] In addition to the data bus, the bus 803 may also include a power bus, a control bus, a status signal bus, etc. However, for the sake of clarity, various buses are labeled as the bus 803 in the figure.
[0154] Bus 803 may be a Peripheral Component Interconnect Express (PCIe) bus, an extended industry standard architecture (EISA) bus, a unified bus (Ubus or UB), a compute express link (CXL), or a cache coherent interconnect for accelerators (CCIX). Bus 803 may be divided into an address bus, a data bus, and a control bus.
[0155] It should be understood that the processor 801 of the embodiment of the present application may correspond to the power consumption control device 600 in the embodiment of the present application, and may correspond to the corresponding subject in the method of executing the embodiment of the present application, and the above-mentioned and other operations and / or functions of each module in the power consumption control device 600 are respectively for implementing the corresponding processes of each method in Figures 1 to 4. For the sake of brevity, they will not be repeated here.
[0156] Please refer to FIG9 , which is a schematic structural diagram of the chip provided in this application.
[0157] As shown in Figure 9, the chip 900 includes a power supply circuit 901 and a processing unit 902. The power supply circuit 901 supplies power to the processing unit 902, which is used to implement the methods shown in Figures 1 to 4 above, and the details are not repeated here.
[0158] The present application also provides a computing device including the chip shown in Figure 9, wherein the power supply circuit 901 in the chip 900 supplies power to the processing unit 902, and the processing unit 902 is used to implement the method shown in Figures 1 to 4 above, and the details are not repeated here.
[0159] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid state drive (SSD).
[0160] The above description is only a specific embodiment of the present invention. Those skilled in the art may conceive of variations or replacements based on the specific embodiments provided in the present invention, which should all be included in the scope of protection of the present invention.
Claims
1. A power consumption adjustment method, characterized in that: The method is executed by a power consumption control module in a computing device, and includes: Acquire monitoring results of the power supply system and devices of the computing device, the monitoring results including voltage drop parameters of modules inside the device, bus voltage drop parameters of input bus voltage in the power supply system, first bus current parameters of input bus current, and load power supply parameters of core current provided for the device; Determine a power control hierarchy strategy according to the monitoring result, wherein the power control hierarchy strategy is used to adjust the power consumption of the device according to the monitoring result of the power system and the device, so as to eliminate power spikes and dynamic power adjustment in the power supply system; The power consumption of the device is adjusted according to the power control hierarchy strategy.
2. The method according to claim 1, characterized in that: The device internal module voltage drop parameter is obtained by the internal voltage monitoring module of the device monitoring the internal module voltage of the device; Determining the power control hierarchy strategy according to the monitoring result includes: If the voltage parameter of the internal module of the device indicates that the voltage of the internal module of the device is less than a first voltage threshold, the power control level strategy is determined to reduce the operating frequency of the device to a first preset percentage of the standard operating frequency of the device, and the operating frequency of the device is positively correlated with the power consumption of the device.
3. The method according to claim 1 or 2, characterized in that: The bus voltage drop parameter is obtained by monitoring the voltage of the input bus in the power supply system by a bus voltage monitoring module on the input bus of the power supply system; Determining the power control level strategy according to the monitoring result includes: If the bus voltage drop parameter indicates that the voltage of the input bus of the power supply system is less than a second voltage threshold, the power control level strategy is determined to reduce the operating frequency of the device to a second preset percentage of the current operating frequency of the device.
4. The method according to any one of claims 1 to 3, characterized in that The load power supply parameter is obtained by detecting the core current of the device by the power control chip; Determining the power control hierarchy strategy according to the monitoring result includes: If the load power parameter indicates that the core current of the device is greater than a first current threshold, the power control hierarchy strategy is determined to reduce the operating frequency of the device to a third preset percentage of the standard operating frequency of the device.
5. The method according to any one of claims 1 to 4, characterized in that The first bus current parameter is obtained by monitoring the current of the input bus by a bus current detection module on the input bus of the power supply system; Determining the power control level strategy according to the monitoring result includes: If the first bus current parameter indicates that the current of the input bus is greater than a second current threshold, it is determined that the power control hierarchy strategy includes a hardware control strategy, and the hardware control strategy indicates that the operating frequency of the device is reduced to a fourth preset percentage of the standard operating frequency of the device.
6. The method according to claim 5, characterized in that After adjusting the power consumption of the device according to the power control hierarchy strategy, the method further includes: Acquire a second bus current parameter of the input bus current, where the second bus current parameter is obtained by a software module querying the current of the input bus; If the second bus current parameter indicates that the current of the input bus is greater than the third current threshold, and the power consumption control module enters the software control stage, a first frequency reduction amplitude and a first voltage reduction amplitude are determined according to the second bus current parameter, the third current threshold is less than the second current threshold, the first frequency reduction amplitude indicates a percentage of reducing the operating frequency of the device to the standard operating frequency of the device, and the first voltage reduction amplitude indicates a percentage of reducing the voltage of the device to the current voltage; The operating frequency and voltage of the device are controlled to be reduced based on the first frequency reduction amplitude and the first voltage reduction amplitude, so as to reduce the power consumption of the device.
7. The method according to any one of claims 1 to 4, characterized in that The first bus current parameter is obtained by the software module querying the current of the input bus; Determining the power control level strategy according to the monitoring result includes: If the first bus current parameter indicates that the current of the input bus is greater than the third current threshold, and the power consumption control module enters the software control stage, a second frequency reduction amplitude and a second voltage reduction amplitude are determined according to the first bus current parameter, and the second frequency reduction amplitude indicates reducing the operating frequency of the device to a percentage of the standard operating frequency of the device, wherein the second voltage reduction amplitude indicates reducing the voltage of the device to a percentage of the current voltage; The adjusting the power consumption of the device according to the power control hierarchy strategy includes: The operating frequency and voltage of the device are controlled to be reduced based on the second frequency reduction amplitude and the second voltage reduction amplitude, so as to reduce the power consumption of the device.
8. The method according to claim 6 or 7, characterized in that: After reducing the power consumption of the device, the method further includes: If the current of the input bus is continuously less than a fourth current threshold within a preset time period, the power consumption of the device is controlled to be restored to the power consumption before reduction, and the fourth current threshold is less than or equal to the third current threshold.
9. A power consumption control device, characterized in that: include: an acquisition unit, configured to acquire monitoring results of the power supply system and devices of the computing device, wherein the monitoring results include voltage drop parameters of modules inside the device, bus voltage drop parameters of input bus voltage in the power supply system, first bus current parameters of input bus current, and load power supply parameters of core current provided for the device; an analysis unit, configured to determine a power control hierarchy strategy according to the monitoring result, wherein the power control hierarchy strategy is configured to adjust the power consumption of the device according to the monitoring result of the power system and the device, so as to eliminate power spikes and dynamic power adjustment in the power supply system; A frequency modulation unit is used to adjust the power consumption of the device according to the power control hierarchy strategy.
10. The device according to claim 9, characterized in that The voltage drop parameter of the internal module of the device is obtained by monitoring the internal module voltage of the device by the internal voltage monitoring module of the device. The analysis unit is specifically used to determine that the power control hierarchy strategy is to reduce the operating frequency of the device to a first preset percentage of the standard operating frequency of the device if the voltage parameter of the internal module of the device indicates that the voltage of the internal module of the device is less than a first voltage threshold, and the operating frequency of the device is positively correlated with the power consumption of the device.
11. The device according to claim 9 or 10, characterized in that The load power supply parameter is obtained by detecting the core current of the device by the power control chip; The analysis unit is specifically used to determine the power control hierarchy strategy to reduce the operating frequency of the device to a third preset percentage of the standard operating frequency of the device if the load power parameter indicates that the core current of the device is greater than a first current threshold.
12. A computing device, characterized in that: include: Power consumption monitoring circuit, control module and power supply circuit; The power supply circuit supplies power to the power consumption monitoring circuit and the control module; The power consumption monitoring circuit is used to monitor the power supply system and devices of the computing device; and transmit the monitoring results of the power supply system and devices to the control module, wherein the monitoring results include voltage drop parameters of the internal modules of the device, bus voltage drop parameters of the input bus voltage in the power supply system, first bus current parameters of the input bus current, and load power supply parameters of the core current provided for the device; The control module is used for: Determine a power control hierarchy strategy according to the monitoring result, wherein the power control hierarchy strategy is used to adjust the power consumption of the device according to the monitoring result of the power system and the device, so as to eliminate power spikes and dynamic power adjustment in the power supply system; The power consumption of the device is adjusted according to the power control hierarchy strategy.
Citation Information
Patent Citations
Power consumption adjustment method and device, computing equipment and computer readable storage medium
CN118567463A
On-chip voltage drop alarm for cooperating dynamic voltage frequency adjusting system
CN106249034A
Power supply control circuit and method of automobile instrument, automobile instrument and automobile
CN110435565A
Frequency control method, circuit and chip based on adaptive clock
CN114706449A
Self-adaptive clock circuit, chip and voltage adjusting method and device
CN114815948A
Cited By
Multi-scene chip consumption control system and method
CN119005023A
