A control method, apparatus and electronic device
By monitoring processor power supply adjustment commands and adjusting power supply parameters when the voltage jump frequency reaches a threshold, the problem of electrical noise in the DVFS process is solved, achieving noise suppression and performance balance.
Patent Information
- Application Number
- CN202610603994.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-04-30
- Publication Date
- 2026-08-25
AI Technical Summary
Existing technologies struggle to effectively suppress electrical noise during processor dynamic voltage and frequency scaling (DVFS), and existing solutions suffer from high costs or complex debugging.
By monitoring the processor's power supply adjustment commands, identifying voltage jump frequencies, and adjusting power supply parameters when thresholds are reached, noise levels are reduced. System control interrupts or basic input/output system intervention mechanisms are used to dynamically adjust the processor state to reduce noise.
It enables proactive intervention before noise is generated, dynamically adjusting processor power supply parameters to effectively suppress electrical noise, reduce noise intensity, and maintain a balance between processor performance and power consumption.
Smart Images

Figure CN122633006A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic equipment technology, and more specifically, to a control method, apparatus, and electronic equipment. Background Technology
[0002] As the performance of electronic devices such as personal computers and laptops continues to improve, the operating frequency and power consumption of their internal processors (such as CPUs and GPUs) are also increasing. To balance performance and power consumption, modern processors commonly employ Dynamic Voltage and Frequency Scaling (DVFS) technology. This technology allows the processor to quickly adjust its operating voltage and frequency according to the real-time load. This adjustment is typically achieved by the processor sending power adjustment commands to the Voltage Regulator Module (VRM).
[0003] Electronic devices generate electrical noise during operation due to DVFS (Dual Voltage Slip), which is noise caused by voltage fluctuations within the device. Current solutions include optimizing BIOS (Basic Input Output System) settings, using high-quality inductors, and optimizing capacitor layout and installation. However, these methods may increase costs or require complex debugging or verification. Summary of the Invention
[0004] In view of the above, this application provides the following technical solution:
[0005] A first aspect of this application provides a control method, the method comprising:
[0006] Receive a power supply adjustment instruction sent by a first processor, wherein the power supply adjustment instruction contains a first power supply requirement parameter of the first processor;
[0007] Based on the first required power supply parameter in the received power supply adjustment instruction, the frequency of voltage jumps that meet the first set condition is determined, and the frequency represents the number of voltage jumps that meet the first set condition within a set time period.
[0008] If the frequency reaches a frequency threshold, the first processor is controlled to adjust the first required power supply parameter to a second required power supply parameter. The second required power supply parameter makes the power supply parameter of the power controller meet a second set condition. The loudness of the sound caused by the power supply parameter that meets the second set condition is lower than the loudness of the sound caused by the power supply parameter that does not meet the second set condition.
[0009] In one possible implementation, the first presupposition condition is determined to be satisfied if at least one of the following is met:
[0010] The difference between the first required power supply parameter and the current output power supply parameter exceeds the difference threshold;
[0011] The power supply parameters corresponding to the first required power supply parameters are within a set range, and the loudness of the sound caused by the power supply parameters within the set range is greater than the set value.
[0012] In one possible implementation, the control of the first processor to adjust the first power demand parameter to a second power demand parameter includes:
[0013] A first instruction is sent to the first controller, causing the first controller to send a first signal to the first processor based on the first instruction, thereby causing the first processor to adjust the first required power supply parameters based on the first signal.
[0014] In one possible implementation, the first controller sending a first signal to the first processor based on the first instruction includes:
[0015] The first controller sends a system control interrupt signal to the first processor based on the first instruction, so that the first processor in the first state enters the second state, and the power consumption of the first processor in the first state is lower than the power consumption in the second state.
[0016] In one possible implementation, the first controller sending a first signal to the first processor based on the first instruction includes:
[0017] The first controller sends a second instruction to the basic input / output system based on the first instruction, causing the basic input / output system to send the first instruction to the first processor based on the second instruction, so that the first processor in the first state enters the second state, and the power consumption of the first processor in the first state is lower than the power consumption in the second state.
[0018] In one possible implementation, after controlling the first processor to adjust the first power demand parameter to the second power demand parameter, the method further includes:
[0019] Configure minimum electrical requirements parameters, which are higher than the electrical requirements parameters corresponding to the first processor in its lowest power consumption state.
[0020] One possible implementation also includes:
[0021] The configuration logic controls the restoration of the default power supply parameters after a set time period following the adjustment of the first power supply parameter to the second power supply parameter by the first processor.
[0022] In one possible implementation, determining the event frequency of voltage jump events that satisfy a first set condition based on the first required power supply parameter in the received power supply adjustment command includes:
[0023] Based on the first power supply demand parameters, determine the number of voltage jump events that meet the first set conditions within a set time window;
[0024] The event frequency of voltage jump events that meet the set conditions is determined based on the length of the time window and the number of times.
[0025] The length of the time window and the frequency threshold are configurable.
[0026] A second aspect of this application provides a control device, comprising:
[0027] The instruction acquisition module is used to acquire a power supply adjustment instruction sent by the first processor, wherein the power supply adjustment instruction contains a first power supply requirement parameter of the first processor;
[0028] A voltage jump determination module is used to determine the frequency of voltage jumps that meet a first set condition based on the first required power supply parameter in the received power supply adjustment instruction. The frequency represents the number of voltage jumps that meet the first set condition within a set time period.
[0029] The control module is configured to control the first processor to adjust the first required power supply parameter to a second required power supply parameter when the frequency reaches a frequency threshold. The second required power supply parameter causes the power supply parameter of the power controller to meet a second set condition. The loudness of the sound caused by the power supply parameter that meets the second set condition is lower than the loudness of the sound caused by the power supply parameter that does not meet the second set condition.
[0030] A third aspect of this application provides an electronic device, including at least one processor and a memory connected to the processor, wherein:
[0031] The memory is used to store computer programs;
[0032] The processor is used to execute the computer program to enable the electronic device to perform:
[0033] A power supply adjustment command sent by a first processor is received, the power supply adjustment command containing a first power supply requirement parameter of the first processor; based on the first power supply requirement parameter in the received power supply adjustment command, the frequency of voltage jumps that meet a first set condition is determined, the frequency representing the number of voltage jumps that meet the first set condition within a set time period; if the frequency reaches a frequency threshold, the first processor is controlled to adjust the first power supply requirement parameter to a second power supply requirement parameter, the second power supply requirement parameter causing the power supply parameter of the power controller to meet a second set condition, and the loudness of the sound caused by the power supply parameter that meets the second set condition is lower than the loudness of the sound caused by the power supply parameter that does not meet the second set condition. Attached Figure Description
[0034] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0035] Figure 1 This is a schematic diagram of the implementation architecture of the control scheme disclosed in the embodiments of this application;
[0036] Figure 2 This is a flowchart of a control method disclosed in an embodiment of this application;
[0037] Figure 3 This is a schematic diagram of the structure of a control device disclosed in an embodiment of this application;
[0038] Figure 4 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of this application. Detailed Implementation
[0039] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0040] The embodiments of this application can be applied to electronic devices. This application does not limit the product form of the electronic device, which may include but is not limited to laptops, tablets, personal computers (PCs), netbooks, etc., and can be selected according to application requirements.
[0041] To facilitate a better understanding of the technical solution of this application, the implementation architecture of the solution will be introduced first. Figure 1 This is a schematic diagram of the implementation architecture of the control scheme disclosed in the embodiments of this application. Figure 1 The system includes a voltage regulation module (VRM, hereinafter referred to as the power controller), an embedded controller (EC, hereinafter referred to as the first controller), and a processor (hereinafter referred to as the first processor). The VRM and the processor can communicate with each other via SVID (Serial Voltage Identification), such as the processor sending dynamic voltage adjustment commands to the VRM based on SVID. In addition, the VRM and the processor are respectively connected to the EC for communication.
[0042] This application's solution applies to a control logic entity in an electronic device. This logic entity can be a standalone hardware monitoring chip, a logic unit integrated in a power controller, a firmware module in an embedded controller EC, etc., and this application is not fixedly limited to it. For ease of understanding, the following embodiments will be described using the example of the solution execution entity being located on the power controller side.
[0043] Figure 2 This is a flowchart illustrating a control method disclosed in an embodiment of this application. See also... Figure 2 As shown, the control method may include:
[0044] Step 201: Obtain a power supply adjustment instruction sent by the first processor, wherein the power supply adjustment instruction contains the first power supply requirement parameters of the first processor.
[0045] The first processor can be a central processing unit (CPU) or a graphics processing unit (GPU) in an electronic device. The power supply adjustment command is a command from the processor to request the power controller to output a specific voltage based on its load status. The command contains the first power supply parameters currently required by the processor, which may include electrical parameters such as target voltage, target current, and target phase. The execution entity can obtain the power supply adjustment command by monitoring the communication bus (such as the SVID bus) between the processor and the VRM controller.
[0046] Step 202: Determine the frequency of voltage jumps that meet the first set condition based on the first required power supply parameter in the received power supply adjustment instruction, wherein the frequency represents the number of voltage jumps that meet the first set condition within a set time period.
[0047] In implementation, continuous power supply adjustment commands can be parsed and the difference between the voltage values requested by adjacent commands (i.e., the voltage jump step size) can be calculated. Not all voltage jumps are prone to causing strong noise, so conditions need to be set for filtering, namely the "first setting condition".
[0048] A voltage transition that satisfies the first preset condition can be a voltage transition where the target voltage (the supply voltage output by the power controller to the processor) is within a set range. Voltages within the set range are prone to generating noise that can be perceived by the human ear. As those skilled in the art know, when multiple voltage transitions that satisfy the first preset condition occur within a short period of time, audible noise will be generated. Therefore, it is necessary to determine the frequency of voltage transitions that satisfy the first preset condition based on the first required power supply parameters.
[0049] Once a voltage transition that meets the first set condition is identified, it is recorded as a valid event. Then, within a set time period, the number of such valid events occurring is counted. The "frequency" can be expressed directly as the number of occurrences or calculated as "number of occurrences per unit time". This frequency reflects how frequently the processor issues "high-risk" voltage requests within a specific time period.
[0050] Step 203: If the frequency reaches the frequency threshold, control the first processor to adjust the first required power supply parameter to the second required power supply parameter. The second required power supply parameter makes the power supply parameter of the power controller meet the second set condition. The loudness of the sound caused by the power supply parameter that meets the second set condition is lower than the loudness of the sound caused by the power supply parameter that does not meet the second set condition.
[0051] In implementation, a frequency threshold, such as n, needs to be pre-configured. When the number of voltage transitions meeting the first set condition within a set time period reaches or exceeds n, it is determined that the current processor is in a mode that may continuously generate high-intensity electrical noise. At this time, the execution entity will trigger an intervention mechanism to control the first processor to adjust the first required power supply parameter to the second required power supply parameter. The sound loudness caused by the power supply generated by the VRM driven by the second required power supply parameter is lower than the sound loudness caused by the original "first required power supply parameter".
[0052] For example, in a high-performance gaming laptop, the CPU (the primary processor) experiences complex and variable loads while playing games, frequently switching between light loads (such as the game menu interface) and heavy loads (such as complex combat scenarios). This results in a very high frequency of DVIV (power adjustment) commands sent to the power controller, with voltage request values rapidly changing between 0.75V and 1.4V. This scenario is highly prone to generating electrical noise. This application's solution monitors and analyzes each DVIV command issued by the CPU, extracting the primary power demand parameter (the processor's target voltage value). When the number of voltage jumps meeting a first set condition within a set time period, based on this primary power demand parameter, reaches a frequency threshold (e.g., 5), the primary processor can be controlled to change its power demand parameter.
[0053] The control method described in this embodiment can monitor CPU voltage behavior patterns that may cause noise in real time during the operation of electronic devices, and actively intervene before the noise is generated or becomes significant. It dynamically controls the first processor to adjust the target voltage value to a voltage range that will not generate noise, thereby achieving active noise reduction or suppression during operation.
[0054] In one implementation, the first condition is that the difference between the first required power supply parameter and the current actual output power supply parameter of the VRM (or the previously confirmed required power supply parameter) exceeds a preset "difference threshold". This threshold is used to filter out minor voltage adjustments and focus on larger jumps that may cause significant current changes and vibrations.
[0055] In another implementation, the first setting condition is that the voltage value corresponding to the first required power supply parameter is within a "set range". This range can be determined experimentally, for example, near certain specific voltage points (such as 0.85V, 1.05V), where loud noise is easily generated due to coupling with the mechanical resonant frequency of the inductor / capacitor. Voltage requests within this range are considered to have a higher noise risk.
[0056] The two conditions mentioned above can be used alone or in combination to further improve the accuracy of the judgment.
[0057] This embodiment describes different implementations of the first set condition. Those skilled in the art can implement the technical solution of this application based on at least one of the above implementations. Implementations that include both of the above conditions can more comprehensively cover different types of noise triggering scenarios. For example, a large jump from 1.2V to 0.5V may cause noise due to a large current change rate (captured by the condition corresponding to the first implementation); while a slight fluctuation around 0.84V may cause noise due to resonance (captured by the condition corresponding to the second implementation). Using both of the above conditions simultaneously improves the accuracy and coverage of noise pattern recognition.
[0058] In one implementation, the process of controlling the first processor to adjust the first required power supply parameter to the second required power supply parameter may include: sending a first instruction to a first controller, causing the first controller to send a first signal to the first processor based on the first instruction, so that the first processor adjusts the first required power supply parameter based on the first signal.
[0059] The first instruction can be a trigger signal, which can be sent to the embedded controller, i.e., the first controller, through the inter-chip communication bus. After receiving the first instruction, the first controller will execute a preset response action. This action can be to send a first signal to the first processor. The purpose of the first signal is to enable the first processor to actively change the first required power supply parameter in the power supply adjustment instruction that it is about to issue to another better second required power supply parameter that is less likely to generate noise.
[0060] The first controller is a standard management controller in a computer system. It transmits intervention signals (the first signal) through its existing communication channel with the first processor. It does not require the addition of new physical interfaces and does not affect the original logic of the first controller, resulting in low implementation costs.
[0061] In one implementation, the first controller sending a first signal to the first processor based on the first instruction may include: the first controller sending a system control interrupt signal to the first processor based on the first instruction, so that the first processor in the first state enters a second state, wherein the power consumption of the first processor in the first state is lower than the power consumption in the second state.
[0062] For example, in a laptop's energy-saving scenario, the CPU might be in a sleep state (first state, with relatively low power consumption). In this case, if background tasks cause frequent, small fluctuations in CPU voltage, noise may occur at specific voltage points. Upon receiving the first instruction, the first controller can perform the following operation: send a System Control Interrupt (SCI) signal to the CPU through the platform environment control interface, such as the interface defined by the ACPI (Advanced Configuration and Power Interface) specification. This SCI signal is a high-privilege system event, functioning similarly to a wake-up event, such as when an electronic device is awakened from sleep mode by user mouse or keyboard input.
[0063] When a CPU in a low-power state receives this SCI signal, it will be forcibly woken up and enter a higher-power, faster-responding active state (C0 or C1 state, i.e., the second state). After the CPU is woken up and enters this more active state, the power demand parameters it sends to the power controller may have already avoided noise points or noise ranges.
[0064] Furthermore, when the CPU is in a low-power state, such as hibernation, its normal DVID (Dynamic VID, dynamic voltage identification, adjustment of the required power supply voltage) response may be slow. That is, the process of the power controller adjusting the power supply voltage in response to the second required power supply parameter will be relatively slow. After receiving the SCI signal, the CPU is woken up and enters a more power-consuming but faster-responding active state. After the CPU is woken up and enters this more active state, the EC or BIOS can more easily influence or adjust the CPU's subsequent DVID request behavior through other mechanisms.
[0065] This embodiment provides a mechanism for effective noise intervention even when the first processor is in a low-power state. Traditional solutions may fail to respond promptly when the processor is in deep sleep, while the SCI interrupt is a hardware mechanism that can reliably interrupt the processor's sleep state. Furthermore, SCI is a standard interrupt defined by the ACPI standard for power management and system events. Utilizing SCI for wake-up and intervention complies with existing system software and hardware specifications, resulting in good compatibility.
[0066] In one implementation, the first controller sending a first signal to the first processor based on the first instruction may include: the first controller sending a second instruction to the basic input / output system based on the first instruction, causing the basic input / output system to send the first instruction to the first processor based on the second instruction, so that the first processor in the first state enters a second state, wherein the power consumption of the first processor in the first state is lower than the power consumption in the second state.
[0067] In some system architectures, the first controller does not directly interrupt the first processor via SCI, or requires more complex coordination. This embodiment provides an alternative implementation path.
[0068] Upon receiving the "first instruction" from the control entity, the first controller does not directly interrupt the first processor. Instead, it generates a "second instruction." This second instruction is a specific event notification, such as a Q-Event (Query Event, an event type used for communication between ACPI and BIOS). The first controller sends this Q-Event to the system's BIOS runtime service (such as the ACPI runtime module) via the system management bus or other firmware interface.
[0069] Upon receiving this Q-Event, the BIOS firmware code parses its meaning and determines that it needs to intervene in the first processor's voltage request to reduce noise. Therefore, the BIOS can directly send a second instruction to the first processor through the driver interface. This instruction from the BIOS will cause the first processor to adjust its own DVID behavior, for example, temporarily modifying a parameter in its internal voltage request algorithm, so that its subsequent first power demand parameters automatically change to the optimized second power demand parameters.
[0070] Furthermore, the BIOS can be pre-configured with various noise reduction strategies, such as different voltage offsets or adjustment schemes for different noise frequencies. When the first controller reports a noise event to the BIOS based on the first instruction, the BIOS can select the optimal strategy to execute based on the current system status (temperature, load, etc.).
[0071] The BIOS has low-level control over the primary processor, allowing it to access and modify more registers that affect the primary processor's power management behavior, such as the MSR. By informing the BIOS through the primary controller EC, and then having the BIOS intervene in the primary processor's DVID behavior, more complex and refined DVID behavior adjustment strategies can be implemented.
[0072] In one implementation, after controlling the first processor to adjust the first required power supply parameter to the second required power supply parameter, it may further include: configuring a minimum required electrical parameter, wherein the minimum required electrical parameter is higher than the required electrical parameter corresponding to the first processor in the lowest power consumption state.
[0073] In some extreme scenarios, the voltage point or range most prone to noise generation happens to be the extremely low voltage (e.g., 0.6V) requested by the CPU in a deep power-saving state (e.g., C10). In this embodiment, a minimum required electrical parameter (e.g., 0.65V) can be configured, corresponding to the lower voltage limit allowed by the CPU in its lowest power performance state or deepest sleep state. The system increases this lower limit from the original 0.6V to 0.65V or slightly higher (e.g., 0.66V). This "minimum required electrical parameter" is higher than the original required electrical parameter corresponding to the CPU in its lowest power state. Thus, for a subsequent period of time, the CPU will not request a voltage lower than 0.66V in any state, thereby fundamentally avoiding re-entering the noise-sensitive point of 0.6V.
[0074] It should be noted that raising the lower voltage limit is done within a safe, proven range (for example, 0.66V is still far below the CPU's safe operating voltage limit), which eliminates noise while ensuring that the CPU can still operate stably in its deepest power-saving state.
[0075] This implementation provides the system with a period of "immunity" by raising the lower voltage limit, preventing noise patterns from recurring in a short period of time, resulting in a more sustained and stable noise reduction effect.
[0076] In one implementation, the control method may further include: after a set time has elapsed since the first processor adjusts the first demand power supply parameter to the second demand power supply parameter, controlling the configuration logic to restore the default demand power supply parameter.
[0077] In order to avoid the noise suppression strategy from affecting the dynamic voltage and frequency regulation characteristics of the first processor for a long time, this embodiment configures the noise suppression strategy with a time limit, controlling the noise suppression strategy to only work within the configured set time period.
[0078] For example, after raising the minimum voltage limit, the system can start a timer, say for 100 milliseconds. During these 100 milliseconds, the CPU's voltage request lower limit is locked at a higher 0.66V. After the 100 milliseconds expire, the timer expires, and the system automatically reverts the previous configuration that raised the minimum voltage limit, restoring the CPU's minimum electrical requirements to the default logic determined by the BIOS's original settings and the CPU specifications (e.g., re-allowing requests as low as 0.6V). Simultaneously, the noise monitoring logic also reverts to its initial state and restarts monitoring.
[0079] This embodiment avoids the performance loss or temperature rise that may result from long-term voltage range limitation, making the impact of this noise reduction scheme on the overall system operation temporary and controllable.
[0080] In one implementation, determining the event frequency of voltage jump events that satisfy a first set condition based on the first demand power supply parameter in the received power supply adjustment instruction includes: determining the number of voltage jump events that satisfy the first set condition within a set time window based on the first demand power supply parameter; and determining the event frequency of voltage jump events that satisfy the set condition based on the length of the time window and the number of events; wherein the length of the time window and the frequency threshold are configurable.
[0081] Specifically, the implementation entity can internally maintain a configurable array or buffer to record the timestamps of all voltage transition events that meet the "first set condition" within a recent period; relevant administrators can configure or adjust the monitoring time window length T through the BIOS settings interface. For example, options include 5ms, 10ms, 20ms, and 50ms, and this application does not impose a fixed limitation on this.
[0082] The control logic of the scheme may include: recording the current time for each valid transition event. Every very short calculation cycle (e.g., 1 ms), it checks the number of events recorded between the current time t_now and the time point t_now - T. This number is the "number" of valid transitions that occurred within the most recent time window T.
[0083] The frequency threshold n for triggering intervention is also configurable, for example, it can be 3, 5, 8, or 10 times. The threshold n and the time window T together define a trigger line for "jump density". For example, T=10ms and n=5 means that an average of more than 500 large jumps per second will trigger the intervention, which corresponds to extremely high load transient scenarios; while T=50ms and n=3 corresponds to a relatively mild but continuous jump mode.
[0084] In applications, frequency can be directly expressed as "number of events" (i.e., n events occurring within window T), or it can be calculated as n / T (e.g., 5 times / 10ms = 500 times / second). When the number of events counted is greater than or equal to the set n, it is determined that "the frequency has reached the frequency threshold".
[0085] The solution allows for the configuration of T and n, enabling the same hardware design to adapt to various products, from thin and light laptops with limited performance to high-performance gaming laptops, and from mini PCs to workstations. For devices with good heat dissipation and large inductance margins, a more lenient threshold can be set; for compact and quiet devices, a more sensitive threshold can be set, allowing for different levels of noise reduction strategies.
[0086] For the foregoing method embodiments, in order to simplify the description, they are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, because according to this application, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0087] The methods described in the above-disclosed embodiments of this application are detailed in terms of the methods. The methods of this application can be implemented by various forms of apparatus. Therefore, this application also discloses an apparatus. Specific embodiments are given below for detailed description.
[0088] Figure 3 This is a schematic diagram of the structure of a control device disclosed in an embodiment of this application. See also... Figure 3 As shown, the control device 30 may include:
[0089] The instruction acquisition module 301 is used to acquire the power supply adjustment instruction sent by the first processor, wherein the power supply adjustment instruction contains the first power supply requirement parameter of the first processor.
[0090] In implementation, the instruction acquisition module includes an SVID bus decoder, physically connected to the CPU's SVID bus. It monitors and decodes instruction packets on the bus in real time. When a DVID write command (power adjustment command) is identified, it extracts the relevant fields to determine the first required power supply parameters.
[0091] The voltage jump determination module 302 is used to determine the frequency of voltage jumps that meet the first set condition based on the first required power supply parameter in the received power supply adjustment instruction. The frequency represents the number of voltage jumps that meet the first set condition within a set time period.
[0092] The transition determination module can receive instructions to obtain the first required power supply parameters sent by the module. Internally, it may include a subtractor to calculate the difference ΔV between the continuous voltage requests, a comparator to compare ΔV with a preset "difference threshold," and may also include a timer and a counter. Whenever the comparator outputs "true" (i.e., the first set condition is met), the counter increments by 1. The timer resets the counter at a configurable period T and outputs the count value (frequency information). Simultaneously, this module can also compare the count value with a preset frequency threshold n.
[0093] The control module 303 is used to control the first processor to adjust the first required power supply parameter to a second required power supply parameter when the frequency reaches a frequency threshold. The second required power supply parameter makes the power supply parameter of the power controller meet a second set condition. The loudness of the sound caused by the power supply parameter that meets the second set condition is lower than the loudness of the sound caused by the power supply parameter that does not meet the second set condition.
[0094] If the frequency determination module determines that the frequency has reached the frequency threshold, the control module can generate a control signal corresponding to the first instruction mentioned above. This control signal is sent to the first controller. The control module may also have a small strategy table, which quickly looks up a recommended second required power supply parameter based on the voltage value at the time of triggering, and sends this parameter value to the first controller for reference when making adjustments.
[0095] The control device described in this embodiment can monitor CPU voltage behavior patterns that may cause noise in real time during the operation of electronic devices, and actively intervene before the noise is generated or becomes significant. It dynamically controls the first processor to adjust the target voltage value to a voltage range that will not generate noise, thereby achieving active noise reduction or suppression during operation.
[0096] In one implementation, a first set condition is determined to be satisfied if at least one of the following conditions is met: the difference between the first required power supply parameter and the currently output power supply parameter exceeds a difference threshold; the power supply parameter corresponding to the first required power supply parameter is within a set range, and the loudness of the sound caused by the power supply parameter within the set range is greater than a set value.
[0097] In one implementation, the control module can specifically be used to: send a first instruction to a first controller, so that the first controller sends a first signal to the first processor based on the first instruction, so that the first processor adjusts the first required power supply parameters based on the first signal.
[0098] In one implementation, the first controller sends a first signal to the first processor based on the first instruction, including: the first controller sends a system control interrupt signal to the first processor based on the first instruction, so that the first processor in the first state enters a second state, wherein the power consumption of the first processor in the first state is lower than the power consumption in the second state.
[0099] In one implementation, the first controller sends a first signal to the first processor based on the first instruction, including: the first controller sends a second instruction to the basic input / output system based on the first instruction, causing the basic input / output system to send the first instruction to the first processor based on the second instruction, so that the first processor in the first state enters a second state, wherein the power consumption of the first processor in the first state is lower than the power consumption in the second state.
[0100] In one implementation, the apparatus may further include: a parameter configuration module for configuring minimum required electrical parameters, said minimum required electrical parameters being higher than the required electrical parameters corresponding to the first processor in its lowest power consumption state.
[0101] In one implementation, the device may further include: a power supply control module, configured to control the configuration logic for restoring the default power supply parameters after a set time following the control of the first processor to adjust the first power supply parameter to the second power supply parameter.
[0102] In one implementation, the voltage jump determination module can be used to: determine the number of voltage jump events that meet the first set condition within a set time window based on the first required power supply parameters; and determine the event frequency of the voltage jump events that meet the set condition based on the length of the time window and the number of events; wherein the length of the time window and the frequency threshold are configurable.
[0103] Any of the control devices described in the above embodiments includes a processor and a memory. The instruction acquisition module, transition determination module, control module, parameter configuration module, power supply control module, etc. in the above embodiments are all stored as program modules in the memory, and the processor executes the above program modules stored in the memory to realize the corresponding functions.
[0104] The processor contains a kernel, which retrieves the corresponding program modules from memory. One or more kernels can be configured, and the processing of accessed data can be achieved by adjusting kernel parameters.
[0105] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0106] In an exemplary embodiment, a computer-readable storage medium is also provided, which can be directly loaded into the internal memory of a computer, and contains software code. After being loaded and executed by the computer, the computer program can implement the steps shown in any of the embodiments of the control method described above.
[0107] In an exemplary embodiment, a computer program product is also provided, which can be directly loaded into the internal memory of a computer and contains software code. After being loaded and executed by the computer, the computer program can implement the steps shown in any embodiment of the control method described above.
[0108] Furthermore, embodiments of this application provide an electronic device. Figure 4 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of this application. See also... Figure 4 As shown, the electronic device 40 includes at least one processor 401, at least one memory 402 connected to the processor, and a bus 403; wherein the processor and the memory communicate with each other through the bus; the processor is used to call program instructions in the memory to execute the control method described above.
[0109] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.
[0110] It should also be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0111] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0112] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A control method, the method comprising: Receive a power supply adjustment instruction sent by a first processor, wherein the power supply adjustment instruction contains a first power supply requirement parameter of the first processor; Based on the first required power supply parameter in the received power supply adjustment instruction, the frequency of voltage jumps that meet the first set condition is determined, and the frequency represents the number of voltage jumps that meet the first set condition within a set time period. If the frequency reaches a frequency threshold, the first processor is controlled to adjust the first required power supply parameter to a second required power supply parameter. The second required power supply parameter makes the power supply parameter of the power controller meet a second set condition. The loudness of the sound caused by the power supply parameter that meets the second set condition is lower than the loudness of the sound caused by the power supply parameter that does not meet the second set condition.
2. The control method according to claim 1, wherein at least one of the following is satisfied to determine that the first set condition is met: The difference between the first required power supply parameter and the current output power supply parameter exceeds the difference threshold; The power supply parameters corresponding to the first required power supply parameters are within a set range, and the loudness of the sound caused by the power supply parameters within the set range is greater than the set value.
3. The control method according to claim 1, wherein controlling the first processor to adjust the first power supply demand parameter to the second power supply demand parameter includes: A first instruction is sent to the first controller, causing the first controller to send a first signal to the first processor based on the first instruction, thereby causing the first processor to adjust the first required power supply parameters based on the first signal.
4. The control method according to claim 3, wherein the implementation of the first controller sending a first signal to the first processor based on the first instruction includes: The first controller sends a system control interrupt signal to the first processor based on the first instruction, so that the first processor in the first state enters the second state, and the power consumption of the first processor in the first state is lower than the power consumption in the second state.
5. The control method according to claim 3, wherein the implementation of the first controller sending a first signal to the first processor based on the first instruction includes: The first controller sends a second instruction to the basic input / output system based on the first instruction, causing the basic input / output system to send the first instruction to the first processor based on the second instruction, so that the first processor in the first state enters the second state, and the power consumption of the first processor in the first state is lower than the power consumption in the second state.
6. The control method according to claim 1, after controlling the first processor to adjust the first power demand parameter to the second power demand parameter, further includes: Configure minimum electrical requirements parameters, which are higher than the electrical requirements parameters corresponding to the first processor in its lowest power consumption state.
7. The control method according to claim 1, further comprising: The configuration logic controls the restoration of the default power supply parameters after a set time period following the adjustment of the first power supply parameter to the second power supply parameter by the first processor.
8. The control method according to claim 1, comprising determining the event frequency of voltage jump events satisfying a first set condition based on the first required power supply parameter in the received power supply adjustment command, including: Based on the first power supply demand parameters, determine the number of voltage jump events that meet the first set conditions within a set time window; The event frequency of voltage jump events that meet the set conditions is determined based on the length of the time window and the number of times. The length of the time window and the frequency threshold are configurable.
9. A control device, comprising: The instruction acquisition module is used to acquire a power supply adjustment instruction sent by the first processor, wherein the power supply adjustment instruction contains a first power supply requirement parameter of the first processor; A voltage jump determination module is used to determine the frequency of voltage jumps that meet a first set condition based on the first required power supply parameter in the received power supply adjustment instruction. The frequency represents the number of voltage jumps that meet the first set condition within a set time period. The control module is configured to control the first processor to adjust the first required power supply parameter to a second required power supply parameter when the frequency reaches a frequency threshold. The second required power supply parameter causes the power supply parameter of the power controller to meet a second set condition. The loudness of the sound caused by the power supply parameter that meets the second set condition is lower than the loudness of the sound caused by the power supply parameter that does not meet the second set condition.
10. An electronic device comprising at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program to enable the electronic device to perform: A power supply adjustment command sent by a first processor is received, the power supply adjustment command containing a first power supply requirement parameter of the first processor; based on the first power supply requirement parameter in the received power supply adjustment command, the frequency of voltage jumps that meet a first set condition is determined, the frequency representing the number of voltage jumps that meet the first set condition within a set time period; if the frequency reaches a frequency threshold, the first processor is controlled to adjust the first power supply requirement parameter to a second power supply requirement parameter, the second power supply requirement parameter causing the power supply parameter of the power controller to meet a second set condition, and the loudness of the sound caused by the power supply parameter that meets the second set condition is lower than the loudness of the sound caused by the power supply parameter that does not meet the second set condition.