Nvidia and kernel 5.11 problems
Hello, The installation of Nvidia (nvidia-gfxG04-kmp-default in my case) has failed for the 5.11.2 and 5.11.4 kernels on Tumbleweed (snippet of the error message is below). I assume this is just a compatibility issue with kernels 5.11.* and a solution will be along soon. But just in case others aren't seeing this problem, I thought I'd ask here. Thanks, Matthew # CC [M] /usr/src/kernel-modules/nvidia-390.141-default/nvidia/nv-frontend.o # In file included from /usr/src/kernel-modules/nvidia-390.141-default/nvidia/nv-frontend.c:13: # /usr/src/kernel-modules/nvidia-390.141-default/common/inc/nv-linux.h:118:10: fatal error: asm/kmap_types.h: No such file or directory # 118 | #include <asm/kmap_types.h> /* page table entry lookup */ # | ^~~~~~~~~~~~~~~~~~ # compilation terminated.
On Sat, Mar 13, 2021 at 07:58:12AM -0600, Matthew wrote:
Hello,
The installation of Nvidia (nvidia-gfxG04-kmp-default in my case) has failed for the 5.11.2 and 5.11.4 kernels on Tumbleweed (snippet of the error message is below). I assume this is just a compatibility issue with kernels 5.11.*
Unfortunately this is true. I'm not aware of a fix for this. In case anyone is aware of any patch supposed to fix this, please let me know. Thanks, Stefan
and a solution will be along soon. But just in case others aren't seeing this problem, I thought I'd ask here.
Thanks, Matthew
# CC [M] /usr/src/kernel-modules/nvidia-390.141-default/nvidia/nv-frontend.o # In file included from /usr/src/kernel-modules/nvidia-390.141-default/nvidia/nv-frontend.c:13: # /usr/src/kernel-modules/nvidia-390.141-default/common/inc/nv-linux.h:118:10: fatal error: asm/kmap_types.h: No such file or directory # 118 | #include <asm/kmap_types.h> /* page table entry lookup */ # | ^~~~~~~~~~~~~~~~~~ # compilation terminated.
Public Key available ------------------------------------------------------ Stefan Dirsch (Res. & Dev.) SUSE Software Solutions Germany GmbH Tel: 0911-740 53 0 Maxfeldstraße 5 FAX: 0911-740 53 479 D-90409 Nürnberg http://www.suse.de Germany ---------------------------------------------------------------- (HRB 36809, AG Nürnberg) Geschäftsführer: Felix Imendörffer ----------------------------------------------------------------
On Sat 13 Mar 2021 04:21:12 PM CST, Stefan Dirsch wrote:
On Sat, Mar 13, 2021 at 07:58:12AM -0600, Matthew wrote:
Hello,
The installation of Nvidia (nvidia-gfxG04-kmp-default in my case) has failed for the 5.11.2 and 5.11.4 kernels on Tumbleweed (snippet of the error message is below). I assume this is just a compatibility issue with kernels 5.11.*
Unfortunately this is true. I'm not aware of a fix for this. In case anyone is aware of any patch supposed to fix this, please let me know.
Hi Maybe this.... http://rglinuxtech.com/?p=2867 -- Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890) Tumbleweed 20210311 | GNOME Shell 3.38.3 | 5.11.4-1-default Intel DQ77MK | Xeon E3-1245 V2 X8 @ 3.40 GHz | Intel/AMD/Nvidia up 12:59, 2 users, load average: 0.84, 0.88, 0.85
Am Samstag, 13. März 2021, 16:29:49 CET schrieb Malcolm:
On Sat 13 Mar 2021 04:21:12 PM CST, Stefan Dirsch wrote:
On Sat, Mar 13, 2021 at 07:58:12AM -0600, Matthew wrote:
Hello,
The installation of Nvidia (nvidia-gfxG04-kmp-default in my case) has failed for the 5.11.2 and 5.11.4 kernels on Tumbleweed (snippet of the error message is below). I assume this is just a compatibility issue with kernels 5.11.*
Unfortunately this is true. I'm not aware of a fix for this. In case anyone is aware of any patch supposed to fix this, please let me know.
Hi Maybe this.... http://rglinuxtech.com/?p=2867
Oh wow, didn't expect that. Will look into it. Cheers, Pete
Am Samstag, 13. März 2021, 17:38:50 CET schrieb Hans-Peter Jansen:
Am Samstag, 13. März 2021, 16:29:49 CET schrieb Malcolm:
On Sat 13 Mar 2021 04:21:12 PM CST, Stefan Dirsch wrote:
On Sat, Mar 13, 2021 at 07:58:12AM -0600, Matthew wrote:
Hello,
The installation of Nvidia (nvidia-gfxG04-kmp-default in my case) has failed for the 5.11.2 and 5.11.4 kernels on Tumbleweed (snippet of the error message is below). I assume this is just a compatibility issue with kernels 5.11.*
Unfortunately this is true. I'm not aware of a fix for this. In case anyone is aware of any patch supposed to fix this, please let me know.
Hi Maybe this.... http://rglinuxtech.com/?p=2867
Oh wow, didn't expect that.
Will look into it.
.. and as expected, this patch is for G05, which is already working anyway. If somebody is brave(aka. masochistic) enough, port over that patch to G04 (390.141). Good luck. Cheers, Pete
Am Samstag, 13. März 2021, 14:58:12 CET schrieb Matthew:
Hello,
The installation of Nvidia (nvidia-gfxG04-kmp-default in my case) has failed for the 5.11.2 and 5.11.4 kernels on Tumbleweed (snippet of the error message is below). I assume this is just a compatibility issue with kernels 5.11.* and a solution will be along soon. But just in case others aren't seeing this problem, I thought I'd ask here.
Thanks, Matthew
# CC [M] /usr/src/kernel-modules/nvidia-390.141-default/nvidia/nv-frontend.o # In file included from /usr/src/kernel-modules/nvidia-390.141-default/nvidia/nv-frontend.c:13: # /usr/src/kernel-modules/nvidia-390.141-default/common/inc/nv-linux.h:118:10: fatal error: asm/kmap_types.h: No such file or directory # 118 | #include <asm/kmap_types.h> /* page table entry lookup */ # | ^~~~~~~~~~~~~~~~~~ # compilation terminated.
Matthew, I have some bad news for you. After fixing the lower hanging fruits as this one, the G04 build breaks with 5.11 in fancy ways due to a significant rework of the drm layer. I even considered backporting (parts of) the G05 drm module, but that one is also deviating too much to be fun, hence we (Stefan Dirsch and me) decided to keep this work for NVIDIA. Sorry. There are rumours, that they want to release a new G04 version in the next few month. We will see. Until then, please lock your kernel to 5.10 to keep G04 operational. Cheers, Pete
On 3/13/21 7:58 AM, Matthew wrote:
# 118 | #include <asm/kmap_types.h> /* page table entry lookup */ # | ^~~~~~~~~~~~~~~~~~
That header file can be ignored. The patch file I found has the snippet diff --git a/kernel/common/inc/nv-linux.h b/kernel/common/inc/nv-linux.h index 0d7e516..dae9c09 100644 --- a/kernel/common/inc/nv-linux.h +++ b/kernel/common/inc/nv-linux.h @@ -115,7 +115,9 @@ #include <linux/moduleparam.h> /* module_param() */ #include <asm/tlbflush.h> /* flush_tlb(), flush_tlb_all() */ +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0)) #include <asm/kmap_types.h> /* page table entry lookup */ +#endif #include <linux/pci.h> /* pci_find_class, etc */ #include <linux/interrupt.h> /* tasklets, interrupt helpers */ The entire patch for kernel 5.11, and the one for 5.12 are attached. Larry
Hi Larry Thanks a lot! Seems this kernel-5.11.patch fixes the build against Kernel 5.11! :-) I found the patch when checking out git tree of https://gitlab.com/herecura/packages/nvidia-390xx-dkms May I ask where kernel-5.12.patch is from? Thanks, Stefan On Sat, Mar 13, 2021 at 01:08:24PM -0600, Larry Finger wrote:
On 3/13/21 7:58 AM, Matthew wrote:
# 118 | #include <asm/kmap_types.h> /* page table entry lookup */ # | ^~~~~~~~~~~~~~~~~~
That header file can be ignored. The patch file I found has the snippet
[...]
Public Key available ------------------------------------------------------ Stefan Dirsch (Res. & Dev.) SUSE Software Solutions Germany GmbH Tel: 0911-740 53 0 Maxfeldstraße 5 FAX: 0911-740 53 479 D-90409 Nürnberg http://www.suse.de Germany ---------------------------------------------------------------- (HRB 36809, AG Nürnberg) Geschäftsführer: Felix Imendörffer ----------------------------------------------------------------
On Sat, Mar 13, 2021 at 03:00:37PM -0600, Larry Finger wrote:
On 3/13/21 2:45 PM, Stefan Dirsch wrote:
May I ask where kernel-5.12.patch is from?
I wrote it.
Thanks a lot, Larry. I'll mention you in the changelog! :-) CU, Stefan Public Key available ------------------------------------------------------ Stefan Dirsch (Res. & Dev.) SUSE Software Solutions Germany GmbH Tel: 0911-740 53 0 Maxfeldstraße 5 FAX: 0911-740 53 479 D-90409 Nürnberg http://www.suse.de Germany ---------------------------------------------------------------- (HRB 36809, AG Nürnberg) Geschäftsführer: Felix Imendörffer ----------------------------------------------------------------
participants (5)
-
Hans-Peter Jansen
-
Larry Finger
-
Malcolm
-
Matthew
-
Stefan Dirsch