A chip frequency dynamic adjustment method and system for abnormal temperature processing

Through the hardware solution, the temperature sensor and comparator are used to work together with the PLL controller to dynamically adjust the chip frequency, solving the problems of fast response and cooling delay in chip temperature abnormality processing, achieving rapid cooling and performance balance, and preventing voltage overshoot. .

CN114489235BActive Publication Date: 2024-09-27NANJING ILUVATAR COREX TECH CO LTD (DBA ILUVATAR COREX INC NANJING)
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202210052416.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-18
Publication Date
2024-09-27
Estimated Expiration
2042-01-18

AI Technical Summary

Technical Problem

The existing technology cannot respond quickly when the chip temperature is abnormal, causing the temperature to continue to rise, which may result in the loss of the Thermaltrip and the site. The existing software and firmware processing solutions have delays and cannot cool down immediately.

Method used

A hardware solution is adopted to collect data through multiple sets of temperature sensors. Alert and Prochot temperature comparators work together with the PLL controller to dynamically adjust the chip frequency to achieve rapid cooling protection. A two-level frequency reduction and frequency increase mechanism is used to avoid voltage overshoot.

Benefits of technology

It achieves rapid response without upper-layer software or firmware intervention when the temperature is abnormal, rapid cooling, flexible control, minimizing the impact on chip performance, and effectively preventing voltage overshoot.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114489235B
    Figure CN114489235B
Patent Text Reader

Abstract

The present invention discloses a chip frequency dynamic adjustment method and system for abnormal temperature processing, and proposes a hardware solution for abnormal temperature processing. The hardware system mainly includes a plurality of temperature sensors, a temperature sensor controller, an Alert temperature comparator, a Prochot temperature comparator and a PLL controller with a state machine. When a temperature abnormality occurs, no upper-layer software intervention or underlying firmware intervention is required, and a rapid response can be made without waiting for interruption or stopping tasks, and the temperature can be reduced rapidly; by presetting two-level weights, the control is flexible and the impact on chip performance is minimized while ensuring effective temperature reduction; the two-level frequency reduction can effectively prevent the positive overshoot of the chip voltage, and the two-level frequency increase can also effectively prevent the negative overshoot of the voltage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of abnormal chip temperature control, and in particular relates to a chip frequency dynamic adjustment method and system for abnormal temperature processing. Background Art

[0002] The temperature control of PCIe boards is generally divided into active cooling and passive cooling. Active cooling is the board with a built-in fan. The fan is controlled by the PWM pulse width modulation wave generated by the chip to control the speed. The duty cycle of the pulse width modulation wave is related to the temperature to achieve a cooling effect. Passive cooling is that the PCIe board itself does not have a fan. The fan is located in the server system and is uniformly controlled by the main control CPU. There are usually multiple boards in the server, such as 8 boards. The main control CPU will read the chip temperature through the out-of-band BMC system, and then uniformly adjust the server's fan system to ensure that the chip works within the normal operating temperature.

[0003] The above are all normal temperature control, and the frequency and load are within the normal range. Once the temperature exceeds the normal range due to overclocking or overload, it enters an abnormal state. Air cooling or water cooling used for active or passive heat dissipation cannot handle this situation. Common exception handling, one way is to hand it over to the upper-level software. When receiving a temperature abnormality interrupt, it will stop issuing tasks to achieve the effect of reducing the load, but it takes time to reduce the load. Although the software can control not to issue tasks, the issued tasks are still running, and the load is not immediately reduced, which will still cause temperature abnormalities or abnormal temperature continues to rise. Another way is to hand it over to the system control unit firmware. When receiving a temperature abnormality interrupt, or through periodic temperature detection, if the temperature exceeds the Alert threshold (Talert) or Prochot threshold (Tprochot), a corresponding processing strategy is adopted. The frequency can be controlled to reduce the temperature. However, this is a software solution. It takes a period of time from receiving an interrupt or periodic detection to issuing a command intervention. During this period of time, the temperature continues to rise, and there is a risk of overheating, which may cause Thermaltrip, direct power failure, and loss of the scene. Summary of the invention

[0004] In view of the deficiencies in the prior art, the present invention proposes a chip frequency dynamic adjustment method and system for abnormal temperature processing, implements a hardware solution, provides a fast protection mechanism when the temperature is abnormal, and balances the chip frequency performance when the temperature is abnormal while ensuring the chip temperature safety.

[0005] To achieve the above object, the present invention adopts the following technical solutions:

[0006] A chip frequency dynamic adjustment method for abnormal temperature processing comprises the following steps:

[0007] Step 1: multiple groups of temperature sensors are set at multiple hot spots of the chip, the temperature information of each hot spot is sampled regularly, and the temperature information is converted into a digital representation of the temperature by ADC and transmitted to the temperature sensor controller;

[0008] Step 2: The temperature sensor controller obtains the maximum value T of each temperature digital representation received at the same time through hardware statistics. max and transmit the maximum value to the Alert temperature comparator, Prochot temperature comparator and PLL controller respectively;

[0009] Step 3: Prochot Temperature Comparator to T max With the set Prochot threshold T prochot The comparison is made and the comparison result is sent to the PLL controller. At the same time, the Alert temperature comparator sends T max The set Alert threshold T alert Performing comparison and transmitting the comparison result to the PLL controller;

[0010] Step 4: The PLL controller calculates the operating frequency of the chip based on the comparison results of the Alert temperature comparator and the Prochot temperature comparator, and outputs the corresponding division coefficient accordingly. The division coefficient will control the peripheral circuit of the PLL controller to perform glitch-free clock switching to adjust the operating frequency of the chip.

[0011] Further, in step 4,

[0012] If T max ≤T prochot And T max ≤T alert , the current frequency is kept unchanged and no frequency adjustment is performed;

[0013] If T max ≤T prochot And T max >T alert , then enter the Alert temperature anomaly processing adjustment state machine, according to the preset Alert weight W alert Adjust the frequency and maintain, F out =W alert *F ori , F out is the operating frequency of the chip, F ori is the chip operating frequency before adjustment; then continue to obtain T at the next moment max , if the next moment T max ≥T alert –T a_s_margin , still maintain F out =W alert*F ori , T a_s_margin Alert temperature tolerance, otherwise restore frequency and maintain F out =F ori ;

[0014] If T max >T prochot , then enter the Prochot temperature anomaly processing adjustment state machine, according to the preset Prochot weight W prochot Adjust the frequency and maintain, F out =W prochot *F ori ; Then continue to obtain T at the next moment max , if the next moment T max ≥T prochot –T p_s_margin , still maintain F out =W prochot *F ori , T p_s_margin is the Prochot temperature tolerance, otherwise it will first return to the Alert temperature anomaly processing adjustment state machine output frequency F out =W alert *F ori , and then enter the Alert temperature anomaly processing adjustment state machine.

[0015] The frequency regulation system based on the chip frequency dynamic regulation method comprises a plurality of temperature sensors, a temperature sensor controller, an Alert temperature comparator, a Prochot temperature comparator and a PLL controller with a state machine; the plurality of temperature sensors are arranged in a plurality of hot spots of the chip, and are used to regularly collect temperature information of each hot spot and upload it to the temperature sensor controller; the temperature sensor controller is used to set the sampling time interval of the temperature information, and obtain the maximum temperature at the same time through hardware statistics, and then upload the maximum temperature to the Alert temperature comparator, the Prochot temperature comparator and the PLL controller at the same time; the PLL controller is used to calculate the operating frequency that the chip should be in and output a corresponding clock signal to adjust the operating frequency of the chip.

[0016] Compared with the prior art, the present invention has the following technical effects: a hardware solution for abnormal temperature processing is proposed, and when an Alert occurs, no upper-level software intervention or underlying firmware intervention is required, and a quick response can be made without waiting for interruptions or stopping tasks, and the temperature can be reduced rapidly; two-level weights are preset, and the control is flexible while ensuring effective temperature reduction, minimizing the impact on chip performance; two-level frequency reduction can effectively prevent positive overshoot of chip voltage, and two-level frequency increase can also effectively prevent negative overshoot of voltage. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A schematic diagram of the hardware system for abnormal temperature processing of the present invention;

[0018] Figure 2 The figure is a flow chart of the chip frequency dynamic adjustment method of the present invention. DETAILED DESCRIPTION

[0019] The present invention will now be described in further detail with reference to the accompanying drawings.

[0020] like Figure 1 As shown, a dynamic frequency adjustment hardware system for abnormal temperature processing includes multiple groups of temperature sensors (T-sensors), a temperature sensor controller (T-sensor controller), an Alert temperature comparator (Talertcomparator), a Prochot temperature comparator (Tprochot comparator) and a PLL controller (PLLcontroller) with a state machine.

[0021] Multiple groups of temperature sensors are distributed in multiple hot spots of the chip to regularly sample hot spot temperature information in real time and obtain digital representations through ADC conversion. These digital representations will be sent to the temperature sensor controller. The temperature sensor controller is used to convert the regularly collected temperature sensor information and obtain the maximum value T through hardware statistics. max The maximum value will be input to the two temperature comparators Alert and Prochot and the PLL controller.

[0022] The Alert temperature comparator is used to compare the T max and the set Alert threshold temperature (T alert ), the comparison status will be given to the subsequent PLL controller; the Prochot temperature comparator is used to compare the T from the temperature sensor controller max and the set Prochot threshold temperature (T prochot ), the comparison status will also be given to the subsequent PLL controller at the same time.

[0023] The PLL controller determines the frequency division coefficient of the PLL by controlling the state machine according to the output status of the previous Alert temperature comparator and the Prochot temperature comparator. The frequency division coefficient will directly control the PLL peripheral circuit to perform glitch-free clock switching, thereby adjusting the operating frequency of the chip. The frequency division coefficient output by the PLL controller is completely locked according to the hardware of the Alert temperature comparator and the Prochot temperature comparator, and can realize real-time frequency feedback for temperature changes. The frequency division coefficient output by the PLL controller can be based on the preset weight W alert and W prochotFinely control the output frequency to minimize damage to chip performance while ensuring temperature safety.

[0024] like Figure 2 As shown in the figure, the temperature sensor controller regularly collects information from distributed temperature sensors to obtain the maximum temperature value, and then compares it with the pre-set Prochot temperature threshold. If it is less than T prochot , then proceed to the next step and compare it with the preset Alert temperature threshold. If it is still less than T alert , the current frequency is maintained without frequency adjustment; if it is greater than T alert , adjust the frequency according to the preset Alert weight and maintain the frequency, that is, F out =W alert *F ori , F out is the operating frequency of the chip, F ori is the chip operating frequency before adjustment; then the temperature sensor controller continues to obtain the temperature, if it is not less than T alert –T a_s_margin , still maintain F out =W alert *F ori , T a_s_margin Alert temperature tolerance, otherwise restore frequency and maintain F out =F ori .

[0025] In the two temperature comparison stages, if the temperature is greater than T prochot , then enter the Prochot temperature anomaly processing adjustment state machine, use the preset Prochot weight to adjust the frequency and maintain it, that is, F out =W prochot *F ori Then the temperature sensor controller continues to obtain the temperature. If it is not less than T prochot –T p_s_margin , still maintain F out =W prochot *F ori , T p_s_margin is the Prochot temperature tolerance; if the temperature drops to T prochot –T p_s_margin If the frequency is below , it will be restored to the Alert frequency first, F out =W alert *F ori , and then go to the Alert temperature abnormality adjustment state machine.

[0026] When the present invention performs hardware frequency reduction due to temperature anomaly, the frequency is first reduced to the frequency corresponding to Alert, and then reduced to the frequency corresponding to Prochot, rather than reducing the frequency to the frequency corresponding to Prochot in one step, and the frequency is reduced rapidly step by step to prevent positive overshoot caused by too fast chip current switching. When the reverse hardware frequency is increased after the abnormality is recovered, it is also two-level corresponding, first increased to the frequency corresponding to Alert, and then increased to the original normal frequency. The safety temperature margin of the frequency increase can be preset, rather than increasing the frequency to the corresponding frequency in one step, and the frequency is increased rapidly step by step to prevent negative overshoot caused by too fast chip current switching.

[0027] The above are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should be regarded as the protection scope of the present invention.

Claims

1. A chip frequency dynamic adjustment method for abnormal temperature processing, characterized in that: The chip frequency dynamic adjustment method is implemented based on a frequency adjustment system of the chip frequency dynamic adjustment method, wherein the frequency adjustment system of the chip frequency dynamic adjustment method includes a plurality of temperature sensors, a temperature sensor controller, an Alert temperature comparator, a Prochot temperature comparator and a PLL controller with a state machine; The temperature sensors are arranged at multiple hot spots of the chip, and are used to collect temperature information of each hot spot at regular intervals and upload it to the temperature sensor controller; the temperature sensor controller is used to set the sampling time interval of the temperature information, and obtain the maximum temperature at the same time through hardware statistics, and then upload the maximum temperature to the Alert temperature comparator, the Prochot temperature comparator and the PLL controller at the same time; the PLL controller is used to calculate the operating frequency that the chip should be at and output a corresponding clock signal to adjust the operating frequency of the chip; A frequency adjustment system based on the chip frequency dynamic adjustment method is used to implement a chip frequency dynamic adjustment method for abnormal temperature processing: when hardware frequency reduction is performed due to temperature abnormality, the frequency is first reduced to the frequency corresponding to the Alert, and then reduced to the frequency corresponding to the Prochot; When performing reverse hardware frequency increase after abnormal recovery, the frequency is first increased to the frequency corresponding to the Alert, and then increased to the original normal frequency. The safety temperature margin of the frequency increase can be preset; The chip frequency dynamic adjustment method specifically comprises the following steps: Step 1: multiple groups of temperature sensors are set at multiple hot spots of the chip, the temperature information of each hot spot is sampled regularly, and the temperature information is converted into a digital representation of the temperature by ADC and transmitted to the temperature sensor controller; Step 2: The temperature sensor controller obtains the maximum value T of each temperature digital representation received at the same time through hardware statistics max and transmit the maximum value to the Alert temperature comparator and the Prochot temperature comparator respectively; Step 3: Prochot Temperature Comparator to T max With the set Prochot threshold T prochot The comparison is made and the comparison result is sent to the PLL controller. At the same time, the Alert temperature comparator sends T max The set Alert threshold T alert Performing comparison and transmitting the comparison result to the PLL controller; Step 4: The PLL controller calculates the operating frequency of the chip based on the comparison results of the Alert temperature comparator and the Prochot temperature comparator, and outputs the corresponding frequency division coefficient accordingly. The frequency division coefficient will control the peripheral circuit of the PLL controller to perform glitch-free clock switching to adjust the operating frequency of the chip; If T max ≤ T prochot And T max ≤ T alert , the current frequency is kept unchanged and no frequency adjustment is performed; If T max ≤ T prochot And T max > T alert , then enter the Alert temperature anomaly processing adjustment state machine, according to the preset Alert weight W alert Adjust the frequency and maintain, F out = W alert * F ori , F out is the operating frequency of the chip, F ori is the chip operating frequency before adjustment; then continue to obtain T at the next moment max , if the next moment T max ≥ T alert –T a_s_margin , still maintain F out = W alert * F ori , T a_s_margin Alert temperature tolerance, otherwise restore frequency and maintain F out = F ori ; If T max > T prochot , then enter the Prochot temperature anomaly processing adjustment state machine, according to the preset Prochot weight W prochot Adjust the frequency and maintain, F out = W prochot * F ori ; Then continue to obtain T at the next moment max , if the next moment T max ≥ T prochot – T p_s_margin , still maintain F out = W prochot * F ori , T p_s_margin is the Prochot temperature tolerance, otherwise it will first return to the Alert temperature anomaly processing adjustment state machine output frequency F out = W alert * F ori , and then enter the Alert temperature anomaly processing adjustment state machine.

Citation Information

Patent Citations

  • Power equipment and high-temperature self-protection method thereof

    CN102055166A

  • Chip performance control method and device

    CN103376859A

  • Thermal control apparatus and methodology

    CN103514011A

  • Dynamic voltage adjustment of an I / O interface signal

    CN106796566A

  • Working frequency adjusting method and device and server

    CN108983922A