Server Fan Regulation Method, Controller, Computer Program Product and Medium

A trusted execution environment with integrated fan control scripts in a secure world operation system addresses BMC tampering risks by validating sensor data before controlling fans, ensuring stable server cooling.

CN119396260BActive Publication Date: 2025-07-15INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The vulnerability of server fan control systems to tampering through BMC manipulation poses a risk to the stability and safety of server cooling, which can lead to performance issues or shutdowns.

Method used

Implementing a server fan control method within a trusted execution environment (TEE) where a secure world operation system integrates fan control scripts, allowing temperature data from various sensors to be collected and validated before controlling fans, ensuring tamper-proof operation.

Benefits of technology

Ensures secure and reliable server fan control by isolating the secure world from tampering, maintaining stable cooling even if the non-secure world is compromised.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119396260B_ABST
    Figure CN119396260B_ABST
Patent Text Reader

Abstract

The present invention discloses a server fan control method, a controller, a computer program product and a medium, which relate 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 integrates a server fan control script, and includes: 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. This method can ensure the safe and stable operation of server heat dissipation.
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 particularly relates to a server fan control method, a controller, a computer program product, and a medium. Background Art

[0002] During the operation of a server, components such as processors, memories, and hard disks inside it will generate a large amount of heat, which will cause the server temperature to rise. High temperature will affect the performance of the server and may even cause the server to crash. Therefore, it is particularly necessary to dissipate the heat of the server. The commonly used heat dissipation method is fan heat dissipation, and usually, the server fan is controlled by the BMC (Baseboard Management Controller) of the server. However, the BMC may be damaged artificially, affecting the server heat dissipation. For example, after obtaining the root permission, the BMC is damaged, affecting the server heat dissipation and bringing potential risks to the normal operation of the server. Therefore, how to ensure the safe and stable operation of server heat dissipation has become a technical problem that needs to be solved urgently by those skilled in the art. Summary of the Invention

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

[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. The management controller adopts a trusted region architecture, and the first operating system is located in a secure world under the trusted region architecture. The first operating system integrates a server fan control script, including:

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

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

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

[0008] Reading the temperature values collected by a first type of temperature sensor and a second type of temperature sensor; the first type of temperature sensor is a temperature sensor that can be accessed by the first operating system, and the second type of temperature sensor is a temperature sensor that can be accessed by both the first operating system and a second operating system; the second operating system is located in a normal world under the trusted region architecture.

[0009] Receive the temperature values collected by the second type of temperature sensor and 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.

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

[0011] 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 transmitted by the second operating system, determine whether the temperature value transmitted by the second operating system is trustworthy;

[0012] If it is trustworthy, then regulate the server fan through the target bus according to the temperature values collected by the first type of temperature sensor, the second type of temperature sensor, and the third type of temperature sensor;

[0013] If it is not trustworthy, then 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.

[0014] In some embodiments, determining whether the temperature value transmitted by the second operating system is trustworthy 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 transmitted by the second operating system includes:

[0015] Compare 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 of temperature sensor read by the first operating system itself is consistent with the temperature value collected by the second type of temperature sensor transmitted by the second operating system, then the temperature value transmitted by the second operating system is trustworthy;

[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, then the temperature value transmitted by the second operating system is not trustworthy.

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

[0019] Receive the temperature values collected by the second type of temperature sensor and the third type of temperature sensor 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 the server.

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

[0022] Reading 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] Regulating the server fan 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 further includes:

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

[0029] In some embodiments, it further includes:

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

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

[0032] If it reaches, then give an alarm prompt.

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

[0034] To solve the above technical problems, the present invention further provides a computer program product, including computer programs / instructions, and when the computer programs / instructions are executed by a processor, the steps of the server fan regulation method as described above are implemented.

[0035] To solve the above technical problems, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the server fan regulation method as described above are implemented.

[0036] The server fan regulation method provided by the present invention is applied to a first operating system in a management controller. The management controller adopts a trusted zone architecture, and the first operating system is located in a secure world under the trusted zone architecture. The first operating system integrates a server fan regulation script, and includes: running the server fan regulation script to obtain a temperature value collected by a temperature sensor in the server; and regulating 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, i.e., the trustzone architecture, integrates the server fan regulation function. The first operating system in the secure world is responsible for regulating the server fan, and the first operating system in the secure world is not easily damaged by humans. The isolation degree between the normal world and the secure world under the trustzone architecture is relatively high. The operating system in the normal world has no permission to interfere with the server fan regulation function of the first operating system in the secure world. Even if the root permission of the operating system in the normal world is obtained artificially, the control permission of the server fan cannot be obtained. Therefore, even if the operating system in the normal world is damaged artificially, it will not affect the first operating system in the secure world to implement the server fan regulation function, thereby ensuring the safe and stable operation of the server heat dissipation.

[0038] The management controller, computer program product and medium provided by the present invention all have the above 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 drawings required for the prior art and the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained according to these drawings without creative efforts.

[0040] Figure 1 It is a schematic flowchart of a server fan regulation method provided by an embodiment of the present invention;

[0041] Figure 2Schematic diagram of a server fan control framework provided by an embodiment of the present invention. Detailed implementation manners

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

[0043] To make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0044] Please refer to Figure 1 , Figure 1 which is a schematic flowchart of a server fan control method provided by an embodiment of the present invention. This method is applied to the first operating system in the management controller. The management controller adopts a trusted zone architecture. The first operating system is located in the secure world under the trusted zone architecture. The first operating system integrates a server fan control script, and includes:

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

[0046] S102: Regulate the server fan through the target bus according to the temperature value collected by the temperature sensor.

[0047] In this embodiment, the execution subject of the server fan control method is the first operating system in the management controller. Among them, the management controller adopts a trustzone architecture. The trustzone architecture divides the resources of the entire management controller into two worlds: the secure world and the non-secure world, that is, 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 integrates a server fan control script and has access rights to secure hardware resources. Secure hardware resources are hardware resources that are only accessible to 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 a BMC, a remote controller such as ILO (Integrated Lights-Out), IDRAC (Integrated Dell Remote Access Controller), etc. Taking the BMC as an example of the management controller, refer to Figure 2 As shown, the resources of the BMC are divided into a secure world and a normal world. The BMC OS (Operating System) is the second operating system located in the normal world, and the first operating system is located in the secure world.

[0049] When the BMC starts up, 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. The non-secure hardware resources are the 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 server fan regulation. The first operating system obtains the temperature value collected by the temperature sensor in the server, and according to the temperature value collected by the temperature sensor, regulates the server fan through the target bus to achieve heat dissipation regulation. The target bus can be an I2C (Inter-Integrated Circuit) bus.

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

[0051] Reading the temperature values collected by the first type of temperature sensor and the second type of temperature sensor; the first type of temperature sensor is a temperature sensor that can be accessed by the first operating system, and the second type of temperature sensor is a temperature sensor that can be accessed by both the first operating system and the second operating system; the second operating system is located in the normal world under the trusted area architecture;

[0052] 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; the third type of temperature sensor is a temperature sensor that can be accessed by the second operating system.

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

[0054] For example, the first type of temperature sensor includes a temperature sensor for collecting the temperature of the CPU (Central Processing Unit), etc. After the server starts up, 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 that can be accessed by both the first operating system and the second operating system. The second type of temperature sensor may include an inlet / outlet air 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 have the function of accessing 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 temperature sensors that collect the temperature of the RAID (Redundant Arrays of Independent Disks) card and the temperature of the network card.

[0057] After the server starts, the first operating system runs the server fan control script to start the heat dissipation process and reads the temperature values collected by the first type of temperature sensor and the second type of temperature sensor. After the server starts, the BMC OS, i.e., the second operating system, starts the heat dissipation - related process and reads the temperature values collected by the second type of temperature sensor and the third type of temperature sensor. For example, the second operating system obtains the temperature values of the RAID card, network card, etc. through standard protocols such as MCTP (Management Component Transport Protocol), and obtains the temperature value of the inlet / outlet air temperature sensor through the I2C bus. The second operating system transfers the temperature values collected by the second type of temperature sensor and the third type of temperature sensor that it reads to the first operating system for the first operating system to control the server fan. Among them, the heat dissipation - related process in the second operating system only has the function of reading the sensor temperature and 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 some other temperature sensors and transfers the read temperature values to the first operating system. This can make the first operating system lightweight, minimize the occupancy of hardware resources by the first operating system while ensuring the basic functions of the first operating system, remove complex system features, and make the first operating system respond faster.

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

[0060] Receiving the temperature values collected by the second type of temperature sensor and the third type of temperature sensor transmitted by the second operating system through the trusted firmware.

[0061] The process CA (Communication Agent) related to the heat dissipation of the second operating system acquires the temperature values collected by the second type of temperature sensor and the temperature values collected by the third type of temperature sensor. The process related to heat dissipation accesses the Linux kernel, calls the kernel driver, and writes data such as temperature into the driver (TeeDriver) that interacts between the kernel and the first operating system. Tee Driver works in privileged mode and can pass data such as temperature to the ATF (ARM Trusted Firmware) by calling the SMC command. The ATF has a Secure monitor function (specifically used to monitor the SMC commands transmitted from the normal world) to capture the transmitted commands and data, and further transmit them to the kernel of the first operating system. The kernel of the first operating system parses the commands and data transmitted by the ATF, searches for the TA (Trusted Application) corresponding to parsing the data, and completes the data transmission.

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

[0063] 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 transmitted by the second operating system, determine whether the temperature value transmitted by the second operating system is trustworthy;

[0064] If it is trustworthy, regulate 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;

[0065] If it is not trustworthy, 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.

[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 transmitted by the second operating system, and determines whether the temperature value transmitted by the second operating system is trustworthy 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 trustworthy, the first operating system regulates the server fan according to the temperature values collected by the first type of temperature sensor, the temperature values collected by the second type of temperature sensor, and the temperature values collected by the third type of temperature sensor. If it is not trustworthy, the first operating system regulates the server fan according to the temperature values collected by the first type of temperature sensor and the temperature values collected by the second type of temperature sensor read by the first operating system itself, while ignoring the temperature values transmitted by the second operating system. This can avoid the influence of untrustworthy temperature values on the regulation of the server fan and ensure the accuracy and reliability of the server fan regulation.

[0068] In some embodiments, determining whether the temperature value transmitted by the second operating system is trustworthy according to 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 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 of temperature sensor read by the first operating system itself is consistent 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 trustworthy;

[0071] 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 not trustworthy.

[0072] The first operating system compares 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 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, it is determined that the temperature value transmitted by the second operating system is trustworthy; 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, it is determined that there is a suspicion that the temperature value transmitted by the second operating system has been modified, and the temperature value transmitted by the second operating system is not trustworthy.

[0074] Wherein, 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 the 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 the temperature value collected by the temperature sensor includes:

[0077] Reading the temperature values collected by all the temperature sensors in the server; the first operating system can access all the temperature sensors in the server.

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

[0079] Regulating the server fan through the target bus according to all the temperature values collected by the first operating system itself from the temperature sensors.

[0080] In this embodiment, the first operating system has the ability to access all the temperature sensors in the server and can read the temperature values collected by all the temperature sensors in the server. Based on the temperature values collected by the first operating system itself from all the temperature sensors, the first operating system directly regulates the server fan according to the temperature values it reads itself. The first operating system reads the temperature values collected by all the temperature sensors itself, 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 level between the first operating system and the second operating system and make the regulation of the server fan more secure and reliable.

[0081] In some embodiments, the first operating system runs on a single processing core. 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 except for server fan regulation. For example, functions such as device information management and remote control management are retained. The second operating system can run on multiple processing cores.

[0083] In some embodiments, it further includes:

[0084] Count the number of times the temperature value transmitted by the second operating system is untrustworthy;

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

[0086] If it reaches, give an alarm prompt.

[0087] The first operating system can count the number of times the temperature value transmitted by the second operating system is untrustworthy and determine whether the number of times the temperature value transmitted by the second operating system is untrustworthy 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 are significant security risks in the second operating system. At this time, an alarm prompt can be given. If it does not reach, only the number of times the temperature value transmitted by the second operating system is untrustworthy can be recorded.

[0088] In some embodiments, it further includes:

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

[0090] When the first operating system determines that the temperature value transmitted by the second operating system is untrustworthy, it can transmit information indicating that the temperature value transmitted by the second operating system is untrustworthy to the second operating system. 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 untrustworthy, it indicates that the temperature value obtained by the second operating system is suspected of being maliciously modified, and there are security risks in the second operating system. Therefore, after the second operating system receives the information indicating that the temperature value transmitted by the second operating system is untrustworthy transmitted by the first operating system, the second operating system can also give an alarm prompt.

[0091] In summary, for the server fan control method provided by the present invention, the server fan control function is integrated into the first operating system in the secure world under the trusted domain architecture, i.e., the trustzone architecture. 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 level between the normal world and the secure world under the trustzone architecture is relatively high. The operating system in the normal world has no permission to interfere with the server fan control function of the first operating system in the secure world. Even if the root permission of the operating system in the normal world is obtained artificially, the control permission of the server fan cannot be obtained. Therefore, even if the operating system in the normal world is damaged artificially, it will not affect the first operating system in the secure world to implement the server fan control function, thereby ensuring the safe and stable operation of server heat dissipation.

[0092] The present invention also provides a server fan control device, and the device described below can be correspondingly referred to the method described above. The device is applied to the first operating system in the management controller. The management controller adopts the trusted domain architecture, and the first operating system is located in the secure world under the trusted domain architecture. The first operating system integrates a server fan control script, and includes:

[0093] An acquisition unit, configured to run the server fan control script and acquire the temperature value collected by a temperature sensor in the server.

[0094] A control unit, configured to control the server fan through a target bus according to the temperature value collected by the temperature sensor.

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

[0096] A reading subunit, configured to read the temperature values collected by a first type of temperature sensor and a second type of temperature sensor; the first type of temperature sensor is a temperature sensor that can be accessed by the first operating system, and the second type of temperature sensor is a temperature sensor that can be accessed by both the first operating system and a second operating system; the second operating system is located in the normal world under the trusted domain architecture.

[0097] A receiving subunit, configured to receive the temperature value collected by the second type of temperature sensor and the temperature value collected by a third type of temperature sensor transmitted by the second operating system; the third type of temperature sensor is a temperature sensor that can be accessed by the second operating system.

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

[0099] A judgment 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 type of temperature sensor read by the first operating system itself and the temperature value collected by the second type of temperature sensor transmitted by the second operating system;

[0100] A first regulation subunit, configured to, if it is credible, 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;

[0101] A second regulation subunit, configured to, if it is not credible, regulate the server fan through a 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.

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

[0103] A comparison subunit, configured to compare 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;

[0104] A first determination subunit, configured to, 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 transmitted by the second operating system, the temperature value transmitted by the second operating system is credible;

[0105] A second determination subunit, configured to, 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 not credible.

[0106] Based on the above embodiments, as a specific implementation manner, the receiving subunit is configured to:

[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 transmitted by the second operating system through a trusted firmware.

[0108] Based on the above embodiments, 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 embodiments, as a specific implementation manner, the obtaining unit is configured 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 embodiments, as a specific implementation, the regulation unit is used for:

[0112] Regulate the server fan 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 embodiments, as a specific implementation, the first operating system runs on a single processing core.

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

[0115] Based on the above embodiments, as a specific implementation, it further includes:

[0116] A transmission unit, used to transmit information indicating that the temperature value transmitted by the second operating system is not credible to the second operating system if the temperature value transmitted by the second operating system is not credible.

[0117] Based on the above embodiments, as a specific implementation, it further includes:

[0118] A statistics unit, used to count the number of times that the temperature value transmitted by the second operating system is not credible;

[0119] A judgment unit, used to judge whether the number of times that the temperature value transmitted by the second operating system is not credible reaches a preset threshold;

[0120] An alarm unit, used to give an alarm prompt if it reaches.

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

[0122] Based on the above embodiments, as a specific implementation, the management controller is used for:

[0123] Read the temperature values collected by the first type of temperature sensor and the second type of temperature sensor; the first type of temperature sensor is a temperature sensor accessible to the first operating system, and the second type of 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 normal world under the trusted area architecture.

[0124] Receive the temperature values collected by the second type of temperature sensor and the temperature values 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.

[0125] Based on the above embodiments, as a specific implementation manner, the management controller is used for:

[0126] According to 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 transmitted by the second operating system, determine whether the temperature value transmitted by the second operating system is trustworthy.

[0127] If it is trustworthy, then regulate 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 trustworthy, then 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.

[0129] Based on the above embodiments, as a specific implementation manner, the management controller is used for:

[0130] Compare 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 of temperature sensor read by the first operating system itself is consistent with the temperature value collected by the second type of temperature sensor transmitted by the second operating system, then the temperature value transmitted by the second operating system is trustworthy.

[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, then the temperature value transmitted by the second operating system is not trustworthy.

[0133] Based on the above embodiments, as a specific implementation manner, the management controller is used for:

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

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

[0136] Based on the above embodiments, as a specific implementation manner, the management controller is used for:

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

[0138] Based on the above embodiments, as a specific implementation manner, the management controller is used for:

[0139] Regulate the server fan through the target bus according to the temperature values collected by all the temperature sensors read by the first operating system itself.

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

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

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

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

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

[0145] Count the number of times that the temperature value transmitted by the second operating system is not trustworthy;

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

[0147] If it reaches, give an alarm prompt.

[0148] For the introduction of the management controller provided by the present invention, please refer to the above method embodiments, and the present invention will not be elaborated herein.

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

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

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

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

[0153] For the introduction of the computer-readable storage medium provided by the present invention, please refer to the above method embodiments, and the present invention will not be elaborated herein.

[0154] In the description of the specification, the embodiments are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The same or similar parts among the 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 description of the method part.

[0155] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0156] The steps of the method or algorithm described in combination with the embodiments disclosed herein can be directly implemented by hardware, a software module executed by a processor, or a combination of the two. The software module can be placed in a random access memory (RAM), internal 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 well-known in the technical field.

[0157] The server fan control method, controller, computer program product and medium provided by the present invention have been introduced in detail above. Specific examples are used herein to illustrate the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the present invention.

Claims

1. A server fan control method, characterized in that A first operating system applied to a management controller, the management controller adopting a trusted domain architecture, the first operating system being located in a secure world under the trusted domain architecture, a second operating system being located in a normal world under the trusted domain architecture, the first operating system running on a first processing core, the second operating system running on a second processing core, the first processing core and the second processing core being different processing cores, and the first operating system integrating a server fan control script; including: Running the server fan control script to obtain a temperature value collected by a temperature sensor in the server; wherein, the temperature value includes the temperature value read by the first operating system and the temperature value read by the second operating system and transmitted to the first operating system, and the temperature sensor includes a temperature sensor that can be accessed by both the first operating system and the second operating system; Controlling the server fan through a target bus according to the temperature value collected by the temperature sensor, including: Judging whether the temperature value transmitted by the second operating system is credible according to the temperature values read by the first operating system and the second operating system from the same temperature sensor; If it is credible, controlling the server fan through the target bus according to the temperature value read by the first operating system and the temperature value read by the second operating system; If it is not credible, controlling the server fan through the target bus according to the temperature value read by the first operating system.

2. The server fan control method according to claim 1, characterized in that Obtaining the temperature value collected by the temperature sensor includes: Reading the temperature values collected by a first type of temperature sensor and a second type of temperature sensor; the first type of temperature sensor is a temperature sensor that can be accessed by the first operating system, and the second type of temperature sensor is a temperature sensor that can be accessed by both the first operating system and the second operating system; receiving the temperature values collected by the second type of temperature sensor and the temperature values collected by a third type of temperature sensor transmitted by the second operating system; the third type of temperature sensor is a temperature sensor that can be accessed by the second operating system.

3. The server fan control method according to claim 2, wherein Controlling the server fan through the target bus according to the temperature value collected by the temperature sensor includes: Judging whether the temperature value transmitted by the second operating system is credible according to the temperature value of the second type of temperature sensor collected by the first operating system itself and the temperature value of the second type of temperature sensor transmitted by the second operating system; If it is credible, controlling 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, controlling the server fan through the target bus according to the temperature value collected by the first type of temperature sensor and the temperature value of the second type of temperature sensor read by the first operating system.

4. The server fan regulation method according to claim 3, wherein, Judging whether the temperature value transmitted by the second operating system is credible according to the temperature value of the second type of temperature sensor collected by the first operating system itself and the temperature value of the second type of temperature sensor transmitted by the second operating system includes: Compare 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 of temperature sensor read by the first operating system itself is consistent with the temperature value collected by the second type of 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, then the temperature value transmitted by the second operating system is not credible.

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 transmitted by the second operating system includes: 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 through the trusted firmware.

6. The server fan control method according to claim 2, wherein The first type of temperature sensor includes a temperature sensor for collecting the temperature of the target core component in the server.

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

8. The server fan control method according to claim 7, wherein Regulating the server fan through the target bus according to the temperature value collected by the temperature sensor includes: Regulating the server fan through the target bus according to the temperature values collected by all the 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, wherein, The second operating system runs on multiple processing cores.

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

12. The server fan control method according to claim 3, wherein It also includes: Counting the number of times that the temperature value transmitted by the second operating system is not credible; Judging whether the number of times that the temperature value transmitted by the second operating system is not credible reaches a preset threshold; If it reaches, then give an alarm prompt.

13. A management controller, characterized in that, The management controller adopts a trusted zone architecture. The management controller includes a first operating system, and the first operating system is located in the secure world under the trusted zone architecture. A second operating system is located in the normal world under the trusted zone architecture. The first operating system runs on a first processing core, and the second operating system runs on a second processing core. The first processing core and the second processing core are different processing cores. The first operating system integrates a server fan control script. The management controller is configured to run the server fan control script and obtain the temperature value collected by a temperature sensor in the server. Among them, the temperature value includes the temperature value read by the first operating system and the temperature value read by the second operating system and transmitted to the first operating system. The temperature sensor includes a temperature sensor that can be accessed by both the first operating system and the second operating system. According to the temperature value collected by the temperature sensor, the server fan is regulated through a target bus, including: judging whether the temperature value transmitted by the second operating system is credible according to the temperature values read by the first operating system and the second operating system from the same temperature sensor; if it is credible, the server fan is regulated through the target bus according to the temperature value read by the first operating system and the temperature value read by the second operating system; if it is not credible, the server fan is regulated through the target bus according to the temperature value read by the first operating system.

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, A computer program is stored on the computer-readable storage medium, 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

  • Server heat dissipation control method and system

    CN111026611A