Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta-ibm: Add GPU themal policy #95

Merged
merged 1 commit into from
Mar 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,29 @@
- meta: SENSOR
path: /xyz/openbmc_project/sensors/temperature/ambient_temp

- name: gpu sensors
description: >
'Each gpu has its own temperature sensor.'
class: group
group: path
members:
- meta: SENSOR
path: /xyz/openbmc_project/sensors/temperature/gpu0
- meta: SENSOR
path: /xyz/openbmc_project/sensors/temperature/gpu1
- meta: SENSOR
path: /xyz/openbmc_project/sensors/temperature/gpu2
- meta: SENSOR
path: /xyz/openbmc_project/sensors/temperature/gpu3
- meta: SENSOR
path: /xyz/openbmc_project/sensors/temperature/gpu4
- meta: SENSOR
path: /xyz/openbmc_project/sensors/temperature/gpu5
- meta: SENSOR
path: /xyz/openbmc_project/sensors/temperature/gpu6
- meta: SENSOR
path: /xyz/openbmc_project/sensors/temperature/gpu7

- name: core temp
description: >
'Monitor the temperature of each core.'
Expand All @@ -138,6 +161,17 @@
meta: TEMP
property: Value

- name: gpu temp
description: >
'Monitor the temperature of each gpu core.'
class: group
group: property
type: int64
members:
- interface: xyz.openbmc_project.Sensor.Value
meta: TEMP
property: Value

- name: watch core temps
description: >
'Trigger logic on core temp changes.'
Expand All @@ -156,6 +190,15 @@
properties: ambient temp
callback: check ambient temp

- name: watch gpu temps
description: >
'Trigger logic on gpu core temp changes.'
class: watch
watch: property
paths: gpu sensors
properties: gpu temp
callback: check gpu temps

- name: check temps
description: >
'If this condition passes at least three cores are running
Expand Down Expand Up @@ -185,6 +228,20 @@
bound: 45000
oneshot: true

- name: check gpu temps
description: >
'If the gpu temperature sensor is too hot. Shut the system down.'
class: condition
condition: count
paths: gpu sensors
properties: gpu temp
callback: gpu log and shutdown
countop: '>='
countbound: 1
op: '>='
bound: 92
oneshot: true

- name: log and shutdown
description: >
'Shut the system down and log an event.'
Expand All @@ -205,6 +262,16 @@
- create ambient criticalhigh error
- create ambient shutdown error

- name: gpu log and shutdown
description: >
'Shut the system down and log an event.'
class: callback
callback: group
members:
- shutdown
- create gpu criticalhigh error
- create gpu shutdown error

- name: shutdown
description: >
'Shut down the system.'
Expand Down Expand Up @@ -240,6 +307,16 @@
error: xyz::openbmc_project::Sensor::Threshold::Error::CriticalHigh
metadata: xyz::openbmc_project::Sensor::Threshold::CriticalHigh::SENSOR_DATA

- name: create gpu criticalhigh error
description: >
'Create a GPU CriticalHigh Error log.'
class: callback
callback: elog_with_metadata
paths: gpu sensors
properties: gpu temp
error: xyz::openbmc_project::Sensor::Threshold::Error::CriticalHigh
metadata: xyz::openbmc_project::Sensor::Threshold::CriticalHigh::SENSOR_DATA

- name: create shutdown error
description: >
'Create a SystemShutdown Error log.'
Expand All @@ -257,3 +334,12 @@
paths: ambient sensor
properties: ambient temp
error: xyz::openbmc_project::State::Shutdown::ThermalEvent::Error::Ambient

- name: create gpu shutdown error
description: >
'Create a SystemShutdown Error log.'
class: callback
callback: elog
paths: gpu sensors
properties: gpu temp
error: xyz::openbmc_project::State::Shutdown::ThermalEvent::Error::GPU