Skip to content

Commit c031067

Browse files
pabloyangWWmeta-codesync[bot]
authored andcommitted
fbgc: fbgc2: modify fan speed to max
Summary: # Description - This PR is based on PR#3459, need to merge it first. - Set fan duty cycle to 100% as default. # Motivation - As thermal team's request, set fan duty to 100 as default and wait for their fan table to apply. X-link: https://github.com/facebookexternal/openbmc.wiwynn/pull/3489 Test Plan: - See if fan duty will get 100 when BMC boost up. Log: root@bmc-oob:~# fan-util get Fan 0 Front Speed: 11170 RPM (100%) Fan 0 Rear Speed: 10240 RPM (100%) Fan 1 Front Speed: 11170 RPM (100%) Fan 1 Rear Speed: 10240 RPM (100%) Fan 2 Front Speed: 11170 RPM (100%) Fan 2 Rear Speed: 10240 RPM (100%) Fan 3 Front Speed: 10680 RPM (100%) Fan 3 Rear Speed: 10680 RPM (100%) Fan Mode: Manual(No fscd running) FSCD Driver: Not support in manual mode(No fscd running) Sensor Fail: Not support in manual mode(No fscd running) Fan Fail: Not support in manual mode(No fscd running) Sled Fan Latch Open: False Reviewed By: waffle2k Differential Revision: D90217311 fbshipit-source-id: eac5eb0046ef37f6c2823164446bd831d1110b92
1 parent 6951d60 commit c031067

File tree

80 files changed

+3959
-17872
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+3959
-17872
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
max([
2+
linear_soc_therm_margin(server:bs_therm_margin) + pid_soc_therm_margin(server:bs_therm_margin),
3+
linear_nic_sensor_temp(nic:nic_sensor_temp) + pid_nic_sensor_temp(nic:nic_sensor_temp),
4+
linear_scc_ioc_temp(scc:scc_ioc_temp) + pid_scc_ioc_temp(scc:scc_ioc_temp),
5+
linear_boot_drv_temp(server:bs_boot_drv_temp) + pid_boot_drv_temp(server:bs_boot_drv_temp),
6+
linear_uic_inlet_temp(uic:uic_inlet_temp)
7+
])
Lines changed: 346 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,346 @@
1+
{
2+
"version": "fbgc-type5-pvt-avc-v1",
3+
"pwm_transition_value": 70,
4+
"pwm_boost_value": 80,
5+
"fan_limit_upper_pwm": 90,
6+
"sample_interval_ms": 3000,
7+
"boost": {
8+
"fan_fail": true,
9+
"sensor_fail": true,
10+
"progressive": true
11+
},
12+
"fan_dead_boost": {
13+
"data": [
14+
[1,10],
15+
[2,10]
16+
]
17+
},
18+
"sensor_valid_check": {
19+
"BS": {
20+
"attribute": {
21+
"type" : "host_power_status",
22+
"fru" : "server",
23+
"bic_ready_pin" : "BIC_READY_IN"
24+
}
25+
},
26+
"E1S_(.*)0_TEMP": {
27+
"attribute": {
28+
"type" : "E1S_status",
29+
"gpio_present_pin" : "E1S_1_PRSNT_N",
30+
"e1s_i2c_enable" : "E1S_1_P3V3_PG_R"
31+
}
32+
},
33+
"E1S_(.*)1_TEMP": {
34+
"attribute": {
35+
"type" : "E1S_status",
36+
"gpio_present_pin" : "E1S_2_PRSNT_N",
37+
"e1s_i2c_enable" : "E1S_2_P3V3_PG_R"
38+
}
39+
}
40+
},
41+
"watchdog": false,
42+
"chassis_intrusion": false,
43+
"min_rpm": 400,
44+
"profiles": {
45+
"linear_soc_therm_margin": {
46+
"read_source" : {
47+
"util" : "/usr/local/bin/sensor-util"
48+
},
49+
"type": "linear",
50+
"positive_hysteresis": 0,
51+
"negative_hysteresis": 2,
52+
"data": [
53+
[ -76, 18 ],
54+
[ -16, 18 ],
55+
[ -15, 20 ],
56+
[ -14, 22 ],
57+
[ -13, 24 ],
58+
[ -12, 26 ],
59+
[ -11, 28 ],
60+
[ -10, 30 ],
61+
[ -9, 32 ],
62+
[ -8, 34 ],
63+
[ -7, 38 ],
64+
[ -6, 48 ],
65+
[ -4, 53 ],
66+
[ -3, 63 ],
67+
[ -2, 73 ]
68+
]
69+
},
70+
"pid_soc_therm_margin": {
71+
"read_source" : {
72+
"util" : "/usr/local/bin/sensor-util"
73+
},
74+
"type": "pid",
75+
"setpoint": -9,
76+
"negative_hysteresis": 3,
77+
"positive_hysteresis": 0,
78+
"kp": -1.5,
79+
"ki": -0.035,
80+
"kd": 0
81+
},
82+
"linear_nic_sensor_temp": {
83+
"read_source" : {
84+
"util" : "/usr/local/bin/sensor-util"
85+
},
86+
"type": "linear",
87+
"positive_hysteresis": 0,
88+
"negative_hysteresis": 2,
89+
"data": [
90+
[ 0, 18 ],
91+
[ 76, 18 ],
92+
[ 77, 20 ],
93+
[ 78, 22 ],
94+
[ 79, 24 ],
95+
[ 80, 26 ],
96+
[ 81, 28 ],
97+
[ 82, 30 ],
98+
[ 83, 32 ],
99+
[ 84, 34 ],
100+
[ 85, 36 ],
101+
[ 86, 38 ],
102+
[ 87, 40 ],
103+
[ 88, 42 ],
104+
[ 89, 44 ],
105+
[ 90, 46 ],
106+
[ 91, 48 ],
107+
[ 92, 53 ],
108+
[ 93, 58 ],
109+
[ 94, 63 ],
110+
[ 95, 68 ]
111+
]
112+
},
113+
"pid_nic_sensor_temp": {
114+
"read_source" : {
115+
"util" : "/usr/local/bin/sensor-util"
116+
},
117+
"type": "pid",
118+
"setpoint": 88,
119+
"negative_hysteresis": 2,
120+
"positive_hysteresis": 0,
121+
"kp": -1.5,
122+
"ki": -0.1,
123+
"kd": 0
124+
},
125+
"linear_scc_ioc_temp": {
126+
"read_source" : {
127+
"util" : "/usr/local/bin/sensor-util"
128+
},
129+
"type": "linear",
130+
"positive_hysteresis": 0,
131+
"negative_hysteresis": 2,
132+
"data": [
133+
[ 0, 18 ],
134+
[ 75, 18 ],
135+
[ 76, 19 ],
136+
[ 77, 20 ],
137+
[ 78, 21 ],
138+
[ 79, 22 ],
139+
[ 80, 23 ],
140+
[ 81, 24 ],
141+
[ 82, 25 ],
142+
[ 83, 26 ],
143+
[ 84, 27 ],
144+
[ 85, 28 ],
145+
[ 86, 30 ],
146+
[ 87, 32 ],
147+
[ 88, 34 ],
148+
[ 89, 36 ],
149+
[ 90, 38 ],
150+
[ 91, 41 ],
151+
[ 92, 44 ],
152+
[ 93, 50 ],
153+
[ 94, 53 ]
154+
]
155+
},
156+
"pid_scc_ioc_temp": {
157+
"read_source" : {
158+
"util" : "/usr/local/bin/sensor-util"
159+
},
160+
"type": "pid",
161+
"setpoint": 88,
162+
"negative_hysteresis": 2,
163+
"positive_hysteresis": 0,
164+
"kp": -1.5,
165+
"ki": -0.1,
166+
"kd": 0
167+
},
168+
"linear_e1s_sensor_temp": {
169+
"read_source" : {
170+
"util" : "/usr/local/bin/sensor-util"
171+
},
172+
"type": "linear",
173+
"positive_hysteresis": 0,
174+
"negative_hysteresis": 2,
175+
"data": [
176+
[ 0, 18 ],
177+
[ 55, 18 ],
178+
[ 56, 19 ],
179+
[ 57, 20 ],
180+
[ 58, 21 ],
181+
[ 59, 22 ],
182+
[ 60, 23 ],
183+
[ 61, 24 ],
184+
[ 62, 25 ],
185+
[ 63, 26 ],
186+
[ 64, 27 ],
187+
[ 65, 28 ],
188+
[ 66, 30 ],
189+
[ 67, 32 ],
190+
[ 68, 34 ],
191+
[ 69, 36 ],
192+
[ 70, 38 ],
193+
[ 71, 40 ],
194+
[ 72, 42 ],
195+
[ 73, 44 ],
196+
[ 74, 46 ]
197+
]
198+
},
199+
"pid_e1s_sensor_temp": {
200+
"read_source" : {
201+
"util" : "/usr/local/bin/sensor-util"
202+
},
203+
"type": "pid",
204+
"setpoint": 65,
205+
"negative_hysteresis": 2,
206+
"positive_hysteresis": 0,
207+
"kp": -1.5,
208+
"ki": -0.02,
209+
"kd": 0
210+
},
211+
"linear_boot_drv_temp": {
212+
"read_source" : {
213+
"util" : "/usr/local/bin/sensor-util"
214+
},
215+
"type": "linear",
216+
"positive_hysteresis": 0,
217+
"negative_hysteresis": 2,
218+
"data": [
219+
[ 0, 18 ],
220+
[ 55, 18 ],
221+
[ 56, 19 ],
222+
[ 57, 20 ],
223+
[ 58, 21 ],
224+
[ 59, 22 ],
225+
[ 60, 23 ],
226+
[ 61, 24 ],
227+
[ 62, 25 ],
228+
[ 63, 26 ],
229+
[ 64, 27 ],
230+
[ 65, 28 ],
231+
[ 66, 30 ],
232+
[ 67, 32 ],
233+
[ 68, 34 ],
234+
[ 69, 36 ],
235+
[ 70, 38 ],
236+
[ 71, 40 ],
237+
[ 72, 42 ],
238+
[ 73, 44 ],
239+
[ 74, 46 ]
240+
]
241+
},
242+
"pid_boot_drv_temp": {
243+
"read_source" : {
244+
"util" : "/usr/local/bin/sensor-util"
245+
},
246+
"type": "pid",
247+
"setpoint": 66,
248+
"negative_hysteresis": 2,
249+
"positive_hysteresis": 0,
250+
"kp": -1.5,
251+
"ki": -0.02,
252+
"kd": 0
253+
},
254+
"linear_uic_inlet_temp": {
255+
"read_source" : {
256+
"util" : "/usr/local/bin/sensor-util"
257+
},
258+
"type": "linear",
259+
"positive_hysteresis": 0,
260+
"negative_hysteresis": 0,
261+
"data": [
262+
[ 0, 23 ],
263+
[ 25, 23 ],
264+
[ 26, 24 ],
265+
[ 27, 25 ],
266+
[ 28, 26 ],
267+
[ 29, 27 ],
268+
[ 30, 28 ],
269+
[ 31, 29 ],
270+
[ 32, 30 ],
271+
[ 33, 31 ],
272+
[ 34, 32 ],
273+
[ 35, 33 ],
274+
[ 36, 35 ],
275+
[ 37, 37 ],
276+
[ 38, 39 ],
277+
[ 39, 41 ],
278+
[ 40, 43 ],
279+
[ 41, 45 ],
280+
[ 42, 47 ],
281+
[ 43, 49 ],
282+
[ 44, 51 ],
283+
[ 45, 53 ]
284+
]
285+
}
286+
},
287+
"fans": {
288+
"0": {
289+
"label" : "0 Front",
290+
"read_source" : {
291+
"util" : "/usr/local/bin/fan-util --get 0"
292+
},
293+
"write_source" : {
294+
"util" : "/usr/local/bin/fan-util --set %d 0"
295+
}
296+
},
297+
"1": {
298+
"label" : "0 Rear",
299+
"read_source" : {
300+
"util" : "/usr/local/bin/fan-util --get 1"
301+
}
302+
},
303+
"2": {
304+
"label" : "1 Front",
305+
"read_source" : {
306+
"util" : "/usr/local/bin/fan-util --get 2"
307+
}
308+
},
309+
"3": {
310+
"label" : "1 Rear",
311+
"read_source" : {
312+
"util" : "/usr/local/bin/fan-util --get 3"
313+
}
314+
},
315+
"4": {
316+
"label" : "2 Front",
317+
"read_source" : {
318+
"util" : "/usr/local/bin/fan-util --get 4"
319+
}
320+
},
321+
"5": {
322+
"label" : "2 Rear",
323+
"read_source" : {
324+
"util" : "/usr/local/bin/fan-util --get 5"
325+
}
326+
},
327+
"6": {
328+
"label" : "3 Front",
329+
"read_source" : {
330+
"util" : "/usr/local/bin/fan-util --get 6"
331+
}
332+
},
333+
"7": {
334+
"label" : "3 Rear",
335+
"read_source" : {
336+
"util" : "/usr/local/bin/fan-util --get 7"
337+
}
338+
}
339+
},
340+
"zones": {
341+
"zone_0": {
342+
"pwm_output": [0],
343+
"expr_file": "FSC_GC_Type5_PVT_v1_zone0.fsc"
344+
}
345+
}
346+
}

0 commit comments

Comments
 (0)