Sven-Hendrik Haase pushed to branch main at Arch Linux / Packaging / Packages / nvidia-utils
Commits: e1b4c53d by Vasiliy Stelmachenok at 2024-05-30T16:22:14+03:00 Use the new rules with nvidia-modprobe - - - - - 2 changed files: - PKGBUILD - nvidia.rules Changes: ===================================== PKGBUILD ===================================== @@ -19,7 +19,7 @@ source=('nvidia-drm-outputclass.conf' "https://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/${_pkg}.run") sha512sums=('de7116c09f282a27920a1382df84aa86f559e537664bb30689605177ce37dc5067748acf9afd66a3269a6e323461356592fdfc624c86523bf105ff8fe47d3770' '4b3ad73f5076ba90fe0b3a2e712ac9cde76f469cd8070280f960c3ce7dc502d1927f525ae18d008075c8f08ea432f7be0a6c3a7a6b49c361126dcf42f97ec499' - '42d00548b72f29d9bedf958cae63d336568267094dc5bcee97fae32fbf1d05b210038f4b9332deff23368e0c9d27cd6e43054e59d1edea7d82b77bbcb263815c' + 'da37a4aa24d2df1e69c10b506572d67e39c457cb611335baa3a7fcd46d795e33d203c8e71fdf6b155678f6da7eae52dd5e2f41b89f1050f0cc09bb66730accba' '02c69e2699cd20c99bf147139920ce4708c0e4224b7234c499481996e45a879f29ebe1e5eb0e94f756bf8290d2a019050dd92add9ad375ea3bd5e21704823249') ===================================== nvidia.rules ===================================== @@ -1,6 +1,8 @@ -# Make sure device nodes are present even when the DDX is not started for the Wayland/EGLStream case -KERNEL=="nvidia", RUN+="/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidiactl c $$(grep nvidia /proc/devices | cut -d \ -f 1) 255'" -KERNEL=="nvidia", RUN+="/usr/bin/bash -c 'for i in $$(cat /proc/driver/nvidia/gpus/*/information | grep Minor | cut -d \ -f 4); do /usr/bin/mknod -Z -m 666 /dev/nvidia$${i} c $$(grep nvidia /proc/devices | cut -d \ -f 1) $${i}; done'" -KERNEL=="nvidia_modeset", RUN+="/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidia-modeset c $$(grep nvidia /proc/devices | cut -d \ -f 1) 254'" -KERNEL=="nvidia_uvm", RUN+="/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidia-uvm c $$(grep nvidia-uvm /proc/devices | cut -d \ -f 1) 0'" -KERNEL=="nvidia_uvm", RUN+="/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidia-uvm-tools c $$(grep nvidia-uvm /proc/devices | cut -d \ -f 1) 1'" +# Device nodes are created by nvidia-modprobe, which is called by the nvidia DDX. +# In case the DDX is not started, the device nodes are never created, so call +# nvidia-modprobe in the udev rules to cover the Wayland/EGLStream and compute +# case without a started display. In the case where vfio-pci is used +# nvidia-modprobe should not be invoked. +ACTION=="bind", ATTR{vendor}=="0x10de", ATTR{class}=="0x03[0-9]*", DRIVER=="nvidia", \ + RUN+="/usr/bin/nvidia-modprobe", \ + RUN+="/usr/bin/nvidia-modprobe -c0 -u" View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/nvidia-utils/-/commit/e1b4c53d51f04d88fe2a3f1a530d420d6fb6b17d -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/nvidia-utils/-/commit/e1b4c53d51f04d88fe2a3f1a530d420d6fb6b17d You're receiving this email because of your account on gitlab.archlinux.org.