Fan Tuning

From RCS Wiki
Jump to navigation Jump to search

Fan profile tuning on Talos II systems


THIS ARTICLE IS WORK IN PROGRESS AND STILL EXPERIMENTAL. USE AT YOUR OWN RISK, DON'T BURN OR OVERHEAT YOUR HARDWARE!


There are number of components on OpenBMC dedicated to fan operation and monitoring.


Reminder of Fan zone configuration on Talos II

  • Zone 1: CPU 1 (1 fan) in the manual
    • zone0 in the yaml files
      • fan4 in the yaml files
  • Zone 2: CPU 2 (1 fan) in the manual
    • zone1 in the yaml files
      • fan5 in the yaml files
  • Zone 3: Chassis (4 fans, fifth connector not monitored) in the manual
    • zone2 in the yaml files
      • fan0 fan1 fan2 fan3 in the yaml files


To tune fan profiles one needs to modify yaml files and recompile firmware.

start by cloning

$ git clone -b raptor-v1.07 https://git.raptorcs.com/git/talos-openbmc

if you want beta firmware, you need to checkout another branch (04-16-2019 at the time of this page creation)

for 1.07 fan profiles are stored in meta-openbmc-machines/meta-openpower/meta-rcs/meta-talos/recipes-phosphor/fans for beta versions fan profiles are stored in meta-rcs/meta-talos/recipes-phosphor/fans


phosphor-fan-monitor-config-native/monitor.yaml

this file contains monitor settings

in the monitor config the most interesting value for us is deviation: -500

RCS created a patch https://git.raptorcs.com/git/phosphor-fan-presence/commit/?id=696aed8abe58696e5eb173da38b848825523883a which allows specifying negative deviation, which tells monitor that this value is the minimum RPM fan is allowed to rotate before it's considered failed.

Keep this patch in mind, as openbmc upstream documents this value differently.

If your FAN operating range allows lower RPM you would want to set this value here. For example, some Noctua fans allows 300RPM (+-20%).

Thus if thermal conditions allow fan to spin down to 300 RPM, the monitor will consider this a fan failure and will re-attempt to spin it up and will fail again several seconds later, creating and endless loop of fan spinup<->failure events.


phosphor-fan-control-zone-config-native/zones.yaml

this file contains zone settings

example config files with explanation: https://git.raptorcs.com/git/phosphor-fan-presence/tree/control/example

in the zone config the full_speed: 1000 is a mapped from absolute sensor value to logical number which roughly means max fan RPM, do not edit it.


most interesting value to edit is default_floor: 100

Default floor speed for the zone that fan speeds can not go below.


this value determines default minimum value relative to full_speed RPM fan will try to maintain if target temperature conditions are satisfied.

for example if full_speed = 1000, default_floor: 100 will try to spin down to 10% of it's full speed. for 4000RPM fan it will spin at 400RPM if thermal conditions are satisfied.

make sure that speed resulting from default floor is equal or more than absolute value of negative deviation in the monitor config.


phosphor-fan-control-events-config-native/events.yaml

this file contain event response configuration. editing this file is out of scope of this article for now.



After modifying yaml files, proceed to Compiling_Firmware, you only need to build openbmc, skip the checkout step as you already have the sources with local modifications.

example diff from Gyakovlev for 04-16-2019 branch firmware

this sets CPU fans to never spin down below 30% of max RPM and chassis fans to never go below 20% of max RPM.

diff --git a/meta-rcs/meta-talos/recipes-phosphor/fans/phosphor-fan-control-zone-config-native/zones.yaml b/meta-rcs/meta-talos/recipes-phosphor/fans/phosphor-fan-control-zone-config-native/zones.yaml
index 588fed35c..755345f8e 100644
--- a/meta-rcs/meta-talos/recipes-phosphor/fans/phosphor-fan-control-zone-config-native/zones.yaml
+++ b/meta-rcs/meta-talos/recipes-phosphor/fans/phosphor-fan-control-zone-config-native/zones.yaml
@@ -13,7 +13,7 @@ zone_configuration:
       - air
       - all
       full_speed: 1000
-      default_floor: 100
+      default_floor: 300
       increase_delay: 5
       decrease_interval: 5
     - zone: 1
@@ -21,7 +21,7 @@ zone_configuration:
       - air
       - all
       full_speed: 1000
-      default_floor: 100
+      default_floor: 300
       increase_delay: 5
       decrease_interval: 5
     - zone: 2
@@ -29,7 +29,7 @@ zone_configuration:
       - air
       - all
       full_speed: 1000
-      default_floor: 100
+      default_floor: 200
       increase_delay: 5
       decrease_interval: 5
 
@@ -43,7 +43,7 @@ zone_configuration:
       - water
       - all
       full_speed: 1000
-      default_floor: 100
+      default_floor: 300
       increase_delay: 5
       decrease_interval: 5
     - zone: 2
@@ -51,6 +51,6 @@ zone_configuration:
       - water
       - all
       full_speed: 1000
-      default_floor: 100
+      default_floor: 200
       increase_delay: 5
       decrease_interval: 5