diff options
| author | Potin Lai <potin.lai@quantatw.com> | 2024-12-26 18:42:02 +0300 |
|---|---|---|
| committer | Patrick Williams <patrick@stwcx.xyz> | 2025-01-09 19:27:34 +0300 |
| commit | 54b1f8ba023ec347dcc48d565eeb4feb743b6082 (patch) | |
| tree | a2694c70c4219d2dd021b85c353d1c14ab113c7d /meta-openembedded/meta-python/recipes-devtools/python/python3-matplotlib | |
| parent | cbe7f623187297608505f231e3c56612a308a949 (diff) | |
| download | openbmc-54b1f8ba023ec347dcc48d565eeb4feb743b6082.tar.xz | |
meta-facebook: catalina: gpio-monitor: bind drivers when host power on
In ordet to prevent frequently new and delete i2c devices by sensor
services at runtime when host power state changes, which can cause
abnormal reading sometimes.
We move backend NIC thermal sensors to kernel dts file and add a service
to bind drivers at host first power on.
TestResults:
- Backend NIC thermal sensor bind successfully
```
root@bmc:~# systemctl status backend-nic-driver-bind.service
○ backend-nic-driver-bind.service - Backend NIC driver bind
Loaded: loaded (/usr/lib/systemd/system/backend-nic-driver-bind.service; static)
Active: inactive (dead)
Dec 26 07:31:15 bmc backend-nic-driver-bind[1978]: 36-001f: failed to bind device
Dec 26 07:31:15 bmc backend-nic-driver-bind[1978]: /usr/libexec/phosphor-gpio-monitor/backend-nic-driver-bind: line 22: echo: write error: No such device
Dec 26 07:31:15 bmc backend-nic-driver-bind[1978]: 38-001f: failed to bind device
Dec 26 07:31:16 bmc backend-nic-driver-bind[1978]: Attempt 12 of 100...
Dec 26 07:31:16 bmc backend-nic-driver-bind[1978]: 24-001f: already bind, skip
Dec 26 07:31:16 bmc backend-nic-driver-bind[1978]: 26-001f: already bind, skip
Dec 26 07:31:16 bmc backend-nic-driver-bind[1978]: 36-001f: already bind, skip
Dec 26 07:31:16 bmc backend-nic-driver-bind[1978]: 38-001f: already bind, skip
Dec 26 07:31:16 bmc backend-nic-driver-bind[1978]: All devices successfully bind
Dec 26 07:31:16 bmc systemd[1]: backend-nic-driver-bind.service: Deactivated successfully.
```
- Get backend NIC thermal sensors reading successfully
```
root@bmc:~# mfg-tool sensor-display 2>/dev/null | table-sensor-display | egrep "IOB.*NIC"
IOB0_NIC0_TEMP_C ok 63 DegreesC N/A N/A 5 105 108 N/A
IOB0_NIC1_TEMP_C ok 83 DegreesC N/A N/A 5 105 108 N/A
IOB1_NIC0_TEMP_C ok 78 DegreesC N/A N/A 5 105 108 N/A
IOB1_NIC1_TEMP_C ok 81 DegreesC N/A N/A 5 105 108 N/A
```
Change-Id: Iface1b8a24276a1dd9c33a4645a853ab18303397
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Diffstat (limited to 'meta-openembedded/meta-python/recipes-devtools/python/python3-matplotlib')
0 files changed, 0 insertions, 0 deletions
