Commit Graph

13 Commits

Author SHA1 Message Date
Christopher Desiniotis
066d8f30bc Allow options to be passed when creating an instance of the nvpci interface
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
2023-06-09 17:27:31 -07:00
Evan Lezar
e96d9c58f1 Add GetGPUByPciBusID to nvpci.Interface
This change adds a GetGPUByPciBusID method to the nvpci Interface.
The exising NewDevice function is moved to nvmdev where it is used.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
2022-11-15 17:42:22 +01:00
Zvonko Kaiser
f3102f8dcb Added PCI IDS support and DPU detection 2022-11-02 03:58:13 -07:00
Christopher Desiniotis
6ff7845b92 nvpci: Add GetGPUByIndex()
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
2022-08-25 09:34:49 -07:00
Christopher Desiniotis
afdf3edd99 Detect if NvidiaPCIDevice is a PF or VF
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
2022-07-28 19:16:39 -07:00
Christopher Desiniotis
f52cd402a1 Detect iommu_group for PCI and mdev devices 2022-07-25 23:20:03 +00:00
Christopher Desiniotis
09edde0a0b Detect driver bound to an NvidiaPCIDevice
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
2022-07-08 08:46:02 -07:00
Christopher Desiniotis
e2d858daed Use 'os' instead of 'ioutil' which is recommended starting with Go 1.16
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
2022-07-07 13:43:11 -07:00
Zvonko Kaiser
c5ed06b032 Added function to retrieve the BAR sizes 2022-06-01 03:20:10 -07:00
Christopher Desiniotis
505f83b943 Add nvmdev package for mdev (vGPU) devices 2022-05-25 16:34:29 +00:00
Zvonko Kaiser
2c175dcdbf Fix the linting errors 2022-02-16 10:43:27 +01:00
Kevin Klues
5adc7bd87c Add numa node as a standard field in the nvpci struct
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2021-03-22 17:18:38 +00:00
Kevin Klues
6a0fd37ab6 Add pkg/nvpci as a direct port from mig-parted/pkg/nvpci
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2021-03-22 11:19:56 +00:00