I've made a patch for 6.15 kernel support, it would be nice if some will test it on real hardware.
https://github.com/CachyOS/CachyOS-PKGBUILDS/commit/7326b056e0cb3c218eba52ee281fdbc2d3dcd016
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.17 |
First Submitted: | 2020-03-11 17:29 (UTC) |
Last Updated: | 2025-05-10 22:07 (UTC) |
I've made a patch for 6.15 kernel support, it would be nice if some will test it on real hardware.
https://github.com/CachyOS/CachyOS-PKGBUILDS/commit/7326b056e0cb3c218eba52ee281fdbc2d3dcd016
I've just added gcc-15.patch from bufferunderrun.
Thanks to all of you who took part in patch research and testing!
just to add one more confirmation: after adding gcc-15.patch the build works perfectly here, many thanks for your work! -s
gcc-15.patch
worked fine here as well. So, it seems we can add that patch to the package right ?
Considering:
* package is broken in its current state
* the patch is required for this package to be compatible with archlinux's current version of gcc
I just used the patch gcc-15.patch
of bufferunderrun here and upgrading to kernel 6.14.5-arch1-1 and gcc-15 was successful.
I could be missing something obvious,
Of course I'd forgotten to the patch
entry to prepare()
. Thanks @bufferunderrun.
And sorry to everyone else for the spam. Incredible work with the patches, investigations and brainstorming.
I assume you added it with a relative path and it's not adding the patch. This should work:
patch -Np1 -i "${srcdir}/gcc-15.patch" -d "${srcdir}/${_pkg}"
No issues with linux 6.14.5
EDIT: I used makepkg -sifc
I could be missing something obvious, since I normally use paru and haven't done this manually recently.
Downloaded the content of gcc-15.patch
from @bufferunderrun, with and without the addition from @drankinatty.
Modified PKGBUILD
updpkgsums
makepkg -sic
pacman "succeeded", but dkms install --no-depmod nvidia/390.157 -k 6.14.4-arch1-2 exited 10
. In the make.log
, there were a lot of issues with conftest.sh
. A snippet from ~600 lines is given below:
In file included from ././common/inc/conftest.h:5,
from ././common/inc/nv_stdarg.h:29,
from ././common/inc/os-interface.h:27,
from nvidia/nv-frontend.c:12:
././conftest/functions.h:15:2: error: #error kmem_cache_create() conftest failed!
15 | #error kmem_cache_create() conftest failed!
| ^~~~~
././conftest/functions.h:16:2: error: #error on_each_cpu() conftest failed!
16 | #error on_each_cpu() conftest failed!
| ^~~~~
././conftest/functions.h:17:2: error: #error smp_call_function() conftest failed!
17 | #error smp_call_function() conftest failed!
| ^~~~~
././conftest/functions.h:22:2: error: #error acpi_walk_namespace() conftest failed!
22 | #error acpi_walk_namespace() conftest failed!
| ^~~~~
././conftest/functions.h:24:2: error: #error dma_mapping_error() conftest failed!
24 | #error dma_mapping_error() conftest failed!
| ^~~~~
././conftest/functions.h:71:2: error: #error wait_on_bit_lock() conftest failed!
71 | #error wait_on_bit_lock() conftest failed!
| ^~~~~
././conftest/functions.h:76:2: error: #error radix_tree_replace_slot() conftest failed!
76 | #error radix_tree_replace_slot() conftest failed!
| ^~~~~
Does anyone know what could be wrong?
I have put a write-up on The bbs.archlinux.org discussion page outlining where I think the 6.15 kernel problem will be. If you can take a look and add any thoughts you have on the differences with the 390 driver common/inc/nv-mm.h
and how to backport the patch from the 470 driver to that file -- that is where I'm stuck.
I should add that kernel 6.15 will drop EXTRA_CFLAGS
backward compatibility, so one would need to switch to ccflags-y
when it's out. But judging from drankinatty's comments 6.15 will break quite a few other things, so people should prepare for a bumpy ride.
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?