witherspoon - Speed changes on GPU core temps
Change-Id: I8f7d18fd0131eb3035877ee3c51fd049bd0b756e
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config-native/events.yaml b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config-native/events.yaml
index c9c1dd6..b4dda5e 100644
--- a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config-native/events.yaml
+++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config-native/events.yaml
@@ -107,6 +107,16 @@
- /temperature/dimm13_temp
- /temperature/dimm14_temp
- /temperature/dimm15_temp
+ - name: zone0_gpu_cores
+ description: Group of gpu core temperature sensors for zone 0
+ type: /xyz/openbmc_project/sensors
+ members:
+ - /temperature/gpu0_core_temp
+ - /temperature/gpu1_core_temp
+ - /temperature/gpu2_core_temp
+ - /temperature/gpu3_core_temp
+ - /temperature/gpu4_core_temp
+ - /temperature/gpu5_core_temp
preconditions:
- name: property_states_match
@@ -379,3 +389,35 @@
type: uint64_t
timer:
interval: 5
+ - name: speed_changes_based_on_gpu_core_temps
+ zone_conditions:
+ - name: air_cooled_chassis
+ zones:
+ - 0
+ - name: water_and_air_cooled_chassis
+ zones:
+ - 0
+ group: zone0_gpu_cores
+ interface: xyz.openbmc_project.Sensor.Value
+ property:
+ name: Value
+ type: int64_t
+ actions:
+ - name: set_net_increase_speed
+ property: 78000
+ factor:
+ value: 1000
+ type: int64_t
+ delta:
+ value: 600
+ type: uint64_t
+ - name: set_net_decrease_speed
+ property: 75000
+ factor:
+ value: 1000
+ type: int64_t
+ delta:
+ value: 40
+ type: uint64_t
+ timer:
+ interval: 5