I can confirm: package works like a charm with 6.10-zen. Thanks drankinatty and vnctdj.
Search Criteria
Package Details: nvidia-390xx-utils 390.157-15
Package Actions
Git Clone URL: | https://aur.archlinux.org/nvidia-390xx-utils.git (read-only, click to copy) |
---|---|
Package Base: | nvidia-390xx-utils |
Description: | NVIDIA drivers utilities |
Upstream URL: | https://www.nvidia.com/ |
Licenses: | custom |
Conflicts: | nvidia-390xx-libgl, nvidia-libgl, nvidia-utils |
Provides: | nvidia-390xx-libgl, nvidia-libgl, nvidia-utils, opengl-driver, vulkan-driver |
Submitter: | svenstaro |
Maintainer: | jonathon (vnctdj) |
Last Packager: | vnctdj |
Votes: | 61 |
Popularity: | 1.04 |
First Submitted: | 2020-03-11 17:29 (UTC) |
Last Updated: | 2025-03-29 10:40 (UTC) |
Dependencies (6)
- egl-wayland (egl-wayland-gitAUR)
- libglvnd (libglvnd-gitAUR)
- xorg-server (xorg-server-gitAUR, xorg-server-bug865-issue1578AUR, xorg-server-bug865AUR)
- nvidia-390xx-settingsAUR (optional) – configuration tool
- opencl-nvidia-390xxAUR (optional) – OpenCL support
- xorg-server-devel (xorg-server-devel-gitAUR) (optional) – nvidia-xconfig
Required by (319)
- adaptivecpp (requires nvidia-utils)
- adaptivecpp-git (requires nvidia-utils)
- agisoft-metashape (requires nvidia-utils) (optional)
- agisoft-metashape-pro (requires nvidia-utils) (optional)
- airshipper (requires vulkan-driver) (optional)
- alchemy-viewer-git (requires nvidia-utils) (optional)
- alchemy-viewer-git (requires nvidia-libgl) (optional)
- aquamarine-git (requires opengl-driver)
- ares-emu (requires vulkan-driver)
- ares-emu-avx-git (requires vulkan-driver)
- ares-emu-git (requires vulkan-driver)
- armorpaint (requires opengl-driver)
- arrayfire-git (requires nvidia-utils) (optional)
- aurorafw-git (requires opengl-driver)
- auto-gpufreq-git (requires nvidia-utils)
- autokey-git (requires nvidia-utils) (optional)
- blackmagic-raw-sdk (requires nvidia-utils) (optional)
- btop-git (requires nvidia-utils) (optional)
- btop-gpu-git (requires nvidia-utils) (optional)
- ccdc-mercury (requires opengl-driver)
- Show 299 more...
Sources (18)
- 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.14.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
duht commented on 2024-07-24 08:23 (UTC)
vnctdj commented on 2024-07-20 22:28 (UTC) (edited on 2024-07-20 22:28 (UTC) by vnctdj)
I've added kernel 6.10 patch given that canolucas confirmed it works, thanks drankinatty!
But please don't flag the package as out-of-date, it's useless since Nvidia stopped releasing new versions... And I'm subscribed to the mailing list, I always read all of your messages :)
duht commented on 2024-07-20 12:07 (UTC)
@vnctdj thank you for adding fix- now everything works fine.
@drankinatty great job with this 6.10 patch!!
canolucas commented on 2024-07-20 01:45 (UTC) (edited on 2024-07-20 01:48 (UTC) by canolucas)
The patch from @drankinatty is working fine here as well. Linux 6.10 boots just fine. Also run some games to stress test the GPU for a while. Everything looks fine so far. Thanks @drankinatty for the patch !
drankinatty commented on 2024-07-19 10:34 (UTC) (edited on 2024-07-19 20:15 (UTC) by drankinatty)
Updated - original was the 535 patch -- the edit below is the 390xx rewrite
Okay, I have the patch, rewritten from the Herecura 535 patch for 390xx, nvidia-390xx-utils built, 6.10 kernel installed -- and it works like a champ.
The patch
diff -ruNb a/kernel/conftest.sh b/kernel/conftest.sh
--- a/kernel/conftest.sh 2024-07-19 04:36:26.183701185 -0500
+++ b/kernel/conftest.sh 2024-07-19 04:36:26.230366381 -0500
@@ -4464,20 +4464,22 @@
compile_check_conftest "$CODE" "NV_DRM_GEM_OBJECT_VMAP_HAS_MAP_ARG" "" "types"
;;
- unsafe_follow_pfn)
+ follow_pfn)
#
- # Determine if unsafe_follow_pfn() is present.
+ # Determine if follow_pfn() is present.
#
- # unsafe_follow_pfn() was added by commit 69bacee7f9ad
- # ("mm: Add unsafe_follow_pfn") in v5.13-rc1.
+ # follow_pfn() was added by commit 3b6748e2dd69
+ # ("mm: introduce follow_pfn()") in v2.6.31-rc1, and removed
+ # by commit 233eb0bf3b94 ("mm: remove follow_pfn")
+ # from linux-next 233eb0bf3b94.
#
CODE="
#include <linux/mm.h>
- void conftest_unsafe_follow_pfn(void) {
- unsafe_follow_pfn();
+ void conftest_follow_pfn(void) {
+ follow_pfn();
}"
- compile_check_conftest "$CODE" "NV_UNSAFE_FOLLOW_PFN_PRESENT" "" "functions"
+ compile_check_conftest "$CODE" "NV_FOLLOW_PFN_PRESENT" "" "functions"
;;
drm_plane_atomic_check_has_atomic_state_arg)
diff -ruNb a/kernel/nvidia/nvidia.Kbuild b/kernel/nvidia/nvidia.Kbuild
--- a/kernel/nvidia/nvidia.Kbuild 2022-10-12 04:29:57.000000000 -0500
+++ b/kernel/nvidia/nvidia.Kbuild 2024-07-19 05:17:39.148448922 -0500
@@ -165,7 +165,7 @@
NV_CONFTEST_FUNCTION_COMPILE_TESTS += ktime_get_real_ts64
NV_CONFTEST_FUNCTION_COMPILE_TESTS += ioremap_nocache
NV_CONFTEST_FUNCTION_COMPILE_TESTS += vga_tryget
-NV_CONFTEST_FUNCTION_COMPILE_TESTS += unsafe_follow_pfn
+NV_CONFTEST_FUNCTION_COMPILE_TESTS += follow_pfn
NV_CONFTEST_FUNCTION_COMPILE_TESTS += acpi_bus_get_device
NV_CONFTEST_FUNCTION_COMPILE_TESTS += acpi_video_backlight_use_native
diff -ruNb a/kernel/nvidia/os-mlock.c b/kernel/nvidia/os-mlock.c
--- a/kernel/nvidia/os-mlock.c 2022-10-12 04:30:26.000000000 -0500
+++ b/kernel/nvidia/os-mlock.c 2024-07-19 04:36:26.230366381 -0500
@@ -18,10 +18,10 @@
unsigned long address,
unsigned long *pfn)
{
-#if defined(NV_UNSAFE_FOLLOW_PFN_PRESENT)
- return unsafe_follow_pfn(vma, address, pfn);
-#else
+#if defined(NV_FOLLOW_PFN_PRESENT)
return follow_pfn(vma, address, pfn);
+#else
+ return -1;
#endif
}
Give it a shot.
drankinatty commented on 2024-07-19 08:53 (UTC) (edited on 2024-07-19 09:40 (UTC) by drankinatty)
I see 6.10 is now out. I've yet to locate a patch (and I've looked, but by search foo is failing me). I haven't attempted the update, but apparently somebody flagged the package as out of date on the 17th, so there must be issues. (my 390xx is in a production server, so it makes it a bit difficult to knock people offline simply to test)
It would have been helpful it the person flagging could have left error messages to give us more to add to our patch search.
If no word and no luck on the search, I'll go ahead and do the update on the server and go from there. I'll post the error messages here when I do. Worse-case scenario, I'll drop to LTS while we work on a patch.
Hah, normal spot has 535 driver patch that may work for 390, e.g. Herecura linux-6.10.patch I haven't tested yet.
We will need to adjust the nvidia.Kbuild
patch, e.g.
** kernel-6.10 patch**
patching file kernel/conftest.sh
Hunk #1 succeeded at 4464 with fuzz 1 (offset -717 lines).
patching file kernel/nvidia/nvidia.Kbuild
Hunk #1 FAILED at 161.
1 out of 1 hunk FAILED -- saving rejects to file kernel/nvidia/nvidia.Kbuild.rej
patching file kernel/nvidia/os-mlock.c
Hunk #1 succeeded at 18 (offset -18 lines).
drankinatty commented on 2024-07-16 12:20 (UTC) (edited on 2024-07-16 23:49 (UTC) by drankinatty)
Linux 6.10 is upon us. Any try building against it to see if a further patch is needed? Not yet in the testing repo, but we can count on seeing it within the next 10 days or so. The changes for 6.10 do not look that significant, so no telling if it will require a patch (though better safe than stuck...)
So far this vague kernel patch (not driver patch) is all I've come up with: NVIDIA proprietary driver on 6.10-RC2 kernel build error
And one other referencing the same issue: 550.78 won't compile on 6.10-rc1 due to GPL violations No telling if these will impact the 390 build, but usually patches flow downhill.
vnctdj commented on 2024-07-14 21:47 (UTC)
I've added the fix mentioned by duht, thanks!
Foxos commented on 2024-07-14 21:21 (UTC) (edited on 2024-07-14 21:22 (UTC) by Foxos)
@duht agreed, i wasn't getting the problem when starting my WM through sddm but with startx did still run into the freeze, the fix you mention works.
duht commented on 2024-07-14 11:02 (UTC)
@vnctdj please add fix added in current nvidia-utils from extra link.
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?