Skip to content

Add nvidia_aspeed_bmc marker#563

Open
william8545 wants to merge 1 commit intosonic-net:masterfrom
william8545:nvidia_bmc_marker
Open

Add nvidia_aspeed_bmc marker#563
william8545 wants to merge 1 commit intosonic-net:masterfrom
william8545:nvidia_bmc_marker

Conversation

@william8545
Copy link
Copy Markdown

@william8545 william8545 commented Apr 20, 2026

Summary

Adds an empty nvidia_aspeed_bmc marker block to:

  • patches-sonic/series
  • config.local/arm64/config.sonic-aspeed

The block is the insertion point that the NVIDIA/Mellanox hw-mgmt integration scripts use to manage BMC-only kernel patches and Kconfig fragments for ASPEED BMCs (AST2700, etc.) separately from the existing mellanox_hw_mgmt block.

Merge ordering

This PR needs to be merged before sonic-buildimage PR #27038.
PR #27038 ships the BMC-aware hw-mgmt integration script, which aborts with a FATAL error if the nvidia_aspeed_bmc markers are not already present in patches-sonic/series. Merging #27038 first would break sonic-buildimage builds that pick up the new submodule pointer.

Why this is needed

The dependent change lives in sonic-buildimage PR #27038
("Add ASPEED BMC support to hw-mgmt integration scripts"). That PR teaches platform/mellanox/integrationㄦscripts/hwmgmt_kernel_patches.py to:

  1. Locate the nvidia_aspeed_bmc markers in patches-sonic/series (find_bmc_markers / find_marker_indices).
  2. Rebuild the BMC patch block on every integration run (write_bmc_series_block), removing stale entries with rm_old_bmc_patches.
  3. Apply BMC Kconfig fragments to config.local/arm64/config.sonic-aspeed between the same markers.

The actual BMC patches and Kconfig fragments are produced by the upstream NVIDIA/Mellanox hw-mgmt repository:
Mellanox/hw-mgmt. The integration script in sonic-buildimage consumes a hw-mgmt release tarball, splits out the BMC-only content, and drops it between the markers added by this PR.

If the markers are missing the integration script aborts with:

-> FATAL: nvidia_aspeed_bmc markers not found in patches-sonic/series.
   Please update sonic-linux-kernel to include the markers.

So the markers must be present in sonic-linux-kernel before the sonic-buildimage submodule pointer can be bumped to a revision that runs the BMC-aware integration script.

@william8545 william8545 requested a review from a team as a code owner April 20, 2026 19:50
@mssonicbld
Copy link
Copy Markdown

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@william8545 william8545 reopened this May 1, 2026
@william8545 william8545 marked this pull request as draft May 1, 2026 00:11
@william8545 william8545 marked this pull request as ready for review May 1, 2026 00:12
@william8545 william8545 marked this pull request as draft May 1, 2026 00:12
@mssonicbld
Copy link
Copy Markdown

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@william8545 william8545 closed this May 1, 2026
@william8545 william8545 deleted the nvidia_bmc_marker branch May 1, 2026 02:50
@william8545 william8545 restored the nvidia_bmc_marker branch May 1, 2026 02:50
@william8545 william8545 reopened this May 1, 2026
@mssonicbld
Copy link
Copy Markdown

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Copy Markdown
Contributor

@paulmenzel paulmenzel left a comment

Choose a reason for hiding this comment

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

In my opinion, the marker should be introduced, when the other changes depending on it get added. No separate merge/pull request is needed.

Additionally, it’d be really great, if you wrote a commit message body.

@william8545
Copy link
Copy Markdown
Author

In my opinion, the marker should be introduced, when the other changes depending on it get added. No separate merge/pull request is needed.

Additionally, it’d be really great, if you wrote a commit message body.

sure, let me fix it

@william8545 william8545 force-pushed the nvidia_bmc_marker branch from 9f43289 to 91bde9c Compare May 4, 2026 19:31
@mssonicbld
Copy link
Copy Markdown

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@mssonicbld
Copy link
Copy Markdown

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@william8545 william8545 force-pushed the nvidia_bmc_marker branch from 6924ead to 91bde9c Compare May 4, 2026 20:00
@mssonicbld
Copy link
Copy Markdown

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

Introduce a `nvidia_aspeed_bmc` marker block in two locations:

  * patches-sonic/series
  * config.local/arm64/config.sonic-aspeed

The marker delimits a region that the NVIDIA/Mellanox hw-mgmt integration
scripts in sonic-buildimage own. The scripts use the markers to insert
BMC-only kernel patches and Kconfig fragments for ASPEED BMCs (e.g.
AST2700) without colliding with the existing `mellanox_hw_mgmt` block,
and to clean stale BMC content from previous integration runs.

The consumer of this marker is sonic-buildimage PR #27038
("Add ASPEED BMC support to hw-mgmt integration scripts"), which extends
platform/mellanox/integration-scripts/hwmgmt_kernel_patches.py to:

  * Look up the `nvidia_aspeed_bmc` markers in patches-sonic/series via
    `find_marker_indices` and rebuild the block from a BMC-only patch
    list on every integration run.
  * Remove old BMC patch files from patches-sonic/ that fall between the
    markers, then copy the new BMC patches in.
  * Apply BMC Kconfig fragments to config.local/arm64/config.sonic-aspeed
    using the same marker pair.

The block is populated only when an hw-mgmt integration run produces
BMC content. The upstream hw-mgmt repository is at
https://github.com/Mellanox/hw-mgmt

Signed-off-by: William Tsai <willtsai@nvidia.com>
@william8545 william8545 force-pushed the nvidia_bmc_marker branch from 91bde9c to 9e282ab Compare May 4, 2026 20:02
@mssonicbld
Copy link
Copy Markdown

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@william8545 william8545 marked this pull request as ready for review May 5, 2026 22:04
@oleksandrivantsiv oleksandrivantsiv requested a review from yxieca May 5, 2026 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants