Gentoo Archives: gentoo-user

From: Alexander Kapshuk <alexander.kapshuk@×××××.com>
To: Gentoo mailing list <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Nvidia kernel module API version mismatch
Date: Thu, 15 Mar 2018 11:49:07
Message-Id: CAJ1xhMUYXbTpxtVwS1qj=EO=2rKEfv-Ac+r4EDSAO_QMFDjYLg@mail.gmail.com
In Reply to: [gentoo-user] Nvidia kernel module API version mismatch by Aleksander Okonski
1 On Thu, Mar 15, 2018 at 1:09 PM, Aleksander Okonski
2 <aleksander.oko@×××××.com> wrote:
3 > Hey,
4 >
5 > I have run into a strange problem with my nvidia drivers and gentoo. I am
6 > currently running kernel 4.14.14 and I upgraded my
7 > x11-drivers/nvidia-drivers to 390.42 from 390.25. Once the new drivers were
8 > installed I rebooted my laptop. Once rebooted I was unable to start the xorg
9 > server using startx and was greeted with errors. The /var/logs/xorg.0.log
10 > said that the problem was with the kernel module. Looking at dmesg I see
11 > that I am getting the error:
12 >
13 > NVRM: API mismatch: the client has the version 390.42, but this kernel
14 > module has version 390.25. please make sure that this kernel module and all
15 > NVIDIA driver components have the same version.
16 >
17 > I therefor thought that maybe I forgot to "emerge @module-rebuild" so I ran
18 > that and rebooted to make sure that everything was ok. However I am still
19 > getting the same problem.
20 >
21 > Looking at /usr/src/linux it is pointing to the correct kernel of 4.14.14
22 > and running "modinfo nvidia" it shows that "filename:
23 > /lib/modules/4/14/14-gentoo/video/nvidia.ko" and that version is 390.42.
24 > The other nvidia modules (nvidia-drm, nvidia-modeset, and nvidia-uvm) show
25 > that they are built for the correct kernel and that they are also version
26 > 390.42.
27 >
28 > I have tried to debug this issue however all the recourse that I was able to
29 > find mostly said to reboot or perform rmmod nvidia then modprobe nvidia.
30 > However when I try to rmmod nvidia it is dependent on nvidia-modeset and
31 > nvidia-drm. Trying to rmmod nvidia-drm will not work as I get the error
32 > "rmmod error: module nvidia_drm in in use".
33 >
34 > I therefor cannot understand why and where the error is coming from as it
35 > seems like the kernel has the correct nvidia modules loaded. Any ideas on
36 > how to fix it or any other suggestions?
37 >
38 > Thanks,
39 > Aleks
40
41 Just to clarify, does:
42 modinfo nvidia
43 display version 390.42 or 390.25?