Skip to content

Conversation

aalamsi22
Copy link
Contributor

@aalamsi22 aalamsi22 commented Jun 13, 2025

Description

NOTE: This is part of a series of PRs to add support for Glath05a-64o. The dependency chain of the PRs is as follows:

Glath05a-64o: define new platform #461
Glath05a-64o: platform manager #462 – Depends on #461
Glath05a-64o: add sensor_service support #467 – Depends on #462
Glath05a-64o: weutil config #468 – Depends on #462
Glath05a-64o: add fan_service config #469 – Depends on #467
Glath05a-64o: fw_util support #470 – Depends on #461
Glath05a-64o: bsp mapping #471 – Depends on #461
Glath05a-64o: platform mapping #472 – Depends on #471
Glath05a-64o: led service #473 – Depends on #472

Add Glath05a-64o fan_service config

Testing

Jun 11 21:38:15 ...: I0611 21:38:15.015015  6488 ControlLogic.cpp:588] Processing Sensors ...
Jun 11 21:38:15 ...: E0611 21:38:15.015023  6488 ControlLogic.cpp:246] SMB_TH5_DIODE_1_TEMP: Sensor read value is 48.75
Jun 11 21:38:15 ...: I0611 21:38:15.015029  6488 ControlLogic.cpp:229] SMB_TH5_DIODE_1_TEMP: Calculated PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015033  6488 ControlLogic.cpp:592] Processing Optics ...
Jun 11 21:38:15 ...: I0611 21:38:15.015041  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 22.828125. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015045  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 22.0625. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015049  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 11.566406. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015053  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 11.761719. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015057  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 19.40625. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015061  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 20.644531. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015065  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 20.976562. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015069  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 20.007812. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015072  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 19.652344. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015076  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 20.367188. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015080  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 17.683594. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015083  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 19.417969. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015087  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 19.617188. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015091  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 19.402344. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015095  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 19.957031. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015099  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 18.554688. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015102  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 18.324219. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015107  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 19.007812. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015111  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 18.660156. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015115  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 18.957031. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015118  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 17.699219. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015122  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 19.65625. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015126  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 18.90625. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015130  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 18.960938. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015133  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 18.882812. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015137  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 18.199219. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015141  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 18.0625. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015145  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 19.046875. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015148  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 17.042969. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015152  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 19.160156. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015156  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 17.984375. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015160  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 17.449219. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015163  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 18.1875. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015167  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 19.101562. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015171  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 18.097656. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015174  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 18.707031. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015178  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 17.324219. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015182  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 21.191406. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015186  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 18.828125. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015189  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 18.496094. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015193  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 19.507812. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015197  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 18.160156. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015201  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 19.921875. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015205  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 18.9375. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015209  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 17.042969. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015213  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 18.957031. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015216  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 19.703125. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015220  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 19.839844. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015224  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 17.894531. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015227  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 19.378906. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015231  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 20.109375. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015235  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 18.828125. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015239  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 20.820312. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015243  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 20.976562. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015247  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 20.996094. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015251  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 20.289062. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015255  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 22.4375. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015259  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 24.925781. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015263  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 21.796875. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015266  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 21.730469. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015270  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 26.292969. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015274  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 25.898438. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015278  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 24.488281. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015281  6488 ControlLogic.cpp:305] OPTIC_TYPE_800_GENERIC: Optic sensor read value is 25.078125. PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015285  6488 ControlLogic.cpp:354] Optics: Aggregation Type: OPTIC_AGGREGATION_TYPE_MAX. Aggregate PWM is 54
Jun 11 21:38:15 ...: I0611 21:38:15.015293  6488 ControlLogic.cpp:489] zone1: Components: SMB_TH5_DIODE_1_TEMP,osfp_group_1. Aggregation Type: ZONE_TYPE_MAX. Aggregate PWM is 54.
Jun 11 21:38:15 ...: I0611 21:38:15.016009  6488 ControlLogic.cpp:425] fan_1: Programmed with PWM 54 (raw value 138)
Jun 11 21:38:15 ...: I0611 21:38:15.016928  6488 ControlLogic.cpp:425] fan_2: Programmed with PWM 54 (raw value 138)
Jun 11 21:38:15 ...: I0611 21:38:15.017846  6488 ControlLogic.cpp:425] fan_3: Programmed with PWM 54 (raw value 138)
Jun 11 21:38:15 ...: I0611 21:38:15.018767  6488 ControlLogic.cpp:425] fan_4: Programmed with PWM 54 (raw value 138)
Jun 11 21:38:15 ...: I0611 21:38:15.020579  6488 ControlLogic.cpp:446] fan_1: Setting LED to Good (value: 1)
Jun 11 21:38:15 ...: I0611 21:38:15.022005  6488 ControlLogic.cpp:446] fan_2: Setting LED to Good (value: 1)
Jun 11 21:38:15 ...: I0611 21:38:15.023810  6488 ControlLogic.cpp:446] fan_3: Setting LED to Good (value: 1)
Jun 11 21:38:15 ...: I0611 21:38:15.025624  6488 ControlLogic.cpp:446] fan_4: Setting LED to Good (value: 1)
Jun 11 21:38:20 ...: I0611 21:38:20.294564  6488 Bsp.cpp:331] Got sensor data from sensor_service.  Item count: 66
Jun 11 21:38:20 ...: I0611 21:38:20.294588  6488 ControlLogic.cpp:90] Successfully fetched sensor data.

Confirming PWM 54% is set
Note: 138/255 = ~54%

# head -n1 /run/devmap/sensors/FAN_CPLD/pwm*
==> /run/devmap/sensors/FAN_CPLD/pwm1 <==
138

==> /run/devmap/sensors/FAN_CPLD/pwm2 <==
138

==> /run/devmap/sensors/FAN_CPLD/pwm3 <==
138

==> /run/devmap/sensors/FAN_CPLD/pwm4 <==
138

fan_service_hw_test
fan_service_hw_test.txt

@aalamsi22 aalamsi22 force-pushed the glath05a-64o_fan_service branch from 585dcf4 to 63876f8 Compare August 22, 2025 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants