Skip to content

Commit d0cabde

Browse files
zhongedwardfacebook-github-bot
authored andcommitted
Icecube: config: added the preEVT first version of fan service (#399)
Summary: Description This PR is for icecube fan service config file. Motivation 1.This is a draft version of icecube fan service, which is discussed by ee,thermal team, sw.In the future the parameters will be changed. 2.In the config file currently only 4 thermal sensors,thermal said not need the OSFP optical module. "CPU_UNCORE_TEMP", "PIC_T_U13_INLET_LM75_2_TEMP", "PIC_B_U12_INLET_LM75_1_TEMP", "POWER_BRICK3_TEMP1" Test Plan 1.The correctness of the format has been verified on this website https://jsonlint.com/ 2.Used jq cmd to pretty the format. 3.Test log as follows: I1014 20:02:48.066027 9501 Bsp.cpp:327] Got sensor data from sensor_service. Item count: 86 I1014 20:02:48.066051 9501 ControlLogic.cpp:91] Successfully fetched sensor data. I1014 20:02:48.066054 9501 ControlLogic.cpp:101] Successfully fetched optics data. I1014 20:02:48.066058 9501 ControlLogic.cpp:570] Processing Fans ... I1014 20:02:48.066497 9501 ControlLogic.cpp:358] FAN_1_F: is present in the host (through sysfs) I1014 20:02:48.066921 9501 ControlLogic.cpp:160] FAN_1_F: RPM read is 11100 I1014 20:02:48.067341 9501 ControlLogic.cpp:358] FAN_1_R: is present in the host (through sysfs) I1014 20:02:48.067862 9501 ControlLogic.cpp:160] FAN_1_R: RPM read is 10050 I1014 20:02:48.068281 9501 ControlLogic.cpp:358] FAN_2_F: is present in the host (through sysfs) I1014 20:02:48.068701 9501 ControlLogic.cpp:160] FAN_2_F: RPM read is 10950 I1014 20:02:48.069128 9501 ControlLogic.cpp:358] FAN_2_R: is present in the host (through sysfs) I1014 20:02:48.069548 9501 ControlLogic.cpp:160] FAN_2_R: RPM read is 10200 I1014 20:02:48.070070 9501 ControlLogic.cpp:358] FAN_3_F: is present in the host (through sysfs) I1014 20:02:48.070592 9501 ControlLogic.cpp:160] FAN_3_F: RPM read is 10950 I1014 20:02:48.071012 9501 ControlLogic.cpp:358] FAN_3_R: is present in the host (through sysfs) I1014 20:02:48.071433 9501 ControlLogic.cpp:160] FAN_3_R: RPM read is 10050 I1014 20:02:48.071954 9501 ControlLogic.cpp:358] FAN_4_F: is present in the host (through sysfs) I1014 20:02:48.072476 9501 ControlLogic.cpp:160] FAN_4_F: RPM read is 10800 I1014 20:02:48.072896 9501 ControlLogic.cpp:358] FAN_4_R: is present in the host (through sysfs) I1014 20:02:48.073317 9501 ControlLogic.cpp:160] FAN_4_R: RPM read is 10050 I1014 20:02:48.073322 9501 ControlLogic.cpp:616] Processing Sensors ... E1014 20:02:48.073327 9501 ControlLogic.cpp:229] CPU_UNCORE_TEMP: Sensor read value is 44 I1014 20:02:48.073333 9501 ControlLogic.cpp:212] CPU_UNCORE_TEMP: Calculated PWM is 0 E1014 20:02:48.073338 9501 ControlLogic.cpp:229] PIC_T_U13_INLET_LM75_2_TEMP: Sensor read value is 35.75 I1014 20:02:48.073344 9501 ControlLogic.cpp:212] PIC_T_U13_INLET_LM75_2_TEMP: Calculated PWM is 60 E1014 20:02:48.073349 9501 ControlLogic.cpp:229] PIC_B_U12_INLET_LM75_1_TEMP: Sensor read value is 34.875 I1014 20:02:48.073354 9501 ControlLogic.cpp:212] PIC_B_U12_INLET_LM75_1_TEMP: Calculated PWM is 50 E1014 20:02:48.073359 9501 ControlLogic.cpp:229] POWER_BRICK3_TEMP1: Sensor read value is 34 I1014 20:02:48.073364 9501 ControlLogic.cpp:212] POWER_BRICK3_TEMP1: Calculated PWM is 0 I1014 20:02:48.073368 9501 ControlLogic.cpp:620] Processing Optics ... I1014 20:02:48.073373 9501 ControlLogic.cpp:642] Boost mode enabled for optics update missing for 1728950568s I1014 20:02:48.073379 9501 ControlLogic.cpp:499] zone1: Components: CPU_UNCORE_TEMP,PIC_T_U13_INLET_LM75_2_TEMP,PIC_B_U12_INLET_LM75_1_TEMP,POWER_BRICK3_TEMP1. Aggregation Type: ZONE_TYPE_MAX. Aggregate PWM is 70. I1014 20:02:48.074208 9501 ControlLogic.cpp:436] FAN_1_F: Programmed with PWM 70 (raw value 28) I1014 20:02:48.075034 9501 ControlLogic.cpp:436] FAN_1_R: Programmed with PWM 70 (raw value 28) [icecube_fan_service_test_log_4_17.txt](https://github.com/user-attachments/files/19807418/icecube_fan_service_test_log_4_17.txt) Pull Request resolved: #399 Reviewed By: ezeob002 Differential Revision: D73519858 Pulled By: mikechoifb fbshipit-source-id: 8423112bf3099237d86c7c6041ca13553d8d474a
1 parent 5571a26 commit d0cabde

File tree

1 file changed

+240
-0
lines changed

1 file changed

+240
-0
lines changed
Lines changed: 240 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,240 @@
1+
{
2+
"pwmBoostOnNumDeadFan": 2,
3+
"pwmBoostOnNumDeadSensor": 0,
4+
"pwmBoostOnNoQsfpAfterInSec": 0,
5+
"pwmBoostValue": 70,
6+
"pwmTransitionValue": 45,
7+
"pwmLowerThreshold": 25,
8+
"pwmUpperThreshold": 70,
9+
"watchdog": {
10+
"sysfsPath": "/run/devmap/watchdogs/FAN_WATCHDOG",
11+
"value": 0
12+
},
13+
"controlInterval": {
14+
"sensorReadInterval": 5,
15+
"pwmUpdateInterval": 5
16+
},
17+
"sensors": [
18+
{
19+
"sensorName": "CPU_UNCORE_TEMP",
20+
"access": {
21+
"accessType": "ACCESS_TYPE_THRIFT"
22+
},
23+
"pwmCalcType": "SENSOR_PWM_CALC_TYPE_PID",
24+
"pidSetting": {
25+
"kp": -4,
26+
"ki": -0.06,
27+
"kd": 0,
28+
"setPoint": 97.0,
29+
"posHysteresis": 0.0,
30+
"negHysteresis": 8.0
31+
}
32+
},
33+
{
34+
"sensorName": "PIC_T_U13_INLET_LM75_2_TEMP",
35+
"access": {
36+
"accessType": "ACCESS_TYPE_THRIFT"
37+
},
38+
"pwmCalcType": "SENSOR_PWM_CALC_TYPE_FOUR_LINEAR_TABLE",
39+
"normalUpTable": {
40+
"30": 50,
41+
"35": 60,
42+
"37": 65,
43+
"42": 70
44+
},
45+
"normalDownTable": {
46+
"28": 50,
47+
"33": 60,
48+
"35": 65,
49+
"40": 70
50+
},
51+
"failUpTable": {
52+
"30": 55,
53+
"35": 65,
54+
"37": 70,
55+
"42": 75
56+
},
57+
"failDownTable": {
58+
"28": 55,
59+
"33": 65,
60+
"35": 70,
61+
"40": 75
62+
}
63+
},
64+
{
65+
"sensorName": "PIC_B_U12_INLET_LM75_1_TEMP",
66+
"access": {
67+
"accessType": "ACCESS_TYPE_THRIFT"
68+
},
69+
"pwmCalcType": "SENSOR_PWM_CALC_TYPE_FOUR_LINEAR_TABLE",
70+
"normalUpTable": {
71+
"30": 50,
72+
"35": 60,
73+
"37": 65,
74+
"42": 70
75+
},
76+
"normalDownTable": {
77+
"28": 50,
78+
"33": 60,
79+
"35": 65,
80+
"40": 70
81+
},
82+
"failUpTable": {
83+
"30": 55,
84+
"35": 65,
85+
"37": 70,
86+
"42": 75
87+
},
88+
"failDownTable": {
89+
"28": 55,
90+
"33": 65,
91+
"35": 70,
92+
"40": 75
93+
}
94+
},
95+
{
96+
"sensorName": "POWER_BRICK3_TEMP1",
97+
"access": {
98+
"accessType": "ACCESS_TYPE_THRIFT"
99+
},
100+
"pwmCalcType": "SENSOR_PWM_CALC_TYPE_PID",
101+
"pidSetting": {
102+
"kp": -8,
103+
"ki": -0.06,
104+
"kd": 0,
105+
"setPoint": 105.0,
106+
"posHysteresis": 0.0,
107+
"negHysteresis": 3.0
108+
}
109+
}
110+
],
111+
"fans": [
112+
{
113+
"fanName": "FAN_1_F",
114+
"rpmSysfsPath": "/run/devmap/sensors/MCB_FAN_CPLD/fan1_input",
115+
"pwmSysfsPath": "/run/devmap/sensors/MCB_FAN_CPLD/pwm1",
116+
"presenceSysfsPath": "/run/devmap/sensors/MCB_FAN_CPLD/fan1_present",
117+
"pwmMin": 0,
118+
"pwmMax": 40,
119+
"fanPresentVal": 1,
120+
"fanMissingVal": 0,
121+
"fanGoodLedVal": 1,
122+
"fanFailLedVal": 2,
123+
"rpmMin": 1500
124+
},
125+
{
126+
"fanName": "FAN_1_R",
127+
"rpmSysfsPath": "/run/devmap/sensors/MCB_FAN_CPLD/fan2_input",
128+
"pwmSysfsPath": "/run/devmap/sensors/MCB_FAN_CPLD/pwm1",
129+
"presenceSysfsPath": "/run/devmap/sensors/MCB_FAN_CPLD/fan1_present",
130+
"pwmMin": 0,
131+
"pwmMax": 40,
132+
"fanPresentVal": 1,
133+
"fanMissingVal": 0,
134+
"fanGoodLedVal": 1,
135+
"fanFailLedVal": 2,
136+
"rpmMin": 1500
137+
},
138+
{
139+
"fanName": "FAN_2_F",
140+
"rpmSysfsPath": "/run/devmap/sensors/MCB_FAN_CPLD/fan3_input",
141+
"pwmSysfsPath": "/run/devmap/sensors/MCB_FAN_CPLD/pwm2",
142+
"presenceSysfsPath": "/run/devmap/sensors/MCB_FAN_CPLD/fan2_present",
143+
"pwmMin": 0,
144+
"pwmMax": 40,
145+
"fanPresentVal": 1,
146+
"fanMissingVal": 0,
147+
"fanGoodLedVal": 1,
148+
"fanFailLedVal": 2,
149+
"rpmMin": 1500
150+
},
151+
{
152+
"fanName": "FAN_2_R",
153+
"rpmSysfsPath": "/run/devmap/sensors/MCB_FAN_CPLD/fan4_input",
154+
"pwmSysfsPath": "/run/devmap/sensors/MCB_FAN_CPLD/pwm2",
155+
"presenceSysfsPath": "/run/devmap/sensors/MCB_FAN_CPLD/fan2_present",
156+
"pwmMin": 0,
157+
"pwmMax": 40,
158+
"fanPresentVal": 1,
159+
"fanMissingVal": 0,
160+
"fanGoodLedVal": 1,
161+
"fanFailLedVal": 2,
162+
"rpmMin": 1500
163+
},
164+
{
165+
"fanName": "FAN_3_F",
166+
"rpmSysfsPath": "/run/devmap/sensors/MCB_FAN_CPLD/fan5_input",
167+
"pwmSysfsPath": "/run/devmap/sensors/MCB_FAN_CPLD/pwm3",
168+
"presenceSysfsPath": "/run/devmap/sensors/MCB_FAN_CPLD/fan3_present",
169+
"pwmMin": 0,
170+
"pwmMax": 40,
171+
"fanPresentVal": 1,
172+
"fanMissingVal": 0,
173+
"fanGoodLedVal": 1,
174+
"fanFailLedVal": 2,
175+
"rpmMin": 1500
176+
},
177+
{
178+
"fanName": "FAN_3_R",
179+
"rpmSysfsPath": "/run/devmap/sensors/MCB_FAN_CPLD/fan6_input",
180+
"pwmSysfsPath": "/run/devmap/sensors/MCB_FAN_CPLD/pwm3",
181+
"presenceSysfsPath": "/run/devmap/sensors/MCB_FAN_CPLD/fan3_present",
182+
"pwmMin": 0,
183+
"pwmMax": 40,
184+
"fanPresentVal": 1,
185+
"fanMissingVal": 0,
186+
"fanGoodLedVal": 1,
187+
"fanFailLedVal": 2,
188+
"rpmMin": 1500
189+
},
190+
{
191+
"fanName": "FAN_4_F",
192+
"rpmSysfsPath": "/run/devmap/sensors/MCB_FAN_CPLD/fan7_input",
193+
"pwmSysfsPath": "/run/devmap/sensors/MCB_FAN_CPLD/pwm4",
194+
"presenceSysfsPath": "/run/devmap/sensors/MCB_FAN_CPLD/fan4_present",
195+
"pwmMin": 0,
196+
"pwmMax": 40,
197+
"fanPresentVal": 1,
198+
"fanMissingVal": 0,
199+
"fanGoodLedVal": 1,
200+
"fanFailLedVal": 2,
201+
"rpmMin": 1500
202+
},
203+
{
204+
"fanName": "FAN_4_R",
205+
"rpmSysfsPath": "/run/devmap/sensors/MCB_FAN_CPLD/fan8_input",
206+
"pwmSysfsPath": "/run/devmap/sensors/MCB_FAN_CPLD/pwm4",
207+
"presenceSysfsPath": "/run/devmap/sensors/MCB_FAN_CPLD/fan4_present",
208+
"pwmMin": 0,
209+
"pwmMax": 40,
210+
"fanPresentVal": 1,
211+
"fanMissingVal": 0,
212+
"fanGoodLedVal": 1,
213+
"fanFailLedVal": 2,
214+
"rpmMin": 1500
215+
}
216+
],
217+
"zones": [
218+
{
219+
"zoneType": "ZONE_TYPE_MAX",
220+
"zoneName": "zone1",
221+
"sensorNames": [
222+
"CPU_UNCORE_TEMP",
223+
"PIC_T_U13_INLET_LM75_2_TEMP",
224+
"PIC_B_U12_INLET_LM75_1_TEMP",
225+
"POWER_BRICK3_TEMP1"
226+
],
227+
"fanNames": [
228+
"FAN_1_F",
229+
"FAN_1_R",
230+
"FAN_2_F",
231+
"FAN_2_R",
232+
"FAN_3_F",
233+
"FAN_3_R",
234+
"FAN_4_F",
235+
"FAN_4_R"
236+
],
237+
"slope": 10
238+
}
239+
]
240+
}

0 commit comments

Comments
 (0)