diff options
| author | Potin Lai <potin.lai@quantatw.com> | 2026-06-09 06:08:34 +0300 |
|---|---|---|
| committer | Patrick Williams <patrick@stwcx.xyz> | 2026-06-09 17:34:47 +0300 |
| commit | b32ca3e8e601e3c6615d570b681d9e4612136ca9 (patch) | |
| tree | e30b636fad86e55653920ec7174e606786a42cb6 /upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-httptools | |
| parent | d36de57d34e3718b198513462c1acb425659e7a7 (diff) | |
| download | openbmc-b32ca3e8e601e3c6615d570b681d9e4612136ca9.tar.xz | |
meta-facebook: sanmiguel: fix NIC power reading
The NIC Power sensor (sensor ID 50) reports a unitModifier of -1 in its
PDR, indicating that the raw reading must be scaled by 0.1 to obtain
the actual power value.
Apply the scale when processing the power sensor reading so the reported
NIC power value matches the expected measurement.
```
root@bmc:~# mfg-tool sensor-display 2>/dev/null | table-sensor-display | grep -e "IOB.*NIC.*PWR"
IOB0_NIC0_PWR_W ok 14.1 Watts N/A N/A N/A N/A N/A N/A
IOB0_NIC1_PWR_W ok 14.1 Watts N/A N/A N/A N/A N/A N/A
IOB1_NIC0_PWR_W ok 14.1 Watts N/A N/A N/A N/A N/A N/A
IOB1_NIC1_PWR_W ok 14.2 Watts N/A N/A N/A N/A N/A N/A
IOB2_NIC0_PWR_W ok 23.4 Watts N/A N/A N/A N/A N/A N/A
IOB2_NIC1_PWR_W ok 23.2 Watts N/A N/A N/A N/A N/A N/A
IOB3_NIC0_PWR_W ok 22.8 Watts N/A N/A N/A N/A N/A N/A
IOB3_NIC1_PWR_W ok 22.9 Watts N/A N/A N/A N/A N/A N/A
```
Change-Id: Iac9ff4aaa1b0fb5fecd72809b04e701fb87a4032
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Diffstat (limited to 'upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-httptools')
0 files changed, 0 insertions, 0 deletions
