Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 779997

Summary: >=x11-drivers/nvidia-drivers-460.56 API mismatch
Product: Gentoo Linux Reporter: Red <redblade7>
Component: Current packagesAssignee: Ionen Wolkens <ionen>
Status: RESOLVED CANTFIX    
Severity: normal CC: jstein, redblade7, soap
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://forums.gentoo.org/viewtopic-p-8595198.html
Whiteboard:
Package list:
Runtime testing required: ---

Description Red 2021-04-04 14:30:39 UTC
Versions 460.56 and 460.67 of x11-drivers/nvidia-drivers fail to start at boot with the following error in syslog:

NVRM: API mismatch: the client has the version 460.56, but
NVRM: this kernel module has the version 460.39.  Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.

Downgrading to 460.39-r1 solved the problem.

True of both 5.4.109 and 5.10.24 kernels.

See forum post for more information:

https://forums.gentoo.org/viewtopic-p-8595198.html

Reproducible: Always
Comment 1 Ionen Wolkens gentoo-dev 2021-04-04 20:57:08 UTC
Think the message is already clear that you're loading the wrong module, NVIDIA drivers needing to match libraries been a requirement since the early 2000s (nothing new, ask upstream if you want new libraries to work with old drivers).

I don't see any reason to include nvidia-drivers on an initramfs as it's not needed for bringing up filesystems. This also doesn't seem to be an issue with gentoo-kernel{-bin,}[initramfs]

The newer ebuilds (since 460.67) already have a warning in the ebuild about mismatch and I expect users with custom setups to know how to handle it:

    ewarn "Currently loaded NVIDIA modules do not match the newly installed"
    ewarn "libraries and will lead to GPU-using application issues."

This warning is also included in 390.141-r1 and 450.104.04-r1 LTS branches and will be stabled sometime later this month (460.39/56 are due for removal after a grace period).