-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
nixos/nvidia: softdep on nvidia-uvm fails with the open driver (breaks CUDA) #334180
Comments
Maybe we can start by choosing between |
The EGL error seems unrelated. But also I don't quite understand how could |
probably related: #333123 |
Just wanted to note that you can just use That said, the # Closed
$ modprobe --show-depends nvidia
insmod /run/booted-system/kernel-modules/lib/modules/6.10.3-xanmod1/misc/nvidia.ko "NVreg_DynamicPowerManagement=0x02" NVreg_PreserveVideoMemoryAllocations=1
insmod /run/booted-system/kernel-modules/lib/modules/6.10.3-xanmod1/misc/nvidia.ko "NVreg_DynamicPowerManagement=0x02" NVreg_PreserveVideoMemoryAllocations=1
insmod /run/booted-system/kernel-modules/lib/modules/6.10.3-xanmod1/misc/nvidia-uvm.ko # <---
# Open
$ modprobe --show-depends nvidia
insmod /run/booted-system/kernel-modules/lib/modules/6.10.3-xanmod1/kernel/crypto/ecc.ko.xz
insmod /run/booted-system/kernel-modules/lib/modules/6.10.3-xanmod1/kernel/drivers/video/nvidia.ko.xz "NVreg_DynamicPowerManagement=0x02" NVreg_PreserveVideoMemoryAllocations=1 NVreg_OpenRmEnableUnsupportedGpus=1
# Closed
$ modprobe --show-depends nvidia-uvm
insmod /run/booted-system/kernel-modules/lib/modules/6.10.3-xanmod1/misc/nvidia.ko "NVreg_DynamicPowerManagement=0x02" NVreg_PreserveVideoMemoryAllocations=1
insmod /run/booted-system/kernel-modules/lib/modules/6.10.3-xanmod1/misc/nvidia-uvm.ko
# Open
$ modprobe --show-depends nvidia-uvm
insmod /run/booted-system/kernel-modules/lib/modules/6.10.3-xanmod1/kernel/crypto/ecc.ko.xz
insmod /run/booted-system/kernel-modules/lib/modules/6.10.3-xanmod1/kernel/drivers/video/nvidia.ko.xz "NVreg_DynamicPowerManagement=0x02" NVreg_PreserveVideoMemoryAllocations=1 NVreg_OpenRmEnableUnsupportedGpus=1
insmod /run/booted-system/kernel-modules/lib/modules/6.10.3-xanmod1/kernel/drivers/video/nvidia-uvm.ko.xz |
@eljamm I'm pretty sure Trying dry-run (?) without disabling the closed driver I observe:
As I said, I think it's justified to special-case the open driver in nixos modules until we've figured out why softdep might not work (if anyone's willing to prepare a PR) |
It runs too early, when the driver is loaded but before the driver is bound to the hardware would be my guess. Specifically
|
nvidia-open
because nvidia-uvm
doesn't automatically load
Describe the bug
Currently, the
nvidia-uvm
module is lazily loaded (EDIT: introduced in #267335) after thenvidia
module:This works fine with the closed-source module, but not with the open-source one. I'm currently using the stable 555.58.02, but I remember encountering this issue with the beta 560 drivers as well.
Aside from manually loading the module with
modprobe
, runningnvidia-settings
ornvidia-bug-report.sh
(possibly other commands as well) makes the module load as reported in NVIDIA/open-gpu-kernel-modules#689EDIT(SomeoneSerge): There are more reports reproducing the issue in #286028
Steps To Reproduce
hardware.nvidia.open = true;
nvidia-uvm
is not loaded:nvidia-
command withsudo
:nvidia-uvm
is loaded:Expected behavior
The
nvidia-uvm
module loads automatically after thenvidia
module.Additional context
It's worth noting that
nvidia-uvm
is the only module not in boot.kernelModules. Adding it there, the module is automatically loaded on startup, as intended.Notify maintainers
Pinging those who I think would be most interested in this. Apologies if I'm wrong.
@Kiskae @NickCao @NixOS/cuda-maintainers
Metadata
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: