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