You are not logged in.

#1 2024-02-01 15:19:12

Leytox
Member
Registered: 2023-01-22
Posts: 5

Issue with Nvidia-Dkms

When i'm trying to install nvidia-dkms this error occurs:

==> dkms install --no-depmod nvidia/545.29.06 -k 6.7.3-arch1-1
Error! Bad return status for module build on kernel: 6.7.3-arch1-1 (x86_64)
Consult /var/lib/dkms/nvidia/545.29.06/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/545.29.06 -k 6.7.3-arch1-1' exited 10

Content of /var/lib/dkms/nvidia/545.29.06/build/make.log:

➜  ~ cat /var/lib/dkms/nvidia/545.29.06/build/make.log | tail   
/var/lib/dkms/nvidia/545.29.06/build/nvidia.o: warning: objtool: _nv012082rm+0x5d: 'naked' return found in RETHUNK build
/var/lib/dkms/nvidia/545.29.06/build/nvidia.o: warning: objtool: _nv039740rm+0x12f: 'naked' return found in RETHUNK build
  MODPOST /var/lib/dkms/nvidia/545.29.06/build/Module.symvers
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_unlock'
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_lock'
make[3]: *** [scripts/Makefile.modpost:145: /var/lib/dkms/nvidia/545.29.06/build/Module.symvers] Error 1
make[2]: *** [/usr/lib/modules/6.7.3-arch1-1/build/Makefile:1863: modpost] Error 2
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.7.3-arch1-1/build'
make: *** [Makefile:82: modules] Error 2



I'm using default linux kernel

Offline

#2 2024-02-01 16:16:28

Leytox
Member
Registered: 2023-01-22
Posts: 5

Re: Issue with Nvidia-Dkms

Seems like it was some kind of a kernel bug, i've installed linux 6.6 and everything works fine

Offline

#3 2024-02-01 17:40:53

loqs
Member
Registered: 2014-03-06
Posts: 17,106

Offline

#4 2024-02-02 15:40:59

Ehllay
Member
Registered: 2023-03-07
Posts: 13

Re: Issue with Nvidia-Dkms

Same issue here, mkinitcpio fails during update to 6.7.3. I have downgraded both linux and linux-headers to 6.7.2 and it builds the image correctly. Using 535 drivers

Last edited by Ehllay (2024-02-02 15:42:12)

Offline

#5 2024-02-02 15:49:26

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,310

Re: Issue with Nvidia-Dkms

Ehllay wrote:

Using 535 drivers

This issue was already fixed. The problem here is your partial updates.

Online

#6 2024-02-02 18:38:03

cyberplebeian
Member
Registered: 2024-02-02
Posts: 2

Re: Issue with Nvidia-Dkms

Scimmia wrote:
Ehllay wrote:

Using 535 drivers

This issue was already fixed. The problem here is your partial updates.

I'm forced to use 535.113.01, I can't use latest 545.29.06 driver because it does this: https://www.youtube.com/watch?v=YPd0uqozQvk

I just booted up without graphics and noticed these errors in DKMS log as well

ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_unlock'
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_lock'

Is there a way I can keep using 535?

Last edited by cyberplebeian (2024-02-02 18:38:41)

Offline

#7 2024-02-02 18:40:24

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,310

Re: Issue with Nvidia-Dkms

You'll need to patch it the same way that 545 was patched

Online

#8 2024-02-02 19:43:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 20,994

Re: Issue with Nvidia-Dkms

FWIW assuming this is in a wayland session you might want to test nvidia-beta do go forward rather than backwards, if I'm reading the changelog right it contains a bunch of fixes for xwayland (alternatively/additionally you could test https://aur.archlinux.org/packages/xorg … t-sync-git  which is an experimental patchset by nvidia to go towards explicit sync, which apparently is on the roadmap for most implementations anyway)

Offline

#9 2024-02-02 21:32:56

cyberplebeian
Member
Registered: 2024-02-02
Posts: 2

Re: Issue with Nvidia-Dkms

V1del wrote:

FWIW assuming this is in a wayland session you might want to test nvidia-beta do go forward rather than backwards, if I'm reading the changelog right it contains a bunch of fixes for xwayland (alternatively/additionally you could test https://aur.archlinux.org/packages/xorg … t-sync-git  which is an experimental patchset by nvidia to go towards explicit sync, which apparently is on the roadmap for most implementations anyway)

With nvidia-beta this issue persists.
Tried installing explicit sync patch from AUR and it still flickers, but differently: https://www.youtube.com/watch?v=-fZBd3oN4Wk

Last edited by cyberplebeian (2024-02-02 21:33:32)

Offline

#10 2024-02-03 07:40:11

wxt1221
Member
Registered: 2023-08-20
Posts: 11

Re: Issue with Nvidia-Dkms

==> ERROR: Missing 6.6.15-1-lts kernel modules tree for module nvidia/545.29.06.

Last edited by wxt1221 (2024-02-03 07:53:36)

Offline

#11 2024-02-03 09:12:32

loqs
Member
Registered: 2014-03-06
Posts: 17,106

Re: Issue with Nvidia-Dkms

wxt1221 wrote:

==> ERROR: Missing 6.6.15-1-lts kernel modules tree for module nvidia/545.29.06.

linux-lts-headers is installed on the system but not linux-lts?  This does not appear to be the same issue.  Please use code tags.

Offline

#12 2024-02-04 17:31:58

potajito
Member
Registered: 2024-02-04
Posts: 1

Re: Issue with Nvidia-Dkms

cyberplebeian wrote:
Scimmia wrote:
Ehllay wrote:

Using 535 drivers

This issue was already fixed. The problem here is your partial updates.

I'm forced to use 535.113.01, I can't use latest 545.29.06 driver because it does this: https://www.youtube.com/watch?v=YPd0uqozQvk

I just booted up without graphics and noticed these errors in DKMS log as well

ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_unlock'
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_lock'

Is there a way I can keep using 535?

Yeah, I'm on the same boat here. Post 535 drivers are unusable for me, even with explicit sync patches installed. Latest working kernel is 6.7.1, so I guess I'll stick with that one until nvidia fix their drivers or something breaks.

Offline

#13 2024-02-05 00:01:02

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,310

Re: Issue with Nvidia-Dkms

Again, you have to patch your drivers the same way the nvidia-dkms package was patched. https://gitlab.archlinux.org/archlinux/ … 6f7767ad54

It looks like nvidia-535xx-dkms was already patched, too, which you should be using instead of just holding back an old package.

Online

#14 2024-02-08 13:36:28

Leytox
Member
Registered: 2023-01-22
Posts: 5

Re: Issue with Nvidia-Dkms

linux-zen 6.7.4 works fine

Offline

#15 2024-02-20 15:29:16

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 20,994

Re: Issue with Nvidia-Dkms

The nvidia-dkms package was relevantly patched, assuming the kernel developers don't break things again in a stable release you can generally assume this "fixed" and if something similar happens again it will likely be of a different nature.

If this is [SOLVED] please mark it as such by editing the title in your first post.

Offline

Board footer

Powered by FluxBB