Skip to content

Conversation

@elezar
Copy link
Member

@elezar elezar commented Jan 7, 2026

On Tegra-based systems where both an iGPU (e.g. Thor) and a dGPU are present, the rendering devices for the iGPU are associated with /dev/nvidia2. This means that this device node should be included if present.

Depends on #1556

@elezar elezar marked this pull request as draft January 7, 2026 15:40
@coveralls
Copy link

coveralls commented Jan 7, 2026

Pull Request Test Coverage Report for Build 21293442929

Details

  • 77 of 93 (82.8%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.6%) to 39.478%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/platform-support/tegra/mount_specs.go 7 11 63.64%
internal/platform-support/tegra/filter.go 0 6 0.0%
pkg/nvcdi/lib-csv.go 70 76 92.11%
Totals Coverage Status
Change from base Build 21291301608: 1.6%
Covered Lines: 5703
Relevant Lines: 14446

💛 - Coveralls

@elezar elezar changed the title WIP: Fix mixed csv fix: Include /dev/nvidia2 in container requesting iGPU if required Jan 22, 2026
@elezar elezar added this to the v1.19.0 milestone Jan 22, 2026
@elezar elezar mentioned this pull request Jan 22, 2026
@elezar elezar marked this pull request as ready for review January 22, 2026 16:40
@elezar elezar added the tegra label Jan 23, 2026
Copy link
Collaborator

@ArangoGutierrez ArangoGutierrez left a comment

Choose a reason for hiding this comment

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

Approved with non-blocking NIT's

noFilterDeviceNodes bool
index int
uuid string
mode string
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we consider

type gpuMode string

const (
    gpuModeDGPU gpuMode = "dgpu"
    gpuModeIGPU gpuMode = "igpu"
)

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

Comment on lines 133 to 134
for t, p := range p.MountSpecPathsByType() {
f[t] = &matcherAsFilter{pathPatterns(p)}
Copy link
Collaborator

Choose a reason for hiding this comment

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

readability NIT

Suggested change
for t, p := range p.MountSpecPathsByType() {
f[t] = &matcherAsFilter{pathPatterns(p)}
for t, paths := range p.MountSpecPathsByType() {
f[t] = &matcherAsFilter{pathPatterns(paths)}

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated.

@elezar elezar force-pushed the fix-mixed-csv branch 2 times, most recently from f0b4d63 to 92919d1 Compare January 23, 2026 15:21
Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar elezar merged commit 89c6e0f into NVIDIA:main Jan 23, 2026
13 checks passed
@elezar elezar deleted the fix-mixed-csv branch January 23, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants