Server fan regulation and control method, controller, computer program product and medium

By independently controlling the server fan in the secure world under the trusted regional architecture, the first operating system solves the problem of unstable server cooling when the BMC is destroyed, and the security and stability of server cooling is achieved.

CN119396260AActive Publication Date: 2025-02-07INSPUR SUZHOU INTELLIGENT TECH CO LTD

Patent Information

Application Number
CN202411998354.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-02-07
Estimated Expiration
2044-12-30

AI Technical Summary

Technical Problem

During the server operation, the BMC may be damaged artificially, resulting in unstable cooling of the server, affecting the normal operation of the server.

Method used

Under the trusted area architecture, the first operating system is located in the world of security, integrating server fan control scripts, collecting temperature values ​​through temperature sensors and controlling fans through target buses, ensuring the safety and stability of the heat dissipation process.

Benefits of technology

By independently controlling the server fan in the first operating system in the security world, the impact of BMC is avoided when it is destroyed and the security and stability of server cooling is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119396260A_ABST
    Figure CN119396260A_ABST
Patent Text Reader

Abstract

The invention discloses a server fan regulation and control method, a controller, a computer program product and a medium, and relates to the technical field of server heat dissipation, the method is applied to a first operating system in a management controller, the management controller adopts a trusted area architecture, and the first operating system is located in a secure world under the trusted area architecture. The first operating system is integrated with a server fan regulation and control script; comprising the steps that a server fan regulation and control script is operated, and a temperature value collected by a temperature sensor in a server is obtained; and regulating and controlling the server fan through a target bus according to the temperature value acquired by the temperature sensor. The method can guarantee safe and stable heat dissipation of the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of server heat dissipation, and in particular to a server fan control method, a controller, a computer program product and a medium. Background Art

[0002] During the operation of the server, its internal components such as the processor, memory, and hard disk will generate a lot of heat, which will increase the temperature of the server. High temperature will affect the performance of the server and even cause the server to crash. Therefore, it is particularly necessary to dissipate heat from the server. The commonly used heat dissipation method is fan heat dissipation, and the server fan is usually regulated by the server's BMC (Baseboard Management Controller). However, the BMC may be damaged by human beings, which will affect the heat dissipation of the server. For example, after obtaining root permissions, the BMC is damaged, which affects the heat dissipation of the server and brings hidden dangers to the normal operation of the server. Therefore, how to ensure the safe and stable heat dissipation of the server has become a technical problem that needs to be solved urgently by technicians in this field. Summary of the invention

[0003] The object of the present invention is to provide a server fan control method, controller, computer program product and medium, which can ensure safe and stable heat dissipation of the server.

[0004] To solve the above technical problems, the present invention provides a server fan control method, which is applied to a first operating system in a management controller, wherein the management controller adopts a trusted area architecture, the first operating system is located in a secure world under the trusted area architecture, and the first operating system is integrated with a server fan control script; the method comprises:

[0005] Run the server fan control script to obtain the temperature value collected by the temperature sensor in the server;

[0006] According to the temperature value collected by the temperature sensor, the server fan is regulated through the target bus.

[0007] In some embodiments, obtaining a temperature value collected by a temperature sensor includes:

[0008] Reading temperature values ​​collected by a first-type temperature sensor and a second-type temperature sensor; the first-type temperature sensor is a temperature sensor accessible to the first operating system, and the second-type temperature sensor is a temperature sensor accessible to both the first operating system and the second operating system; the second operating system is located in the ordinary world under the trusted area architecture;

[0009] The temperature value collected by the second type of temperature sensor and the temperature value collected by the third type of temperature sensor transmitted by the second operating system are received; the third type of temperature sensor is a temperature sensor accessible to the second operating system.

[0010] In some embodiments, regulating the server fan through the target bus according to the temperature value collected by the temperature sensor includes:

[0011] determining whether the temperature value transmitted by the second operating system is credible according to the temperature value collected by the second temperature sensor read by the first operating system itself and the temperature value collected by the second temperature sensor transmitted by the second operating system;

[0012] If it is credible, regulating the server fan through the target bus according to the temperature value collected by the first type of temperature sensor, the temperature value collected by the second type of temperature sensor, and the temperature value collected by the third type of temperature sensor;

[0013] If it is not credible, the server fan is regulated through the target bus according to the temperature value collected by the first type of temperature sensor and the temperature value collected by the second type of temperature sensor read by the first operating system.

[0014] In some embodiments, judging whether the temperature value transmitted by the second operating system is credible according to the temperature value collected by the second temperature sensor read by the first operating system itself and the temperature value collected by the second temperature sensor transmitted by the second operating system includes:

[0015] comparing the temperature value collected by the second type of temperature sensor read by the first operating system itself with the temperature value collected by the second type of temperature sensor transmitted by the second operating system;

[0016] If the temperature value collected by the second type temperature sensor read by the first operating system itself is consistent with the temperature value collected by the second type temperature sensor transmitted by the second operating system, then the temperature value transmitted by the second operating system is credible;

[0017] If the temperature value collected by the second type of temperature sensor read by the first operating system itself is inconsistent with the temperature value collected by the second type of temperature sensor transmitted by the second operating system, the temperature value transmitted by the second operating system is unreliable.

[0018] In some embodiments, receiving the temperature value collected by the second type of temperature sensor and the temperature value collected by the third type of temperature sensor and transmitted by the second operating system includes:

[0019] Receive the temperature value collected by the second type of temperature sensor and the temperature value collected by the third type of temperature sensor, which are transmitted by the second operating system through the trusted firmware.

[0020] In some embodiments, the first type of temperature sensor includes a temperature sensor for collecting the temperature of a target core component in a server.

[0021] In some embodiments, obtaining a temperature value collected by a temperature sensor includes:

[0022] Read the temperature values ​​collected by all temperature sensors in the server; the first operating system can access all temperature sensors in the server.

[0023] In some embodiments, regulating the server fan through the target bus according to the temperature value collected by the temperature sensor includes:

[0024] The server fans are regulated through the target bus according to the temperature values ​​collected by all temperature sensors read by the first operating system itself.

[0025] In some embodiments, the first operating system runs on a single processing core.

[0026] In some embodiments, the second operating system runs on multiple processing cores.

[0027] In some embodiments, it also includes:

[0028] If the temperature value transmitted by the second operating system is not credible, information indicating that the temperature value transmitted by the second operating system is not credible is transmitted to the second operating system.

[0029] In some embodiments, it also includes:

[0030] Counting the number of times that the temperature value transmitted by the second operating system is unreliable;

[0031] Determining whether the number of times that the temperature value transmitted by the second operating system is unreliable reaches a preset threshold;

[0032] If it is reached, an alarm will be issued.

[0033] To solve the above technical problems, the present invention also provides a management controller, which adopts a trusted area architecture. The management controller includes a first operating system, and the first operating system is located in a secure world under the trusted area architecture. The first operating system is integrated with a server fan control script; the management controller is used to run the server fan control script to obtain the temperature value collected by a temperature sensor in the server; and according to the temperature value collected by the temperature sensor, the server fan is controlled through a target bus.

[0034] In order to solve the above technical problem, the present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the server fan control method as described above when executed by a processor.

[0035] In order to solve the above technical problem, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the server fan control method described above are implemented.

[0036] The server fan control method provided by the present invention is applied to a first operating system in a management controller, the management controller adopts a trusted area architecture, the first operating system is located in a secure world under the trusted area architecture, and the first operating system is integrated with a server fan control script; the method comprises: running the server fan control script to obtain a temperature value collected by a temperature sensor in the server; and controlling the server fan through a target bus according to the temperature value collected by the temperature sensor.

[0037] It can be seen that the first operating system in the secure world under the trusted zone architecture, namely the trustzone architecture, integrates the server fan control function, and the first operating system in the secure world is responsible for controlling the server fan, and the first operating system in the secure world is not easily damaged by humans. The isolation between the ordinary world and the secure world under the trustzone architecture is relatively high, and the operating system in the ordinary world has no authority to intervene in the server fan control function of the first operating system in the secure world. Even if the root authority of the operating system in the ordinary world is obtained artificially, the control authority of the server fan cannot be obtained. Therefore, even if the operating system in the ordinary world is damaged artificially, it will not affect the first operating system in the secure world to realize the server fan control function, thereby ensuring that the server heat dissipation is safe and stable.

[0038] The management controller, computer program product and medium provided by the present invention all have the above-mentioned technical effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the prior art and the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0040] Figure 1 A schematic diagram of a flow chart of a server fan control method provided by an embodiment of the present invention;

[0041] Figure 2A schematic diagram of a server fan control framework provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0042] The core of the present invention is to provide a server fan control method, controller, computer program product and medium, which can ensure safe and stable heat dissipation of the server.

[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0044] Please refer to Figure 1 , Figure 1 A flow chart of a server fan control method provided by an embodiment of the present invention, the method is applied to a first operating system in a management controller, the management controller adopts a trusted area architecture, the first operating system is located in a secure world under the trusted area architecture, and the first operating system is integrated with a server fan control script; comprising:

[0045] S101: Run the server fan control script to obtain the temperature value collected by the temperature sensor in the server;

[0046] S102: According to the temperature value collected by the temperature sensor, the server fan is regulated through the target bus.

[0047] The executor of the server fan control method in this embodiment is the first operating system in the management controller. Among them, the management controller adopts the trustzone architecture. The trustzone architecture divides the resources of the entire management controller into two worlds: a secure world and a non-secure world, namely, the ordinary world. At the hardware level, the secure world and the ordinary world have their own independent operating environments, including independent instruction set execution spaces, memory mappings, etc. The secure world is isolated from the ordinary world, and the ordinary world cannot directly access the resources of the secure world. The first operating system is located in the secure world, and the first operating system is integrated with a server fan control script and has access rights to secure hardware resources. Secure hardware resources are hardware resources that are limited to access by the first operating system. The target bus is a bus used for server fan control and belongs to secure hardware resources.

[0048] The management controller can be BMC, remote controller ILO (Integrated Lights-Out), remote controller IDRAC (Integrated Dell Remote Access Controller), etc. Take the management controller as BMC as an example, refer to Figure 2 As shown in FIG. 1 , the resources of the BMC are divided into the secure world and the normal world. The BMC OS (Operating System, operating system) is located in the normal world, and the first operating system is located in the secure world.

[0049] When the BMC starts, the bootrom runs to divide and configure the hardware resources into secure hardware resources and non-secure hardware resources, and starts the first operating system in the secure world and the BMC OS in the normal world. Non-secure hardware resources are hardware resources that can be accessed by both the first operating system and the operating system in the normal world. The first operating system can access all hardware resources, while the BMC OS is limited to accessing non-secure hardware resources. During the operation of the management controller, the first operating system is responsible for the fan control of the server. The first operating system obtains the temperature value collected by the temperature sensor in the server, and controls the server fan through the target bus according to the temperature value collected by the temperature sensor to achieve heat dissipation control. The target bus can be an I2C (Inter-Integrated Circuit) bus.

[0050] In some embodiments, obtaining a temperature value collected by a temperature sensor includes:

[0051] Read the temperature values ​​collected by the first temperature sensor and the second temperature sensor; the first temperature sensor is a temperature sensor accessible to the first operating system, and the second temperature sensor is a temperature sensor accessible to both the first operating system and the second operating system; the second operating system is located in the ordinary world under the trusted area architecture;

[0052] The temperature value collected by the second type of temperature sensor and the temperature value collected by the third type of temperature sensor transmitted by the second operating system are received; the third type of temperature sensor is a temperature sensor accessible to the second operating system.

[0053] In some embodiments, the first type of temperature sensor includes a temperature sensor for collecting the temperature of a target core component in the server.

[0054] For example, the first type of temperature sensor includes a temperature sensor for collecting the temperature of a CPU (Central Processing Unit), etc. After the server is started, the first type of temperature sensor can be bound as a secure hardware resource, and only the first operating system can access the first type of temperature sensor.

[0055] The second type of temperature sensor is a non-secure hardware resource. Both the first operating system and the second operating system can access it. The second type of temperature sensor may include an outlet / inlet temperature sensor, etc.

[0056] The third type of temperature sensor is a non-secure hardware resource that can be accessed by the second operating system. The first operating system does not set a function to access the third type of temperature sensor, so the first operating system cannot access the third type of temperature sensor. For example, the third type of temperature sensor includes a temperature sensor that collects the temperature of a RAID (Redundant Arrays of Independent Disks) card and a temperature of a network card.

[0057] After the server is started, the first operating system runs the server fan control script, starts the heat dissipation process, and reads the temperature value collected by the first temperature sensor and the temperature value collected by the second temperature sensor. After the server is started, the BMC OS, i.e., the second operating system, starts the heat dissipation-related process, and reads the temperature value collected by the second temperature sensor and the temperature value collected by the third temperature sensor. For example, the second operating system obtains the temperature value of the RAID card, network card, etc. through standard protocols such as MCTP (Management Component Transport Protocol), and obtains the temperature value of the outlet / inlet temperature sensor through the I2C bus. The second operating system transmits the temperature value collected by the second temperature sensor and the temperature value collected by the third temperature sensor to the first operating system so that the first operating system can perform server fan control. Among them, the heat dissipation-related process in the second operating system only has the function of reading the sensor temperature, but does not have the function of controlling the fan.

[0058] The first operating system reads the temperature values ​​collected by some temperature sensors, and the second operating system reads the temperature values ​​collected by other temperature sensors and transmits the read temperature values ​​to the first operating system. This can make the first operating system lightweight. Under the premise of ensuring the basic functions of the first operating system, the first operating system can minimize the occupation of hardware resources, remove complex system characteristics, and make the first operating system respond faster.

[0059] In some embodiments, receiving the temperature value collected by the second type of temperature sensor and the temperature value collected by the third type of temperature sensor transmitted by the second operating system includes:

[0060] The temperature value collected by the second type of temperature sensor and the temperature value collected by the third type of temperature sensor are received and transmitted by the second operating system through the trusted firmware.

[0061] The heat dissipation-related process CA (Communication Agent) of the second operating system obtains the temperature values ​​collected by the second type of temperature sensor and the temperature values ​​collected by the third type of temperature sensor. The heat dissipation-related process accesses the Linux kernel, calls the kernel driver, and writes the temperature and other data into the driver (TeeDriver) that interacts with the kernel and the first operating system. Tee Driver works in privileged mode and can pass temperature and other data to ATF (ARM Trusted Firmware) by calling SMC commands. ATF has a Secure monitor function (specially used to monitor SMC commands transmitted from the ordinary world) to capture the transmitted commands and data, and further pass them to the kernel of the first operating system. The kernel of the first operating system parses the commands and data transmitted by ATF, finds the TA (TrustedApplication) that parses the data, and completes the data transmission.

[0062] In some embodiments, according to the temperature value collected by the temperature sensor, regulating the server fan through the target bus includes:

[0063] judging whether the temperature value transmitted by the second operating system is credible according to the temperature value collected by the second temperature sensor read by the first operating system itself and the temperature value collected by the second temperature sensor transmitted by the second operating system;

[0064] If it is credible, the server fan is regulated through the target bus according to the temperature value collected by the first temperature sensor, the temperature value collected by the second temperature sensor, and the temperature value collected by the third temperature sensor;

[0065] If it is not credible, the server fan is regulated through the target bus according to the temperature value collected by the first type of temperature sensor and the temperature value collected by the second type of temperature sensor read by the first operating system.

[0066] The first operating system receives the temperature value collected by the second type of temperature sensor and the temperature value collected by the third type of temperature sensor and transmitted by the second operating system, and determines whether the temperature value transmitted by the second operating system is credible based on the temperature value collected by the second type of temperature sensor read by the first operating system itself and the temperature value collected by the second type of temperature sensor read by the second operating system.

[0067] If it is credible, the first operating system regulates the server fan according to the temperature value collected by the first temperature sensor, the temperature value collected by the second temperature sensor, and the temperature value collected by the third temperature sensor. If it is not credible, the first operating system regulates the server fan according to the temperature value collected by the first temperature sensor and the temperature value collected by the second temperature sensor read by the first operating system itself, while ignoring the temperature value transmitted by the second operating system. In this way, the influence of unreliable temperature values ​​on the server fan regulation can be avoided, and the accuracy and reliability of the server fan regulation can be guaranteed.

[0068] In some embodiments, judging whether the temperature value transmitted by the second operating system is credible according to the temperature value collected by the second temperature sensor read by the first operating system itself and the temperature value collected by the second temperature sensor transmitted by the second operating system includes:

[0069] comparing the temperature value collected by the second type of temperature sensor read by the first operating system itself with the temperature value collected by the second type of temperature sensor transmitted by the second operating system;

[0070] If the temperature value collected by the second type temperature sensor read by the first operating system itself is consistent with the temperature value collected by the second type temperature sensor transmitted by the second operating system, then the temperature value transmitted by the second operating system is credible;

[0071] If the temperature value collected by the second type temperature sensor read by the first operating system itself is inconsistent with the temperature value collected by the second type temperature sensor transmitted by the second operating system, the temperature value transmitted by the second operating system is unreliable.

[0072] The first operating system compares the temperature value collected by the second type temperature sensor read by the first operating system itself with the temperature value collected by the second type temperature sensor read by the second operating system.

[0073] If the temperature value collected by the second type of temperature sensor read by the first operating system itself is consistent with the temperature value collected by the second type of temperature sensor read by the second operating system, then the temperature value transmitted by the second operating system is determined to be credible; if the temperature value collected by the second type of temperature sensor read by the first operating system itself is inconsistent with the temperature value collected by the second type of temperature sensor read by the second operating system, then it is determined that the temperature value transmitted by the second operating system is suspected of being modified and the temperature value transmitted by the second operating system is unreliable.

[0074] Among them, if the temperature value collected by the second type of temperature sensor read by the first operating system itself is equal to the temperature value collected by the second type of temperature sensor read by the second operating system, or the deviation between the temperature value collected by the second type of temperature sensor read by the first operating system itself and the temperature value collected by the second type of temperature sensor read by the second operating system is within an allowable range, it can be considered that the temperature value collected by the second type of temperature sensor read by the first operating system itself is consistent with the temperature value collected by the second type of temperature sensor read by the second operating system.

[0075] If the temperature value collected by the second type of temperature sensor read by the first operating system itself is consistent with the temperature value collected by the second type of temperature sensor read by the second operating system, the first operating system regulates the server fan according to the temperature value collected by the first type of temperature sensor, the temperature value collected by the second type of temperature sensor, and the temperature value collected by the third type of temperature sensor. If the temperature value collected by the second type of temperature sensor read by the first operating system itself is inconsistent with the temperature value collected by the second type of temperature sensor read by the second operating system, the first operating system regulates the server fan according to the temperature value collected by the first type of temperature sensor and the temperature value collected by the second type of temperature sensor read by the first operating system itself, while ignoring the temperature value transmitted by the second operating system.

[0076] In some embodiments, obtaining a temperature value collected by a temperature sensor includes:

[0077] The temperature values ​​collected by all temperature sensors in the server are read; the first operating system can access all temperature sensors in the server.

[0078] In some embodiments, according to the temperature value collected by the temperature sensor, regulating the server fan through the target bus includes:

[0079] The server fans are regulated through the target bus according to the temperature values ​​collected by all temperature sensors read by the first operating system itself.

[0080] In this embodiment, the first operating system has the ability to access all temperature sensors in the server and can read the temperature values ​​collected by all temperature sensors in the server. On the basis of the first operating system itself reading the temperature values ​​collected by all temperature sensors, the first operating system directly controls the server fans according to the temperature values ​​read by itself. The first operating system itself reads the temperature values ​​collected by all temperature sensors, without the need for the second operating system to read and transmit the temperature values ​​collected by the temperature sensors, which can further improve the isolation between the first operating system and the second operating system, making the server fan control safer and more reliable.

[0081] In some embodiments, the first operating system runs on a single processing core and the second operating system runs on multiple processing cores.

[0082] Based on the lightweight design of the first operating system, the first operating system can run on a single independent processing core. The second operating system retains other functions besides server fan control, for example, retains device information management, remote control management and other functions. The second operating system can run on multiple processing cores.

[0083] In some embodiments, it also includes:

[0084] Counting the number of times that the temperature value transmitted by the second operating system is unreliable;

[0085] Determining whether the number of times that the temperature value transmitted by the second operating system is unreliable reaches a preset threshold;

[0086] If it is reached, an alarm will be issued.

[0087] The first operating system can count the number of times the temperature value transmitted by the second operating system is unreliable, and determine whether the number of times the temperature value transmitted by the second operating system is unreliable reaches a preset threshold. If it reaches, it indicates that the temperature value obtained by the second operating system has been modified multiple times, and there is a greater security risk in the second operating system, and an alarm can be issued at this time. If it does not reach, only the number of times the temperature value transmitted by the second operating system is unreliable can be recorded.

[0088] In some embodiments, it also includes:

[0089] If the temperature value transmitted by the second operating system is not credible, information indicating that the temperature value transmitted by the second operating system is not credible is transmitted to the second operating system.

[0090] When the first operating system determines that the temperature value transmitted by the second operating system is unreliable, it can transmit information indicating that the temperature value transmitted by the second operating system is unreliable to the second operating system, and then the second operating system can stop transmitting the temperature value to the first operating system. Since the temperature value transmitted by the second operating system is unreliable, it indicates that the temperature value obtained by the second operating system is suspected of being maliciously modified, and the second operating system has a security risk. Therefore, after the second operating system receives the information transmitted by the first operating system indicating that the temperature value transmitted by the second operating system is unreliable, the second operating system can also issue an alarm prompt.

[0091] In summary, the server fan control method provided by the present invention integrates the server fan control function in the first operating system in the secure world under the trusted area architecture, that is, the trustzone architecture, and the first operating system in the secure world is responsible for controlling the server fan, and the first operating system in the secure world is not easily damaged by humans. The isolation between the ordinary world and the secure world under the trustzone architecture is relatively high, and the operating system in the ordinary world has no authority to intervene in the server fan control function of the first operating system in the secure world. Even if the root authority of the operating system in the ordinary world is obtained artificially, the control authority of the server fan cannot be obtained. Therefore, even if the operating system in the ordinary world is artificially damaged, it will not affect the first operating system in the secure world to implement the server fan control function, thereby ensuring that the server heat dissipation is safe and stable.

[0092] The present invention also provides a server fan control device, which can be referred to in correspondence with the method described above. The device is applied to a first operating system in a management controller, the management controller adopts a trusted area architecture, the first operating system is located in a secure world under the trusted area architecture, and the first operating system is integrated with a server fan control script; including:

[0093] An acquisition unit, used for running the server fan control script to acquire a temperature value collected by a temperature sensor in the server;

[0094] The control unit is used to control the server fan through the target bus according to the temperature value collected by the temperature sensor.

[0095] Based on the above embodiment, as a specific implementation mode, the acquisition unit includes:

[0096] a reading subunit, configured to read temperature values ​​collected by a first-type temperature sensor and a second-type temperature sensor; the first-type temperature sensor is a temperature sensor accessible to the first operating system, and the second-type temperature sensor is a temperature sensor accessible to both the first operating system and the second operating system; the second operating system is located in the ordinary world under the trusted area architecture;

[0097] The receiving subunit is used to receive the temperature value collected by the second type of temperature sensor and the temperature value collected by the third type of temperature sensor transmitted by the second operating system; the third type of temperature sensor is a temperature sensor accessible to the second operating system.

[0098] Based on the above embodiment, as a specific implementation method, the control unit includes:

[0099] A judging subunit, configured to judge whether the temperature value transmitted by the second operating system is credible according to the temperature value collected by the second temperature sensor read by the first operating system itself and the temperature value collected by the second temperature sensor transmitted by the second operating system;

[0100] a first regulating subunit, configured to regulate the server fan through a target bus according to the temperature value collected by the first type of temperature sensor, the temperature value collected by the second type of temperature sensor, and the temperature value collected by the third type of temperature sensor, if credible;

[0101] The second regulating subunit is used to regulate the server fan through the target bus according to the temperature value collected by the first type of temperature sensor and the temperature value collected by the second type of temperature sensor read by the first operating system if it is not credible.

[0102] Based on the above embodiment, as a specific implementation manner, the judging subunit includes:

[0103] A comparing subunit, configured to compare a temperature value collected by the second temperature sensor and read by the first operating system itself with a temperature value collected by the second temperature sensor and transmitted by the second operating system;

[0104] a first determining subunit, configured to determine that if the temperature value collected by the second type of temperature sensor read by the first operating system itself is consistent with the temperature value collected by the second type of temperature sensor and transmitted by the second operating system, then the temperature value transmitted by the second operating system is credible;

[0105] The second determining subunit is used to determine that the temperature value transmitted by the second operating system is unreliable if the temperature value collected by the second temperature sensor read by the first operating system itself is inconsistent with the temperature value collected by the second temperature sensor transmitted by the second operating system.

[0106] Based on the above embodiment, as a specific implementation manner, the receiving subunit is used for:

[0107] Receive the temperature value collected by the second type of temperature sensor and the temperature value collected by the third type of temperature sensor, which are transmitted by the second operating system through the trusted firmware.

[0108] Based on the above embodiment, as a specific implementation manner, the first type of temperature sensor includes a temperature sensor for collecting the temperature of a target core component in the server.

[0109] Based on the above embodiment, as a specific implementation manner, the acquisition unit is used to:

[0110] Read the temperature values ​​collected by all temperature sensors in the server; the first operating system can access all temperature sensors in the server.

[0111] Based on the above embodiment, as a specific implementation mode, the control unit is used to:

[0112] The server fans are regulated through the target bus according to the temperature values ​​collected by all temperature sensors read by the first operating system itself.

[0113] Based on the above embodiment, as a specific implementation method, the first operating system runs on a single processing core.

[0114] Based on the above embodiment, as a specific implementation mode, the second operating system runs on multiple processing cores.

[0115] Based on the above embodiment, as a specific implementation method, it also includes:

[0116] The transmitting unit is configured to transmit information indicating that the temperature value transmitted by the second operating system is unreliable to the second operating system if the temperature value transmitted by the second operating system is unreliable.

[0117] Based on the above embodiment, as a specific implementation method, it also includes:

[0118] a counting unit, configured to count the number of times the temperature value transmitted by the second operating system is unreliable;

[0119] A judging unit, configured to judge whether the number of times that the temperature value transmitted by the second operating system is unreliable reaches a preset threshold;

[0120] The alarm unit is used to issue an alarm prompt if the limit is reached.

[0121] The present invention also provides a management controller, which adopts a trusted area architecture. The management controller includes a first operating system, which is located in a secure world under the trusted area architecture, and the first operating system is integrated with a server fan control script; the management controller is used to run the server fan control script to obtain a temperature value collected by a temperature sensor in the server; and control the server fan through a target bus according to the temperature value collected by the temperature sensor.

[0122] Based on the above embodiment, as a specific implementation mode, the management controller is used to:

[0123] Reading temperature values ​​collected by a first-type temperature sensor and a second-type temperature sensor; the first-type temperature sensor is a temperature sensor accessible to the first operating system, and the second-type temperature sensor is a temperature sensor accessible to both the first operating system and the second operating system; the second operating system is located in the ordinary world under the trusted area architecture;

[0124] The temperature value collected by the second type of temperature sensor and the temperature value collected by the third type of temperature sensor transmitted by the second operating system are received; the third type of temperature sensor is a temperature sensor accessible to the second operating system.

[0125] Based on the above embodiment, as a specific implementation mode, the management controller is used to:

[0126] determining whether the temperature value transmitted by the second operating system is credible according to the temperature value collected by the second temperature sensor read by the first operating system itself and the temperature value collected by the second temperature sensor transmitted by the second operating system;

[0127] If it is credible, regulating the server fan through the target bus according to the temperature value collected by the first type of temperature sensor, the temperature value collected by the second type of temperature sensor, and the temperature value collected by the third type of temperature sensor;

[0128] If it is not credible, the server fan is regulated through the target bus according to the temperature value collected by the first type of temperature sensor and the temperature value collected by the second type of temperature sensor read by the first operating system.

[0129] Based on the above embodiment, as a specific implementation mode, the management controller is used to:

[0130] comparing the temperature value collected by the second type of temperature sensor read by the first operating system itself with the temperature value collected by the second type of temperature sensor transmitted by the second operating system;

[0131] If the temperature value collected by the second type temperature sensor read by the first operating system itself is consistent with the temperature value collected by the second type temperature sensor transmitted by the second operating system, then the temperature value transmitted by the second operating system is credible;

[0132] If the temperature value collected by the second type of temperature sensor read by the first operating system itself is inconsistent with the temperature value collected by the second type of temperature sensor transmitted by the second operating system, the temperature value transmitted by the second operating system is unreliable.

[0133] Based on the above embodiment, as a specific implementation mode, the management controller is used to:

[0134] Receive the temperature value collected by the second type of temperature sensor and the temperature value collected by the third type of temperature sensor, which are transmitted by the second operating system through the trusted firmware.

[0135] Based on the above embodiment, as a specific implementation manner, the first type of temperature sensor includes a temperature sensor for collecting the temperature of a target core component in the server.

[0136] Based on the above embodiment, as a specific implementation mode, the management controller is used to:

[0137] Read the temperature values ​​collected by all temperature sensors in the server; the first operating system can access all temperature sensors in the server.

[0138] Based on the above embodiment, as a specific implementation mode, the management controller is used to:

[0139] The server fans are regulated through the target bus according to the temperature values ​​collected by all temperature sensors read by the first operating system itself.

[0140] Based on the above embodiment, as a specific implementation method, the first operating system runs on a single processing core.

[0141] Based on the above embodiment, as a specific implementation mode, the second operating system runs on multiple processing cores.

[0142] Based on the above embodiment, as a specific implementation mode, the management controller is further used for:

[0143] If the temperature value transmitted by the second operating system is not credible, information indicating that the temperature value transmitted by the second operating system is not credible is transmitted to the second operating system.

[0144] Based on the above embodiment, as a specific implementation mode, the management controller is further used for:

[0145] Counting the number of times that the temperature value transmitted by the second operating system is unreliable;

[0146] Determining whether the number of times that the temperature value transmitted by the second operating system is unreliable reaches a preset threshold;

[0147] If it is reached, an alarm will be issued.

[0148] For an introduction to the management controller provided by the present invention, please refer to the above method embodiment, and the present invention will not elaborate on it here.

[0149] The present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the server fan control method as described above when executed by a processor.

[0150] For an introduction to the computer program product provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.

[0151] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the server fan control method described in the above embodiment can be implemented.

[0152] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0153] For an introduction to the computer-readable storage medium provided by the present invention, please refer to the above method embodiment, and the present invention will not elaborate on it here.

[0154] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the devices, equipment, and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0155] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0156] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0157] The server fan control method, controller, computer program product and medium provided by the present invention are introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.

Claims

1. A method for controlling a server fan, characterized in that: A first operating system applied to a management controller, the management controller adopts a trusted zone architecture, the first operating system is located in a secure world under the trusted zone architecture, and the first operating system is integrated with a server fan control script; comprising: Run the server fan control script to obtain the temperature value collected by the temperature sensor in the server; According to the temperature value collected by the temperature sensor, the server fan is regulated through the target bus.

2. The server fan control method according to claim 1, characterized in that: Obtaining the temperature value collected by the temperature sensor includes: Reading temperature values ​​collected by a first-type temperature sensor and a second-type temperature sensor; the first-type temperature sensor is a temperature sensor accessible to the first operating system, and the second-type temperature sensor is a temperature sensor accessible to both the first operating system and the second operating system; the second operating system is located in the ordinary world under the trusted area architecture; The temperature value collected by the second type of temperature sensor and the temperature value collected by the third type of temperature sensor transmitted by the second operating system are received; the third type of temperature sensor is a temperature sensor accessible to the second operating system.

3. The server fan control method according to claim 2, characterized in that: According to the temperature value collected by the temperature sensor, regulating the server fan through the target bus includes: determining whether the temperature value transmitted by the second operating system is credible according to the temperature value collected by the second temperature sensor read by the first operating system itself and the temperature value collected by the second temperature sensor transmitted by the second operating system; If it is credible, regulating the server fan through the target bus according to the temperature value collected by the first type of temperature sensor, the temperature value collected by the second type of temperature sensor, and the temperature value collected by the third type of temperature sensor; If it is not credible, the server fan is regulated through the target bus according to the temperature value collected by the first type of temperature sensor and the temperature value collected by the second type of temperature sensor read by the first operating system.

4. The server fan control method according to claim 3, characterized in that: Judging whether the temperature value transmitted by the second operating system is credible according to the temperature value collected by the second temperature sensor read by the first operating system itself and the temperature value collected by the second temperature sensor transmitted by the second operating system includes: comparing the temperature value collected by the second type of temperature sensor read by the first operating system itself with the temperature value collected by the second type of temperature sensor transmitted by the second operating system; If the temperature value collected by the second type temperature sensor read by the first operating system itself is consistent with the temperature value collected by the second type temperature sensor transmitted by the second operating system, then the temperature value transmitted by the second operating system is credible; If the temperature value collected by the second type of temperature sensor read by the first operating system itself is inconsistent with the temperature value collected by the second type of temperature sensor transmitted by the second operating system, the temperature value transmitted by the second operating system is unreliable.

5. The server fan control method according to claim 2, characterized in that: Receiving the temperature value collected by the second type of temperature sensor and the temperature value collected by the third type of temperature sensor and transmitted by the second operating system includes: Receive the temperature value collected by the second type of temperature sensor and the temperature value collected by the third type of temperature sensor, which are transmitted by the second operating system through the trusted firmware.

6. The server fan control method according to claim 2, characterized in that: The first type of temperature sensor includes a temperature sensor used to collect the temperature of a target core component in a server.

7. The server fan control method according to claim 1, characterized in that: Obtaining the temperature value collected by the temperature sensor includes: Read the temperature values ​​collected by all temperature sensors in the server; the first operating system can access all temperature sensors in the server.

8. The server fan control method according to claim 7, characterized in that: According to the temperature value collected by the temperature sensor, regulating the server fan through the target bus includes: The server fans are regulated through the target bus according to the temperature values ​​collected by all temperature sensors read by the first operating system itself.

9. The server fan control method according to claim 1, characterized in that: The first operating system runs on a single processing core.

10. The server fan control method according to claim 2, characterized in that: The second operating system runs on multiple processing cores.

11. The server fan control method according to claim 3, characterized in that: Also includes: If the temperature value transmitted by the second operating system is not credible, information indicating that the temperature value transmitted by the second operating system is not credible is transmitted to the second operating system.

12. The server fan control method according to claim 3, characterized in that: Also includes: Counting the number of times that the temperature value transmitted by the second operating system is unreliable; Determining whether the number of times that the temperature value transmitted by the second operating system is unreliable reaches a preset threshold; If it is reached, an alarm will be issued.

13. A management controller, characterized in that: The management controller adopts a trusted region architecture, and the management controller includes a first operating system, the first operating system is located in a secure world under the trusted region architecture, and the first operating system is integrated with a server fan control script; the management controller is used to run the server fan control script to obtain a temperature value collected by a temperature sensor in the server; According to the temperature value collected by the temperature sensor, the server fan is regulated through the target bus.

14. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the server fan control method according to any one of claims 1 to 12 are implemented.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the server fan control method according to any one of claims 1 to 12 are implemented.

Citation Information

Patent Citations

  • Method, device and equipment of acquiring CPU temperature by BMC

    CN108427617A

  • General purpose computation, trusted computation and cryptographic computation integrated safety processor

    CN108491727A

  • A server heat dissipation regulation and control method

    CN109947221A

  • Server heat dissipation control method and system

    CN111026611A

  • Server heat dissipation system and method, electronic equipment and storage medium

    CN115469728A

Cited By

  • Control method and device of heat dissipation equipment

    CN120447701A

  • Fan management and control method and device in BMC starting process, equipment and medium

    CN121478358A

  • Server fan regulation method, controller, computer program product, and medium

    WO2026144785A1