NVIDIA 340.108 driver kernel 5.11 support

Hi everyone!

Would it be possible to update the 340.108 driver version to support the Linux kernel 5.11 releases?
I saw that issue was fixed in the 390 driver series in April.
I’m getting the same error compiling the 340.108 kernel module (“fatal error: asm/kmap_types.h: No such file or directory”).

Thanks a lot in advance!
Sincerily.
Mathias :)

1 Like

Yes, like Mathias said. I am installing the 340.108 driver under Xubuntu 21.04 and I get “fatal error: asm/kmap_types.h: No such file or directory.” How do I fix it? What’s the trick?

Me too! I’m having the same problem but with Ubuntu 20.04.2 LTS. I still use the GeForce 9500 GT graphics card.
Maybe it’s better to go back to the previous Kernel and wait for the update of the new version… I remember the same thing happened with Kernel 5.0. At the time, I had to go back to the previous version, 4.5. Today, I can go back to version 5.8, which I know the driver works.

Hello, I have also encountered this on my Lenovo ThinkPad T510 running KDE Neon 5.22.4 with kernel 5.11.0-27.
My current workaround is to uninstall nvidia-340.108 and go back to the nouveau driver, which seems to be working fine.

EDIT: Including my nvidia-bug-report.log.gz
nvidia-bug-report.log.gz (64.1 KB)

There is a nice patch from If Not True Then False (https://www.if-not-true-then-false.com) that works with Kernels up to 5.13. (I’ve used it on 5.13.11 and 4.4.276 on Slackware. Check it out: inttf NVIDIA 435.xx, 418.xx, 340.xx Patcher for Kernel 5.13/5.12/5.11 [BASH Script] – If Not True Then False
Sadly, for me, it does not work with 5.14

Thank you, I’ll check it out.