Skip to content

[Nexthop][m4061nhp] Report switch-card rails from the DCDCs instead of the DPMs - #1870

Open
frank-nexthop wants to merge 1 commit into
meta:mainfrom
nexthop-ai:frank.m4061nhp-dcdc-vout
Open

frank-nexthop wants to merge 1 commit into
meta:mainfrom
nexthop-ai:frank.m4061nhp-dcdc-vout

Conversation

@frank-nexthop

Copy link
Copy Markdown

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

On m4061nhp, the switch-card ADM1266 DPMs sense the ASIC rails near the source, so under load they read 40–75 mV above the regulator output.

For the 18 DPM channels whose rail is also made by a DCDC (DCDC0–10), replace the DPM sensor with a DCDCn_<RAIL>_VOUT sensor that reads the regulator's own output. Also add the four PT loops that no DPM channel watches, and DCDC0's VDDC current. Thresholds are the limits each DCDC's hwmon driver reports.

The DCDC devices are already in platform_manager.json, so this doesn't depend on the other open m4061nhp PRs.

Test Plan

On m4061nhp hardware, sensor_service_hw_test passes 8/8, including CheckAllSensors, and every new sensor stays within its limits with all ports at line rate.

The two switch-card ADM1266 DPMs sense the ASIC rails near the source,
so under load they read 40-75 mV above the regulator output. For the 18
DPM channels whose rail is also made by a digital DCDC (DCDC0-10), drop
the DPM sensor and add a DCDCn_<RAIL>_VOUT sensor that reads the
regulator directly. That also adds the PT1/PT3/PT4/PT6 loops, which no
DPM channel watches. DCDC0 iout1 replaces the DPM VDDC IMON channel.

Thresholds mirror the limits the hwmon driver reports for each DCDC:
DCDC1-10 only expose VOUT fault limits (lcrit/crit), so those rails get
a critical band only; DCDC0 also exposes min/max, used as the alarm
band. The 3V3 limits get the same 6/5 divider scaling as the reading.

The adm1266 driver stays loaded, so the raw DPM values remain available
outside sensor_service.

Signed-off-by: frank-nexthop <frank@nexthop.ai>
@frank-nexthop
frank-nexthop requested a review from a team as a code owner October 30, 2026 20:40
@meta-cla meta-cla Bot added the CLA Signed label Oct 30, 2026
@github-actions github-actions Bot added nexthop project:m4061nhp FBOSS project: m4061nhp labels Oct 30, 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.

1 participant