xref: /openbmc/openbmc/meta-ibm/recipes-phosphor/dbus/events-policy/config.yaml (revision e26b91a8ff04d6550fc6a8ac115ad6805228a72f)
1*e1615142SBrad Bishop- name:  occpath group
2*e1615142SBrad Bishop  class: group
3*e1615142SBrad Bishop  group: path
4*e1615142SBrad Bishop  members:
5*e1615142SBrad Bishop    - meta: PATH
6*e1615142SBrad Bishop      path: /org/open_power/control/occ0
7*e1615142SBrad Bishop
8*e1615142SBrad Bishop- name:  occproctemp property
9*e1615142SBrad Bishop  class: group
10*e1615142SBrad Bishop  group: property
11*e1615142SBrad Bishop  type:  boolean
12*e1615142SBrad Bishop  members:
13*e1615142SBrad Bishop    - interface: org.open_power.OCC.Status
14*e1615142SBrad Bishop      meta: PROPERTY
15*e1615142SBrad Bishop      property: ThrottleProcTemp
16*e1615142SBrad Bishop
17*e1615142SBrad Bishop- name:  occprocpower property
18*e1615142SBrad Bishop  class: group
19*e1615142SBrad Bishop  group: property
20*e1615142SBrad Bishop  type:  boolean
21*e1615142SBrad Bishop  members:
22*e1615142SBrad Bishop    - interface: org.open_power.OCC.Status
23*e1615142SBrad Bishop      meta: PROPERTY
24*e1615142SBrad Bishop      property: ThrottleProcPower
25*e1615142SBrad Bishop
26*e1615142SBrad Bishop- name:  occmemtemp property
27*e1615142SBrad Bishop  class: group
28*e1615142SBrad Bishop  group: property
29*e1615142SBrad Bishop  type:  boolean
30*e1615142SBrad Bishop  members:
31*e1615142SBrad Bishop    - interface: org.open_power.OCC.Status
32*e1615142SBrad Bishop      meta: PROPERTY
33*e1615142SBrad Bishop      property: ThrottleMemTemp
34*e1615142SBrad Bishop
35*e1615142SBrad Bishop- name: watch occproctemp
36*e1615142SBrad Bishop  class: watch
37*e1615142SBrad Bishop  watch: property
38*e1615142SBrad Bishop  paths: occpath group
39*e1615142SBrad Bishop  properties: occproctemp property
40*e1615142SBrad Bishop  callback: check occproctemp
41*e1615142SBrad Bishop
42*e1615142SBrad Bishop- name: watch occprocpower
43*e1615142SBrad Bishop  class: watch
44*e1615142SBrad Bishop  watch: property
45*e1615142SBrad Bishop  paths: occpath group
46*e1615142SBrad Bishop  properties: occprocpower property
47*e1615142SBrad Bishop  callback: check occprocpower
48*e1615142SBrad Bishop
49*e1615142SBrad Bishop- name: watch occmemtemp
50*e1615142SBrad Bishop  class: watch
51*e1615142SBrad Bishop  watch: property
52*e1615142SBrad Bishop  paths: occpath group
53*e1615142SBrad Bishop  properties: occmemtemp property
54*e1615142SBrad Bishop  callback: check occmemtemp
55*e1615142SBrad Bishop
56*e1615142SBrad Bishop- name: check occproctemp
57*e1615142SBrad Bishop  class: condition
58*e1615142SBrad Bishop  condition: count
59*e1615142SBrad Bishop  paths: occpath group
60*e1615142SBrad Bishop  properties: occproctemp property
61*e1615142SBrad Bishop  defer: 1000us
62*e1615142SBrad Bishop  callback: create occproctemp event
63*e1615142SBrad Bishop  countop: '=='
64*e1615142SBrad Bishop  countbound: 1
65*e1615142SBrad Bishop  op: '=='
66*e1615142SBrad Bishop  bound: true
67*e1615142SBrad Bishop
68*e1615142SBrad Bishop- name: check occprocpower
69*e1615142SBrad Bishop  class: condition
70*e1615142SBrad Bishop  condition: count
71*e1615142SBrad Bishop  paths: occpath group
72*e1615142SBrad Bishop  properties: occprocpower property
73*e1615142SBrad Bishop  defer: 1000us
74*e1615142SBrad Bishop  callback: create occprocpower event
75*e1615142SBrad Bishop  countop: '=='
76*e1615142SBrad Bishop  countbound: 1
77*e1615142SBrad Bishop  op: '=='
78*e1615142SBrad Bishop  bound: true
79*e1615142SBrad Bishop
80*e1615142SBrad Bishop- name: check occmemtemp
81*e1615142SBrad Bishop  class: condition
82*e1615142SBrad Bishop  condition: count
83*e1615142SBrad Bishop  paths: occpath group
84*e1615142SBrad Bishop  properties: occmemtemp property
85*e1615142SBrad Bishop  defer: 1000us
86*e1615142SBrad Bishop  callback: create occmemtemp event
87*e1615142SBrad Bishop  countop: '=='
88*e1615142SBrad Bishop  countbound: 1
89*e1615142SBrad Bishop  op: '=='
90*e1615142SBrad Bishop  bound: true
91*e1615142SBrad Bishop
92*e1615142SBrad Bishop- name: create occproctemp event
93*e1615142SBrad Bishop  class: callback
94*e1615142SBrad Bishop  callback: event
95*e1615142SBrad Bishop  paths: occpath group
96*e1615142SBrad Bishop  properties: occproctemp property
97*e1615142SBrad Bishop  eventName: occ
98*e1615142SBrad Bishop  eventMessage: "Processor throttled due to an over temperature condition."
99*e1615142SBrad Bishop
100*e1615142SBrad Bishop- name: create occprocpower event
101*e1615142SBrad Bishop  class: callback
102*e1615142SBrad Bishop  callback: event
103*e1615142SBrad Bishop  paths: occpath group
104*e1615142SBrad Bishop  properties: occprocpower property
105*e1615142SBrad Bishop  eventName: occ
106*e1615142SBrad Bishop  eventMessage: "Processor throttled due to reaching the power cap limit."
107*e1615142SBrad Bishop
108*e1615142SBrad Bishop- name: create occmemtemp event
109*e1615142SBrad Bishop  class: callback
110*e1615142SBrad Bishop  callback: event
111*e1615142SBrad Bishop  paths: occpath group
112*e1615142SBrad Bishop  properties: occmemtemp property
113*e1615142SBrad Bishop  eventName: occ
114*e1615142SBrad Bishop  eventMessage: "Memory throttled due to an over temperature condition."
115