go-nvlib/pkg
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
..
nvlib Add function to get the PCI bus ID for a device 2024-06-17 14:56:19 +02:00
nvmdev [nvmdev] fix bug in construction of parent PCI device 2024-07-15 12:06:52 -07:00
nvpci feat: add additinal SRIOV info to NvidiaPciDevice 2024-06-07 14:12:33 +02:00
pciids [2024-06-23] update the pci db file 2024-06-24 17:51:19 -07:00