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
2023-09-29 11:12:47 -07:00
2022-07-07 13:42:25 -07:00
2024-04-04 15:24:10 +02:00
2024-05-02 14:07:14 +02:00
2022-11-02 03:58:13 -07:00
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.

Description
No description provided
Readme 1.4 MiB
Languages
Go 97.1%
Makefile 2.9%