Go to file
Christopher Desiniotis 44a5440a0a
[nvmdev] fix bug in construction of parent PCI device
When constructing NvidiaPCIDevice objects for each 'parent' device in the
'/sys/class/mdev_bus' directory, use the default PCI devices root
'/sys/bus/pci/devices'. All devices in '/sys/class/mdev_bus' will have
a corresponding directory at '/sys/bus/pci/devices'.

Starting with bf3f431fc8
the construction of the NvidiaPCIDevice object will fail when attempting to detect the physfn.
When SRIOV is used, all the VFs will show up under '/sys/class/mdev_bus', but the physfn will
only show up under '/sys/bus/pci/devices'.

Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
2024-07-15 12:06:52 -07:00
.github Bump golangci/golangci-lint-action from 5 to 6 2024-05-07 08:18:00 +00:00
pkg [nvmdev] fix bug in construction of parent PCI device 2024-07-15 12:06:52 -07:00
vendor Bump github.com/NVIDIA/go-nvml from 0.12.0-6 to 0.12.4-0 2024-05-26 08:10:12 +00:00
.common-ci.yml Use docker:dind image in CI 2023-09-29 11:12:47 -07:00
.gitignore Update .gitignore 2022-07-07 13:42:25 -07:00
.gitlab-ci.yml Add .gitlab-ci files (for both internal and external builds) 2021-03-22 11:22:02 +00:00
.golangci.yml Address golangci-lint warnings 2024-04-04 15:24:10 +02:00
.nvidia-ci.yml Add .gitlab-ci files (for both internal and external builds) 2021-03-22 11:22:02 +00:00
CONTRIBUTING.md Add initial CONTRIBUTING, LICENSE, and README files 2021-03-22 11:19:45 +00:00
go.mod Bump github.com/NVIDIA/go-nvml from 0.12.0-6 to 0.12.4-0 2024-05-26 08:10:12 +00:00
go.sum Bump github.com/NVIDIA/go-nvml from 0.12.0-6 to 0.12.4-0 2024-05-26 08:10:12 +00:00
LICENSE Add initial CONTRIBUTING, LICENSE, and README files 2021-03-22 11:19:45 +00:00
Makefile Fix check targets 2024-05-02 14:07:14 +02:00
NOTICE Added PCI IDS support and DPU detection 2022-11-02 03:58:13 -07:00
README.md add make target to update default pciids file 2023-09-22 12:37:41 -07:00
versions.mk Add GitHub actions 2024-04-04 13:08:50 +02:00

The go-nvlib project

This repository holds a collection of go packages to ease the development of NVIDIA GPU management software. Many of its abstractions build and expand upon the base go-nvml package which provides a comprehensive wrapper around the official NVIDIA Management Library.