-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kmod-5.10-nvidia: move to R535 branch from R470
The R470 branch is end of life. In order to keep variants using the 5.10 kernel on a supported NVIDIA driver, this commit moves the kmod package for 5.10 to build the R535 branch and brings the driver in line with the other two kernel kmod packages in packaging style. Signed-off-by: Matthew Yeazel <[email protected]>
- Loading branch information
Showing
16 changed files
with
499 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
NVidiaEULAforAWS.pdf | ||
COPYING | ||
*.rpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
packages/kmod-5.10-nvidia/copy-open-gpu-kernel-modules.service.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[Unit] | ||
Description=Copy open GPU kernel modules | ||
RequiresMountsFor=PREFIX/lib/modules PREFIX/src/kernels | ||
# Rerunning this service after the system is fully loaded will override | ||
# the already linked kernel modules. This doesn't affect the running system, | ||
# since kernel modules are linked early in the boot sequence, but we still | ||
# disable manual restarts to prevent unnecessary kernel modules rewrites. | ||
RefuseManualStart=true | ||
RefuseManualStop=true | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecCondition=/usr/bin/ghostdog match-nvidia-driver open-gpu | ||
ExecStart=/usr/bin/driverdog --modules-set nvidia-open-gpu link-modules | ||
ExecStart=/usr/bin/driverdog --modules-set nvidia-open-gpu-copy-only link-modules | ||
RemainAfterExit=true | ||
StandardError=journal+console | ||
|
||
[Install] | ||
RequiredBy=preconfigured.target |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
packages/kmod-5.10-nvidia/load-open-gpu-kernel-modules.service.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[Unit] | ||
Description=Load open GPU kernel modules | ||
RequiresMountsFor=PREFIX/lib/modules PREFIX/src/kernels | ||
After=copy-open-gpu-kernel-modules.service | ||
Requires=copy-open-gpu-kernel-modules.service | ||
# Disable manual restarts to prevent loading kernel modules | ||
# that weren't linked by the running system | ||
RefuseManualStart=true | ||
RefuseManualStop=true | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecCondition=/usr/bin/ghostdog match-nvidia-driver open-gpu | ||
ExecStart=/usr/bin/driverdog --modules-set nvidia-open-gpu load-modules | ||
RemainAfterExit=true | ||
StandardError=journal+console | ||
|
||
[Install] | ||
RequiredBy=preconfigured.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Modern, systemd-aware settings: | ||
# - Log to journal via stderr | ||
# - Keep running in the foreground | ||
LOG_LEVEL=4 | ||
LOG_FILE_NAME= | ||
DAEMONIZE=0 | ||
|
||
# Use Unix domain sockets instead of localhost ports. | ||
UNIX_SOCKET_PATH=/run/nvidia/fabricmanager.sock | ||
FM_CMD_UNIX_SOCKET_PATH=/run/nvidia/fabricmanager-cmd.sock | ||
|
||
# Start Fabric Manager in bare metal or full pass through virtualization mode. | ||
FABRIC_MODE=0 | ||
FABRIC_MODE_RESTART=0 | ||
|
||
# Terminate on NVSwitch and GPU config failure. | ||
FM_STAY_RESIDENT_ON_FAILURES=0 | ||
|
||
# When there is a GPU to NVSwitch NVLink failure, remove the GPU with the failure | ||
# from NVLink P2P capability. | ||
ACCESS_LINK_FAILURE_MODE=0 | ||
|
||
# When there is an NVSwitch to NVSwitch NVLink failure, exit Fabric Manager. | ||
TRUNK_LINK_FAILURE_MODE=0 | ||
|
||
# When there is an NVSwitch failure or an NVSwitch is excluded, abort Fabric Manager. | ||
NVSWITCH_FAILURE_MODE=0 | ||
|
||
# When Fabric Manager service is stopped or terminated, abort all running CUDA jobs. | ||
ABORT_CUDA_JOBS_ON_FM_EXIT=1 | ||
|
||
# Path to topology and database files. | ||
TOPOLOGY_FILE_PATH=/usr/share/nvidia/tesla/nvswitch | ||
DATABASE_PATH=/usr/share/nvidia/tesla/nvswitch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[Unit] | ||
Description=NVIDIA fabric manager service | ||
|
||
[Service] | ||
ExecStart=/usr/libexec/nvidia/tesla/bin/nv-fabricmanager -c /etc/nvidia/fabricmanager.cfg | ||
Type=simple | ||
TimeoutSec=0 | ||
RestartSec=5 | ||
Restart=always | ||
RemainAfterExit=true | ||
StandardError=journal+console | ||
SuccessExitStatus=255 | ||
LimitCORE=infinity | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__LIBDIR__/nvidia/tesla/__NVIDIA_VERSION__/ | ||
__LIBDIR__/nvidia/tesla/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[nvidia-open-gpu] | ||
lib-modules-path = "kernel/drivers/extra/video/nvidia/open-gpu" | ||
|
||
[nvidia-open-gpu.kernel-modules."nvidia.ko"] | ||
copy-source = "__NVIDIA_MODULES__" | ||
|
||
[nvidia-open-gpu.kernel-modules."nvidia-modeset.ko"] | ||
copy-source = "__NVIDIA_MODULES__" | ||
|
||
[nvidia-open-gpu.kernel-modules."nvidia-uvm.ko"] | ||
copy-source = "__NVIDIA_MODULES__" |
8 changes: 8 additions & 0 deletions
8
packages/kmod-5.10-nvidia/nvidia-open-gpu-copy-only-config.toml.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[nvidia-open-gpu-copy-only] | ||
lib-modules-path = "kernel/drivers/extra/video/nvidia/open-gpu" | ||
|
||
[nvidia-open-gpu-copy-only.kernel-modules."nvidia-drm.ko"] | ||
copy-source = "__NVIDIA_MODULES__" | ||
|
||
[nvidia-open-gpu-copy-only.kernel-modules."nvidia-peermem.ko"] | ||
copy-source = "__NVIDIA_MODULES__" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
C /etc/drivers/nvidia-tesla.toml | ||
C /etc/drivers/nvidia-open-gpu.toml | ||
C /etc/drivers/nvidia-open-gpu-copy-only.toml | ||
C /etc/containerd/nvidia.env - - - - /usr/share/factory/nvidia/tesla/nvidia-path.env | ||
C /etc/ld.so.conf.d/nvidia-tesla.conf |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
R __PREFIX__/lib/modules/__KERNEL_VERSION__/kernel/drivers/extra/video/nvidia/tesla - - - - - | ||
d __PREFIX__/lib/modules/__KERNEL_VERSION__/kernel/drivers/extra/video/nvidia/tesla 0755 root root - - | ||
D /var/run/nvidia-persistenced 0755 nvidia nvidia - - | ||
R __PREFIX__/lib/modules/__KERNEL_VERSION__/kernel/drivers/extra/video/nvidia/open-gpu - - - - - | ||
d __PREFIX__/lib/modules/__KERNEL_VERSION__/kernel/drivers/extra/video/nvidia/open-gpu 0755 root root - - | ||
C /etc/nvidia/fabricmanager.cfg - - - - | ||
d /run/nvidia 0700 root root - | ||
D /var/run/nvidia-persistenced 0755 nvidia nvidia - - |