Skip to content

[Nexthop][m4061nhp] Expect two channels on the MGMT card I2C mux - #1940

Closed
spandan-nexthop wants to merge 1 commit into
meta:mainfrom
nexthop-ai:spandan-nexthop.m4061nhp-smb-mux2-two-channels
Closed

spandan-nexthop wants to merge 1 commit into
meta:mainfrom
nexthop-ai:spandan-nexthop.m4061nhp-smb-mux2-two-channels

Conversation

@spandan-nexthop

@spandan-nexthop spandan-nexthop commented Nov 9, 2026 •

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

On m4061nhp, only channels 0 and 1 of the MGMT card I2C mux (SMB_MUX_2) reach a device. Channel 2 is unconnected and channel 3 leads to an unpowered SFP flyover where every transfer times out. nexthop-ai/nexthop.fboss.bsp.kmods#26 makes the driver create only those two channels, so numOutgoingChannels must be 2 for platform_manager to explore the mux. The two changes need to land together, with a nexthop_bsp_kmods build that includes #26.

Test Plan

pre-commit run --files on the config passes. On an m4061nhp unit running the two-channel driver, platform_manager with this config explores SMB_MUX_2 with two channels, creates /run/devmap/xcvrs/xcvr_io_65, and reports Successfully explored M4061NHP. With the old value it fails with Unexpected number mux channels for SMB_MUX_2. Expected 4. Actual 2.

@spandan-nexthop

Copy link
Copy Markdown
Contributor Author

Only two channels of the MGMT card mux reach a device, and the driver
now creates only those (nexthop-ai/nexthop.fboss.bsp.kmods#26).

Signed-off-by: Spandan Chowdhury <[email protected]>
@spandan-nexthop
spandan-nexthop force-pushed the spandan-nexthop.m4061nhp-smb-mux2-two-channels branch from 157e3bd to fcc9790 Compare November 9, 2026 23:40
@meta-codesync

meta-codesync Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

@somasun has imported this pull request. If you are a Meta employee, you can view this in D131631629.

@meta-codesync meta-codesync Bot closed this in 2b40d98 Nov 16, 2026
@meta-codesync meta-codesync Bot added the Merged label Nov 16, 2026
@meta-codesync

meta-codesync Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

@somasun merged this pull request in 2b40d98.

spandan-nexthop added a commit to nexthop-ai/nexthop.fboss.bsp.kmods that referenced this pull request Nov 17, 2026
#26)

# Summary

Only channels 0 and 1 of the m4061nhp MGMT card I2C mux (SMB FPGA I2C
master 3) reach a device. Channel 2 is unconnected and channel 3 leads
to an unpowered SFP flyover, so every transfer on it waits out the
controller timeout. Expose two channels so Linux only creates the buses
that reach something.

This must land together with the matching platform_manager config
change, meta/fboss#1940, which sets
`numOutgoingChannels` of `SMB_MUX_2` to 2. platform_manager fails to
explore the mux if the two disagree.

# Test Plan

On an m4061nhp unit with the config change applied, platform_manager
explores `SMB_MUX_2` with two channels, creates
`/run/devmap/xcvrs/xcvr_io_65`, and every FBOSS service stays active.
Before the change, `i2cdetect -y -r` on the fourth channel hit the 30 s
timeout while the other three channels scanned in about 12 ms.

Co-authored-by: lotus-nexthop <[email protected]>
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