witherspoon - Speed changes on GPU memory temps
Change-Id: Ia5f13ac55aa15a72df8ea7819eb23d9a57fa8bc9
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config-native/events.yaml b/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config-native/events.yaml
index b4dda5e..ebc92e1 100644
--- a/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config-native/events.yaml
+++ b/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config-native/events.yaml
@@ -117,6 +117,16 @@
- /temperature/gpu3_core_temp
- /temperature/gpu4_core_temp
- /temperature/gpu5_core_temp
+ - name: zone0_gpu_memory
+ description: Group of gpu memory temperature sensors for zone 0
+ type: /xyz/openbmc_project/sensors
+ members:
+ - /temperature/gpu0_mem_temp
+ - /temperature/gpu1_mem_temp
+ - /temperature/gpu2_mem_temp
+ - /temperature/gpu3_mem_temp
+ - /temperature/gpu4_mem_temp
+ - /temperature/gpu5_mem_temp
preconditions:
- name: property_states_match
@@ -421,3 +431,35 @@
type: uint64_t
timer:
interval: 5
+ - name: speed_changes_based_on_gpu_memory_temps
+ zone_conditions:
+ - name: air_cooled_chassis
+ zones:
+ - 0
+ - name: water_and_air_cooled_chassis
+ zones:
+ - 0
+ group: zone0_gpu_memory
+ interface: xyz.openbmc_project.Sensor.Value
+ property:
+ name: Value
+ type: int64_t
+ actions:
+ - name: set_net_increase_speed
+ property: 80000
+ factor:
+ value: 1000
+ type: int64_t
+ delta:
+ value: 600
+ type: uint64_t
+ - name: set_net_decrease_speed
+ property: 77000
+ factor:
+ value: 1000
+ type: int64_t
+ delta:
+ value: 40
+ type: uint64_t
+ timer:
+ interval: 5