G
YouTube TikTok Games
Skip to content

[Nexthop][m4340nhp] Find NIC_TEMP through eth0 instead of a PCI bus number - #1954

Open
siddarth-nexthop wants to merge 1 commit into
meta:mainfrom
nexthop-ai:siddarth.m4340nhp-nic-temp-eth0
Open

siddarth-nexthop wants to merge 1 commit into
meta:mainfrom
nexthop-ai:siddarth.m4340nhp-nic-temp-eth0

Conversation

@siddarth-nexthop

Copy link
Copy Markdown
Contributor

Pre-submission checklist

  • I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running pip install -r requirements-dev.txt && pre-commit install
  • pre-commit run

Summary

The m4340nhp NIC_TEMP embedded sensor points at /sys/bus/pci/devices/0000:02:00.0, but the management NIC's bus number is assigned by PCI enumeration and can move with a BIOS update or a PCIe topology change. If it moves, NIC_TEMP no longer resolves and sensor_service loses the NIC temperatures.

This change points the sensor at /sys/class/net/eth0/device instead, which links to the same PCI device wherever it enumerates.

Test Plan

On an m4340nhp running an image built with this change, platform_manager explores clean, /run/devmap/sensors/NIC_TEMP points at the NIC's hwmon node through eth0, and NIC_PHY_TEMP and NIC_MAC_TEMP read normally.

@siddarth-nexthop
siddarth-nexthop requested a review from a team as a code owner November 10, 2026 23:25
@meta-cla meta-cla Bot added the CLA Signed label Nov 10, 2026
@github-actions github-actions Bot added nexthop project:m4340nhp FBOSS project: m4340nhp labels Nov 10, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants