Skip to content

fix(device): only trim PCI bus ID prefix for padded 8-digit domains#89

Merged
dims merged 1 commit into
NVIDIA:mainfrom
shivamerla:fix_pci_bus_id_prefix
Jun 1, 2026
Merged

fix(device): only trim PCI bus ID prefix for padded 8-digit domains#89
dims merged 1 commit into
NVIDIA:mainfrom
shivamerla:fix_pci_bus_id_prefix

Conversation

@shivamerla
Copy link
Copy Markdown
Contributor

This helps when testing with nvml-mock library which returns busID of the form 0000:D8:00.0 instead of typical padded busID like 00000000:D8:00.0 from NVML. Without the fix, GetPCIBusID() returns an invalid busID as :0a:00.0

The change that triggered this behavior was NVIDIA/k8s-test-infra#353

This helps when testing with nvml-mock library which returns busID of the form 0000:D8:00.0 instead of
typical padded busID like 00000000:D8:00.0 from NVML. Without the fix, GetPCIBusID() returns an invalid
busID as :0a:00.0.

The change that triggered this behavior was NVIDIA/k8s-test-infra#353

Signed-off-by: Shiva Krishna, Merla <smerla@nvidia.com>
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.

2 participants