CN114924637B - Control method and electronic equipment - Google Patents

Control method and electronic equipment Download PDF

Info

Publication number
CN114924637B
CN114924637B CN202210357224.2A CN202210357224A CN114924637B CN 114924637 B CN114924637 B CN 114924637B CN 202210357224 A CN202210357224 A CN 202210357224A CN 114924637 B CN114924637 B CN 114924637B
Authority
CN
China
Prior art keywords
power
power consumption
consumption module
module
maintaining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210357224.2A
Other languages
Chinese (zh)
Other versions
CN114924637A (en
Inventor
刘德创
叶志伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202210357224.2A priority Critical patent/CN114924637B/en
Publication of CN114924637A publication Critical patent/CN114924637A/en
Application granted granted Critical
Publication of CN114924637B publication Critical patent/CN114924637B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3243Power saving in microcontroller unit
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • G06F11/3062Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations where the monitored property is the power consumption
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Power Sources (AREA)

Abstract

The application discloses a control method and electronic equipment, wherein the control method and the electronic equipment acquire output power of a power supply module, attribute information of a first power consumption module and input power of a second power consumption module of the electronic equipment, and automatically adjust a first power limit value of the first power consumption module with an adjustable power limit value according to the parameters of the electronic equipment. On the premise of meeting the performance requirements of the electronic equipment, the situation that the actual power consumption exceeds the output power which can be actually output by the power supply module in the use process of the self-defined configured or built electronic equipment is effectively avoided. The first power limit of the first power consumption module with adjustable power can be dynamically adjusted according to different power consumption modules, so that the configuration flexibility and the equipment working stability of the electronic equipment are obviously improved while the performance of the first power consumption module is ensured.

Description

Control method and electronic equipment
Technical Field
The present disclosure relates to the field of power management technologies, and in particular, to a control method and an electronic device.
Background
Electronic devices have many power-consuming modules, with more complex limiting relationships between the power-consuming modules and the power source. At present, after a user purchases the device, the configuration of the device may be automatically adjusted according to the use requirement, and the situation that the user matches the wrong configuration easily occurs, so that the total power consumption of the electronic device exceeds the rated power consumption of the PSU (Power Supply Unit, power supply device), and serious problems such as restarting of the system and accelerated aging of the device are further caused.
Disclosure of Invention
The embodiment of the application provides a control method and electronic equipment.
According to a first aspect of the present application, there is provided a control method, the method comprising: obtaining output power of a power module of the electronic equipment; acquiring attribute information of a first power consumption module of the electronic equipment, wherein the power limit value of the first power consumption module is adjustable; obtaining input power required for maintaining operation of a second power consumption module of the electronic device; and determining a first power limit value required by maintaining the first power consumption module to work according to the output power of the power supply module, the attribute information of the first power consumption module and the input power of the second power consumption module, and controlling the input power required by maintaining the first power consumption module to work not to exceed the first power limit value.
According to an embodiment of the present application, the obtaining the output power of the power module of the electronic device includes: obtaining a device identifier of the power supply module; and determining the output power of the power supply module according to the equipment identifier.
According to an embodiment of the present application, before obtaining the attribute information of the first power consumption module of the electronic device, the method further includes: obtaining a chassis identifier; determining the type of the case of the electronic equipment according to the case identification; determining a first power limit value required for maintaining the operation of the first power consumption module and controlling the input power required for maintaining the operation of the first power consumption module not to exceed the first power limit value under the condition that the type of the chassis of the electronic equipment is a first type; and under the condition that the type of the chassis of the electronic equipment is a second type, controlling the input power required by maintaining the operation of the first power consumption module not to exceed a second power limit value, wherein the volume of the chassis of the first type is smaller than that of the chassis of the second type, the first power limit value is smaller than or equal to the second power limit value, and the second power limit value is prestored in a storage module of the electronic equipment.
According to an embodiment of the present application, the attribute information of the first power consumption module includes a rated input power of the first power consumption module; accordingly, the determining a first power limit required to maintain operation of the first power consumption module includes: obtaining the equipment identification of the first power consumption module, and determining the rated input power of the first power consumption module according to the equipment identification of the first power consumption module; obtaining the equipment identification of the second power consumption module, and determining the input power of the second power consumption module according to the equipment identification of the second power consumption module; and determining a first power limit value required for maintaining the first power consumption module according to the output power of the power supply module, the rated input power of the first power consumption module and the input power for maintaining the second power consumption module, wherein communication lines for supporting the first power consumption module and the second power consumption module are different.
According to an embodiment of the present application, the attribute information of the first power consumption module further includes the number of cores and the rated input power of the first power consumption module.
According to an embodiment of the present application, the method further comprises: responding to an electronic equipment starting request, and obtaining output power of a power supply module of the electronic equipment, attribute information of a first power consumption module and input power required by maintaining the operation of a second power consumption module of the electronic equipment; comparing the output power of the power supply module with a pre-stored output power limit value of the power supply module, comparing the attribute information of the first power consumption module with the pre-stored attribute information of the first power consumption module, and comparing the input power required for maintaining the operation of the second power consumption module with a pre-stored input power limit value required for maintaining the operation of the second power consumption module; if the output power of the power supply module is consistent with the prestored output power limit value of the power supply module, the attribute information of the first power consumption module is consistent with the prestored attribute information of the first power consumption module, and the input power required for maintaining the operation of the second power consumption module is consistent with the prestored input power required for maintaining the operation of the second power consumption module, the first power consumption module is controlled to operate at the prestored power limit value; and if at least one of the comparison result of the output power of the power supply module and the pre-stored output power limit value of the power supply module, the comparison result of the attribute information of the first power consumption module and the pre-stored attribute information of the first power consumption module and the comparison result of the input power required for maintaining the operation of the second power consumption module and the pre-stored input power limit value required for maintaining the operation of the second power consumption module is inconsistent, adjusting the first power limit value required for maintaining the operation of the first power consumption module.
According to an embodiment of the present application, the method further comprises: and when the judging result shows that at least one of the output power of the power supply module, the attribute information of the first power consumption module and the input power for maintaining the operation of the second power consumption module is updated, adjusting the first power limit value according to the updated output power of the power supply module, the attribute information of the first power consumption module and the input power for maintaining the operation of the second power consumption module, and controlling the input power required for maintaining the operation of the first power consumption module not to exceed the first power limit value.
According to an embodiment of the present application, the adjusting the first power limit according to the updated output power of the power supply module, the attribute information of the first power consumption module, and the input power for maintaining the operation of the second power consumption module includes at least one of: determining whether the first power limit value needs to be adjusted according to the main board identification of the electronic equipment and the output power of the power module; determining, according to a relationship between an original first power limit value of the first power consumption module and output power of the power supply module: whether the input power for maintaining the operation of the second power consumption module needs to be detected; and whether the first power limit of the first power consumption module needs to be adjusted according to the detected input power for maintaining the second power consumption module in operation.
According to a second aspect of the present application, there is also provided an electronic device having a control apparatus, a power supply module, a first power consumption module, and a second power consumption module; the control device is used for: obtaining output power of the power supply module, attribute information of the first power consumption module and input power required for maintaining the second power consumption module to work; determining a first power limit value required by maintaining the operation of the first power consumption module according to the output power of the power supply module, the attribute information of the first power consumption module and the input power of the second power consumption module, and controlling the input power required by maintaining the operation of the first power consumption module not to exceed the first power limit value; wherein the power limit of the first power consumption module is adjustable.
According to a third aspect of the present application there is further provided a computer readable storage medium comprising a set of computer executable instructions for performing any of the control methods described above when the instructions are executed.
In the control method and the electronic device, the control method includes: obtaining output power of a power module of the electronic equipment; acquiring attribute information of a first power consumption module of the electronic equipment, wherein the power limit value of the first power consumption module is adjustable; obtaining input power required for maintaining operation of a second power consumption module of the electronic device; and determining a first power limit value required by maintaining the first power consumption module to work according to the output power of the power supply module, the attribute information of the first power consumption module and the input power of the second power consumption module, and controlling the input power required by maintaining the first power consumption module to work not to exceed the first power limit value. Therefore, the output power of the power supply module, the attribute information of the first power consumption module and the input power of the second power consumption module of the electronic equipment are obtained, and the first power limit value of the first power consumption module with the adjustable power limit value is automatically adjusted according to the parameters of the electronic equipment. On the premise of meeting the performance requirements of the electronic equipment, the situation that the actual power consumption exceeds the output power which can be actually output by the power supply module in the use process of the self-defined configured or built electronic equipment is effectively avoided. The first power limit of the first power consumption module with adjustable power can be dynamically adjusted according to different power consumption modules, so that the configuration flexibility and the equipment working stability of the electronic equipment are obviously improved while the performance of the first power consumption module is ensured.
It should be understood that the teachings of the present application are not required to achieve all of the above-described benefits, but rather that certain technical solutions may achieve certain technical effects, and that other embodiments of the present application may also achieve benefits not mentioned above.
Drawings
The above, as well as additional purposes, features, and advantages of exemplary embodiments of the present application will become readily apparent from the following detailed description when read in conjunction with the accompanying drawings. Several embodiments of the present application are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings, in which:
in the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
FIG. 1 shows a schematic flow chart of an implementation of a control method according to an embodiment of the present application;
fig. 2 is a schematic implementation flow chart of a specific application example of a control method according to an embodiment of the present application;
fig. 3 shows a schematic diagram of a composition structure of an electronic device according to an embodiment of the present application.
Detailed Description
The principles and spirit of the present application will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are presented merely to enable one skilled in the art to better understand and practice the present application and are not intended to limit the scope of the present application in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The technical scheme of the present application is further elaborated below with reference to the drawings and specific embodiments.
Fig. 1 shows a schematic implementation flow chart of a control method according to an embodiment of the present application.
Referring to fig. 1, the control method in the embodiment of the present application at least includes the following operation flows: operation 101, obtaining output power of a power module of an electronic device; operation 102, obtaining attribute information of a first power consumption module of the electronic device, wherein a power limit value of the first power consumption module is adjustable; operation 103, obtaining input power required for maintaining the operation of the second power consumption module of the electronic device; in operation 104, a first power limit value required for maintaining the operation of the first power consumption module is determined according to the output power of the power supply module, the attribute information of the first power consumption module, and the input power for maintaining the operation of the second power consumption module, and the input power required for maintaining the operation of the first power consumption module is controlled not to exceed the first power limit value.
In operation 101, an output power of a power module of an electronic device is obtained.
In this embodiment of the present application, the output power of the power supply module may be determined by obtaining the device identification of the power supply module and then determining the output power of the power supply module according to the device identification.
In this embodiment of the present application, the power module may be an adapter or a battery for an electronic device.
In operation 102, attribute information of a first power consumption module of the electronic device is obtained, and a power limit value of the first power consumption module is adjustable.
In this embodiment of the present application, the first power consumption module may be a CPU, and a power limit of the CPU may be adjustable. Here, the attribute information of the first power consumption module may include an ID of the CPU, a value of PL2 of the CPU determined based on the ID of the CPU, the Core (Core) number of the CPU, and the like.
In this embodiment of the present application, the first Power Limit value required for maintaining the operation of the first Power consumption module may be L2 (Power Limit 2, power Limit, 2 representing the level of the Power Limit) of the CPU. Here, the power limit of the CPU is described simply by using a general purpose definition method, and the power limit of the CPU may have 4 levels, where PL1 is rated power consumption, PL2 is maximum power consumption, and PL3 or PL4 is limit power consumption, and only PL4 may be disposed and PL3 may not be disposed for small electronic devices such as a notebook. Specifically, PL1 is defined as a default TDP (Thermal Design Power, heat dissipation design power consumption) of the CPU, and when the power consumption of the CPU is within the range of PL1, the operation of the CPU is not limited. When the power consumption of the CPU reaches PL2, the power consumption of the CPU exceeds the range of TDP, and the CPU automatically adjusts the main frequency of the CPU according to the current task amount, so that the CPU can perform maximum performance full load operation when the CPU can re-task. The CPU can maintain the continuous operation time of up to 100 seconds under the power consumption of PL2, and then the CPU is limited in operation frequency until the power consumption of the CPU is restored to be within PL 1. When the power consumption of the CPU reaches PL3 and PL4, the power consumption of the CPU reaches a higher power consumption state, and only about 10ms of running time can be maintained, but the CPU is disabled by default, and not all electronic devices can be manually disabled, so that the CPU is insurmountable power consumption peak beyond PL 4. Therefore, the CPU in the present application has PL2 as the power limit value. The PL2 of the CPU may be configured according to the output power of the power supply module of the electronic apparatus, the power of the graphic card, and the like.
In this embodiment of the present application, the first power consumption module has a multi-processing chip, for example: a CPU with multiple cores. The attribute information of the first power consumption module further includes the number of cores and rated input power of the first power consumption module.
In operation 103, an input power required for maintaining operation of the second power consumption module of the electronic device is obtained.
The second power consumption module may include a module connected through PCIe (serial board card), for example: display cards and network cards of electronic devices, and the like.
In this embodiment of the present application, the board identifier of the serial board may be detected, and the input power for maintaining the operation of the module connected to the serial board may be determined according to the board identifier, so as to obtain the input power required for maintaining the operation of the second power consumption module of the electronic device.
In operation 104, a first power limit value required for maintaining the operation of the first power consumption module is determined according to the output power of the power supply module, the attribute information of the first power consumption module, and the input power for maintaining the operation of the second power consumption module, and the input power required for maintaining the operation of the first power consumption module is controlled not to exceed the first power limit value.
In this embodiment of the present application, the attribute information of the first power consumption module includes a rated input power of the first power consumption module. Correspondingly, the device identifier of the first power consumption module can be obtained, the rated input power of the first power consumption module is determined according to the device identifier of the first power consumption module, the device identifier of the second power consumption module is obtained, the input power of the second power consumption module is determined according to the device identifier of the second power consumption module, and the first power limit value required for maintaining the operation of the first power consumption module is further determined according to the output power of the power supply module, the rated input power of the first power consumption module and the input power for maintaining the operation of the second power consumption module.
For example, the first power consumption module is a CPU of the electronic device, and the second power consumption module includes a graphics card GPU of the electronic device. Accordingly, after obtaining the CPU identifier of the CPU, the rated power of the CPU may be determined according to the CPU identifier. After the board identifier of the serial board PICE is obtained, the input power for maintaining the operation of the modules such as the display card connected with the serial board can be determined according to the board identifier. Thus, the first power limit value required for maintaining the operation of the first power consumption module can be determined further based on the output power of the power supply module, the rated input power of the first power consumption module, and the input power for maintaining the operation of the second power consumption module.
In this embodiment of the present application, taking the first power consumption module as the CPU of the electronic device again, where the second power consumption module includes the graphics card GPU of the electronic device as an example, the first power consumption of the CPU may be determined according to a first mapping between the rated power consumption of the CPU and the set power consumption of the CPU under the preset power consumption of the power supply device. And determining a first power limit value of the maximum power consumption of the CPU according to a second mapping between the rated power consumption of the display card and the CPU set power consumption under the preset first power consumption.
In this embodiment of the present application, the communication lines for supporting the operation of the first power consuming module are different from the communication lines for supporting the operation of the second power consuming module.
For example, the first power consumption module is a CPU of the electronic device, and the second power consumption module includes a graphics card GPU of the electronic device. The CPU may be configured and adjusted in the BIOS option of the electronic device. Whereas GPUs need to be connected to PCIe, do not have FW (firmware) debug interfaces similar to BIOS, and can only obtain relevant information through SMBus of PCIe, so adjustable options cannot be configured in BIOS to adjust GPU parameters.
In this embodiment of the present application, the output power of the power module of the electronic device, the attribute information of the first power consumption module, and the input power required for maintaining the operation of the second power consumption module of the electronic device are also obtained in response to the electronic device start-up request. And comparing the output power of the power supply module, the attribute information of the first power consumption module and the input power for maintaining the second power consumption module to work with a pre-stored power limit value to obtain a comparison result. Further, if the comparison result shows that the output power of the power supply module, the attribute information of the first power consumption module and the input power for maintaining the operation of the second power consumption module are consistent with the pre-stored power limit value, the operation is performed with the pre-stored power limit value. And if the comparison result shows that the output power of the power supply module, the attribute information of the first power consumption module and the input power for maintaining the operation of the second power consumption module are inconsistent with the pre-stored power limit values, adjusting the first power limit value required for maintaining the operation of the first power consumption module.
In this embodiment of the present application, the pre-stored power limit value may be an initial default value of the first power consumption module of the electronic device or a first power limit value stored after the previous adjustment of the first power limit value of the first power consumption module of the electronic device.
For example, when the power key of the electronic device is triggered, during the startup process of the BIOS, the output power of the power module of the electronic device, the attribute information of the CPU, and the input power required for maintaining the operation of the power consumption module configured on the PICe, such as the graphics card of the electronic device, are first obtained. If the comparison result shows that the output power of the power supply module, the attribute information of the CPU, and the input power required for maintaining the operation of the power consumption module configured on the PICe, such as the display card of the electronic device, are consistent with the output power of the power supply module of the electronic device detected in the previous BIOS start-up process, the attribute information of the CPU, and the input power required for maintaining the operation of the power consumption module configured on the PICe, such as the display card of the electronic device, the output power of the power supply module of the electronic device, the attribute information of the CPU, and the input power required for maintaining the operation of the power consumption module configured on the PICe, such as the display card of the electronic device, are not changed, the value of PL2 of the CPU determined in the previous BIOS start-up process can be maintained unchanged. If the electronic device is a new device, in the process of starting the BIOS for the first time, the value of PL2 of the CPU may be set to an initial default value of the electronic device when the electronic device leaves the factory.
In this embodiment of the present application, before obtaining the attribute information of the first power consumption module of the electronic device, a chassis identifier is further obtained, and a chassis type of the electronic device is determined according to the chassis identifier. And under the condition that the type of the chassis of the electronic equipment is the first type, determining a first power limit value required for maintaining the operation of the first power consumption module, and controlling the input power required for maintaining the operation of the first power consumption module not to exceed the first power limit value. And under the condition that the type of the case of the electronic equipment is the second type, controlling the input power required for maintaining the operation of the first power consumption module not to exceed a second power limit value, wherein the volume of the case of the first type is smaller than that of the case of the second type, the first power limit value is smaller than or equal to the second power limit value, and the second power limit value is prestored in a storage module of the electronic equipment.
Specifically, the first type of chassis identifier may be an SFF (small form factor) or a uSFF (ultra small form factor) electronic device, for example: a small desktop or notebook computer. The second type of chassis may be a conventional desktop or workstation, etc. For models in which the output power of the power supply module is limited and the configuration is diversified, the power limitation of the CPU must be reasonably limited. Accordingly, the chassis type of the electronic device of the SFF or the uSFF may be determined as the first type herein.
The first type of chassis and the second type of chassis are relative concepts, and the above description of the first type of chassis and the second type of chassis is exemplary, and is not limited to the first type and the second type, and may be set as needed in a specific use process.
The main board identification is obtained according to the main board, and the chassis volume suitable for the main board is determined based on the main board identification, so that the size of the chassis volume can be further determined, and whether the condition of the small chassis is met or not is determined according to the size of the chassis volume.
In this embodiment of the present application, the second power limit may be an initial default value of the first power consumption module of the electronic device or a first power limit stored after the previous adjustment of the first power limit of the first power consumption module of the electronic device. For example: the second power limit may be a default PL2 value of the CPU of the electronic device, or may be a PL2 value stored after the previous adjustment of the PL2 value of the CPU of the electronic device.
In this embodiment of the present application, when the determination result shows that at least one of the output power of the power supply module, the attribute information of the first power consumption module, and the input power for maintaining the operation of the second power consumption module is changed, the first power limit is adjusted according to the updated output power of the power supply module, the attribute information of the first power consumption module, and the input power for maintaining the operation of the second power consumption module, and the input power required for maintaining the operation of the first power consumption module is controlled not to exceed the first power limit.
Specifically, when the determination result shows that at least one item of configuration information of hardware configuration such as output power of a power supply module of the electronic device, attribute information of the CPU, and input power required for maintaining operation of a power consumption module configured on the PICe, such as a display card of the electronic device, is changed, the PL2 value of the CPU may be adjusted according to the output power of the power supply module of the electronic device, the attribute information of the CPU, and the input power required for maintaining operation of the power consumption module configured on the PICe, such as the display card of the electronic device, and the input power required for maintaining operation of the CPU is controlled not to exceed the adjusted PL2 value of the CPU.
In this embodiment of the present application, it may be determined whether the first power limit needs to be adjusted according to the motherboard identifier of the electronic device and the output power of the power module. The determination may also be made based on a relationship between the original first power limit of the first power consuming module and the output power of the power source module: whether the power of the equipment connected with the serial board card needs to be detected or not; and whether the first power limit value of the first power consumption module is required to be adjusted according to the detected power of the equipment connected with the serial board card.
Specific application examples of the control method according to the embodiment of the present application may be described in detail herein.
Fig. 2 shows a schematic implementation flow chart of a specific application example of the control method according to the embodiment of the present application.
Referring to fig. 2, a specific application example of the control method in the embodiment of the present application at least includes the following operation flows: in the process of triggering a power key of the electronic equipment and starting the system, the following four steps of automatic screening and PL2 value distribution operation of the CPU are executed through the BIOS:
since the control method for the first power limit value of the first power consumption module may be configured in the BIOS system file applicable to a plurality of types of electronic devices, it is not necessary to control the PL2 value of the CPU for some types of electronic devices. Therefore, here, it is possible to configure in the BIOS file a setting according to the setting field to show whether or not the current electronic device needs to control the PL2 value of the CPU. For an electronic device that needs to control the PL2 value of the CPU, the following operations are performed:
1. the next execution is determined by obtaining the PSU ID.
For example, PSU model 380W, 310W, or other set power may be identified by a Powper Meter PIN.
2. And determining the next execution content by acquiring the chassis model.
Taking the PSU model of the electronic device as an example, here, it is further determined whether the electronic device is an SFF-type chassis. If so, the operation for controlling the PL2 value of the CPU is continued. If not, no operation for controlling the PL2 value of the CPU is performed.
For example, the control method for the first power limit value of the first power consumption module may be configured in the BIOS system file applicable to the electronic devices of multiple chassis types, and the PL2 value of the CPU does not need to be controlled for some of the chassis types of electronic devices. In the case where it is determined that the current box type is a box type that does not require control of the PL2 value of the CPU, other operations may be performed to set other parameters of the electronic apparatus without performing operations for controlling the PL2 value of the CPU.
3. The next execution is determined by obtaining the CPU model.
By way of example, screening and assignment of PL2 values may be accomplished herein by obtaining a CPU ID. The screening and distribution of the set rounds can be configured according to actual needs. Two rounds of screening and dispensing are configured during this operation in this embodiment of the present application. Referring back to the electronic device in which the output power of the PSU is 380W and the chassis is of the SFF chassis type, it is first determined whether the rated power of the CPU is 125W. If the rated power of the CPU is 125W, setting the PL2 value of the CPU according to the preset mapping of the rated power of the CPU and the PL2 value of the CPU.
4. Detecting PCIe ID determines further decisions on screening and allocation schemes of PL2 values by CPU, thereby completing automatic detection and PL2 values of CPU.
For example, a plurality of PL2 setting schemes of the CPU may be preconfigured in advance according to the type of the cabinet of the electronic apparatus, the output power of the power supply module, the rated power of the CPU, and the like, for example:
the chassis type of the electronic equipment is P350 SFF, the CPU is a single-core CPU with the rated power of 65W, the output power of the power supply module PSU is 380W, the display card type is NVIDIA A2000 GFX, and the PL2 value of the CPU is configured according to the worst basis of other modules of the electronic equipment, namely, larger input power for maintaining the operation of other power consumption modules of the electronic equipment is preset.
The actual Power consumption Power-1 of the CPU is 65W, namely PL1/65W and PL2/264W of the CPU, and the total loss of the electronic device is assumed to be 15%, namely 85% of the rated Power of the PSU can be converted and utilized by a plurality of Power consumption modules of the electronic device.
The input Power-2 for maintaining graphics NVIDIA A2000 GFX operation is 70W.
The input Power-3 for maintaining operation of the other Power consuming modules of the chassis type P350 SFF electronic device is 90W.
Thus, the predicted total power consumption of the plurality of power consuming modules of the electronic device is 264 w+70w+90w=424W. The PSU here has a rated power consumption of 380W.
Based on the above determination, the PL2 value of the CPU can be set as:
(264W-(424W-380W))*85%=187W。
therefore, the control method of the embodiment replaces a large amount of complex T3 BOM limiting work by the automatic detection action in the simple BIOS starting process, and has simple error detection mode and extremely high reliability. And the huge amount of work of two-stage checking of BIOS code value checking and T3 BOM rule can be effectively avoided. The PL2 value control method of the CPU has simple adjustment mode and high flexibility, can be rapidly configured according to the CPUs, the GPUs, the PSUs and the like of different products, effectively avoids the situation that the actual power consumption of the device configuration of the user-defined collocation of the electronic device exceeds the rated power consumption of the PSU, and accordingly avoids the system restarting problem of the electronic device.
Other specific implementation processes of the specific application example of the control method in the embodiment of fig. 2 are similar to those of operations 101 to 104 in the embodiment of fig. 1, and are not repeated here.
The control method and the electronic device provided by the embodiment of the application comprise the following steps: obtaining output power of a power module of the electronic equipment; acquiring attribute information of a first power consumption module of the electronic equipment, wherein the power limit value of the first power consumption module is adjustable; obtaining input power required for maintaining operation of a second power consumption module of the electronic device; according to the output power of the power supply module, the attribute information of the first power consumption module and the input power for maintaining the operation of the second power consumption module, determining a first power limit value required by maintaining the operation of the first power consumption module, and controlling the input power required by maintaining the operation of the first power consumption module not to exceed the first power limit value. Therefore, the output power of the power supply module of the electronic equipment, the attribute information of the first power consumption module and the input power for maintaining the second power consumption module to work are obtained, and the first power limit value of the first power consumption module with the adjustable power limit value is automatically adjusted according to the parameters of the electronic equipment. On the premise of meeting the performance requirements of the electronic equipment, the situation that the actual power consumption exceeds the output power which can be actually output by the power supply module in the use process of the self-defined configured or built electronic equipment is effectively avoided. The first power limit of the first power consumption module with adjustable power can be dynamically adjusted according to different power consumption modules, so that the configuration flexibility and the equipment working stability of the electronic equipment are obviously improved while the performance of the first power consumption module is ensured.
Similarly, based on the above control method, the embodiments of the present application further provide a computer readable storage medium storing a program, which when executed by a processor, causes the processor to perform at least the following operation steps: operation 101, obtaining output power of a power module of an electronic device; operation 102, obtaining attribute information of a first power consumption module of the electronic device, wherein a power limit value of the first power consumption module is adjustable; operation 103, obtaining input power required for maintaining the operation of the second power consumption module of the electronic device; in operation 104, a first power limit value required for maintaining the operation of the first power consumption module is determined according to the output power of the power supply module, the attribute information of the first power consumption module, and the input power for maintaining the operation of the second power consumption module, and the input power required for maintaining the operation of the first power consumption module is controlled not to exceed the first power limit value.
Further, based on the control method as above, the embodiment of the present application further provides an electronic device, as in fig. 3, where the electronic device 30 has a control apparatus 301, a power supply module 302, a first power consumption module 303, and a second power consumption module 304; the control device 301 is configured to: obtaining the output power of the power supply module 302, attribute information of the first power consumption module 303, and input power required for maintaining the operation of the second power consumption module 304; determining a first power limit value required for maintaining the first power consumption module 303 to work according to the output power of the power supply module 302, the attribute information of the first power consumption module 303 and the input power of the second power consumption module 304, and controlling the input power required for maintaining the first power consumption module 303 to work not to exceed the first power limit value; wherein the power limit of the first power consumption module 303 is adjustable.
It should be noted here that: the above description of the embodiment of the electronic device, which is similar to the description of the embodiment of the method shown in fig. 1 to 2, has similar advantageous effects as the embodiment of the method shown in fig. 1 to 2, and thus is not repeated. For technical details not disclosed in the embodiments of the electronic device of the present application, please refer to the description of the method embodiments shown in fig. 1 to 2 and described above in the foregoing application, for economy of description, and therefore, the description is not repeated.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of units is only one logical function division, and there may be other divisions in actual implementation, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units; can be located in one place or distributed to a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read Only Memory (ROM), a magnetic disk or an optical disk, or the like, which can store program codes.
Alternatively, the integrated units described above may be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partly contributing to the prior art, and the computer software product may be stored in a storage medium, and include several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a removable storage device, a ROM, a magnetic disk, or an optical disk.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes or substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A control method, the method comprising:
obtaining output power of a power module of the electronic equipment;
acquiring attribute information of a first power consumption module of the electronic equipment, wherein the power limit value of the first power consumption module is adjustable, and the attribute information of the first power consumption module is information for acquiring the power of the first power consumption module;
obtaining input power required for maintaining operation of a second power consumption module of the electronic device;
and determining a first power limit value required by maintaining the first power consumption module to work according to the output power of the power supply module, the attribute information of the first power consumption module and the input power of the second power consumption module, and controlling the input power required by maintaining the first power consumption module to work not to exceed the first power limit value.
2. The method of claim 1, the obtaining the output power of the power module of the electronic device, comprising:
obtaining a device identifier of the power supply module;
and determining the output power of the power supply module according to the equipment identifier.
3. The method of claim 1, prior to obtaining attribute information of a first power consumption module of the electronic device, the method further comprising:
obtaining a chassis identifier;
determining the type of the case of the electronic equipment according to the case identification;
determining a first power limit value required for maintaining the operation of the first power consumption module and controlling the input power required for maintaining the operation of the first power consumption module not to exceed the first power limit value under the condition that the type of the chassis of the electronic equipment is a first type;
and controlling the input power required for maintaining the operation of the first power consumption module to not exceed a second power limit value under the condition that the type of the case of the electronic equipment is a second type,
the first power limit value is smaller than or equal to the second power limit value, and the second power limit value is stored in a storage module of the electronic device in advance.
4. The method of claim 1, the attribute information of the first power consumption module comprising a rated input power of the first power consumption module; in a corresponding manner,
the determining a first power limit required to maintain operation of the first power consumption module includes:
obtaining the equipment identification of the first power consumption module, and determining the rated input power of the first power consumption module according to the equipment identification of the first power consumption module;
obtaining the equipment identification of the second power consumption module, and determining the input power of the second power consumption module according to the equipment identification of the second power consumption module; and
determining a first power limit required for maintaining operation of the first power consuming module based on the output power of the power module, the rated input power of the first power consuming module, and the input power for maintaining operation of the second power consuming module,
wherein the communication lines for supporting the operation of the first power consumption module and for supporting the operation of the second power consumption module are different.
5. The method of claim 1, the attribute information of the first power consumption module further comprising a number of cores and a rated input power of the first power consumption module.
6. The method of claim 1, the method further comprising:
responding to an electronic equipment starting request, and obtaining output power of a power supply module of the electronic equipment, attribute information of a first power consumption module and input power required by maintaining the operation of a second power consumption module of the electronic equipment;
comparing the output power of the power supply module with a pre-stored output power limit value of the power supply module, comparing the attribute information of the first power consumption module with the pre-stored attribute information of the first power consumption module, and comparing the input power required for maintaining the operation of the second power consumption module with a pre-stored input power limit value required for maintaining the operation of the second power consumption module;
if the output power of the power supply module is consistent with the prestored output power limit value of the power supply module, the attribute information of the first power consumption module is consistent with the prestored attribute information of the first power consumption module, and the input power required for maintaining the operation of the second power consumption module is consistent with the prestored input power required for maintaining the operation of the second power consumption module, the first power consumption module is controlled to operate at the prestored power limit value;
and if at least one of the comparison result of the output power of the power supply module and the pre-stored output power limit value of the power supply module, the comparison result of the attribute information of the first power consumption module and the pre-stored attribute information of the first power consumption module and the comparison result of the input power required for maintaining the operation of the second power consumption module and the pre-stored input power limit value required for maintaining the operation of the second power consumption module is inconsistent, adjusting the first power limit value required for maintaining the operation of the first power consumption module.
7. The method of claim 6, the method further comprising:
when the comparison result shows that at least one of the output power of the power supply module, the attribute information of the first power consumption module and the input power for maintaining the operation of the second power consumption module is updated, the first power limit value is adjusted according to the updated output power of the power supply module, the attribute information of the first power consumption module and the input power for maintaining the operation of the second power consumption module, and the input power required for maintaining the operation of the first power consumption module is controlled not to exceed the first power limit value.
8. The method of claim 7, the adjusting the first power limit based on the updated output power of the power module, the attribute information of the first power consumption module, and the input power for maintaining operation of the second power consumption module, comprising at least one of:
determining whether the first power limit value needs to be adjusted according to the main board identification of the electronic equipment and the output power of the power module;
determining, according to a relationship between an original first power limit value of the first power consumption module and output power of the power supply module: whether the input power for maintaining the operation of the second power consumption module needs to be detected; and whether the first power limit of the first power consumption module needs to be adjusted according to the detected input power for maintaining the second power consumption module in operation.
9. An electronic device having a control device, a power module, a first power consumption module, and a second power consumption module;
the control device is used for: obtaining output power of the power supply module, attribute information of the first power consumption module and input power required for maintaining the second power consumption module to work; determining a first power limit value required by maintaining the operation of the first power consumption module according to the output power of the power supply module, the attribute information of the first power consumption module and the input power of the second power consumption module, and controlling the input power required by maintaining the operation of the first power consumption module not to exceed the first power limit value;
the power limit value of the first power consumption module is adjustable, and the attribute information of the first power consumption module is information for obtaining the power of the first power consumption module.
10. A computer readable storage medium storing executable instructions for implementing the control method of any one of claims 1 to 8 when executed by a processor.
CN202210357224.2A 2022-04-02 2022-04-02 Control method and electronic equipment Active CN114924637B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210357224.2A CN114924637B (en) 2022-04-02 2022-04-02 Control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210357224.2A CN114924637B (en) 2022-04-02 2022-04-02 Control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN114924637A CN114924637A (en) 2022-08-19
CN114924637B true CN114924637B (en) 2024-02-27

Family

ID=82805676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210357224.2A Active CN114924637B (en) 2022-04-02 2022-04-02 Control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN114924637B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117270670B (en) * 2023-11-22 2024-04-12 荣耀终端有限公司 Power consumption control method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593015A (en) * 2008-05-29 2009-12-02 华硕科技(苏州)有限公司 The computer system of managing power consumption and correlation technique thereof
CN104885321A (en) * 2013-02-11 2015-09-02 密克罗奇普技术公司 Pulse width modulation load share bus
CN110308782A (en) * 2018-03-22 2019-10-08 阿里巴巴集团控股有限公司 Power consumption prediction, control method, equipment and computer readable storage medium
CN112230754A (en) * 2020-09-25 2021-01-15 苏州浪潮智能科技有限公司 Power output voltage stabilizing system and method in main and standby power switching process of server
CN113625862A (en) * 2021-08-17 2021-11-09 浪潮商用机器有限公司 Power consumption control method and device, electronic equipment and readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100382232B1 (en) * 2002-05-31 2003-05-09 Palm Palm Tech Mobile terminal having enhanced power managing function and power managing method thereof
KR102327803B1 (en) * 2014-11-21 2021-11-17 삼성전자 주식회사 Power control method and apparatus for reducing power consumption
US9690358B2 (en) * 2015-02-11 2017-06-27 Dell Products, Lp Method and apparatus for system control of a central processing unit (CPU) maximum power detector
US10831254B2 (en) * 2017-09-15 2020-11-10 Qualcomm Incorporated Allocating power between multiple central processing units (CPUs) in a multi-CPU processor based on total current availability and individual CPU quality-of-service (QoS) requirements
US11237616B1 (en) * 2020-07-27 2022-02-01 International Business Machines Corporation Governing power budget with token passing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593015A (en) * 2008-05-29 2009-12-02 华硕科技(苏州)有限公司 The computer system of managing power consumption and correlation technique thereof
CN104885321A (en) * 2013-02-11 2015-09-02 密克罗奇普技术公司 Pulse width modulation load share bus
CN110308782A (en) * 2018-03-22 2019-10-08 阿里巴巴集团控股有限公司 Power consumption prediction, control method, equipment and computer readable storage medium
CN112230754A (en) * 2020-09-25 2021-01-15 苏州浪潮智能科技有限公司 Power output voltage stabilizing system and method in main and standby power switching process of server
CN113625862A (en) * 2021-08-17 2021-11-09 浪潮商用机器有限公司 Power consumption control method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN114924637A (en) 2022-08-19

Similar Documents

Publication Publication Date Title
US6237103B1 (en) Power sequencing in a data processing system
US8001368B2 (en) Hot-pluggable information processing device and setting method
US6922787B2 (en) Method and system for providing a flexible temperature design for a computer system
US8909952B2 (en) Power supply apparatus of computer system and method for controlling power sequence thereof
TW200903243A (en) Dynamic power reduction
US10097091B1 (en) Setting operating points for circuits in an integrated circuit chip
US9916165B2 (en) Systems and methods to optimize boot for information handling system comprising persistent memory
KR20160032529A (en) SYSTEM ON CHIP(SoC), AND DYNAMIC VOLTAGE FREQUENCY SCALING(DVFS) VERIFICATION METHOD THEREOF
CN114924637B (en) Control method and electronic equipment
CN109753138B (en) Power consumption management method and device, electronic equipment and computer readable storage medium
JP2015526756A (en) Brightness control method, apparatus and program product
US8806254B2 (en) System and method for creating and dynamically maintaining system power inventories
US10996876B2 (en) Systems and methods for dynamically modifying memory namespace allocation based on memory attributes and application requirements
US20040225874A1 (en) Method for reduced BIOS boot time
US8769404B2 (en) Rule-based locale definition generation for a new or customized locale support
CN113031752A (en) Chip voltage adjusting method, performance testing method and device and electronic equipment
US11243757B2 (en) Systems and methods for efficient firmware update of memory devices in BIOS/UEFI environment
CN114048465B (en) Stack state detection method, device, equipment and storage medium
CN113900718B (en) Decoupling method, system and device for BMC and BIOS asset information
US10732699B2 (en) Redundancy in distribution of voltage-frequency scaling parameters
CN111399871A (en) System updating method, device, equipment and medium for HBA card
CN112148100A (en) Embedded equipment control method, device and system
CN111158733A (en) BMC upgrading method, device, equipment and computer readable storage medium
US11809261B2 (en) Systems and methods for itemizing device inventory for system power management
US11868225B2 (en) Provided inputs and provided output actions for use in platform management policies for platform management drivers

Legal Events

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