Skip to content

Package Nvidia Open GPU Kernel Modules#16971

Merged
christopherco merged 2 commits into
4.0from
edehghani/kmod-framework-for-kernel
May 27, 2026
Merged

Package Nvidia Open GPU Kernel Modules#16971
christopherco merged 2 commits into
4.0from
edehghani/kmod-framework-for-kernel

Conversation

@ellie-di
Copy link
Copy Markdown
Contributor

@ellie-di ellie-di commented Apr 30, 2026

Summary

Adds packaging and build integration for NVIDIA’s open GPU kernel modules as kernel subpackages in Azure Linux 4.0, along with documentation of the kmod framework and workflow.

Test Methodology
image

Copilot AI review requested due to automatic review settings April 30, 2026 17:49
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds packaging and build integration for NVIDIA’s open GPU kernel modules as kernel subpackages in Azure Linux 4.0, along with documentation of the kmod framework and workflow.

Changes:

  • Introduces a phase-gated kmod subpackage framework (kmod-macros.inc) and a kmod-nvidia-open implementation (kmod-nvidia-open.inc + modprobe config).
  • Updates kernel.comp.toml to fetch NVIDIA sources and inject spec overlays for kmod build/install/%files/scriptlets.
  • Adds a packaging strategy document describing the architecture and onboarding steps for new kmods.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
docs/oss-kmod-packaging-strategy.md Documents the kmod-as-kernel-subpackage design and onboarding workflow.
base/comps/kernel/kmod-nvidia-open.inc Defines the kmod-nvidia-open subpackage using phase-gated %include sections.
base/comps/kernel/kmod-nvidia-open-modprobe.conf Adds modprobe configuration to avoid nouveau conflicts.
base/comps/kernel/kmod-macros.inc Provides a small framework/registry for kmod subpackages included by the kernel spec.
base/comps/kernel/kernel.comp.toml Downloads NVIDIA sources and injects the necessary spec overlays to build/package the kmod.

Comment thread docs/oss-kmod-packaging-strategy.md
Comment thread docs/oss-kmod-packaging-strategy.md
Comment thread docs/oss-kmod-packaging-strategy.md
Comment thread docs/oss-kmod-packaging-strategy.md
Comment thread base/comps/kernel/kmod-nvidia-open.inc Outdated
Comment thread base/comps/kernel/kmod-nvidia-open.inc Outdated
Comment thread base/comps/kernel/kmod-nvidia-open.inc Outdated
Comment thread base/comps/kernel/kmod-nvidia-open.inc Outdated
Comment thread base/comps/kernel/kernel.comp.toml
Comment thread base/comps/kernel/kernel.comp.toml
@ellie-di ellie-di force-pushed the edehghani/kmod-framework-for-kernel branch 3 times, most recently from 0f3665a to 5ab292c Compare May 6, 2026 18:22
Comment thread base/comps/kernel/kernel.comp.toml Outdated
Comment thread base/comps/kernel/kernel.comp.toml Outdated
Comment thread base/comps/kernel/kernel.comp.toml Outdated
Comment thread base/comps/kernel/kmod-nvidia-open.inc Outdated
Comment thread base/comps/kernel/kmod-nvidia-open.inc Outdated
Comment thread base/comps/kernel/kmod-nvidia-open.inc Outdated
Comment thread base/comps/kernel/kmod-nvidia-open.inc
Comment thread base/comps/kernel/kmod-nvidia-open.inc Outdated
Comment thread base/comps/kernel/kmod-nvidia-open.inc
Comment thread base/comps/kernel/kmod-macros.inc Outdated
Comment thread base/comps/kernel/kmod-nvidia-open.inc
Comment thread base/comps/kernel/kmod-nvidia-open.inc Outdated
Copy link
Copy Markdown

@ddstreetmicrosoft ddstreetmicrosoft left a comment

Choose a reason for hiding this comment

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

issue: please rebase this into discrete, logical commits as they should appear in the repo

@ellie-di ellie-di force-pushed the edehghani/kmod-framework-for-kernel branch from 291ebc1 to 2c47662 Compare May 12, 2026 18:46
@ellie-di ellie-di force-pushed the edehghani/kmod-framework-for-kernel branch 6 times, most recently from 917eb67 to c9db743 Compare May 13, 2026 21:21
Comment thread docs/oss-kmod-packaging-strategy.md Outdated
@christopherco christopherco force-pushed the edehghani/kmod-framework-for-kernel branch 3 times, most recently from c7895a5 to d7a0f3b Compare May 14, 2026 08:32
Copy link
Copy Markdown

@ddstreetmicrosoft ddstreetmicrosoft left a comment

Choose a reason for hiding this comment

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

I left some comments and questions, but I don't see anything that is blocking. Any issues can be adjusted later, preferably after we change over to a local spec file (which I think will simplify this)

Comment thread base/comps/kernel/kernel.comp.toml Outdated
Comment thread base/comps/kernel/kernel.comp.toml
Comment thread base/comps/kernel/kernel.comp.toml Outdated
Comment thread base/comps/kernel/kmod-nvidia-open.inc
Comment thread base/comps/kernel/kmod-nvidia-open.inc Outdated
Comment thread base/comps/kernel/kmod-nvidia-open.inc Outdated
Comment thread base/comps/kernel/kmod-nvidia-open.inc Outdated
Comment thread base/comps/kernel/kmod-nvidia-open.inc
Comment thread base/comps/kernel/kmod-nvidia-open.inc Outdated
Comment thread base/comps/kernel/kmod-nvidia-open.inc Outdated
Copy link
Copy Markdown
Collaborator

@christopherco christopherco left a comment

Choose a reason for hiding this comment

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

Retarget to 4.0 branch

@ellie-di ellie-di force-pushed the edehghani/kmod-framework-for-kernel branch from d7a0f3b to 6b3dcaf Compare May 21, 2026 21:11
@ellie-di ellie-di requested a review from christopherco May 21, 2026 22:08
@ellie-di ellie-di force-pushed the edehghani/kmod-framework-for-kernel branch from 6b3dcaf to 7df63da Compare May 22, 2026 16:33
@ellie-di ellie-di changed the base branch from tomls/base/main to 4.0 May 22, 2026 16:34
Comment thread docs/oss-kmod-packaging-strategy.md Outdated
@ellie-di ellie-di force-pushed the edehghani/kmod-framework-for-kernel branch from 7df63da to 455e0c5 Compare May 27, 2026 22:25
Copy link
Copy Markdown
Collaborator

@christopherco christopherco left a comment

Choose a reason for hiding this comment

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

:shipit:

@christopherco christopherco merged commit 8a8bc20 into 4.0 May 27, 2026
11 checks passed
@christopherco christopherco deleted the edehghani/kmod-framework-for-kernel branch May 27, 2026 23:25
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.

6 participants