Driver for Nvidia Geforce GTX 760
Hi I'm trying to upgrade my 5.18.10 system and the DKMS build is failing for my NVIDIA driver. To debug it I have tried to compile the driver separately out of DKMS, but the issue that keeps coming up with the new kernel (6.2.6) is [1] Sadly, though, my card cannot run a more recent version of the driver. When I compile e.g. the 5xx driver I get a message: NVRM: The NVIDIA GeForce GTX 760 GPU installed in this system is NVRM: supported through the NVIDIA 470.xx Legacy drivers. Please NVRM: visit http://www.nvidia.com/object/unix.html for more So it seems that I am stuck on having to use the 470x drivers, the latest one available from Nvidia is 470.161.03, which fails to compile on Kernel
=6
So what can I do? Stay on Kernel 5.18.10 or is it likely that NVidia or the community will provide a fix for the issue in [1]? Many thanks [1] CC [M] /some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-p2p.o /some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-acpi.c:84:19: error: initialization of ‘void (*)(struct acpi_device *)’ from incompatible pointer type ‘int (*)(struct acpi_device *, int)’ [-Werror=incompatible-pointer-types] 84 | .remove = nv_acpi_remove_two_args, | ^~~~~~~~~~~~~~~~~~~~~~~ /some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-acpi.c:84:19: note: (near initialization for ‘nv_acpi_driver_template.ops.remove’) /some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-dma.c:963: warning: "IMPORT_SGT_STUBS_NEEDED" redefined 963 | #define IMPORT_SGT_STUBS_NEEDED 0 | /some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-dma.c:957: note: this is the location of the previous definition 957 | #define IMPORT_SGT_STUBS_NEEDED 1 | /some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-mmap.c: In function ‘nv_encode_caching’: /some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-mmap.c:348:16: warning: this statement may fall through [-Wimplicit-fallthrough=] 348 | if (NV_ALLOW_CACHING(memory_type)) | ^ /some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-mmap.c:351:9: note: here 351 | default: | ^~~~~~~ CC [M] /some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-pat.o CC [M] /some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-procfs.o CC [M] /some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-procfs-utils.o CC [M] /some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-usermap.o CC [M] /some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-vm.o cc1: some warnings being treated as errors CC [M] /some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-vtophys.o make[2]: *** [scripts/Makefile.build:252: /some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-acpi.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [Makefile:2021: /some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build] Error
On Sat, 18 Mar 2023 14:27:49 +0000 Andy Pieters <arch-general@andypieters.me.uk> wrote:
Hi
I'm trying to upgrade my 5.18.10 system and the DKMS build is failing for my NVIDIA driver.
To debug it I have tried to compile the driver separately out of DKMS, but the issue that keeps coming up with the new kernel (6.2.6) is [1]
Sadly, though, my card cannot run a more recent version of the driver. When I compile e.g. the 5xx driver I get a message:
NVRM: The NVIDIA GeForce GTX 760 GPU installed in this system is NVRM: supported through the NVIDIA 470.xx Legacy drivers. Please NVRM: visit http://www.nvidia.com/object/unix.html for more
So it seems that I am stuck on having to use the 470x drivers, the latest one available from Nvidia is 470.161.03, which fails to compile on Kernel
=6
So what can I do? Stay on Kernel 5.18.10 or is it likely that NVidia or the community will provide a fix for the issue in [1]?
Many thanks
They have already provided a fix for the issue, the patch for 6.2 was applied to the AUR package almost a month ago. Please don't tell me you're trying to install directly from nvidia's website?
On Sat, 18 Mar 2023 at 15:39, Doug Newgard <dnewgard@outlook.com> wrote:
On Sat, 18 Mar 2023 14:27:49 +0000 Andy Pieters <arch-general@andypieters.me.uk> wrote:
Hi
I'm trying to upgrade my 5.18.10 system and the DKMS build is failing for my NVIDIA driver.
They have already provided a fix for the issue, the patch for 6.2 was applied
Yeah that's what I thought. I saw the other thread about nvidia driver although it was slightly different to mine
to the AUR package almost a month ago. Please don't tell me you're trying to install directly from nvidia's website?
No of course not. I am well aware that distros need to patch nvidia drivers and I refuse to install anything that doesn't come in the form of a pacman package. What happened is that I upgraded the system with pacman (doesn't touch AUR), and during the dkms rebuild, it simply could not build the driver. It kept running into the issue I described above. Weirdly, though, in desperation, I have removed all packages even remotely smelling like nvidia and reinstalled them from the yay cache directory and this time everything just works. YAY! Don't ask me why it works now. I'm just glad I don't have to ask my boss for another graphics card. (he would probably force me to install Windows instead :-( )
participants (2)
-
Andy Pieters
-
Doug Newgard