Skip to content

[Nexthop][m4062nhp] Use stable paths for DIMM temp sensors - #1540

Open
anna-nexthop wants to merge 1 commit into
facebook:mainfrom
nexthop-ai:anna-nexthop.dimm-temp-stable-path
Open

[Nexthop][m4062nhp] Use stable paths for DIMM temp sensors#1540
anna-nexthop wants to merge 1 commit into
facebook:mainfrom
nexthop-ai:anna-nexthop.dimm-temp-stable-path

Conversation

@anna-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 DDR5 SPD hubs are auto-instantiated by the kernel and the i2c paths may change depending on the module load order. Resolve the DIMM temp sensor to a stable path provided by the BSP.

Test Plan

Verified on hardware.

The DDR5 SPD hubs are auto-instantiated by the kernel and the i2c paths may change
 depending on the module load order. Resolve the DIMM temp sensor to a stable path provided by the BSP.

Signed-off-by: Anna Komarova <anna@nexthop.ai>
"pmUnitScopedName": "DIMM2_TEMP",
"sysfsPath": "/sys/bus/i2c/devices/1-0051"
"sysfsPath": "/run/nexthop_bsp/sensors/DIMM2_TEMP"
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't have slipped in. Thanks for the fix. Wondering if we can update platform_manager/ConfigValidator to allow only stable paths?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@somasun I think that's an improvement if that is indeed the intention. However, I'm hesitant about adding it as part of this change since that's a narrowing requirement and I don't know how many other platforms might be flagged, so proposing to have that improvement be in its own PR.

@anna-nexthop
anna-nexthop marked this pull request as ready for review August 21, 2026 18:13
@anna-nexthop
anna-nexthop requested a review from a team as a code owner August 21, 2026 18:13
@meta-codesync

meta-codesync Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

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

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