Skip to content

Add dev root to driver#1652

Merged
elezar merged 5 commits intoNVIDIA:mainfrom
elezar:add-dev-root-to-driver
Feb 19, 2026
Merged

Add dev root to driver#1652
elezar merged 5 commits intoNVIDIA:mainfrom
elezar:add-dev-root-to-driver

Conversation

@elezar
Copy link
Member

@elezar elezar commented Feb 16, 2026

These changes add a DevRoot member to the driver type. This means that the driverRoot (for libraries and executables) and the devRoot need not be tracked separately.

@coveralls
Copy link

coveralls commented Feb 16, 2026

Pull Request Test Coverage Report for Build 22178121089

Details

  • 60 of 97 (61.86%) changed or added relevant lines in 29 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.8%) to 41.023%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/nvcdi/device-wsl.go 0 1 0.0%
pkg/nvcdi/management.go 0 1 0.0%
pkg/nvcdi/mig-device-nvml.go 0 1 0.0%
internal/modifier/cdi.go 0 2 0.0%
internal/modifier/csv.go 0 2 0.0%
internal/runtime/runtime.go 0 2 0.0%
pkg/nvcdi/gated.go 1 4 25.0%
internal/lookup/root/options.go 0 4 0.0%
internal/modifier/gated.go 0 4 0.0%
internal/platform-support/dgpu/dgpu.go 7 13 53.85%
Totals Coverage Status
Change from base Build 22172425585: 1.8%
Covered Lines: 6069
Relevant Lines: 14794

💛 - Coveralls

@elezar elezar force-pushed the add-dev-root-to-driver branch 3 times, most recently from 3a858c6 to 23d3db8 Compare February 18, 2026 13:37
@elezar elezar marked this pull request as ready for review February 18, 2026 14:14
Copy link
Contributor

@cdesiniotis cdesiniotis left a comment

Choose a reason for hiding this comment

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

LGTM besides one typo

return NewCharDeviceDiscoverer(
logger,
devRoot,
driver.Root,
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you mean driver.DevRoot?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. Good catch. Let me add a test too.

Copy link
Member Author

Choose a reason for hiding this comment

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

I've added tests for some fo the basic discoverers that at least caught this bug.

@elezar elezar force-pushed the add-dev-root-to-driver branch 4 times, most recently from 1efb187 to 1993f8e Compare February 19, 2026 09:44
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar elezar force-pushed the add-dev-root-to-driver branch from 1993f8e to ee73673 Compare February 19, 2026 10:31
These changes add basic tests for the following discoverers:
* gdrcopy
* gds
* mofed
* nvswitch
* tegra
* dgpu (non-mig)

Signed-off-by: Evan Lezar <elezar@nvidia.com>
Instead of passing driverRoot and devRoot separately, we
add a DevRoot to the Driver type and pass a reference to
a driver instead.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar elezar force-pushed the add-dev-root-to-driver branch from ee73673 to a5784ea Compare February 19, 2026 11:39
Copy link
Collaborator

@jgehrcke jgehrcke left a comment

Choose a reason for hiding this comment

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

LGTM!

@elezar elezar merged commit 7ade47c into NVIDIA:main Feb 19, 2026
16 checks passed
@elezar elezar deleted the add-dev-root-to-driver branch February 19, 2026 14:18
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