blob: 10c739d31c1bb1e9923518c3a2100fbbd6585bdb [file] [log] [blame]
Jayashree Dhanapala53be202022-06-24 18:11:29 +05301[
2 {
3 "Desc": {
BonnieLo-wiwynn9f538d02022-11-30 17:28:08 +08004 "Name": "BB_ADC_FAN_OUTPUT_CURR_A",
5 "SensorType": "current",
6 "MinValue": 0
Jayashree Dhanapala53be202022-06-24 18:11:29 +05307 },
8
9 "Threshold": {
BonnieLo-wiwynn9f538d02022-11-30 17:28:08 +080010 "CriticalHigh": 28.6,
11 "HardShutdownHigh": 39.2
Jayashree Dhanapala53be202022-06-24 18:11:29 +053012 },
13
14 "Params": {
15 "ConstParam": [
16 {
17 "ParamName": "P1",
BonnieLo-wiwynn9f538d02022-11-30 17:28:08 +080018 "Value": 0.157
19 },
20 {
21 "ParamName": "P2",
22 "Value": 0.33
23 },
24 {
25 "ParamName": "P3",
26 "Value": 2.5
27 },
28 {
29 "ParamName": "P4",
30 "Value": 0.96
31 },
32 {
33 "ParamName": "P5",
34 "Value": 0.15
35 }
36 ],
37
38 "DbusParam": [
39 {
40 "ParamName": "P6",
41 "Desc": {
42 "Name": "BB_ADC_FAN_ISENSE_VOLT_V",
43 "SensorType": "voltage"
44 }
45 }
46 ]
47 },
48
49 "Expression": "( P6 / P1 / P2 - P3 ) * P4 + P5"
50 },
51 {
52 "Desc": {
53 "Name": "BB_ADC_NIC_OUTPUT_CURR_A",
54 "SensorType": "current"
55 },
56
57 "Threshold": {
58 "CriticalHigh": 6.6,
59 "HardShutdownHigh": 8.15
60 },
61
62 "Params": {
63 "ConstParam": [
64 {
65 "ParamName": "P1",
66 "Value": 0.183
Jayashree Dhanapala53be202022-06-24 18:11:29 +053067 }
68 ],
69
70 "DbusParam": [
71 {
72 "ParamName": "P2",
73 "Desc": {
BonnieLo-wiwynn9f538d02022-11-30 17:28:08 +080074 "Name": "BB_ADC_NIC_ISENSE_VOLT_V",
Jayashree Dhanapala53be202022-06-24 18:11:29 +053075 "SensorType": "voltage"
76 }
77 }
78 ]
79 },
80
81 "Expression": "P2 / P1"
82 },
83 {
84 "Desc": {
BonnieLo-wiwynn9f538d02022-11-30 17:28:08 +080085 "Name": "BB_NIC_PWR_W",
86 "SensorType": "power"
Jayashree Dhanapala53be202022-06-24 18:11:29 +053087 },
88
89 "Threshold": {
BonnieLo-wiwynn9f538d02022-11-30 17:28:08 +080090 "CriticalHigh": 82.5,
91 "HardShutdownHigh": 101.875
Jayashree Dhanapala53be202022-06-24 18:11:29 +053092 },
93
94 "Params": {
95 "ConstParam": [
96 {
97 "ParamName": "P1",
BonnieLo-wiwynn9f538d02022-11-30 17:28:08 +080098 "Value": 0.183
Jayashree Dhanapala53be202022-06-24 18:11:29 +053099 }
100 ],
101
102 "DbusParam": [
103 {
104 "ParamName": "P2",
105 "Desc": {
BonnieLo-wiwynn9f538d02022-11-30 17:28:08 +0800106 "Name": "BB_ADC_NIC_P12V_VOLT_V",
107 "SensorType": "voltage"
108 }
109 },
110 {
111 "ParamName": "P3",
112 "Desc": {
113 "Name": "BB_ADC_NIC_ISENSE_VOLT_V",
Jayashree Dhanapala53be202022-06-24 18:11:29 +0530114 "SensorType": "voltage"
115 }
116 }
117 ]
118 },
119
BonnieLo-wiwynn9f538d02022-11-30 17:28:08 +0800120 "Expression": "P2 * ( P3 / P1 )"
121 },
122 {
123 "Desc": {
124 "Name": "BB_MEDUSA_VDELTA_VOLT_V",
125 "SensorType": "voltage"
126 },
127
128 "Threshold": {
129 "CriticalHigh": 0.5
130 },
131
132 "Params": {
133 "DbusParam": [
134 {
135 "ParamName": "P1",
136 "Desc": {
137 "Name": "BB_MEDUSA_INPUT_VOLT_V",
138 "SensorType": "voltage"
139 }
140 },
141 {
142 "ParamName": "P2",
143 "Desc": {
144 "Name": "BB_MEDUSA_OUTPUT_VOLT_V",
145 "SensorType": "voltage"
146 }
147 }
148 ]
149 },
150
151 "Expression": "P1 - P2"
152 },
153 {
154 "Desc": {
155 "Name": "BB_CPU_PDB_VDELTA_VOLT_V",
156 "SensorType": "voltage",
157 "MinValue": 0
158 },
159
160 "Threshold": {
161 "CriticalHigh": 0.8
162 },
163
164 "Params": {
165 "DbusParam": [
166 {
167 "ParamName": "P1",
168 "Desc": {
169 "Name": "BB_MEDUSA_OUTPUT_VOLT_V",
170 "SensorType": "voltage"
171 }
172 },
173 {
174 "ParamName": "P2",
175 "Desc": {
176 "Name": "BB_HSC_INPUT_VOLT_V",
177 "SensorType": "voltage"
178 }
179 }
180 ]
181 },
182
183 "Expression": "P1 - P2"
184 },
185 {
186 "Desc": {
187 "Name": "BB_FAN_PWR_W",
188 "SensorType": "power",
189 "MinValue": 0
190 },
191
192 "Threshold": {
193 "CriticalHigh": 396.825,
194 "HardShutdownHigh": 544.88
195 },
196
197 "Params": {
198 "ConstParam": [
199 {
200 "ParamName": "P1",
201 "Value": 0.157
202 },
203 {
204 "ParamName": "P2",
205 "Value": 0.33
206 },
207 {
208 "ParamName": "P3",
209 "Value": 2.5
210 },
211 {
212 "ParamName": "P4",
213 "Value": 0.96
214 },
215 {
216 "ParamName": "P5",
217 "Value": 0.15
218 }
219 ],
220
221 "DbusParam": [
222 {
223 "ParamName": "P6",
224 "Desc": {
225 "Name": "BB_ADC_FAN_ISENSE_VOLT_V",
226 "SensorType": "voltage"
227 }
228 },
229 {
230 "ParamName": "P7",
231 "Desc": {
232 "Name": "BB_MEDUSA_OUTPUT_VOLT_V",
233 "SensorType": "voltage"
234 }
235 }
236 ]
237 },
238
239 "Expression": "(( P6 / P1 / P2 - P3 ) * P4 + P5 ) * P7"
Delphine CC Chiu910b3592022-12-22 11:09:13 +0800240 },
241 {
242 "Desc": {
243 "Name": "BB_SYSTEM_AIRFLOW_CFM",
244 "SensorType": "airflow",
245 "MinValue": 0
246 },
247
248 "Params": {
249 "ConstParam": [
250 {
251 "ParamName": "rotor_single_or_duo",
252 "Value": 1
253 },
254 {
255 "ParamName": "max_support_rotor_per_fan",
256 "Value": 2
257 },
258 {
259 "ParamName": "gradient_single",
260 "Value": 0.0203
261 },
262 {
263 "ParamName": "gradient_duo",
264 "Value": 0
265 },
266 {
267 "ParamName": "displacement_single",
268 "Value": -9.9157
269 },
270 {
271 "ParamName": "displacement_duo",
272 "Value": 0
273 }
274 ],
275
276 "DbusParam": [
277 {
278 "ParamName": "rpm1",
279 "Desc": {
280 "Name": "BB_FAN0_TACH_RPM",
281 "SensorType": "fan_tach"
282 }
283 },
284 {
285 "ParamName": "rpm2",
286 "Desc": {
287 "Name": "BB_FAN1_TACH_RPM",
288 "SensorType": "fan_tach"
289 }
290 },
291 {
292 "ParamName": "rpm3",
293 "Desc": {
294 "Name": "BB_FAN2_TACH_RPM",
295 "SensorType": "fan_tach"
296 }
297 },
298 {
299 "ParamName": "rpm4",
300 "Desc": {
301 "Name": "BB_FAN3_TACH_RPM",
302 "SensorType": "fan_tach"
303 }
304 }
305 ]
306 },
307
308 "Expression": [
309 "(max_support_rotor_per_fan - 1) * (max_support_rotor_per_fan - 2) == 0 ? ",
310 "((rotor_single_or_duo % 2) * (gradient_single * avg(rpm1, rpm2, rpm3, rpm4) + displacement_single)) + ",
311 "(((rotor_single_or_duo - 1) % 2) * (gradient_duo * avg(rpm1, rpm2, rpm3, rpm4) + displacement_duo)) : 0"
312 ]
Jayashree Dhanapala53be202022-06-24 18:11:29 +0530313 }
314]