Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nvmdev] fix bug in construction of parent PCI device #43

Merged
merged 2 commits into from
Jul 16, 2024

Commits on Jul 15, 2024

  1. [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 NVIDIA@bf3f431
    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>
    cdesiniotis committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    44a5440 View commit details
    Browse the repository at this point in the history
  2. Add nvpci.Interface to the nvmdev struct to aid in unit tests

    Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
    cdesiniotis committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    7c3222d View commit details
    Browse the repository at this point in the history