@canolucas patch worked perfectly. Just did the linux-6.6.1 update, dkms built the module without complaint, on reboot, the display is up and running. Let's hope 6.7 is as tame. Great job!
Search Criteria
Package Details: opencl-nvidia-390xx 390.157-14
Package Actions
Git Clone URL: | https://aur.archlinux.org/nvidia-390xx-utils.git (read-only, click to copy) |
---|---|
Package Base: | nvidia-390xx-utils |
Description: | OpenCL implemention for NVIDIA |
Upstream URL: | https://www.nvidia.com/ |
Licenses: | custom |
Conflicts: | opencl-nvidia |
Provides: | opencl-driver, opencl-nvidia |
Submitter: | svenstaro |
Maintainer: | jonathon (vnctdj) |
Last Packager: | vnctdj |
Votes: | 60 |
Popularity: | 0.98 |
First Submitted: | 2020-03-11 17:29 (UTC) |
Last Updated: | 2025-01-24 07:30 (UTC) |
Dependencies (2)
- zlib (zlib-ng-compat-gitAUR, zlib-gitAUR, zlib-ng-compat)
- opencl-headers (opencl-headers-gitAUR) (optional) – headers necessary for OpenCL development
Required by (67)
- aftershotpro2 (requires opencl-nvidia) (optional)
- aftershotpro3 (requires opencl-nvidia) (optional)
- arrayfire-git (requires opencl-driver) (optional)
- bfgminer-git (requires opencl-driver) (optional)
- computecpp (requires opencl-driver)
- cpu-x-opencl (requires opencl-driver) (optional)
- cuda-10.0 (requires opencl-nvidia)
- cuda-10.2 (requires opencl-nvidia)
- cuda-11.1 (requires opencl-nvidia)
- cuda-11.7 (requires opencl-nvidia)
- cuda-8.0 (requires opencl-nvidia)
- cuda-9.0 (requires opencl-nvidia)
- cuda-9.2 (requires opencl-nvidia)
- cuda11.1 (requires opencl-nvidia)
- cuda11.4 (requires opencl-nvidia)
- cuda11.4-versioned (requires opencl-nvidia)
- cuda12.0 (requires opencl-nvidia)
- cuda12.0-versioned (requires opencl-nvidia)
- cytoscape (requires opencl-driver) (optional)
- davinci-resolve (requires opencl-driver)
- Show 47 more...
Sources (17)
- gcc-14.patch
- https://us.download.nvidia.com/XFree86/Linux-x86_64/390.157/NVIDIA-Linux-x86_64-390.157.run
- kernel-4.16+-memory-encryption.patch
- kernel-6.10.patch
- kernel-6.12.patch
- kernel-6.13.patch
- kernel-6.2.patch
- kernel-6.3.patch
- kernel-6.4.patch
- kernel-6.5.patch
- kernel-6.6.patch
- kernel-6.8.patch
- nvidia-390xx-utils.sysusers
- nvidia-390xx.rules
- nvidia-drm-outputclass.conf
- systemd-homed-override.conf
- systemd-suspend-override.conf
Latest Comments
« First ‹ Previous 1 .. 5 6 7 8 9 10 11 12 13 14 15 .. 28 Next › Last »
drankinatty commented on 2023-11-09 05:21 (UTC)
air-g4p commented on 2023-11-08 07:25 (UTC) (edited on 2023-11-08 11:07 (UTC) by air-g4p)
@canolucas - thanks for your and Ike Devolder's efforts. nvidia-390xx-utils now compiles, installs and operates correctly against 6.6.0-arch1-1.
As a heads up to everyone, if you are going use Ike's new PKGBUILD, note the file verification change from b2sums
in the current version versus sha512sums
in the new version.
Cheers
canolucas commented on 2023-11-08 02:57 (UTC) (edited on 2023-11-08 02:58 (UTC) by canolucas)
@air-g4p looks like your build failed because of the error: ‘drm_gem_prime_handle_to_fd’ undeclared. You need to apply the patch correctly or manually remove the following line from nvidia-drm-drv.c (line 708 aprox) .prime_handle_to_fd = drm_gem_prime_handle_to_fd,
Here is a working PKGBUILD for reference: https://gitlab.com/herecura/packages/nvidia-390xx-dkms/
air-g4p commented on 2023-11-07 14:59 (UTC)
Appreciate the 6.6 patch efforts, but for me it fails this way:
==> dkms install --no-depmod nvidia/390.157 -k 6.6.0-arch1-1
Error! Bad return status for module build on kernel: 6.6.0-arch1-1 (x86_64)
Consult /var/lib/dkms/nvidia/390.157/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/390.157 -k 6.6.0-arch1-1' exited 10
make.log, here:
Please let me know if you spot the issue.
Cheers
canolucas commented on 2023-11-06 20:12 (UTC)
@drankinatty @Wargoth That's awesome news, thanks for the feedback. I also tested it using the latest kernel from core-testing, its working fine so far. If no other changes are needed, I think we are ready for pushing to git. Please comment if you think otherwise or if any compilation fails.
Wargoth commented on 2023-11-06 08:49 (UTC) (edited on 2023-11-06 08:49 (UTC) by Wargoth)
This patch version works for me. Kernel 6.6
diff --ignore-space-change --unified --recursive --no-dereference a/kernel/nvidia-drm/nvidia-drm-drv.c b/kernel/nvidia-drm/nvidia-drm-drv.c
--- a/kernel/nvidia-drm/nvidia-drm-drv.c
+++ b/kernel/nvidia-drm/nvidia-drm-drv.c
@@ -700,8 +700,11 @@
.ioctls = nv_drm_ioctls,
.num_ioctls = ARRAY_SIZE(nv_drm_ioctls),
-
+// Rel. commit "drm/prime: Unexport helpers for fd/handle conversion" (Thomas Zimmermann, 20 Jun 2023)
+// This function is no longer exported, but leaving it to NULL is equivalent
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 6, 0)
.prime_handle_to_fd = drm_gem_prime_handle_to_fd,
+#endif
#if defined(NV_DRM_DRIVER_HAS_GEM_PRIME_CALLBACKS)
.gem_prime_export = nv_drm_gem_prime_export,
drankinatty commented on 2023-11-02 01:55 (UTC) (edited on 2023-11-02 02:03 (UTC) by drankinatty)
Thank you @canolucas. I built nvidia-390xx-utils-390.157 incorporating the patch and the actual build went fine (under the 6.5 kernel) will have to wait until the 6.6 package moves to core. The box I have the card in is a server and it is hard to take it off-line to roll in the full core-testing update to pull in the 6.6 kernel before it is released. If I can find a dead time I'll try.
If the only change is fd/handle conversion no longer being exported, then the 6.6 kernel driver should build fine with the driver. Glad it isn't major open-heart surgery.
canolucas commented on 2023-11-01 02:48 (UTC)
Just uploaded a tentative fix for linux 6.6, however I couldn't test it yet. Please let us know if anyone has the time to test it, otherwise I'll try to test it during the weekend. https://paste.opensuse.org/pastes/d0b21ec8d3d4
drankinatty commented on 2023-10-31 07:11 (UTC) (edited on 2023-10-31 19:19 (UTC) by drankinatty)
It's that time again... The King Penguin has just release the 6.6 kernel. Time to start keeping eyes open for patches. (we could always hope it will just work as is -- but experience has shown we will need to scramble to patch when Arch provides the 6.6 update...) Any favorite places to watch?
(update: linux-6.6 just hit the Arch core-testing repo)
dhtseany commented on 2023-09-23 13:01 (UTC) (edited on 2023-09-25 12:07 (UTC) by dhtseany)
Edit: I figured out that I actually didn't have linux-headers installed, this resolved the build problem. My offer to help maintain the package remains.
Greetings, I have a Dell laptop with a Quadro 4000 / NVC0 which requires the 390xx driver that I'll be servicing for some time going forward for a friend's recording studio.
I am a package maintainer for other various things on the AUR however I haven't dealt specifically with GPU drivers before. Regardless, my skill set should serve suitably for testing and troubleshooting and I can help maintain this package.
I can see that there is presently an issue with the DKMS module which produces the following error and I'm happy to help work out the issue:
(1/2) Arming ConditionNeedsUpdate...
(2/2) Install DKMS modules
==> ERROR: Missing lost+found kernel headers for module nvidia/390.157.
==> ERROR: Missing swapfile kernel headers for module nvidia/390.157.
==> ERROR: Missing bin kernel headers for module nvidia/390.157.
==> ERROR: Missing lib64 kernel headers for module nvidia/390.157.
==> ERROR: Missing mnt kernel headers for module nvidia/390.157.
==> ERROR: Missing run kernel headers for module nvidia/390.157.
==> ERROR: Missing dev kernel headers for module nvidia/390.157.
==> ERROR: Missing home kernel headers for module nvidia/390.157.
==> ERROR: Missing tmp kernel headers for module nvidia/390.157.
==> ERROR: Missing opt kernel headers for module nvidia/390.157.
==> ERROR: Missing root kernel headers for module nvidia/390.157.
==> ERROR: Missing lib kernel headers for module nvidia/390.157.
==> ERROR: Missing storage kernel headers for module nvidia/390.157.
==> ERROR: Missing etc kernel headers for module nvidia/390.157.
==> ERROR: Missing boot kernel headers for module nvidia/390.157.
==> ERROR: Missing sys kernel headers for module nvidia/390.157.
==> ERROR: Missing proc kernel headers for module nvidia/390.157.
==> ERROR: Missing EDITOR=nano kernel headers for module nvidia/390.157.
==> ERROR: Missing var kernel headers for module nvidia/390.157.
==> ERROR: Missing usr kernel headers for module nvidia/390.157.
==> ERROR: Missing srv kernel headers for module nvidia/390.157.
==> ERROR: Missing sbin kernel headers for module nvidia/390.157.
Pinned Comments
vnctdj commented on 2025-01-24 07:37 (UTC)
Use this forum thread for discussion: https://bbs.archlinux.org/viewtopic.php?pid=1946926
jonathon commented on 2022-05-26 09:46 (UTC)
Please don't flag this package out-of-date unless a new version has been released by NVIDIA.
jonathon commented on 2021-12-26 22:44 (UTC) (edited on 2021-12-26 22:44 (UTC) by jonathon)
The DKMS package guidelines are explicit that
linux-headers
should not be a dependency of any DKMS package.As a concrete example of why including that as a hard dependency is a bad idea, what happens when
linux
is not an installed kernel?