nvidia-container-toolkit/pkg/nvcdi
Evan Lezar 0a37f8798a Add firmware search paths when generating CDI specifications
Path to locate the GSP firmware is explicitly set to /lib/firmware/nvidia.
Users may chose to install the GSP firmware in alternate locations where
the kernel would look for firmware on the root filesystem.

Add locate functionality which looks for the GSP firmware files in the
same location as the kernel would
(https://docs.kernel.org/driver-api/firmware/fw_search_path.html).

The paths searched in order are:
- path described in /sys/module/firmware_class/parameters/path
- /lib/firmware/updates/UTS_RELEASE/
- /lib/firmware/updates/
- /lib/firmware/UTS_RELEASE/
- /lib/firmware/

Signed-off-by: Evan Lezar <elezar@nvidia.com>
2023-07-11 10:31:50 +02:00
..
spec Generate all device using merged transform 2023-05-12 13:52:58 +02:00
transform Add MergedDevice transform to generate all device 2023-05-12 13:52:58 +02:00
api.go Add csv mode to nvcdi api 2023-05-22 13:55:58 +02:00
common-nvml.go Define a basic logger interface 2023-06-12 10:46:10 +02:00
device-wsl.go Define a basic logger interface 2023-06-12 10:46:10 +02:00
driver-nvml.go Add firmware search paths when generating CDI specifications 2023-07-11 10:31:50 +02:00
driver-wsl_test.go Fix bug with multiple driver store paths 2023-06-26 21:37:14 +02:00
driver-wsl.go Fix bug with multiple driver store paths 2023-06-26 21:37:14 +02:00
full-gpu-nvml.go Define a basic logger interface 2023-06-12 10:46:10 +02:00
gds.go Add gds mode to nvcdi API 2023-03-07 18:47:52 +02:00
lib_test.go Fix mode resolution tests 2023-05-23 16:02:07 +02:00
lib-csv.go Add csv mode to nvcdi api 2023-05-22 13:55:58 +02:00
lib-nvml.go Only init nvml as required when generating CDI specs 2023-03-20 14:24:08 +02:00
lib-wsl.go Return nvcdi.spec.Interface from GetSpec 2023-03-01 12:45:30 +02:00
lib.go Define a basic logger interface 2023-06-12 10:46:10 +02:00
management.go Use *.* pattern when locating libcuda.so 2023-05-22 13:53:19 +02:00
mig-device-nvml.go Define a basic logger interface 2023-06-12 10:46:10 +02:00
mofed.go Add mofed mode to nvcdi API 2023-03-07 18:47:52 +02:00
namer.go Add nvcdi package with basic CDI generation API 2023-02-14 19:52:31 +01:00
options.go Define a basic logger interface 2023-06-12 10:46:10 +02:00
workarounds-device-folder-permissions.go Define a basic logger interface 2023-06-12 10:46:10 +02:00