Prerequisite: Patches up to 5.15 from AUR (https://aur.archlinux.org/packages/nvidia-340xx-dkms/).
These have to be included in the PKGBUILD the usual way, by amending the source() and bsums() arrays as well as the patch section.
The patch for kernel 5.15 from AUR, unfortunately, has DOS instead of Unix line breaks which causes patch to spit out a warning
(Stripping trailing CRs from patch; use --binary to disable.)
patching file kernel/nv-drm.c
patch unexpectedly ends in middle of line
It appears to be merely cosmetically but can be removed by converting the line breaks
Prerequisite: Patches up to 5.15 from AUR (https://aur.archlinux.org/packages/nvidia-340xx-dkms/). These have to be included in the PKGBUILD the usual way, by amending the source() and bsums() arrays as well as the patch section. The patch for kernel 5.15 from AUR, unfortunately, has DOS instead of Unix line breaks which causes
patch
to spit out a warningIt appears to be merely cosmetically but can be removed by converting the line breaks
For kernel 5.16, it looks like there is not a lot to be done in addition:
Finally, we need the usual ABI check workaround:
And that's already all I had to do to get that driver working with kernel 5.16 :)